/* ==========================================================================
   TV History — sito vetrina
   Design system "minimal premium" (stessa lingua visiva dell'app: Inter,
   neutri profondi mai nero puro, un solo accento indaco, bordi sottili).
   Art direction volutamente SCURA: è un prodotto di intrattenimento, il buio
   fa risaltare le locandine. Nessun framework: CSS scritto a mano per tenere
   il peso e i Core Web Vitals al minimo.
   ========================================================================== */

/* --- Font: sottoinsieme latino in woff2 (17 KB l'uno invece di 342 KB) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
}

/* --- Token ---------------------------------------------------------------- */
:root {
  --bg: #0a0a0d;
  --bg-soft: #0e0e12;
  --surface: #131317;
  --surface-2: #17171b;
  --surface-3: #212126;
  --border: #232329;
  --border-strong: #2e2e36;
  --text: #f3f3f6;
  --text-muted: #8d8d99;
  --text-dim: #6b6b76;
  --accent: #6e75ff;
  --accent-soft: #8f95ff;
  --accent-ink: #ffffff;
  --success: #35c07a;
  --series: #3c87f7;
  --movie: #e5732a;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 32px);

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 12px 32px -12px rgb(0 0 0 / 0.7);
  --shadow-lg: 0 40px 90px -30px rgb(0 0 0 / 0.85);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* --- Reset mirato --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* L'header è sticky: gli ancoraggi non devono finirci sotto. */
  scroll-padding-top: 88px;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Tipografia ----------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(1.85rem, 3.9vw, 2.85rem);
  letter-spacing: -0.038em;
}
h3 {
  font-size: 1.16rem;
  letter-spacing: -0.022em;
  font-weight: 600;
  line-height: 1.35;
}
p {
  text-wrap: pretty;
}

.lead {
  font-size: clamp(1.06rem, 1.9vw, 1.28rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 62ch;
}
.muted {
  color: var(--text-muted);
}
.accent {
  color: var(--accent-soft);
}

/* --- Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow {
  max-width: 820px;
}
section {
  position: relative;
}
.section {
  padding-block: clamp(72px, 11vw, 128px);
}
.section--tight {
  padding-block: clamp(56px, 8vw, 88px);
}
.section-head {
  max-width: 680px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head p {
  margin-top: 18px;
}
.hr {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 22%, var(--border) 78%, transparent);
  border: 0;
}

/* --- Occhiello (etichetta di sezione) ------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section-head--center .eyebrow::before {
  display: none;
}

/* --- Pulsanti ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s, border-color 0.18s,
    box-shadow 0.18s, color 0.18s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 26px -10px rgb(110 117 255 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.16);
}
.btn--primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 14px 34px -12px rgb(110 117 255 / 1), inset 0 1px 0 rgb(255 255 255 / 0.2);
}
.btn--ghost {
  border: 1px solid var(--border-strong);
  background: rgb(255 255 255 / 0.02);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgb(255 255 255 / 0.055);
  border-color: #3a3a45;
}
.btn--lg {
  padding: 16px 30px;
  font-size: 1.03rem;
}
.btn--sm {
  padding: 9px 17px;
  font-size: 0.9rem;
}
.btn__arrow {
  transition: transform 0.2s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* Link testuale con freccia */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--accent-soft);
  font-size: 0.97rem;
}
.tlink:hover {
  color: #a9adff;
}
.tlink svg {
  transition: transform 0.2s var(--ease);
}
.tlink:hover svg {
  transform: translateX(3px);
}

/* --- Header --------------------------------------------------------------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--surface-3);
  padding: 12px 20px;
  border-radius: var(--r-md);
}
.skip:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(10 10 13 / 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgb(10 10 13 / 0.88);
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.03rem;
  margin-right: auto;
}
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--accent) 0%, #4a51e0 100%);
  box-shadow: 0 4px 14px -6px rgb(110 117 255 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.25);
  flex: none;
}
.brand__mark svg {
  width: 17px;
  height: 17px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  padding: 8px 13px;
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s, background-color 0.15s;
}
.nav__links a:hover {
  color: var(--text);
  background: rgb(255 255 255 / 0.045);
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  place-items: center;
}

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--pad) 22px;
    background: rgb(10 10 13 / 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s var(--ease);
  }
  .nav__links.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__links a {
    padding: 13px 12px;
    font-size: 1rem;
  }
  .nav__toggle {
    display: grid;
    order: 3;
  }
  .nav__cta .btn--ghost {
    display: none;
  }
}
/* Il CTA dell'header perde la parola "gratis" sugli schermi stretti. Serve
   gap:0, altrimenti lo spazio tra i due elementi flex si somma allo spazio
   tipografico e la scritta si sfalda in "Inizia   gratis". */
.nav__start {
  gap: 0;
}
@media (max-width: 460px) {
  .nav__start span {
    display: none;
  }
}

/* --- Bagliore di sfondo --------------------------------------------------- */
.glow {
  position: absolute;
  inset-inline: 0;
  top: -180px;
  height: 720px;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
      560px 340px at 50% 120px,
      rgb(110 117 255 / 0.22),
      transparent 70%
    ),
    radial-gradient(900px 460px at 82% 40px, rgb(60 135 247 / 0.1), transparent 72%),
    radial-gradient(700px 400px at 12% 180px, rgb(229 115 42 / 0.07), transparent 70%);
  filter: blur(4px);
}
/* Griglia tenue: dà "profondità da prodotto" senza immagini. */
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: 0.28;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 68%);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(52px, 8vw, 92px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__copy h1 {
  margin-bottom: 22px;
}
.hero__copy .lead {
  margin-bottom: 30px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.hero__micro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 0.87rem;
  color: var(--text-dim);
}
.hero__micro span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero__micro svg {
  color: var(--success);
  flex: none;
}

/* Annuncio in cima all'hero (gancio "TV Time ha chiuso") */
.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 7px;
  margin-bottom: 26px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.025);
  font-size: 0.855rem;
  color: var(--text-muted);
  transition: border-color 0.2s, background-color 0.2s;
}
.announce:hover {
  border-color: #43434f;
  background: rgb(255 255 255 / 0.055);
}
.announce b {
  color: var(--text);
  font-weight: 600;
}
.announce__tag {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgb(110 117 255 / 0.16);
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.announce svg {
  flex: none;
  opacity: 0.7;
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__copy .lead {
    margin-inline: auto;
  }
  .hero__actions,
  .hero__micro {
    justify-content: center;
  }
  .hero__stage {
    order: 2;
  }
}

/* --- Mockup dell'app (interfaccia vera, ricostruita in CSS) --------------- */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}
.stage::after {
  /* alone dietro al telefono */
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(110 117 255 / 0.3), transparent 65%);
  filter: blur(40px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: 290px;
  aspect-ratio: 9 / 19.2;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #33333c 0%, #1a1a20 42%, #2b2b34 100%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(255 255 255 / 0.06);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.4;
}
.phone__notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 22px;
  border-radius: var(--r-pill);
  background: #000;
  z-index: 4;
}
.phone__body {
  flex: 1;
  padding: 40px 13px 8px;
  overflow: hidden;
}
.phone__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.phone__sub {
  color: var(--text-muted);
  font-size: 10.5px;
  margin-top: 3px;
}
.phone__search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 13px 0 14px;
  padding: 8px 11px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
}
.phone__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* Locandina finta: gradiente + "titolo" astratto. Nessuna immagine da caricare
   e nessun poster protetto da copyright riprodotto. */
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pg, linear-gradient(150deg, #2b2f6b, #14162e));
}
.poster::after {
  content: '';
  position: absolute;
  inset: auto 8px 8px;
  height: 4px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.22);
  box-shadow: 0 7px 0 -1px rgb(255 255 255 / 0.13);
}
.poster--check::before {
  filter: saturate(0.75) brightness(0.62);
}
.poster__check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.5);
}
.poster__check svg {
  width: 10px;
  height: 10px;
  color: #fff;
}

/* Tab bar identica a quella dell'app web */
.phone__tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 7px 4px 15px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.phone__tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: var(--text-dim);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.phone__tab svg {
  width: 17px;
  height: 17px;
}
.phone__tab.is-active {
  color: var(--accent);
}

/* Schedine che fluttuano attorno al telefono */
.float {
  position: absolute;
  z-index: 2;
  padding: 13px 15px;
  border-radius: var(--r-lg);
  background: rgb(19 19 23 / 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  width: max-content;
  max-width: 215px;
}
/* Le schedine devono SFIORARE il bordo del telefono, non coprirne lo schermo:
   sovrapporsi al contenuto dell'app rovinerebbe proprio ciò che mostrano.
   Sono quindi ancorate al BORDO DEL TELEFONO (metà larghezza = 145px), non a
   una percentuale della colonna: così la distanza resta esatta a ogni
   larghezza di finestra, senza aggiustamenti a occhio.
   Sotto i 1100px lo spazio ai lati non basta più: lì spariscono (vedi sotto). */
.float--a {
  top: 2%;
  right: calc(50% + 152px);
}
.float--b {
  bottom: 9%;
  left: calc(50% + 152px);
}
/* Le righe non devono andare a capo: sono coppie etichetta/valore. */
.float__row b,
.float__row span {
  white-space: nowrap;
}
.float__label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.float__label svg {
  color: var(--accent-soft);
  flex: none;
}
.float__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.83rem;
}
.float__row + .float__row {
  margin-top: 7px;
}
.float__row b {
  font-weight: 600;
}
.float__row span {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.float__big {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/* Barra di avanzamento (uguale a quella dell'app) */
.bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 9px;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

/* Le schedine vivono nel margine esterno della pagina: sotto questa larghezza
   quel margine non esiste più e verrebbero tagliate dal bordo della finestra. */
@media (max-width: 1360px) {
  .float {
    display: none;
  }
}
@media (max-width: 520px) {
  .stage {
    min-height: 470px;
  }
  .phone {
    width: 264px;
  }
}

/* --- Striscia di fiducia -------------------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.trust > div {
  background: var(--bg-soft);
  padding: 22px 24px;
}
.trust dt {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.trust dd {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Griglia funzionalità ------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg) 100%);
  transition: border-color 0.25s, transform 0.25s var(--ease), background-color 0.25s;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgb(110 117 255 / 0.11);
  border: 1px solid rgb(110 117 255 / 0.22);
  color: var(--accent-soft);
}
.card h3 {
  margin-bottom: 9px;
}
.card p {
  color: var(--text-muted);
  font-size: 0.945rem;
  line-height: 1.6;
}
.card--wide {
  grid-column: span 2;
}
@media (max-width: 700px) {
  .card--wide {
    grid-column: span 1;
  }
}

/* --- Passi ---------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 44px);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -1px;
  left: 0;
  padding-top: 26px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  display: none;
}
.step__num {
  display: inline-block;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  margin-bottom: 12px;
}
.step h3 {
  margin-bottom: 9px;
}
.step p {
  color: var(--text-muted);
  font-size: 0.945rem;
}

/* --- Blocco statistiche --------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
/* Nel blocco a due colonne il testo non passa da .section-head: il respiro
   fra titolo e paragrafo va dato qui. */
.split .lead {
  margin-top: 18px;
}
.panel {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  box-shadow: var(--shadow-md);
}
.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.panel__head h3 {
  font-size: 1rem;
}
.panel__head span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Grafico a barre impilate con gli STESSI colori dell'app: serie blu, film
   arancio. Due colori veri, non uno solo con la legenda a due voci: una
   legenda che non corrisponde al grafico è disinformazione, non decorazione. */
.chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 6px;
  height: 148px;
  margin-bottom: 12px;
}
.chart .col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: var(--h, 30%);
  min-height: 6px;
  border-radius: 4px 4px 2px 2px;
  overflow: hidden;
  transform-origin: bottom;
  animation: grow 0.85s var(--ease) backwards;
}
.chart .col i {
  display: block;
}
.chart .col .m {
  height: var(--m, 18%);
  background: var(--movie);
}
.chart .col .s {
  flex: 1;
  background: linear-gradient(180deg, var(--series) 0%, #2a63b8 100%);
}
@keyframes grow {
  from {
    transform: scaleY(0.04);
    opacity: 0.4;
  }
}
.chart-x {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  font-size: 0.66rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.02em;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.tile {
  padding: 14px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.tile b {
  display: block;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.tile span {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.checklist {
  display: grid;
  gap: 15px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.97rem;
}
.checklist svg {
  flex: none;
  margin-top: 4px;
  color: var(--accent-soft);
}
.checklist b {
  color: var(--text);
  font-weight: 600;
}

/* --- Tabella di confronto ------------------------------------------------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  -webkit-overflow-scrolling: touch;
}
table.cmp {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.94rem;
}
table.cmp th,
table.cmp td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.cmp thead th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgb(255 255 255 / 0.018);
  white-space: nowrap;
}
table.cmp thead th.is-own {
  color: var(--accent-soft);
}
table.cmp tbody tr:last-child th,
table.cmp tbody tr:last-child td {
  border-bottom: 0;
}
table.cmp tbody th {
  font-weight: 500;
  color: var(--text);
}
table.cmp td {
  color: var(--text-muted);
}
table.cmp td.is-own {
  color: var(--text);
  background: rgb(110 117 255 / 0.045);
  font-weight: 500;
}
.yes,
.no {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.yes svg {
  color: var(--success);
  flex: none;
}
.no svg {
  color: var(--text-dim);
  flex: none;
}

/* --- FAQ ------------------------------------------------------------------ */
.faq {
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  list-style: none;
  transition: color 0.15s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--accent-soft);
}
.faq summary::after {
  content: '';
  width: 11px;
  height: 11px;
  flex: none;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: 0.55;
  transition: transform 0.22s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq details > div {
  padding: 0 4px 24px;
  color: var(--text-muted);
  max-width: 74ch;
  font-size: 0.97rem;
}
.faq details > div p + p {
  margin-top: 12px;
}
.faq a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(143 149 255 / 0.4);
}
.faq a:hover {
  text-decoration-color: currentColor;
}

/* --- Fascia CTA ----------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  padding: clamp(40px, 7vw, 76px) clamp(24px, 5vw, 56px);
  text-align: center;
  background: radial-gradient(700px 320px at 50% -10%, rgb(110 117 255 / 0.28), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-soft));
}
.cta h2 {
  margin-bottom: 18px;
}
.cta .lead {
  margin: 0 auto 32px;
  max-width: 54ch;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* --- Prosa (pagine editoriali/SEO) --------------------------------------- */
.prose {
  max-width: 72ch;
  font-size: 1.045rem;
}
.prose > * + * {
  margin-top: 20px;
}
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 54px;
  scroll-margin-top: 90px;
}
.prose h3 {
  font-size: 1.16rem;
  margin-top: 34px;
}
.prose p,
.prose li {
  color: #c9c9d2;
  line-height: 1.72;
}
.prose ul,
.prose ol {
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.prose li::marker {
  color: var(--text-dim);
}
.prose strong {
  color: var(--text);
  font-weight: 600;
}
.prose a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(143 149 255 / 0.4);
}
.prose a:hover {
  text-decoration-color: currentColor;
}
.callout {
  padding: 22px 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-strong);
  background: rgb(110 117 255 / 0.06);
}
.callout p {
  color: var(--text);
}
.callout strong {
  color: #fff;
}

/* Briciole di pane */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-dim);
  padding-top: 26px;
}
.crumbs a:hover {
  color: var(--text);
}
.crumbs svg {
  opacity: 0.5;
}

.page-head {
  padding-top: clamp(30px, 5vw, 46px);
  padding-bottom: clamp(28px, 4vw, 40px);
}
.page-head h1 {
  font-size: clamp(2.05rem, 5vw, 3.3rem);
  margin-bottom: 20px;
}
.page-meta {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-top: 24px;
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(48px, 6vw, 68px) 40px;
  margin-top: clamp(60px, 8vw, 96px);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 44px;
}
.footer-grid h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 11px;
}
.footer-grid a {
  color: var(--text-muted);
  font-size: 0.93rem;
  transition: color 0.15s;
}
.footer-grid a:hover {
  color: var(--text);
}
.footer-about p {
  color: var(--text-muted);
  font-size: 0.93rem;
  max-width: 40ch;
  margin-top: 16px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.83rem;
  color: var(--text-dim);
}
.footer-bottom p {
  max-width: 68ch;
}
.footer-bottom a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-bottom a:hover {
  color: var(--text);
}
@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  .footer-about {
    grid-column: span 2;
  }
}

/* --- Comparsa allo scroll ------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Rispetto totale della preferenza di sistema: niente movimento. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Se JavaScript non parte, il contenuto resta comunque visibile. */
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* --- Stampa --------------------------------------------------------------- */
@media print {
  .site-header,
  .cta,
  .glow,
  .grid-bg,
  .stage {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
