/* ============================================================
   === WORK PAGE ===
   Filter bar, project grid, card arrow
   ============================================================ */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 40px 0 48px;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
  color: var(--accent-supernova);
  border-color: var(--accent-supernova);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: var(--section-v);
}

@media (max-width: 767px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Work page: grid section labels ─────────────────────── */
.work-grid-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0 4px;
}
.work-grid-label__text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-supernova);
  white-space: nowrap;
}
.work-grid-label__line {
  flex: 1;
  height: 1px;
  background: rgba(255, 87, 34, 0.2);
}
.work-grid-label--muted .work-grid-label__text {
  color: var(--text-muted, #555);
}
.work-grid-label--muted .work-grid-label__line {
  background: rgba(255,255,255,0.06);
}

/* ── Featured (case study) project cards ────────────────── */
.project-card--featured {
  border-top: 2px solid var(--accent-supernova);
  border-color: rgba(255, 87, 34, 0.35);
  background: rgba(255, 87, 34, 0.04);
}
.project-card--featured:hover {
  border-color: rgba(255, 87, 34, 0.7);
  box-shadow: 0 20px 48px rgba(255, 87, 34, 0.1);
}
.project-card--featured .card__arrow {
  color: var(--accent-supernova);
}
.project-card--featured .card__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-supernova);
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.3);
  border-radius: 3px;
  padding: 2px 7px;
  margin-bottom: 4px;
  width: fit-content;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card__arrow {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 16px;
  color: var(--accent-supernova);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.project-card:hover .card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Per-category accent — border-left + tag colour ─────────── */
.project-card[data-type="corporate"] {
  border-left: 3px solid var(--accent-supernova);
}
/* corporate .tag stays supernova — no override needed */

.project-card[data-type="eu-programme"] {
  border-left: 3px solid #FF7043;
}
.project-card[data-type="eu-programme"] .tag {
  color: #FF7043;
  border-color: rgba(255, 112, 67, 0.4);
}

.project-card[data-type="startup"] {
  border-left: 3px solid #6B5BDB;
}
.project-card[data-type="startup"] .tag {
  color: #6B5BDB;
  border-color: rgba(107, 91, 219, 0.4);
}

.project-card[data-type="non-profit"] {
  border-left: 3px solid #3B8B5E;
}
.project-card[data-type="non-profit"] .tag {
  color: #3B8B5E;
  border-color: rgba(59, 139, 94, 0.4);
}

.project-card[data-type="open-innovation"] {
  border-left: 3px solid #E8C84A;
}
.project-card[data-type="open-innovation"] .tag {
  color: #E8C84A;
  border-color: rgba(232, 200, 74, 0.4);
}

/* ── Card cover image (featured case studies) ────────────────── */
.card__cover {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  margin-bottom: var(--space-md, 16px);
  /* Shows placeholder background when image not yet available */
  background: rgba(255, 255, 255, 0.05);
}

/* ── /category accents ───────────────────────────────────────── */

/* ============================================================
   CASE STUDY COVER PHOTO
   .cs-cover — full-bleed hero image below page-hero
   ============================================================ */

.cs-cover {
  width: 100%;
  padding: 0;
  margin-top: 56px;
}

.cs-cover__img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
}

.cs-cover__caption {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  text-align: right;
  padding: 8px var(--space-lg, 32px) 0;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .cs-cover__img {
    max-height: 260px;
    object-position: center;
  }
}


/* ============================================================
   CASE STUDY — utility classi per pattern ricorrenti
   (sostituiscono inline style duplicati in ogni case study)
   ============================================================ */

/* credibility bar con spazio sopra */
.credibility-bar--spaced { margin-top: 24px; }

/* contenitore testo narrativo (max-width prose) */
.prose-container { max-width: 720px; }

/* paragrafo corpo narrazione */
.prose-body {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary, rgba(255,255,255,0.6));
}

/* immagine cover case study */
.case-study__cover-img {
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-card, 12px);
  display: block;
  object-fit: cover;
}

/* sezione con padding-top 48px */
.section--pt-48 { padding-top: 48px; }

/* sezione con padding-top 56px */
.section--pt-56 { padding-top: 56px; }

/* sezione con padding-top 64px */
.section--pt-64 { padding-top: 64px; }

/* sezione senza padding-bottom */
.section--pb-0 { padding-bottom: 0; }

/* sezione con padding-bottom 80px */
.section--pb-80 { padding-bottom: 80px; }

/* ── Stat strip ─────────────────────────────────────────── */
.stat-strip {
  background-color: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 56px 0;
}

.stat-strip--spaced { margin-top: 56px; }

.stat-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.stat-block {
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-block:last-child { border-right: none; }

.stat-block__emoji {
  font-size: 20px;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
  opacity: 0.85;
}

.stat-block__number {
  font-family: var(--font-number, var(--font-display));
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-block__label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.stat-block__note {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-label, rgba(255,255,255,0.35));
  letter-spacing: 0.04em;
}

.stat-strip__footnote {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
}

.stat-strip__footnote a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.stat-strip__footnote a:hover { color: rgba(255, 255, 255, 0.75); }

@media (max-width: 767px) {
  .stat-strip__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .stat-block {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 28px;
  }

  .stat-block:last-child { border-bottom: none; padding-bottom: 0; }
}
.section--pt-40 { padding-top: 40px; }
