/* =========================================================
   LA FUCINA DELLA DANZA — stessa struttura del sito palestra,
   ma a colori: viola notte, magenta, giallo sole, turchese
   e il rame del logo calligrafico.
   ========================================================= */
:root {
  --night: #1a0b2e;   /* sfondi scuri */
  --night2: #261040;
  --plum: #3b1763;
  --ink: #22122f;     /* testo su chiaro */
  --muted: #7d6b8c;
  --line: rgba(255, 255, 255, .16);
  --paper: #fff3ee;   /* sfondi chiari, rosa cipria */
  --cream: #fffaf7;
  --white: #fff;
  --sun: #ffd23f;
  --magenta: #ff2e88;
  --violet: #7b2ff7;
  --teal: #17d4c4;
  --copper: #ef7d2d;
  /* colori principali (li imposta main.js in base al tema) */
  --hl1: #ffd23f;
  --hl2: #ff2e88;
  --hl3: #7b2ff7;
  --grad: linear-gradient(90deg, var(--hl1), var(--hl2) 50%, var(--hl3));
  --grad2: linear-gradient(90deg, var(--hl1), var(--hl2));
  --grad3: linear-gradient(120deg, var(--hl2), var(--hl3));
  --head: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --topbar: 34px;
  --header: 80px;
  --r: 22px;          /* angoli arrotondati */
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1; letter-spacing: -.03em; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- Bottoni (a pillola) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 28px; border: 1.5px solid currentColor; border-radius: 60px;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
  white-space: nowrap;
}
.btn > svg { margin-right: .55em; }
.btn-lg { padding: 18px 36px; font-size: 14px; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn-outline { color: var(--white); border-color: rgba(255, 255, 255, .85); }
.btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--night); }
.btn-light {
  background: linear-gradient(90deg, var(--hl1), var(--hl2), var(--hl1)) 0 0 / 200% 100%; color: var(--night); border-color: transparent;
  transition: background-position .6s var(--ease), transform .3s var(--ease), box-shadow .3s;
}
.btn-light:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 14px 34px -12px var(--hl2); }
.btn-dark { background: var(--night); color: var(--white); border-color: var(--night); }
.btn-dark:hover { background: var(--hl2); border-color: var(--hl2); color: var(--white); transform: translateY(-2px); box-shadow: 0 14px 30px -14px var(--hl2); }
.btn-ghost { color: var(--night); border-color: var(--night); }
.btn-ghost:hover { background: var(--hl1); border-color: var(--hl1); color: var(--night); }

.label { font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; padding: 8px 15px; border-radius: 40px;
  background: rgba(123, 47, 247, .1); color: var(--plum);
  font-family: var(--head); font-weight: 800; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
.kicker > span[aria-hidden] { width: 8px; height: 8px; border-radius: 50%; background: var(--hl2); box-shadow: 12px 0 0 var(--hl1), 24px 0 0 var(--teal); margin-right: 24px; }
.kicker-light { background: rgba(255, 255, 255, .14); color: var(--white); }
.spaced {
  font-family: var(--head); font-weight: 900; font-size: clamp(40px, 6.2vw, 88px); letter-spacing: -.04em; text-transform: uppercase;
  text-align: center; padding: 86px 16px 46px; line-height: .95;
}
.spaced small { display: block; font-size: 13px; letter-spacing: .3em; font-weight: 800; color: var(--hl2); margin-bottom: 14px; }
.big { font-size: clamp(42px, 5.4vw, 78px); font-weight: 900; margin-bottom: 26px; letter-spacing: -.04em; }

/* ---------- Evidenziatore colorato ---------- */
/* tratto colorato sotto le parole: si "disegna" quando il titolo entra nello schermo */
.hl {
  background-image: var(--grad); background-repeat: no-repeat; background-size: 0% .3em; background-position: 0 92%;
  padding: 0 .08em; margin: 0 -.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.2s var(--ease) .35s;
}
.in .hl, .hl.in { background-size: 100% .3em; }
.t-grad { background: var(--grad2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag-grad { display: inline-block; background: var(--grad2); color: var(--night); padding: 7px 13px; border-radius: 40px; }
::selection { background: var(--hl2); color: var(--white); }

/* barra di avanzamento della pagina */
.progress { position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* nastro scorrevole */
.ticker { background: var(--grad3); color: var(--white); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track > div { display: flex; align-items: center; flex: none; }
.ticker span { font-family: var(--head); font-weight: 900; font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -.03em; text-transform: uppercase; padding: 18px 26px; white-space: nowrap; line-height: 1.1; }
.ticker .t-grad { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--hl1); }
.ticker i { font-style: normal; color: var(--white); font-size: 22px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Barra annuncio ---------- */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 60; height: 34px; overflow: hidden;
  background: var(--grad); color: var(--night); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; padding: 0 44px; text-align: center; transition: transform .4s var(--ease);
}
.topbar p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar u { text-underline-offset: 3px; text-transform: uppercase; font-weight: 900; }
.topbar-x { position: absolute; right: 4px; top: 0; width: 38px; height: 34px; display: grid; place-items: center; font-size: 22px; line-height: 1; padding: 0; color: var(--night); }
body.no-topbar { --topbar: 0px; }
body.no-topbar .topbar { transform: translateY(-100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }

/* ---------- Header ---------- */
.header {
  position: fixed; left: 0; right: 0; top: var(--topbar); z-index: 50; height: var(--header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 32px; color: var(--white);
  transition: background .4s, top .4s var(--ease), height .3s, box-shadow .4s;
}
.header.scrolled { background: rgba(26, 11, 46, .92); backdrop-filter: blur(10px); height: 68px; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.menu-btn { width: 34px; height: 34px; display: grid; align-content: center; gap: 8px; justify-self: start; position: relative; z-index: 2; }
.menu-btn span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease), width .4s var(--ease); }
.menu-btn span:last-child { width: 70%; }
.menu-btn:hover span:last-child { width: 100%; }
.menu-btn.open span:first-child { transform: translateY(5px) rotate(45deg); }
.menu-btn.open span:last-child { width: 100%; transform: translateY(-5px) rotate(-45deg); }
/* Logo in alto: il logo calligrafico della scuola (versione chiara) */
.wordmark { display: inline-block; position: relative; z-index: 2; color: var(--white); font-family: var(--head); font-weight: 900; font-size: 24px; }
.wordmark img { display: block; height: 72px; width: auto; max-width: 46vw; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); transition: height .3s; }
.header.scrolled .wordmark img { height: 58px; }
.header-cta { justify-self: end; padding: 13px 22px; font-size: 12px; }

/* ---------- Menù overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 45; background: var(--night); color: var(--white);
  clip-path: circle(0% at 40px 70px); transition: clip-path .8s var(--ease), visibility 0s .8s; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; visibility: hidden;
}
.overlay.open { clip-path: circle(150% at 40px 70px); visibility: visible; transition: clip-path .8s var(--ease); }
/* a menù chiuso le animazioni interne si fermano (meno lavoro per il telefono) */
.overlay:not(.open) .overlay-glow, .overlay:not(.open) .ticker-track { animation-play-state: paused; }
.overlay-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: .75;
  background:
    radial-gradient(40vw 40vw at 85% 15%, color-mix(in srgb, var(--hl2) 60%, transparent), transparent 70%),
    radial-gradient(35vw 35vw at 100% 90%, color-mix(in srgb, var(--hl3) 80%, transparent), transparent 70%),
    radial-gradient(30vw 30vw at 10% 100%, color-mix(in srgb, var(--hl1) 35%, transparent), transparent 70%);
  filter: blur(20px); animation: glow 12s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-3%, 4%) scale(1.08); } }
.overlay-inner {
  position: relative; flex: 1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center;
  padding: calc(var(--topbar) + var(--header) + 24px) 56px 32px; width: min(1400px, 100%); margin: 0 auto;
}
.open-status { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #e6dcf0; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.18); padding: 8px 14px; border-radius: 40px; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 var(--teal); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.overlay-links { list-style: none; margin: 0; padding: 0; }
.overlay-links a {
  display: flex; align-items: baseline; gap: 18px; font-family: var(--head); font-weight: 900; text-transform: uppercase;
  font-size: clamp(32px, 4.8vw, 70px); letter-spacing: -.04em; line-height: 1.04; color: var(--white); transition: color .3s, transform .5s var(--ease);
}
.overlay-links a span {
  background-image: var(--grad); background-repeat: no-repeat; background-size: 0% .3em; background-position: 0 90%;
  transition: background-size .5s var(--ease); padding: 0 .06em;
}
.overlay-links:hover a { color: rgba(255,255,255,.35); }
.overlay-links a:hover, .overlay-links a:focus-visible { color: var(--white); transform: translateX(14px); outline: none; }
.overlay-links a:hover span, .overlay-links a:focus-visible span { background-size: 100% .3em; }
.overlay-links small { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--hl1); min-width: 22px; }
.overlay-links li { opacity: 0; transform: translateY(40px) skewY(4deg); transition: opacity .5s, transform .7s var(--ease); }
.overlay.open .overlay-links li { opacity: 1; transform: none; }
.overlay-side { color: #d9cde6; font-size: 15px; opacity: 0; transform: translateX(40px); transition: opacity .6s .35s, transform .8s var(--ease) .35s; }
.overlay.open .overlay-side { opacity: 1; transform: none; }
.ov-photo { position: relative; margin: 0 0 18px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night2); border-radius: var(--r); }
.ov-img { position: absolute; inset: 0; background-size: cover; background-position: center 22%; }
.ov-img.swap { animation: ovswap .7s var(--ease); }
@keyframes ovswap { from { opacity: 0; transform: scale(1.08); } }
.ov-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(0deg, rgba(26,11,46,.85), transparent); color: var(--white); font-family: var(--head); font-weight: 700; font-size: 14px; }
.ov-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 16px; }
.ov-quick a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.05);
  font-family: var(--head); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--white); transition: border-color .3s, background .3s, color .3s;
}
.ov-quick svg { width: 20px; height: 20px; fill: currentColor; }
.ov-quick a:hover { background: var(--hl1); border-color: var(--hl1); color: var(--night); }
.ov-address { margin-bottom: 16px; }
.ov-ticker { position: relative; border-top: 1px solid rgba(255,255,255,.1); overflow: hidden; color: var(--white); }
.ov-ticker span { font-family: var(--head); font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: -.02em; padding: 14px 20px; white-space: nowrap; }
.ov-ticker i { font-style: normal; color: var(--hl2); }
.header.menu-open { background: transparent; backdrop-filter: none; box-shadow: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; color: var(--white); background: var(--night); }
.hero-slides div {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease, transform 8s linear;
}
.hero-slides div.active { opacity: 1; transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,11,46,.7) 0%, rgba(26,11,46,.25) 40%, rgba(26,11,46,.35) 62%, rgba(26,11,46,.92) 100%),
    linear-gradient(90deg, rgba(123,47,247,.35), rgba(255,46,136,.18));
}
/* bagliore colorato dietro al titolo */
.hero-glow {
  position: absolute; left: 50%; top: 52%; width: min(900px, 120vw); aspect-ratio: 1.6; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hl2) 45%, transparent), color-mix(in srgb, var(--hl3) 25%, transparent) 55%, transparent);
  filter: blur(30px); opacity: .7; pointer-events: none; animation: breathe 7s ease-in-out infinite alternate; will-change: transform, opacity;
}
@keyframes breathe { to { transform: translate(-50%, -50%) scale(1.12); opacity: .9; } }
.hero-content {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--topbar) + var(--header)) 20px 60px;
}
.hero-kicker { font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; margin: 0 0 20px; padding: 8px 16px; border-radius: 40px; background: rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(48px, 8vw, 124px); font-weight: 900; letter-spacing: -.05em; line-height: .94; text-shadow: 0 6px 40px rgba(26, 11, 46, .45); }
.hero h1 .hl { background-size: 0% .2em; }
.hero h1.in .hl { background-size: 100% .2em; }
.hero-sub { font-family: var(--head); font-weight: 700; font-size: clamp(15px, 1.5vw, 19px); margin: 24px 0 32px; max-width: 560px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-note { font-family: var(--head); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin: 18px 0 0; opacity: .9; }
.hero-dots { position: absolute; z-index: 3; left: 32px; bottom: 19px; display: flex; gap: 8px; }
.hero-dots button { width: 34px; height: 28px; background: none; position: relative; overflow: hidden; padding: 0; }
.hero-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); }
.hero-dots button.active::after { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 3px; background: var(--grad2); animation: fillbar 6s linear forwards; transform-origin: left; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: var(--white); transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }
/* bollino valutazione Google */
.g-badge {
  position: absolute; z-index: 3; right: 32px; bottom: 22px; display: flex; flex-direction: column; gap: 2px; padding: 12px 18px;
  border-radius: 18px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2);
  font-family: var(--head); font-size: 13px; font-weight: 600; line-height: 1.25; transition: background .3s, transform .3s var(--ease);
}
.g-badge[hidden] { display: none; }
.g-badge:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.g-stars { color: var(--hl1); letter-spacing: 3px; font-size: 14px; }
.g-badge strong { font-size: 18px; font-weight: 900; }

/* ---------- Presentazione della scuola ---------- */
.intro { position: relative; background: var(--paper); padding: 120px 0 90px; overflow: hidden; }
.intro::before { /* macchia di colore sullo sfondo */
  content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -160px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hl1) 45%, transparent), transparent); pointer-events: none;
}
.intro-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: center; }
.intro-photos { position: relative; width: 100%; max-width: 480px; margin: 0 auto; padding: 0 0 60px; }
.ip { display: block; object-fit: cover; border-radius: var(--r); box-shadow: 0 34px 70px -34px rgba(59, 23, 99, .6); transition: transform .7s var(--ease); }
.ip-1 { width: 76%; height: auto; aspect-ratio: 4 / 5; transform: rotate(-3deg); }
.ip-2 { position: absolute; right: 0; bottom: 0; width: 52%; height: auto; aspect-ratio: 4 / 5; transform: rotate(5deg); border: 7px solid var(--cream); }
.ip:hover { transform: rotate(0deg) scale(1.02); }
.ip-badge {
  position: absolute; left: -14px; top: -18px; padding: 12px 18px; border-radius: 40px; transform: rotate(-6deg);
  background: var(--hl2); color: var(--white); font-family: var(--head); font-weight: 900; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 18px 40px -16px var(--hl2);
}
.intro-text { font-size: 17px; color: #4a3a57; }
.intro-text .big { color: var(--ink); }
.intro-list { list-style: none; padding: 0; margin: 26px 0 32px; }
.intro-list li { padding: 14px 0 14px 38px; border-bottom: 1px solid rgba(59, 23, 99, .12); position: relative; }
.intro-list li:first-child { border-top: 1px solid rgba(59, 23, 99, .12); }
.intro-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad2); }
.intro-list li:nth-child(2)::before { background: var(--grad3); }
.intro-list li:nth-child(3)::before { background: linear-gradient(120deg, var(--teal), var(--hl3)); }
.intro-list strong { font-family: var(--head); font-weight: 800; color: var(--ink); }
.intro-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Caroselli corsi ---------- */
.block { background: var(--paper); }
.block.light { background: var(--cream); padding-bottom: 90px; }
.block-dark { background: var(--night); color: var(--white); padding-bottom: 40px; }
.block-dark .spaced small { color: var(--hl1); }
#danza { padding-bottom: 40px; }
.carousel { position: relative; }
.track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 12px;
  padding: 0 12px 12px; scrollbar-width: none; cursor: grab;
}
.track::-webkit-scrollbar { display: none; }
.track.dragging { cursor: grabbing; scroll-snap-type: none; }
.card {
  --c: var(--hl2);
  flex: 0 0 min(80vw, 820px); height: min(82vh, 760px); min-height: 480px; scroll-snap-align: start;
  position: relative; overflow: hidden; background: var(--night2); color: var(--white); user-select: none; border-radius: var(--r);
}
.card-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.2s var(--ease); }
.card:hover .card-img { transform: scale(1.04); }
.card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(26,11,46,.62) 0%, rgba(26,11,46,0) 42%, rgba(26,11,46,0) 66%, rgba(26,11,46,.55)); }
/* bordo colorato del corso */
.card::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--c); transition: box-shadow .5s var(--ease); pointer-events: none; }
.card:hover::after, .card.open::after { box-shadow: inset 0 0 0 5px var(--c); }
.card-head { position: absolute; z-index: 2; left: 0; right: 0; top: 52px; text-align: center; padding: 0 20px; }
.card-head .label { display: inline-block; background: var(--c); color: var(--night); padding: 6px 12px; border-radius: 30px; margin-bottom: 14px; }
.card-head h3 { font-size: clamp(38px, 4.6vw, 64px); font-weight: 900; letter-spacing: -.04em; text-shadow: 0 4px 30px rgba(26,11,46,.4); }
.plus-btn {
  margin: 18px auto 0; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.25); backdrop-filter: blur(6px);
  display: grid; place-items: center; position: relative; transition: background .3s, transform .4s var(--ease);
}
.plus-btn::before, .plus-btn::after { content: ""; position: absolute; width: 14px; height: 2px; background: var(--white); }
.plus-btn::after { transform: rotate(90deg); }
.plus-btn:hover, .card.open .plus-btn { background: var(--c); }
.plus-btn:hover::before, .plus-btn:hover::after, .card.open .plus-btn::before, .card.open .plus-btn::after { background: var(--night); }
.card.open .plus-btn { transform: rotate(45deg); }
.card-tags { position: absolute; z-index: 2; left: 0; right: 0; bottom: 26px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0 16px; transition: opacity .3s; }
.card-tags li { padding: 7px 14px; border-radius: 30px; background: rgba(26,11,46,.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.22); font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.card-tags li:last-child { background: var(--c); color: var(--night); border-color: transparent; }
.card.open .card-tags { opacity: 0; }
.card-info {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 34px 40px 36px; background: rgba(26,11,46,.93); backdrop-filter: blur(4px);
  border-top: 5px solid var(--c); transform: translateY(101%); transition: transform .6s var(--ease);
}
.card.open .card-info { transform: none; }
.card-info p { max-width: 580px; color: #e6dcf0; }
.card-meta { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-family: var(--head); font-weight: 800; font-size: 15px; }
.card-meta small { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--c); margin-bottom: 2px; }
.card-meta .btn { margin-left: auto; padding: 12px 20px; }

.car-arrow {
  position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%;
  font-size: 30px; line-height: 1; color: var(--white); background: rgba(26,11,46,.4); backdrop-filter: blur(6px); transition: background .3s, opacity .3s, color .3s;
}
.car-arrow:hover { background: var(--hl1); color: var(--night); }
.car-arrow.prev { left: 22px; }
.car-arrow.next { right: 22px; }
.car-arrow[disabled] { opacity: 0; pointer-events: none; }

/* ---------- Galleria: striscia di foto vere ---------- */
.gallery { position: relative; overflow: hidden; color: var(--white); padding: 96px 0 70px; background: linear-gradient(125deg, var(--hl2) 0%, color-mix(in srgb, var(--hl2) 45%, var(--hl3)) 45%, var(--hl3) 100%); }
.gallery::before { content: ""; position: absolute; width: 560px; height: 560px; left: -180px; bottom: -260px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--hl1) 70%, transparent), transparent); opacity: .55; pointer-events: none; }
.gallery-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.gallery-head .big { margin: 0; }
.gallery-head .hl { background-image: linear-gradient(90deg, var(--hl1), var(--hl1)); }
.gallery-head p { max-width: 380px; margin: 0; font-size: 17px; color: rgba(255,255,255,.9); }
.photo-track { padding-left: max(12px, calc((100vw - 1200px) / 2)); scroll-padding-left: max(12px, calc((100vw - 1200px) / 2)); padding-right: 40px; }
.photo { position: relative; flex: 0 0 auto; height: min(68vh, 600px); min-height: 380px; aspect-ratio: 3 / 4; margin: 0; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; background: rgba(26,11,46,.35); box-shadow: 0 30px 60px -30px rgba(26,11,46,.7); user-select: none; }
.photo:nth-child(even) { margin-top: 36px; }
.photo-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.2s var(--ease); }
.photo:hover .photo-img { transform: scale(1.05); }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 50px 18px 16px; background: linear-gradient(0deg, rgba(26,11,46,.85), transparent); font-family: var(--head); font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.photo figcaption span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--hl1); color: var(--night); font-size: 11px; letter-spacing: 0; }
.gallery .car-arrow { top: calc(50% + 18px); }

/* ---------- La sala ---------- */
.feature { position: relative; min-height: 88vh; display: flex; align-items: center; background: var(--plum); color: var(--white); overflow: hidden; }
.feature-img { position: absolute; inset: 0 0 0 38%; background-size: cover; background-position: center 16%; }
.feature-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--plum) 0%, rgba(59,23,99,.55) 28%, rgba(59,23,99,0) 65%); }
.feature-text { position: relative; z-index: 2; max-width: 560px; padding: 90px 48px; color: #eadff5; }
.feature-text .big { color: var(--white); }
.feature .kicker { background: rgba(255,255,255,.14); color: var(--white); }

.more summary { list-style: none; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; }
.more summary::-webkit-details-marker { display: none; }
.plus { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.22); position: relative; flex: none; transition: transform .4s var(--ease), background .3s, color .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.more[open] .plus { transform: rotate(45deg); }
.more[open] .plus, .more summary:hover .plus { background: var(--hl1); color: var(--night); }
.more p { margin-top: 16px; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Banner hip hop ---------- */
.program { position: relative; min-height: 92vh; display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden; background-size: cover; background-position: center 30%; background-color: var(--night); }
.program-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,11,46,.85), rgba(26,11,46,.35) 50%, rgba(26,11,46,.95)); }
.program-ghost {
  position: absolute; top: 8%; left: 0; right: 0; z-index: 1; margin: 0; font-family: var(--head); font-weight: 900;
  font-size: clamp(80px, 22vw, 360px); letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.14); white-space: nowrap; overflow: hidden;
}
.program-content { position: relative; z-index: 2; padding: 120px 20px 80px; max-width: 740px; }
.program-title { font-size: clamp(64px, 11vw, 160px); font-weight: 900; letter-spacing: -.05em; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: .9; padding-bottom: .04em; }
.program-sub { font-family: var(--head); font-weight: 800; font-size: clamp(18px, 2vw, 26px); margin-bottom: 10px; }
.program-content > p:not(.label) { color: #eadff5; }
.program-content .btn { margin-top: 18px; }

/* ---------- Numeri: quattro tessere colorate ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 60px 24px; text-align: center; color: var(--night); }
.stat:nth-child(1) { background: var(--hl1); }
.stat:nth-child(2) { background: var(--hl2); color: var(--white); }
.stat:nth-child(3) { background: var(--hl3); color: var(--white); }
.stat:nth-child(4) { background: var(--teal); }
.stat strong { display: block; font-family: var(--head); font-weight: 900; font-size: clamp(46px, 5.2vw, 76px); letter-spacing: -.05em; line-height: 1; }
.stat span { display: block; margin-top: 12px; font-family: var(--head); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }

/* ---------- Spettacoli ---------- */
.news { position: relative; min-height: 90vh; display: grid; place-items: center; text-align: center; color: var(--white); background-size: cover; background-position: center; background-color: var(--night); overflow: hidden; }
.news-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,11,46,.7), rgba(59,23,99,.55) 50%, rgba(26,11,46,.85)); }
.news-content { position: relative; z-index: 2; padding: 100px 20px; max-width: 820px; }
.news-content .big { margin-bottom: 18px; }
.news-lead { font-size: 18px; color: #eadff5; max-width: 620px; margin: 0 auto 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0 0 34px; }
.chips li { padding: 9px 16px; border-radius: 40px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); font-family: var(--head); font-weight: 700; font-size: 14px; }
.chips li:nth-child(4n+1) { border-color: var(--hl1); }
.chips li:nth-child(4n+2) { border-color: var(--hl2); }
.chips li:nth-child(4n+3) { border-color: var(--teal); }
.chips li:nth-child(4n+4) { border-color: color-mix(in srgb, var(--hl3) 60%, white); }
.chips-light { justify-content: flex-start; margin: 22px 0 30px; }

/* ---------- Insegnanti + workshop ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 92vh; }
.split article { position: relative; display: flex; align-items: flex-start; overflow: hidden; }
.split-inner { position: relative; z-index: 2; padding: 90px 56px; max-width: 640px; }
.split-dark { background-size: cover; background-position: center 30%; background-color: var(--night); color: var(--white); }
.split-dark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,11,46,.9) 0%, rgba(59,23,99,.55) 55%, rgba(26,11,46,.75)); }
.split-dark p { color: #eadff5; }
.split-light { background: var(--paper); flex-direction: column; }
.team { display: grid; gap: 14px; }
.person { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--white); box-shadow: 0 18px 40px -30px rgba(59,23,99,.45); transition: transform .4s var(--ease); }
.person:hover { transform: translateX(6px); }
.avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 900; font-size: 18px; color: var(--night); object-fit: cover; }
.avatar.a0 { background: var(--grad2); }
.avatar.a1 { background: linear-gradient(120deg, var(--teal), var(--hl3)); color: var(--white); }
.avatar.a2 { background: var(--grad3); color: var(--white); }
.avatar.a3 { background: var(--hl1); }
.person strong { display: block; font-family: var(--head); font-size: 20px; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.person small { display: inline-block; margin: 4px 0 6px; font-family: var(--head); font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--hl2); }
.person p { margin: 0; font-size: 14.5px; color: #5a4a68; line-height: 1.5; }
.split-thumb { margin: auto 56px 56px; height: 300px; background-size: cover; background-position: center 30%; width: calc(100% - 112px); border-radius: var(--r); background-color: var(--night2); }

/* ---------- Orari ---------- */
.days { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.days button {
  min-width: 82px; padding: 12px 16px; border: 1.5px solid #e6d9ea; border-radius: 16px; background: var(--white); font-family: var(--head); font-weight: 800; font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; transition: all .25s;
}
.days button small { display: block; font-weight: 500; letter-spacing: .04em; color: #9a8aa6; text-transform: none; font-size: 11px; }
.days button.vuoto { color: #b8a9c2; }
.days button:hover { border-color: var(--night); }
.days button[aria-selected="true"] { background: var(--night); color: var(--white); border-color: var(--night); box-shadow: inset 0 -4px 0 var(--hl2); }
.days button[aria-selected="true"] small { color: #c9b8d8; }
.sched { display: grid; gap: 10px; }
.slot {
  --c: var(--hl2);
  display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 18px; background: var(--white);
  border-left: 8px solid var(--c); box-shadow: 0 14px 34px -28px rgba(59,23,99,.5); animation: fadeUp .5s var(--ease) both; transition: transform .3s var(--ease);
}
.slot:hover { transform: translateX(4px); }
.slot.hi { background: color-mix(in srgb, var(--c) 14%, white); }
.slot time { font-family: var(--head); font-weight: 900; font-size: 28px; letter-spacing: -.03em; }
.slot h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.slot .btn { padding: 11px 20px; font-size: 11px; }
.slot.past { opacity: .45; }
.slot .seats { font-size: 13px; color: #8a7a98; display: block; margin-top: 4px; }
.sched-empty { text-align: center; padding: 44px 16px; color: #6d5d7b; margin: 0; border-radius: 18px; background: var(--white); }
.sched-empty .linklike { color: var(--hl2); font-weight: 700; margin-left: 4px; }
.small-note { text-align: center; font-size: 13.5px; color: #7d6b8c; margin-top: 26px; }
.small-note a { color: inherit; border-bottom: 1.5px solid var(--hl2); font-weight: 700; }

/* ---------- Lezione di prova ---------- */
.trial { position: relative; color: var(--white); background-size: cover; background-position: center 60%; background-color: var(--night); overflow: hidden; }
.trial-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(26,11,46,.94) 10%, rgba(59,23,99,.82) 55%, rgba(255,46,136,.55)); }
.trial-inner { position: relative; z-index: 2; width: min(1200px, 100% - 48px); margin: auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; padding: clamp(56px, calc((100vh - 760px) / 2), 120px) 0; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 8px 0 8px 36px; position: relative; color: #eadff5; font-size: 17px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad2); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 17px; width: 9px; height: 5px; border-left: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: rotate(-45deg); }
.trial-card { background: rgba(26,11,46,.8); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); border-radius: 26px; padding: 32px; color: var(--white); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.trial-way { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.trial-num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad2); color: var(--night); font-family: var(--head); font-weight: 900; font-size: 16px; }
.trial-way h3 { font-size: 24px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 6px; }
.trial-way p { margin: 0; color: #d9cde6; font-size: 15px; }
.pick { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.pick button {
  --c: var(--hl2);
  padding: 9px 14px; border-radius: 30px; border: 1.5px solid rgba(255,255,255,.22); font-family: var(--head); font-weight: 700; font-size: 13px; color: #eadff5;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.pick button::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 1px; }
.pick button:hover { border-color: var(--c); transform: translateY(-1px); }
.pick button[aria-checked="true"] { background: var(--c); border-color: var(--c); color: var(--night); }
.pick button[aria-checked="true"]::before { background: var(--night); }
.trial-call { font-size: 14px; padding: 17px 20px; }
.trial-call svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.trial-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-family: var(--head); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #a796b7; }
.trial-or::before, .trial-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.15); }
.trial-where { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 14px; margin: 18px 0 0; color: #d9cde6; }
.trial-where svg { width: 16px; height: 16px; fill: var(--hl1); flex: none; }
#trialTel { white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { background: var(--cream); color: var(--ink); padding-top: 80px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; padding-bottom: 60px; position: relative; }
.foot-logo { margin-bottom: 26px; }
.foot-logo img { display: block; width: clamp(200px, 22vw, 290px); height: auto; }
.newsletter h2 { font-size: 40px; font-weight: 900; margin-bottom: 10px; }
.newsletter > p { font-size: 17px; color: #4a3a57; }
.contact-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--night); display: grid; place-items: center; transition: background .3s, transform .3s var(--ease); }
.socials a:hover { background: var(--hl2); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; fill: var(--white); }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { padding: 5px 0; }
.foot-links a { border-bottom: 1.5px solid rgba(59,23,99,.18); padding-bottom: 2px; transition: border-color .3s; }
.foot-links a:hover { border-color: var(--hl2); }
.foot-who { color: var(--muted); font-size: 14px; }
.dark-label { color: var(--hl2); margin-top: 4px; }
.map { position: relative; height: 360px; background: var(--night); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-off { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--white); background: radial-gradient(60% 90% at 50% 100%, color-mix(in srgb, var(--hl3) 45%, transparent), transparent), var(--night); }
.map-off[hidden] { display: none; }
.map-off .label { color: var(--hl1); }
.map-addr { font-family: var(--head); font-weight: 900; font-size: clamp(22px, 2.8vw, 34px); letter-spacing: -.02em; margin: 0 0 8px; }
.map-txt { font-size: 13px; color: #bfaecf; max-width: 420px; margin: 0 0 20px; }
.map-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.foot-bottom { padding: 40px 0 30px; font-size: 13px; color: var(--muted); overflow: hidden; }
.foot-word {
  font-family: var(--head); font-weight: 900; font-size: clamp(70px, 19vw, 300px); letter-spacing: -.07em; line-height: .85; margin: 0 0 24px; white-space: nowrap;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-transform: uppercase;
}
.linklike { font: inherit; color: inherit; padding: 0; border-bottom: 1px solid currentColor; cursor: pointer; }
.legal-links { margin-top: 10px; }
.legal-links a { border-bottom: 1px solid #d6c8de; }
.legal-links a:hover, .legal-links .linklike:hover { border-color: var(--hl2); }

/* ---------- Barra mobile ---------- */
.mobile-bar { display: none; }

/* ---------- Animazioni ingresso ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* nella foto iniziale i testi entrano subito, senza aspettare lo script (la pagina appare prima) */
.hero .reveal { opacity: 1; transform: none; transition: none; animation: heroIn 1s var(--ease) both; }
.hero .hero-kicker.reveal { animation-delay: .05s; }
.hero h1.reveal { animation-delay: .15s; }
.hero .hero-sub.reveal { animation-delay: .3s; }
.hero .hero-btns.reveal { animation-delay: .4s; }
.hero .hero-note.reveal { animation-delay: .5s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } }

/* sfondo colorato mentre la foto si carica */
.news, .program, .split-dark, .trial, .card-img { background-color: var(--night2); }

/* =========================================================
   COOKIE E PAGINE LEGALI
   ========================================================= */
.ck-banner {
  position: fixed; z-index: 80; left: 20px; bottom: 20px; width: min(430px, calc(100% - 40px)); background: var(--night); color: var(--white);
  border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 22px 24px 20px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  transform: translateY(30px); opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .4s, visibility .4s; overflow: hidden;
}
.ck-banner::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.ck-banner.show { transform: none; opacity: 1; visibility: visible; }
.ck-banner h2, .ck-panel h2 { font-size: 22px; font-weight: 900; margin-bottom: 10px; }
.ck-banner p, .ck-panel p { font-size: 13.5px; line-height: 1.55; color: #d9cde6; margin: 0 0 12px; }
.ck-links a { border-bottom: 1px solid var(--hl1); color: var(--white); }
.ck-x { position: absolute; top: 10px; right: 12px; font-size: 24px; line-height: 1; padding: 4px 8px; color: #bfaecf; }
.ck-x:hover { color: var(--white); }
.ck-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
/* Accetta e Rifiuta hanno volutamente lo stesso aspetto */
.ck-btn { font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 12px 18px; border: 1.5px solid var(--white); border-radius: 40px; color: var(--white); transition: background .25s, color .25s; }
.ck-btn:hover { background: var(--white); color: var(--night); }
.ck-link { font-size: 13px; color: #d9cde6; border-bottom: 1px solid #7d6b8c; margin-left: 6px; padding: 0; }
.ck-link:hover { color: var(--white); border-color: var(--hl1); }
.ck-modal { position: fixed; inset: 0; z-index: 90; background: rgba(26,11,46,.75); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.ck-modal.show { opacity: 1; visibility: visible; }
.ck-panel { position: relative; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--night); color: var(--white); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 30px 28px 24px; }
.ck-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12); cursor: default; }
label.ck-row { cursor: pointer; }
.ck-row strong { display: block; font-family: var(--head); font-size: 16px; }
.ck-row div span { display: block; font-size: 13px; color: #bfaecf; margin-top: 4px; line-height: 1.5; }
.ck-sempre { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a796b7; white-space: nowrap; }
.ck-row input { position: absolute; opacity: 0; }
.ck-switch { flex: none; width: 46px; height: 26px; border-radius: 26px; background: #4a3460; position: relative; transition: background .25s; }
.ck-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .25s var(--ease); }
.ck-row input:checked + .ck-switch { background: var(--hl2); }
.ck-row input:checked + .ck-switch::after { transform: translateX(20px); }
.ck-row input:focus-visible + .ck-switch { outline: 2px solid var(--hl1); outline-offset: 3px; }
.ck-panel .ck-btns { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); margin-bottom: 14px; }

.legal-page { background: var(--paper); }
.legal-header { background: var(--night); color: var(--white); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 32px; position: sticky; top: 0; z-index: 10; }
.legal-header .wordmark img { height: 52px; }
.legal-header .btn { padding: 11px 16px; font-size: 11px; white-space: nowrap; flex: none; }
.legal { max-width: 800px; padding: 70px 0 90px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; text-transform: uppercase; letter-spacing: -.04em; margin: 14px 0 12px; }
.legal h2 { font-size: 26px; font-weight: 900; margin: 46px 0 14px; }
.legal h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin: 26px 0 8px; }
.legal p, .legal li { color: #3e2f4b; font-size: 16px; }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a:not(.btn) { border-bottom: 1.5px solid var(--hl2); }
.legal-date { color: var(--muted); font-size: 14px; }
.legal-todo { background: var(--hl1); color: var(--night); padding: 16px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; margin: 18px 0 26px; }
.legal-table { overflow-x: auto; margin: 0 0 1em; }
.legal-table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; background: var(--white); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid #e3d5e6; }
.legal-table th { background: var(--night); color: var(--white); font-family: var(--head); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.legal-table code { font-size: 13px; background: #f3e6ee; padding: 2px 5px; border-radius: 4px; }
.legal-footer { background: var(--cream); padding: 34px 0; font-size: 13px; color: var(--muted); }
.legal-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .intro-grid { gap: 50px; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --header: 66px; --r: 18px; }
  html { scroll-padding-top: 70px; }
  .header { padding: 0 16px; }
  .header.scrolled { height: 60px; }
  .wordmark img { height: 56px; }
  .header.scrolled .wordmark img { height: 48px; }
  .header-cta { padding: 10px 14px; font-size: 11px; letter-spacing: .04em; }
  .overlay-inner { grid-template-columns: 1fr; gap: 30px; padding: calc(var(--topbar) + var(--header) + 16px) 24px 40px; align-items: start; }
  .overlay { clip-path: circle(0% at 32px 60px); }
  .overlay.open { clip-path: circle(200% at 32px 60px); }
  .ov-photo { display: none; }
  .overlay-links a { font-size: clamp(30px, 9vw, 44px); line-height: 1.12; }
  .overlay-links a:hover, .overlay-links a:focus-visible { transform: none; }
  .overlay-links:hover a { color: var(--white); }
  .overlay-side { transform: translateY(20px); }
  .ov-ticker { margin-bottom: 58px; }
  .hero-content { padding-bottom: 120px; }
  .hero-dots { left: 16px; bottom: 76px; }
  .g-badge { right: 16px; bottom: 72px; padding: 9px 14px; font-size: 12px; }
  .g-badge strong { font-size: 16px; }
  .scroll-cue { display: none; }
  .intro { padding: 76px 0 60px; }
  .intro-grid { grid-template-columns: 1fr; gap: 50px; }
  .intro-photos { max-width: 380px; }
  .intro::before { width: 420px; height: 420px; right: -200px; top: -120px; }
  .card { flex-basis: 86vw; height: 72vh; min-height: 470px; }
  .card-head { top: 40px; }
  .card-info { padding: 26px 22px 28px; }
  .card-meta { gap: 16px 24px; }
  .card-meta .btn { margin-left: 0; width: 100%; }
  .car-arrow { display: none; }
  .spaced { padding: 64px 16px 36px; }
  .gallery { padding: 70px 0 50px; }
  .gallery-head { margin-bottom: 30px; }
  .photo { height: min(62vh, 520px); min-height: 340px; }
  .photo:nth-child(even) { margin-top: 24px; }
  .feature { min-height: 0; flex-direction: column; align-items: stretch; }
  .feature-img { position: relative; inset: auto; height: 60vh; }
  .feature-img::after { background: linear-gradient(0deg, var(--plum), transparent 50%); }
  .feature-text { padding: 10px 24px 64px; margin-top: -70px; }
  .stat { padding: 40px 14px; }
  .split { grid-template-columns: 1fr; }
  .split article { min-height: 0; }
  .split-dark { min-height: 80vh !important; }
  .split-inner { padding: 64px 24px; }
  .split-thumb { margin: 0 24px 48px; width: calc(100% - 48px); height: 280px; }
  .slot { padding: 16px 14px; gap: 12px; grid-template-columns: 64px 1fr auto; border-left-width: 6px; }
  .slot time { font-size: 20px; }
  .slot h3 { font-size: 17px; }
  .days { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; margin-inline: -24px; padding: 0 24px 4px; }
  .days::-webkit-scrollbar { display: none; }
  .days button { flex: none; min-width: 66px; padding: 10px 12px; }
  .trial-inner { grid-template-columns: 1fr; gap: 36px; padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer { padding-bottom: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.3fr 1fr; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    background: var(--night); border-top: 1px solid rgba(255,255,255,.1); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { padding: 18px 6px; text-align: center; color: var(--white); font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-bar .mb-main { background: var(--grad2); color: var(--night); }
  .ck-banner { left: 10px; bottom: 68px; width: calc(100% - 20px); padding: 18px 18px 16px; }
  .legal-page .ck-banner { bottom: 10px; }
  .legal-header { padding: 10px 16px; }
  .legal { padding: 44px 0 60px; }
  .ck-panel .ck-btns .ck-btn { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .header-cta { display: none; } /* c'è già la barra in basso */
  .header { grid-template-columns: 34px 1fr 34px; gap: 10px; }
  .wordmark { justify-self: center; }
  .hero-btns { flex-direction: column; align-items: stretch; width: min(340px, 100%); }
  .hero-btns .btn { padding: 16px 20px; font-size: 13px; white-space: normal; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat span { font-size: 11px; letter-spacing: .08em; }
}
@media (max-width: 480px) {
  .topbar { font-size: 11px; padding: 0 34px 0 12px; }
  .big { font-size: 40px; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-sub { margin: 18px 0 24px; }
  .hero-kicker { font-size: 11px; letter-spacing: .2em; }
  .card-head h3 { font-size: 36px; }
  .trial-card { padding: 24px 18px; }
  .trial-way { gap: 12px; }
  .trial-num { width: 30px; height: 30px; font-size: 14px; }
  .trial-way h3 { font-size: 20px; }
  .trial-call { font-size: 13px; padding: 16px 10px; letter-spacing: .03em; }
  .pick button { font-size: 12px; padding: 8px 12px; }
  .person { padding: 14px 14px; gap: 12px; }
  .avatar { width: 46px; height: 46px; font-size: 16px; }
  .person strong { font-size: 18px; }
  .contact-btns .btn { flex: 1 1 auto; }
  .ck-banner { padding: 14px 16px; }
  .ck-banner h2 { font-size: 18px; margin-bottom: 6px; }
  .ck-banner p { font-size: 12.5px; margin-bottom: 8px; }
  .ck-btn { padding: 11px 14px; font-size: 11px; }
  .ck-panel { padding: 24px 18px 18px; }
  .ck-row { flex-wrap: wrap; gap: 8px 14px; }
  .ck-row > div { flex: 1 1 180px; }
  .legal-header { gap: 10px; }
  .legal-header .wordmark img { height: 42px; }
  .legal-header .btn { padding: 10px 11px; font-size: 10px; letter-spacing: .04em; }
  .ip-badge { left: 0; }
}
@media (max-width: 380px) {
  .slot { grid-template-columns: 54px 1fr; }
  .slot .btn { grid-column: 1 / -1; }
}
/* schermi bassi (telefono piccolo o in orizzontale) */
@media (max-height: 640px) and (max-width: 820px) {
  .hero-dots { display: none; }
  .hero-kicker { margin-bottom: 10px; }
  .hero-sub { margin: 12px 0 18px; }
  .hero-content { padding-bottom: 70px; }
}
@media (max-height: 480px) {
  .ck-banner { padding: 10px 44px 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
  .ck-banner h2 { display: none; }
  .ck-banner p { flex: 1 1 320px; margin: 0; font-size: 12px; line-height: 1.4; }
  .ck-banner .ck-links { flex: 0 0 auto; }
  .ck-banner .ck-btns { margin: 0; }
  .ck-btn { padding: 9px 12px; font-size: 11px; }
  .hero { min-height: 470px; }
  .hero-content { justify-content: flex-start; padding-top: calc(var(--topbar) + var(--header) + 14px); padding-bottom: 14px; }
  .hero h1 { font-size: clamp(32px, 6vw, 50px); }
  .hero-sub { margin: 8px 0 12px; font-size: 13px; }
  .hero-btns { flex-direction: row; width: auto; }
  .hero .btn > svg { margin-right: .55em; }
.btn-lg { padding: 12px 22px; font-size: 12px; }
  .hero-note, .g-badge { display: none; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Lezione di prova su computer con schermo basso: la sezione deve stare tutta nello schermo */
@media (min-width: 821px) and (max-height: 860px) {
  .trial-inner { padding: clamp(36px, calc((100vh - 620px) / 2), 90px) 0; gap: 48px; }
  .trial .big { font-size: clamp(34px, 4.2vw, 56px); margin-bottom: 18px; }
  .trial .checks li { padding-top: 5px; padding-bottom: 5px; font-size: 16px; }
  .trial .checks li::before { top: 8px; }
  .trial .checks li::after { top: 14px; }
  .trial-card { padding: 22px 26px; }
  .trial-way { margin-bottom: 10px; }
  .trial-way h3 { font-size: 20px; margin-bottom: 3px; }
  .trial-way p { font-size: 14px; line-height: 1.45; }
  .pick { margin-bottom: 12px; }
  .pick button { padding: 7px 12px; font-size: 12.5px; }
  .trial-call { padding: 13px 18px; }
  .trial-or { margin: 12px 0; }
  .trial-where { margin-top: 12px; }
}
@media (min-width: 821px) and (max-height: 660px) {
  .trial-inner { padding: 20px 0; }
  .trial-card { padding: 16px 22px; }
  .trial-way p { display: none; }
  .trial-or { margin: 8px 0; }
}

/* tablet in verticale: alcune sezioni su due colonne. Deve restare in fondo al file. */
@media (min-width: 600px) and (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .newsletter { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat span { font-size: 11px; letter-spacing: .06em; }
}

/* Portatili con schermo basso: la foto iniziale deve stare tutta nello schermo */
@media (min-width: 821px) and (max-height: 700px) {
  .hero { min-height: 500px; }
  .hero-content { padding-bottom: 40px; }
  .hero-kicker { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(44px, 12.5vh, 100px); }
  .hero-sub { margin: 14px 0 20px; }
  .hero-note { margin-top: 12px; }
  .scroll-cue { display: none; }
}
/* Telefono in orizzontale: niente etichetta sopra il titolo */
@media (max-height: 480px) and (orientation: landscape) {
  .hero-kicker { display: none; }
}

/* Telefoni: meno effetti "vetro smerigliato" (pesano sullo scorrimento), fondi un po' più pieni */
@media (max-width: 820px) {
  .card-tags li, .chips li, .hero-kicker, .plus-btn, .car-arrow { backdrop-filter: none; }
  .card-tags li { background: rgba(26,11,46,.72); }
  .chips li { background: rgba(26,11,46,.4); }
  .hero-kicker { background: rgba(26,11,46,.4); }
}

/* Monitor grandi (da 1700 px): colonne più larghe e testi più grandi, così il sito non resta piccolo al centro */
@media (min-width: 1700px) {
  .wrap, .trial-inner { width: min(1480px, 100% - 120px); }
  .big { font-size: clamp(78px, 4.6vw, 104px); }
  .spaced { font-size: clamp(88px, 5vw, 120px); padding: 120px 16px 60px; }
  .spaced small { font-size: 15px; }
  .hero h1 { font-size: clamp(124px, 7.4vw, 170px); }
  .hero-sub { font-size: 22px; max-width: 700px; }
  .hero .btn-lg { padding: 21px 44px; font-size: 15px; }
  .intro { padding: 160px 0 120px; }
  .intro-grid { gap: 120px; }
  .intro-photos { max-width: 620px; }
  .intro-text, .gallery-head p, .news-lead, .feature-text p, .split-inner > p, .checks li { font-size: 19px; }
  .card { flex-basis: min(80vw, 980px); height: min(82vh, 900px); }
  .card-head h3 { font-size: 76px; }
  .card-info p { font-size: 18px; max-width: 700px; }
  .photo { height: min(70vh, 780px); }
  .feature-text { max-width: 900px; padding: 120px 0 120px 7vw; }
  .program-title { font-size: clamp(160px, 10vw, 240px); }
  .program-content { max-width: 940px; }
  .program-content > p:not(.label) { font-size: 19px; }
  .program-sub { font-size: 30px; }
  .news-content { max-width: 1000px; }
  .chips li { font-size: 16px; padding: 11px 20px; }
  .stat { padding: 80px 24px; }
  .stat strong { font-size: clamp(76px, 4.6vw, 110px); }
  .stat span { font-size: 15px; }
  .split-inner { max-width: 820px; padding: 130px 7vw; }
  .person { padding: 24px 26px; }
  .person strong { font-size: 24px; }
  .person p { font-size: 16px; }
  .avatar { width: 64px; height: 64px; font-size: 21px; }
  .split-thumb { height: 380px; margin: auto 7vw 7vw; width: calc(100% - 14vw); }
  .days button { min-width: 100px; padding: 15px 20px; font-size: 15px; }
  .slot { grid-template-columns: 140px 1fr auto; padding: 24px 30px; }
  .slot time { font-size: 34px; }
  .slot h3 { font-size: 27px; }
  .slot .btn { padding: 14px 26px; font-size: 13px; }
  .small-note { font-size: 15px; }
  .trial-card { padding: 42px; }
  .trial-way h3 { font-size: 28px; }
  .pick button { font-size: 15px; padding: 11px 18px; }
  .footer { padding-top: 120px; }
  .newsletter h2 { font-size: 56px; }
  .newsletter > p, .foot-links { font-size: 18px; }
  .foot-logo img { width: 340px; }
  .map { height: 460px; }
  .header { padding: 0 48px; }
  .wordmark img { height: 84px; }
  .header.scrolled .wordmark img { height: 64px; }
}
