/* ==========================================================================
   Methood by Disobey · sito ufficiale · v2 "Rumore → Segnale" (27 ottobre 2026)
   Il mercato fa rumore; il segno Disobey lo trasforma in metodo.
   Colori e caratteri del marchio: nero #111115, bianco, verdino #20E8A6 (azioni, stati, "live"),
   viola #916BCF (luoghi e luce di fondo). Geist e Geist Mono.
   Il movimento è GSAP + ScrollTrigger + Lenis (motore.js). Con "riduci movimento" tutto è fermo.
   ========================================================================== */

@font-face { font-family: 'Geist'; src: url('assets/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('assets/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #111115; --bg-deep: #0C0C0F;
  --surface: #18181D; --surface-2: #1F1F25; --surface-3: #29292F;
  --line: rgba(255, 255, 255, 0.08); --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #FFFFFF; --ink-2: #A8A8B3; --muted: #82828D; --on-ink: #111115;
  --accent: #20E8A6; --accent-soft: rgba(32, 232, 166, 0.12); --accent-line: rgba(32, 232, 166, 0.36);
  --violet: #916BCF; --violet-soft: rgba(145, 107, 207, 0.14); --violet-line: rgba(145, 107, 207, 0.36);
  --gain: #2a93b0; --loss: #d75d3f; --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --anello-w: min(40vmin, 470px);
  --z-header: 20; --z-cursor: 60; --z-intro: 80; --z-grain: 70;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 104px; } /* l'isola fissa non copre ancore e focus */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; text-wrap: pretty; }
body.is-loading { overflow: hidden; }
body::after { content: ''; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: 0.04;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
a, button, summary { touch-action: manipulation; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--on-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }
.wrap { width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- pulsanti: pillola, freccia nel pozzetto, magnetici ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease); }
.btn:active { scale: 0.97; }
.btn-primary { background: var(--ink); color: var(--on-ink); padding-right: 8px; }
.btn-primary:hover { background: #ECECF1; }
.btn-ghost { background: rgba(255, 255, 255, 0.02); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.3); }
.well { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(17, 17, 21, 0.09); transition: transform 300ms var(--ease); }
.btn:hover .well { transform: translate(3px, -1px) rotate(-45deg); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-sm.btn-primary { padding-right: 5px; }
.btn-sm .well { width: 30px; height: 30px; }
.ext { width: 13px; height: 13px; opacity: 0.6; }

/* ---------- intestazione: sempre fissa. In cima è larga, scorrendo si compatta; il simbolo del logo si traccia
   in verdino quanto hai letto; la pillola bianca scivola sulla voce della scena; il bordo prende il colore della scena ---------- */
.testa { position: fixed; top: 12px; left: 0; right: 0; z-index: var(--z-header); pointer-events: none; }
.isola { --tinta: 255, 255, 255; --tinta-a: 0.08; position: relative; display: flex; align-items: center; gap: 16px; min-height: 64px; max-width: 100%; margin-inline: auto; padding: 8px 8px 8px 20px; border-radius: 24px; pointer-events: auto;
  background: rgba(24, 24, 29, 0.66); border: 1px solid rgba(var(--tinta), var(--tinta-a));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 50px -20px rgba(0, 0, 0, 0.7), 0 0 40px -16px rgba(var(--tinta), calc(var(--tinta-a) * 1.4));
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition: max-width 900ms var(--ease), background-color 500ms var(--ease), border-color 700ms var(--ease), box-shadow 700ms var(--ease); }
.testa.is-compatta .isola { max-width: 1010px; background: rgba(20, 20, 25, 0.8); }
.isola.is-tinta { --tinta-a: 0.5; }
.isola .logo { position: relative; display: block; flex: none; }
.isola .logo img { width: 116px; height: auto; }
.logo-anello { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.traccia-logo { fill: none; stroke: var(--accent); stroke-width: 26; stroke-linecap: butt; stroke-dasharray: 100; stroke-dashoffset: 100; } /* corre sulla linea di mezzo, ritagliata nella forma del simbolo */
.nav { position: relative; display: flex; gap: 2px; margin-inline: auto; }
.nav-pillola { position: absolute; left: 0; top: 0; width: 0; height: 40px; border-radius: 999px; background: var(--ink); opacity: 0; pointer-events: none; }
.nav a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color 200ms var(--ease), background-color 200ms var(--ease); }
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.nav a.is-on, .nav a.is-on:hover { color: var(--on-ink); background: transparent; }
.testa-lati { display: flex; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform 400ms var(--ease); }
.menu-btn span:nth-of-type(1) { top: 17px; } .menu-btn span:nth-of-type(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: calc(var(--z-header) - 1); display: grid; align-content: center; gap: 4px; padding: 120px var(--gutter) 60px; background: rgba(12, 12, 15, 0.97);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); visibility: hidden; opacity: 0; overscroll-behavior: contain; }
.menu a { font-size: clamp(36px, 11vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.15; text-decoration: none; }
.menu a.btn { font-size: 17px; font-weight: 500; letter-spacing: 0; line-height: 1; }
.menu .btn { margin-top: 28px; justify-self: start; }

/* ---------- intro: il segno che gira diventa la finestra ---------- */
.intro { position: fixed; inset: 0; z-index: var(--z-intro); pointer-events: none; }
.intro svg { position: absolute; left: 50%; top: 46%; width: var(--anello-w); height: auto; transform: translate(-50%, -50%); overflow: visible; }
.intro .velo { fill: var(--bg); fill-rule: evenodd; }
.intro .tappo { fill: var(--bg); }
.intro .corpo { fill: rgba(255, 255, 255, 0.12); fill-rule: evenodd; }
.intro .traccia { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 18 82; animation: giro 1.4s linear infinite; filter: drop-shadow(0 0 6px rgba(32, 232, 166, 0.55)); }
.intro .traccia.in { stroke-dasharray: 12 88; animation-duration: 2.1s; animation-direction: reverse; opacity: 0.8; }
@keyframes giro { to { stroke-dashoffset: -100; } }

/* ---------- 1. rumore → segnale ---------- */
.hero { position: relative; height: 100dvh; min-height: 560px; overflow: hidden; isolation: isolate; }
.rumore { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 46%, transparent 30%, rgba(17, 17, 21, 0.55) 70%, var(--bg) 100%); }
.anello { position: absolute; left: 50%; top: 46%; z-index: 2; width: var(--anello-w); aspect-ratio: 121.92 / 102.93; translate: -50% -50%; will-change: transform; }
.anello-dentro { position: absolute; inset: 0; overflow: hidden;
  -webkit-mask: url(assets/finestra-vano.svg) 0 0 / 100% 100% no-repeat; mask: url(assets/finestra-vano.svg) 0 0 / 100% 100% no-repeat;
  background: radial-gradient(70% 70% at 50% 60%, rgba(145, 107, 207, 0.22), transparent 70%), var(--bg); }
.segnale { position: absolute; left: 17.4%; top: 19.3%; width: 65.2%; height: 61.4%; overflow: visible; }
.segnale .griglia { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.segnale .linea { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.segnale .area { fill: url(#segnale-area); }
.vivo { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(32, 232, 166, 0.5); animation: vivo 1.8s var(--ease) infinite; }
@keyframes vivo { 0% { box-shadow: 0 0 0 0 rgba(32, 232, 166, 0.55); } 100% { box-shadow: 0 0 0 14px rgba(32, 232, 166, 0); } }
.anello-segno { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--ink); fill-rule: evenodd; }

.h-titolo { position: absolute; left: 0; right: 0; top: 46%; z-index: 3; display: grid; grid-template-columns: 1fr calc(var(--anello-w) + 4vw) 1fr; align-items: center; margin: 0; translate: 0 -50%;
  font-size: clamp(40px, 5.3vw, 96px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.95; pointer-events: none; }
.h-titolo .sx { grid-column: 1; justify-self: end; text-align: right; }
.h-titolo .dx { grid-column: 3; justify-self: start; }
.h-titolo .vis { display: contents; }
.h-titolo .sx, .h-titolo .dx { display: grid; }
.h-titolo .sx { justify-items: end; } .h-titolo .dx { justify-items: start; }
.h-titolo .t1, .h-titolo .t2 { grid-area: 1 / 1; white-space: nowrap; will-change: transform; }
.h-titolo .t2 { opacity: 0; }
.h-basso { position: absolute; left: 0; right: 0; bottom: max(28px, 5.5vh, calc(env(safe-area-inset-bottom) + 16px)); z-index: 3; display: grid; justify-items: center; gap: 22px; text-align: center; padding-inline: var(--gutter); }
.h-basso p { margin: 0; max-width: 46ch; font-size: clamp(16px, 1.25vw, 18px); color: var(--ink-2); }
.azioni { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.h-fase2 { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: var(--gutter); pointer-events: none; }
.h-fase2 p { margin: 0; max-width: 14ch; text-align: center; font-size: clamp(44px, 8vw, 128px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.95; }
.h-fase2 .w { display: inline-block; opacity: 0; }

/* ---------- 2. il metodo ---------- */
.metodo { position: relative; min-height: 100dvh; display: grid; align-items: center; padding-block: 110px 60px; background: radial-gradient(60% 50% at 75% 50%, rgba(145, 107, 207, 0.1), transparent 70%); }
.metodo-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.passi { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.passo { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 0 22px; opacity: 0.14; transition: opacity 400ms var(--ease); }
.passo.is-on { opacity: 1; }
.passo .num { font-size: 14px; color: var(--muted); }
.passo b { font-size: clamp(38px, 6.4vw, 104px); font-weight: 600; letter-spacing: -0.055em; line-height: 1.02; }
.passo p { grid-column: 2; margin: 0; max-height: 0; overflow: hidden; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); transition: max-height 500ms var(--ease), margin 500ms var(--ease); }
.passo.is-on p { max-height: 3em; margin: 4px 0 14px; }
.metodo-anello { position: relative; width: 100%; max-width: 520px; aspect-ratio: 121.92 / 102.93; justify-self: center; }
.metodo-anello .contorno { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.metodo-anello .base { fill: rgba(255, 255, 255, 0.07); fill-rule: evenodd; }
.metodo-anello .traccia { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 8px rgba(32, 232, 166, 0.45)); }
.scene { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 55%, rgba(145, 107, 207, 0.12), transparent 75%), var(--bg-deep);
  -webkit-mask: url(assets/finestra-vano.svg) 0 0 / 100% 100% no-repeat; mask: url(assets/finestra-vano.svg) 0 0 / 100% 100% no-repeat; }
.scena { position: absolute; left: 17.4%; top: 19.3%; width: 65.2%; height: 61.4%; display: grid; place-items: center; opacity: 0; }
.scena svg { width: 86%; height: 80%; overflow: visible; }
.scena text { font-family: var(--mono); font-size: 9px; fill: var(--ink-2); }
.scena .t-bianco { fill: var(--ink); font-family: var(--font); font-size: 11px; font-weight: 500; }

/* ---------- 3. tre canali ---------- */
.canali-titolo { padding-block: clamp(100px, 14vw, 200px) 40px; }
.cinetico { margin: 0; font-size: clamp(48px, 10vw, 170px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; }
.cinetico .c { display: inline-block; }
.cinetico .riga { display: block; }
.cinetico .riga + .riga { color: var(--muted); }
.pan { position: relative; overflow: hidden; }
.pan:focus-visible { outline-offset: -4px; border-radius: 32px; }
.pista { display: flex; gap: clamp(20px, 3vw, 40px); padding-inline: max(var(--gutter), calc((100vw - min(1180px, 84vw)) / 2)); height: 100dvh; align-items: center; width: max-content; }
.canale { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 3vw, 48px); align-items: center; width: min(1180px, 84vw); height: min(640px, 78dvh); padding: clamp(24px, 3vw, 48px);
  border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.02), 0 0 0 7px rgba(255, 255, 255, 0.05); overflow: hidden; isolation: isolate; }
.canale::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 0% 100%, rgba(145, 107, 207, 0.14), transparent 60%); }
.canale-testa { display: grid; gap: 18px; align-content: center; }
.segno { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 32%; color: var(--violet); background: linear-gradient(160deg, rgba(145, 107, 207, 0.2), rgba(145, 107, 207, 0.05)); box-shadow: inset 0 0 0 1px var(--violet-line); }
.segno .i { width: 26px; height: 26px; }
.canale h3 { margin: 0; font-size: clamp(40px, 5vw, 76px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
.canale-testa p { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 30ch; }
.chat { position: relative; height: 100%; max-height: 520px; display: grid; grid-template-rows: auto 1fr; border-radius: 24px; background: var(--bg-deep); border: 1px solid var(--line); overflow: hidden; }
.chat-testa { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-testa .av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 32%; background: var(--ink); }
.chat-testa .av svg { width: 22px; fill: var(--on-ink); }
.chat-testa b { display: block; font-size: 15px; font-weight: 600; }
.chat-testa small { font-size: 12.5px; color: var(--muted); }
.chat-corpo { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px; overflow: hidden;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 44px); mask: linear-gradient(to bottom, transparent, #000 44px); } /* i messaggi più vecchi sfumano sotto la testata, come in una chat vera */
.msg { max-width: 86%; padding: 12px 14px; border-radius: 16px 16px 16px 6px; background: var(--surface-2); font-size: 14.5px; line-height: 1.45; }
.msg small { display: block; margin-bottom: 3px; font-size: 12px; font-weight: 600; color: var(--violet); }
.msg.me { align-self: flex-end; border-radius: 16px 16px 6px 16px; background: var(--ink); color: var(--on-ink); }
.msg.me small { color: rgba(17, 17, 21, 0.55); }
.allegato { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 13px; }
.allegato .i { width: 20px; height: 20px; color: var(--s2); }
.mini-grafico { margin-top: 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.scrive { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.scrive i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: scrive 1.1s infinite; }
.scrive i:nth-child(2) { animation-delay: 0.15s; } .scrive i:nth-child(3) { animation-delay: 0.3s; }
@keyframes scrive { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.diretta { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, rgba(145, 107, 207, 0.2), rgba(145, 107, 207, 0.04)); border: 1px solid var(--violet-line); }
.diretta-testa { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.badge-live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; }
.badge-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: vivo 1.6s infinite; }
.onda { display: flex; align-items: center; gap: 3px; height: 34px; }
.onda i { flex: 1; height: 30%; border-radius: 2px; background: rgba(255, 255, 255, 0.5); transform-origin: 50% 50%; }
/* l'elenco degli argomenti parte dall'alto e si vede intero: niente sfumatura, niente righe nascoste */
.chat-corpo.argomenti { justify-content: flex-start; gap: 8px; -webkit-mask: none; mask: none; }
.topic { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: var(--surface-2); }
.topic .lt { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 32%; background: var(--violet-soft); color: var(--violet); font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px var(--violet-line); }
.topic > div { line-height: 1.3; }
.topic b { display: block; font-size: 14px; font-weight: 600; }
.topic span { font-size: 12.5px; color: var(--muted); }
.topic .non-letti { min-width: 26px; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--on-ink); font-family: var(--mono); font-size: 12px; font-weight: 600; text-align: center; }

/* ---------- 4. la settimana: card in pila ---------- */
.settimana { padding-block: clamp(100px, 14vw, 180px) 0; }
.settimana .cinetico { margin-bottom: clamp(40px, 6vw, 80px); }
.pila { position: relative; display: grid; gap: 28px; padding-bottom: 12vh; }
.format { position: sticky; top: calc(13vh + var(--i) * 14px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; min-height: min(62vh, 560px);
  padding: clamp(28px, 4vw, 64px); border-radius: 32px; border: 1px solid rgba(var(--c), 0.32);
  background: radial-gradient(90% 130% at 100% 0%, rgba(var(--c), 0.34), transparent 58%), radial-gradient(70% 90% at 0% 100%, rgba(var(--c), 0.14), transparent 62%), #17171C; box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05); transform-origin: 50% 0; overflow: hidden; isolation: isolate; }
.format { --c: 145, 107, 207; }
.format .format-quando { color: color-mix(in srgb, rgb(var(--c)) 72%, #fff); font-weight: 500; }
.format::after { content: ''; position: absolute; right: -8%; bottom: -30%; z-index: -1; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--c), 0.22), transparent); pointer-events: none; }
.format .sole, .format .raggi, .format .lancette, .format .battito { stroke: rgb(var(--c)); }
.format .righe-recap rect { fill: rgba(var(--c), 0.28); }
.format .sintesi { fill: rgb(var(--c)); }
.format .quadrante { fill: rgba(var(--c), 0.3); }
.format-quando { font-family: var(--mono); font-size: 14px; color: var(--muted); letter-spacing: 0; }
.format h3 { margin: 10px 0 14px; font-size: clamp(40px, 5.6vw, 92px); font-weight: 600; letter-spacing: -0.055em; line-height: 0.92; }
.format p { margin: 0; max-width: 40ch; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); }
.format-vis { position: relative; height: 100%; min-height: 260px; display: grid; place-items: center; }
.format-vis svg { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.velo-format { position: absolute; inset: 0; z-index: 2; background: var(--bg); opacity: 0; pointer-events: none; border-radius: inherit; }
.tick { display: inline-flex; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 18px; color: var(--muted); }
.ticks { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 380px; }
.grande-ora { font-family: var(--mono); font-size: clamp(64px, 9vw, 140px); letter-spacing: -0.06em; line-height: 1; }

/* ---------- 5. l'area riservata: il muro ---------- */
.riservata { position: relative; height: 170vh; }
.riservata-scena { position: sticky; top: 0; height: 100dvh; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.muro { position: absolute; inset: -25% -15%; z-index: 0; display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 16px; transform: rotate(-7deg);
  -webkit-mask-image: radial-gradient(70% 65% at 50% 50%, #000 35%, transparent 85%); mask-image: radial-gradient(70% 65% at 50% 50%, #000 35%, transparent 85%); }
.muro-col { display: grid; gap: 16px; align-content: start; }
.muro-col:nth-child(even) { margin-top: -180px; }
.tessera { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.06); color: var(--ink-2); font-size: 14px; }
.tessera b { display: block; color: var(--ink); font-weight: 500; font-size: 15px; }
.tessera .i { width: 18px; height: 18px; color: var(--muted); }
.tessera.luogo { background: rgba(145, 107, 207, 0.09); border-color: rgba(145, 107, 207, 0.28); }
.tessera.luogo b { font-size: 17px; font-weight: 600; }
.tessera.luogo .pz { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 32%; background: var(--violet-soft); box-shadow: inset 0 0 0 1px var(--violet-line); }
.tessera.luogo .i { color: var(--violet); width: 20px; height: 20px; }
.tessera.nuovo { border-color: var(--accent-line); }
.tessera.nuovo .i { color: var(--accent); }
.vetro { position: relative; z-index: 2; will-change: transform; width: min(620px, calc(100% - 2 * var(--gutter))); padding: 6px; border-radius: 34px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 60px 120px -40px rgba(0, 0, 0, 0.9); }
.vetro-core { display: grid; gap: 22px; justify-items: start; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: rgba(17, 17, 21, 0.8); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.vetro h2 { margin: 0; font-size: clamp(38px, 5vw, 68px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.96; }
.vetro p { margin: 0; font-size: 17px; color: var(--ink-2); max-width: 40ch; }

/* ---------- 6. numeri e voci ---------- */
.prova { padding-block: clamp(100px, 13vw, 180px) clamp(60px, 8vw, 100px); overflow: hidden; }
.numeri { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 0; }
.numeri div { display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.numeri dd { margin: 0; font-size: clamp(44px, 5.4vw, 88px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.numeri dt { font-size: 15px; color: var(--ink-2); }
.voci { margin-top: clamp(64px, 9vw, 120px); display: grid; gap: 16px; }
.nastro { display: flex; gap: 16px; width: max-content; padding-right: 16px; will-change: transform; }
.voce { flex: none; width: min(520px, 80vw); margin: 0; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.voce blockquote { margin: 0; font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.voce figcaption { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.voci-fine { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- 7. piani ---------- */
.piani { padding-block: clamp(100px, 12vw, 160px); }
.piani-testa { display: grid; justify-items: center; gap: 26px; text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.piani-testa h2 { margin: 0; font-size: clamp(44px, 7vw, 112px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.92; }
.periodo { position: relative; display: inline-grid; grid-auto-flow: column; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.periodo button { position: relative; z-index: 1; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 500; cursor: pointer; transition: color 300ms var(--ease); }
.periodo button[aria-pressed="true"] { color: var(--on-ink); }
.periodo .cursore { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--ink); }
.carte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; perspective: 1400px; align-items: stretch; }
.carta { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 22px; padding: clamp(26px, 2.6vw, 36px); border-radius: 30px; background: var(--surface); border: 1px solid var(--line); transform-style: preserve-3d; isolation: isolate; }
.carta h3 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.04em; }
.carta > p { margin: -12px 0 0; color: var(--ink-2); font-size: 15.5px; }
.prezzo { display: flex; align-items: baseline; gap: 8px; height: 64px; overflow: hidden; }
.prezzo .valore { position: relative; display: inline-block; font-size: 56px; font-weight: 600; letter-spacing: -0.05em; line-height: 64px; font-variant-numeric: tabular-nums; }
.prezzo .per { font-size: 15px; color: var(--muted); }
.carta ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; align-content: start; }
.carta li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.carta li .i { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.carta li.piu { color: var(--ink); font-weight: 500; }
.carta .btn { width: 100%; justify-content: space-between; padding-left: 24px; }
.carta.top { background: #1C1C22; }
.carta.top::before { content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--giro, 0deg), transparent 0deg, transparent 250deg, var(--accent) 320deg, transparent 360deg);
  -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);
  animation: bordo 5s linear infinite; }
@property --giro { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes bordo { to { --giro: 360deg; } }
.consigliato { position: absolute; top: 26px; right: 26px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.piani-nota { margin: 32px auto 0; max-width: 70ch; text-align: center; font-size: 14.5px; color: var(--muted); }

/* ---------- 8. non siamo per tutti: il bivio ---------- */
.selezione { padding-block: clamp(100px, 13vw, 180px) clamp(60px, 8vw, 100px); overflow: hidden; } /* le strade entrano dai lati: non devono allargare la pagina */
.bivio { display: flex; gap: 16px; margin-top: clamp(40px, 5vw, 72px); min-height: 540px; }
.ramo { position: relative; flex: 1 1 0; min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 24px; padding: clamp(24px, 3vw, 44px); border-radius: 32px;
  background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: flex-grow 800ms var(--ease), opacity 500ms var(--ease); }
@media (hover: hover) and (min-width: 761px) {
  .bivio:hover .ramo, .bivio:focus-within .ramo { flex-grow: 0.72; opacity: 0.55; }
  .bivio .ramo:hover, .bivio .ramo:focus-within { flex-grow: 1.5; opacity: 1; }
  .ramo:hover .ramo-vis svg, .ramo:focus-within .ramo-vis svg { transform: scale(1.1) rotate(-4deg); }
}
.ramo.is-pieno { background: radial-gradient(90% 100% at 85% 0%, rgba(145, 107, 207, 0.18), transparent 60%), #1C1C22; }
.ramo-vis { display: grid; place-items: center; min-height: 0; }
.ramo-vis svg { width: min(64%, 320px); height: auto; overflow: visible; transition: transform 900ms var(--ease); }
.ramo .vuoto { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 1.1; stroke-dasharray: 1.6 3.2; }
.ramo .luce { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 92; animation: giro 3.2s linear infinite; filter: drop-shadow(0 0 6px rgba(32, 232, 166, 0.6)); }
.ramo .pieno { fill: var(--ink); fill-rule: evenodd; }
.ramo .filo { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.ramo-testo { display: grid; gap: 14px; justify-items: start; }
.ramo h3 { margin: 0; font-size: clamp(32px, 3.6vw, 56px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; white-space: nowrap; }
.ramo p { margin: 0 0 6px; max-width: 34ch; color: var(--ink-2); font-size: 17px; }

/* ---------- 9. domande ---------- */
.domande { padding-block: clamp(60px, 8vw, 120px); }
.domande-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.domande h2 { position: sticky; top: 120px; margin: 0; font-size: clamp(44px, 6vw, 96px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.92; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 76px; padding: 18px 0; cursor: pointer; list-style: none; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary:hover .piu { border-color: var(--accent-line); }
.faq summary .piu { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 400ms var(--ease), background-color 300ms var(--ease); }
.faq summary .piu::before, .faq summary .piu::after { content: ''; position: absolute; left: 11px; right: 11px; top: 17px; height: 1.5px; background: var(--ink); }
.faq summary .piu::after { transform: rotate(90deg); transition: transform 400ms var(--ease); }
.faq details[open] summary .piu { background: var(--ink); }
.faq details[open] summary .piu::before, .faq details[open] summary .piu::after { background: var(--on-ink); }
.faq details[open] summary .piu::after { transform: rotate(0deg); }
.faq .risposta { padding: 0 56px 24px 0; color: var(--ink-2); font-size: 16.5px; max-width: 64ch; }

/* ---------- 10. finale ---------- */
/* finale e piè di pagina insieme riempiono l'ultimo schermo: in fondo il titolo resta sotto la barra, non dietro */
.finale { position: relative; min-height: calc(100dvh - var(--piede, 0px)); display: grid; place-items: center; overflow: hidden; isolation: isolate; padding-block: clamp(100px, 14vh, 140px) clamp(40px, 7vh, 100px); }
.finale::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 45% at 50% 58%, rgba(145, 107, 207, 0.16), transparent 70%); }
.finale-wrap { display: grid; justify-items: center; gap: 26px; text-align: center; }
.finale-titolo { font-size: clamp(52px, min(9vw, 15vh), 150px); }
.finale-wrap > p { margin: -6px 0 18px; color: var(--ink-2); font-size: 18px; }
.btn-xl { min-height: 68px; padding: 0 10px 0 32px; font-size: 19px; gap: 16px; }
.btn-xl .well { width: 48px; height: 48px; }
.contatti { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 15px; }
.contatti a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.contatti a:hover { color: var(--ink); }

.piede { border-top: 1px solid var(--line); padding-block: 36px 40px; font-size: 14px; color: var(--ink-2); }
.piede-riga { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.piede img { width: 112px; }
.piede ul { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.piede a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.piede a:hover { color: var(--ink); }
.rischio { margin: 18px 0 0; max-width: 100ch; font-size: 12.5px; color: var(--muted); }


/* ---------- telefono ---------- */
@media (max-width: 960px) {
  .metodo-grid { grid-template-columns: minmax(0, 1fr); }
  .metodo-anello { order: -1; max-width: 340px; }
  .numeri { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numeri div:last-child { grid-column: 1 / -1; }
  .carte { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .domande-grid { grid-template-columns: minmax(0, 1fr); }
  .domande h2 { position: static; }
}
@media (max-width: 860px) {
  .nav, .testa-lati .btn-ghost { display: none; }
  .menu-btn { display: block; }
  .isola { padding-left: 16px; }
  .testa-lati { margin-left: auto; }
}
@media (max-width: 760px) {
  /* la prima schermata in colonna: barra, anello, slogan, sottotitolo e pulsanti. Tutto deriva dall'altezza dello schermo
     (svh: non salta quando Safari nasconde la barra) e da --basso, l'altezza di sottotitolo e pulsanti misurata dal motore */
  :root {
    --fs-h: clamp(40px, 12.5vw, 60px);
    --testa-h: 84px;
    --anello-w: max(150px, min(68vw, 300px, calc((100svh - var(--testa-h) - var(--basso, 250px) - var(--fs-h) * 1.9 - 64px) / 0.8442)));
    --gruppo: calc(var(--anello-w) * 0.8442 + 22px + var(--fs-h) * 1.9);
    --gruppo-top: calc((var(--testa-h) + 100svh - var(--basso, 250px)) / 2 - var(--gruppo) / 2);
    --anello-y: calc(var(--gruppo-top) + var(--anello-w) * 0.4221);
  }
  .hero { height: 100svh; }
  .hero::before { background: radial-gradient(90% 46% at 50% var(--anello-y), transparent 30%, rgba(17, 17, 21, 0.55) 70%, var(--bg) 100%); }
  .anello, .intro svg { top: var(--anello-y); }
  .h-titolo { top: calc(var(--gruppo-top) + var(--anello-w) * 0.8442 + 22px); bottom: auto; translate: none; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; font-size: var(--fs-h); }
  /* dietro lo slogan il rumore si spegne: si legge sempre */
  .h-fase2 p { font-size: clamp(44px, 13vw, 64px); max-width: 6.4em; }
  .h-titolo::before { content: ''; position: absolute; inset: -26% 2%; z-index: -1; pointer-events: none; opacity: var(--alone, 1); background: radial-gradient(closest-side, rgba(17, 17, 21, 0.94) 45%, rgba(17, 17, 21, 0)); }
  /* l'isola è più piena: quello che le scorre sotto non si legge attraverso */
  .isola, .testa.is-compatta .isola { background: #16161B; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu { background: #0C0C0F; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .vetro-core { background: #131317; backdrop-filter: none; -webkit-backdrop-filter: none; } /* pieno: anche il 3% di trasparenza lasciava leggere il muro sul nero */
  .canali-titolo { padding-top: 96px; }
  .settimana { padding-top: 96px; }
  .prova { padding-block: 96px 56px; }
  .piani { padding-block: 72px 64px; }
  .selezione { padding-block: 88px 56px; }
  .h-titolo .sx, .h-titolo .dx { grid-column: 1; justify-self: center; justify-items: center; text-align: center; }
  .h-basso { bottom: max(24px, 4vh, calc(env(safe-area-inset-bottom) + 12px)); gap: 18px; }
  .h-basso .azioni { display: grid; grid-template-columns: minmax(0, 1fr); justify-self: stretch; width: 100%; max-width: 360px; margin-inline: auto; }
  .h-basso .btn { width: 100%; }
  .h-basso .btn-primary { justify-content: space-between; padding-left: 24px; }
  .pan { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pan::-webkit-scrollbar { display: none; }
  .pista { height: auto; padding-block: 8px 32px; }
  .canale { scroll-snap-align: center; grid-template-columns: minmax(0, 1fr); width: 86vw; height: auto; min-height: 640px; align-content: start; }
  .chat { height: 420px; }
  .chat:has(.argomenti) { height: auto; max-height: none; }
  .chat:has(.argomenti) { height: auto; max-height: none; }
  .passo { grid-template-columns: minmax(0, 1fr); }
  .passo .num { display: none; }
  .passo b { font-size: clamp(32px, 10vw, 56px); }
  .passo p { grid-column: 1; }
  .format { grid-template-columns: minmax(0, 1fr); top: calc(10vh + var(--i) * 10px); min-height: 0; }
  .format-vis { min-height: 180px; }
  .muro { grid-template-columns: repeat(3, minmax(190px, 1fr)); inset: -20% -60% -20% -30%; }
  .muro-col:nth-child(n+4) { display: none; }
  .riservata { height: 140vh; }
  .bivio { flex-direction: column; min-height: 0; }
  .ramo { min-height: 420px; }
  .ramo h3 { white-space: normal; }
  .btn-xl { min-height: 60px; font-size: 17px; }
}
@media (max-width: 380px) {
  .testa-lati .btn-primary { display: none; }
  .isola .logo img { width: 100px; }
  .periodo button { padding: 0 13px; font-size: 14px; }
}
/* telefono in orizzontale: lo schermo è basso, ogni scena deve starci intera.
   La prima schermata torna in riga (anello al centro, parole ai lati), senza sottotitolo; il metodo mette le parole accanto all'anello;
   le card dei format non si impilano (sarebbero coperte prima di poterle leggere). */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --anello-w: min(40vmin, 470px); }
  .hero { height: 100svh; min-height: 0; }
  .hero::before { background: radial-gradient(60% 55% at 50% 46%, transparent 30%, rgba(17, 17, 21, 0.55) 70%, var(--bg) 100%); }
  .anello, .intro svg { top: 46%; }
  .h-titolo { top: 46%; bottom: auto; translate: 0 -50%; grid-template-columns: 1fr calc(var(--anello-w) + 4vw) 1fr; justify-items: normal; text-align: left; font-size: clamp(30px, 5.3vw, 56px); }
  .h-titolo .sx { grid-column: 1; justify-self: end; justify-items: end; text-align: right; }
  .h-titolo .dx { grid-column: 3; justify-self: start; justify-items: start; text-align: left; }
  .h-titolo::before { display: none; }
  .h-basso { bottom: max(14px, env(safe-area-inset-bottom)); }
  .h-basso p { display: none; }
  .h-basso .azioni { display: flex; width: auto; max-width: none; }
  .h-basso .btn { width: auto; }
  .metodo { padding-block: 84px 16px; }
  .metodo-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .metodo-anello { order: 0; max-width: min(260px, 62svh); }
  .passo b { font-size: clamp(26px, 8svh, 40px); }
  .pista { padding-top: 64px; }
  .canale { height: calc(100svh - 92px); }
  .format { position: relative; top: auto; min-height: 0; }
  .format-vis { min-height: 0; }
  .format-vis svg { max-height: 40svh; }
}
@media (prefers-reduced-transparency: reduce) {
  .isola, .vetro-core, .menu { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(20, 20, 25, 0.97); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
  .intro { display: none; }
  .h-fase2 { display: none; }
  .passo { opacity: 1; } .passo p { max-height: none; margin: 4px 0 14px; }
  .riservata { height: auto; } .riservata-scena { position: relative; }
}
