/* ═══════════════════════════════════════════════════════════════════════════
   ESTRO — THIN LINE
   Livello di design per le pagine Prodotto.

   Due compiti, e solo due:
     1. HERO UNICA — le quattro pagine condividono la composizione di Eva:
        titolo bianco a sinistra, scala e pesi identici, media a tutta
        pagina con la stessa velatura. Le differenze storiche fra le
        quattro varianti vengono azzerate qui.
     2. FILO SOTTILE — il linguaggio di movimento del sito Estro: cornici a
        fili, linee che si disegnano, titoli che entrano parola per parola,
        la linea di scansione che attraversa le sezioni scure.

   Il contenuto non è toccato: solo composizione, tratti e tempi.
   common.css resta la base; questo file è il livello successivo.

   Ordine di caricamento: tokens.css → common.css → thin-line.css
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --tl-pink: #db005a;

  /* fili */
  --tl-line-light: rgba(0, 0, 0, .13);
  --tl-line-dark: rgba(255, 255, 255, .17);
  --tl-line-pink: rgba(219, 0, 90, .55);

  /* il filo che si disegna sopra il filetto esistente */
  --tl-draw-light: rgba(0, 0, 0, .32);
  --tl-draw-dark: rgba(255, 255, 255, .42);

  /* tempi */
  --tl-ease: cubic-bezier(.22, 1, .36, 1);
  --tl-ease-line: cubic-bezier(.16, 1, .3, 1);
  --tl-dur: .9s;
  --tl-stagger: .055s;
}

/* ─────────────────────────────────────────────────────────────────────────
   1. HERO UNICA
   Le quattro hero sono un unico sistema. Qui si azzera tutto ciò che le
   divideva: allineamento, scala del titolo, peso, misura del sommario,
   posizione dei media e velatura sopra il video.
   ───────────────────────────────────────────────────────────────────────── */

.hero {
  height: 100svh;
  min-height: 800px;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 160px 5% 110px;
}

.hero .hero-content {
  max-width: 720px;
  width: 100%;
  margin: 0;
}

.hero .hero-kicker,
.hero .hero-actions {
  justify-content: flex-start;
}

.hero .hero-kicker {
  margin-bottom: 44px;
  font-size: 10px;
  letter-spacing: .17em;
}

.hero .eyebrow {
  display: block;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  font-size: 11px;
  color: #d4cbdc;
}

.hero h1.eva-title {
  display: flex;
  flex-wrap: wrap;
  gap: .12em .25em;
  max-width: 720px;
  margin: 0 0 28px;
  font: 700 clamp(28px, 3.1vw, 46px)/1.08 var(--display);
  letter-spacing: -.01em;
  text-align: left;
  text-transform: none;
  color: #fff;
  background: none;
}

.hero h1.eva-title > span {
  display: inline-block;
  color: #fff;
  background: none;
}

.hero .hero-sub {
  margin: 0;
  max-width: 355px;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: #e4dfe9;
}

.hero .hero-actions {
  margin-top: 32px;
  gap: 14px;
}

/* media: stessa regola per tutti, bordi pieni, velatura a due livelli */
.hero .hero-media {
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  overflow: hidden;
  background: #060512;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero .hero-media video,
.hero .hero-media .globe-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.hero .hero-media::after {
  background: linear-gradient(90deg, #080611c4, transparent 85%),
              linear-gradient(0deg, #07060e, transparent 60%);
}

/* ─────────────────────────────────────────────────────────────────────────
   2. AZZERAMENTO DELLE VARIANTI STORICHE
   Le regole qui sotto hanno la stessa specificità di quelle ereditate da
   common.css e arrivano dopo: per questo vincono.
   ───────────────────────────────────────────────────────────────────────── */

.hero-radar .hero-content,
.hero-eva .hero-content,
.hero-ospita .hero-content,
.hero-estrocore .hero-content {
  margin: 0;
  max-width: 720px;
}

.hero-radar .hero-kicker,
.hero-radar .hero-actions,
.hero-ospita .hero-kicker,
.hero-ospita .hero-actions,
.hero-estrocore .hero-kicker,
.hero-estrocore .hero-actions {
  justify-content: flex-start;
}

.hero-radar .eyebrow,
.hero-ospita .eyebrow,
.hero-estrocore .eyebrow {
  display: block;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  font-size: 11px;
  color: #d4cbdc;
}

.hero-radar h1,
.hero-ospita h1,
.hero-estrocore h1 {
  max-width: 720px;
  margin: 0 0 28px;
  font: 700 clamp(28px, 3.1vw, 46px)/1.08 var(--display);
  letter-spacing: -.01em;
  text-align: left;
  text-transform: none;
  color: #fff;
  background: none;
}

.hero h1 > span:last-child,
.hero-radar h1 > span:last-child,
.hero-ospita h1 > span:last-child,
.hero-estrocore h1 > span:last-child {
  color: #fff;
  background: none;
}

.hero-radar .hero-sub,
.hero-ospita .hero-sub,
.hero-estrocore .hero-sub {
  margin: 0;
  max-width: 355px;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: #e4dfe9;
}

.hero-radar .hero-media,
.hero-ospita .hero-media,
.hero-estrocore .hero-media {
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  -webkit-mask-image: none;
  mask-image: none;
  background: #060512;
}

.hero-radar .globe-still,
.hero-radar video,
.hero-ospita .hero-media video,
.hero-estrocore .hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
}

/* Radar: la foto resta la copertina, il video la sostituisce in dissolvenza */
.hero-radar video {
  opacity: 0;
  transition: opacity 1s;
}

.hero-radar video.ready {
  opacity: 1;
}

/* Ospita: il video prende il posto del vuoto, con la stessa velatura */
.hero-ospita .ospita-quiet {
  background: #060512;
}

.hero-radar .hero-media::after,
.hero-ospita .hero-media::after,
.hero-estrocore .hero-media::after {
  background: linear-gradient(90deg, #080611c4, transparent 85%),
              linear-gradient(0deg, #07060e, transparent 60%);
}

/* ─────────────────────────────────────────────────────────────────────────
   3. CORNICE A FILO — la hero come inquadratura
   Griglia di riferimento, linea di scansione, angoli e righello laterale.
   ───────────────────────────────────────────────────────────────────────── */

.tl-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.tl-frame__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 48%, #000 0%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 48%, #000 0%, transparent 76%);
}

.tl-frame__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg,
              transparent 0%,
              rgba(219, 0, 90, 0) 14%,
              rgba(219, 0, 90, .7) 50%,
              rgba(219, 0, 90, 0) 86%,
              transparent 100%);
  animation: tl-scan 7.5s cubic-bezier(.4, 0, .6, 1) infinite;
}

@keyframes tl-scan {
  0%   { top: -2px; opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.tl-frame__corner {
  position: absolute;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: 0 solid var(--tl-pink);
  opacity: .9;
}

.tl-frame__corner--tl { top: 104px; left: 5%; border-top-width: 1px; border-left-width: 1px; }
.tl-frame__corner--tr { top: 104px; right: 5%; border-top-width: 1px; border-right-width: 1px; }
/* in basso gli angoli inquadrano la barra dei crediti e restano lontani
   dal pulsante "Pausa movimento", che sta più in alto */
.tl-frame__corner--bl { bottom: 18px; left: 5%; border-bottom-width: 1px; border-left-width: 1px; opacity: .45; }
.tl-frame__corner--br { bottom: 18px; right: 5%; border-bottom-width: 1px; border-right-width: 1px; opacity: .45; }

.tl-frame__ruler {
  position: absolute;
  z-index: 2;
  right: calc(5% - 20px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 14px;
  height: 32%;
}

.tl-frame__ruler i {
  display: block;
  width: 8px;
  height: 1px;
  margin-left: auto;
  background: rgba(255, 255, 255, .22);
}

.tl-frame__ruler i:first-child,
.tl-frame__ruler i:last-child {
  width: 14px;
  background: rgba(219, 0, 90, .5);
}

/* il testo sta sopra la cornice: resta leggibile */
.hero .hero-content {
  position: relative;
  z-index: 2;
}

/* ─────────────────────────────────────────────────────────────────────────
   4. INGRESSO DELLA HERO
   Kicker, occhiello, sommario e azioni salgono in sequenza. Il titolo lo
   gestisce Framer Motion (eva.js): non si tocca.
   ───────────────────────────────────────────────────────────────────────── */

html.tl-ready .hero .hero-kicker,
html.tl-ready .hero .eyebrow,
html.tl-ready .hero .hero-sub,
html.tl-ready .hero .hero-actions {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--tl-dur) var(--tl-ease), transform var(--tl-dur) var(--tl-ease);
}

html.tl-ready .hero.tl-in .hero-kicker { transition-delay: .22s; }
html.tl-ready .hero.tl-in .eyebrow     { transition-delay: .34s; }
html.tl-ready .hero.tl-in .hero-sub    { transition-delay: .56s; }
html.tl-ready .hero.tl-in .hero-actions { transition-delay: .72s; }

html.tl-ready .hero.tl-in .hero-kicker,
html.tl-ready .hero.tl-in .eyebrow,
html.tl-ready .hero.tl-in .hero-sub,
html.tl-ready .hero.tl-in .hero-actions {
  opacity: 1;
  transform: none;
}

/* il filo sotto la barra in fondo */
.tl-hero-hair {
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 1px;
  background: rgba(255, 255, 255, .22);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s var(--tl-ease-line) .9s;
}

html.tl-ready .hero.tl-in .tl-hero-hair {
  transform: scaleX(1);
}

/* ─────────────────────────────────────────────────────────────────────────
   5. FILI CHE SI DISEGNANO
   Ogni riga superiore diventa un filo animato: parte da sinistra e si
   estende fino al bordo quando l'elemento entra in scena.
   ───────────────────────────────────────────────────────────────────────── */

html.tl-ready .tl-draw {
  position: relative;
}

html.tl-ready .tl-hair {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--tl-draw-light);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.15s var(--tl-ease-line), background var(--dur-fast, .18s) linear;
}

html.tl-ready .tl-draw--dark .tl-hair {
  background: var(--tl-draw-dark);
}

html.tl-ready .tl-draw.tl-in .tl-hair {
  transform: scaleX(1);
}

/* al passaggio del mouse il filo diventa rosa: è il gesto di Estro */
html.tl-ready .tl-draw:hover > .tl-hair {
  background: var(--tl-pink);
}

/* il filo della cancelleria: una linea sottile che segue l'etichetta */
.section-label .tl-rule {
  flex: 1;
  height: 1px;
  align-self: center;
  background: var(--tl-line-light);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.15s var(--tl-ease-line) .12s;
}

.is-dark .section-label .tl-rule,
.founder-note .section-label .tl-rule {
  background: var(--tl-line-dark);
}

html.tl-ready .tl-in .section-label .tl-rule,
html.tl-ready .section-label.tl-in .tl-rule {
  transform: scaleX(1);
}

/* ─────────────────────────────────────────────────────────────────────────
   6. TITOLI PAROLA PER PAROLA
   Le parole dei titoli di sezione salgono una dopo l'altra.
   ───────────────────────────────────────────────────────────────────────── */

html.tl-ready .tl-w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.26em);
  transition: opacity .75s var(--tl-ease), transform .75s var(--tl-ease);
  transition-delay: calc(var(--tl-i, 0) * var(--tl-stagger));
}

html.tl-ready .tl-words.tl-in .tl-w {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   7. SCANSIONE NELLE SEZIONI SCURE
   Le sezioni a fondo nero ricevono la stessa linea di scansione della
   hero, più lenta e più tenue, e una griglia di riferimento.
   ───────────────────────────────────────────────────────────────────────── */

/* La sezione resta senza overflow nascosto: la massa ambigua e i
   diagrammi che escono dal bordo devono continuare a uscire. */
.tl-scan-section {
  position: relative;
}

.tl-scan-section > .tl-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 1px;
  z-index: 0;
  background: linear-gradient(90deg,
              transparent 0%,
              rgba(219, 0, 90, 0) 16%,
              rgba(219, 0, 90, .45) 50%,
              rgba(219, 0, 90, 0) 84%,
              transparent 100%);
  animation: tl-scan 11s cubic-bezier(.4, 0, .6, 1) infinite;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   7b. FONDO TECNICO — puntini e alone
   Il fondo di ogni sezione è uno strato, non un elemento: il testo non
   si sposta e l'ordine degli strati non si complica.

   I puntini sono il reticolo tecnico del sito Estro, portati in una
   scala più fine. L'alone fucsia porta la profondità.
   ───────────────────────────────────────────────────────────────────────── */

.tl-textured {
  background-repeat: no-repeat;
}

/* fondo chiaro */
.tl-textured.tl-light {
  background-image:
    radial-gradient(ellipse 52% 58% at 88% 4%, rgba(219, 0, 90, .05) 0%, transparent 72%),
    radial-gradient(circle at 1px 1px, rgba(0, 0, 0, .052) 1px, transparent 1.15px);
  background-size: 100% 100%, 26px 26px;
  background-repeat: no-repeat, repeat;
}

/* fondo scuro */
.tl-textured.tl-dark {
  background-image:
    radial-gradient(ellipse 52% 58% at 88% 4%, rgba(219, 0, 90, .1) 0%, transparent 72%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .055) 1px, transparent 1.15px);
  background-size: 100% 100%, 26px 26px;
  background-repeat: no-repeat, repeat;
}

/* fondo fucsia */
.tl-textured.tl-pink {
  background-image:
    radial-gradient(ellipse 52% 58% at 12% 4%, rgba(255, 255, 255, .13) 0%, transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .1) 1px, transparent 1.15px);
  background-size: 100% 100%, 26px 26px;
  background-repeat: no-repeat, repeat;
}

/* la pagina indice ha il fondo nero su body */
html.tl-hub body {
  background-image:
    radial-gradient(ellipse 58% 46% at 86% 6%, rgba(219, 0, 90, .12) 0%, transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 1.15px);
  background-size: 100% 100%, 26px 26px;
  background-repeat: no-repeat, repeat;
}

/* ─────────────────────────────────────────────────────────────────────────
   7c. GRANA DI PAGINA
   La pellicola di rumore del sito Estro: un velo unico sopra tutto,
   appena percettibile, che toglie il fondo piatto alle sezioni.
   ───────────────────────────────────────────────────────────────────────── */

html.tl-ready body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.038'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ─────────────────────────────────────────────────────────────────────────
   7d. SALITA DELLE SCHEDE (pagina indice)
   ───────────────────────────────────────────────────────────────────────── */

html.tl-ready .tl-rise {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--tl-ease), transform .9s var(--tl-ease);
  transition-delay: calc(var(--tl-i, 0) * .08s);
}

html.tl-ready .tl-rise.tl-in {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   8. I FILI DEI DIAGRAMMI
   Le linguette di collegamento fra i blocchi del diagramma di decisione
   si disegnano dall'alto verso il basso quando la sezione entra in scena.
   ───────────────────────────────────────────────────────────────────────── */

html.tl-ready .decision-map .decision-check::before,
html.tl-ready .decision-map .decision-branches::before {
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .8s var(--tl-ease-line);
}

html.tl-ready .decision-map.tl-in .decision-check::before,
html.tl-ready .decision-map.tl-in .decision-branches::before {
  transform: scaleY(1);
}

html.tl-ready .decision-map .decision-branches article::before {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .9s var(--tl-ease-line) .25s;
}

html.tl-ready .decision-map.tl-in .decision-branches article::before {
  transform: scaleX(1);
}

html.tl-ready .decision-map.tl-in .decision-branches article:last-child::before {
  transform-origin: right center;
}

/* ─────────────────────────────────────────────────────────────────────────
   9. CONTATORI
   I numeri delle metriche salgono da zero quando arrivano in scena.
   ───────────────────────────────────────────────────────────────────────── */

html.tl-ready .metrics strong {
  font-variant-numeric: tabular-nums;
}

/* ─────────────────────────────────────────────────────────────────────────
   10. PAUSA MOVIMENTO E MOVIMENTO RIDOTTO
   ───────────────────────────────────────────────────────────────────────── */

body.motion-paused .tl-frame__scan,
body.motion-paused .tl-scan-section > .tl-scan {
  animation-play-state: paused;
}

body.motion-paused .tl-w,
body.motion-paused .tl-hair,
body.motion-paused .tl-rule,
body.motion-paused .tl-rise,
body.motion-paused .decision-map .decision-check::before,
body.motion-paused .decision-map .decision-branches::before,
body.motion-paused .decision-map .decision-branches article::before,
body.motion-paused .hero .hero-kicker,
body.motion-paused .hero .eyebrow,
body.motion-paused .hero .hero-sub,
body.motion-paused .hero .hero-actions,
body.motion-paused .tl-hero-hair {
  transition-duration: 1ms !important;
  transition-delay: 0s !important;
}

@media (prefers-reduced-motion: reduce) {
  html.tl-ready .tl-w {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html.tl-ready .tl-rise {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html.tl-ready .tl-hair,
  html.tl-ready .tl-rule,
  html.tl-ready .tl-hero-hair {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  html.tl-ready .decision-map .decision-check::before,
  html.tl-ready .decision-map .decision-branches::before,
  html.tl-ready .decision-map .decision-branches article::before {
    transform: none !important;
    transition: none !important;
  }

  html.tl-ready .hero .hero-kicker,
  html.tl-ready .hero .eyebrow,
  html.tl-ready .hero .hero-sub,
  html.tl-ready .hero .hero-actions {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .tl-frame__scan,
  .tl-scan-section > .tl-scan {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   11. TELEFONO
   Gli strati decorativi si riducono: la cornice resta, la griglia no.
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .tl-frame__grid,
  .tl-frame__ruler {
    display: none;
  }

  .tl-frame__corner {
    width: 18px;
    height: 18px;
  }

  .tl-frame__corner--tl { top: 122px; left: 24px; }
  .tl-frame__corner--tr { top: 122px; right: 24px; }
  .tl-frame__corner--bl { bottom: 12px; left: 24px; }
  .tl-frame__corner--br { bottom: 12px; right: 24px; }

  .hero .hero-content {
    max-width: 100%;
  }

  .section-label .tl-rule {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   12. HERO STUDIO — OSPITA
   La composizione della specifica "hero studio": video a tutta pagina su
   fondo bianco, testo nero, tre zone in colonna e il titolo gigante in basso
   a destra, con le statistiche allineate a destra al centro.

   Tre scelte, tutte deliberate:
   · il video è quello della specifica, ma compresso in locale (22 MB → 2,2 MB)
     e con il poster: la pagina non resta bianca mentre il file arriva;
   · l'accento è il rosa Estro (#db005a), non il viola della specifica: sulla
     pagina non deve comparire un colore che non è di Estro;
   · il titolo usa Special Gothic Expanded One — il display del sito — e resta
     in maiuscolo/minuscolo com'è. Il trattamento maiuscoletto della specifica
     vale per i testi di servizio (occhiello, etichette), non per il titolo.

   Il contenuto è reale: i numeri sono quelli di Ospita e le etichette sono
   quelle del progetto. Nessuna cifra, frase o promessa inventata.
   ───────────────────────────────────────────────────────────────────────── */

.osp-hero {
  --osp-accent: #db005a;
  --osp-soft: rgba(0, 0, 0, .56);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: #f4f2f0;
  color: #000;
  font-family: 'DM Sans', Arial, sans-serif;
}

/* video a tutta pagina + velatura bianca: il testo deve restare leggibile
   mentre la forma cromata passa dietro */
.osp-stage {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #f4f2f0;
}

.osp-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 14% center;
}

.osp-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(44% 40% at 86% 38%, rgba(255, 255, 255, .88), rgba(255, 255, 255, 0) 74%),
    radial-gradient(72% 60% at 70% 78%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 76%),
    linear-gradient(to top, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .74) 26%, rgba(255, 255, 255, .48) 52%, rgba(255, 255, 255, .68) 82%, rgba(255, 255, 255, .88) 100%);
}

/* ── colonna centrale: occhiello, statistiche, fondo ───────────────────── */

.osp-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 128px 5% 100px;
}

.osp-kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .62);
}

.osp-kicker .dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 10px rgba(219, 0, 90, .55);
}

.osp-kicker__edition {
  color: rgba(0, 0, 0, .42);
}

/* le statistiche: allineate a destra, al centro dello spazio libero */
.osp-stats {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 3.4vw, 52px);
  padding: 26px 0;
}

.osp-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

/* il segno d'accento: al posto del "+" della specifica, un filo rosa.
   Dice "questa cifra è segnalata" senza aggiungere un segno che il dato
   non porta con sé. */
.osp-stat__mark {
  width: 22px;
  height: 1px;
  margin-bottom: 14px;
  background: var(--osp-accent);
}

.osp-stat__num {
  font: 400 clamp(1.5rem, 5vw, 3.5rem)/1 var(--display);
  letter-spacing: -.02em;
  color: #000;
}

.osp-stat__label {
  margin-top: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--osp-soft);
}

/* ── riga A: occhiello a sinistra, azioni a destra ──────────────────────── */

.osp-row--a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.osp-tagline {
  margin: 0;
  max-width: 170px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--osp-soft);
}

.osp-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.osp-cta__main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(16px, 1.9vw, 24px);
  font-weight: 600;
  color: var(--osp-accent);
  white-space: nowrap;
}

.osp-cta__main:hover .osp-arrow {
  transform: translate(2px, -2px);
}

.osp-arrow {
  transition: transform .3s var(--tl-ease);
}

.osp-cta__alt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .72);
  border-bottom: 1px solid rgba(0, 0, 0, .28);
  padding-bottom: 5px;
  white-space: nowrap;
}

/* ── riga B: descrizione a sinistra, titolo gigante a destra ────────────── */

.osp-row--b {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(22px, 3vw, 48px);
}

.osp-desc {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(130px, 19vw, 280px);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(0, 0, 0, .68);
  text-align: right;
}

.osp-title {
  margin: 0;
  flex: 1 1 auto;
  text-align: right;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.6vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.035em;
  color: #000;
}

/* ogni riga del titolo è una finestra: il testo sale dal basso */
.osp-title__line {
  display: block;
  overflow: hidden;
}

.osp-title__line > span {
  display: block;
  line-height: 1.06;
  padding-bottom: .14em;
  margin-bottom: -.14em;
  white-space: nowrap;
}

/* ── barra in fondo ─────────────────────────────────────────────────────── */

.osp-rail {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 50px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .48);
}

.osp-rail .tl-hero-hair {
  background: rgba(0, 0, 0, .16);
}

.osp-rail__aside {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* il pulsante di pausa diventa una riga di servizio: su una hero chiara
   la pillola scura sarebbe un corpo estraneo */
.osp-rail .motion-toggle {
  position: static;
  min-height: 0;
  padding: 0 0 3px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .26);
  border-radius: 0;
  backdrop-filter: none;
  color: rgba(0, 0, 0, .58);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}

.osp-rail .motion-toggle:hover,
body.motion-paused .osp-rail .motion-toggle {
  color: var(--osp-accent);
  border-color: var(--osp-accent);
}

/* ── la cornice a filo, versione chiara ─────────────────────────────────── */

/* la testata è un vetro scuro: sul bianco diventa grigio e il logo rosa
   perde mordente. Sulla hero studio la pillola resta nera. */
body.osp-studio header {
  background: rgba(18, 16, 20, .94);
}

.osp-hero .tl-frame__grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .055) 1px, transparent 1px);
}

.osp-hero .tl-frame__ruler i {
  background: rgba(0, 0, 0, .22);
}

.osp-hero .tl-frame__ruler i:first-child,
.osp-hero .tl-frame__ruler i:last-child {
  background: rgba(219, 0, 90, .55);
}

/* ═══════════════════════════════════════════════════════════════════════════
   12b. IL MOVIMENTO DELLA HERO STUDIO
   I tempi sono quelli della specifica: stessa durata, stesso scarto, stessa
   easing. Framer Motion non c'è (il progetto non ha quelle dipendenze):
   le stesse curve sono replicate qui con lo stesso identico risultato.

   Tutto è pilotato da `html.osp-anim`, una classe che aggiunge solo lo
   script. Se il JavaScript non gira, nulla resta nascosto.
   ───────────────────────────────────────────────────────────────────────── */

@keyframes osp-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

@keyframes osp-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes osp-clip {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}

html.osp-anim .osp-stat,
html.osp-anim .osp-tagline,
html.osp-anim .osp-cta,
html.osp-anim .osp-desc {
  animation: osp-up .6s var(--tl-ease) both;
}

html.osp-anim .osp-stat:nth-child(1) { animation-delay: .24s; }
html.osp-anim .osp-stat:nth-child(2) { animation-delay: .36s; }
html.osp-anim .osp-stat:nth-child(3) { animation-delay: .48s; }
html.osp-anim .osp-tagline { animation-delay: .6s; }
html.osp-anim .osp-cta { animation-delay: .72s; }
html.osp-anim .osp-desc { animation-delay: .84s; }

html.osp-anim .osp-title__line > span {
  animation: osp-clip .7s var(--tl-ease) both;
}

html.osp-anim .osp-title__line:nth-child(1) > span { animation-delay: .4s; }
html.osp-anim .osp-title__line:nth-child(2) > span { animation-delay: .54s; }
html.osp-anim .osp-title__line:nth-child(3) > span { animation-delay: .68s; }
html.osp-anim .osp-title__line:nth-child(4) > span { animation-delay: .82s; }

/* la testata scende: è il fadeDown della specifica, applicato agli elementi
   che lì sono logo, link e menu */
html.osp-anim header .ecosystem-home,
html.osp-anim header .brand,
html.osp-anim header .header-link,
html.osp-anim header nav a {
  animation: osp-down .5s var(--tl-ease) both;
}

html.osp-anim header .ecosystem-home { animation-delay: 0s; }
html.osp-anim header .brand { animation-delay: .1s; }
html.osp-anim header nav a:nth-child(1) { animation-delay: .2s; }
html.osp-anim header nav a:nth-child(2) { animation-delay: .3s; }
html.osp-anim header nav a:nth-child(3) { animation-delay: .4s; }
html.osp-anim header nav a:nth-child(4) { animation-delay: .5s; }
html.osp-anim header .header-link { animation-delay: .6s; }

/* il filo sotto la barra in fondo */
html.osp-anim .osp-rail .tl-hero-hair {
  transform: scaleX(1);
  transition-delay: .9s;
}

/* pausa: il pulsante ferma anche le animazioni nuove */
body.motion-paused .osp-hero *,
body.motion-paused header .ecosystem-home,
body.motion-paused header .brand,
body.motion-paused header .header-link,
body.motion-paused header nav a {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  html.osp-anim .osp-stat,
  html.osp-anim .osp-tagline,
  html.osp-anim .osp-cta,
  html.osp-anim .osp-desc,
  html.osp-anim .osp-title__line > span,
  html.osp-anim header .ecosystem-home,
  html.osp-anim header .brand,
  html.osp-anim header .header-link,
  html.osp-anim header nav a {
    animation: none !important;
  }

  .osp-hero .tl-frame__scan {
    display: none;
  }
}

/* ── telefono ───────────────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .osp-inner {
    padding: 104px 24px 100px;
  }

  .osp-video {
    object-position: 26% center;
  }

  .osp-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
    gap: 10px 14px;
    padding: 22px 0;
  }

  .osp-stat {
    align-items: flex-end;
    text-align: right;
  }

  .osp-stat__mark {
    width: 16px;
    margin-bottom: 10px;
  }

  .osp-stat__num {
    font-size: clamp(1.4rem, 7.4vw, 2rem);
  }

  .osp-stat__label {
    margin-top: 8px;
    font-size: 9px;
    letter-spacing: .12em;
  }

  .osp-row--a {
    flex-wrap: wrap;
    gap: 14px;
  }

  .osp-tagline {
    max-width: 210px;
    font-size: 10px;
  }

  .osp-cta {
    gap: 14px;
  }

  .osp-cta__main {
    font-size: 17px;
  }

  .osp-row--b {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 22px;
  }

  .osp-desc {
    width: auto;
    max-width: 290px;
    font-size: 12px;
    text-align: left;
  }

  .osp-title {
    font-size: clamp(1.5rem, 6.8vw, 2.6rem);
  }

  .osp-rail {
    left: 24px;
    right: 24px;
    bottom: 38px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 8px;
  }

  .osp-rail__aside {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .osp-rail .motion-toggle {
    font-size: 8px;
  }
}
