/* Pacelift: sito pubblico. Scritto a mano, senza build.
   Colori e caratteri sono quelli dell'app (app/src/ui/theme.ts).
   Nessun file da altri domini: i caratteri sono in fonts/. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-800-italic.woff2") format("woff2");
  font-weight: 800; font-style: italic; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+20AC, U+2212;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+20AC, U+2212;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+20AC, U+2212;
}

:root {
  --bg: #000;
  --raised: #0B0B0C;
  --text: #F4F5F6;
  --soft: rgba(244, 245, 246, 0.86);
  --dim: rgba(244, 245, 246, 0.72);
  --faint: rgba(244, 245, 246, 0.56);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(24, 24, 26, 0.62);
  --volt: #D4FF3A;
  --ink: #0B0D02;
  --warn: #FFB020;
  --muscle: #FF6A55;
  --tint: #D4FF3A;
  --tint-rgb: 212, 255, 58;
  --display: "Barlow Condensed", "Avenir Next Condensed", "DIN Condensed", "Roboto Condensed", "Bahnschrift", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  --top: 60px;
  color-scheme: dark;
}

/* Un colore per area, come nell'app. */
.t-volt { --tint: #D4FF3A; --tint-rgb: 212, 255, 58; }
.t-run { --tint: #4F8BFF; --tint-rgb: 79, 139, 255; }
.t-food { --tint: #FF6347; --tint-rgb: 255, 99, 71; }
.t-fisio { --tint: #5ED6C3; --tint-rgb: 94, 214, 195; }
.t-neutral { --tint: #F4F5F6; --tint-rgb: 191, 195, 203; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--volt); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--text); font-weight: 650; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
::selection { background: var(--volt); color: var(--ink); }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

.skip {
  position: absolute; left: 12px; top: 8px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--volt); color: var(--ink); font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Barra in alto ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}
.top-nav { display: flex; align-items: center; gap: clamp(14px, 3.4vw, 28px); min-height: var(--top); }
.top-nav a { color: var(--dim); text-decoration: none; font-size: 15px; padding: 10px 0; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--text); }
.top-nav .brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--text); font: italic 800 24px/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em;
}
.top-nav .brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
@media (max-width: 349px) {
  .top-nav { gap: 10px; }
  .top-nav a { font-size: 13.5px; }
  .top-nav .brand { font-size: 20px; gap: 6px; }
  .top-nav .brand img { width: 24px; height: 24px; }
}

/* ---------- Piè di pagina ---------- */
.foot { border-top: 1px solid var(--line); margin-top: clamp(64px, 10vw, 120px); padding-block: 28px 44px; color: var(--faint); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.foot span { margin-right: auto; }
.foot a { color: var(--dim); text-decoration: none; padding: 6px 0; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Pezzi comuni ---------- */
.kicker { font: 600 14px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--tint); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--volt); color: var(--ink);
  font: 800 19px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(212, 255, 58, 0.5), 0 10px 40px -8px rgba(212, 255, 58, 0.55);
  transition: transform 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.status {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--glass);
  font: 600 16px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 12px var(--volt); }

/* Negozi: etichette finché l'app non è pubblica, link (.live) dopo. */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 150px; min-height: 56px; padding: 8px 20px;
  border-radius: 16px; border: 1px solid var(--line-strong); background: var(--glass); text-decoration: none;
  font: 800 21px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text, #f4f5f7);
}
.store small { font: 600 11px/1 var(--display); letter-spacing: 0.16em; color: var(--soft); }
.store.live { border-color: var(--volt); }
.store.live:hover { transform: translateY(-2px); }

/* Telefono disegnato in CSS: lo schermo è una schermata vera dell'app. */
.phone {
  --pw: 280px;
  position: relative; flex: none; width: var(--pw);
  padding: calc(var(--pw) * 0.022) calc(var(--pw) * 0.022) 0;
  border-radius: calc(var(--pw) * 0.158) calc(var(--pw) * 0.158) 0 0;
  background: linear-gradient(160deg, #3b3c41, #17171a 30%, #232327);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  --sfuma: linear-gradient(#000 84%, rgba(0, 0, 0, 0.5) 92%, rgba(0, 0, 0, 0.14) 97.5%, transparent 99.6%);
  -webkit-mask-image: var(--sfuma); mask-image: var(--sfuma);
}
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1400; object-fit: cover; object-position: top; border-radius: calc(var(--pw) * 0.134) calc(var(--pw) * 0.134) 0 0; background: #000; }

/* Orologio disegnato in CSS. */
.watch {
  --ww: 170px;
  position: relative; flex: none; width: var(--ww); padding: calc(var(--ww) * 0.06);
  border-radius: calc(var(--ww) * 0.27);
  background: linear-gradient(150deg, #47484e, #121214 38%, #26262a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 24px 60px -18px #000;
}
.watch::before, .watch::after { content: ""; position: absolute; left: 100%; background: linear-gradient(90deg, #1d1d20, #5b5c63 55%, #232327); }
.watch::before { top: 24%; width: calc(var(--ww) * 0.045); height: calc(var(--ww) * 0.2); border-radius: 0 calc(var(--ww) * 0.03) calc(var(--ww) * 0.03) 0; }
.watch::after { top: 56%; width: calc(var(--ww) * 0.022); height: calc(var(--ww) * 0.24); border-radius: 0 3px 3px 0; }
.watch img { display: block; width: 100%; height: auto; border-radius: calc(var(--ww) * 0.19); background: #000; }

/* Bagliore colorato dietro ai dispositivi, come nell'app. */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; z-index: -1; inset: -8% -22% 4%;
  background: radial-gradient(closest-side, rgba(var(--tint-rgb), 0.34), rgba(var(--tint-rgb), 0.10) 55%, transparent);
  pointer-events: none;
}

/* ---------- Home: apertura ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(36px, 7vw, 88px); }
.hero-grid { display: grid; gap: clamp(40px, 8vw, 72px); }
.hero-name {
  font: italic 800 clamp(84px, 26.5vw, 176px)/0.8 var(--display); text-transform: uppercase; letter-spacing: -0.012em; white-space: nowrap;
  margin: 14px 0 0 -0.035em;
}
.hero-claim {
  font: italic 800 clamp(32px, 8.4vw, 56px)/0.98 var(--display); text-transform: uppercase;
  margin-top: clamp(18px, 3vw, 28px); max-width: 13em; text-wrap: balance;
}
.hero-claim em { font-style: inherit; color: var(--volt); }
.hero-lead { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 2.1vw, 19px); color: var(--dim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-devices { position: relative; justify-self: center; display: flex; justify-content: center; padding-left: clamp(0px, 10vw, 60px); }
.hero-devices .phone { --pw: clamp(240px, 68vw, 340px); }
.hero-devices .phone img { aspect-ratio: 720 / 1502; }
.hero-devices .watch { --ww: clamp(112px, 31vw, 164px); position: absolute; left: clamp(-56px, -8vw, -20px); top: 50%; z-index: 2; }

.areas { margin-top: clamp(8px, 2vw, 24px); border-top: 1px solid var(--line); }
.areas ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px clamp(18px, 4vw, 44px); padding-block: 14px; }
.areas a {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 0;
  font: 600 16px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); text-decoration: none;
}
.areas a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tint); }
.areas a:hover { color: var(--text); }

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; }
  .hero-grid > :first-child { padding-right: clamp(0px, 3vw, 40px); }
  .hero-name { font-size: clamp(120px, 12.2vw, 172px); }
  .hero-devices { justify-self: end; padding-right: clamp(0px, 3vw, 40px); }
  .hero-devices .phone { --pw: clamp(300px, 27vw, 360px); }
  .hero-devices .watch { --ww: clamp(150px, 13vw, 176px); left: clamp(-64px, -4vw, -36px); }
}

/* ---------- Home: capitoli ---------- */
.chapter { position: relative; padding-top: clamp(72px, 12vw, 150px); }
.chapter, .band { overflow-x: hidden; overflow-x: clip; }
.chapter-grid { display: grid; gap: clamp(44px, 8vw, 72px); align-items: center; }
.chapter-text { position: relative; }
.ghost {
  position: absolute; z-index: -1; right: 0; top: -0.56em;
  font: italic 800 clamp(150px, 30vw, 250px)/1 var(--display); letter-spacing: -0.02em;
  color: rgba(var(--tint-rgb), 0.12); pointer-events: none; user-select: none;
}
.chapter h2, .card h2, .band h2 {
  font: italic 800 clamp(44px, 10.5vw, 84px)/0.92 var(--display); text-transform: uppercase; letter-spacing: -0.005em;
  margin-top: 14px; text-wrap: balance;
}
.chapter h2 em, .band h2 em { font-style: inherit; color: var(--tint); }
.lead { margin-top: 20px; max-width: 30em; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--soft); }
.points { list-style: none; padding: 0; margin-top: 26px; max-width: 32em; display: grid; gap: 14px; color: var(--dim); }
.points li { position: relative; padding-left: 30px; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 16px; height: 2px; border-radius: 2px; background: var(--tint); }
.points li.muscle::before { background: var(--muscle); }
.chapter-media { display: flex; justify-content: center; align-items: flex-start; }
.duo .phone { --pw: clamp(190px, 55vw, 300px); z-index: 2; }
.duo .phone + .phone { --pw: clamp(150px, 44vw, 248px); z-index: 1; margin: calc(var(--pw) * 0.3) 0 0 calc(var(--pw) * -0.3); }
.watches { gap: clamp(20px, 6vw, 56px); align-items: center; padding-block: 12px; }
.watches .watch { --ww: clamp(128px, 36vw, 200px); }
.watches .watch + .watch { margin-top: calc(var(--ww) * 0.5); }
.note { margin-top: 24px; max-width: 34em; font-size: 15px; line-height: 1.55; color: var(--faint); }

@media (min-width: 980px) {
  .chapter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .chapter.flip .chapter-media { order: -1; }
  .duo .phone { --pw: clamp(230px, 24vw, 310px); }
  .duo .phone + .phone { --pw: clamp(186px, 19.5vw, 252px); }
}

/* Alimentazione e fisio: due pannelli di vetro, senza schermate. */
.cards { display: grid; gap: 20px; }
.card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(26px, 5vw, 44px); border-radius: 32px;
  background: linear-gradient(180deg, rgba(var(--tint-rgb), 0.10), rgba(24, 24, 26, 0.62) 46%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.card::before { content: ""; position: absolute; z-index: -1; right: -30%; top: -40%; width: 90%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(var(--tint-rgb), 0.26), transparent); }
.card .ghost { right: 0.08em; top: -0.12em; font-size: clamp(120px, 22vw, 190px); }
.card h2 { font-size: clamp(40px, 8.4vw, 60px); max-width: 9em; }
.card .lead { font-size: 18px; }
.steps { list-style: none; padding: 0; margin-top: 30px; display: grid; gap: 0; counter-reset: passo; }
.steps li { position: relative; padding: 0 0 20px 44px; color: var(--soft); counter-increment: passo; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(passo); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font: 800 16px/1 var(--display); color: var(--tint); border: 1px solid rgba(var(--tint-rgb), 0.6);
}
.steps li::after { content: ""; position: absolute; left: 13.5px; top: 30px; bottom: 2px; width: 1px; background: rgba(var(--tint-rgb), 0.35); }
.steps li:last-child::after { display: none; }
.sum { margin-top: 30px; }
.sum dt { font: 600 13px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.sum dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; }
.sum b { display: inline-flex; align-items: center; gap: 10px; font-weight: inherit; }
.sum span { padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(var(--tint-rgb), 0.5); font: 600 15px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.sum i { font: 800 20px/1 var(--display); font-style: normal; color: var(--tint); }
@media (min-width: 860px) { .cards { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- Home: coach, privacy, piani, contatti ---------- */
.band { padding-top: clamp(80px, 13vw, 160px); }
.band-head { max-width: 46em; }
.rules { margin-top: 34px; border-top: 1px solid var(--line-strong); }
.rules > div { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rules dt { font: 800 21px/1.1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--tint); }
.rules dd { color: var(--dim); }
@media (min-width: 620px) { .rules > div { grid-template-columns: 9.5em 1fr; gap: 20px; align-items: baseline; } }
.ai-off {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 28px; padding: 20px 22px;
  border-radius: 24px; border: 1px solid var(--line); background: var(--glass);
}
.ai-off p { color: var(--dim); font-size: 16px; }
.switch { display: block; width: 52px; height: 30px; margin-top: 2px; border-radius: 999px; background: #2a2b2f; box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #8d9199; }
.caption { margin-top: 18px; text-align: center; font-size: 15px; color: var(--faint); max-width: 30em; margin-inline: auto; }

.panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(28px, 6vw, 72px) clamp(24px, 6vw, 72px); border-radius: 32px;
  background: linear-gradient(180deg, rgba(var(--tint-rgb), 0.07), rgba(24, 24, 26, 0.62) 55%);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.panel::before { content: ""; position: absolute; z-index: -1; right: -18%; top: -55%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(var(--tint-rgb), 0.20), transparent); }
.trio { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line-strong); }
.trio > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.trio h3 { font: 800 24px/1.05 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.trio p { margin-top: 8px; color: var(--dim); }
.trio .price { margin-top: 6px; font: 800 44px/1 var(--display); color: var(--text); }
.trio .price span { font-size: 0.5em; letter-spacing: 0.04em; color: var(--dim); }
@media (min-width: 820px) {
  .trio { grid-template-columns: repeat(3, 1fr); }
  .trio > div { padding: 26px 32px 6px 0; border-bottom: 0; }
  .trio > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
}
.more { display: inline-block; margin-top: 30px; font: 800 20px/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }

.contact { text-align: left; }
.mail {
  display: inline-block; margin-top: 18px; color: var(--volt);
  font: italic 800 clamp(34px, 9vw, 92px)/1 var(--display); text-transform: uppercase; text-decoration: none; letter-spacing: -0.005em;
  overflow-wrap: anywhere;
}
.mail:hover { text-decoration: underline; text-decoration-thickness: 3px; }

/* ---------- Pagine da leggere: privacy, termini, regole, supporto ---------- */
.doc-head { position: relative; padding-top: clamp(36px, 7vw, 72px); }
.doc-head h1 { font: italic 800 clamp(46px, 11vw, 88px)/0.92 var(--display); text-transform: uppercase; letter-spacing: -0.005em; margin-top: 12px; text-wrap: balance; }
.updated { margin-top: 16px; color: var(--faint); font-size: 15px; }
.doc-grid { display: grid; gap: 28px; margin-top: clamp(28px, 5vw, 48px); }
.prose { max-width: 34em; font-size: 17px; line-height: 1.7; color: var(--soft); }
.prose > * + *, .prose section > * + * { margin-top: 1.05em; }
.prose section { margin-top: 3.2em; }
.prose h2 { position: relative; font: 800 clamp(27px, 5.6vw, 32px)/1.08 var(--display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); text-wrap: balance; }
.prose h3 { font: 800 22px/1.15 var(--display); letter-spacing: 0.03em; text-transform: uppercase; color: var(--text); margin-top: 1.8em !important; }
.anchor { margin-left: 0.35em; padding: 0.2em; color: var(--faint); font-weight: 600; font-size: 0.72em; text-decoration: none; opacity: 0.75; }
.anchor::before { content: "#"; }
.anchor:hover, .anchor:focus-visible { color: var(--volt); opacity: 1; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.6em; }
.prose li::marker { color: var(--faint); }
.prose ol li::marker { color: var(--volt); font-weight: 700; }
.prose a { overflow-wrap: anywhere; }
.box {
  padding: clamp(20px, 4vw, 28px); border-radius: 24px;
  background: var(--glass); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.box.big { font-size: clamp(19px, 2.6vw, 22px); line-height: 1.5; }
.todo { background: rgba(255, 176, 32, 0.16); color: #FFC24A; padding: 0 5px; border-radius: 5px; }
.back { margin-top: 3.2em !important; font-size: 15px; }
.back a { color: var(--dim); }

/* Indice: ripiegato su telefono, fisso di lato su schermo largo. */
.toc { font-size: 15px; line-height: 1.35; max-width: 578px; }
.toc details { border: 1px solid var(--line); border-radius: 18px; background: var(--glass); }
.toc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 18px; cursor: pointer; list-style: none;
  font: 600 15px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--volt); border-bottom: 2px solid var(--volt); transform: translateY(-3px) rotate(45deg); transition: transform 0.2s ease; }
.toc details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.toc ol { list-style: none; margin: 0; padding: 4px 8px 12px; }
.toc a { display: block; padding: 9px 10px; border-radius: 10px; color: var(--dim); text-decoration: none; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.toc a[aria-current] { color: var(--text); }

/* Tabelle: su telefono ogni riga diventa una scheda, così non sforano. */
.scroll { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.prose th { font: 600 14px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); border-bottom-color: var(--line-strong); }
.prose td { color: var(--dim); }
.prose td:first-child { color: var(--soft); }
.prose th:first-child:nth-last-child(3) { width: 24%; }
.prose th:nth-child(3) { width: 27%; }
.prose th:last-child, .prose td:last-child { padding-right: 0; }
@media (max-width: 699px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .prose tr { padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.03); }
  .prose tr + tr { margin-top: 12px; }
  .prose td { padding: 0; border: 0; }
  .prose td + td { margin-top: 12px; }
  .prose td::before { content: attr(data-label); display: block; margin-bottom: 3px; font: 600 13px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
}

@media (min-width: 1000px) {
  .doc-head, .doc-grid { padding-left: calc(248px + 64px); }
  .doc-grid { position: relative; display: block; }
  .prose { font-size: 18px; }
  .toc { position: absolute; left: 0; top: 0; bottom: 0; width: 248px; max-width: none; }
  .toc details { position: sticky; top: calc(var(--top) + 28px); max-height: calc(100vh - var(--top) - 56px); overflow-y: auto; border: 0; border-radius: 0; background: none; border-left: 1px solid var(--line); }
  .toc details::details-content { content-visibility: visible; display: block; }
  .toc summary { min-height: 0; padding: 2px 0 12px 18px; color: var(--faint); }
  .toc details[open] summary { cursor: default; pointer-events: none; }
  .toc details[open] summary::after { display: none; }
  @supports selector(::details-content) {
    .toc summary { cursor: default; pointer-events: none; }
    .toc summary::after { display: none; }
  }
  .toc ol { padding: 0; }
  .toc a { margin-left: -1px; padding: 7px 0 7px 17px; border-radius: 0; border-left: 2px solid transparent; }
  .toc a:hover { background: none; }
  .toc a[aria-current] { border-left-color: var(--volt); }
}

/* ---------- Movimento: sobrio, solo opacità e spostamento ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .rise { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .rise.d1 { animation-delay: 0.08s; }
  .rise.d2 { animation-delay: 0.16s; }
  .rise.d3 { animation-delay: 0.24s; }
  .rise.d4 { animation-delay: 0.34s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  .anima .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .anima .reveal.visto { opacity: 1; transform: none; }
}

/* ---------- Stampa: fondo bianco, testo nero ---------- */
@media print {
  :root { color-scheme: light; }
  *, *::before, *::after { color: #000 !important; background: none !important; box-shadow: none !important; text-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  html, body { background: #fff !important; }
  body { font: 11pt/1.5 Georgia, "Times New Roman", serif; }
  .top, .skip, .toc, .back, .anchor, .foot a[href$=".html"], .ghost, .btn, .glow::before { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .doc-head, .doc-grid { padding: 0; margin-top: 0; }
  .doc-head h1 { font-size: 30pt; }
  .prose { max-width: none; font-size: 11pt; line-height: 1.5; }
  .prose section { margin-top: 1.6em; }
  .prose h2 { font-size: 15pt; break-after: avoid; }
  .prose h3 { font-size: 12pt; break-after: avoid; }
  .prose li, .prose tr, .box { break-inside: avoid; }
  .prose li::marker { color: #000 !important; }
  .box { border: 1px solid #000; border-radius: 0; padding: 10pt; }
  .prose table, .prose tbody, .prose tr, .prose td { display: revert; }
  .prose thead { position: static; width: auto; height: auto; clip-path: none; }
  .prose tr { padding: 0; border: 0; }
  .prose th, .prose td { padding: 6pt 8pt 6pt 0; border-bottom: 1px solid #999; font-size: 10pt; }
  .prose td::before { display: none; }
  .prose td + td { margin-top: 0; }
  .todo { border: 1px dashed #000; }
  a { text-decoration: underline; }
  .foot { margin-top: 24pt; padding: 8pt 0 0; border-top: 1px solid #000; font-size: 9pt; }
  .phone, .watch { -webkit-mask-image: none; mask-image: none; border: 1px solid #000; }
  .phone { --pw: 150px !important; margin: 0 !important; }
  .watch { --ww: 90px !important; }
}
