/* Coach — stile del sito, lo stesso dell'app: «chiaro come Apple, carico come una gara».
   Fondo nero, schede morbide, un solo colore acceso per l'azione, titoli in corsivo stretto. */

@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap;
  src: url("fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #000; --surface: #161618; --surface2: #222226; --line: #2c2c30;
  --text: #fff; --muted: #a1a1a6; --dim: #8e8e93;
  --accent: #c6ff3d; --recovery: #64d2ff; --warning: #ff9f0a; --stop: #ff453a;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* il nero è quello di html: in mezzo, sotto il contenuto, passano i bagliori dello sfondo */
body { margin: 0; background: transparent; color: var(--text); font: 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── sfondo vivo: due bagliori, verde e azzurro, che si spostano piano, e una grana leggera ── */
body::before { content: ""; position: fixed; inset: -25vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(46vmax 38vmax at 24% 20%, rgba(198, 255, 61, .13), transparent 70%),
    radial-gradient(50vmax 42vmax at 78% 44%, rgba(100, 210, 255, .10), transparent 70%),
    radial-gradient(54vmax 40vmax at 38% 86%, rgba(198, 255, 61, .07), transparent 70%);
  animation: drift 56s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(5vmax, -4vmax, 0) rotate(9deg) scale(1.08); }
  100% { transform: translate3d(-4vmax, 5vmax, 0) rotate(-7deg) scale(1.03); }
}
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }

/* ── barra in alto ── */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav-in { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); height: 52px; display: flex; align-items: center; gap: 24px; }
.wordmark { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; letter-spacing: .02em;
  text-transform: uppercase; color: var(--text); line-height: 1; }
.wordmark:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 13px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid rgba(198, 255, 61, .45);
  border-radius: 999px; padding: 6px 12px; white-space: nowrap; line-height: 1.2; }
.lang { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .nav-links { display: none; } .badge { margin-left: auto; } }

/* ── sezioni e tipografia ── */
section { padding: clamp(72px, 9vw, 136px) var(--gutter); }
.wrap { max-width: 1120px; margin: 0 auto; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.display { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
  line-height: .9; letter-spacing: 0; margin: 0; text-wrap: balance; }
h1.display { font-size: clamp(60px, 11vw, 136px); }
h2.display { font-size: clamp(46px, 7.2vw, 96px); }
h3.display { font-size: clamp(30px, 3.4vw, 40px); line-height: .95; }
.accent { color: var(--accent); }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.45; color: var(--muted); max-width: 620px; margin: 26px 0 0; }
.lead strong, .muted strong { color: var(--text); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--dim); }

/* ── pulsante principale (uno per schermata, come nell'app) ── */
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border-radius: 28px;
  background: var(--accent); color: #000; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px;
  letter-spacing: .04em; text-transform: uppercase; transition: transform .2s ease, filter .2s ease; }
.cta:hover { text-decoration: none; filter: brightness(1.07); transform: translateY(-1px); }

/* ── iPhone disegnato in CSS, con lo schermo vero dell'app ── */
.phone { --w: clamp(230px, 27vw, 320px); position: relative; width: var(--w); flex: none; padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .165); background: #0d0d0e; border: 1px solid #3a3a3e;
  box-shadow: inset 0 0 0 2px #000, 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02); }
.phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * .13); background: #000; }
.phone::after { content: ""; position: absolute; left: 50%; top: 2.74%; transform: translateX(-50%);
  width: 29.3%; height: 4.1%; background: #000; border-radius: 999px; }
.phone.lg { --w: clamp(250px, 30vw, 350px); }
.phone.sm { --w: clamp(200px, 22vw, 270px); }

/* ── apertura ── */
.hero { position: relative; padding-top: clamp(56px, 8vw, 104px); padding-bottom: 0; text-align: center; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
/* la pista d'atletica dietro i telefoni, con un corridore che gira; sfuma verso il fondo della sezione come i telefoni,
   invece di finire di netto */
.track-box { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 240px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 240px), transparent); }
.track { position: absolute; z-index: 0; left: 50%; bottom: 0; width: max(1040px, 112vw); height: auto; pointer-events: none;
  transform: translate(-50%, 16%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 46%, #000 38%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 46%, #000 38%, transparent 100%); }
.track path { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1.5; }
/* in senso antiorario, come in gara: il tratto si sposta all'indietro lungo il percorso, la scia lo segue */
.track .runner { stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 22 978;
  animation: lap 18s linear infinite; }
.track .trail { stroke: rgba(198, 255, 61, .22); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 90 910;
  animation: lap 18s linear infinite; }
@keyframes lap { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 1000; } }
/* sul telefono la pista in piedi, intorno all'iPhone: per largo le curve uscirebbero dallo schermo */
@media (max-width: 640px) {
  .track { width: 214vw; bottom: auto; top: calc(100% - 215px); transform: translate(-50%, -50%) rotate(90deg); }
}
.hero .lead { margin-left: auto; margin-right: auto; }
.hero-actions { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; margin: 72px auto 0; max-width: 820px;
  height: clamp(430px, 56vw, 640px); overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent); }
.hero-phones .phone.back { margin-right: calc(var(--w) * -.22); margin-top: 70px; opacity: .55; transform: rotate(-4deg); }
.hero-phones .phone.front { z-index: 2; }
@media (max-width: 640px) { .hero-phones .phone.back { display: none; } }

/* ── punti di forza in breve ── */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.tile { background: var(--surface); border-radius: 28px; padding: 26px 24px; }
/* schede con un filo di luce in alto: meno piatte sul fondo che si muove */
.tile, .rung, .test, .number { background-image: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.bento .tile.lime, .rung.goal { background-image: none; }
.tile h3 { font: 600 19px/1.25 var(--sans); margin: 14px 0 6px; letter-spacing: -.01em; }
.tile p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.45; }
.icon { width: 30px; height: 30px; color: var(--accent); display: block; }
@media (max-width: 960px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .highlights { grid-template-columns: 1fr; } }

/* ── sezioni testo + schermate ── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.reverse .media { order: -1; }
.media { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 2.4vw, 28px); }
.media.duo .phone:nth-child(2) { margin-top: 72px; }
@media (max-width: 880px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .media { order: 0; }
  /* due telefoni affiancati che stanno anche in 320 px (prima a 320 la pagina scorreva di lato) */
  .media.duo .phone { --w: clamp(128px, 41vw, 260px); }
  .media.duo .phone:nth-child(2) { margin-top: 48px; }
}
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; }
.facts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--muted); font-size: 16px; line-height: 1.45; }
.facts li strong { color: var(--text); font-weight: 600; }
.facts .icon { width: 24px; height: 24px; margin-top: 1px; }

/* ── da zero: la scala della corsa-cammino e i due test ── */
.ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 56px; align-items: end; }
.rung { background: var(--surface); border-radius: 22px; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.rung .num { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(40px, 5vw, 60px); line-height: .85; }
.rung .bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface2); }
.rung .bar i { display: block; height: 100%; }
.rung .bar .run { background: var(--accent); }
.rung .bar .walk { background: #48484a; }
.rung p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.35; }
.rung.goal { background: var(--accent); color: #000; }
.rung.goal p { color: #1a1a1a; }
.rung.goal .bar { background: rgba(0, 0, 0, .15); }
.rung.goal .bar .run { background: #000; }
.legend { display: flex; gap: 18px; justify-content: center; margin-top: 18px; font-size: 13px; color: var(--dim); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; background: #48484a; }
.legend .l-run::before { background: var(--accent); }
@media (max-width: 760px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rung.goal { grid-column: span 2; } }
.tests { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; }
.test { background: var(--surface); border-radius: 28px; padding: 30px 28px; }
.test .display { font-size: clamp(54px, 7vw, 88px); }
.test p { color: var(--muted); margin: 14px 0 0; font-size: 16px; }
.or { font-family: var(--display); font-style: italic; font-weight: 800; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) { .tests { grid-template-columns: minmax(0, 1fr); } }
/* «CRONOMETRO» a 54 px non sta nei telefoni più stretti */
@media (max-width: 400px) { .test .display { font-size: clamp(40px, 13vw, 54px); } }

/* ── imprevisti: griglia di schede ── */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.bento .tile { padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.bento .tile h3.display { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(32px, 3.4vw, 44px);
  line-height: .92; letter-spacing: 0; margin: 0; }
.bento .tile p { font-size: 16px; }
.bento .tile.wide { grid-column: span 2; }
.bento .tile.full { grid-column: 1 / -1; min-height: 0; }
.bento .tile.lime { background: var(--accent); color: #000; }
.bento .tile.lime p { color: #1a1a1a; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento .tile.wide { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .bento .tile.wide { grid-column: auto; } .bento .tile { min-height: 0; } }

/* ── collegamenti ── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; padding: 0; list-style: none; }
.chips li { background: var(--surface2); border-radius: 14px; padding: 11px 16px; font-weight: 600; font-size: 15px; }
.chips li span { color: var(--dim); font-weight: 500; margin-left: 4px; }

/* ── per chi è ── */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.people .tile h3 { margin-top: 0; }
@media (max-width: 960px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }
.proof { margin-top: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center;
  border-top: 1px solid var(--line); padding-top: 40px; }
.proof .display { font-size: clamp(76px, 11vw, 140px); color: var(--accent); }
.proof p { margin: 0; color: var(--muted); font-size: clamp(18px, 1.9vw, 21px); max-width: 640px; }
.proof p strong { color: var(--text); font-weight: 600; }
@media (max-width: 600px) { .proof { grid-template-columns: 1fr; gap: 10px; } }

/* ── scienza: numeri grandi ── */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.number { background: var(--surface); border-radius: 28px; padding: 30px 28px; display: flex; flex-direction: column; }
.number .viz { margin-top: auto; }
.number p { margin-bottom: 26px; }
.number .display { font-size: clamp(80px, 10vw, 128px); color: var(--accent); }
.number p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.number p strong { color: var(--text); font-weight: 600; display: block; font-size: 19px; margin-bottom: 4px; }
@media (max-width: 760px) { .numbers { grid-template-columns: minmax(0, 1fr); } }

/* ── privacy e chiusura ── */
.shield { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 22px; display: block; }
.closing { padding-bottom: clamp(100px, 12vw, 150px); }
.closing .badge { font-size: 14px; padding: 9px 16px; }
.closing .hero-actions { margin-top: 34px; }

/* ── piè di pagina ── */
footer { border-top: 1px solid var(--line); padding: 32px var(--gutter) 48px; font-size: 13px; color: var(--dim); }
footer .wrap { display: grid; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav a { color: var(--muted); }
footer p { margin: 0; line-height: 1.5; }

/* ── pagine di testo (informative) ── */
.doc { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 72px; }
.doc h1 { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 9vw, 84px); line-height: .9; margin: 0 0 12px; }
.doc h2 { font-size: 20px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--text); }

/* ── elementi che raccontano il concetto di ogni sezione ── */

/* imprevisti: un piccolo disegno in cima a ogni scheda */
/* mai più grandi del disegno originale, così tutte le schede hanno la stessa scala */
.vis { display: block; width: 100%; max-width: 240px; height: auto; overflow: visible; margin-bottom: 6px; }
.bento .tile.wide .vis, .bento .tile.full .vis { max-width: 420px; }
.vis .day { fill: #1c1c1f; stroke: var(--line); stroke-width: 1.5; }
.vis .run { fill: #3a3a3e; }
.vis .on { fill: var(--accent); }
.vis .gone { fill: none; stroke: var(--dim); stroke-width: 1.5; stroke-dasharray: 4 4; }
.vis .lbl { fill: var(--dim); font: 600 11px var(--sans); text-anchor: middle; letter-spacing: .06em; }
.vis .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.vis .base { fill: none; stroke: #48484a; stroke-width: 2.5; stroke-linecap: round; }
.vis .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.4, .1, .2, 1) .35s; }
.vis .pop { transform-box: fill-box; transform-origin: center; transform: scale(.3); opacity: 0;
  transition: transform .55s cubic-bezier(.3, 1.6, .5, 1) 1.3s, opacity .3s ease 1.3s; }
.vis .shrink { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1.1s cubic-bezier(.4, .1, .2, 1) .5s; }
.reveal.in .vis .draw { stroke-dashoffset: 0; }
.reveal.in .vis .pop { transform: none; opacity: 1; }
.reveal.in .vis .shrink { transform: scaleY(.5); }
.tile.lime .vis .dot { fill: #000; }
.tile.lime .vis .miss { fill: none; stroke: #000; stroke-width: 2; }
.tile.lime .vis .ln { stroke: #000; }

/* collegamenti: la corsa arriva dall'orologio, la seduta ci torna */
.flow { display: block; width: 100%; max-width: 560px; height: auto; margin: 46px auto 0; overflow: visible; }
.flow .wire { fill: none; stroke: var(--line); stroke-width: 2; }
.flow .pulse { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 16 84; animation: flow 2.4s linear infinite; }
.flow .pulse.in { stroke: var(--recovery); }
.flow .pulse.out { stroke: var(--accent); animation-delay: 1.2s; }
@keyframes flow { from { stroke-dashoffset: 16; } to { stroke-dashoffset: -84; } }
.flow .case { fill: #1c1c1f; stroke: #48484a; stroke-width: 2; }
.flow .band { fill: #2c2c30; }
.flow .screen { fill: #000; }
.flow .lbl { fill: var(--muted); font: 600 17px var(--sans); text-anchor: middle; }

/* per chi è: dal primo passo alla maratona */
.journey { position: relative; max-width: 860px; margin: 44px auto 0; }
.journey .line { position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.journey .line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--recovery), var(--accent));
  transition: width 2.4s cubic-bezier(.4, .1, .2, 1) .2s; }
.journey.in .line i { width: 100%; }
.journey ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.journey li { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 0; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--muted); }
.journey li:first-child { align-items: flex-start; }
.journey li:last-child { align-items: flex-end; color: var(--text); }
.journey li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #1c1c1f; border: 2px solid #48484a;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease; }
.journey.in li::before { background: var(--accent); border-color: var(--accent); }
.journey.in li:nth-child(2)::before { transition-delay: .75s; }
.journey.in li:nth-child(3)::before { transition-delay: 1.3s; }
.journey.in li:nth-child(4)::before { transition-delay: 1.85s; }
.journey.in li:nth-child(5)::before { transition-delay: 2.4s; box-shadow: 0 0 0 6px rgba(198, 255, 61, .18); }
@media (max-width: 520px) { .journey li { font-size: 12px; } .journey li:first-child span { white-space: normal; max-width: 4.6em; } }
@media (max-width: 360px) { .journey li { font-size: 10.5px; } }

/* per chi è: i 216 runner virtuali, 12 profili da 18 */
.proof { grid-template-columns: auto minmax(0, 1fr) auto; }
.runners { display: grid; grid-template-columns: repeat(18, 8px); gap: 6px; }
.runners i { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); opacity: .12; transform: scale(.5);
  transition: opacity .45s ease, transform .45s ease; }
.proof.in .runners i { opacity: 1; transform: none; }
@media (max-width: 960px) { .proof { grid-template-columns: auto minmax(0, 1fr); } .runners { grid-column: 1 / -1; margin-top: 6px; } }
@media (max-width: 600px) { .proof { grid-template-columns: 1fr; } }

/* scienza: ogni numero disegnato con i dati veri (regole a gruppi, sedute per zona, capitoli per lunghezza) */
.viz { display: flex; align-items: flex-end; gap: 3px; height: 52px; margin-top: 26px; }
.viz i { display: block; flex: 1 1 0; min-width: 0; height: var(--h, 100%); border-radius: 2px; background: var(--c, var(--accent));
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in .viz i { transform: none; }
.viz.ticks { height: 26px; gap: 2px; }
.viz.ticks i.g { margin-left: 7px; }
.viz.spines { gap: 6px; }
.viz.spines i { background: #3a3a3e; border-radius: 3px; }
.viz.spines i.hi { background: var(--accent); }

/* privacy: lo scudo con due cerchi che si allargano */
.shield-wrap { position: relative; width: 56px; height: 56px; margin: 0 auto 26px; }
.shield-wrap .shield { position: relative; z-index: 1; margin: 0; }
.shield-wrap::before, .shield-wrap::after { content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(198, 255, 61, .5); animation: ring 4s ease-out infinite; }
.shield-wrap::after { animation-delay: 2s; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }

/* chiusura: le settimane del piano, fino alla bandierina della gara */
.plan, .plan-legend { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)) 44px; column-gap: clamp(4px, .8vw, 8px);
  max-width: 720px; margin: 0 auto; }
.plan { align-items: end; height: clamp(110px, 16vw, 160px); }
.plan i { display: block; height: var(--h); border-radius: 5px 5px 2px 2px; background: var(--c);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.plan.in i { transform: none; }
.plan .flag { width: 38px; height: auto; justify-self: center; color: var(--accent); opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease 1.5s, transform .5s ease 1.5s; }
.plan.in .flag { opacity: 1; transform: none; }
.plan-legend { margin-top: 12px; margin-bottom: 64px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim); text-align: left; }
.plan-legend span { padding-top: 8px; border-top: 2px solid; white-space: nowrap; }
.plan-legend .p1 { grid-column: 1 / 5; border-color: var(--recovery); }
.plan-legend .p2 { grid-column: 5 / 9; border-color: #e5e5ea; }
.plan-legend .p3 { grid-column: 9 / 15; border-color: var(--accent); }
.plan-legend .p4 { grid-column: 15 / 17; border-color: var(--warning); text-align: right; }
.plan-legend .p5 { grid-column: 17 / 18; border-color: transparent; color: var(--accent); text-align: center; }
/* sul telefono la bandierina basta: la scritta «Gara» finirebbe attaccata a «Scarico» */
@media (max-width: 520px) { .plan-legend { font-size: 9.5px; letter-spacing: .06em; } .plan-legend .p5 { visibility: hidden; } }

/* i due test: un'icona per uno */
.test .icon { width: 34px; height: 34px; margin-bottom: 18px; }

/* ── comparsa durante lo scorrimento ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/* senza JavaScript i disegni restano interi */
.no-js .vis .draw { stroke-dashoffset: 0; }
.no-js .vis .pop { transform: none; opacity: 1; }
.no-js .vis .shrink { transform: scaleY(.5); }
.no-js .journey .line i { width: 100%; }
.no-js .journey li::before { background: var(--accent); border-color: var(--accent); }
.no-js .plan i { transform: none; }
.no-js .plan .flag { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cta { transition: none; }
  /* niente movimento: lo sfondo resta fermo e i disegni compaiono già completi */
  body::before, .flow .pulse { animation: none; }
  .track .runner, .track .trail, .shield-wrap::before, .shield-wrap::after { display: none; }
  .vis .draw, .vis .pop, .vis .shrink, .journey .line i, .journey li::before, .plan i, .plan .flag, .viz i, .runners i { transition: none; }
  .vis .draw { stroke-dashoffset: 0; }
  .vis .pop { transform: none; opacity: 1; }
  .vis .shrink { transform: scaleY(.5); }
  .journey .line i { width: 100%; }
  .journey li::before { background: var(--accent); border-color: var(--accent); }
  .plan i, .viz i { transform: none; }
  .plan .flag, .runners i { opacity: 1; transform: none; }
}
