/* Landing dancecoach.it. Stessa impostazione di spesasmart.online: una fascia per ogni momento,
   palette a ruoli. Notte (blu inchiostro) = la sala e la pratica, rosso clave = il tempo forte,
   crema = lo studio a casa, blu cartuccia = le coreografie. Solo font locali, niente risorse esterne. */
:root {
  --night: oklch(19% 0.06 266);
  --night-deep: oklch(15% 0.05 266);
  --night-2: oklch(25% 0.07 266);
  --blue: oklch(36% 0.17 264);
  --blue-soft: oklch(80% 0.09 264);
  --clave: oklch(60% 0.21 25);
  --clave-soft: oklch(93% 0.04 25);
  --gold: oklch(80% 0.14 80);
  --cream: oklch(97% 0.014 85);
  --paper: oklch(99.5% 0.005 85);
  --ink: oklch(17% 0.02 266);
  --muted: oklch(47% 0.015 266);
  --line: oklch(90% 0.012 266);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.5; font-size: 18px; }
a { color: inherit; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ── Bottoni ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px;
  border-radius: 999px; font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -0.01em;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-light { background: var(--cream); color: var(--night-deep); }
.btn-light:hover { background: var(--paper); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { background: var(--night); color: var(--cream); overflow: hidden; position: relative; }
.hero::before { /* faro sulla pista, solo decoro */
  content: ""; position: absolute; inset: -20% 10% auto auto; width: 70%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, oklch(40% 0.12 266 / 0.55), transparent);
}
.hero::after { /* parquet in prospettiva */
  content: ""; position: absolute; inset: auto 0 0 0; height: 36%; pointer-events: none;
  background: repeating-linear-gradient(90deg, oklch(97% 0.014 85 / 0.05) 0 1px, transparent 1px 110px);
  mask-image: linear-gradient(to top, black, transparent);
}
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; position: relative; z-index: 1; }
.logo { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--cream); text-decoration: none; }
.logo span { color: var(--clave); }
.hero-grid { display: grid; gap: 48px; padding-block: 24px 0; position: relative; z-index: 1; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: end; padding-top: 48px; } }
.hero h1 { font-size: clamp(38px, 10.4vw, 76px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 800; margin: 0 0 24px; }
@media (min-width: 960px) { .hero h1 { font-size: clamp(54px, 5.3vw, 76px); } }
.line { display: block; white-space: nowrap; }
.hero h1 .accent { color: var(--clave); }
.lead { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; max-width: 40ch; margin: 0 0 32px; color: oklch(90% 0.02 266); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 15px; color: oklch(80% 0.03 266); margin: 18px 0 0; }
.hero-copy { padding-bottom: 8px; }
@media (min-width: 960px) { .hero-copy { padding-bottom: 96px; } }

/* Telefono: la pratica */
.device {
  margin: 0; justify-self: center; width: min(340px, 86vw); border-radius: 48px 48px 0 0; padding: 12px 12px 0;
  background: var(--ink); box-shadow: 0 -2px 0 1px oklch(40% 0.04 266), 0 40px 80px oklch(8% 0.05 266 / 0.55);
}
.screen { background: var(--cream); color: var(--ink); border-radius: 38px 38px 0 0; padding: 14px 18px 28px; min-height: 520px; }
.status { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; padding: 0 6px 10px; }
.island { width: 92px; height: 26px; border-radius: 999px; background: var(--ink); }
.app-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 8px 0 0; }
.app-title { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; margin: 0 0 14px; line-height: 1.1; }
.now { background: var(--blue); color: var(--paper); border-radius: 24px; padding: 18px 18px 16px; }
.now-label { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-soft); }
.now-name { margin: 2px 0 0; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.now-pos { margin: 0; font-size: 14px; color: var(--blue-soft); font-weight: 600; }
.count { position: relative; height: 112px; margin: 6px 0 4px; }
.count span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 104px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; opacity: 0;
}
.count span:first-child { opacity: 1; color: var(--paper); }
.count .r { color: oklch(70% 0.08 264); }
.dots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.dots i { height: 8px; border-radius: 999px; background: oklch(100% 0 0 / 0.25); }
.dots i:first-child { background: var(--clave); }
.dots i.r { background: oklch(100% 0 0 / 0.12); }
.next { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 14px 4px 0; font-weight: 800; font-size: 17px; }
.next span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.next em { font-style: normal; font-weight: 600; font-size: 14px; color: var(--muted); }
.toggles { display: flex; gap: 8px; margin-top: 18px; }
.toggles span { flex: 1; text-align: center; padding: 10px 0; border-radius: 14px; font-size: 14px; font-weight: 700; background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.toggles .on { background: var(--ink); color: var(--paper); box-shadow: none; }

/* Conteggio: 8 tempi a 120 BPM = 4 secondi a giro, il rosso sull'1 */
@media (prefers-reduced-motion: no-preference) {
  .count span { animation: beat 4s steps(1) infinite; opacity: 0; }
  .count span:first-child { opacity: 0; }
  .dots i { animation: dot 4s steps(1) infinite; }
  .dots i:first-child { background: oklch(100% 0 0 / 0.25); }
  .count span:nth-child(1), .dots i:nth-child(1) { animation-delay: 0s; }
  .count span:nth-child(2), .dots i:nth-child(2) { animation-delay: .5s; }
  .count span:nth-child(3), .dots i:nth-child(3) { animation-delay: 1s; }
  .count span:nth-child(4), .dots i:nth-child(4) { animation-delay: 1.5s; }
  .count span:nth-child(5), .dots i:nth-child(5) { animation-delay: 2s; }
  .count span:nth-child(6), .dots i:nth-child(6) { animation-delay: 2.5s; }
  .count span:nth-child(7), .dots i:nth-child(7) { animation-delay: 3s; }
  .count span:nth-child(8), .dots i:nth-child(8) { animation-delay: 3.5s; }
  .dots i:nth-child(1) { animation-name: dot-one; }
  .hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
  .hero-copy > :nth-child(2) { animation-delay: .1s; }
  .hero-copy > :nth-child(3) { animation-delay: .2s; }
  .hero-copy > :nth-child(4) { animation-delay: .3s; }
}
@keyframes beat { 0% { opacity: 1; } 12.5% { opacity: 0; } }
@keyframes dot { 0% { background: var(--paper); } 12.5% { background: oklch(100% 0 0 / 0.25); } }
@keyframes dot-one { 0% { background: var(--clave); } 12.5% { background: oklch(100% 0 0 / 0.25); } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Sezioni ───────────────────────────────────────────── */
.band { padding-block: clamp(72px, 11vw, 140px); }
.band h2 { font-size: clamp(36px, 6.4vw, 72px); line-height: 1; letter-spacing: -0.045em; font-weight: 800; margin: 0 0 24px; text-wrap: balance; }
.step { font-size: 15px; font-weight: 800; margin: 0 0 14px; color: var(--clave); }
.body { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; max-width: 44ch; margin: 0; color: var(--muted); }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split-rev > :first-child { order: 2; }
}

/* A lezione: elenco delle figure */
.b-lesson { background: var(--cream); }
.figlist { list-style: none; margin: 0; padding: 0; background: var(--paper); border-radius: 26px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 24px 60px oklch(30% 0.05 266 / 0.1); }
.figlist li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 20px; }
.figlist li + li { border-top: 1px solid var(--line); }
.ck { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 800; box-shadow: inset 0 0 0 2px var(--line); color: transparent; }
.ck.on { background: var(--ink); color: var(--paper); box-shadow: none; }
.fn strong { display: block; font-size: 19px; letter-spacing: -0.02em; }
.fn small { font-size: 14px; color: var(--muted); font-weight: 600; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 18px; }
.stars i { font-style: normal; color: var(--line); }
.tag { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--clave-soft); color: oklch(45% 0.17 25); white-space: nowrap; }
.tag-soft { background: var(--cream); color: var(--muted); }

/* A casa: diagramma dei passi */
.b-home { background: var(--paper); }
.steps { margin: 0; background: var(--cream); border-radius: 26px; padding: 18px; }
.steps svg { display: block; width: 100%; height: auto; background: var(--paper); border-radius: 18px; }
.grid-lines line { stroke: var(--line); stroke-width: 1; }
.steps ellipse { stroke-width: 2; }
.steps .l ellipse { fill: var(--ink); stroke: var(--ink); }
.steps .f ellipse { fill: var(--clave); stroke: var(--clave); }
.steps ellipse.ghost { fill: none; stroke-dasharray: 4 4; opacity: .6; }
.steps text { font: 800 14px var(--font); text-anchor: middle; }
.steps .l text { fill: var(--ink); }
.steps .f text { fill: var(--clave); }
.steps .move { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 4; }
.counts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.counts li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: baseline; background: var(--paper); border-radius: 16px; padding: 12px 16px; font-size: 16px; }
.counts b { font-weight: 800; letter-spacing: 0.04em; }
.counts span { color: var(--muted); }
.counts strong { color: var(--ink); }

/* In pratica: sezione notte */
.b-practice { background: var(--night); color: var(--cream); }
.b-practice .step { color: var(--gold); }
.practice-grid { display: grid; gap: 48px; margin-top: 16px; }
@media (min-width: 900px) { .practice-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; } }
.mixer { background: var(--night-2); border-radius: 30px; padding: 22px 20px; box-shadow: 0 0 0 1px oklch(35% 0.06 266), 0 40px 90px oklch(5% 0.04 266 / 0.5); }
.mix-head { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 16px; }
.mix-head span { color: var(--gold); font-weight: 800; }
.mix-row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; padding: 7px 0; }
.mix-row span { font-size: 14px; font-weight: 700; color: oklch(85% 0.03 266); }
.mix-row p { margin: 0; display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.mix-row i { height: 18px; border-radius: 4px; background: oklch(100% 0 0 / 0.07); }
.mix-row i:nth-child(4n+1) { background: oklch(100% 0 0 / 0.12); }
.mix-row i.x { background: var(--cream); }
.mix-row:first-of-type i.x { background: var(--clave); }
.voice { margin: 16px 0 0; padding: 14px 16px; border-radius: 18px; background: oklch(97% 0.014 85 / 0.1); font-size: 17px; font-weight: 600; }
.voice b { color: var(--gold); }
.practice-copy { display: grid; gap: 40px; }
.practice-copy h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; margin: 0 0 10px; }
.practice-copy p { margin: 0; font-size: 18px; line-height: 1.6; color: oklch(82% 0.025 266); max-width: 46ch; }

/* Coreografie: sezione blu cartuccia */
.b-choreo { background: var(--blue); color: var(--paper); }
.b-choreo .step { color: var(--gold); }
.b-choreo .body { color: oklch(88% 0.04 264); }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: f; }
.chain li {
  counter-increment: f; position: relative; display: grid; grid-template-columns: 34px 1fr auto; column-gap: 14px; align-items: center;
  background: var(--paper); color: var(--ink); border-radius: 20px; padding: 14px 18px;
}
.chain li::before { content: counter(f); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); font-weight: 800; font-size: 15px; }
.chain li + li::after { /* aggancio tra figure: l'arrivo è la partenza della successiva */
  content: ""; position: absolute; left: 34px; top: -12px; width: 2px; height: 14px; background: var(--gold);
}
.chain strong { font-size: 19px; letter-spacing: -0.02em; }
.chain span { grid-column: 2; font-size: 14px; color: var(--muted); font-weight: 600; }
.chain em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-weight: 800; font-size: 20px; color: var(--blue); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: oklch(94% 0.03 264); }

/* Cartucce */
.b-carts { background: var(--cream); }
.carts { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .carts { grid-template-columns: repeat(3, 1fr); } }
.cart { background: var(--paper); border-radius: 26px; overflow: hidden; padding: 0 24px 26px; box-shadow: 0 1px 0 var(--line); }
.cart-label {
  height: 110px; margin: 0 -24px 22px; padding: 16px 20px;
  background: linear-gradient(135deg, var(--a) 0 62%, var(--b) 62% 100%);
}
.cart-label span { display: inline-block; background: oklch(100% 0 0 / 0.92); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.cart h3 { margin: 0; font-size: 23px; letter-spacing: -0.03em; }
.cart p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.cart-off .cart-label { background: repeating-linear-gradient(-45deg, oklch(93% 0.012 85) 0 12px, var(--paper) 12px 24px); }
.cart-off .cart-label span { background: var(--cream); color: var(--muted); }
.cart-off h3 { color: var(--muted); }

/* Il resto, in breve: elenco a due colonne, non card */
.b-more { background: var(--paper); }
.more-list { display: grid; gap: 0; margin: 16px 0 0; }
@media (min-width: 760px) { .more-list { grid-template-columns: 1fr 1fr; column-gap: 64px; } }
.more-list > div { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.more-list > div:first-child { border-top: 0; }
@media (min-width: 760px) { .more-list > div:nth-child(2) { border-top: 0; } }
.more-list dt { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.more-list dd { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }

/* Prova */
.b-cta { background: var(--night); color: var(--cream); }
.cta-grid { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
.cta-card {
  display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 26px; text-decoration: none;
  background: var(--cream); color: var(--ink); transition: transform .25s var(--ease);
}
a.cta-card:hover { transform: translateY(-3px); }
.cta-card strong { font-size: 26px; letter-spacing: -0.03em; }
.cta-card span { color: var(--muted); font-size: 16px; line-height: 1.5; }
.cta-card em { font-style: normal; font-weight: 800; color: var(--clave); margin-top: 6px; }
.cta-quiet { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px oklch(97% 0.014 85 / 0.3); }
.cta-quiet span { color: oklch(82% 0.025 266); }
.cta-quiet em { color: var(--gold); }

footer { background: var(--night-deep); color: oklch(78% 0.03 266); font-size: 14px; padding: 22px 0 28px; }
footer a { color: oklch(88% 0.03 266); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }
