/* ============================================================
   STACHE STUDIO — Rebuild
   Palette / tokens estratti dal sito originale
   ============================================================ */

@font-face {
  font-family: "Staatliches";
  src: url("../fonts/staatliches-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-400i.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-500i.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-700i.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --teal: #104c5b;
  --lime: #ccff33;
  --orange: #ff5700;
  --black: #000000;
  --ink: #1a1a1a;
  --white: #ffffff;
  --cream: #f1ede9;
  --grey: #b0b0b0;
  --grey-2: #999999;
  --font-display: "Staatliches", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", sans-serif;
  --nav-h: 72px;
  --pad: clamp(16px, 3vw, 40px);
  --radius: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: auto;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--lime);
  color: var(--teal);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.no-scroll { overflow: hidden; }

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--orange); color: var(--white); }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.01em;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ============================================================
   PAGE TRANSITION
   ============================================================ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.page-transition.is-active { opacity: 1; pointer-events: all; }
body.is-loading .page-transition { opacity: 1; }

/* ============================================================
   REVEAL / ANIMATION UTILITIES
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal-fade {
  opacity: 0;
  transition: opacity 1.1s ease;
  transition-delay: var(--d, 0s);
}
.reveal-fade.is-in { opacity: 1; }

/* masked line reveal for big display headings */
.lines .line {
  display: block;
  overflow: hidden;
}
.lines .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.lines.is-in .line:nth-child(1) > span { transition-delay: 0.05s; }
.lines.is-in .line:nth-child(2) > span { transition-delay: 0.13s; }
.lines.is-in .line:nth-child(3) > span { transition-delay: 0.21s; }
.lines.is-in .line:nth-child(4) > span { transition-delay: 0.29s; }
.lines.is-in .line > span { transform: none; }

/* ============================================================
   SECTION LABELS  ( + LABEL )
   ============================================================ */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.label .plus {
  width: 12px;
  height: 12px;
  flex: none;
  position: relative;
}
.label .plus::before,
.label .plus::after {
  content: "";
  position: absolute;
  background: var(--orange);
}
.label .plus::before { left: 0; top: 5px; width: 12px; height: 2px; }
.label .plus::after { left: 5px; top: 0; width: 2px; height: 12px; }

.label--lime { color: var(--lime); }
.label--white { color: var(--white); }
.label--orange { color: var(--orange); }

/* small orange pill used as decorative indicator */
.pill-dot {
  width: 16px;
  height: 26px;
  border-radius: 99px;
  background: var(--orange);
  flex: none;
}
.pill-dot--sm { width: 12px; height: 20px; }
.pill-wide {
  width: 44px;
  height: 14px;
  border-radius: 99px;
  background: var(--orange);
}

/* ============================================================
   NAVBAR — pillola flottante (in cima: trasparente e centrata;
   scrollata: barra bianca a pillola con burger, icona e CTA)
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  padding: 14px 22px 0;
  pointer-events: none;
}

.nav__bar {
  pointer-events: auto;
  position: relative;
  /* in cima: pill compatta "vetro smerigliato" attorno alle voci */
  width: var(--bar-top, 780px);
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0);
  transition: width 0.5s var(--ease-io), height 0.5s var(--ease-io),
    border-radius 0.5s var(--ease-io), background-color 0.4s ease, box-shadow 0.4s ease,
    opacity 0.3s ease;
}
/* salendo: barra completa a tutta larghezza */
.nav.is-pill .nav__bar {
  width: var(--bar-full, 100%);
  background: var(--white);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.09);
}
/* scendendo: si chiude in una pill col solo baffo dentro */
.nav.is-mini .nav__bar {
  width: 66px;
  height: 52px;
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.09);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3.4vw, 54px);
  /* compensazione PERMANENTE dell'asimmetria delle voci: il marchio sta
     al centro esatto della barra in ogni stato, così nel morph verso la
     mini pill l'icona non slitta di lato */
  transform: translateX(var(--links-shift, 0px));
}
.nav__link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--teal);
  transition: color 0.25s ease, opacity 0.25s ease;
}
.nav__link:hover { color: var(--orange); }
.nav.is-mini .nav__link { opacity: 0; pointer-events: none; }

/* logo centrale: wordmark in cima, icona baffo in pillola/mini.
   I due marchi sono in absolute così il box mantiene larghezza esatta
   e l'icona resta perfettamente centrata tra le voci. */
.nav__logo {
  position: relative;
  width: 132px;
  height: 40px;
  flex: none;
  color: var(--teal);
  /* stessa durata del morph della barra: niente wobble dell'icona */
  transition: width 0.5s var(--ease-io);
}
.nav__logo .logo-word,
.nav__logo .logo-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  transition: opacity 0.3s ease, scale 0.5s var(--ease-io);
}
.nav__logo .logo-word { width: 118px; }
.nav__logo .logo-icon { width: 36px; opacity: 0; scale: 0.6; }
.nav__logo:hover { color: var(--orange); }
.nav.is-pill .nav__logo,
.nav.is-mini .nav__logo { width: 52px; }
.nav.is-pill .logo-word,
.nav.is-mini .logo-word { opacity: 0; scale: 0.75; pointer-events: none; }
.nav.is-pill .logo-icon,
.nav.is-mini .logo-icon { opacity: 1; scale: 1; }

/* croce "+" all'estremità sinistra (apre il menu) — sopra la barra quando è piena */
.nav__burger {
  position: absolute;
  left: 31px;
  top: 45px;
  translate: 0 -50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(16, 76, 91, 0.16);
  background: var(--white);
  display: grid;
  place-items: center;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out), border-color 0.25s ease,
    background-color 0.25s ease;
}
.nav__burger svg { display: block; transition: transform 0.35s var(--ease-out); }
.nav__burger svg path { transition: fill 0.25s ease; }
/* hover: colori invertiti — sfondo arancio, croce bianca. La rotazione è
   45° (una croce ruotata di 90° torna identica: sembrava solo vibrare) */
.nav__burger:hover { background: var(--orange); border-color: var(--orange); }
.nav__burger:hover svg { transform: rotate(45deg); }
.nav__burger:hover svg path { fill: var(--white); }

/* cluster all'estremità destra: switch lingua + CTA — sopra la barra quando è piena */
.nav__right {
  position: absolute;
  right: 31px;
  top: 45px;
  translate: 0 -50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}
.nav__lang {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(16, 76, 91, 0.16);
  background: var(--white);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: grid;
  place-items: center;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav__lang:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}
.nav__cta .arr { font-size: 13px; transition: transform 0.25s ease; }
.nav__cta:hover { background: var(--orange); }
.nav__cta:hover .arr { transform: translateX(3px); }
.nav.is-mini .nav__right,
.nav.is-mini .nav__burger { opacity: 0; transform: scale(0.6); pointer-events: none; }

/* menu aperto: la croce in alto a sinistra è l'unico controllo (toggle).
   A riposo mantiene lo stato "hover" dell'header (fondo arancio, X bianca a 45°);
   in hover l'animazione si INVERTE e torna croce classica (fondo bianco, + arancio);
   al click chiude e resta croce classica. */
body.menu-open .nav { z-index: 960; }
body.menu-open .nav__bar,
body.menu-open .nav__right { opacity: 0; pointer-events: none; }
body.menu-open .nav__burger {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  background: var(--orange);
  border-color: var(--orange);
}
body.menu-open .nav__burger svg { transform: rotate(45deg); }
body.menu-open .nav__burger svg path { fill: var(--white); }
body.menu-open .nav__burger:hover {
  background: var(--white);
  border-color: rgba(16, 76, 91, 0.16);
}
body.menu-open .nav__burger:hover svg { transform: rotate(0deg); }
body.menu-open .nav__burger:hover svg path { fill: var(--orange); }

@media (max-width: 980px) {
  .nav__links .nav__link { display: none; }
  .nav__burger { opacity: 1; transform: none; pointer-events: auto; }
  .nav__bar { height: 56px; }
}

/* ============================================================
   MENU OVERLAY
   ============================================================ */
.menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  visibility: hidden;
  pointer-events: none;
}
.menu.is-open { visibility: visible; pointer-events: all; }

.menu__bg {
  position: absolute;
  inset: 0;
  background: var(--lime);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.menu.is-open .menu__bg { opacity: 1; }

.menu__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px var(--pad) 0;
  overflow: hidden;
}
.menu__top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 0 40px;
}
.menu__top .menu__title {
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0;
  transition: opacity 0.5s ease 0.2s;
}
.menu.is-open .menu__top .menu__title { opacity: 1; }
.menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.menu__links a {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1.05;
  display: inline-block;
  position: relative;
  transition: color 0.25s ease;
}
.menu__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
  transition: right 0.35s var(--ease-out);
}
.menu__links a:hover { color: var(--orange); }
.menu__links a:hover::after { right: 0; }

.menu__links li {
  overflow: hidden;
}
.menu__links li a {
  transform: translateY(110%);
  transition: transform 0.7s var(--ease-out), color 0.25s ease;
}
.menu.is-open .menu__links li:nth-child(1) a { transition-delay: 0.1s; }
.menu.is-open .menu__links li:nth-child(2) a { transition-delay: 0.17s; }
.menu.is-open .menu__links li:nth-child(3) a { transition-delay: 0.24s; }
.menu.is-open .menu__links li:nth-child(4) a { transition-delay: 0.31s; }
.menu.is-open .menu__links li a { transform: none; }

/* blocco basso del menu: label + mail grande + croce, pill social numerate */
.menu__bottom {
  margin-top: auto;
  padding-bottom: 26px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease 0.35s, transform 0.6s var(--ease-out) 0.35s;
}
.menu.is-open .menu__bottom { opacity: 1; transform: none; }
.menu__talk-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 8px;
}
.menu__mail {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1;
  text-transform: uppercase;
  color: var(--teal);
  transition: color 0.25s ease;
}
.menu__mail:hover { color: var(--orange); }
.menu__plus {
  display: block;
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 16px;
}
.menu__plus::before,
.menu__plus::after { content: ""; position: absolute; background: var(--orange); }
.menu__plus::before { left: 0; top: 6px; width: 14px; height: 2px; }
.menu__plus::after { left: 6px; top: 0; width: 2px; height: 14px; }
.menu__socials {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 5vh, 56px);
}
.menu__social {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.25s ease;
}
.menu__social:hover { background: var(--teal); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #c8cdcf;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--pad) 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.hero__title {
  font-size: clamp(36px, 4.6vw, 64px);
  color: var(--teal);
}
.hero__quote {
  font-size: clamp(15px, 1.25vw, 18px);
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
  text-align: right;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  bottom: 24px;
  width: 22px;
  height: 36px;
  border-radius: 99px;
  background: var(--orange);
  overflow: hidden;
  animation: bounce 1.8s var(--ease-io) infinite;
}
/* freccia che scende dentro la pill */
.hero__scroll::after {
  content: "↓";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  font: 700 13px/1 var(--font-body);
  color: var(--white);
  animation: arrow-slide 1.8s var(--ease-io) infinite;
}
@keyframes arrow-slide {
  0% { transform: translateY(-16px); opacity: 0; }
  35% { transform: translateY(0); opacity: 1; }
  65% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============================================================
   MANIFESTO (dark) — home
   ============================================================ */
.manifesto {
  position: relative;
  background: var(--black);
  color: var(--white);
  /* clip, NON hidden: hidden crea uno scroll-container e rompe il pin
     sticky del video (stesso motivo della regola su html/body) */
  overflow: clip;
}
/* pin + scrub: la sezione è alta 260vh. Quando il bordo nero tocca la cima
   dello schermo il contenitore sticky si blocca per 160vh di scroll — in quel
   tratto il video avanza (scrub in main.js) — poi si sgancia e la pagina
   riprende a scorrere normalmente. */
.manifesto__intro {
  position: relative;
  height: 260vh;
}
.manifesto__video-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.manifesto__video-wrap video {
  width: min(880px, 80vw);
  height: auto;
}
.manifesto__row {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18vh var(--pad) 0;
}
.manifesto__brand {
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
}
.manifesto__brand span { display: block; color: var(--grey-2); margin-top: 2px; }
.manifesto__tagline {
  font-size: clamp(28px, 3vw, 44px);
  color: var(--lime);
  text-align: left;
  max-width: 420px;
}
.manifesto__statement {
  position: relative;
  z-index: 2;
  padding: 10vh var(--pad) 26vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.manifesto__statement h2 {
  font-size: clamp(34px, 4.6vw, 68px);
  max-width: 1000px;
  color: var(--white);
}

/* ============================================================
   SERVICES — home
   ============================================================ */
.services-head {
  background: var(--lime);
  padding: 90px 0 70px;
}
.services-head__label { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: center; }
.services-head h2 {
  font-size: clamp(40px, 5.4vw, 84px);
  color: var(--teal);
  max-width: 1100px;
}

.services {
  background: var(--black);
  color: var(--white);
}
.services__viewport { }
.services__list { padding: 40px 0; }
.service {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.service:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.service__head {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 26px 0;
  cursor: pointer;
}
.service__index {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--grey-2);
}
.service__title {
  font-size: clamp(28px, 3.2vw, 48px);
  color: var(--lime);
  transition: color 0.3s ease, transform 0.45s var(--ease-out);
  transform-origin: left center;
}
.service.is-open .service__title { transform: scale(1.04); }
.service__pill {
  width: 14px; height: 24px; border-radius: 99px;
  background: var(--orange);
  transition: transform 0.4s var(--ease-out);
}
.service.is-open .service__pill { transform: scaleY(1.35); }
.service__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--ease-io);
}
.service.is-open .service__body { grid-template-rows: 1fr; }
.service__body-inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 60px minmax(0, 420px) 1fr;
  gap: 18px;
}
.service__info { grid-column: 2; padding-bottom: 34px; }
.service__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--cream);
  margin-bottom: 22px;
  max-width: 380px;
}
.service__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--white);
  color: var(--teal);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 7px 13px;
}
.tag--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.service__media {
  grid-column: 3;
  justify-self: end;
  align-self: center;
  width: min(620px, 44vw);
  padding-bottom: 30px;
}
.service__media video {
  width: 100%;
  height: auto;
  border-radius: 16px;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}
.service__media:hover video {
  transform: translate(-16px, -10px) scale(1.06);
}

/* ============================================================
   WHY CHOOSE — home
   ============================================================ */
.why {
  background: var(--lime);
  padding: 110px 0 90px;
}
.why__head { margin-bottom: 60px; }
.why__label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.why h2 {
  font-size: clamp(38px, 4.6vw, 72px);
  color: var(--white);
  text-align: center;
}
.why h2 .accent { color: var(--orange); display: block; }
.why__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}
.why__grid .row2 {
  grid-template-columns: 1.1fr 0.9fr;
}
.card {
  border-radius: var(--radius);
  padding: 30px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.card--teal {
  background: linear-gradient(180deg, var(--teal) 27%, #06222b 100%);
  color: var(--white);
}
.card--white {
  background: var(--white);
  color: var(--teal);
}
.card__label { margin-bottom: 22px; }
.card--teal .card__label { color: var(--white); }
.card__body {
  font-size: 14px;
  line-height: 1.6;
  margin-top: auto;
  max-width: 380px;
}
.card--teal .card__body { color: rgba(255, 255, 255, 0.92); }
.card__stat {
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 96px);
  color: var(--orange);
  line-height: 1;
  margin: auto 0;
  align-self: center;
}
.card__stat .unit { font-size: 0.6em; }
.card--teal .card__stat { align-self: flex-end; }

/* ============================================================
   PROJECTS GRID (home + work)
   ============================================================ */
.projects {
  background: var(--lime);
  padding: 90px 0 110px;
}
.projects__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 46px;
}
.projects__head h2 {
  font-size: clamp(38px, 4.2vw, 64px);
  color: var(--teal);
}
.projects__intro {
  max-width: 300px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--teal);
  text-align: right;
}
.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.project-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.project-card__media {
  position: relative;
  aspect-ratio: 1 / 0.72;
  overflow: hidden;
}
.project-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), opacity 0.5s ease;
}
.project-card__media .img-hover { opacity: 0; }
.project-card:hover .img-hover { opacity: 1; }
.project-card:hover .project-card__media img { transform: scale(1.05); }
.project-card__title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--white);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 500;
  z-index: 2;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--white);
}
.project-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
}
.project-card__meta .plus { position: relative; width: 11px; height: 11px; }
.project-card__meta .plus::before,
.project-card__meta .plus::after { content: ""; position: absolute; background: var(--orange); }
.project-card__meta .plus::before { left: 0; top: 4.5px; width: 11px; height: 2px; }
.project-card__meta .plus::after { left: 4.5px; top: 0; width: 2px; height: 11px; }
.project-card__year {
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
}

/* ============================================================
   TESTIMONIALS — home
   ============================================================ */
.testimonials {
  background: var(--lime);
  padding: 60px 0 110px;
}
.testimonials__head { margin-bottom: 46px; }
.testimonials__head h2 {
  font-size: clamp(34px, 3.6vw, 54px);
  color: var(--teal);
  margin-top: 18px;
}
.testimonial {
  display: grid;
  grid-template-columns: 300px 1fr 1px 280px;
  gap: 34px;
  align-items: center;
  background: linear-gradient(180deg, var(--teal) 27%, var(--black) 100%);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--white);
}
.testimonial + .testimonial { margin-top: 22px; }
.testimonial__photo {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--cream);
}
.testimonial__photo img { width: 100%; height: 100%; object-fit: cover; }
.testimonial__quote h4 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 27px);
  line-height: 1.14;
  letter-spacing: 0.02em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.testimonial__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cream);
}
.testimonial__divider {
  width: 1px;
  height: 80%;
  background: var(--lime);
  opacity: 0.9;
}
.testimonial__stat { text-align: left; }
.testimonial__stat .num {
  font-family: var(--font-display);
  font-size: clamp(54px, 5vw, 84px);
  color: var(--orange);
  line-height: 1;
  display: block;
}
.testimonial__stat .caption {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

/* ============================================================
   FAQ — home
   ============================================================ */
.faq {
  background: var(--lime);
  padding: 60px 0 130px;
}
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 60px;
  align-items: start;
}
.faq__left h2 {
  font-size: clamp(34px, 3.6vw, 54px);
  color: var(--teal);
  margin-top: 18px;
  max-width: 420px;
}
.faq__left .pill-dot { margin-top: 26px; }
.faq-item {
  background: var(--ink);
  border-radius: 8px;
  color: var(--white);
  overflow: hidden;
}
.faq-item + .faq-item { margin-top: 12px; }
.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  padding: 18px 20px;
}
.faq-item__icon {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
  transition: transform 0.4s var(--ease-out);
}
.faq-item__icon::before,
.faq-item__icon::after { content: ""; position: absolute; background: var(--white); }
.faq-item__icon::before { left: 0; top: 5px; width: 12px; height: 2px; }
.faq-item__icon::after { left: 5px; top: 0; width: 2px; height: 12px; }
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-io);
}
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a-inner { min-height: 0; overflow: hidden; }
.faq-item__a p {
  padding: 0 20px 20px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   CONTACT SECTION (all pages)
   ============================================================ */
.contact {
  background: var(--lime);
  padding: 110px 0 130px;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}
.contact__left h2 {
  font-size: clamp(34px, 3.4vw, 52px);
  color: var(--orange);
  max-width: 460px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  border: 1px solid var(--teal);
  border-radius: 99px;
  background: transparent;
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 500;
  padding: 10px 18px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-outline .plus { position: relative; width: 11px; height: 11px; }
.btn-outline .plus::before,
.btn-outline .plus::after { content: ""; position: absolute; background: var(--orange); transition: background 0.3s ease; }
.btn-outline .plus::before { left: 0; top: 4.5px; width: 11px; height: 2px; }
.btn-outline .plus::after { left: 4.5px; top: 0; width: 2px; height: 11px; }
.btn-outline:hover { background: var(--teal); color: var(--lime); border-color: var(--teal); }

.contact__respond {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 90px;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
}

/* honeypot: campo esca per i bot, fuori schermo e fuori dal tab order.
   Se arriva compilato la Function scarta la richiesta senza inviare nulla. */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* esito dell'invio, sotto il bottone */
.form__msg {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  min-height: 1.2em;
}
.form__msg.is-ok { color: var(--teal); font-weight: 500; }
.form__msg.is-ko { color: var(--orange); font-weight: 500; }
.form__msg-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--teal);
  font-weight: 700;
}
.form__msg-link:hover { color: var(--orange); }

.form__field { margin-bottom: 26px; }
.form__field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.form__field input,
.form__field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--teal);
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--teal);
  padding: 8px 2px 10px;
  outline: none;
  resize: none;
  transition: border-color 0.3s ease;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: rgba(16, 76, 91, 0.45); }
.form__field input:focus,
.form__field textarea:focus { border-bottom-color: var(--orange); }

.btn-submit {
  width: 100%;
  border: none;
  border-radius: 99px;
  background: var(--teal);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  padding: 14px 22px;
  margin-top: 8px;
  transition: background 0.35s ease, transform 0.2s ease;
}
.btn-submit:hover { background: var(--orange); }
.btn-submit:active { transform: scale(0.985); }
.form__terms {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--teal);
}
.form__terms a { color: var(--orange); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--teal);
  color: var(--cream);
  overflow: hidden;
}
/* righe verticali sottili — "griglia editoriale" del riferimento */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.07) 0 1px,
    transparent 1px 20vw
  );
}
.footer__inner { position: relative; z-index: 1; }

/* --- griglia principale: headline + contatti + colonne --- */
.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: clamp(64px, 10vw, 140px);
  align-items: start;
  padding-top: clamp(64px, 8vw, 120px);
}
.footer__lead       { grid-column: 1 / 7;   grid-row: 1; }
.footer__col--nav   { grid-column: 1 / 4;   grid-row: 2; }
.footer__col--soc   { grid-column: 7 / 10;  grid-row: 2; }
.footer__col--legal { grid-column: 10 / 13; grid-row: 2; }

/* headline gigante */
.footer__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 92px);
  line-height: 0.95;
  letter-spacing: 0.006em;
  text-transform: uppercase;
  color: var(--cream);
  max-width: 16ch;
}
/* CTA sottolineata sotto la headline */
.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(24px, 2.6vw, 40px);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--cream);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.footer__cta:hover { color: var(--orange); border-color: var(--orange); }
.footer__cta-arrow { transition: transform 0.35s var(--ease-out); }
.footer__cta:hover .footer__cta-arrow { transform: translateX(4px); }

/* colonne (nav / social / legal) — senza intestazioni, stile editoriale */
.footer__col { display: flex; flex-direction: column; gap: 11px; padding-top: 3px; }
.footer__col a {
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: var(--cream);
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
}
.footer__col--nav a { font-size: clamp(16px, 1.5vw, 19px); }
.footer__col a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.footer__col a:hover { color: var(--orange); }
.footer__col a:hover::before { transform: scaleX(1); transform-origin: left; }
.footer__col a.ext::after {
  content: "\2197";
  font-size: 11px;
  color: var(--orange);
  transition: transform 0.25s ease;
}
.footer__col a.ext:hover::after { transform: translate(2px, -2px); }

/* wordmark gigante a tutta larghezza, tagliato in basso */
.footer__wordmark {
  position: relative;
  z-index: 1;
  color: var(--lime);
  width: 104vw;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  line-height: 0;
  margin-top: clamp(52px, 7vw, 110px);
}
.footer__wordmark svg {
  width: 104vw;
  height: auto;
  display: block;
  margin-bottom: -1.9vw;
}

/* striscia legale finale */
.footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(241, 237, 233, 0.2);
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 26px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 237, 233, 0.62);
}
.footer__bottom-inner a { color: inherit; }
.footer__totop {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 999px;
  padding: 8px 15px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.footer__totop:hover { background: var(--cream); border-color: var(--cream); color: var(--teal); }
.footer__totop .arr { transition: transform 0.3s var(--ease-out); }
.footer__totop:hover .arr { transform: translateY(-2px); }

/* responsive footer */
@media (max-width: 980px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(24px, 5vw, 48px);
    row-gap: 46px;
  }
  .footer__lead       { grid-column: 1 / -1; grid-row: 1; }
  .footer__col--nav   { grid-column: 1 / 2;  grid-row: 2; }
  .footer__col--soc   { grid-column: 2 / 3;  grid-row: 2; }
  .footer__col--legal { grid-column: 1 / 2;  grid-row: 3; }
  .footer__headline   { max-width: 20ch; }
}
@media (max-width: 560px) {
  .footer::before { display: none; }
  .footer__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .footer__lead,
  .footer__col--nav,
  .footer__col--soc,
  .footer__col--legal { grid-column: 1 / -1; }
  .footer__col--nav   { grid-row: 2; }
  .footer__col--soc   { grid-row: 3; }
  .footer__col--legal { grid-row: 4; }
}

/* ============================================================
   WORK PAGE
   ============================================================ */
.page-hero {
  background: var(--lime);
  padding: calc(var(--nav-h) + 70px) 0 60px;
}
.page-hero__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.page-hero h1 {
  font-size: clamp(44px, 5.4vw, 84px);
  color: var(--teal);
}
.page-hero__sub {
  padding-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.page-hero__desc {
  max-width: 280px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--teal);
  text-align: right;
}

/* ============================================================
   PROCESS PAGE
   ============================================================ */
.process-hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  background: #e8e6e3;
}
.process-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.process-section {
  background: var(--lime);
  padding: 100px 0 60px;
}
.process-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 90px;
}
.process-section__head h2 {
  font-size: clamp(38px, 4vw, 60px);
  color: var(--teal);
}
.process-section__head .idx { font-size: 12px; font-weight: 700; color: var(--teal); opacity: 0.7; display:block; margin-top: 6px; }
.process-section__head p {
  max-width: 240px;
  text-align: right;
  font-size: 13px;
  color: var(--teal);
  line-height: 1.5;
}
.process__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}
.process__number {
  position: sticky;
  top: 30vh;
  font-family: var(--font-display);
  font-size: clamp(90px, 11vw, 170px);
  line-height: 1;
  color: var(--orange);
}
.phase {
  display: grid;
  grid-template-columns: 130px minmax(0, 220px) 1fr;
  gap: 30px;
  padding: 44px 0;
  border-bottom: 1px solid rgba(16, 76, 91, 0.25);
}
.phase:last-child { border-bottom: none; }
/* fase attiva: stessa evidenziazione del numero sticky (zoom + colore) */
.process__phases .phase.is-in:not(.is-active) { opacity: 0.38; }
.phase { transition: opacity 0.5s ease, transform 0.9s var(--ease-out); }
.phase__title { transition: color 0.45s ease, transform 0.55s var(--ease-out); transform-origin: left bottom; }
.phase:not(.is-active) .phase__title { color: var(--teal); }
.phase.is-active .phase__title { color: var(--orange); transform: scale(1.07); }
.phase__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.phase__title {
  font-size: clamp(24px, 2.4vw, 36px);
  color: var(--orange);
}
.phase__desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--teal);
  max-width: 380px;
  justify-self: end;
}
/* divisore di sezione — stessa linea usata da fasi e award */
.section-divider {
  border: none;
  height: 1px;
  background: rgba(16, 76, 91, 0.25);
  margin: 50px 0 0;
}

/* ============================================================
   STUDIO PAGE
   ============================================================ */
/* hero semplice 100vh: niente tratto sticky che "congela" lo scroll iniziale */
.studio-hero {
  position: relative;
  background: var(--black);
}
.studio-hero__sticky {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  /* il video (150vh) eccede il contenitore: senza place-content la traccia
     partirebbe dall'alto e sborderebbe solo in basso, spostando il baffo giù */
  place-content: center;
}
/* loop verticale ingrandito 1.5x: riempie lo schermo in altezza,
   l'eccedenza viene ritagliata dal contenitore */
.studio-hero__sticky video {
  width: auto;
  height: 150vh;
}
.studio-hero h1 {
  position: absolute;
  top: calc(var(--nav-h) + 130px);
  left: var(--pad);
  font-size: clamp(28px, 2.6vw, 42px);
  color: var(--teal);
  max-width: 480px;
}
.studio-hero__note {
  position: absolute;
  right: var(--pad);
  bottom: 40px;
  max-width: 240px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--orange);
  text-align: left;
}

.studio-section {
  background: var(--lime);
  padding: 100px 0 80px;
}
.studio-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 70px;
}
.studio-section__head h2 {
  font-size: clamp(36px, 3.8vw, 58px);
  color: var(--teal);
}
.studio-section__head .idx {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.7;
  margin-top: 8px;
}
.studio-section__head p {
  max-width: 250px;
  text-align: right;
  font-size: 13px;
  line-height: 1.5;
  color: var(--teal);
}

/* achievements */
.achievements__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
.stat-card {
  background: linear-gradient(180deg, var(--teal) 20%, #0a3441 100%);
  border-radius: var(--radius);
  color: var(--white);
  padding: 26px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
/* card achievements tutte allineate, stessa altezza */
.stat-card .num {
  font-family: var(--font-display);
  font-size: clamp(40px, 3.6vw, 60px);
  line-height: 1;
}
.stat-card .num .unit { color: var(--orange); font-size: 0.62em; }
.stat-card .caption {
  margin-top: auto;
  padding-top: 30px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

/* awards */
.awards__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}
.awards__big-num {
  position: sticky;
  top: 32vh;
  font-family: var(--font-display);
  font-size: clamp(80px, 9vw, 140px);
  color: var(--orange);
  line-height: 1;
}
.award {
  display: grid;
  grid-template-columns: 130px minmax(0, 260px) 1fr;
  gap: 30px;
  padding: 38px 0;
  border-bottom: 1px solid rgba(16, 76, 91, 0.25);
}
.award:first-child { padding-top: 0; }
.award__cat {
  font-size: 12px;
  font-weight: 500;
  color: var(--teal);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.award__name {
  font-size: clamp(22px, 2.2vw, 32px);
  color: var(--orange);
}
.award__desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--teal);
  max-width: 360px;
  justify-self: end;
  text-transform: uppercase;
  font-weight: 500;
}

/* clients */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.client-card {
  background: var(--white);
  border-radius: var(--radius);
  aspect-ratio: 1.42 / 1;
  position: relative;
  display: grid;
  place-items: center;
  padding: 30px;
  overflow: hidden;
}
.client-card img { max-width: 55%; max-height: 55%; object-fit: contain; }
.client-card--dark { background: #10141f; }
.client-card--dark img { max-width: 70%; }
.client-card .year {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
}
.client-card--dark .year { color: var(--cream); }

/* philosophy */
.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
/* card compatte: si espandono solo in hover per mostrare l'immagine */
.phil-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  height: 150px;
  padding: 22px;
  overflow: hidden;
  transition: height 0.55s var(--ease-io);
}
.phil-card:hover { height: 420px; }
.phil-card h3 {
  font-size: clamp(20px, 1.7vw, 26px);
  color: var(--teal);
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
  max-width: 180px;
}
.phil-card .idx {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  z-index: 2;
}
.phil-card__img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.5s ease, transform 0.8s var(--ease-out);
  z-index: 1;
}
.phil-card__desc {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 46px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--white);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease 0.08s, transform 0.45s var(--ease-out) 0.08s;
  z-index: 2;
}
.phil-card:hover .phil-card__img { opacity: 1; transform: scale(1); }
.phil-card:hover h3 { color: var(--white); }
.phil-card:hover .phil-card__desc { opacity: 1; transform: none; }
.philosophy .studio-section__head p .hl { color: var(--orange); }

/* team — layout come il sito live: foto grande a destra ancorata in basso,
   info a sinistra centrate, thumbnail rettangolari in basso a sinistra */
.team {
  background: radial-gradient(130% 100% at 78% -10%, #1d5b6d 0%, var(--teal) 38%, #05202a 100%);
  color: var(--white);
  padding: 90px 0 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.team > .container { display: flex; flex-direction: column; flex: 1; }
.team__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.team__head h2 { font-size: clamp(36px, 3.8vw, 58px); color: var(--white); }
.team__head .idx {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 14px;
  margin-left: clamp(80px, 12vw, 225px);
}
.team__head p {
  max-width: 290px;
  text-align: left;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.team__stage {
  position: relative;
  flex: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 500px) 1fr;
  align-items: center;
}
.team__info { position: relative; z-index: 2; padding-bottom: 120px; }
.team__name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 32px);
  text-transform: uppercase;
}
.team__role {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--grey);
}
.team__quote {
  margin-top: 44px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  max-width: 480px;
  min-height: 70px;
}
.team__thumbs {
  position: absolute;
  left: 0;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 12px;
  margin: 0;
}
.team__thumb {
  width: 152px;
  height: 94px;
  border-radius: 6px;
  overflow: hidden;
  border: none;
  background: var(--lime);
  padding: 0;
  cursor: pointer;
  opacity: 0.45;
  filter: brightness(0.6) saturate(0.8);
  transition: opacity 0.35s ease, filter 0.35s ease;
}
.team__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}
/* le due foto scontornate hanno proporzioni diverse: inquadro il viso */
.team__thumb:nth-child(1) img { object-position: 50% 2%; }
.team__thumb:nth-child(2) img { object-position: 50% 22%; }
.team__thumb.is-active { opacity: 1; filter: none; }
.team__photo-wrap {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.team__photo {
  /* foto scontornate sul gradiente teal, croppate a mezzo busto:
     la foto è più grande e la parte sotto il petto scivola oltre il
     bordo della sezione (clippata da .team { overflow: hidden }) */
  width: auto;
  max-width: none; /* sfugge a img{max-width:100%}: senza, la larghezza si
                      cappava al contenitore e la foto usciva stirata */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.7s var(--ease-out);
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 30%;
}
/* altezza e offset per-foto: inquadrature diverse, stessa scala del viso
   (il viso di Matteo occupa ~23% del frame, quello di Alessio ~16%) */
.team__photo:nth-child(1) { height: min(70vh, 660px); translate: -50% 26%; }
.team__photo:nth-child(2) { height: min(100vh, 940px); translate: -50% 34%; }
.team__photo.is-active { opacity: 1; transform: translateY(0); }

/* ============================================================
   PROJECTS DECK (home) — PROVA v2 25/07: card sticky che si
   impilano allo scroll (quella coperta scala e si scurisce via
   --cov, guidata da main.js) + pill "View project" col cursore.
   Anatomia card = quella del sito live (stachestudio.eu):
   titolo centrato DM Sans 600 quasi bianco, barra meta bianca
   in basso (plus arancio + disciplina, anno Staatliches teal),
   raggio piccolo, crossfade immagine in hover.
   Se non convince: rimuovere questo blocco e ripristinare la
   griglia commentata in index.html.
   ============================================================ */
.deck { position: relative; }
.deck__card {
  position: sticky;
  top: var(--stick, 88px);
  display: block;
  height: calc(100vh - 195px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  transform: scale(calc(1 - var(--cov, 0) * 0.05));
  transform-origin: 50% 0;
}
/* spacer DEDICATI tra le card: un margin-bottom entrerebbe nel vincolo
   sticky e spingerebbe fuori le card impilate prima del tempo */
.deck__gap { height: 26vh; }
/* coda dopo l'ultima card: il mazzo completo resta pinnato per un tratto */
.deck__gap--end { height: 34vh; }
/* offset a gradini: le card restano pinnate tutte insieme e lasciano
   spuntare il bordo delle precedenti — effetto "mazzo di carte" */
.deck__card:nth-of-type(1) { --stick: 86px; }
.deck__card:nth-of-type(2) { --stick: 100px; }
.deck__card:nth-of-type(3) { --stick: 114px; }
.deck__card:nth-of-type(4) { --stick: 128px; }
.deck__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 52px); /* sopra la barra meta bianca */
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), opacity 0.5s ease;
}
.deck__img--b { opacity: 0; }
.deck__card:hover .deck__img { transform: scale(1.04); }
.deck__card:hover .deck__img--b { opacity: 1; }
/* leggero velo per la leggibilità del titolo centrato (come sul live) */
.deck__card .deck__title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.16);
  z-index: -1;
}
/* velo che scurisce la card mentre viene coperta dalla successiva */
.deck__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black);
  opacity: calc(var(--cov, 0) * 0.38);
  z-index: 6;
  pointer-events: none;
}
.deck__idx {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 3;
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
}
/* titolo centrato sull'immagine — stessa voce delle card del sito live */
.deck__title {
  position: absolute;
  inset: 0 0 52px 0;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 8%;
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #f2f2f2;
}
/* barra meta bianca in basso: plus arancio + disciplina · anno */
.deck__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: var(--white);
}
.deck__plus {
  position: relative;
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}
.deck__plus::before,
.deck__plus::after {
  content: "";
  position: absolute;
  background: var(--orange);
}
.deck__plus::before { left: 0; top: 4.5px; width: 11px; height: 2px; }
.deck__plus::after { left: 4.5px; top: 0; width: 2px; height: 11px; }
.deck__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
}
.deck__year {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--teal);
}
.deck__card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
/* pill che segue il cursore (posizionata da main.js, solo pointer fine) */
.deck__cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  scale: 0.7;
  transition: opacity 0.25s ease, scale 0.35s var(--ease-out);
}
.deck__cursor.is-on { opacity: 1; scale: 1; }
.deck__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 38px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.deck__all .arr { transition: transform 0.35s var(--ease-out); }
.deck__all:hover { color: var(--orange); }
.deck__all:hover .arr { transform: translateX(5px); }
@media (max-width: 980px) {
  .deck__card { height: calc(100vh - 168px); }
  .deck__gap { height: 20vh; }
  .deck__gap--end { height: 26vh; }
  .deck__card:nth-of-type(1) { --stick: 72px; }
  .deck__card:nth-of-type(2) { --stick: 84px; }
  .deck__card:nth-of-type(3) { --stick: 96px; }
  .deck__card:nth-of-type(4) { --stick: 108px; }
  .deck__title { font-size: clamp(20px, 5.4vw, 30px); }
  .deck__label { font-size: 11.5px; }
  .deck__cursor { display: none; }
}
@media (hover: none) {
  .deck__cursor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .deck__img, .deck__title, .deck__cursor, .deck__all .arr { transition: none; }
  .deck__card { transform: none; }
}

/* ============================================================
   PAGINE PROGETTO (work-*.html) — layout "know-your-ride"
   Rif. zoox.com/know-your-ride: hero zoom-out, split→expand,
   statement a parole, media stack, tabs, lista more-projects.
   Le variabili --pj* sono pilotate da assets/js/project.js;
   i loro DEFAULT rappresentano lo stato FINALE: senza JS (o in
   shot-mode / reduced-motion) la pagina è comunque completa.
   ============================================================ */

/* --- eyebrow comune --- */
.pj-eyebrow {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.pj-eyebrow .idx { color: var(--orange); margin-left: 6px; }

/* ------------------------------------------------------------
   HERO — striscia centrale che si allarga + zoom-out immagine
   ------------------------------------------------------------ */
.pj-hero {
  position: relative;
  height: 260vh;
  background: var(--lime);
}
.pj-hero__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: end center;
}
/* riquadro stondato centrato: parte "contain" (immagine intera, lime visibile
   tutt'attorno) e allo scroll cresce fino a riempire lo schermo. Dimensioni,
   raggio e offset verticale sono calcolati da project.js sull'aspect ratio
   reale dell'immagine; i default sono lo stato finale (full-bleed). */
.pj-hero__media {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--pjh-w, 100vw);
  height: var(--pjh-h, 100vh);
  transform: translate(-50%, calc(-50% + var(--pjh-y, 0px)));
  border-radius: var(--pjh-r, 0px);
  overflow: hidden;
}
.pj-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* scrim per la leggibilità del testo sul fondo dell'immagine */
.pj-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.58) 100%);
  opacity: var(--pjh-t, 1);
}
.pj-hero__text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad) clamp(36px, 6vh, 64px);
  max-width: 940px;
  opacity: var(--pjh-t, 1);
  transform: translateY(calc((1 - var(--pjh-t, 1)) * 40px));
}
.pj-hero__text .pj-eyebrow { color: var(--lime); margin-bottom: 18px; }
.pj-hero__text h1 {
  font-size: clamp(40px, 5.4vw, 84px);
  color: var(--white);
}
.pj-hero__desc {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--cream);
}

/* ------------------------------------------------------------
   META BAND
   ------------------------------------------------------------ */
.pj-metaband { background: var(--lime); padding: 44px 0 54px; }
.pj-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  border-top: 1px solid rgba(16, 76, 91, 0.3);
  padding-top: 22px;
}
.pj-meta__item .k {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(16, 76, 91, 0.7);
  margin-bottom: 8px;
}
.pj-meta__item .v {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ------------------------------------------------------------
   SPLIT → EXPAND — testo a sx, pannello sticky a dx che si
   espande a tutta larghezza; alla fine appare la card sfide
   ------------------------------------------------------------ */
.pj-split {
  position: relative;
  height: 340vh;
  background: var(--white);
}
.pj-split__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.pj-split__text {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 44%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6% 0 max(var(--pad), 4vw);
}
.pj-split__text .pj-eyebrow { margin-bottom: 22px; }
.pj-split__head {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--teal);
}
.pj-split__panel {
  position: absolute;
  top: 14px;
  bottom: 14px;
  right: 14px;
  width: var(--pjs-w, calc(100vw - 28px));
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
}
.pj-split__panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pj-split__imgB { opacity: var(--pjs-x, 1); transition: none; }
/* hotspot pulsanti (decorativi, come i marker zoox) */
.pj-hotspot {
  position: absolute;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.28);
  opacity: var(--pjs-d, 1);
  animation: pj-pulse 2.4s ease-in-out infinite;
  animation-delay: var(--hd, 0s);
}
@keyframes pj-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.28); }
  50% { box-shadow: 0 0 0 11px rgba(255, 255, 255, 0.12); }
}
/* card accordion sfide — appare a espansione completata */
.pj-panel-card {
  position: absolute;
  z-index: 4;
  left: 20px;
  bottom: 20px;
  width: min(400px, calc(100% - 40px));
  background: var(--white);
  border-radius: 14px;
  padding: 20px 22px 8px;
  opacity: var(--pjs-d, 1);
  transform: translateY(calc((1 - var(--pjs-d, 1)) * 36px));
}
.pj-panel-card .pj-eyebrow { margin-bottom: 6px; font-size: 10.5px; }
.pj-acc__item { border-top: 1px solid rgba(16, 76, 91, 0.14); }
.pj-acc__item:first-child { border-top: 0; }
.pj-acc__title { font-size: inherit; line-height: inherit; }
.pj-acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: none;
  border: 0;
  padding: 13px 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--teal);
}
.pj-acc__chip {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  position: relative;
  transition: transform 0.45s var(--ease-io), background 0.3s ease;
}
.pj-acc__chip::before,
.pj-acc__chip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  background: var(--teal);
  border-radius: 1px;
}
.pj-acc__chip::before { width: 12px; height: 2px; }
.pj-acc__chip::after { width: 2px; height: 12px; }
.pj-acc__head:hover .pj-acc__chip { background: var(--orange); }
.pj-acc__head:hover .pj-acc__chip::before,
.pj-acc__head:hover .pj-acc__chip::after { background: var(--white); }
.pj-acc__item.is-open .pj-acc__chip { transform: rotate(45deg); }
.pj-acc__body {
  display: grid;
  grid-template-rows: 0fr;
  /* visibility: i contenuti chiusi non restano esposti alla assistive tech */
  visibility: hidden;
  transition: grid-template-rows 0.55s var(--ease-io), visibility 0.55s;
}
.pj-acc__item.is-open .pj-acc__body { grid-template-rows: 1fr; visibility: visible; }
.pj-acc__body > p {
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(16, 76, 91, 0.85);
}
.pj-acc__item.is-open .pj-acc__body > p { padding-bottom: 14px; }

/* ------------------------------------------------------------
   STATEMENT — reveal parola per parola allo scroll
   ------------------------------------------------------------ */
.pj-statement {
  background: var(--lime);
  padding: clamp(120px, 24vh, 240px) 0;
  text-align: center;
}
.pj-statement .pj-eyebrow { margin-bottom: 26px; }
.pj-statement__text {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--teal);
  max-width: 980px;
  margin: 0 auto;
}
.pj-statement__text .hl { font-style: normal; color: var(--orange); }
/* nowrap: evita lo spezzone a metà parola sui trattini (BRAND-/FIRST.) */
.pj-statement__text .w { opacity: 0.16; transition: opacity 0.25s linear; white-space: nowrap; }
.pj-statement__text .w.is-on { opacity: 1; }

/* ------------------------------------------------------------
   MEDIA STACK — blocchi full-bleed con didascalie in alto a dx
   ------------------------------------------------------------ */
.pj-stack { background: var(--white); padding: 14px 0; }
.pj-stack__block {
  position: relative;
  height: 92vh;
  margin: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink);
}
.pj-stack__block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* il primo blocco si espande da "pillola" a blocco pieno */
.pj-stack__block--grow {
  width: calc((0.34 + 0.66 * var(--pjg, 1)) * (100vw - 28px));
  height: calc((0.24 + 0.76 * var(--pjg, 1)) * 92vh);
  border-radius: calc(18px + (1 - var(--pjg, 1)) * 60px);
  margin-left: auto;
  margin-right: auto;
}
.pj-stack__cap {
  position: absolute;
  top: 24px;
  right: 28px;
  max-width: 330px;
  text-align: right;
  z-index: 2;
}
.pj-stack__cap h3 {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}
.pj-stack__cap p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
}
/* scrim in alto per la leggibilità della didascalia */
.pj-stack__block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 42%;
  background: linear-gradient(200deg, rgba(0, 0, 0, 0.52), transparent 62%);
  z-index: 1;
  pointer-events: none;
}

/* ------------------------------------------------------------
   OUTCOME — testo a sx + card immagine a dx
   ------------------------------------------------------------ */
.pj-duo {
  background: var(--cream);
  padding: clamp(110px, 20vh, 200px) 0;
}
.pj-duo__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.pj-duo__text { max-width: 480px; justify-self: end; text-align: center; margin: 0 auto; }
.pj-duo__text .pj-eyebrow { margin-bottom: 22px; }
.pj-duo__head {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.3vw, 36px);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--teal);
}
.pj-duo__icon {
  display: inline-block;
  width: 34px;
  height: 16px;
  margin-top: 26px;
  background: var(--teal);
  -webkit-mask: url("../img/icon-mustache.svg") center / contain no-repeat;
  mask: url("../img/icon-mustache.svg") center / contain no-repeat;
}
.pj-duo__card {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.pj-duo__card img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------
   NUMBERS — quote + tab statistiche (sezione scura)
   ------------------------------------------------------------ */
.pj-tabs {
  background: var(--black);
  padding: clamp(110px, 18vh, 190px) 0 90px;
  text-align: center;
}
.pj-tabs__quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--white);
  max-width: 950px;
  margin: 0 auto;
}
.pj-tabs__author {
  display: block;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lime);
}
.pj-tabs__meta {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-2);
}
.pj-tabs__stage {
  position: relative;
  display: grid;
  margin-top: clamp(60px, 9vh, 100px);
  text-align: left;
}
.pj-tab-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s var(--ease-out);
  pointer-events: none;
  visibility: hidden;
}
.pj-tab-panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}
.pj-tab-panel__media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.pj-tab-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.pj-tab-panel__stat .num {
  font-family: var(--font-display);
  font-size: clamp(80px, 9.5vw, 150px);
  line-height: 0.9;
  color: var(--orange);
}
.pj-tab-panel__stat .unit {
  font-size: 0.42em;
  margin-left: 8px;
  color: var(--lime);
}
.pj-tab-panel__stat .caption {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cream);
  max-width: 320px;
}
.pj-tabs__bar {
  display: inline-flex;
  gap: 8px;
  margin-top: clamp(40px, 7vh, 70px);
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}
.pj-tab {
  border: 1px solid transparent;
  background: none;
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.35s ease, color 0.35s ease;
}
.pj-tab:hover { color: var(--lime); }
.pj-tab.is-active { background: var(--white); color: var(--black); }

/* ------------------------------------------------------------
   CTA — card immagine + titolo + pill
   ------------------------------------------------------------ */
.pj-cta {
  background: var(--white);
  padding: clamp(110px, 18vh, 190px) 0;
  text-align: center;
}
.pj-cta__card {
  position: relative;
  width: min(560px, 86vw);
  margin: 0 auto 44px;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.pj-cta__card img { width: 100%; height: 100%; object-fit: cover; }
.pj-cta__pill {
  position: absolute;
  bottom: 14px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}
.pj-cta__pill--a {
  left: 14px;
  background: var(--lime);
  color: var(--ink);
  rotate: -3deg;
}
.pj-cta__pill--b {
  right: 14px;
  background: var(--teal);
  color: var(--white);
  rotate: 2deg;
}
.pj-cta__head {
  font-size: clamp(30px, 3.6vw, 52px);
  color: var(--teal);
  max-width: 700px;
  margin: 18px auto 0;
}
.pj-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  background: var(--teal);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 999px;
  transition: background 0.35s ease;
}
.pj-cta__btn .arr { transition: transform 0.35s var(--ease-out); }
.pj-cta__btn:hover { background: var(--orange); }
.pj-cta__btn:hover .arr { transform: translateX(5px); }

/* ------------------------------------------------------------
   MORE PROJECTS — lista con thumbnail in hover
   ------------------------------------------------------------ */
.pj-more {
  background: var(--white);
  border-top: 1px solid rgba(16, 76, 91, 0.16);
  padding: clamp(80px, 12vh, 140px) 0 clamp(90px, 14vh, 160px);
}
.pj-more .pj-eyebrow { margin-bottom: 30px; }
.pj-more__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(16, 76, 91, 0.16);
}
.pj-more__row:first-child { border-top: 1px solid rgba(16, 76, 91, 0.16); }
.pj-more__name {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--teal);
  transition: transform 0.45s var(--ease-out);
}
.pj-more__chip {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  color: var(--teal);
  font-size: 18px;
  line-height: 1;
  transition: background 0.35s ease, color 0.35s ease, transform 0.45s var(--ease-out);
}
.pj-more__chip .arr { translate: 0 -1px; }
.pj-more__label {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(16, 76, 91, 0.6);
}
.pj-more__thumb {
  position: absolute;
  right: 18%;
  top: 50%;
  width: 168px;
  height: 106px;
  object-fit: cover;
  border-radius: 10px;
  z-index: 2;
  opacity: 0;
  transform: translateY(-50%) rotate(-7deg) scale(0.88);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
  pointer-events: none;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}
.pj-more__row:hover .pj-more__name { transform: translateX(8px); }
.pj-more__row:hover .pj-more__chip {
  background: var(--orange);
  color: var(--white);
  transform: translateX(4px);
}
.pj-more__row:hover .pj-more__thumb {
  opacity: 1;
  transform: translateY(-50%) rotate(3deg) scale(1);
}

/* ------------------------------------------------------------
   Focus da tastiera + reduced motion
   ------------------------------------------------------------ */
.pj-tab:focus-visible,
.pj-acc__head:focus-visible,
.pj-cta__btn:focus-visible,
.pj-more__row:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .pj-hotspot { animation: none; }
  .pj-statement__text .w,
  .pj-tab-panel,
  .pj-acc__body,
  .pj-more__thumb,
  .pj-more__name,
  .pj-more__chip { transition: none; }
}

/* ------------------------------------------------------------
   RESPONSIVE pagine progetto
   ------------------------------------------------------------ */
@media (max-width: 980px) {
  .pj-hero { height: 190vh; }
  .pj-hero__text h1 { font-size: clamp(34px, 9vw, 54px); }
  .pj-meta { grid-template-columns: 1fr 1fr; }
  /* split: niente pin/espansione — layout impilato */
  .pj-split { height: auto; }
  .pj-split__pin { position: static; height: auto; overflow: visible; }
  .pj-split__text {
    position: static;
    width: auto;
    padding: 70px var(--pad) 40px;
  }
  .pj-split__panel {
    position: relative;
    inset: auto;
    width: auto;
    margin: 0 14px;
    height: 68vh;
  }
  .pj-split__imgB { opacity: 1; }
  .pj-panel-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: 14px 14px 40px;
    opacity: 1;
    transform: none;
  }
  .pj-hotspot { opacity: 1; }
  .pj-stack__block { height: 54vh; }
  .pj-stack__block--grow { width: auto; height: 54vh; border-radius: 18px; }
  .pj-stack__cap { right: 18px; top: 16px; max-width: 260px; }
  .pj-duo__inner { grid-template-columns: 1fr; }
  .pj-duo__text { justify-self: start; }
  .pj-tab-panel { grid-template-columns: 1fr; gap: 26px; }
  .pj-tabs__bar { flex-wrap: wrap; justify-content: center; }
  .pj-more__label { display: none; }
  .pj-more__thumb { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .services__list .service__body-inner { grid-template-columns: 40px 1fr; }
  .service__media { grid-column: 2; justify-self: start; width: min(420px, 80vw); }
  .why__grid, .why__grid.row2 { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .testimonial { grid-template-columns: 1fr; }
  .testimonial__divider { display: none; }
  .faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__grid { grid-template-columns: 1fr; gap: 50px; }
  .contact__respond { margin-top: 40px; }
  .process__grid { grid-template-columns: 1fr; }
  .process__number { position: static; }
  .phase { grid-template-columns: 1fr; gap: 12px; }
  .phase__desc { justify-self: start; }
  .achievements__grid { grid-template-columns: 1fr 1fr; }
  .awards__grid { grid-template-columns: 1fr; }
  .awards__big-num { position: static; }
  .award { grid-template-columns: 1fr; gap: 12px; }
  .award__desc { justify-self: start; }
  .clients__grid { grid-template-columns: 1fr 1fr; }
  .philosophy__grid { grid-template-columns: 1fr 1fr; }
  .team__stage { grid-template-columns: 1fr; }
  .team__photo { position: relative; }
  .footer__bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
  .manifesto__row { flex-direction: column; gap: 30px; }
  .manifesto__tagline { max-width: none; }
}

/* ============================================================
   MOBILE — rifinitura completa (audit 26/07, viewport 390px)
   In coda al foglio: vince la cascata sulle regole precedenti.
   ============================================================ */
@media (max-width: 980px) {
  /* nav: il burger resta sempre visibile e tappabile anche in stato
     mini (la regola desktop .nav.is-mini lo nascondeva per specificità) */
  .nav.is-mini .nav__burger { opacity: 1; transform: none; pointer-events: auto; }

  /* hero home: titolo e quote impilati invece che affiancati */
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 70px; }
  .hero__title { font-size: clamp(46px, 13.5vw, 60px); }
  .hero__quote { text-align: left; font-size: 14px; }

  /* manifesto: pin più corto e video quasi a tutta larghezza */
  .manifesto__intro { height: 175vh; }
  .manifesto__video-wrap video { width: 92vw; }
  .manifesto__row { padding-top: 12vh; }
  .manifesto__tagline { font-size: clamp(20px, 5.6vw, 26px); }

  /* menu overlay: link centrati in verticale, gerarchia piena */
  .menu__content { justify-content: space-between; }
  .menu__links { flex: 1; justify-content: center; gap: 10px; }
  .menu__links a { font-size: clamp(44px, 12.5vw, 58px); }
  .menu__bottom { padding-bottom: 18px; }

  /* process */
  .process-hero { height: 58vh; min-height: 380px; }
  .phase { padding: 34px 0; gap: 14px; }
  .phase__title { font-size: clamp(24px, 7.6vw, 30px); }
  .phase.is-active .phase__title { transform: none; }
  /* senza il numerone sticky, attenuare le fasi non attive confonde */
  .process__phases .phase.is-in:not(.is-active) { opacity: 1; }

  /* studio hero */
  .studio-hero__sticky { height: 88vh; }
  .studio-hero__sticky video { height: 118vh; }
  .studio-hero h1 { font-size: clamp(30px, 8.4vw, 38px); max-width: 320px; top: calc(var(--nav-h) + 76px); }
  .studio-hero__note { right: auto; left: var(--pad); bottom: 26px; max-width: 300px; }

  /* team: layout impilato, foto contenuta nel riquadro
     (prima le foto scontornate allargavano la pagina a ~1150px) */
  .team { min-height: 0; padding: 70px 0 0; }
  .team__head { flex-direction: column; gap: 14px; }
  .team__head .idx { margin-left: 0; margin-top: 4px; }
  .team__stage { grid-template-columns: 1fr; min-height: 0; }
  .team__info { padding-bottom: 20px; }
  .team__quote { max-width: 100%; margin-top: 26px; }
  .team__photo-wrap { position: relative; width: 100%; height: 44vh; min-height: 300px; overflow: hidden; }
  .team__photo { position: absolute; bottom: 0; left: 50%; width: auto; }
  .team__photo:nth-child(1) { height: 125%; translate: -50% 16%; }
  .team__photo:nth-child(2) { height: 165%; translate: -50% 24%; }
  .team__thumbs { position: static; margin: 16px 0 30px; }

  /* footer: legal strip leggibile e link con area di tocco vera */
  .footer__cta { padding: 10px 0; }
  .footer__col a { display: inline-block; padding: 7px 0; }
  .footer__copy, .footer__made, .footer__totop { font-size: 11.5px; }
  .footer__totop { padding: 11px 20px; }
  .deck__all { padding: 12px 0; }
  .form__terms a { display: inline-block; padding: 6px 0; }

  /* pagine progetto: eyebrow della card leggibile */
  .pj-panel-card .pj-eyebrow { font-size: 11px; }
}

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

/* touch: niente hover — le card philosophy si mostrano già aperte */
@media (hover: none) {
  .phil-card { height: auto; min-height: 330px; }
  .phil-card__img { opacity: 1; transform: none; }
  .phil-card h3 { color: var(--white); }
  .phil-card__desc { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE v2 — secondo passaggio (26/07, sessione successiva)
   Deve restare l'ULTIMO blocco del foglio: vince la cascata su
   tutte le regole responsive precedenti.
   ============================================================ */

/* ---- HEADER -------------------------------------------------
   Sotto i ~780px il cluster destro (chip lingua + CTA) finiva
   SOPRA la pill centrata e copriva il wordmark: la somma di
   burger (44) + pill (272) + chip (44) + CTA (145) non ci sta.
   Sotto quella soglia la CTA esce dall'header (resta nel menu,
   nella sezione contact e nel footer) e la barra si stringe
   attorno al solo wordmark: burger a sinistra, marchio al
   centro, chip lingua a destra, spaziature simmetriche. */
@media (max-width: 780px) {
  .nav__cta { display: none; }
  /* larghezza fluida: lascia sempre ~92px liberi per lato
     (44 del tondo + 31 di margine + respiro) */
  .nav__bar { width: min(186px, 100vw - 184px); }
  /* in stato pill la barra torna piena e i due tondi ci stanno
     dentro: nessuna sovrapposizione perché la CTA non c'è più */
}
@media (max-width: 400px) {
  .nav { padding-left: 16px; padding-right: 16px; }
  .nav__burger { left: 16px; }
  .nav__right { right: 16px; }
  .nav__bar { width: min(186px, 100vw - 154px); }
}

@media (max-width: 980px) {
  /* ---- HERO home ------------------------------------------
     Il titolo è teal su un fotogramma grigio scuro del video:
     su telefono il contrasto crollava. Velo chiaro solo nella
     fascia bassa, così il teal e l'arancio tornano leggibili
     senza toccare la palette. */
  .hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(241, 237, 233, 0.72), rgba(241, 237, 233, 0));
  }
  .hero__bottom, .hero__scroll { z-index: 2; }

  /* ---- MANIFESTO ------------------------------------------
     Il video è un baffo centrato con molto nero attorno: a 92vw
     restava un francobollo in mezzo allo schermo. Ingrandito e
     ritagliato dal wrap (che ha overflow hidden).
     max-width: none è obbligatorio, altrimenti il globale
     img,video{max-width:100%} lo ricapperebbe a 390px. */
  /* place-content OLTRE a place-items: quando la traccia è più larga
     del contenitore, place-items da solo non la ricentra e il baffo
     sborda tutto a destra (stesso inciampo della hero di studio) */
  .manifesto__video-wrap { place-content: center; }
  .manifesto__video-wrap video { width: 140vw; max-width: none; }
  /* la coda di 26vh lasciava mezzo schermo nero vuoto */
  .manifesto__statement { padding: 7vh var(--pad) 12vh; }

  /* ---- SERVIZI --------------------------------------------
     La lista è full-bleed: su desktop è voluto, su telefono
     l'indice e la pill arancio finivano incollati ai bordi.
     Colonne fluide (la 2a era fissa a 280px) e padding vero. */
  .services-head { padding: 62px 0 44px; }
  .services-head__label { margin-bottom: 26px; }
  .services__list { padding: 8px 0; }
  .service__head {
    grid-template-columns: 26px minmax(0, 1fr) 14px;
    gap: 14px;
    padding: 22px var(--pad);
  }
  .service__index { font-size: 15px; }
  .service__title { font-size: clamp(24px, 7vw, 32px); }
  .service__body-inner {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 14px;
    padding: 0 var(--pad);
  }
  .service__media { grid-column: 2; width: 100%; }

  /* ---- WHY CHOOSE -----------------------------------------
     Le card avevano min-height da desktop e margin auto sulle
     statistiche: in colonna singola diventavano voragini. */
  .why { padding: 66px 0 56px; }
  .why__head { margin-bottom: 34px; }
  .why__label { margin-bottom: 26px; }
  .card { min-height: 0; padding: 26px 24px; }
  .card__label { margin-bottom: 16px; }
  .card__stat { margin: 22px 0; align-self: flex-start; }
  .card--teal .card__stat { align-self: flex-start; }
  .card__body { margin-top: 0; max-width: none; }

  /* ---- PROGETTI (home + work) ------------------------------
     Testata in colonna: l'occhiello a destra si riduceva a una
     colonna di 160px con il testo a bandiera. */
  .projects { padding: 56px 0 70px; }
  .projects__head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
  .projects__intro { max-width: none; text-align: left; }
  .page-hero { padding: calc(var(--nav-h) + 48px) 0 40px; }
  .page-hero__row { flex-direction: column; gap: 16px; }
  .page-hero__sub { padding-top: 0; }
  .page-hero__desc { max-width: none; text-align: left; }
  /* Titolo sopra la foto: su schermo piccolo il testo cade in mezzo
     alla cover (schermi chiari, logo dei progetti) e diventava
     illeggibile. Velo scuro sull'immagine più ombra sul testo:
     l'impaginazione resta quella del sito live. */
  .deck__title, .project-card__title {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
    background: radial-gradient(125% 72% at 50% 46%, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2) 68%, rgba(0, 0, 0, 0.06));
  }

  /* ---- TESTIMONIAL / FAQ / CONTACT -------------------------
     Code di sezione da 110-130px: su telefono erano schermate
     intere di colore pieno. */
  .testimonials { padding: 52px 0 62px; }
  .testimonials__head { margin-bottom: 28px; }
  .faq { padding: 52px 0 62px; }
  .contact { padding: 62px 0 72px; }
  .contact__respond { margin-top: 34px; }

  /* ---- STUDIO hero ----------------------------------------
     Il video verticale veniva cappato a 390px di larghezza dal
     max-width globale: con height 118vh il box restava 390x996
     e object-fit contain lo impaginava a francobollo con due
     bande nere. Tolto il cap, il video torna alle sue
     proporzioni e riempie il riquadro (l'eccedenza la taglia
     .studio-hero__sticky, che ha overflow hidden). */
  .studio-hero__sticky video { max-width: none; }

  /* ---- PAGINE PROGETTO -------------------------------------
     24vh sopra e sotto lo statement diventavano mezzo schermo
     di lime vuoto per lato. */
  .pj-statement { padding: clamp(58px, 11vh, 110px) 0; }
  .pj-meta { padding-top: 34px; padding-bottom: 34px; }

  /* ultimo tap target sotto i 30px: Terms / Privacy sotto il form */
  .form__terms a { padding: 9px 0; }

  /* ---- MENU overlay ---------------------------------------
     space-between su 3 pill che vanno a capo lasciava una
     voragine tra la prima e la seconda e l'ultima orfana:
     in colonna stretta le pill si allineano e basta. */
  .menu__socials { justify-content: flex-start; gap: 10px; }
}
