/* =========================================================================
   DaapLAB — sito www.daaplab.org
   Stile ispirato all'app DaapLAB 3 (tema "Midnight"): stessi colori del logo,
   stessi font di sistema, stesse curve di movimento.
   ========================================================================= */

/* ---------- Token (dall'app: web/css/tokens.css) ---------- */
:root {
  color-scheme: dark;

  --bg: #080b18;
  --bg-deep: #04061a;
  --surface-1: #0f1428;
  --surface-2: #141a32;
  --surface-3: #1a213d;
  --surface-hover: rgba(150, 170, 255, .06);
  --surface-active: rgba(150, 170, 255, .10);

  --border-1: rgba(150, 168, 255, .08);
  --border-2: rgba(150, 168, 255, .13);
  --border-strong: rgba(150, 168, 255, .22);

  --text-1: #eaeefb;
  --text-2: #a4adc9;
  --text-3: #6c7593;

  --accent: #6f93ff;
  --accent-hover: #87a6ff;
  --accent-text: #9db5ff;
  --accent-soft: rgba(111, 147, 255, .13);
  --accent-softer: rgba(111, 147, 255, .07);
  --accent-2: #33ccff;
  --grad-accent: linear-gradient(135deg, #7393ff 0%, #4aa8ff 55%, #33ccff 100%);
  --grad-text: linear-gradient(100deg, #93acff 0%, #5fb4ff 45%, #33ccff 100%);
  --grad-brand: radial-gradient(120% 90% at 0% 0%, #1b2a7a 0%, rgba(27, 42, 122, 0) 55%),
                radial-gradient(90% 80% at 100% 100%, #00507a 0%, rgba(0, 80, 122, 0) 60%),
                linear-gradient(160deg, #070a2e 0%, #05062a 45%, #030418 100%);

  /* serie dei grafici e fasi di Daapmap, come nell'app */
  --wrad: #6699ff;
  --wrrl: #33ccff;
  --wrsl: #a78bfa;
  --s1: #7d9cff;
  --s2: #ff8a65;
  --ph-arousal: #ff6b81;
  --ph-symb: #5b82ff;
  --ph-reorg: #22c3a6;
  --ph-mixed: #b48cff;

  --success: #3ddc97;
  --warning: #f5b94a;
  --danger: #ff6b7a;

  --shadow-1: 0 1px 0 rgba(255, 255, 255, .025) inset, 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-pop: 0 40px 100px -24px rgba(0, 0, 0, .85), 0 0 0 1px var(--border-2);
  --glow-accent: 0 0 0 1px rgba(120, 155, 255, .55), 0 10px 28px -8px rgba(60, 140, 255, .6);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, Roboto, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.36, .64, 1);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 999px;

  --container: 1200px;
  --gutter: 24px;
  --nav-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgba(111, 147, 255, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(150, 168, 255, .14); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(150, 168, 255, .26); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--r-md); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* testo con il gradiente dell'app ("From transcript to results") */
.grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* titoletti: Doto, una matrice di puntini come il logo dell'intro (OFL, incluso nel sito in fonts/) */
@font-face {
  font-family: "Doto"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("../fonts/doto-black-latin.woff2") format("woff2");
}
:root { --font-dots: "Doto", var(--font-mono); }
.eyebrow, .partners-title, .toc h2, .member__bio h2 {
  font-family: var(--font-dots); font-style: normal; font-weight: 900;
  letter-spacing: .03em; text-transform: none;
}
.eyebrow {
  display: inline-flex; align-items: baseline; flex-wrap: wrap;
  font-size: clamp(24px, 2.3vw, 32px); line-height: 1.1;
  color: var(--accent-text);
}
/* le lettere si accendono una dopo l'altra, come i puntini di un display (site.js) */
.eyebrow .ch { display: inline-block; white-space: pre; }
.js .eyebrow.is-split .ch { opacity: 0; text-shadow: 0 0 14px rgba(120, 185, 255, .95), 0 0 4px rgba(170, 215, 255, .9); transition: opacity .18s linear, text-shadow 1s var(--ease); transition-delay: calc(var(--k) * 32ms); }
.js .eyebrow.is-split.is-written .ch { opacity: 1; text-shadow: 0 0 0 rgba(120, 185, 255, 0); }

.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }

/* sfondo a puntini, come lo splash dell'app */
.dots {
  background-image: radial-gradient(rgba(150, 168, 255, .16) 1px, transparent 1.2px);
  background-size: 22px 22px;
}

/* ---------- Bottoni (come l'app) ---------- */
.btn {
  --h: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: var(--r-full);
  font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary {
  color: #fff; background: var(--grad-accent);
  box-shadow: 0 0 0 1px rgba(150, 180, 255, .35) inset, 0 12px 32px -10px rgba(60, 140, 255, .65);
}
.btn--primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%);
  opacity: .7;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(170, 195, 255, .55) inset, 0 18px 44px -10px rgba(60, 150, 255, .85); }
.btn--secondary {
  color: var(--text-1); background: rgba(20, 26, 50, .7);
  box-shadow: 0 0 0 1px var(--border-2) inset;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--secondary:hover { background: var(--surface-3); box-shadow: 0 0 0 1px var(--border-strong) inset; transform: translateY(-2px); }
.btn--ghost { color: var(--accent-text); padding: 0 6px; height: auto; }
.btn--ghost:hover { color: #fff; }
.btn--ghost svg { transition: transform .25s var(--ease); }
.btn--ghost:hover svg { transform: translateX(4px); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* chip e pillole, come i chip dell'app */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-2) inset;
  white-space: nowrap;
}
.chip svg { width: 15px; height: 15px; color: var(--accent-text); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 10px var(--c, var(--accent)); }
.chip--ok .dot { --c: var(--success); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--c, var(--accent-text)); background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c, var(--accent)) 35%, transparent) inset;
}
.tag--arousal { --c: var(--ph-arousal); }
.tag--symb { --c: #8fa9ff; }
.tag--reorg { --c: var(--ph-reorg); }

/* ---------- Barra di navigazione ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), transform .5s var(--ease), opacity .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(8, 11, 24, .72);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--border-1);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 34px; height: auto; transition: transform .4s var(--ease-spring); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.wordmark { font-family: var(--font-display); font-weight: 750; font-size: 19px; letter-spacing: -.02em; }
.wordmark b { font-weight: inherit; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav__inner > nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav__links {
  margin: 0; display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: var(--r-full); list-style: none;
  background: rgba(15, 20, 40, .55); box-shadow: 0 0 0 1px var(--border-1) inset;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav__links a {
  display: block; padding: 7px 16px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 550; color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--text-1); background: var(--surface-hover); }
.nav__links a[aria-current="page"] { color: #fff; background: var(--surface-active); box-shadow: 0 0 0 1px var(--border-2) inset; }
.nav__cta { flex: none; }
.nav__menu {
  display: none; width: 44px; height: 44px; border-radius: 14px; margin-left: auto;
  align-items: center; justify-content: center;
  background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-2) inset;
  transition: background-color .2s, box-shadow .2s;
}
.nav__menu:hover { background: var(--surface-3); }
/* le tre linee diventano una X */
.burger { position: relative; width: 18px; height: 14px; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: var(--text-1); transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; }
.burger i:nth-child(3) { top: 12px; }
.nav__menu[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav__menu[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.nav__menu[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
}

/* menu a tendina (schermi stretti) */
.mnav { display: none; }
@media (max-width: 900px) {
  .mnav { display: block; position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h)); visibility: hidden; pointer-events: none; }
  .nav.is-open { background: rgba(9, 12, 27, .97); box-shadow: 0 1px 0 var(--border-1); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-open .mnav { visibility: visible; pointer-events: auto; }
}
.mnav__veil { position: absolute; inset: 0; background: rgba(4, 6, 16, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s var(--ease); }
.nav.is-open .mnav__veil { opacity: 1; }
.mnav__panel {
  position: relative; padding: 6px var(--gutter) 24px;
  background: rgba(9, 12, 27, .97); box-shadow: 0 1px 0 var(--border-2), 0 30px 60px -20px rgba(0, 0, 0, .9);
  transform: translateY(-10px); opacity: 0; transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav.is-open .mnav__panel { transform: none; opacity: 1; }
.mnav__list { list-style: none; margin: 0; padding: 0; }
.mnav__list li { border-bottom: 1px solid var(--border-1); opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .35s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.nav.is-open .mnav__list li { opacity: 1; transform: none; }
.mnav__list a { display: flex; align-items: center; justify-content: space-between; padding: 15px 2px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--text-1); }
.mnav__list a svg { width: 18px; height: 18px; color: var(--text-3); transition: transform .25s var(--ease), color .2s; }
.mnav__list a:hover svg { transform: translateX(3px); color: var(--text-1); }
.mnav__list a[aria-current="page"] { color: var(--accent-text); }
.mnav__list a[aria-current="page"] svg { color: var(--accent-text); }
.mnav__cta { width: 100%; margin-top: 20px; opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .35s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.nav.is-open .mnav__cta { opacity: 1; transform: none; }

/* ---------- Sezioni ---------- */
/* clip (non hidden): taglia ciò che sporge di lato, come il ventaglio della home, senza creare un contenitore
   di scorrimento (gli elementi sticky restano tali). L'overflow-x del body non basta: su mobile Chrome allarga
   comunque la pagina e la testata fissa finisce fuori dallo schermo. */
main { display: block; overflow-x: clip; }
.section { position: relative; padding: clamp(72px, 8.5vw, 112px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--line { border-top: 1px solid var(--border-1); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); margin-top: 16px; letter-spacing: -.035em; }
.section-head .lead { margin-top: 20px; }
.section-head--center .lead { margin-left: auto; margin-right: auto; max-width: 640px; }

/* bagliori di sfondo */
.glow { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: .5; z-index: 0; }
.glow--blue { background: radial-gradient(circle, rgba(70, 100, 255, .55), transparent 70%); }
.glow--cyan { background: radial-gradient(circle, rgba(0, 140, 210, .45), transparent 70%); }

/* ---------- Card ---------- */
.card {
  position: relative; border-radius: var(--r-xl); padding: 28px;
  background: linear-gradient(180deg, rgba(20, 26, 50, .78), rgba(15, 20, 40, .78));
  box-shadow: 0 0 0 1px var(--border-1) inset, var(--shadow-2);
  overflow: hidden; isolation: isolate;
}
.card h3 { font-size: 20px; letter-spacing: -.02em; }
.card p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.card h3 + p { margin-top: 10px; }
/* luce che segue il puntatore (--mx/--my da site.js) */
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(111, 147, 255, .13), transparent 45%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.spot::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, -30%), rgba(140, 170, 255, .55), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .35s var(--ease);
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

.icon-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--accent-soft); color: var(--accent-text); box-shadow: 0 0 0 1px rgba(111, 147, 255, .22) inset;
}
.icon-badge svg { width: 22px; height: 22px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Comparsa allo scorrimento ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Cornice degli screenshot ---------- */
.shot {
  position: relative; border-radius: 14px; overflow: hidden; background: #080b18;
  box-shadow: var(--shadow-pop), 0 0 0 1px rgba(160, 180, 255, .16) inset;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(155deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 28%);
  box-shadow: 0 0 0 1px rgba(170, 190, 255, .14) inset;
}
.shot--crop { aspect-ratio: var(--ar, 16 / 10); }
.shot--crop img { object-position: var(--pos, 50% 0); transform: scale(var(--zoom, 1)); transform-origin: var(--pos, 50% 0); }

/* ---------- Pagine interne: testata ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(56px, 9vw, 120px)) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; background: var(--grad-brand); opacity: .9;
  -webkit-mask: linear-gradient(180deg, #000 40%, transparent); mask: linear-gradient(180deg, #000 40%, transparent);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(150, 168, 255, .14) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask: radial-gradient(70% 70% at 50% 30%, #000, transparent); mask: radial-gradient(70% 70% at 50% 30%, #000, transparent);
}
.page-hero h1 { font-size: clamp(40px, 6.4vw, 80px); letter-spacing: -.04em; margin-top: 18px; }
.page-hero .lead { margin-top: 22px; max-width: 680px; }
.page-hero--center { text-align: center; }
.page-hero--center .eyebrow { justify-content: center; }
.page-hero--center .lead { margin-left: auto; margin-right: auto; }
.page-hero--center .btn-row { justify-content: center; }
.page-hero .btn-row { margin-top: 32px; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--border-1); padding: 36px 0 22px; background: linear-gradient(180deg, transparent, rgba(4, 6, 26, .7)); font-size: 14px; }
/* due colonne, tre righe: logo | titolo · slogan | collegamenti · copyright | animazione */
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; row-gap: 12px; align-items: center; }
.footer__brand { justify-self: start; }
.footer__brand img { width: 30px; }
.footer__title { justify-self: end; font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.footer__claim { color: var(--text-3); line-height: 1.5; max-width: 460px; }
.footer__links { justify-self: end; list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 28px; margin: 0; padding: 0; }
.footer__links a { color: var(--text-2); transition: color .2s; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-1); color: var(--text-3); font-size: 13px;
}
.footer__bottom a, .footer__bottom button { color: var(--text-3); font-size: 13px; transition: color .2s; }
.footer__bottom a:hover, .footer__bottom button:hover { color: var(--text-1); }
@media (max-width: 640px) {
  .footer { padding: 30px 0 20px; }
  .footer__grid { grid-template-columns: 1fr; row-gap: 6px; }
  .footer__title { justify-self: start; margin-top: 12px; }
  .footer__links { justify-self: start; justify-content: flex-start; gap: 6px 22px; }
  /* in colonna: logo, slogan, poi i collegamenti */
  .footer__claim { order: 1; } .footer__title { order: 2; } .footer__links { order: 3; } .footer__bottom { order: 4; }
}

/* ---------- CTA finale ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 72px);
  background: var(--grad-brand); box-shadow: 0 0 0 1px var(--border-2) inset, var(--shadow-pop);
  text-align: center; isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(150, 168, 255, .18) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask: radial-gradient(60% 80% at 50% 0%, #000, transparent); mask: radial-gradient(60% 80% at 50% 0%, #000, transparent);
}
.cta h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.035em; }
.cta p { margin: 18px auto 0; max-width: 560px; color: var(--text-2); font-size: 18px; }
.cta .btn-row { justify-content: center; margin-top: 34px; }
.cta__logo { width: 64px; margin: 0 auto 26px; filter: drop-shadow(0 10px 30px rgba(51, 160, 255, .45)); }

/* =========================================================================
   HOME (index)
   ========================================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px; overflow: hidden; isolation: isolate;
  background: var(--grad-brand);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(150, 168, 255, .15) 1px, transparent 1.2px); background-size: 24px 24px;
  -webkit-mask: radial-gradient(75% 65% at 50% 42%, #000 20%, transparent 80%); mask: radial-gradient(75% 65% at 50% 42%, #000 20%, transparent 80%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero__content { position: relative; text-align: center; margin: 0 auto; max-width: 1040px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: var(--r-full);
  background: rgba(15, 20, 40, .65); box-shadow: 0 0 0 1px var(--border-2) inset;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 13.5px; color: var(--text-2); transition: box-shadow .25s, transform .25s var(--ease);
}
.hero__badge:hover { box-shadow: 0 0 0 1px var(--border-strong) inset; transform: translateY(-1px); }
.hero__badge .new { padding: 2px 9px; border-radius: var(--r-full); background: var(--grad-accent); color: #fff; font-weight: 700; font-size: 12px; }
.hero__badge svg { width: 14px; height: 14px; color: var(--accent-text); }
.hero h1 { font-size: clamp(40px, 6.4vw, 92px); letter-spacing: -.048em; line-height: 1.02; margin-top: 26px; }
.hero h1 .line { display: block; }
.hero .lead { margin: 28px auto 0; max-width: 640px; }
.hero .btn-row { justify-content: center; margin-top: 38px; }
.hero .chip-row { justify-content: center; margin-top: 30px; }

/* schermo d'ingresso della home: l'intro, il logo di particelle e "Esplora" (js/intro.js) */
.gate { display: none; position: fixed; inset: 0; z-index: 140; touch-action: none; -webkit-user-select: none; user-select: none; }
.intro-run .gate, .gate.is-leaving { display: block; }
.gate.is-gone { display: none !important; }
.gate__bg { position: absolute; inset: 0; background: var(--grad-brand); transition: opacity 1s .15s var(--ease); }
.gate__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(150, 168, 255, .15) 1px, transparent 1.2px); background-size: 24px 24px;
  -webkit-mask: radial-gradient(75% 65% at 50% 46%, #000 20%, transparent 80%); mask: radial-gradient(75% 65% at 50% 46%, #000 20%, transparent 80%);
}
.gate.is-leaving .gate__bg { opacity: 0; }
.gate.is-leaving { pointer-events: none; touch-action: auto; }
.gate .particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.gate__explore {
  position: absolute; left: 50%; top: var(--explore-top, 78%);
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease-spring);
}
.gate__explore.is-ready { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.gate__explore.is-ready:hover { transform: translate(-50%, -2px); }
.gate__explore::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(90, 160, 255, .55); animation: explore-pulse 2.4s var(--ease) infinite;
}
@keyframes explore-pulse { 0% { box-shadow: 0 0 0 0 rgba(90, 160, 255, .5); } 70%, 100% { box-shadow: 0 0 0 18px rgba(90, 160, 255, 0); } }
.gate.is-leaving .gate__explore { opacity: 0; transform: translate(-50%, 0) scale(.92); pointer-events: none; transition-duration: .3s; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; box-shadow: 0 0 0 1.5px rgba(160, 180, 255, .35) inset;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--text-2); animation: scroll-hint 2s var(--ease-in-out) infinite;
}
@keyframes scroll-hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* intro: testo nascosto finché l'animazione non lo rivela */
.intro-run .nav { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.intro-run .hero [data-hero] { opacity: 0; transform: translateY(26px); filter: blur(8px); }
.intro-run .hero__scroll { opacity: 0; }
.intro-run .showcase { opacity: 0; transform: translateY(80px); }
.showcase { transition: opacity 1.2s .5s var(--ease), transform 1.4s .5s var(--ease); }
.hero [data-hero] { transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.hero__scroll { transition: opacity 1s 1.2s; }
.intro-skip {
  position: fixed; right: 24px; bottom: 24px; z-index: 160;
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  background: rgba(15, 20, 40, .7); box-shadow: 0 0 0 1px var(--border-2) inset;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; animation: fade-in .6s .8s var(--ease) forwards; transition: color .2s, opacity .4s;
}
.intro-skip:hover { color: #fff; }
.intro-skip kbd { font-family: var(--font-mono); font-size: 11px; padding: 1px 6px; border-radius: 5px; background: rgba(150, 168, 255, .1); }
.intro-skip.is-gone { opacity: 0 !important; pointer-events: none; animation: none; }
@keyframes fade-in { to { opacity: 1; } }

/* vetrina: lo screenshot inclinato che si raddrizza scorrendo */
.showcase { position: relative; margin-top: -60px; padding-bottom: clamp(32px, 4vw, 48px); perspective: 1800px; }
.showcase__stage { position: relative; max-width: 1120px; margin: 0 auto; }
.showcase__frame {
  --p: 1;
  transform: rotateX(calc(var(--p) * 24deg)) scale(calc(1 - var(--p) * .12)) translateY(calc(var(--p) * -20px));
  transform-origin: 50% 0; will-change: transform;
}
.showcase__frame .shot { border-radius: 18px; }
.showcase__glow {
  position: absolute; left: 10%; right: 10%; top: 20%; bottom: -10%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(60, 120, 255, .45), transparent 70%); filter: blur(60px);
}
.float-chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: rgba(16, 21, 42, .82); box-shadow: 0 0 0 1px var(--border-strong) inset, 0 24px 50px -16px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transform: translateY(calc(var(--py, 0) * 1px));
}
.float-chip small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.float-chip strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.float-chip .fc-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.float-chip .fc-icon svg { width: 20px; height: 20px; }
.float-chip--a { left: -4%; top: 22%; }
.float-chip--b { right: -5%; top: 46%; }
.float-chip--c { left: 8%; bottom: -6%; }
@media (max-width: 900px) { .float-chip { display: none; } }

/* pipeline "dalla voce al dato" */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pipeline__line { position: absolute; left: 12%; right: 12%; top: 34px; height: 2px; background: linear-gradient(90deg, transparent, var(--border-strong), var(--border-strong), transparent); }
.pipeline__line::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 80px; height: 8px; border-radius: 4px;
  background: radial-gradient(closest-side, #8fd6ff, transparent); filter: blur(1px);
  animation: travel 4.5s var(--ease-in-out) infinite;
}
@keyframes travel { from { left: -5%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: 100%; opacity: 0; } }
.pipe-step { position: relative; text-align: center; padding: 0 8px; }
.pipe-step__node {
  width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 22px; display: grid; place-items: center; position: relative;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-1)); box-shadow: 0 0 0 1px var(--border-strong) inset, 0 18px 40px -16px rgba(0, 0, 0, .8);
  color: var(--accent-text);
}
.pipe-step__node svg { width: 28px; height: 28px; }
.pipe-step__node::after { content: ""; position: absolute; inset: -8px; border-radius: 28px; border: 1px dashed rgba(150, 168, 255, .16); }
.pipe-step__num { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: .1em; }
.pipe-step h3 { font-size: 19px; margin-top: 6px; }
.pipe-step p { color: var(--text-2); font-size: 14.5px; margin-top: 8px; }
@media (max-width: 860px) {
  .pipeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .pipeline__line { display: none; }
}

/* bento "cosa fa" */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(260px, auto); gap: 20px; }
.bento .card { display: flex; flex-direction: column; padding: 0; }
.bento .card__body { padding: 26px 28px 28px; margin-top: auto; }
.bento .card__visual { position: relative; flex: 1 1 auto; min-height: 150px; overflow: hidden; }
.bento .b-wide { grid-column: span 4; }
.bento .b-mid { grid-column: span 3; }
.bento .b-narrow { grid-column: span 2; }
.bento .b-tall { grid-row: span 2; }
.bento a.card { transition: transform .35s var(--ease); }
.bento a.card:hover { transform: translateY(-4px); }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent-text); font-weight: 600; font-size: 14px; }
.card__more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
a.card:hover .card__more svg { transform: translateX(4px); }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento .b-wide, .bento .b-mid, .bento .b-narrow { grid-column: span 1; } .bento .b-wide { grid-column: 1 / -1; } .bento .b-tall { grid-row: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento .b-wide { grid-column: auto; } }
@media (max-width: 960px) { .bento .b-tall .card__visual { min-height: 340px; } }

/* visual: onda della trascrizione */
.v-wave { position: absolute; inset: 26px 28px 0; display: flex; align-items: center; gap: 4px; }
.v-wave i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, #8fd6ff, #4f7cff); height: calc(var(--h) * 1%); opacity: .85; animation: wave 1.6s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--i) * -90ms); transform-origin: center; }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.v-lines { position: absolute; left: 28px; right: 28px; bottom: 6px; display: grid; gap: 8px; }
.v-line { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.sp { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent) inset; flex: none; }
.sp--1 { --c: var(--s1); }
.sp--2 { --c: var(--s2); }

/* visual: curve dei dizionari */
.v-curves { position: absolute; inset: 20px 0 0; }
.v-curves svg { width: 100%; height: 100%; }
.v-curves path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.draw path.draw-me { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 2.4s var(--ease-in-out); transition-delay: var(--d, 0s); }
.draw.is-in path.draw-me { stroke-dashoffset: 0; }
.v-chips { position: absolute; left: 28px; top: 22px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.dchip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700; background: rgba(20, 26, 50, .9); box-shadow: 0 0 0 1px var(--border-2) inset; }
.dchip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

/* visual: covariazione */
.v-cov { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 20px; }
.v-cov__num { font-size: clamp(54px, 6vw, 72px); font-weight: 750; letter-spacing: -.04em; color: #ff8a65; font-variant-numeric: tabular-nums; line-height: 1; }
.v-cov__label { margin-top: 10px; font-weight: 600; font-size: 14px; }
.v-cov__scale { position: relative; width: 180px; height: 6px; margin: 14px auto 0; border-radius: 3px; background: linear-gradient(90deg, #ff8a65, rgba(150, 168, 255, .25) 50%, #3ddc97); }
.v-cov__scale i { position: absolute; top: -5px; left: 20%; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px #fff; transition: left 1.6s var(--ease-spring); }
.v-cov__ends { display: flex; justify-content: space-between; width: 180px; margin: 6px auto 0; font-size: 11px; color: var(--text-3); font-family: var(--font-mono); }

/* visual: daapmap */
.v-map { position: absolute; inset: 24px 24px 0; }
.v-map svg { width: 100%; height: 100%; }

/* visual: archivio pazienti */
.v-patients { position: absolute; inset: 24px 24px 0; display: grid; gap: 10px; align-content: start; }
.v-prow { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(8, 11, 24, .55); box-shadow: 0 0 0 1px var(--border-1) inset; }
.v-prow .av { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; }
.v-prow b { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .02em; }
.v-prow span { display: block; font-size: 12px; color: var(--text-3); }
.v-prow em { font-style: normal; font-size: 12px; color: var(--text-2); }
.v-trend { margin-top: 4px; padding: 14px; border-radius: 12px; background: rgba(8, 11, 24, .55); box-shadow: 0 0 0 1px var(--border-1) inset; }
.v-trend__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.v-trend__head b { color: var(--text-1); font-size: 15px; }
.v-trend svg { width: 100%; height: 70px; margin-top: 8px; }

/* visual: riascolto */
.v-replay { position: absolute; inset: 24px 24px 0; }
.v-replay .plot { position: relative; height: 100px; }
.v-replay svg { width: 100%; height: 100px; }
.v-replay .ph { position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: #fff; box-shadow: 0 0 12px #8fd6ff; animation: ph 6s linear infinite; }
@keyframes ph { from { left: 0; } to { left: 100%; } }
.v-player { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 12px; border-radius: var(--r-full); background: rgba(8, 11, 24, .6); box-shadow: 0 0 0 1px var(--border-2) inset; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.v-player .play { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-accent); color: #fff; flex: none; }
.v-player .play svg { width: 14px; height: 14px; }
.v-player .bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(150, 168, 255, .15); overflow: hidden; }
.v-player .bar i { display: block; height: 100%; width: 40%; background: var(--grad-accent); animation: fill 6s linear infinite; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* visual: privacy */
.v-lock { position: absolute; inset: 0; display: grid; place-items: center; }
.v-lock .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(150, 168, 255, .16); }
.v-lock .ring:nth-child(1) { width: 110px; height: 110px; }
.v-lock .ring:nth-child(2) { width: 170px; height: 170px; border-style: dashed; animation: spin 30s linear infinite; }
.v-lock .ring:nth-child(3) { width: 240px; height: 240px; opacity: .6; }
.v-lock .core { position: relative; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-accent); color: #fff; box-shadow: 0 16px 40px -10px rgba(60, 140, 255, .8); }
.v-lock .core svg { width: 28px; height: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* modello: le tre fasi */
.model { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .model { grid-template-columns: 1fr; } }
.phase-list { display: grid; gap: 14px; }
.phase {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 20px 22px; border-radius: var(--r-lg); cursor: default;
  background: rgba(15, 20, 40, .55); box-shadow: 0 0 0 1px var(--border-1) inset;
  transition: background-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.phase.is-active { background: rgba(20, 26, 50, .9); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent) inset, 0 16px 40px -18px color-mix(in srgb, var(--c) 60%, transparent); transform: translateX(6px); }
.phase__num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent) inset; }
.phase h3 { font-size: 19px; }
.phase p { color: var(--text-2); font-size: 15px; margin-top: 6px; }
.phase--arousal { --c: var(--ph-arousal); }
.phase--symb { --c: #8fa9ff; }
.phase--reorg { --c: var(--ph-reorg); }
.cycle-note { display: flex; gap: 10px; align-items: center; margin-top: 18px; color: var(--text-3); font-size: 14px; }
.cycle-note svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; }

/* scheda trascritto illustrativo */
.transcript-card { padding: 0; }
.tc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border-1); }
.tc-head b { font-size: 14px; }
.tc-head span { font-size: 12.5px; color: var(--text-3); }
.tc-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--success); }
.tc-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.tc-body { padding: 20px; display: grid; gap: 14px; }
.tc-turn { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; opacity: .55; transition: opacity .5s var(--ease); }
.tc-turn.is-lit { opacity: 1; }
.tc-turn p { font-size: 15px; line-height: 1.55; padding: 10px 14px; border-radius: 14px; background: rgba(8, 11, 24, .6); box-shadow: 0 0 0 1px var(--border-1) inset; transition: box-shadow .5s; }
.tc-turn.is-lit p { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c, var(--accent)) 50%, transparent) inset, 0 0 30px -8px color-mix(in srgb, var(--c, var(--accent)) 50%, transparent); }
.tc-turn .tag { margin-top: 8px; opacity: 0; transform: translateY(-4px); transition: opacity .4s .25s, transform .4s .25s var(--ease); }
.tc-turn.is-lit .tag { opacity: 1; transform: none; }
.tc-chart { padding: 0 20px 20px; }
.tc-chart svg { width: 100%; height: 90px; }

/* il ciclo che ricomincia: a tutta larghezza sotto le tre fasi */
.cycle {
  position: relative; margin-top: clamp(48px, 6vw, 80px); padding: clamp(32px, 4vw, 52px) clamp(20px, 4vw, 56px);
  border-radius: 28px; text-align: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 120% at 50% 0%, rgba(40, 80, 200, .22), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: 0 0 0 1px var(--border-2) inset, var(--shadow-2);
}
.cycle__track { position: relative; height: 150px; max-width: 900px; margin: 0 auto; }
.cycle__track > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle__path { fill: none; stroke: rgba(150, 168, 255, .3); stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.cycle__spark { fill: none; stroke: #8fd6ff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 40 960; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(120, 200, 255, .9)); animation: spark 6s linear infinite; }
@keyframes spark { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.cycle__node {
  position: absolute; left: var(--x); top: 23.3%; transform: translate(-50%, -50%); z-index: 1;
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 10px; border-radius: var(--r-full); white-space: nowrap;
  font-weight: 650; font-size: 15.5px; color: var(--text-1); background: var(--surface-3);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent) inset, 0 12px 26px -14px color-mix(in srgb, var(--c) 80%, transparent);
}
.cycle__node b { font-family: var(--font-mono); font-size: 11.5px; padding: 3px 7px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.cycle__return {
  position: absolute; left: 50%; top: 83.3%; transform: translate(-50%, -50%); z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-full); white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--accent-text); background: var(--surface-1); box-shadow: 0 0 0 1px rgba(111, 147, 255, .35) inset;
}
.cycle__return svg { width: 16px; height: 16px; animation: spin 6s linear infinite; }
.cycle__text { max-width: 720px; margin: clamp(24px, 3vw, 36px) auto 0; }
.cycle__text h3 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.035em; margin-top: 12px; }
.cycle__text p { color: var(--text-2); font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.65; margin-top: 14px; }
.cycle__text .btn-row { justify-content: center; margin-top: 18px; }
@media (max-width: 760px) {
  .cycle__track { height: auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
  .cycle__track > svg { display: none; }
  .cycle__node, .cycle__return { position: relative; left: auto; top: auto; transform: none; }
  .cycle__node:not(:nth-of-type(1))::before { content: ""; position: absolute; left: 50%; top: -20px; width: 1px; height: 18px; background: rgba(150, 168, 255, .35); }
  .cycle__return::before { content: ""; position: absolute; left: 50%; top: -20px; width: 1px; height: 18px; background: rgba(150, 168, 255, .35); }
}
@media (prefers-reduced-motion: reduce) { .cycle__spark { display: none; } .cycle__return svg { animation: none; } }

/* per chi */
.audience .card { padding: 32px; }
.audience .card h3 { font-size: 22px; }

/* privacy */
.privacy {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  border-radius: 28px; padding: clamp(36px, 6vw, 72px); overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 120% at 100% 0%, rgba(30, 60, 160, .5), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: 0 0 0 1px var(--border-2) inset, var(--shadow-2);
}
.privacy h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -.035em; }
.privacy .lead { margin-top: 18px; }
.privacy__list { display: grid; gap: 12px; }
.privacy__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(8, 11, 24, .5); box-shadow: 0 0 0 1px var(--border-1) inset; }
.privacy__item .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(61, 220, 151, .12); color: var(--success); }
.privacy__item .ic svg { width: 20px; height: 20px; }
.privacy__item b { display: block; font-size: 15.5px; }
.privacy__item span { color: var(--text-2); font-size: 14px; }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } }

/* istituzioni */
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(32px, 7vw, 96px); list-style: none; }
.partners img { height: 64px; width: auto; filter: brightness(0) invert(1); opacity: .62; transition: opacity .3s; }
.partners img:hover { opacity: 1; }
.partners-title { text-align: center; font-size: 26px; line-height: 1.2; color: var(--text-2); margin-bottom: 32px; }

/* =========================================================================
   L'APP (progetto)
   ========================================================================= */

/* ventaglio di screenshot */
.page-hero--fan { padding-top: calc(var(--nav-h) + clamp(28px, 4vw, 56px)); padding-bottom: clamp(32px, 4vw, 56px); }
.page-hero--fan h1 { font-size: clamp(36px, 4.8vw, 68px); margin-top: 14px; }
.page-hero--fan .lead { margin-top: 16px; }
.page-hero--fan .btn-row { margin-top: 24px; }
.page-hero--fan .fan-wrap { margin-top: clamp(28px, 3vw, 40px); }
.fan-wrap { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.fan-wrap::before { content: ""; position: absolute; left: 50%; top: 10%; width: min(1100px, 90vw); height: 80%; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(60, 120, 255, .38), transparent 70%); filter: blur(50px); pointer-events: none; }
.fan {
  --w: min(500px, 42vw); --n: 7;
  position: relative; height: calc(var(--w) * .9); max-width: 1200px; margin: 0 auto; perspective: 2000px;
}
.fan__card {
  position: absolute; left: 50%; bottom: 0; width: var(--w); aspect-ratio: 16 / 10; margin-left: calc(var(--w) / -2);
  transform-origin: 50% 340%;
  transform: rotate(0deg) translateY(40px) scale(.9);
  opacity: 0;
  transition: transform .9s var(--ease-spring), opacity .6s var(--ease), filter .4s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
  cursor: zoom-in; border-radius: 14px; outline: none;
}
.fan__card .shot { width: 100%; height: 100%; border-radius: 14px; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(170, 195, 255, .28) inset, 0 0 0 1px rgba(0, 0, 0, .4); }
.fan__card .shot img { object-fit: cover; object-position: 0 0; }
.fan.is-open .fan__card {
  opacity: 1;
  transform: rotate(calc(var(--a) * 1deg + var(--push, 0) * 1deg)) translateY(calc(var(--lift, 0) * -1px)) scale(var(--s, 1));
}
.fan__card:hover, .fan__card:focus-visible { --lift: 34; --s: 1.05; z-index: 20 !important; }
.fan__card:focus-visible .shot { box-shadow: var(--shadow-pop), 0 0 0 2px var(--accent); }
.fan.has-hover .fan__card:not(:hover) { filter: brightness(.7) saturate(.85); }
/* la card della didascalia: sopra le schermate, mai coperta dalle carte esterne */
.fan-hint {
  position: relative; z-index: 30; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  width: fit-content; max-width: min(680px, calc(100% - 32px)); min-height: 44px; margin: -6px auto 0; padding: 8px 18px;
  border-radius: 22px; text-align: center; color: var(--text-2); font-size: 13.5px;
  background: rgba(12, 16, 34, .86); box-shadow: 0 0 0 1px var(--border-2) inset, 0 18px 40px -16px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.fan-hint b { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-full); background: var(--grad-accent); color: #fff; font-weight: 650; font-size: 13.5px; box-shadow: 0 10px 26px -10px rgba(60, 140, 255, .8); }
.fan-hint.is-card { color: var(--text-1); font-size: 14.5px; padding-left: 8px; }
.fan-hint svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .fan { --w: 78vw; height: calc(var(--w) * 1.05); }
  .fan__card { transform-origin: 50% 300%; }
}

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 72px 24px 96px; visibility: hidden; pointer-events: none; }
.lightbox.is-open { visibility: visible; pointer-events: auto; }
.lightbox__veil { position: absolute; inset: 0; background: rgba(4, 6, 16, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .35s var(--ease); }
.lightbox.is-open .lightbox__veil { opacity: 1; }
.lightbox__fig { position: relative; margin: 0; width: min(1280px, 100%, (100vh - 220px) * 1.6); transform: scale(.94) translateY(16px); opacity: 0; transition: transform .45s var(--ease-spring), opacity .3s; }
.lightbox.is-open .lightbox__fig { transform: none; opacity: 1; }
.lightbox__fig .shot { aspect-ratio: 16 / 10; }
.lightbox__fig figcaption { margin-top: 18px; text-align: center; color: var(--text-2); font-size: 15px; }
.lightbox__fig figcaption b { color: var(--text-1); margin-right: 8px; }
.lb-btn { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 26, 50, .85); box-shadow: 0 0 0 1px var(--border-strong) inset; color: var(--text-1); transition: background-color .2s, transform .2s; }
.lb-btn:hover { background: var(--surface-3); transform: scale(1.06); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -23px; }
.lb-next { right: 16px; top: 50%; margin-top: -23px; }
@media (max-width: 760px) { .lb-prev, .lb-next { top: auto; bottom: 24px; } .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); } }

/* capitoli: una colonna di puntini a sinistra; i nomi compaiono passandoci sopra */
.chapters { position: fixed; left: 20px; top: 50%; z-index: 50; transform: translate(-8px, -50%); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.chapters.is-visible { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.chapters ul { position: relative; list-style: none; display: grid; gap: 2px; margin: 0; padding: 10px 14px 10px 10px; border-radius: 16px; transition: background-color .3s, box-shadow .3s; }
.chapters ul::before { content: ""; position: absolute; left: 14.5px; top: 20px; bottom: 20px; width: 1px; background: rgba(150, 168, 255, .18); }
.chapters a { position: relative; display: flex; align-items: center; gap: 12px; height: 26px; color: var(--text-3); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chapters a::before { content: ""; position: relative; z-index: 1; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1.5px rgba(150, 168, 255, .35) inset; transition: transform .25s var(--ease), background-color .25s, box-shadow .25s; }
.chapters a span { opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s var(--ease), color .2s; }
.chapters a:hover::before { box-shadow: 0 0 0 1.5px rgba(170, 190, 255, .75) inset; }
.chapters a.is-active { color: var(--text-1); }
.chapters a.is-active::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(111, 147, 255, .22), 0 0 14px rgba(90, 150, 255, .8); transform: scale(1.15); }
.chapters:hover ul, .chapters:focus-within ul { background: rgba(12, 16, 34, .84); box-shadow: 0 0 0 1px var(--border-2) inset, 0 20px 40px -18px rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.chapters:hover a span, .chapters:focus-within a span { opacity: 1; transform: none; }
.chapters a:hover span { color: var(--text-1); }
@media (min-width: 1560px) { .chapters a.is-active span { opacity: 1; transform: none; } }
@media (max-width: 1319px) { .chapters { display: none; } }

/* capitolo: testo + immagine */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature--flip .feature__text { order: 2; }
.feature__text h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -.035em; margin-top: 14px; }
.feature__text .lead { margin-top: 18px; font-size: 17.5px; }
.feature__media { position: relative; }
.feature__media .shot { transition: transform .6s var(--ease); }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; } .feature--flip .feature__text { order: 0; } }

.checks { list-style: none; display: grid; gap: 12px; margin-top: 26px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.checks li b { color: var(--text-1); font-weight: 600; }
.checks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db5ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
  box-shadow: 0 0 0 1px rgba(111, 147, 255, .25) inset;
}

/* pila di screenshot con profondità (archivio pazienti) */
.stack { position: relative; aspect-ratio: 16 / 12.5; }
.stack .shot { position: absolute; width: 78%; aspect-ratio: 16 / 10; transition: transform .8s var(--ease); }
.stack .shot:nth-child(1) { left: 0; top: 0; transform: translateY(calc(var(--py, 0) * .6px)); }
.stack .shot:nth-child(2) { right: 0; top: 22%; transform: translateY(calc(var(--py, 0) * -.4px)); z-index: 2; }
.stack .shot:nth-child(3) { left: 8%; bottom: 0; width: 64%; transform: translateY(calc(var(--py, 0) * -1px)); z-index: 3; }

/* striscia "in evidenza" (archivio pazienti) */
.spotlight-band {
  position: relative; border-radius: 32px; padding: clamp(36px, 6vw, 72px); overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 90% at 0% 0%, rgba(40, 70, 190, .45), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(0, 110, 160, .35), transparent 60%), linear-gradient(180deg, #0d1230, #090c1f);
  box-shadow: 0 0 0 1px var(--border-2) inset, var(--shadow-pop);
}
.spotlight-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(150, 168, 255, .14) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask: radial-gradient(60% 60% at 30% 20%, #000, transparent); mask: radial-gradient(60% 60% at 30% 20%, #000, transparent);
}
.pill-new { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-full); background: var(--grad-accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }

.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 56px); }
.mini { padding: 22px; border-radius: 18px; background: rgba(8, 11, 24, .45); box-shadow: 0 0 0 1px var(--border-1) inset; }
.mini svg { width: 22px; height: 22px; color: var(--accent-text); }
.mini h3 { font-size: 16.5px; margin-top: 14px; }
.mini p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; }
@media (max-width: 860px) { .mini-grid { grid-template-columns: 1fr; } }

/* dietro le quinte: confronto grezzo / elaborato */
.bts { position: relative; border-radius: var(--r-xl); padding: 24px; background: linear-gradient(180deg, rgba(20, 26, 50, .8), rgba(15, 20, 40, .8)); box-shadow: 0 0 0 1px var(--border-1) inset, var(--shadow-2); user-select: none; -webkit-user-select: none; }
.bts__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.bts__legend { display: flex; gap: 16px; font-size: 13px; color: var(--text-2); }
.bts__legend span { display: inline-flex; align-items: center; gap: 7px; }
.bts__legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.bts__plot { position: relative; height: 260px; touch-action: pan-y; cursor: ew-resize; }
.bts__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bts__handle { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: linear-gradient(180deg, transparent, #fff 12%, #fff 88%, transparent); box-shadow: 0 0 18px rgba(140, 190, 255, .9); pointer-events: none; }
.bts__handle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eaeefb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat; box-shadow: 0 0 0 1px var(--border-strong) inset, 0 8px 20px rgba(0, 0, 0, .6); }
.bts__note { margin-top: 12px; color: var(--text-3); font-size: 13.5px; text-align: center; }

/* confronto tema chiaro / scuro */
.compare { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-pop); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; pointer-events: none; }
.compare__top { clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.compare__bar { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 16px rgba(120, 170, 255, .9); pointer-events: none; }
.compare__bar::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: #0f1428 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eaeefb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M12 6a6 6 0 0 0 0 12'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: 0 0 0 2px #fff, 0 8px 20px rgba(0, 0, 0, .5); }
.compare__tag { position: absolute; top: 14px; padding: 4px 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; background: rgba(8, 11, 24, .8); color: #fff; pointer-events: none; }
.compare__tag--l { left: 14px; }
.compare__tag--r { right: 14px; background: rgba(255, 255, 255, .9); color: #0e1330; }

/* esportazioni */
.exports { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.export { padding: 22px; border-radius: 18px; background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-1) inset; }
.export .fmt { display: flex; gap: 6px; margin-bottom: 16px; }
.export .fmt span { font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); }
.export h3 { font-size: 16.5px; }
.export p { color: var(--text-2); font-size: 14px; margin-top: 6px; }
@media (max-width: 960px) { .exports { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .exports { grid-template-columns: 1fr; } }

/* tre fasi con i segnali */
.signals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.signals span { font-size: 12.5px; padding: 4px 10px; border-radius: var(--r-full); background: rgba(8, 11, 24, .6); box-shadow: 0 0 0 1px var(--border-2) inset; color: var(--text-2); }
.phase-card { --c: var(--accent); }
.phase-card .phase__num { margin-bottom: 18px; }
.phase-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--c), transparent); opacity: .8; }

/* le funzioni: blocchi di testo e immagini, alternati */
.story { display: grid; gap: clamp(80px, 10vw, 136px); }
.story .feature { position: relative; }
.story .feature__text .lead + .lead { margin-top: 14px; }
.anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.feature__media--duo { padding-bottom: 9%; }
.shot--inset { position: absolute; z-index: 2; bottom: 0; left: -6%; width: 46%; box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(170, 190, 255, .24); }
.feature--flip .shot--inset { left: auto; right: -6%; }
@media (max-width: 960px) {
  .shot--inset { left: auto; right: 4%; width: 52%; }
  .feature--flip .shot--inset { right: 4%; }
}

/* intermezzo tra le funzioni: una fascia diversa, che fa da pausa */
@property --x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.interlude {
  position: relative; overflow: hidden; isolation: isolate; padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--border-1); border-bottom: 1px solid var(--border-1);
  background: radial-gradient(60% 120% at 50% 0%, rgba(40, 80, 200, .16), transparent 70%), rgba(12, 16, 34, .55);
}
.interlude::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(150, 168, 255, .12) 1px, transparent 1.2px); background-size: 18px 18px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.interlude__ticker {
  position: absolute; left: 0; top: 50%; z-index: -1; display: flex; width: max-content; transform: translateY(-50%);
  font-family: var(--font-dots); font-weight: 900; font-size: clamp(90px, 13vw, 190px); line-height: 1; white-space: nowrap;
  color: rgba(150, 175, 255, .05); animation: ticker 60s linear infinite; pointer-events: none;
}
.interlude__ticker span { padding-right: .4em; }
@keyframes ticker { to { transform: translate(-50%, -50%); } }
.interlude__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.interlude__item { margin: 0; }
.interlude .compare { aspect-ratio: 16 / 8.2; }
/* il confronto va avanti e indietro da solo finché non lo si trascina */
.compare--auto:not(.is-touched) { animation: sweep 7s var(--ease-in-out) infinite alternate; }
@keyframes sweep { from { --x: 14%; } to { --x: 86%; } }
/* il menu radiale: le pagine si accendono una dopo l'altra attorno al logo */
.ring { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto 30px; }
.ring__orbit { position: absolute; inset: 15%; border-radius: 50%; border: 1px dashed rgba(150, 168, 255, .28); animation: spin 40s linear infinite; }
.ring__core { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: 0 0 0 1px var(--border-strong) inset, 0 0 40px -6px rgba(60, 130, 255, .55); }
.ring__core img { width: 56%; }
.ring__item {
  position: absolute; left: 50%; top: 50%; width: 16%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%;
  color: var(--text-2); background: var(--surface-2); box-shadow: 0 0 0 1px var(--border-strong) inset;
  transform: translate(-50%, -50%) rotate(var(--a)) translate(clamp(95px, 35cqw, 118px)) rotate(calc(-1 * var(--a)));
  animation: ring-hl 7.2s infinite; animation-delay: calc(var(--i) * 1.2s);
}
.ring { container-type: inline-size; }
.ring__item svg { width: 42%; height: 42%; }
@keyframes ring-hl {
  0%, 14% { background: #5f8bff; color: #fff; scale: 1.14; box-shadow: 0 0 0 1px rgba(170, 195, 255, .6) inset, 0 0 26px rgba(80, 150, 255, .75); }
  18%, 100% { background: var(--surface-2); color: var(--text-2); scale: 1; box-shadow: 0 0 0 1px var(--border-strong) inset; }
}
@media (max-width: 860px) { .interlude__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .compare--auto, .ring__item, .ring__orbit, .interlude__ticker { animation: none !important; } }

/* home: il ventaglio al posto della vetrina */
.showcase--fan { margin-top: -90px; perspective: none; padding-bottom: clamp(24px, 4vw, 48px); }
.showcase--fan .fan-wrap { margin-top: 0; }

/* panoramica delle funzioni: card con un dettaglio di schermata, un titolo e una frase */
.caps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.cap { display: flex; flex-direction: column; padding: 0; scroll-margin-top: calc(var(--nav-h) + 24px); }
.cap--w2 { grid-column: span 2; }
.cap--w4 { grid-column: span 4; }
.cap--w6 { grid-column: span 6; }
.cap__visual {
  position: relative; height: clamp(190px, 19vw, 260px); margin: 18px 18px 0; border-radius: 12px; overflow: hidden;
  background: #080b18; box-shadow: 0 0 0 1px rgba(170, 190, 255, .14), 0 22px 44px -22px rgba(0, 0, 0, .9);
}
.cap__visual > img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 0); transform: scale(var(--zoom, 1)); transform-origin: var(--pos, 50% 0); transition: transform .9s var(--ease); }
.cap:hover .cap__visual > img { transform: scale(calc(var(--zoom, 1) * 1.05)); }
.cap__visual::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(155deg, rgba(255, 255, 255, .07), transparent 30%); }
.cap__inset {
  position: absolute; right: 14px; bottom: 14px; width: 46%; aspect-ratio: 16 / 7; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(170, 190, 255, .22), 0 18px 36px -12px rgba(0, 0, 0, .9);
}
.cap__inset img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 96%; }
.cap__visual--plain { display: flex; align-items: center; padding: 24px 22px 14px; background: radial-gradient(90% 90% at 50% 100%, rgba(51, 140, 255, .14), transparent 70%), #0a0e20; }
.cap__visual--plain .v-replay { position: relative; width: 100%; }
.cap__visual--plain .v-replay .plot { height: 150px; }
.cap__visual--plain .v-replay svg { height: 150px; }
.cap__body { padding: 20px 24px 24px; margin-top: auto; }
.cap__body h3 { font-size: 20px; letter-spacing: -.02em; }
.cap__body p { color: var(--text-2); font-size: 15px; line-height: 1.55; margin-top: 8px; }
.cap--row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 6px 10px 6px 6px; }
.cap--row .cap__body { margin-top: 0; }
.cap__formats { display: flex; gap: 8px; padding: 0 18px; }
.cap__formats span { font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-text); box-shadow: 0 0 0 1px rgba(111, 147, 255, .25) inset; }
@media (max-width: 960px) {
  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap--w2 { grid-column: span 1; }
  .cap--w4, .cap--w6 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .caps { grid-template-columns: 1fr; }
  .cap--w2, .cap--w4, .cap--w6 { grid-column: auto; }
  .cap__visual { height: 200px; }
  .cap--row { padding: 6px 6px 22px; }
  .cap__formats { padding: 0 24px; }
}

/* =========================================================================
   TEORIA
   ========================================================================= */
.theory { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 32px); }
.toc h2 { font-size: 22px; line-height: 1.2; color: var(--text-2); margin-bottom: 14px; }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; position: relative; }
.toc ol::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: var(--border-2); }
.toc li { counter-increment: toc; }
.toc ol a { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 7px 0; color: var(--text-3); font-size: 14px; transition: color .2s; }
.toc ol a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 10.5px; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: 0 0 0 1px var(--border-2) inset; position: relative; z-index: 1; transition: all .25s; }
.toc ol a:hover { color: var(--text-1); }
.toc ol a.is-active { color: var(--text-1); }
.toc ol a.is-active::before { background: var(--grad-accent); color: #fff; box-shadow: 0 0 14px rgba(80, 150, 255, .6); }
.toc__progress { margin-top: 22px; height: 3px; border-radius: 2px; background: var(--border-2); overflow: hidden; }
.toc__progress i { display: block; height: 100%; width: var(--read, 0%); background: var(--grad-accent); }
.toc__meta { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.toc__meta a { color: var(--accent-text); }
@media (max-width: 960px) { .theory { grid-template-columns: 1fr; } .toc { display: none; } }

.prose > section { padding-bottom: clamp(56px, 7vw, 88px); margin-bottom: clamp(56px, 7vw, 88px); border-bottom: 1px solid var(--border-1); }
.prose > section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose .num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); letter-spacing: .1em; }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; margin: 10px 0 22px; }
.prose p { color: var(--text-2); font-size: 17px; line-height: 1.75; }
.prose p + p { margin-top: 16px; }
.prose p b, .prose p strong { color: var(--text-1); font-weight: 600; }
.prose .cite { font-size: 14px; color: var(--text-3); margin-top: 16px; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.steps3 > div { padding: 20px; border-radius: 16px; background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-1) inset; position: relative; overflow: hidden; }
.steps3 > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--c); opacity: .9; }
.steps3 b { display: block; color: var(--c); font-size: 15px; margin-bottom: 8px; }
.steps3 p { font-size: 14.5px !important; line-height: 1.6 !important; }
.steps3 .a { --c: var(--ph-arousal); }
.steps3 .s { --c: #8fa9ff; }
.steps3 .r { --c: var(--ph-reorg); }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }

.callout { margin-top: 28px; padding: 22px 24px; border-radius: 16px; background: var(--accent-softer); box-shadow: 0 0 0 1px rgba(111, 147, 255, .22) inset; }
.callout h3 { font-size: 16.5px; margin-bottom: 8px; }
.callout p { font-size: 15.5px !important; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.quote { padding: 24px; border-radius: 18px; background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-1) inset; }
.quote__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--c); }
.quote__meter { flex: 1; height: 4px; width: 60px; border-radius: 2px; background: rgba(150, 168, 255, .15); overflow: hidden; }
.quote__meter i { display: block; height: 100%; width: var(--v); background: var(--c); }
.quote blockquote { margin: 14px 0 0; font-size: 17px; line-height: 1.65; color: var(--text-1); font-style: italic; }
.quote figcaption { margin-top: 12px; font-size: 13.5px; color: var(--text-3); }
.quote--hi { --c: var(--success); }
.quote--lo { --c: var(--warning); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

.qualities { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.qualities span { padding: 8px 16px; border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent-text); font-weight: 600; font-size: 14.5px; box-shadow: 0 0 0 1px rgba(111, 147, 255, .25) inset; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.stat { padding: 22px; border-radius: 18px; background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-1) inset; }
.stat strong { display: block; font-size: clamp(30px, 3.4vw, 40px); font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; color: var(--text-2); font-size: 14px; margin-top: 4px; line-height: 1.5; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

.tcm { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; margin: 28px 0; }
.tcm .h { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; }
.tcm .h.col { justify-content: center; }
.tcm .cell { padding: 18px; border-radius: 16px; background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-1) inset; transition: box-shadow .3s, background-color .3s; }
.tcm .cell:hover { background: rgba(20, 26, 50, .9); box-shadow: 0 0 0 1px var(--border-strong) inset; }
.tcm .cell b { display: block; font-size: 15px; margin-bottom: 6px; }
.tcm .cell p { font-size: 14px !important; line-height: 1.55 !important; }
@media (max-width: 640px) { .tcm { grid-template-columns: 1fr; } .tcm .h.col, .tcm .h:first-child { display: none; } }

.kiki { margin-top: 28px; padding: 28px; border-radius: 20px; background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-1) inset; text-align: center; }
.kiki__q { font-size: 17px; color: var(--text-1); font-weight: 600; }
.kiki__shapes { display: flex; justify-content: center; gap: clamp(24px, 8vw, 80px); margin: 26px 0; }
.kiki__shape { display: grid; justify-items: center; gap: 12px; }
.kiki__shape svg { width: 130px; height: 130px; transition: transform .6s var(--ease-spring); }
.kiki__shape:hover svg { transform: rotate(-8deg) scale(1.05); }
.kiki__name { height: 28px; padding: 0 14px; border-radius: var(--r-full); display: inline-flex; align-items: center; font-weight: 700; background: var(--surface-3); color: var(--text-3); transition: all .4s var(--ease); }
.kiki.is-revealed .kiki__name { background: var(--grad-accent); color: #fff; }
.kiki__answer { color: var(--text-2); font-size: 15px; max-width: 560px; margin: 16px auto 0; display: none; }
.kiki.is-revealed .kiki__answer { display: block; animation: fade-up .5s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

.narr { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0; counter-reset: narr; }
.narr > div { padding: 16px; border-radius: 14px; background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-1) inset; counter-increment: narr; }
.narr > div::before { content: counter(narr); font-family: var(--font-mono); font-size: 11px; color: var(--accent-text); display: block; margin-bottom: 8px; }
.narr b { display: block; font-size: 15px; }
.narr span { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 4px; }
@media (max-width: 760px) { .narr { grid-template-columns: 1fr 1fr; } }

.adds { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.adds li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); font-size: 16px; }
.adds li::before { content: ""; width: 22px; height: 22px; border-radius: 7px; margin-top: 2px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db5ff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* =========================================================================
   GRUPPO e MEMBRI
   ========================================================================= */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } }
.person { padding: 0; display: flex; flex-direction: column; transition: transform .4s var(--ease); }
.person:hover { transform: translateY(-6px); }
.person__photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.02); transform: scale(1.02); transition: filter .6s var(--ease), transform .8s var(--ease); }
.person:hover .person__photo img { filter: none; transform: scale(1.07); }
.person__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15, 20, 40, .95)); }
.person__role { position: absolute; left: 20px; top: 18px; z-index: 2; }
.person__body { padding: 0 24px 24px; margin-top: -26px; position: relative; z-index: 2; }
.person__body h3 { font-size: 22px; }
.person__body p { font-size: 14.5px; color: var(--text-2); margin-top: 6px; }
.person__body .card__more { margin-top: 16px; }

.member { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.member__photo { position: sticky; top: calc(var(--nav-h) + 32px); }
.member__photo .shot { aspect-ratio: 1 / 1; border-radius: 24px; }
.member__photo img { object-fit: cover; }
.member h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -.04em; margin-top: 16px; }
.member .lead { margin-top: 12px; }
.member__bio { margin-top: 36px; }
.member__bio h2 { font-size: 24px; line-height: 1.2; color: var(--accent-text); margin-bottom: 12px; }
.member__bio p { color: var(--text-2); font-size: 17px; line-height: 1.75; }
.member__bio p + p { margin-top: 14px; }
.member__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.member__nav a { display: block; padding: 18px 20px; border-radius: 16px; background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-1) inset; transition: box-shadow .25s, transform .25s var(--ease); }
.member__nav a:hover { box-shadow: 0 0 0 1px var(--border-strong) inset; transform: translateY(-2px); }
.member__nav small { display: block; font-size: 12px; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.member__nav b { display: block; margin-top: 4px; font-size: 16px; }
.member__nav a:last-child { text-align: right; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.back svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.back:hover { color: #fff; }
.back:hover svg { transform: translateX(-3px); }
@media (max-width: 860px) { .member { grid-template-columns: 1fr; } .member__photo { position: static; max-width: 320px; } }

/* =========================================================================
   DOWNLOAD
   ========================================================================= */
.dl-main {
  position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center;
  border-radius: 28px; padding: clamp(28px, 5vw, 56px); overflow: hidden; isolation: isolate;
  background: radial-gradient(80% 120% at 100% 0%, rgba(40, 80, 200, .45), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface-1));
  box-shadow: 0 0 0 1px var(--border-2) inset, var(--shadow-pop);
}
.dl-main h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; margin-top: 12px; }
.dl-main .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dl-main .btn-row { margin-top: 28px; }
.dl-main .fine { margin-top: 16px; color: var(--text-3); font-size: 13.5px; }
.dl-main .shot { transform: perspective(1400px) rotateY(-14deg) rotateX(4deg); transition: transform .8s var(--ease); }
.dl-main:hover .shot { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
@media (max-width: 900px) { .dl-main { grid-template-columns: 1fr; } .dl-main .shot { transform: none; } }

.dl-cards .card { display: flex; flex-direction: column; }
.dl-cards .card .btn-row { margin-top: auto; padding-top: 22px; }
.dl-cards .card p { margin-bottom: 0; }
.badge-soon { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 700; background: rgba(245, 185, 74, .14); color: var(--warning); box-shadow: 0 0 0 1px rgba(245, 185, 74, .3) inset; margin-left: 8px; vertical-align: middle; }

/* due piattaforme, stesso peso */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.platform { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px); }
.platform__icon {
  width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, var(--surface-3), var(--surface-1)); box-shadow: 0 0 0 1px var(--border-strong) inset, 0 20px 40px -18px rgba(40, 110, 255, .7);
}
.platform__icon svg { width: 34px; height: 34px; }
.platform h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.03em; margin-top: 22px; }
.platform__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.platform__btn { margin-top: 28px; min-width: 240px; }
.platform__fine { margin-top: 14px !important; color: var(--text-3) !important; font-size: 13.5px !important; }
@media (max-width: 760px) { .platforms { grid-template-columns: 1fr; } .platform__btn { width: 100%; min-width: 0; } }

.guide-row { display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; margin-top: 20px; padding: 22px 26px; }
.guide-row__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); box-shadow: 0 0 0 1px rgba(111, 147, 255, .22) inset; }
.guide-row__icon svg { width: 22px; height: 22px; }
.guide-row__text { flex: 1 1 260px; }
.guide-row__text h3 { font-size: 18px; }
.guide-row__text p { margin-top: 4px; }

.os-tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.os-tip { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 20px; border-radius: 16px; background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-1) inset; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.os-tip b { color: var(--text-1); }
.os-tip__icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-1); box-shadow: 0 0 0 1px var(--border-2) inset; }
.os-tip__icon svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .os-tips { grid-template-columns: 1fr; } }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.step { position: relative; padding: 24px; border-radius: 18px; background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-1) inset; }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent-text); }
.step h3 { font-size: 18px; margin-top: 10px; }
.step p { color: var(--text-2); font-size: 14.5px; margin-top: 8px; }
.step p b { color: var(--text-1); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.changelog { display: grid; gap: 14px; }
.release { padding: 24px 26px; border-radius: 18px; background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-1) inset; }
.release__head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; }
.release__head h3 { font-size: 20px; }
.release__head time { color: var(--text-3); font-size: 14px; }
.release__title { color: var(--text-2); margin-top: 6px; }
.release__group { margin-top: 14px; }
.release__group h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.release__group ul { margin-top: 8px; padding-left: 18px; color: var(--text-2); font-size: 15px; display: grid; gap: 4px; }
.release__dl { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }

.req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.req > div { padding: 20px 22px; border-radius: 16px; background: rgba(15, 20, 40, .6); box-shadow: 0 0 0 1px var(--border-1) inset; }
.req small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.req b { display: block; margin-top: 6px; font-size: 16px; }
.req span { display: block; color: var(--text-2); font-size: 14px; margin-top: 4px; }
@media (max-width: 760px) { .req { grid-template-columns: 1fr; } }

.note { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px 20px; border-radius: 16px; background: var(--accent-softer); box-shadow: 0 0 0 1px rgba(111, 147, 255, .22) inset; color: var(--text-2); font-size: 15px; }
.note svg { width: 22px; height: 22px; color: var(--accent-text); margin-top: 1px; }
.note b { color: var(--text-1); }

/* =========================================================================
   404
   ========================================================================= */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 24px; position: relative; overflow: hidden; background: var(--grad-brand); }
.nf__code { font-size: clamp(120px, 24vw, 260px); font-weight: 800; letter-spacing: -.06em; line-height: .9; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nf h1 { font-size: clamp(28px, 4vw, 42px); margin-top: 12px; }
.nf p { color: var(--text-2); margin-top: 14px; }
.nf .btn-row { justify-content: center; margin-top: 30px; }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .showcase__frame { --p: 0 !important; }
}

/* ---------- Schermi stretti ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; --nav-h: 60px; }
  .card { padding: 22px; }
  .hero h1 { letter-spacing: -.04em; }
  .btn--lg { --h: 50px; padding: 0 22px; }
  .intro-skip { right: 16px; bottom: 16px; }
}
