/* Layout: studio notturno. Banda hero con riga di testo che si colora a tempo, poi sezioni a colonna unica
   con schermate reali del programma inquadrate come finestre. Un solo tema scuro, voluto, come l'app. */
:root {
  --bg: #121516;
  --bg-deep: #0b0e0f;
  --panel: #1a1f21;
  --panel-2: #20272a;
  --line: #2c3639;
  --text: #e6efee;
  --muted: #93a5a4;
  --teal: #3cc6bd;
  --teal-deep: #1f7f79;
  --amber: #f0b13a;
  --ink: #07191a;
  --display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --wrap: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- tipografia */
h1, h2, h3 {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 7.2vw, 92px); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; letter-spacing: 0.005em; }
h3 { font-size: 24px; font-weight: 600; letter-spacing: 0.02em; }
.tm { font-size: 0.42em; vertical-align: super; color: var(--amber); font-weight: 500; letter-spacing: 0; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; margin: 18px 0 0; }
p { margin: 0; }

/* ---------- barra superiore */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg-deep);
}
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: rgba(11, 14, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand b { font-family: var(--display); font-size: 27px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.brand b sup { font-size: 11px; color: var(--amber); font-weight: 500; margin-left: 1px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
}
.lang a, .lang span { padding: 5px 9px; text-decoration: none; color: var(--muted); }
.lang span { background: rgba(60, 198, 189, 0.16); color: var(--teal); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-main { background: var(--teal); color: var(--ink); box-shadow: 0 0 0 0 rgba(60, 198, 189, 0); }
.btn-main:hover { transform: translateY(-1px); box-shadow: 0 8px 28px -8px rgba(60, 198, 189, 0.6); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--teal-deep); }
.btn-sm { font-size: 16px; padding: 8px 14px; }
@media (max-width: 860px) { .nav { display: none; } .top .btn-sm { margin-left: auto; } }
@media (max-width: 460px) { .top .btn-sm { display: none; } .lang { margin-left: auto; } }

/* ---------- hero */
.hero { padding-block: 72px 40px; background: radial-gradient(1100px 520px at 78% -10%, rgba(60, 198, 189, 0.13), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.hero h1 .hl { color: var(--teal); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; align-items: center; }
.price-tag { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.price-tag b { color: var(--text); font-weight: 500; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 28px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* riga di testo che si colora a tempo */
.lyric {
  margin-top: 40px;
  background: #000;
  border-radius: 10px;
  padding: 22px 20px;
  text-align: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.35;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.lyric .w { color: #fff; transition: color 0.12s linear; }
.lyric .w.on { color: #ffd60a; }
.lyric .clock { position: absolute; left: 14px; top: 10px; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.08em; }
.lyric .next { display: block; font-size: 0.72em; color: rgba(255, 255, 255, 0.55); font-weight: 500; margin-top: 4px; }

/* finestra con schermata */
.shot {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02);
  max-width: 100%;
}
.shot .bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot .bar span { margin-left: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.shot img { width: 100%; height: auto; }
.caption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 12px; letter-spacing: 0.04em; }

/* ---------- sezioni */
section { scroll-margin-top: 72px; }
.sec { padding-block: 96px; border-top: 1px solid var(--line); }
.sec-deep { background: var(--bg-deep); }
.head { max-width: 760px; margin-bottom: 48px; }

/* video */
.video {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: min(960px, 100%);
  border-radius: 12px;
  border: 1px dashed #3c494c;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(60, 198, 189, 0.05) 46px 48px), var(--panel);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}
.video .play { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--teal); display: grid; place-items: center; margin: 0 auto 16px; }
.video .play::after { content: ""; border-left: 22px solid var(--teal); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.video p { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* problema */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split > * { min-width: 0; }
.prose p + p { margin-top: 16px; }
.prose p { color: var(--muted); max-width: 60ch; }
.prose strong { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* passi */
.steps { display: grid; gap: 72px; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.step > * { min-width: 0; }
.step:nth-child(even) .step-text { order: 2; }
.num { font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--amber); border-radius: 4px; padding: 3px 9px; display: inline-block; margin-bottom: 16px; font-weight: 500; }
.step h3 { font-size: 34px; margin-bottom: 14px; }
.step p { color: var(--muted); }
.step .time { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--teal); }
@media (max-width: 860px) {
  .step { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .step:nth-child(even) .step-text { order: 0; }
}

/* funzioni */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.feat { background: var(--bg); padding: 30px 28px; display: grid; gap: 12px; align-content: start; }
.feat svg { width: 30px; height: 30px; }
.feat h3 { font-size: 22px; }
.feat p { color: var(--muted); font-size: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* allenamento */
.train-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.train-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--muted); }
.train-list li::before { content: ""; width: 14px; height: 14px; margin-top: 6px; border-radius: 3px; background: var(--teal-deep); border: 1px solid var(--teal); }
.train-list li:first-child::before { background: var(--amber); border-color: var(--amber); }

/* privacy locale */
.local { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.local > div { border-top: 2px solid var(--teal); padding-top: 20px; }
.local h3 { font-size: 22px; margin-bottom: 10px; }
.local p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .local { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* per chi */
.who { display: flex; flex-wrap: wrap; gap: 12px; }
.who span { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }

/* prezzo */
.price-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
.price-grid > * { min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 36px; }
.card-main { border-color: var(--teal-deep); background: linear-gradient(180deg, rgba(60, 198, 189, 0.08), transparent 40%), var(--panel); }
.amount { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.amount b { font-family: var(--display); font-size: 84px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.amount span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.incl { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; }
.incl li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.incl li::before { content: ""; width: 12px; height: 7px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); margin-top: 8px; }
.legal { font-size: 13px; color: var(--muted); margin-top: 18px; line-height: 1.55; }
.req h3 { font-size: 22px; margin-bottom: 16px; }
.req dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; font-size: 15px; }
.req dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding-top: 3px; }
.req dd { margin: 0; }
.mac { margin-top: 24px; }
.mac h3 { font-size: 22px; margin-bottom: 8px; }
.mac p { color: var(--muted); font-size: 15px; }
.mac form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.mac input {
  flex: 1 1 200px;
  min-width: 0;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
}
.mac .msg { margin-top: 10px; font-size: 14px; color: var(--teal); }
@media (max-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1fr); } .card { padding: 26px 22px; } }

/* faq */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-family: var(--mono); font-size: 24px; color: var(--teal); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 70ch; }

/* chiusura e piede */
.final { text-align: center; }
.final .lead { margin-left: auto; margin-right: auto; }
.final .cta-row { justify-content: center; }
footer { border-top: 1px solid var(--line); padding-block: 40px; background: var(--bg-deep); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }
.sig { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.sig img { height: 30px; width: auto; opacity: 0.9; }

/* titolo che si colora a tempo, come nel video */
.hero h1 .w { transition: color 0.14s linear; }
.hero h1 .w.on { color: #ffd60a; }
.hero h1 .hl.on { color: #ffd60a; }
.hero-grid > div { min-width: 0; }

/* ---------- V1.4: prezzo di lancio, note */
.footnote { font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 22px; max-width: 64ch; }
.btn .launch-tag { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; background: rgba(7, 25, 26, 0.18); border-radius: 4px; padding: 2px 7px; }
.launch { margin: 0 0 6px; }
.launch-badge { display: inline-block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: var(--amber); border-radius: 4px; padding: 3px 10px; font-weight: 500; }
.after { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 52ch; }
.after b { color: var(--text); font-weight: 600; }
.lead em { color: var(--text); font-style: normal; font-weight: 600; }
#aspetto .features .feat { padding-top: 26px; }
