/*
 * Sito pubblico. Colori, raggi e spazi dai token dell'app (docs/app/design/tokens.json): verde lime d'accento,
 * fondi chiaro e scuro, superfici a vetro. Tema chiaro e scuro dal sistema. Font di sistema (SF su Apple, come
 * l'app). Nessuno script, nessuna risorsa esterna.
 */

:root {
  color-scheme: light dark;
  /* Tema chiaro (tokens.json → themes.light) */
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --surface-high: #F6F8FA;
  --surface-highest: #E6EAEF;
  --outline: #D5DBE2;
  --outline-strong: #7A8592;
  --text: #14171A;
  --text-2: #535D69;
  --text-3: #5F6975;
  --accent: #C6FF3D;
  --accent-content: #3F6B00;
  --on-accent: #0B0C0E;
  --accent-container: #E8F7C4;
  --on-accent-container: #2C4A00;
  --signal: #C4291F;
  --signal-container: #FDE6E3;
  --warning: #7A4E00;
  --warning-container: #FFF1D4;
  --glass: #FFFFFFCF;
  --glass-edge: #FFFFFFE6;
  --glass-shadow: #1E2A3A24;
  --stage-a: #FFFFFF;
  --stage-b: #E3E8EE;
  --grid: #1E2A3A0D;
  --device: #0B0C0E;
  --glow: #C6FF3D59;

  /* Raggi (tokens.json → radius) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-card: 20px;
  --r-glass: 28px;
  --r-sheet: 36px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* Tema scuro (tokens.json → themes.dark) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181B1F;
    --surface: #21252A;
    --surface-high: #2B3036;
    --surface-highest: #383E46;
    --outline: #48505B;
    --outline-strong: #7F8895;
    --text: #F4F6F8;
    --text-2: #A9B0BB;
    --text-3: #9098A4;
    --accent-content: #C6FF3D;
    --accent-container: #26330F;
    --on-accent-container: #D6FF7A;
    --signal: #FF625A;
    --signal-container: #3A1513;
    --warning: #FFB020;
    --warning-container: #3A2A08;
    --glass: #21252AB6;
    --glass-edge: #FFFFFF2E;
    --glass-shadow: #00000073;
    --stage-a: #2B3036;
    --stage-b: #1C1F24;
    --grid: #FFFFFF0A;
    --device: #050607;
    --glow: #C6FF3D33;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-content); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

h1, h2, h3 { margin: 0; letter-spacing: -0.028em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* ---------- Barra in alto ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--outline) 55%, transparent);
}
.top-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-icon { border-radius: 22%; box-shadow: 0 0 0 1px #FFFFFF14, 0 4px 14px -6px #000000AA; }

.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a {
  text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 600;
  padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.top-nav a:hover, .top-nav a[aria-current] { color: var(--text); background: var(--surface-highest); }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--text);
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--outline); background: var(--surface);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); opacity: .6; }
.lang[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-globe {
  width: 15px; height: 15px; border-radius: 50%; border: 1.6px solid currentColor; position: relative; opacity: .8;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.4px no-repeat,
    radial-gradient(ellipse 34% 50% at center, transparent 92%, currentColor 95%, currentColor 100%, transparent 100%);
}
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 170px;
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-lg);
  box-shadow: 0 18px 40px -12px var(--glass-shadow);
}
.lang li a { display: block; padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; font-weight: 500; }
.lang li a:hover { background: var(--surface-highest); }
.lang li a[aria-current] { font-weight: 700; color: var(--accent-content); }
.lang li a[aria-current]::after { content: " ✓"; }

/* ---------- Pulsanti degli store ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; min-height: 56px;
  padding: 8px 22px; border-radius: var(--r-lg); text-decoration: none; line-height: 1.15;
  background: var(--text); color: var(--bg);
}
.store-pre { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.store-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.store.soon { background: transparent; color: var(--text); border: 1.5px dashed var(--outline-strong); cursor: default; }
.store.soon .store-pre { color: var(--accent-content); opacity: 1; }
.stores.on-accent .store.soon { color: var(--on-accent); border-color: #0B0C0E66; }
.stores.on-accent .store.soon .store-pre { color: var(--on-accent); opacity: .75; }

/* ---------- Hero ---------- */

.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.hero::before {
  /* Griglia tecnica che sfuma: il quaderno di allenamento. */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -120px;
  background: radial-gradient(circle, var(--glow), transparent 62%); filter: blur(10px);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-content);
}
.eyebrow::before, .kicker::before { content: ""; width: 18px; height: 6px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 1px #0B0C0E1F; }

.hero h1 {
  margin-top: 20px; font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 900; letter-spacing: -0.045em; line-height: .98;
}
.lead { margin-top: 24px; font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--text-2); max-width: 34em; }

.hero-stage { position: relative; display: flex; justify-content: center; padding: 8px 0 24px; }
.hero-stage .phone { width: min(320px, 72vw); transform: rotate(2.5deg); }
.hero-stage .hero-watch { position: absolute; left: max(0px, calc(50% - 250px)); bottom: 6%; width: 150px; transform: rotate(-5deg); }

.chip {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px 12px 14px; border-radius: var(--r-card);
  background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 18px 40px -14px var(--glass-shadow);
}
.chip-signal { right: max(0px, calc(50% - 260px)); top: 16%; transform: rotate(-3deg); }
.chip-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.chip-value { font-size: 40px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--signal); font-variant-numeric: tabular-nums; }
.chip-unit { font-size: 16px; font-weight: 800; margin-left: 3px; letter-spacing: 0; }

/* Ingresso della hero: un movimento solo, in sequenza. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .hero-copy > :nth-child(4) { animation-delay: .22s; }
  .hero-stage .phone { animation: phone-in 1s cubic-bezier(.2, .7, .2, 1) .1s both; }
  .hero-watch { animation: watch-in 1s cubic-bezier(.2, .7, .2, 1) .3s both; }
  .chip-signal { animation: chip-in .9s cubic-bezier(.3, 1.4, .5, 1) .7s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(40px) rotate(6deg); } }
@keyframes watch-in { from { opacity: 0; transform: translate(-24px, 24px) rotate(-12deg); } }
@keyframes chip-in { from { opacity: 0; transform: scale(.7) rotate(-10deg); } }

/* ---------- Dispositivi ---------- */

.phone {
  margin: 0; position: relative; border-radius: 15.5% / 7.2%;
  /* Padding fisso: in percentuale varrebbe rispetto al contenitore, non alla cornice. */
  padding: clamp(6px, 0.8vw, 10px); background: var(--device);
  box-shadow:
    0 0 0 1.5px #3A3F46,
    0 0 0 3px #0B0C0E,
    0 40px 80px -30px #0B0C0E99,
    0 20px 40px -24px #0B0C0E80;
}
.phone::after {
  /* Dynamic Island */
  content: ""; position: absolute; left: 50%; top: 4.6%; width: 28%; height: 3.6%;
  transform: translateX(-50%); background: #000; border-radius: 999px;
}
.phone img, .phone picture { border-radius: 12.6% / 5.8%; width: 100%; }

.watch-frame {
  margin: 0; position: relative; border-radius: 30% / 25%;
  padding: clamp(8px, 1vw, 12px); background: linear-gradient(145deg, #3A3F46, #0B0C0E 40%, #1C1F24);
  box-shadow: 0 0 0 1px #00000099, 0 30px 50px -26px #0B0C0EAA;
}
.watch-frame img { width: 100%; height: auto; aspect-ratio: 324 / 394; object-fit: cover; border-radius: 22% / 18%; background: #000; }
.watch-frame::after {
  /* Corona digitale */
  content: ""; position: absolute; right: -4.5%; top: 24%; width: 5%; height: 16%;
  border-radius: 3px; background: linear-gradient(90deg, #2B3036, #6B727C);
}

/* ---------- Numeri ---------- */

.stats { border-block: 1px solid var(--outline); background: var(--surface); }
.stats-in { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--outline); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { font-size: clamp(2.4rem, 4.4vw, 3.5rem); font-weight: 900; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats li:last-child strong { color: var(--accent-content); }
.stats span { color: var(--text-2); font-size: 15px; line-height: 1.35; }

/* ---------- Sezioni con schermate ---------- */

.feature { padding: clamp(64px, 9vw, 128px) 0; }
.feature + .feature { padding-top: 0; }
.feature-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature.reverse .feature-copy { order: 2; }

.feature h2, .signal h2, .watch h2, .noai h2 { margin-top: 16px; font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 900; letter-spacing: -0.04em; }
.feature-copy > p:not(.kicker), .signal-copy > p:not(.kicker), .noai-copy > p:not(.kicker) { margin-top: 20px; font-size: 18px; color: var(--text-2); max-width: 32em; }

.check { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.check li { position: relative; padding-left: 34px; font-size: 16px; line-height: 1.45; }
.check li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-container);
}
.check li::after {
  content: ""; position: absolute; left: 7.5px; top: 6.5px; width: 5px; height: 9px;
  border: solid var(--on-accent-container); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg);
}

.stage {
  position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(12px, 2.4vw, 28px);
  padding: clamp(28px, 5vw, 56px) clamp(16px, 3vw, 40px); border-radius: var(--r-sheet);
  background: radial-gradient(ellipse 70% 60% at 50% 30%, var(--stage-a), var(--stage-b));
  border: 1px solid var(--outline);
  overflow: hidden;
}
.stage::before {
  content: ""; position: absolute; inset: auto 10% -30% 10%; height: 60%;
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%); opacity: .7;
}
.stage .phone { flex: 0 1 260px; min-width: 0; }
.stage-2 .phone:nth-child(2) { transform: translateY(28px); }
.stage-3 .phone { flex-basis: 220px; }
.stage-3 .phone:nth-child(2) { transform: translateY(-22px); }

/* ---------- Il segnale ---------- */

.signal { padding: clamp(64px, 9vw, 128px) 0; background: var(--surface); border-block: 1px solid var(--outline); position: relative; overflow: hidden; }
.signal-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.signal-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.signal-big {
  display: flex; align-items: baseline; color: var(--signal); font-weight: 900; line-height: .8;
  font-size: clamp(7rem, 17vw, 13.5rem); letter-spacing: -0.07em; font-variant-numeric: tabular-nums;
}
.signal-arrow { font-size: .72em; margin-right: .04em; transform: translateY(-.04em); }
.signal-unit { font-size: .22em; letter-spacing: 0; margin-left: .12em; }
.signal-watches { display: flex; gap: 20px; }
.signal-watches .watch-frame { width: clamp(130px, 15vw, 172px); }
.signal-watches .watch-frame:nth-child(2) { transform: translateY(20px); }

/* ---------- Apple Watch ---------- */

.watch {
  padding: clamp(72px, 10vw, 140px) 0; color: #F4F6F8; position: relative; overflow: hidden; isolation: isolate;
  background: #0E1013;
}
.watch::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, #C6FF3D26, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 0%, #2ED3B71A, transparent 70%);
}
.watch .kicker { color: #C6FF3D; }
.watch-head { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.watch-body { margin-top: 20px; font-size: 18px; color: #A9B0BB; }
.watch-row { display: flex; justify-content: center; gap: clamp(14px, 3vw, 36px); margin-top: 56px; }
.watch-row .watch-frame { flex: 0 1 190px; min-width: 0; }
.watch-row .watch-frame:nth-child(even) { transform: translateY(26px); }
.watch-points { list-style: none; padding: 0; margin: 64px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.watch-points li { padding: 10px 18px; border-radius: 999px; border: 1px solid #FFFFFF26; background: #FFFFFF0D; font-size: 15px; font-weight: 600; }

/* ---------- Salute e sincronizzazione ---------- */

.duo { padding: clamp(64px, 9vw, 128px) 0 0; }
.duo-in { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { padding: clamp(28px, 4vw, 44px); border-radius: var(--r-glass); background: var(--surface); border: 1px solid var(--outline); }
.card h3 { margin-top: 14px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 850; letter-spacing: -0.035em; }
.card > p:not(.kicker) { margin-top: 16px; color: var(--text-2); }

/* ---------- Niente AI ---------- */

.noai { padding: clamp(64px, 9vw, 128px) 0; }
.noai-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.noai-card {
  position: relative; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-glass);
  background: var(--accent-container); color: var(--on-accent-container);
}
.noai-card-title { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.noai-card .check li { color: var(--on-accent-container); font-weight: 600; }
.noai-card .check li::before { background: var(--accent); }
.noai-card .check li::after { border-color: var(--on-accent); }
.noai-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--on-accent-container) 25%, transparent); font-size: 15px; }

/* ---------- Invito finale ---------- */

.cta { padding: 0 0 clamp(64px, 9vw, 112px); }
.cta-in {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); border-radius: var(--r-sheet);
  background: var(--accent); color: var(--on-accent);
}
.cta-in::after {
  content: ""; position: absolute; z-index: -1; right: -60px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%;
  border: 56px solid #0B0C0E12;
}
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 900; letter-spacing: -0.045em; max-width: 14em; }
.cta p { margin-top: 16px; font-size: 18px; font-weight: 500; opacity: .8; }
.cta .stores { margin-top: 28px; }

/* ---------- Piè di pagina ---------- */

.foot { border-top: 1px solid var(--outline); padding: 40px 0 48px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.foot-small { color: var(--text-3); font-size: 13px; margin-top: 10px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; }
.foot-nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-nav a:hover, .foot-nav a[aria-current] { color: var(--accent-content); }
.foot-langs { grid-column: 1 / -1; list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--outline); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-langs a { text-decoration: none; color: var(--text-2); font-size: 14px; }
.foot-langs a[aria-current] { color: var(--text); font-weight: 700; }
.foot-tm { grid-column: 1 / -1; margin-top: 0; max-width: 70em; }

/* ---------- Pagine di testo ---------- */

.doc main { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); }
.doc-in { max-width: 820px; }
.doc-head { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--outline); }
.doc-head h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 900; letter-spacing: -0.045em; }
.doc-date { margin-top: 14px; color: var(--text-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.doc-lead { margin-top: 16px; color: var(--text-2); font-size: 19px; }

.draft {
  max-width: var(--wrap); margin: 16px auto 0; padding: 12px 18px; border-radius: var(--r-md);
  background: var(--warning-container); color: var(--warning); font-size: 14px; width: calc(100% - 2 * var(--gutter));
}

.prose { font-size: 17px; line-height: 1.7; }
.prose .intro { font-size: 19px; line-height: 1.6; color: var(--text-2); }
.prose h2 { margin: 56px 0 16px; font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; scroll-margin-top: 88px; }
.prose h3 { margin: 32px 0 10px; font-size: 1.1rem; font-weight: 750; letter-spacing: -0.015em; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0 0; padding-left: 1.2em; }
.prose li { margin: 6px 0; padding-left: .2em; }
.prose li::marker { color: var(--accent-content); }
.prose a { color: var(--accent-content); text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { font-weight: 700; }

.toc { margin: 32px 0 0; padding: 22px 26px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--outline); }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2 220px; column-gap: 32px; counter-reset: toc; }
.toc li { margin: 0; padding: 5px 0; break-inside: avoid; counter-increment: toc; display: flex; gap: 10px; }
.toc li::before { content: counter(toc, decimal-leading-zero); color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 14px; padding-top: 2px; }
.toc a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.toc a:hover { color: var(--accent-content); }

.table-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--outline); border-radius: var(--r-lg); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--outline); }
.prose thead th { border-top: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: var(--surface-high); }
.prose td:first-child { font-weight: 600; width: 50%; }
.prose .table-wrap + p { margin-top: 14px; }

/* Domande frequenti */
.faq + .faq { margin-top: 8px; }
.faq h2 { margin-top: 40px; }
.faq:first-child h2 { margin-top: 0; }
.faq details { border: 1px solid var(--outline); border-radius: var(--r-lg); background: var(--surface); margin-top: 10px; transition: border-color .2s; }
.faq details[open] { border-color: var(--outline-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; font-size: 17px; line-height: 1.4; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background:
    linear-gradient(var(--on-accent-container), var(--on-accent-container)) center / 10px 2px no-repeat,
    linear-gradient(var(--on-accent-container), var(--on-accent-container)) center / 2px 10px no-repeat,
    var(--accent-container);
  transition: transform .25s;
}
.faq details[open] summary::after {
  background:
    linear-gradient(var(--on-accent-container), var(--on-accent-container)) center / 10px 2px no-repeat,
    var(--accent-container);
}
.faq details p { padding: 0 20px 18px; color: var(--text-2); }

.contact { margin-top: 48px; padding: clamp(24px, 4vw, 36px); border-radius: var(--r-glass); background: var(--accent-container); color: var(--on-accent-container); }
.contact h2 { margin: 0 0 10px; }
.contact a { color: inherit; font-weight: 700; }

/* ---------- Scheda condivisa (/s/<codice>) ---------- */

.share-in { max-width: 860px; }
.share-head h1 { margin-top: 12px; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; overflow-wrap: anywhere; }
.share-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.stat {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--outline); font-size: 15px; font-variant-numeric: tabular-nums;
}
.stat strong { font-weight: 800; }
.share-notes { margin-top: 14px; font-size: 16px; white-space: pre-line; overflow-wrap: anywhere; }
.open-card { margin-top: 28px; padding: 22px 24px; border-radius: var(--r-card); background: var(--accent-container); color: var(--on-accent-container); }
.open-card h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.open-card p { margin-top: 6px; font-size: 15px; line-height: 1.45; }
.open-card .stores { margin-top: 16px; }
.btn-open {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; margin-top: 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 17px; text-decoration: none;
}
.share-segment { margin-top: 36px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.ex-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.share-segment + .ex-list { margin-top: 14px; }
.ex {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 12px 16px 12px 12px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--outline);
}
.ex img { width: 72px; height: 72px; border-radius: var(--r-md); background: var(--surface-high); padding: 2px; object-fit: contain; }
/* Personalizzati ed esercizi senza figura: un manubrio disegnato con i gradienti, nei colori del tema. */
.ex-glyph { display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--r-md); background: var(--surface-high); }
.ex-glyph::before {
  content: ""; width: 40px; height: 20px;
  background:
    linear-gradient(var(--outline-strong), var(--outline-strong)) center / 100% 4px no-repeat,
    linear-gradient(var(--outline-strong), var(--outline-strong)) 4px center / 7px 20px no-repeat,
    linear-gradient(var(--outline-strong), var(--outline-strong)) calc(100% - 4px) center / 7px 20px no-repeat;
}
.ex-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ex-sets { margin-top: 4px; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ex-notes { margin-top: 6px; font-size: 14px; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.group { border-radius: var(--r-card); border: 1.5px solid var(--accent-content); padding: 8px; display: grid; gap: 8px; }
.group-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-content); padding: 2px 8px 0; }
.group .ex-list { margin: 0; gap: 8px; }
.group .ex { border: none; background: var(--surface-high); }
.group .ex img, .group .ex-glyph { background: var(--surface); }
.share-note { margin-top: 28px; font-size: 14px; color: var(--text-2); }
.share-home a { color: var(--accent-content); font-weight: 700; }

/* ---------- Telefono e tablet ---------- */

@media (max-width: 960px) {
  .hero-in, .feature-in, .signal-in, .noai-in { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy { order: 0; }
  .hero-stage { margin-top: 8px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--outline); }
  .duo-in { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-s { display: none; }
  .top-nav a { padding: 8px 9px; font-size: 14px; }
  .brand span { display: none; }
  .hero-stage .phone { width: min(270px, 68vw); }
  .hero-stage .hero-watch { width: 112px; left: 0; bottom: 4%; }
  .chip-signal { right: 0; top: 10%; }
  .chip-value { font-size: 32px; }
  .stats li { padding: 22px 14px; }
  .stage { border-radius: var(--r-glass); }
  .stage-3 .phone:nth-child(3) { display: none; }
  .stage-3 .phone:nth-child(2) { transform: translateY(18px); }
  .watch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; max-width: 360px; margin-inline: auto; }
  .watch-row .watch-frame:nth-child(even) { transform: translateY(18px); }
  .foot-in { grid-template-columns: 1fr; }
  .foot-nav { justify-content: flex-start; }
  .store { min-width: 0; flex: 1 1 140px; }
  .prose td:first-child { width: auto; }
}
