/*
  Il sito, un foglio solo: senza framework, senza risorse di terzi.

  Lo stile è quello di Fallthere: Geist, angoli tondi come le carte e i bottoni dell'app, i colori della sua tavolozza
  (chiaro e scuro, `colori.css`), un blu per «dove sei» e un rosso per quello che aspetta. Niente maiuscoletto, niente
  caratteri da terminale, niente spigoli vivi: è una cosa calma.

  Il sito è una presentazione. Ogni schermata è alta quanto la finestra e ci sta tutta (un'idea, poche parole, la sua
  scena); la freccia in basso al centro porta alla schermata dopo. Sul telefono (e su un tablet in mano) la testata sta in
  basso, dove arriva il pollice; su uno schermo largo col mouse sta in alto.

  Le scene sono disegnate in «em»: l'unità è il corpo del testo dell'app, e ogni scena si adatta al riquadro che ha, in
  larghezza e in altezza, con le unità dei contenitori (`cqw`, `cqh`). Così non esce mai dal bordo.

  Niente attributi `style` nelle pagine e niente script in linea: questo foglio e `sito.js` bastano. Con «meno movimento»
  nessuna animazione parte, e ogni cosa è già al suo posto.
*/

/* ── Caratteri: nostri, dentro il sito. Il "latin" copre l'italiano e l'inglese; niente richieste fuori. ── */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("caratteri/geist-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("caratteri/geist-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Misure e movimento (i colori sono in colori.css) ─────────────────────────────────────────── */

@property --p {
  syntax: "<number>";
  inherits: false;
  initial-value: 100;
}

:root {
  --carattere: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* gli angoli: quelli dell'app (6, 10, carta 12, tondo) portati alla scala del sito */
  --r-piccolo: 8px;
  --r-base: 12px;
  --r-carta: 20px;
  --r-pieno: 999px;

  /* il movimento: quello dell'app per le cose piccole, quello di Material per le entrate */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-dec: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-molla: cubic-bezier(0.34, 1.45, 0.64, 1);

  --lato: clamp(16px, 4vw, 48px);
  /* con la tacca di un telefono messo per il lungo, il contenuto sta fuori dai bordi dello schermo */
  --lato-sx: max(var(--lato), env(safe-area-inset-left, 0px));
  --lato-dx: max(var(--lato), env(safe-area-inset-right, 0px));
  --isola-m: 12px;
  --testata-h: 54px;
  --freccia: 52px;

  /* lo spazio che la testata e la freccia si prendono, in alto e in basso, sullo schermo largo */
  --rg: clamp(10px, 2.2svh, 26px);
  --su: calc(var(--isola-m) + var(--testata-h) + clamp(10px, 2.2svh, 28px));
  --freccia-da: clamp(16px, 3.4svh, 30px);
  --giu: calc(var(--freccia-da) + var(--freccia) + clamp(10px, 2.4svh, 22px));
}

/* Sul telefono, e su un tablet tenuto in mano: la testata in basso, e la freccia sopra di lei senza toccarla. */
@media (max-width: 759px), (pointer: coarse) and (max-width: 1366px) {
  :root {
    --su: calc(max(env(safe-area-inset-top, 0px), 10px) + clamp(8px, 2svh, 22px));
    --freccia-da: calc(var(--isola-m) + var(--testata-h) + env(safe-area-inset-bottom, 0px) + 12px);
    --giu: calc(var(--freccia-da) + var(--freccia) + 8px);
  }
}

/* ── Base ─────────────────────────────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--sfondo);
  color: var(--testo);
  font: 400 1rem/1.5 var(--carattere);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}
:focus-visible {
  outline: 2px solid var(--dove-sei);
  outline-offset: 3px;
  border-radius: var(--r-piccolo);
}
h1:focus,
h2:focus {
  outline: none;
}
.salta {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 0.8em 1.2em;
  border-radius: var(--r-pieno);
  background: var(--accento);
  color: var(--accento-testo);
  font-weight: 600;
  text-decoration: none;
}
.salta:focus {
  top: 12px;
}

/* ── Il marchio ──────────────────────────────────────────────────────────────────────────────── */

.segno .p {
  fill: var(--testo);
}
.segno .r {
  fill: var(--testo-piano);
}

/* ── La presentazione: una schermata per volta, ognuna alta quanto la finestra ──────────────────── */

html.deck,
html.deck body {
  height: 100%;
  overflow: hidden;
}
.ponte {
  height: 100vh;
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
  outline: none;
}
.ponte::-webkit-scrollbar {
  display: none;
}
.schermo {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--sfondo);
  color: var(--testo);
}
/* Se il contenuto non ci sta (un testo molto lungo, una finestra bassa) la schermata si allunga invece di nascondere. */
.schermo.lungo {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: visible;
  scroll-snap-stop: normal;
}
/* Una finestra bassissima (un telefono per il lungo): niente scatti, la pagina scorre come una pagina. */
@media (max-height: 479px) {
  html.deck,
  html.deck body {
    height: auto;
    overflow: visible;
  }
  .ponte {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }
  .schermo {
    height: auto;
    min-height: 100svh;
    scroll-snap-stop: normal;
  }
  .dentro {
    height: auto;
    min-height: 100svh;
  }
  .scena {
    min-height: clamp(220px, 46vw, 400px);
  }
  .punti {
    display: none;
  }
}

.dentro {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  row-gap: var(--rg);
  justify-items: center;
  padding: var(--su) var(--lato-dx) var(--giu) var(--lato-sx);
  max-width: 1600px;
  margin-inline: auto;
}
.lungo .dentro {
  height: auto;
  min-height: 100svh;
}

/* Il titolo: al più sei parole. Grande, ma legato all'altezza della finestra, perché ci deve stare tutto. */
.testo {
  width: 100%;
  max-width: 1100px;
  text-align: center;
}
.testo h1,
.testo h2 {
  margin: 0;
  font-size: clamp(1.875rem, min(8.6vw, 7.2svh), 4.5rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.sotto {
  margin: clamp(6px, 1.2svh, 14px) auto 0;
  max-width: 34ch;
  font-size: clamp(1rem, min(4.4vw, 2.7svh), 1.375rem);
  line-height: 1.35;
  color: var(--testo-piano);
  text-wrap: balance;
}
.sotto--secondo {
  margin-top: 0.5em;
  font-size: 1rem;
}

/* ── L'isola: la testata. In alto sullo schermo largo, in basso sul telefono ────────────────────── */

.testata {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  top: var(--isola-m);
  display: flex;
  justify-content: center;
  padding-inline: var(--lato-sx) var(--lato-dx);
  pointer-events: none;
}
.isola {
  pointer-events: auto;
  color: var(--testo);
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: var(--testata-h);
  padding: 4px;
  background: color-mix(in srgb, var(--superficie-alta) 90%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--velo);
  border-radius: var(--r-pieno);
  box-shadow: 0 10px 32px -10px var(--ombra);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.marchio {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  height: 44px;
  padding: 0 0.95em 0 0.8em;
  border-radius: var(--r-pieno);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.marchio .segno {
  width: 22px;
  height: 22px;
}
.isola__voce,
.isola__lingua {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.95em;
  border-radius: var(--r-pieno);
  color: var(--testo);
  text-decoration: none;
  transition: background 180ms var(--ease);
}
.isola__voce:hover,
.isola__lingua:hover {
  background: var(--velo);
}

@media (max-width: 759px), (pointer: coarse) and (max-width: 1366px) {
  .testata {
    top: auto;
    bottom: calc(var(--isola-m) + env(safe-area-inset-bottom, 0px));
    padding-inline: max(var(--isola-m), env(safe-area-inset-left, 0px)) max(var(--isola-m), env(safe-area-inset-right, 0px));
  }
  .isola {
    width: 100%;
    justify-content: space-between;
    font-size: 0.9375rem;
  }
  .marchio__nome {
    display: none;
  }
  .marchio {
    padding: 0 0.8em;
  }
  .isola__voce,
  .isola__lingua {
    padding: 0 0.75em;
  }
}
@media ((max-width: 759px), (pointer: coarse) and (max-width: 1366px)) and (min-width: 480px) {
  .marchio__nome {
    display: inline;
  }
}

/* ── I bottoni, la freccia, i punti ──────────────────────────────────────────────────────────── */

.bottone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: 48px;
  padding: 0 1.4em;
  border: 0;
  border-radius: var(--r-pieno);
  background: var(--accento);
  color: var(--accento-testo);
  font: 600 1rem/1 var(--carattere);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.bottone:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -12px var(--ombra);
}
.bottone--isola {
  height: 44px;
  margin-left: 4px;
  padding: 0 1.2em;
}
.bottone--grande {
  height: 60px;
  padding: 0 2em;
  font-size: 1.125rem;
}

.avanti {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: var(--freccia-da);
  width: var(--freccia);
  height: var(--freccia);
  margin-left: calc(var(--freccia) / -2);
  display: grid;
  place-items: center;
  border: 1px solid var(--velo);
  border-radius: 50%;
  background: color-mix(in srgb, var(--superficie-alta) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -8px var(--ombra);
  color: var(--testo);
  transition: transform 180ms var(--ease);
}
.avanti .ic {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}
.avanti:hover {
  transform: translateY(2px);
}

.punti {
  position: fixed;
  z-index: 40;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  mix-blend-mode: difference;
}
.punto {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-pieno);
}
.punto i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.32;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.punto[aria-current="true"] i {
  opacity: 1;
  transform: scale(1.4);
}
/* Col dito si va avanti con la freccia o si scorre: i punti servirebbero solo a fare toccare per sbaglio. */
@media (max-width: 759px), (pointer: coarse) and (max-width: 1366px) {
  .punti {
    display: none;
  }
}

/* ── La scena: il riquadro, e la composizione che ci si adatta ─────────────────────────────────── */

.scena {
  container: scena / size;
  position: relative;
  width: 100%;
  min-height: 140px;
  display: grid;
  place-items: center;
}
.comp {
  --Wa: var(--W, 60);
  --Ha: var(--H, 30);
  position: relative;
  display: block;
  width: calc(var(--Wa) * 1em);
  height: calc(var(--Ha) * 1em);
  font-size: min(calc(100cqw / var(--Wa)), calc(100cqh / var(--Ha)));
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  text-align: left;
  color: var(--testo);
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}
/* Un riquadro alto e stretto (il telefono, un tablet in piedi) ha la sua composizione. */
@container scena (aspect-ratio < 1.22) {
  .comp {
    --Wa: var(--Wp, var(--W, 60));
    --Ha: var(--Hp, var(--H, 30));
  }
}
@supports not (font-size: 1cqw) {
  .comp {
    font-size: min(calc(90vw / var(--Wa)), calc(40svh / var(--Ha)));
  }
}
.comp *,
.comp *::before,
.comp *::after {
  box-sizing: border-box;
}
.comp__dentro {
  position: absolute;
  inset: 0;
}
.c-eroe {
  --W: 76;
  --H: 36;
  --Wp: 21;
  --Hp: 34;
}
.c-cade {
  --W: 60;
  --H: 27;
  --Wp: 31;
  --Hp: 37;
}
.c-cinque {
  --W: 70;
  --H: 14;
  --Wp: 26;
  --Hp: 34;
}
.c-giornata {
  --W: 76;
  --H: 17.5;
  --Wp: 30;
  --Hp: 23.5;
}
.c-albero {
  --W: 58;
  --H: 24;
  --Wp: 28;
  --Hp: 34;
}
.c-persone {
  --W: 62;
  --H: 30;
  --Wp: 30;
  --Hp: 36;
}
.c-pan {
  --W: 68;
  --H: 26;
  --Wp: 28;
  --Hp: 38;
}
.c-vista {
  --W: 56;
  --H: 22;
  --Wp: 28;
  --Hp: 36;
}
.c-tetto {
  --W: 58;
  --H: 26;
  --Wp: 30;
  --Hp: 30;
}
.c-incubatori {
  --W: 62;
  --H: 30;
  --Wp: 30;
  --Hp: 36;
}
.c-stato {
  --W: 56;
  --H: 14;
  --Wp: 24;
  --Hp: 30;
}
.c-modello {
  --W: 70;
  --H: 24;
  --Wp: 30;
  --Hp: 34;
}
.c-accesso {
  --W: 38;
  --H: 19;
  --Wp: 28;
  --Hp: 18;
}
.c-guida {
  --W: 62;
  --H: 23;
  --Wp: 28;
  --Hp: 27;
}
.c-importa {
  --W: 62;
  --H: 26;
  --Wp: 28;
  --Hp: 36;
}
.c-console {
  --W: 54;
  --H: 24;
  --Wp: 28;
  --Hp: 26;
}
.c-passi {
  --W: 62;
  --H: 14;
  --Wp: 26;
  --Hp: 36;
}

/* ── I pezzi del prodotto (tutti in «em») ─────────────────────────────────────────────────────── */

.ic {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic--piccola {
  width: 1.05em;
  height: 1.05em;
}
.muto {
  color: var(--testo-piano);
}
.comp em {
  font-style: normal;
}
.comp b {
  font-weight: 600;
}

/* una riga: icona, nome, una nota a destra */
.rg {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7em;
  min-height: 2.4em;
  padding: 0 0.7em;
  border-radius: 0.6em;
  white-space: nowrap;
}
.rg__t {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rg > em {
  color: var(--testo-piano);
  font-size: 0.92em;
}
.rg--figlio {
  padding-left: 2.4em;
}
.rg--qui {
  color: var(--dove-sei);
  font-weight: 600;
}
.rg--ora time {
  flex: none;
  width: 3.3em;
  color: var(--testo-piano);
}
.stato {
  flex: none;
  padding: 0.15em 0.65em;
  border-radius: var(--r-pieno);
  background: var(--velo);
  font-size: 0.8em !important;
  font-weight: 600;
  color: var(--testo-piano) !important;
}
.stato--ora {
  background: color-mix(in srgb, var(--selezione) 14%, transparent);
  color: var(--dove-sei) !important;
}

/* la carta: bianca, tonda, col suo filo */
.carta {
  background: var(--superficie-alta);
  border-radius: 1.2em;
  padding: 1.15em 1.25em;
  box-shadow: 0 0 0 1px var(--velo), 0 1em 2.2em -1.4em var(--ombra);
}
.carta__t {
  margin: 0 0 0.55em;
  font-size: 1.12em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.et {
  margin: 0;
  padding: 0 0.7em;
  height: 1.9em;
  font-size: 0.88em;
  font-weight: 600;
  line-height: 1.9em;
  color: var(--testo-piano);
}
.tondo {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background: var(--velo-forte);
  font-size: 0.95em;
  font-weight: 600;
  overflow: visible;
}
.tondo--pan {
  position: relative;
  background: none;
}
/* la faccia di Pan è un po' più grande del suo tondo, e sta centrata su di lui: così non dipende da come si dimensiona la griglia */
.tondo--pan .pan {
  position: absolute;
  left: -11%;
  top: -11%;
  width: 122%;
  height: 122%;
}
.tondo--grande {
  width: 3em;
  height: 3em;
}
.sq {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.55em;
  background: var(--accento);
  color: var(--accento-testo);
  font-size: 0.95em;
  font-weight: 600;
}
.org {
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 2.6em;
  padding: 0 0.6em;
  margin-bottom: 0.4em;
}
.org b {
  font-weight: 600;
}
.sp {
  flex: 1;
}
.casella {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.3em;
  height: 1.3em;
  border: 0.13em solid var(--bordo);
  border-radius: 0.4em;
  color: var(--accento-testo);
}
.casella .ic {
  width: 0.95em;
  height: 0.95em;
  stroke-width: 2.6;
  opacity: 0;
}
.casella--fatta {
  border-color: var(--accento);
  background: var(--accento);
}
.casella--fatta .ic {
  opacity: 1;
}
.casella--vivo {
  border-color: var(--accento);
  background: var(--accento);
}
.casella--vivo .ic {
  opacity: 1;
}
.rg__t--vivo {
  color: var(--testo-piano);
  text-decoration: line-through;
  text-decoration-color: currentColor;
}
.bot {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5em;
  padding: 0 1.2em;
  border-radius: var(--r-pieno);
  background: var(--velo-forte);
  font-weight: 600;
  white-space: nowrap;
}
.bot--si {
  background: var(--accento);
  color: var(--accento-testo);
}
.chip-arrivo {
  display: inline-flex;
  align-items: center;
  padding: 0.22em 0.85em;
  border: 0.11em dashed var(--bordo);
  border-radius: var(--r-pieno);
  font-size: 0.85em;
  font-weight: 600;
  color: var(--testo-piano);
  white-space: nowrap;
}
.riga-finta {
  display: block;
  height: 0.75em;
  margin: 0.9em 0;
  border-radius: 999px;
  background: var(--velo);
}
.riga-finta--1 {
  width: 92%;
}
.riga-finta--2 {
  width: 78%;
}
.riga-finta--3 {
  width: 86%;
}
.riga-finta--4 {
  width: 54%;
}

/* il numero rosso: un pezzo solo in tutto Fallthere (`.contatore`) */
.ct {
  position: absolute;
  top: -0.55em;
  right: -0.65em;
  display: inline-block;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.4em;
  border-radius: var(--r-pieno);
  background: var(--numero);
  box-shadow: 0 0 0 0.2em var(--ct-anello, var(--superficie));
  color: var(--numero-testo);
  font-size: 0.8em;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5em;
  text-align: center;
  overflow: hidden;
}
.ct--grande {
  top: 1em;
  right: 1em;
  font-size: 1.15em;
  --ct-anello: var(--superficie-alta);
}
.ct--riga {
  position: static;
  margin-left: auto;
  font-size: 0.85em;
  box-shadow: none;
}
.ct__a,
.ct__b {
  position: absolute;
  inset: 0;
}
.ct__b {
  opacity: 0;
}

/* Pan: il corpo è sempre bianco e gli occhi sempre scuri, il bordo gira col tema (come nel prodotto) */
.pan {
  --pan-carta: #fbfaf7;
  --pan-inchiostro: #14140f;
  --pan-identita: var(--testo);
  --pan-iride-1: #c9316f;
  --pan-iride-2: #7a3fd0;
  --pan-iride-3: #1f7fc0;
  --pan-iride-4: #1f9b62;
  --pan-iride-5: #b8801a;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
}
@media (prefers-color-scheme: dark) {
  .pan {
    --pan-iride-1: #ff9ec4;
    --pan-iride-2: #c8a2ff;
    --pan-iride-3: #8fd8ff;
    --pan-iride-4: #9ef0c4;
    --pan-iride-5: #ffd98f;
  }
}
.pan .pan-viso {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pan .pan-corpo {
  fill: var(--pan-carta);
}
.pan .pan-occhio {
  fill: var(--pan-inchiostro);
  transform-box: fill-box;
  transform-origin: center;
}
.pan .pan-bocca {
  stroke: var(--pan-inchiostro);
  fill: var(--pan-inchiostro);
}
.pan .s1 {
  stop-color: color-mix(in oklab, var(--pan-identita) 28%, var(--pan-iride-1));
}
.pan .s2 {
  stop-color: color-mix(in oklab, var(--pan-identita) 28%, var(--pan-iride-2));
}
.pan .s3 {
  stop-color: color-mix(in oklab, var(--pan-identita) 28%, var(--pan-iride-3));
}
.pan .s4 {
  stop-color: color-mix(in oklab, var(--pan-identita) 28%, var(--pan-iride-4));
}
.pan .s5 {
  stop-color: color-mix(in oklab, var(--pan-identita) 28%, var(--pan-iride-5));
}
.pan .pan-alone {
  opacity: 0.9;
}
/* ── Scena 1: l'eroe, la colonna e la pagina ──────────────────────────────────────────────────── */

.fin {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  background: var(--sfondo);
  border-radius: 1.7em;
  box-shadow: 0 0 0 1px var(--velo), 0 2.8em 5.5em -2.2em var(--ombra), 0 0.9em 2.2em -1.1em var(--ombra);
}
.barra {
  flex: none;
  width: 4.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45em;
  padding: 1.2em 0;
  background: var(--superficie);
}
.logo {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  margin-bottom: 0.6em;
  border-radius: 0.8em;
  background: var(--accento);
}
.logo .segno {
  width: 1.5em;
  height: 1.5em;
}
.logo .segno .p {
  fill: var(--accento-testo);
}
.logo .segno .r {
  fill: color-mix(in srgb, var(--accento-testo) 55%, transparent);
}
.bi {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 0.8em;
  color: var(--testo-piano);
}
.col {
  flex: none;
  width: 17.5em;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.1em 0.8em;
  background: var(--superficie);
}
.col .rg {
  min-height: 2.3em;
}
.col .et {
  margin-top: 0.7em;
}
.cinque-i {
  display: flex;
  justify-content: space-between;
  padding: 0.65em 0.9em 0.3em;
}
.bi2 {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  color: var(--testo-piano);
}
.col .rg--qui {
  color: var(--dove-sei);
}
.rg__barra {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--selezione) 10%, transparent);
  transform-origin: left;
}
.rg--qui > :not(.rg__barra) {
  position: relative;
  z-index: 1;
}
.pag {
  flex: 1;
  min-width: 0;
  padding: 2.3em 2.5em;
  background: var(--sfondo);
}
.saluto {
  margin: 0;
  font-size: 2.3em;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.pag .muto {
  margin: 0.2em 0 0;
}
.griglia {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2em;
  margin-top: 1.7em;
}
@container scena (aspect-ratio < 1.22) {
  .c-eroe .pag {
    display: none;
  }
  .c-eroe .col {
    flex: 1;
    width: auto;
  }
  .c-eroe .col .rg > em {
    display: none;
  }
}

/* ── Scena 2: tutto va a finire lì ───────────────────────────────────────────────────────────── */

.pezzi {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3.8em;
}
.pezzo {
  --dx: 0em;
  --dy: 16em;
  --r0: -5deg;
  position: absolute;
  top: 0;
  width: 10.8em;
  height: 3.8em;
}
.pezzo__c {
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 100%;
  padding: 0 0.8em 0 0.75em;
  border-radius: var(--r-pieno);
  background: var(--superficie-alta);
  box-shadow: 0 0 0 1px var(--velo), 0 0.9em 1.8em -0.9em var(--ombra);
  font-size: 1.18em;
  font-weight: 600;
  white-space: nowrap;
}
.pezzo--1 {
  left: 0.4em;
  --dx: 24.2em;
  --r0: -6deg;
}
.pezzo--2 {
  left: 12.5em;
  --dx: 12.1em;
  --r0: 4deg;
}
.pezzo--3 {
  left: 24.6em;
  --dx: 0em;
  --r0: -3deg;
}
.pezzo--4 {
  left: 36.7em;
  --dx: -12.1em;
  --r0: 5deg;
}
.pezzo--5 {
  left: 48.8em;
  --dx: -24.2em;
  --r0: -4deg;
}
.cartella {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 14.2em;
  height: 13em;
  margin-left: -7.1em;
}
.cartella__segno {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}
.cartella__luce {
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--testo) 16%, transparent), transparent);
  opacity: 0.55;
}
@container scena (aspect-ratio < 1.22) {
  .pezzo {
    width: 9.4em;
    height: 3.6em;
    --dy: 25em;
  }
  .pezzo__c {
    font-size: 1.05em;
  }
  .pezzo--1 {
    left: 0.3em;
    --dx: 10.5em;
  }
  .pezzo--2 {
    left: 10.8em;
    --dx: 0em;
  }
  .pezzo--3 {
    left: 21.3em;
    --dx: -10.5em;
  }
  .pezzo--4 {
    left: 5.5em;
    top: 4.4em;
    --dx: 5.3em;
    --dy: 20.6em;
  }
  .pezzo--5 {
    left: 16.1em;
    top: 4.4em;
    --dx: -5.3em;
    --dy: 20.6em;
  }
  .cartella {
    width: 12.4em;
    height: 11.4em;
    margin-left: -6.2em;
  }
}

/* ── Scena 3: cinque icone, un numero rosso ──────────────────────────────────────────────────── */

.tessere {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.6em;
}
.tessera {
  position: relative;
  flex: none;
  width: 10.6em;
  height: 12.4em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
  border-radius: 2.4em;
  background: var(--superficie-alta);
  box-shadow: 0 0 0 1px var(--velo), 0 1.6em 3em -1.8em var(--ombra);
}
.tessera__ic .ic {
  width: 3.8em;
  height: 3.8em;
  stroke-width: 1.5;
}
.tessera__nome {
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
@container scena (aspect-ratio < 1.22) {
  .tessere {
    flex-direction: column;
    gap: 1.1em;
  }
  .tessera {
    width: 100%;
    height: 5.6em;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.3em;
    padding: 0 1.6em;
    border-radius: 1.8em;
  }
  .tessera__ic .ic {
    width: 2.6em;
    height: 2.6em;
  }
  .ct--grande {
    top: 50%;
    right: 1.5em;
    margin-top: -0.85em;
  }
}

/* ── Scena 4: la giornata in una pagina ──────────────────────────────────────────────────────── */

.griglia--quattro {
  position: absolute;
  inset: 0;
  margin: 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4em;
}
.griglia--quattro .carta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.3em 1.3em;
}
.griglia--quattro .rg {
  flex: none;
  align-items: flex-start;
  padding: 0.5em 0.2em;
  min-height: 2.4em;
  white-space: normal;
  line-height: 1.25;
}
.griglia--quattro .rg .ic,
.griglia--quattro .rg .casella {
  margin-top: 0.05em;
}
.griglia--quattro .rg > em {
  flex: none;
}
.griglia--quattro .rg .ct {
  margin-top: 0.15em;
}
.griglia--quattro .rg__t {
  overflow: visible;
}
@container scena (aspect-ratio < 1.22) {
  .griglia--quattro {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.2em;
  }
  .rg--primo,
  .solo-largo,
  .griglia--quattro .stato {
    display: none;
  }
  .griglia--quattro .rg--ora time {
    width: 2.9em;
  }
}

/* ── Scena 5: ogni cosa al suo posto ─────────────────────────────────────────────────────────── */

.albero {
  position: absolute;
  inset: 0;
}
.albero__col {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 25em;
  padding: 1.1em 0.9em;
  overflow: hidden;
  border-radius: 1.7em;
  background: var(--superficie);
  box-shadow: 0 0 0 1px var(--velo);
}
.albero__col .et--dopo {
  margin-top: 0.9em;
}
.albero__pag {
  position: absolute;
  left: 27.5em;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 2.2em 2.4em;
  border-radius: 1.7em;
}
.percorso {
  display: flex;
  align-items: baseline;
  gap: 0.55em;
  margin: 0;
  color: var(--testo-piano);
}
.percorso__s {
  display: inline-grid;
}
.percorso__a,
.percorso__b {
  grid-area: 1 / 1;
}
.percorso__a {
  opacity: 0;
}
.percorso b {
  color: var(--testo);
}
.carta .albero__titolo {
  margin: 0.7em 0 0.3em;
  font-size: 2.1em;
  letter-spacing: -0.03em;
}
.g-fantasma {
  position: absolute;
  left: 0.9em;
  right: 0.9em;
  top: 3em;
  z-index: 3;
  opacity: 0;
  border-radius: 0.8em;
  background: var(--superficie-alta);
  box-shadow: 0 0 0 1px var(--velo), 0 1.4em 2.4em -0.8em var(--ombra);
  font-weight: 600;
}
.g-origine {
  opacity: 0;
}
.g-alvo {
  font-weight: 600;
}
.g-nuova {
  background: color-mix(in srgb, var(--selezione) 10%, transparent);
}
@container scena (aspect-ratio < 1.22) {
  .albero__col {
    width: 100%;
    height: 22.4em;
    bottom: auto;
  }
  .albero__pag {
    left: 0;
    top: 23.6em;
    bottom: 0;
    padding: 1.4em 1.8em;
  }
  .carta .albero__titolo {
    margin-top: 0.4em;
    font-size: 1.7em;
  }
  .albero__pag .riga-finta {
    display: none;
  }
}

/* ── Video: la scheda con la locandina, che si anima solo quando serve ───────────────────────── */

.vcard {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 2em;
  background: #151515;
  box-shadow: 0 0 0 1px var(--velo), 0 2.6em 5em -2em var(--ombra);
}
.vcard__locandina,
.vcard__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vcard__video {
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.vcard__video.pronto {
  opacity: 1;
}
.vcard__velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(11 11 11 / 0.55), rgb(11 11 11 / 0) 55%);
}

/* ── Scena 6: persone e agenti ───────────────────────────────────────────────────────────────── */

.c-persone .vcard__locandina,
.c-persone .vcard__video {
  object-position: 56% 50%;
}
.presenze {
  position: absolute;
  left: 2em;
  top: 2em;
  display: flex;
  align-items: center;
  color: #fff;
}
.presenze .tondo {
  margin-left: -0.5em;
  background: rgb(250 250 247 / 0.94);
  color: #0b0b0b;
  box-shadow: 0 0 0 0.2em rgb(11 11 11 / 0.55);
}
.presenze .tondo:first-child {
  margin-left: 0;
}
.presenze .tondo--pan {
  background: none;
  box-shadow: none;
}
.presenze .tondo--pan {
  margin-left: 0.15em;
}
.presenze__t {
  margin-left: 1.3em;
  font-weight: 600;
  text-shadow: 0 0.1em 0.8em rgb(0 0 0 / 0.5);
}
.proposta {
  position: absolute;
  right: 2em;
  bottom: 2em;
  display: flex;
  align-items: center;
  gap: 1.1em;
  width: 36em;
  padding: 1em 1.3em 1em 1.1em;
  border-radius: 1.5em;
}
.proposta .tondo--grande {
  width: 3em;
  height: 3em;
  margin: 0 0.45em 0 0.4em;
}
.proposta__corpo {
  flex: 1;
  min-width: 0;
}
.proposta__chi {
  margin: 0;
  font-size: 0.92em;
}
.proposta__chi em {
  color: var(--testo-piano);
}
.proposta__testo {
  display: grid;
  margin: 0.1em 0 0;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.proposta__a,
.proposta__b {
  grid-area: 1 / 1;
}
.proposta__b {
  display: flex;
  align-items: center;
  gap: 0.5em;
  opacity: 0;
}
.proposta__bottoni {
  display: flex;
  gap: 0.5em;
}
@container scena (aspect-ratio < 1.22) {
  .presenze {
    left: 1.6em;
    top: 1.6em;
  }
  .proposta {
    left: 1.5em;
    right: 1.5em;
    bottom: 1.5em;
    width: auto;
    gap: 0.8em;
    padding: 0.9em 1em 0.9em 0.9em;
  }
  .proposta__testo {
    font-size: 1em;
  }
  .proposta .bot {
    height: 2.3em;
    padding: 0 0.95em;
  }
}

/* ── Scena 7: chiedi a Pan ───────────────────────────────────────────────────────────────────── */

.chat {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 33em;
  display: flex;
  flex-direction: column;
  gap: 0.85em;
  padding: 1.5em;
  border-radius: 1.7em;
}
.chat__domanda {
  margin: 0;
  padding: 0.85em 1.05em;
  border-radius: 0.9em;
  background: var(--superficie);
  font-weight: 600;
}
.chat__cerca,
.chat__fonti-t {
  margin: 0;
  font-size: 0.92em;
}
.chat__risposta {
  margin: 0;
  font-size: 1.08em;
  line-height: 1.5;
}
.chat__fonti {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  margin: 0;
}
.chat__fonte {
  width: fit-content;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}
.chat__campo {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-top: auto;
}
.chat__input {
  flex: 1;
  padding: 0.85em 1em;
  border: 0.13em solid var(--testo);
  border-radius: 0.9em;
  background: var(--superficie-alta);
}
.doc {
  position: absolute;
  left: 36em;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 1.9em 2.1em;
  border-radius: 1.7em;
}
.carta .doc__titolo {
  margin: 0 0 0.5em;
  font-size: 1.7em;
  letter-spacing: -0.03em;
}
.doc__p {
  margin: 0.4em 0;
  font-size: 1.05em;
  line-height: 1.6;
}
.doc mark {
  padding: 0.12em 0.3em;
  margin: 0 -0.3em;
  border-radius: 0.3em;
  background: linear-gradient(color-mix(in srgb, var(--selezione) 16%, transparent), color-mix(in srgb, var(--selezione) 16%, transparent)) no-repeat left center / 100% 100%;
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@container scena (aspect-ratio < 1.22) {
  .chat {
    right: 0;
    width: auto;
  }
  .doc {
    display: none;
  }
  .chat__risposta {
    font-size: 1em;
  }
}

/* ── Scena 8: Pan legge quello che leggi tu ──────────────────────────────────────────────────── */

.c-vista .comp__dentro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3em;
}
.ricerca {
  flex: none;
  width: 26.5em;
  padding: 1.3em 1.4em;
  border-radius: 1.6em;
}
.ricerca__testa {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.9em;
}
.ricerca__campo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  height: 2.8em;
  padding: 0 1em;
  border-radius: 0.9em;
  background: var(--superficie);
}
.ricerca__conto {
  position: relative;
  height: 1.7em;
  margin: 0.6em 0 0.1em;
  font-size: 0.92em;
  line-height: 1.7em;
}
.ricerca__a,
.ricerca__b {
  position: absolute;
  left: 0;
  top: 0;
}
.ricerca__a {
  opacity: 0;
}
.ricerca__r {
  max-height: 2.4em;
  overflow: hidden;
}
.ricerca__r--via {
  max-height: 0;
  min-height: 0;
  opacity: 0;
}
.ricerca__lucchetto {
  color: var(--testo-piano);
}
@container scena (aspect-ratio < 1.22) {
  .c-vista .comp__dentro {
    flex-direction: column;
    gap: 1.6em;
  }
  .ricerca {
    width: 100%;
    padding: 1.1em 1.3em;
  }
}

/* ── Scena 9: un tetto alla spesa ────────────────────────────────────────────────────────────── */

.grafico {
  position: absolute;
  inset: 0;
}
.grafico__barre {
  position: absolute;
  left: 4em;
  right: 4em;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.barra-g {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.8em;
  width: 5.4em;
}
.barra-g i {
  display: block;
  width: 100%;
  border-radius: 1em 1em 0.4em 0.4em;
  background: var(--scelta);
  transform-origin: bottom;
}
.barra-g em {
  height: 1.6em;
  color: var(--testo-piano);
  font-weight: 600;
  line-height: 1.6em;
}
.barra-g--1 i {
  height: 6em;
}
.barra-g--2 i {
  height: 9.5em;
}
.barra-g--3 i {
  height: 7.5em;
}
.barra-g--4 i {
  height: 12.5em;
}
.barra-g--5 i {
  height: 10.5em;
}
.barra-g--6 i {
  height: 14em;
}
.barra-g--7 i {
  height: 19.4em;
}
.barra-g--oggi i {
  background: var(--selezione);
}
.barra-g--oggi em {
  color: var(--dove-sei);
}
.grafico__linea {
  position: absolute;
  left: 0;
  right: 0;
  top: 4.2em;
  border-top: 0.16em dashed var(--testo-piano);
  transform-origin: left;
}
.grafico__tetto {
  position: absolute;
  right: 0;
  top: 1.7em;
  font-size: 0.95em;
  font-weight: 600;
  color: var(--testo-piano);
}
.grafico__chiave {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 1.1em 0.55em 0.9em;
  border-radius: var(--r-pieno);
  background: var(--superficie-alta);
  box-shadow: 0 0 0 1px var(--velo);
  font-weight: 600;
}
.grafico__stop {
  position: absolute;
  right: 10.8em;
  top: 2.7em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 1.15em 0.6em 0.95em;
  border-radius: var(--r-pieno);
  background: var(--accento);
  color: var(--accento-testo);
  font-weight: 600;
}
.grafico__stop .ic {
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
  stroke: none;
}
@container scena (aspect-ratio < 1.22) {
  .grafico__barre {
    left: 1.2em;
    right: 1.2em;
  }
  .barra-g {
    width: 3.2em;
  }
  .barra-g--7 i {
    height: 19.4em;
  }
  .barra-g--1 i {
    height: 5em;
  }
  .grafico__stop {
    right: auto;
    left: 0;
    top: 3em;
  }
  .grafico__chiave {
    top: 0;
    left: 0;
  }
  .grafico__stop {
    top: 6em;
  }
}

/* ── Incubatori: la scheda-collegamento col video ────────────────────────────────────────────── */

.c-incubatori .vcard__velo {
  background: linear-gradient(to top, rgb(11 11 11 / 0.62), rgb(11 11 11 / 0.05) 70%);
}
.vcard__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}
.vcard__pillola {
  position: absolute;
  left: 50%;
  bottom: 2.4em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.6em;
  border-radius: var(--r-pieno);
  background: #fff;
  color: #0b0b0b;
  font-size: 1.15em;
  font-weight: 600;
  transform: translateX(-50%);
  white-space: nowrap;
  transition: transform 180ms var(--ease);
}
.vcard__link:hover .vcard__pillola {
  transform: translateX(-50%) translateY(-0.2em);
}
.vcard__link:focus-visible {
  outline-offset: 6px;
  border-radius: 2em;
}

/* il tasto di pausa dei video (quello che gira senza fine si può fermare) */
.vpausa {
  position: absolute;
  z-index: 3;
  right: 1.4em;
  top: 1.4em;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(11 11 11 / 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
}
.vpausa[hidden] {
  display: none;
}
.vpausa .ic {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
  grid-area: 1 / 1;
}
.vpausa .vpausa__via,
.vpausa[data-fermo="true"] .vpausa__pausa {
  display: none;
}
.vpausa[data-fermo="true"] .vpausa__via {
  display: block;
}
.vpausa--eroe {
  position: absolute;
  right: var(--lato-dx);
  top: calc(var(--isola-m) + 5px);
}
@media (max-width: 759px), (pointer: coarse) and (max-width: 1366px) {
  .vpausa--eroe {
    top: calc(max(env(safe-area-inset-top, 0px), 10px) + 8px);
  }
}

/* ── Scena 11 e passi: una fila di tappe ─────────────────────────────────────────────────────── */

.pass {
  position: absolute;
  inset: 0;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pass__p {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.pass__n {
  display: grid;
  place-items: center;
  width: 4.4em;
  height: 4.4em;
  border-radius: 50%;
  background: var(--accento);
  color: var(--accento-testo);
  font-size: 1.5em;
  font-weight: 600;
}
.pass__n .ic {
  width: 1.3em;
  height: 1.3em;
  stroke-width: 2.4;
}
.pass__testo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  margin-top: 1.1em;
  font-size: 1.25em;
}
.pass__testo b {
  font-size: 1.2em;
  letter-spacing: -0.02em;
}
.pass__testo .muto {
  font-size: 0.85em;
}
.pass__filo {
  position: absolute;
  top: 3.3em;
  left: calc(50% + 3.6em);
  width: calc(100% - 7.2em);
  border-top: 0.16em solid var(--bordo);
  transform-origin: left;
}
.pass__p--3 .pass__n {
  background: var(--dove-sei);
  color: var(--selezione-testo);
}
.pass--stato .pass__p--3 .pass__n {
  background: transparent;
  color: var(--testo-piano);
  border: 0.11em dashed var(--bordo);
}
.pass--stato .pass__p--3 .pass__testo b {
  color: var(--testo-piano);
}
.pass--stato .pass__filo--dopo {
  border-top-style: dashed;
}
@container scena (aspect-ratio < 1.22) {
  .pass {
    flex-direction: column;
  }
  .pass__p {
    flex: 1;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.4em;
    text-align: left;
    min-height: 9em;
  }
  .pass__n {
    flex: none;
    width: 3.6em;
    height: 3.6em;
    font-size: 1.3em;
  }
  .pass__testo {
    align-items: flex-start;
    margin-top: 0.3em;
  }
  .pass__filo {
    top: 4.9em;
    left: 2.35em;
    width: 0;
    height: calc(100% - 5.4em);
    border-top: 0;
    border-left: 0.16em solid var(--bordo);
    transform-origin: top;
  }
  .pass--stato .pass__filo--dopo {
    border-left-style: dashed;
  }
  .pass__p:last-child {
    flex: none;
    min-height: 0;
  }
}

/* ── Incubatori: il modello e le startup ─────────────────────────────────────────────────────── */

.modello-g {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6em;
}
.mod {
  position: relative;
  flex: none;
  padding: 1.2em 1.1em;
  border-radius: 1.5em;
  background: var(--superficie-alta);
  box-shadow: 0 0 0 1px var(--velo), 0 1em 2.2em -1.4em var(--ombra);
}
.mod__t {
  margin: 0 0 0.5em 0.4em;
  font-weight: 600;
}
.mod--modello {
  width: 20em;
  background: transparent;
  box-shadow: none;
  border: 0.13em dashed var(--bordo);
}
.mod--modello .chip-arrivo {
  position: absolute;
  top: -1.25em;
  right: 1.2em;
  background: var(--sfondo);
}
.modello-g__freccia {
  flex: none;
  color: var(--testo-piano);
}
.modello-g__freccia .ic {
  width: 2.6em;
  height: 2.6em;
  stroke-width: 1.5;
}
.modello-g__startup {
  display: flex;
  gap: 1.3em;
}
.modello-g__startup .mod {
  width: 13em;
}
.mod__r {
  padding: 0 0.3em;
}
@container scena (aspect-ratio < 1.22) {
  .modello-g {
    flex-direction: column;
    gap: 1em;
  }
  .mod--modello {
    width: 100%;
  }
  .mod--modello .mod__r {
    display: inline-flex;
    width: 49%;
  }
  .modello-g__freccia .ic {
    transform: rotate(90deg);
  }
  .modello-g__startup {
    width: 100%;
    gap: 1em;
  }
  .modello-g__startup .mod {
    flex: 1;
    width: auto;
    padding: 1em 0.7em;
  }
  .modello-g__startup .rg__t {
    display: none;
  }
  .modello-g__startup .mod__r {
    justify-content: center;
    padding: 0;
  }
}

/* ── Incubatori: un accesso a tempo ──────────────────────────────────────────────────────────── */

.acc {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1em;
  padding: 1.8em 2em;
  border-radius: 1.7em;
}
.acc__testa {
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin-bottom: 0.4em;
}
.acc__testa p {
  margin: 0;
}
.acc__r {
  display: grid;
  grid-template-columns: 1fr auto 11em;
  align-items: center;
  gap: 1.3em;
  padding: 0.9em 1.2em;
  border-radius: 1em;
  background: var(--superficie);
}
.acc__nome {
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-weight: 600;
}
.acc__puo {
  color: var(--testo-piano);
}
.acc__per {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.acc__scaduto {
  position: absolute;
  left: 0;
  opacity: 0;
  font-weight: 600;
  color: var(--testo-piano);
}
.anello {
  flex: none;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: conic-gradient(var(--dove-sei) calc(var(--p) * 1%), var(--velo) 0);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 55%);
  mask: radial-gradient(circle, transparent 52%, #000 55%);
}
@container scena (aspect-ratio < 1.22) {
  .acc {
    padding: 1.4em 1.4em;
    gap: 0.9em;
  }
  .acc__r {
    grid-template-columns: 1fr auto;
    gap: 0.5em 1em;
    padding: 0.8em 1em;
  }
  .acc__per {
    grid-column: 1 / -1;
  }
}

/* ── Incubatori: una guida passo passo ───────────────────────────────────────────────────────── */

.gd {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 35em;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1.7em 1.9em;
  border-radius: 1.7em;
}
.gd__testa {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.1em;
}
.gd__passi {
  display: flex;
  gap: 0.4em;
}
.gd__p {
  flex: 1;
  height: 0.45em;
  border-radius: 999px;
  background: var(--velo);
}
.gd__p--1,
.gd__p--2 {
  background: var(--accento);
}
.gd__q {
  margin: 0.4em 0 0;
  font-size: 1.5em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.gd__opz {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
}
.gd__o {
  padding: 0.85em 1.1em;
  border: 0.13em solid var(--velo-forte);
  border-radius: 0.9em;
  font-weight: 600;
}
.gd__o--1 {
  border-color: var(--selezione);
  background: color-mix(in srgb, var(--selezione) 8%, transparent);
  color: var(--dove-sei);
}
.gd__vai {
  margin-top: auto;
  align-self: flex-start;
}
.gd-elenco {
  position: absolute;
  left: 38.5em;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.gd-elenco__r {
  min-height: 3.2em;
}
.gd-elenco__r--fatta .rg__t {
  color: var(--testo-piano);
}
.gd-elenco__r--ora {
  font-weight: 600;
}
.gd-elenco__r--ora .casella {
  border-color: var(--selezione);
}
@container scena (aspect-ratio < 1.22) {
  .gd {
    right: 0;
    width: auto;
    padding: 1.4em 1.5em;
  }
  .gd-elenco {
    display: none;
  }
  .gd__opz {
    grid-template-columns: 1fr;
  }
  .gd__o {
    padding: 0.7em 1em;
  }
}

/* ── Incubatori: si porta tutto da dove sta ──────────────────────────────────────────────────── */

.imp-sorgenti {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 15em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.9em;
}
.imp-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.8em 1.4em;
  font-size: 1.1em;
  border-radius: var(--r-pieno);
  background: var(--superficie-alta);
  box-shadow: 0 0 0 1px var(--velo), 0 0.8em 1.6em -1em var(--ombra);
  font-weight: 600;
  white-space: nowrap;
}
.imp-via {
  position: absolute;
  left: 16em;
  width: 17em;
  top: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -0.3em;
}
.imp-via i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--testo-piano);
  opacity: 0.45;
}
.imp-albero {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 27em;
  padding: 1.4em 1.2em;
  border-radius: 1.7em;
}
.imp-albero .org {
  margin-bottom: 0.6em;
}
@container scena (aspect-ratio < 1.22) {
  .imp-sorgenti {
    right: 0;
    width: auto;
    bottom: auto;
    height: 10em;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    gap: 0.7em;
  }
  .imp-via {
    left: 50%;
    top: 11.5em;
    width: 0.6em;
    height: 6em;
    margin: 0 0 0 -0.3em;
    flex-direction: column;
  }
  .imp-albero {
    left: 0;
    width: auto;
    top: 18.5em;
    bottom: 0;
    padding: 1.2em 1.1em;
  }
}

/* ── Incubatori: la console che non c'è ancora ───────────────────────────────────────────────── */

.cons {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6em 2em;
  border-radius: 1.7em;
  background: transparent;
  box-shadow: none;
  border: 0.14em dashed var(--bordo);
}
.cons__testa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9em;
  font-size: 1.15em;
}
.cons__riga {
  display: grid;
  grid-template-columns: 8em repeat(3, 1fr);
  align-items: center;
  gap: 1.6em;
  padding: 0.75em 0;
}
.cons__riga--intesta {
  padding: 0 0 0.5em;
  color: var(--testo-piano);
  font-size: 0.88em;
  font-weight: 600;
}
.cons__nome {
  font-weight: 600;
}
.cons__cella {
  display: block;
  height: 0.95em;
  border-radius: 999px;
  background: var(--velo);
}
.cons__b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--testo);
  transform-origin: left;
}
.cons__b--0 {
  width: 35%;
}
.cons__b--1 {
  width: 60%;
}
.cons__b--2 {
  width: 82%;
}
.cons__b--3 {
  width: 48%;
}
.cons__b--4 {
  width: 70%;
}
@container scena (aspect-ratio < 1.22) {
  .cons {
    padding: 1.3em 1.4em;
  }
  .cons__riga {
    grid-template-columns: 6em repeat(3, 1fr);
    gap: 0.9em;
  }
  .cons__riga--intesta span:nth-child(n + 2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ── Le schermate a parte: l'eroe degli incubatori, l'invito, la 404 ─────────────────────────── */

.fondo-video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0b0b0b;
}
.fondo-video__locandina,
.fondo-video__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fondo-video__video {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.fondo-video__video.pronto {
  opacity: 1;
}
.fondo-video__velo {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(11 11 11 / 0.6), rgb(11 11 11 / 0.44) 45%, rgb(11 11 11 / 0.72));
}
.dentro--video {
  grid-template-rows: 1fr;
  align-content: center;
  align-items: center;
}
.schermo--video .testo h1 {
  color: #fff;
  text-shadow: 0 0.06em 0.7em rgb(0 0 0 / 0.35);
}
.schermo--video .sotto {
  color: rgb(255 255 255 / 0.86);
}
.schermo--video .avanti {
  background: rgb(250 250 247 / 0.9);
  color: #0b0b0b;
  border-color: transparent;
}

.dentro--cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: clamp(10px, 2.2svh, 22px);
}
.cta-corpo {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.4svh, 26px);
}
.cta-pan {
  flex: none;
  width: clamp(56px, 13svh, 120px);
  height: clamp(56px, 13svh, 120px);
}
.cta-nota {
  max-width: 44ch;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--testo-piano);
  text-align: center;
}
.cta-piede {
  flex: none;
  width: 100%;
  margin-top: clamp(8px, 2svh, 20px);
  text-align: center;
}
.titolare {
  max-width: 78ch;
  margin: 0 auto;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--testo-piano);
}
.titolare a {
  text-underline-offset: 0.2em;
}
@media (max-width: 759px), (pointer: coarse) and (max-width: 1366px) {
  .dentro--cta {
    padding-bottom: calc(var(--isola-m) + var(--testata-h) + env(safe-area-inset-bottom, 0px) + 12px);
  }
  .titolare:not(.titolare--link) .titolare__sep {
    display: none;
  }
  .titolare:not(.titolare--link) .titolare__riga {
    display: block;
  }
  .titolare--link {
    margin-top: 0.3em;
  }
}
@media (max-height: 640px) {
  .cta-nota {
    font-size: 0.8125rem;
  }
  .dentro--cta .bottone--grande {
    height: 52px;
  }
}

/* ── Le note legali: una pagina normale ──────────────────────────────────────────────────────── */

html.pagina .legale {
  padding: clamp(84px, 14vh, 140px) var(--lato) calc(var(--testata-h) + 96px);
}
.legale__colonna {
  max-width: 44rem;
  margin: 0 auto;
}
.legale__indietro {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  margin-bottom: 1.5rem;
  color: var(--testo-piano);
  text-decoration: none;
}
.legale__indietro .ic {
  width: 1.1em;
  height: 1.1em;
}
.legale h1 {
  margin: 0 0 0.3em;
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.legale h2 {
  margin: 2.4rem 0 0.4rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.legale p {
  margin: 0.6rem 0;
  max-width: 62ch;
}
.legale__bozza {
  color: var(--testo-piano);
}
.legale mark {
  padding: 0.05em 0.35em;
  border-radius: 0.3em;
  background: color-mix(in srgb, var(--selezione) 14%, transparent);
  color: inherit;
}

/* ── Il movimento: solo dove è ammesso, e mai senza fine ─────────────────────────────────────────
   Ogni scena fa la sua coreografia una volta sola, quando la schermata entra in vista, in pochi secondi, e poi sta ferma:
   chi legge non viene distratto, e niente si muove per sempre (WCAG 2.2.2). Tornando alla schermata la coreografia riparte.
   L'unica cosa che gira in ciclo è un video, e ha il suo tasto di pausa. */

.n0 { --n: 0; }
.n1 { --n: 1; }
.n2 { --n: 2; }
.n3 { --n: 3; }
.n4 { --n: 4; }
.n5 { --n: 5; }
.n6 { --n: 6; }
.n7 { --n: 7; }
.n8 { --n: 8; }
.n9 { --n: 9; }
.n10 { --n: 10; }
.n11 { --n: 11; }
.n12 { --n: 12; }
.t0 { --t0: 0s; }
.t1 { --t0: 0.2s; }
.t2 { --t0: 0.4s; }
.t3 { --t0: 0.6s; }
.t4 { --t0: 0.8s; }
.t5 { --t0: 1s; }
.t6 { --t0: 1.2s; }
.t7 { --t0: 1.4s; }
.t8 { --t0: 1.6s; }
.t9 { --t0: 1.8s; }
.an-sale { --an: sale; }
.an-fade { --an: compare; }
.an-pop { --an: pop; --dur: 0.6s; --curva: var(--ease-molla); }
.an-sx { --an: entra-sx; }
.an-cresce { --an: cresce; --dur: 0.9s; }
.an-cresce-x { --an: cresce-x; --dur: 0.9s; }
.an-disegna { --an: disegna; --dur: 0.8s; }

@media (prefers-reduced-motion: no-preference) {
  .js .an { opacity: 0; }
  .js .vista .an {
    animation: var(--an, sale) var(--dur, 0.75s) var(--curva, var(--ease-dec)) both;
    animation-delay: calc(var(--t0, 0s) + var(--n, 0) * var(--pas, 0.08s));
  }
  .js .comp.an { --dur: 0.5s; }
  .js .ctp { opacity: 0; }
  .js .vista .ctp {
    animation: pop 0.6s var(--ease-molla) both;
    animation-delay: calc(1.4s + var(--n, 0) * 0.16s);
  }

  @keyframes sale { from { opacity: 0; transform: translateY(1.4em) scale(0.985); } to { opacity: 1; transform: none; } }
  @keyframes compare { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
  @keyframes entra-sx { from { opacity: 0; transform: translateX(-2em); } to { opacity: 1; transform: none; } }
  @keyframes cresce { from { opacity: 1; transform: scaleY(0); } to { opacity: 1; transform: none; } }
  @keyframes cresce-x { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: none; } }
  @keyframes disegna { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: none; } }
  @keyframes disegna-y { from { opacity: 1; transform: scaleY(0); } to { opacity: 1; transform: none; } }
  @container scena (aspect-ratio < 1.22) {
    .an-disegna { --an: disegna-y; }
  }

  /* gli occhi di Pan sbattono un paio di volte, poi stanno fermi */
  .vista .pan .pan-occhio { animation: pan-ciglia 3.4s linear 2; }
  @keyframes pan-ciglia {
    0%, 94%, 97%, 100% { transform: scaleY(1); }
    95.5% { transform: scaleY(0.06); }
  }

  /* la freccia dice che c'è altro: due colpetti, poi sta ferma */
  .vista .avanti { animation: respira 1.4s ease-in-out 2.4s 2; }
  @keyframes respira { 0%, 100% { transform: none; } 50% { transform: translateY(6px); } }
  .vista .cta-pan { animation: bob 2.2s ease-in-out 2; }
  @keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-0.5em) rotate(2deg); } }

  /* 1. l'eroe: il blu segue dove sei, il numero rosso arriva e poi cresce di uno */
  .js .vista .rg__barra { animation: barra-qui 0.8s var(--ease-dec) 1.6s both; }
  @keyframes barra-qui { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .vista .ct--vivo .ct__a { animation: ct-a 0.9s var(--ease) 3.8s both; }
  .vista .ct--vivo .ct__b { animation: ct-b 0.9s var(--ease) 3.8s both; }
  .js .vista .ct--vivo.ctp {
    animation: pop 0.6s var(--ease-molla) both, batti 0.7s var(--ease) 3.8s;
    animation-delay: calc(1.4s + var(--n, 0) * 0.16s), 3.8s;
  }
  @keyframes ct-a { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-70%); } }
  @keyframes ct-b { from { opacity: 0; transform: translateY(70%); } to { opacity: 1; transform: none; } }
  @keyframes batti { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.3); } }

  /* 2. i pezzi cadono nella cartella, uno alla volta, e la cartella li accoglie */
  .vista .pezzo {
    animation: cade 3.6s var(--ease) both;
    animation-delay: calc(var(--n, 0) * 0.55s + 0.4s);
  }
  .pezzo--1 { --n: 0; }
  .pezzo--2 { --n: 1; }
  .pezzo--3 { --n: 2; }
  .pezzo--4 { --n: 3; }
  .pezzo--5 { --n: 4; }
  @keyframes cade {
    0% { opacity: 0; transform: translate(0, -1.6em) rotate(var(--r0)) scale(0.9); }
    8%, 22% { opacity: 1; transform: translate(0, 0) rotate(var(--r0)) scale(1); }
    50% { opacity: 1; transform: translate(calc(var(--dx) * 0.5), calc(var(--dy) * 0.45)) rotate(calc(var(--r0) * -0.6)) scale(0.96); }
    75% { opacity: 1; transform: translate(var(--dx), calc(var(--dy) - 0.4em)) rotate(0deg) scale(0.8); }
    88%, 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 1em)) rotate(0deg) scale(0.3); }
  }
  .vista .cartella__segno { animation: cartella-batte 5.8s var(--ease) 0.4s; }
  @keyframes cartella-batte {
    0%, 43.6%, 49.6%, 53%, 59%, 62.5%, 68.5%, 72%, 78%, 81.5%, 87.5%, 100% { transform: scale(1); }
    46.6%, 56%, 65.5%, 75%, 84.5% { transform: scale(1.05); }
  }
  .vista .cartella__luce { animation: luce 5.8s ease-in-out 0.4s both; }
  @keyframes luce { 0% { opacity: 0.3; } 85%, 100% { opacity: 0.9; } }

  /* 4. la giornata: una cosa si spunta */
  .vista .casella--vivo { animation: casella-piena 0.5s var(--ease) 2.6s both; }
  .vista .casella--vivo .ic { animation: spunta 0.5s var(--ease) 2.6s both; }
  .vista .rg__t--vivo { animation: barrato 0.5s var(--ease) 2.6s both; }
  @keyframes spunta { from { opacity: 0; } to { opacity: 1; } }
  @keyframes casella-piena {
    from { background: transparent; border-color: var(--bordo); }
    to { background: var(--accento); border-color: var(--accento); }
  }
  @keyframes barrato {
    from { color: var(--testo); text-decoration-color: transparent; }
    to { color: var(--testo-piano); text-decoration-color: currentColor; }
  }

  /* 5. un nodo si trascina in un altro spazio */
  .vista .g-fantasma { animation: g-fantasma 5.6s var(--ease) 0.9s both; }
  .vista .g-origine { animation: g-origine 5.6s var(--ease) 0.9s both; }
  .vista .g-alvo { animation: g-alvo 5.6s var(--ease) 0.9s both; }
  .vista .g-nuova { animation: g-nuova 5.6s var(--ease) 0.9s both; }
  .vista .percorso__a { animation: bc-a 5.6s var(--ease) 0.9s both; }
  .vista .percorso__b { animation: bc-b 5.6s var(--ease) 0.9s both; }
  @keyframes g-origine { 0%, 8% { opacity: 1; } 14% { opacity: 0.25; } 100% { opacity: 0; } }
  @keyframes g-fantasma {
    0%, 8% { opacity: 0; transform: none; }
    12% { opacity: 1; transform: scale(1.03) rotate(0.6deg); }
    38%, 50% { opacity: 1; transform: translate(0.6em, 7.6em) scale(1.03) rotate(0.6deg); }
    60%, 100% { opacity: 0; transform: translate(2.4em, 14.8em) scale(0.96); }
  }
  @keyframes g-alvo {
    0%, 30% { background: transparent; }
    38%, 54% { background: color-mix(in srgb, var(--selezione) 14%, transparent); color: var(--dove-sei); }
    62%, 100% { background: transparent; }
  }
  @keyframes g-nuova {
    0%, 56% { opacity: 0; transform: translateY(-0.4em); }
    66%, 100% { opacity: 1; transform: none; }
  }
  @keyframes bc-a { 0%, 56% { opacity: 1; } 64%, 100% { opacity: 0; } }
  @keyframes bc-b { 0%, 56% { opacity: 0; } 64%, 100% { opacity: 1; } }

  /* 6. Pan propone, una persona dice sì, le cose si creano */
  .vista .proposta__a { animation: prop-a 3.2s var(--ease) 2.2s both; }
  .vista .proposta__b { animation: prop-b 3.2s var(--ease) 2.2s both; }
  .vista .proposta__bottoni { animation: prop-a 3.2s var(--ease) 2.2s both; }
  .vista .proposta .bot--si { animation: premuto 3.2s var(--ease) 2.2s both; }
  @keyframes prop-a { 0%, 36% { opacity: 1; } 48%, 100% { opacity: 0; } }
  @keyframes prop-b { 0%, 38% { opacity: 0; } 52%, 100% { opacity: 1; } }
  @keyframes premuto { 0%, 18%, 34%, 100% { transform: scale(1); } 26% { transform: scale(0.92); } }

  /* 7. Pan risponde: le frasi si evidenziano nella pagina */
  .vista .doc mark { animation: evidenzia 1.1s var(--ease) both; }
  .vista .doc__p--1 mark { animation-delay: 3.6s; }
  .vista .doc__p--2 mark { animation-delay: 4.6s; }
  @keyframes evidenzia { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

  /* 8. la stessa ricerca, due risultati diversi */
  .vista .ricerca__r--via { animation: via 1s var(--ease) 3s both; min-height: 2.4em; }
  .vista .ricerca__a { animation: conto-a 1s var(--ease) 3s both; }
  .vista .ricerca__b { animation: conto-b 1s var(--ease) 3s both; }
  @keyframes via {
    from { max-height: 2.4em; opacity: 1; filter: blur(0); }
    40% { opacity: 0.35; filter: blur(0.15em); }
    to { max-height: 0; min-height: 0; opacity: 0; filter: blur(0.3em); }
  }
  @keyframes conto-a { from { opacity: 1; } to { opacity: 0; } }
  @keyframes conto-b { from { opacity: 0; } to { opacity: 1; } }

  /* 13. un accesso che scade da solo */
  .vista .acc__r--scade .anello { animation: anello 4.2s linear 1.2s both; }
  .vista .acc__r--scade .acc__per-t { animation: per-t 0.6s var(--ease) 5.5s both; }
  .vista .acc__r--scade .acc__scaduto { animation: per-scaduto 0.6s var(--ease) 5.5s both; }
  .vista .acc__r--scade .acc__nome,
  .vista .acc__r--scade .acc__puo { animation: acc-spento 0.6s var(--ease) 5.5s both; }
  @keyframes anello { from { --p: 100; } to { --p: 0; } }
  @keyframes per-t { from { opacity: 1; } to { opacity: 0; } }
  @keyframes per-scaduto { from { opacity: 0; } to { opacity: 1; } }
  @keyframes acc-spento { from { opacity: 1; } to { opacity: 0.4; } }

  /* 14. la guida: si sceglie e si va avanti */
  .vista .gd__o--1 { animation: gd-scelta 0.6s var(--ease) 1.4s both; }
  .vista .gd__vai { animation: gd-vai 0.5s var(--ease) 3.4s; }
  .vista .gd__p--3 { animation: gd-p3 0.5s var(--ease) 3.7s both; }
  @keyframes gd-scelta {
    from { border-color: var(--velo-forte); background: transparent; color: var(--testo); }
    to { border-color: var(--selezione); background: color-mix(in srgb, var(--selezione) 8%, transparent); color: var(--dove-sei); }
  }
  @keyframes gd-vai { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.94); } }
  @keyframes gd-p3 { from { background: var(--velo); } to { background: var(--accento); } }

  /* 15. si porta tutto da dove sta */
  .vista .imp-r {
    animation: imp-riga 0.7s var(--ease-dec) both;
    animation-delay: calc(var(--k, 0) * 0.55s + 1s);
  }
  .imp-r--1 { --k: 0; }
  .imp-r--2 { --k: 1; }
  .imp-r--3 { --k: 2; }
  .imp-r--4 { --k: 3; }
  .imp-r--5 { --k: 4; }
  @keyframes imp-riga { from { opacity: 0; transform: translateX(-1em); } to { opacity: 1; transform: none; } }
  .vista .imp-via i { animation: imp-flusso 1.8s ease-in-out 3; }
  .vista .imp-via i:nth-child(2) { animation-delay: 0.25s; }
  .vista .imp-via i:nth-child(3) { animation-delay: 0.5s; }
  @keyframes imp-flusso {
    0%, 100% { opacity: 0.25; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
  }

  /* 12. il modello: le sue voci si accendono una per una */
  .vista .mod__r--evid {
    animation: mod-evid 1.2s var(--ease);
    animation-delay: calc(var(--k, 0) * 0.35s + 1.6s);
  }
  .mod__r--1 { --k: 0; }
  .mod__r--2 { --k: 1; }
  .mod__r--3 { --k: 2; }
  .mod__r--4 { --k: 3; }
  @keyframes mod-evid {
    0%, 100% { background: transparent; color: var(--testo); }
    30%, 60% { background: color-mix(in srgb, var(--selezione) 12%, transparent); color: var(--dove-sei); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ponte {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Il video non parte con «meno movimento» né col risparmio dati (lo decide `sito.js`): resta la locandina. */
@media print {
  .testata,
  .avanti,
  .punti {
    display: none !important;
  }
}
