/* ==========================================================================
   PULSE — Dance & Fitness Studio · style.css
   Stack: CSS moderno senza librerie (custom properties, clip-path, color-mix,
   animation-timeline dove supportata). Tutto il movimento è progressive
   enhancement: senza JS o con "riduci animazioni" il sito resta pienamente usabile.

   Indice
   01 Token & reset        07 Marquee             13 Filtri & schede corso
   02 Utility              08 Chi siamo / numeri  14 Orari (tabs)
   03 Transizione pagina   09 Discipline (hscroll) 15 Contatti & form
   04 Cursore & progress   10 Card / perché noi   16 Footer
   05 Header & menu        11 Testimonianze / CTA 17 Reveal & confetti
   06 Bottoni & hero       12 Page hero           18 Reduced motion
   ========================================================================== */

/* Jost (SIL OFL) ospitato sul sito: stessi sottoinsiemi di Google Fonts, nessuna richiesta a Google */
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 01 — TOKEN & RESET ------------------------------------------------------ */
:root {
  color-scheme: dark;
  --bg: #03141b;
  --bg-2: #072530;
  --text: #f2fbfb;
  --muted: #a7c3c7;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .3);
  --orange: #ff6a1a;
  --deep: #0e7490;
  --teal: #22d3c5;
  --sky: #38bdf8;
  --grad: linear-gradient(120deg, var(--teal), var(--orange));
  --grad-warm: linear-gradient(120deg, #ffb02e, var(--orange) 60%, #ff3d3d);
  --radius: 24px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
  --section-y: clamp(5rem, 12vw, 9.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --font-outline: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font: "Jost", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* grana leggera: dà profondità al nero */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: #fff; }

h1, h2, h3 { font-weight: 800; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }

/* 02 — UTILITY ------------------------------------------------------------ */
.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 1000;
  padding: .7rem 1.1rem; border-radius: 999px; background: var(--teal); color: #03141b; font-weight: 700;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: currentColor; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding-block: var(--section-y); position: relative; }
.section__head { display: grid; gap: 1.2rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 60rem; }
.title { font-size: clamp(2.2rem, 6.2vw, 5rem); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); max-width: 38rem; }

/* 03 — TRANSIZIONE TRA PAGINE (sipario a colonne) --------------------------
   Coperto di default solo se JS è attivo; .is-ready lo solleva, .is-leaving lo richiude. */
.curtain { position: fixed; inset: 0; z-index: 2000; display: flex; pointer-events: none; }
.curtain span { flex: 1; background: var(--bg-2); position: relative; }
.curtain span::after {           /* bordo luminoso sul bordo d'attacco */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad);
}
.curtain span:nth-child(even) { background: #06212a; }
html:not(.js) .curtain { display: none; }
.js .curtain span { transform: scaleY(1); transform-origin: top; }
.js.is-ready .curtain span {
  transform: scaleY(0); transform-origin: top;
  transition: transform .8s var(--ease-io) calc(var(--i) * 70ms);
}
.js.is-leaving .curtain { pointer-events: auto; }
.js.is-leaving .curtain span {
  transform: scaleY(1); transform-origin: bottom;
  transition: transform .6s var(--ease-io) calc(var(--i) * 60ms);
}
.js.is-leaving .curtain span::after { top: 0; bottom: auto; }

/* 04 — CURSORE PERSONALIZZATO & BARRA DI PROGRESSO ------------------------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; }
.progress span {
  display: block; height: 100%; background: var(--grad);
  transform: scaleX(var(--p, 0)); transform-origin: left;
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 1500; pointer-events: none; opacity: 0;
  transition: opacity .3s;
}
.cursor.is-on { opacity: 1; }
.cursor__ring {
  display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1.5px solid var(--teal); border-radius: 50%;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #03141b;
  transition: transform .35s var(--ease), background-color .3s, border-color .3s;
}
.cursor.is-hover .cursor__ring { transform: scale(1.5); background: rgba(34, 211, 197, .16); }
.cursor.is-label .cursor__ring { transform: scale(2.1); background: var(--teal); }
.cursor.is-down .cursor__ring { transform: scale(.8); }
.cursor.is-label.is-down .cursor__ring { transform: scale(1.8); }
.cursor__label { opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor__label { opacity: 1; }

/* 05 — HEADER & MENU ------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: transform .5s var(--ease), background-color .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(3, 20, 27, .72); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-101%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }
.logo { display: inline-flex; align-items: center; gap: .75rem; position: relative; z-index: 2; line-height: 1.05; }
.logo__img { width: 2.9rem; height: 2.9rem; border-radius: 50%; background: #fff; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .14), 0 6px 20px rgba(0, 0, 0, .4); transition: transform .7s var(--ease); }
.logo:hover .logo__img { transform: rotate(-14deg) scale(1.08); }
.logo__txt { display: grid; font-weight: 800; letter-spacing: .1em; font-size: 1.05rem; text-transform: uppercase; }
.logo__txt small { white-space: nowrap; font-size: .56rem; font-weight: 600; letter-spacing: .2em; color: var(--muted); }

.menu-btn {
  position: relative; z-index: 2; width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(3, 20, 27, .4); display: grid; place-items: center;
}
.menu-btn__bars, .menu-btn__bars::before {
  display: block; width: 1.2rem; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .4s var(--ease);
}
.menu-btn__bars { position: relative; transform: translateY(-3px); }
.menu-btn__bars::before { content: ""; position: absolute; top: 6px; left: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(-6px) rotate(-90deg); top: 6px; }

.nav {
  position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
  padding: 6rem var(--gutter) 3rem; background: var(--bg-2); overflow-y: auto;
  clip-path: circle(0 at calc(100% - 2.5rem) 2.25rem); visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}
.nav.is-open { clip-path: circle(150% at calc(100% - 2.5rem) 2.25rem); visibility: visible; transition-delay: 0s; }
.nav ul { display: grid; gap: .4rem; }
.nav li { overflow: hidden; }
.nav li a {
  display: inline-block; font-size: clamp(2.2rem, 10vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; text-transform: uppercase;
  transform: translateY(110%); transition: transform .7s var(--ease), color .3s;
}
.nav.is-open li a { transform: none; transition-delay: calc(.25s + var(--i, 0) * 70ms); }
.nav li a[aria-current="page"] { color: var(--orange); }
.nav li a:hover { color: var(--teal); }
@media (max-width: 1179px) and (max-height: 720px) {
  .nav { gap: 1.5rem; padding-top: 5rem; padding-bottom: 2rem; }
  .nav ul { gap: .1rem; }
  .nav li a { font-size: clamp(1.7rem, 8vw, 2.4rem); }
}

@media (min-width: 1180px) {
  .menu-btn { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 2.2rem; padding: 0; background: none;
    clip-path: none; visibility: visible; transition: none; overflow: visible;
  }
  .nav ul { display: flex; gap: 1.2rem; }
  .nav li { overflow: visible; }
  .nav li a {
    position: relative; font-size: .8rem; letter-spacing: .1em; font-weight: 700; transform: none; padding-block: .4rem; white-space: nowrap;
  }
  .nav li a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal);
    transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
  }
  .nav li a:hover::after, .nav li a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .nav li a[aria-current="page"] { color: var(--text); }
}

/* 06 — BOTTONI & HERO ------------------------------------------------------ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1em 1.7em; border-radius: 999px; border: 1.5px solid transparent; isolation: isolate; overflow: hidden;
  font-weight: 800; font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s, transform .35s var(--ease);
}
.btn::before {                   /* riempimento a onda dal basso */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill);
  transform: translateY(102%); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transition: transform .55s var(--ease), border-radius .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; border-radius: 0; }
.btn__arrow { transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(.35em); }
.btn:active { transform: scale(.96); }
.btn--primary { background: var(--orange); color: #03141b; --fill: var(--text); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); --fill: var(--text); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #03141b; border-color: var(--text); }
.btn--sm { padding: .75em 1.3em; font-size: .78rem; }
.ripple {
  position: absolute; border-radius: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; pointer-events: none;
  background: rgba(255, 106, 26, .45); animation: ripple .7s var(--ease) forwards; z-index: -1;
}
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: clip;
  padding: 7rem 0 6rem;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; will-change: transform; }
.blob span { display: block; width: 100%; height: 100%; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.blob--1 { width: 46vw; height: 46vw; left: -12vw; top: -8vw; }
.blob--1 span { background: var(--deep); }
.blob--2 { width: 38vw; height: 38vw; right: -8vw; top: 12vh; }
.blob--2 span { background: var(--orange); animation-delay: -5s; }
.blob--3 { width: 30vw; height: 30vw; left: 30vw; bottom: -14vw; }
.blob--3 span { background: var(--sky); opacity: .28; animation-delay: -9s; }
@keyframes drift { to { transform: translate3d(6vw, 4vw, 0) scale(1.18); } }
/* parallax allo scroll: CSS scroll-driven dove supportato (nessun JS) */
@supports (animation-timeline: scroll()) {
  .hero__bg { animation: heroScroll linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes heroScroll { to { transform: translateY(18vh); opacity: .2; } }
}
.hero__grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.3fr .7fr; } }
.hero__title { font-size: clamp(3.2rem, min(9.6vw, 14.5vh), 9rem); line-height: .9; margin: 1.4rem 0 1.8rem; letter-spacing: -.045em; }
.line { display: block; overflow: hidden; padding-block: .06em .12em; margin-block: -.06em -.12em; }
.word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; }
.js .hero .char, .js .page-hero .char { transform: translateY(115%) rotate(7deg); opacity: 0; }
.js.is-ready .hero .char, .js.is-ready .page-hero .char {
  animation: charIn 1s var(--ease) forwards; animation-delay: calc(.55s + var(--i) * 45ms);
}
@keyframes charIn { to { transform: none; opacity: 1; } }
.char { transition: translate .3s var(--ease), color .3s; }
.char:hover { translate: 0 -.06em; }
.line--outline { -webkit-text-stroke: 2px var(--text); color: transparent; }
.line--outline .char:hover { color: var(--text); }
.line--grad .char {
  color: var(--orange);
  color: color-mix(in oklab, #ffb02e, var(--orange) calc(var(--i) / max(var(--n) - 1, 1) * 100%));
}
.hero__lead { max-width: 34rem; color: var(--muted); font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.js .hero [data-hero-in] { opacity: 0; transform: translateY(26px); }
.js.is-ready .hero [data-hero-in] {
  opacity: 1; transform: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(.9s + var(--d, 0) * 1ms);
}

.hero__visual { position: relative; }
.orb { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin-inline: auto; }
.orb__glow { position: absolute; inset: -14%; background: radial-gradient(circle at 32% 38%, rgba(34, 211, 197, .45), transparent 56%), radial-gradient(circle at 70% 68%, rgba(255, 106, 26, .42), transparent 56%); filter: blur(38px); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.1); opacity: .75; } }
.orb__logo { position: absolute; inset: 13%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .55), 0 0 90px rgba(34, 211, 197, .28); animation: bob 7s ease-in-out infinite; }
.orb__logo img { width: 100%; height: 100%; border-radius: 50%; }
@keyframes bob { 50% { transform: translateY(-2.5%); } }
.orb__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .28); animation: spin 36s linear infinite; }
.orb__ring--2 { inset: -9%; border: 1px solid rgba(34, 211, 197, .4); animation-duration: 54s; animation-direction: reverse; }
.orb__ring i { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 20px var(--orange); }
.orb__ring--2 i { top: auto; bottom: -6px; background: var(--teal); box-shadow: 0 0 20px var(--teal); }
@keyframes spin { to { transform: rotate(360deg); } }
.float-chip {
  position: absolute; padding: .6rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap;
  background: rgba(3, 20, 27, .72); border: 1px solid var(--line-strong); backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
}
.float-chip b { color: var(--teal); }
.float-chip--1 { top: 6%; left: -4%; }
.float-chip--2 { top: 48%; right: -6%; animation-delay: -2s; }
.float-chip--3 { bottom: 6%; left: 4%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-14px); } }

.eq { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 1vw, 10px); height: 5.5rem; pointer-events: none; opacity: .55; }
.eq i { width: clamp(4px, 1vw, 10px); height: 100%; border-radius: 4px 4px 0 0; background: var(--grad); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -110ms); }
.eq i:nth-child(3n) { animation-duration: .8s; }
.eq i:nth-child(4n+1) { animation-duration: 1.5s; }
@keyframes eq { from { transform: scaleY(.12); } to { transform: scaleY(.95); } }
.scroll-cue { position: absolute; left: 50%; bottom: 6.6rem; translate: -50% 0; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); display: none; }
@media (min-width: 900px) and (min-height: 760px) { .scroll-cue { display: block; } }

/* 07 — MARQUEE ------------------------------------------------------------- */
.marquee { padding-block: 1.6rem; border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); display: grid; gap: .4rem; }
.marquee__row { overflow: hidden; }
.marquee__inner { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__row--rev .marquee__inner { animation-direction: reverse; animation-duration: 46s; }
.marquee__group { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; }
.marquee__group span { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; }
.marquee__group i { font-style: normal; color: var(--orange); font-size: 1.6rem; }
.marquee__row--rev span { color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); }
.marquee:hover .marquee__inner { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 08 — CHI SIAMO / NUMERI -------------------------------------------------- */
.about__grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.4fr 1fr; gap: 5rem; align-items: start; } }
.scrub { font-size: clamp(1.6rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
.sw { opacity: .2; transition: opacity .4s; }
.sw.on { opacity: 1; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 1.8rem 1.4rem; transition: background-color .4s; }
.stat:hover { background: var(--bg-2); }
.stat__num { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat__label { display: block; margin-top: .6rem; font-size: .85rem; color: var(--muted); }

/* 09 — DISCIPLINE: SCROLL ORIZZONTALE "PINNED" ----------------------------- */
.hscroll { position: relative; }
.hscroll__sticky { padding-block: var(--section-y) 3rem; }
.hscroll__head { margin-bottom: 2.5rem; }
.hscroll__track { display: flex; gap: 1.4rem; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 1rem; }
.hscroll__track::-webkit-scrollbar { display: none; }
.hscroll__bar { display: none; height: 3px; margin: 2rem var(--gutter) 0; background: var(--line); border-radius: 3px; overflow: hidden; }
.hscroll__bar span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.hscroll.is-pinned .hscroll__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 5.5rem 2rem; }
.hscroll.is-pinned .hscroll__track { width: max-content; overflow: visible; scroll-snap-type: none; will-change: transform; }
.hscroll.is-pinned .hscroll__bar { display: block; }
.hscroll.is-pinned .hscroll__head { margin-bottom: 1.5rem; }

.panel {
  position: relative; isolation: isolate; flex: 0 0 min(78vw, 440px); height: min(60vh, 520px); min-height: 400px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .8rem; padding: 1.8rem; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); scroll-snap-align: start; background: var(--bg-2);
  transition: transform .6s var(--ease), border-color .4s;
}
.panel > :not(.panel__img) { position: relative; }
.panel__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(3, 20, 27, .1) 0%, rgba(3, 20, 27, .6) 48%, rgba(3, 20, 27, .96) 100%),
              linear-gradient(120deg, color-mix(in oklab, var(--c1, var(--teal)) 40%, transparent), transparent 62%);
}
.panel:hover { transform: translateY(-8px); border-color: var(--line-strong); }
.panel:hover .panel__img { transform: scale(1.07); }
.panel__num {
  position: absolute !important; top: .4rem; right: 1.3rem; font-size: clamp(5rem, 11vw, 8rem); font-weight: 900; line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .5); transition: -webkit-text-stroke-color .4s, transform .8s var(--ease);
}
.panel:hover .panel__num { -webkit-text-stroke-color: var(--teal); transform: translateY(6px) scale(1.05); }
.panel h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.panel p { color: #e3f1f2; max-width: 26rem; font-size: .98rem; }
.panel--cta { justify-content: center; align-items: flex-start; background: radial-gradient(90% 90% at 100% 0%, rgba(255, 106, 26, .35), transparent 60%), radial-gradient(90% 90% at 0% 100%, rgba(34, 211, 197, .3), transparent 60%), var(--bg-2); }
.panel--cta::after { display: none; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; position: relative; }
.tags li { padding: .25rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .78rem; font-weight: 600; }
.link-arrow { position: relative; display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); width: fit-content; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 1.7rem; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: scaleX(1); }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(.4em); }

/* 10 — CARD (perché noi) --------------------------------------------------- */
.grid { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; overflow: hidden; padding: 2rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  transition: transform .25s ease-out, border-color .4s; transform-style: preserve-3d; will-change: transform;
}
.card::before {                  /* faro che segue il mouse */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .14), transparent 45%);
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card.is-resting { transition: transform .8s var(--ease), border-color .4s; }
.card__icon {
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: 1.4rem; border-radius: 16px;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 1.1rem; transition: transform .6s var(--ease);
}
.card:hover .card__icon { transform: rotate(-10deg) scale(1.12); }
.card h3 { font-size: 1.35rem; margin-bottom: .6rem; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: .98rem; }

/* 11 — TESTIMONIANZE & CTA ------------------------------------------------- */
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.quote blockquote { font-size: 1.15rem; line-height: 1.5; }
.quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--orange); font-weight: 900; margin-bottom: .6rem; }
.quote figcaption { font-size: .85rem; color: var(--muted); }
.quote figcaption b { display: block; color: var(--text); font-size: .95rem; }

.cta-band { position: relative; overflow: hidden; text-align: center; padding-block: clamp(6rem, 14vw, 11rem); background: radial-gradient(70% 90% at 50% 100%, rgba(14, 116, 144, .45), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.cta-band .title { font-size: clamp(2.6rem, 9vw, 7.5rem); margin: 1.2rem auto 1.6rem; max-width: 14ch; }
.cta-band .lead { margin: 0 auto 2.4rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn--xl { padding: 1.3em 2.6em; font-size: 1rem; }

/* 12 — PAGE HERO (corsi / contatti) --------------------------------------- */
.page-hero { position: relative; padding: 10rem 0 3rem; overflow: clip; }
.page-hero::before { content: ""; position: absolute; width: 50vw; height: 50vw; right: -15vw; top: -20vw; border-radius: 50%; background: var(--deep); filter: blur(110px); opacity: .35; pointer-events: none; }
.page-hero h1 { font-size: clamp(2.5rem, 10vw, 8rem); line-height: .92; margin: 1.2rem 0 1.6rem; }
.crumbs { font-size: .8rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.crumbs a:hover { color: var(--teal); }

/* 13 — FILTRI & SCHEDE CORSO ---------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter {
  padding: .65rem 1.3rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent;
  font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  transition: background-color .35s, color .35s, border-color .35s, transform .3s var(--ease);
}
.filter:hover { border-color: var(--text); transform: translateY(-2px); }
.filter[aria-pressed="true"] { background: var(--teal); color: #03141b; border-color: var(--teal); }
.filters__status { color: var(--muted); font-size: .9rem; margin-bottom: 1.4rem; min-height: 1.5em; }
.course { padding: 0; display: flex; flex-direction: column; }
.course__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.course__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.course__art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(3, 20, 27, .6)); }
.course:hover .course__art img { transform: scale(1.08); }
.course__cat { position: absolute; left: 1.2rem; top: 1.2rem; z-index: 1; padding: .25rem .8rem; border-radius: 999px; background: rgba(3, 20, 27, .55); backdrop-filter: blur(8px); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.course__body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.course__body h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.course__body p { color: var(--muted); font-size: .96rem; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .82rem; color: var(--muted); }
.meta b { color: var(--text); font-weight: 700; }

/* 14 — ORARI (TABS) -------------------------------------------------------- */
.tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; padding: .9rem 1.4rem; background: none; border: 0; font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.tab::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: -1px; height: 3px; border-radius: 3px; background: var(--grad); transform: scaleX(0); transition: transform .45s var(--ease); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabpanel { animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(16px); } }
.slot { display: grid; grid-template-columns: 5.5rem 1fr; gap: .3rem 1.2rem; padding: 1.2rem .5rem; border-bottom: 1px solid var(--line); transition: background-color .35s, padding-left .45s var(--ease); align-items: center; }
.slot:hover { background: rgba(255, 255, 255, .04); padding-left: 1.4rem; }
.slot time { font-weight: 900; font-size: 1.3rem; color: var(--teal); font-variant-numeric: tabular-nums; }
.slot__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.slot__info { grid-column: 2; font-size: .88rem; color: var(--muted); }
@media (min-width: 720px) {
  .slot { grid-template-columns: 7rem 1fr 1fr 8rem; }
  .slot__info { grid-column: auto; }
  .slot__level { text-align: right; }
}
.slot__level { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); grid-column: 2; }
@media (min-width: 720px) { .slot__level { grid-column: auto; } }

/* 15 — CONTATTI & FORM ----------------------------------------------------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; } }
.info-list { display: grid; gap: 1rem; }
.info-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.4rem; }
.info-card__icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: var(--grad); font-weight: 900; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.info-card h3 { font-size: .8rem; letter-spacing: .16em; color: var(--muted); margin-bottom: .3rem; }
.info-card a { transition: color .3s; }
.info-card a:hover { color: var(--teal); }
.map {
  position: relative; min-height: 220px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 106, 26, .35), transparent 45%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 38px 38px, var(--bg-2);
}
.map__pin { width: 1.6rem; height: 1.6rem; margin: 0 auto 1rem; border-radius: 50% 50% 50% 0; background: var(--orange); rotate: -45deg; box-shadow: 0 0 30px var(--orange); animation: pinBounce 2s ease-in-out infinite; }
@keyframes pinBounce { 50% { translate: 0 -10px; } }

.form { padding: clamp(1.5rem, 4vw, 2.6rem); }
.form:hover::before { opacity: 0; }
.form .grid { gap: 1.2rem; }
.field { position: relative; display: grid; gap: .45rem; }
.field label { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1.1rem; border-radius: 14px; border: 1.5px solid var(--line-strong); background: rgba(3, 20, 27, .6);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.4rem) 55%, calc(100% - 1rem) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(34, 211, 197, .16); }
.field [aria-invalid="true"] { border-color: #ff6b81; }
.field__error { color: #ff8da0; font-size: .82rem; min-height: 1.2em; }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--teal); flex: none; }
.form__status { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 14px; border: 1px solid var(--line-strong); display: none; }
.form__status.is-visible { display: block; animation: panelIn .5s var(--ease); }
.form__status.is-ok { border-color: var(--teal); color: var(--teal); }
.form__status.is-error { border-color: #ff6b81; color: #ff8da0; }
.form__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: .5rem; }

/* 16 — FOOTER -------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; padding: 5rem 0 2rem; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 2.5rem; margin-bottom: 4rem; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__grid h2 { font-size: .8rem; letter-spacing: .18em; color: var(--muted); margin-bottom: 1rem; }
.footer__grid li + li { margin-top: .5rem; }
.footer__grid a { transition: color .3s, padding-left .35s var(--ease); }
.footer__grid a:hover { color: var(--teal); padding-left: .3rem; }
.footer__brand { font-size: clamp(2.6rem, 12.4vw, 11.5rem); font-weight: 900; letter-spacing: -.06em; line-height: .8; text-align: center; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px var(--line-strong); user-select: none; margin: 0 0 1.5rem; }
.footer__brand span { display: inline-block; transition: color .4s, -webkit-text-stroke-color .4s, transform .6s var(--ease); }
.footer__brand span:hover { color: var(--orange); -webkit-text-stroke-color: var(--orange); transform: translateY(-.06em); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; font-size: .82rem; color: var(--muted); padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* 17 — REVEAL ALLO SCROLL & CONFETTI --------------------------------------- */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 44px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal="left"] { transform: translate3d(-60px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(60px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.88); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 -10% 0); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w__in { display: inline-block; transform: translateY(108%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.is-in .w__in { transform: none; }

.confetti { position: fixed; z-index: 1600; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; background: var(--c); animation: confetti 1.1s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes confetti {
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; }
}

/* 18 — RIDUCI ANIMAZIONI --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .marquee__inner, .eq i, .orb__sphere::before { animation: none !important; }
  .hero__bg { animation: none !important; }
  .cursor { display: none; }
}

/* ==========================================================================
   19 — COMPONENTI SPECIFICI NEW PLANET
   ========================================================================== */

/* Avviso "Inizio lezioni" */
.notice {
  display: inline-flex; align-items: center; gap: .7rem; padding: .6rem 1.2rem; border-radius: 999px;
  border: 1px solid rgba(34, 211, 197, .5); background: rgba(34, 211, 197, .08); font-size: .88rem; font-weight: 600; line-height: 1.35;
}
.notice::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(34, 211, 197, .6); animation: dotPulse 2s infinite; }
.notice b { color: var(--teal); font-weight: 700; }
@keyframes dotPulse { 70% { box-shadow: 0 0 0 10px rgba(34, 211, 197, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 197, 0); } }
.hero__tagline { font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); font-weight: 600; color: var(--teal); margin-bottom: .6rem; letter-spacing: -.005em; }
.hero__notice { margin-top: 1.8rem; }

/* Menu: link secondari (solo mobile/tablet) */
.nav__extra { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav__extra a:hover { color: var(--teal); }
@media (min-width: 1180px) { .nav__extra { display: none; } }

/* Chi siamo */
.about__photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 45%; transition: transform 1.4s var(--ease); }
.about__photo:hover img { transform: scale(1.05); }
.about__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(3, 20, 27, .55)); pointer-events: none; }
.about__more p { color: var(--muted); margin-top: 1.2rem; max-width: 40rem; }
.about__more { margin-bottom: 2rem; }
.stats--wide { margin-top: clamp(2.5rem, 6vw, 4rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .stats--wide { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .about__grid--photo { grid-template-columns: 1.3fr .9fr; } }

/* Video / mappa: si caricano solo al click (privacy + velocità) */
.embed {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); isolation: isolate;
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background: radial-gradient(60% 80% at 25% 15%, rgba(34, 211, 197, .35), transparent 60%), radial-gradient(60% 80% at 85% 95%, rgba(255, 106, 26, .4), transparent 60%), var(--bg-2);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed__btn { display: grid; justify-items: center; gap: 1rem; background: none; border: 0; color: var(--text); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.embed__play { display: grid; place-items: center; width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--orange); color: #03141b; position: relative; transition: transform .5s var(--ease); }
.embed__play::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange); animation: ping 2.2s var(--ease) infinite; }
.embed__play svg { width: 2rem; height: 2rem; margin-left: .25rem; }
.embed__btn:hover .embed__play { transform: scale(1.12); }
.embed__note { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted); max-width: 28rem; margin-top: -.2rem; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.embed--map { aspect-ratio: auto; min-height: 320px; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 38px 38px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 38px 38px, radial-gradient(circle at 50% 45%, rgba(255, 106, 26, .35), transparent 50%), var(--bg-2); }
.embed--map iframe { min-height: 320px; }

/* Insegnanti */
.teacher { padding: .7rem .7rem 1.6rem; display: flex; flex-direction: column; }
.teacher__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; margin-bottom: 1.3rem; background: var(--bg-2); }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 1.2s var(--ease); }
.teacher:hover .teacher__photo img { transform: scale(1.06); }
.teacher__photo--empty { display: grid; place-items: center; font-size: 4rem; font-weight: 900; color: #03141b; background: var(--grad); }
.teacher__body { padding-inline: .9rem; display: grid; gap: .55rem; align-content: start; }
.teacher__role { width: fit-content; padding: .2rem .8rem; border-radius: 999px; border: 1px solid rgba(34, 211, 197, .5); color: var(--teal); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.teacher h3 { font-size: 1.5rem; letter-spacing: -.01em; }
.teacher p { color: var(--muted); font-size: .95rem; }

/* Orari */
.slot--3 { grid-template-columns: 6.5rem 1fr; }
.slot--3 .slot__level { grid-column: 2; text-align: left; }
@media (min-width: 720px) { .slot--3 { grid-template-columns: 8rem 1fr 13rem; } .slot--3 .slot__level { grid-column: auto; text-align: right; } }
.chip-excl { display: inline-flex; align-items: center; gap: .45rem; margin-left: .7rem; padding: .12rem .65rem .12rem .2rem; border-radius: 999px; background: rgba(255, 106, 26, .16); color: #ffb98c; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; vertical-align: middle; }
.chip-excl img { width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #fff; object-fit: contain; }
.orari-empty { padding: 2rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.mini-orari { display: grid; gap: .6rem; max-width: 46rem; margin-inline: auto; }
.mini-orari .slot { grid-template-columns: 8.5rem 1fr; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem; }
.mini-orari .slot:hover { padding-left: 1.2rem; }
.mini-orari .slot__level { grid-column: auto; text-align: right; }
@media (max-width: 640px) { .mini-orari .slot { grid-template-columns: 1fr; } .mini-orari .slot__level { text-align: left; } }

/* Pagine dei singoli corsi */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; } }
.split__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.split__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.split__img:hover img { transform: scale(1.05); }
.prose p { color: var(--muted); margin-top: 1.1rem; }
.feature-text { max-width: 54rem; margin-inline: auto; text-align: center; font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 600; line-height: 1.42; letter-spacing: -.01em; }
.back-link { display: inline-block; margin-bottom: 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s, transform .4s var(--ease); }
.back-link:hover { color: var(--teal); transform: translateX(-4px); }
.other-courses { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 2rem; }
.other-courses a { padding: .55rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line-strong); font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; transition: background-color .35s, color .35s, border-color .35s, transform .35s var(--ease); }
.other-courses a:hover { background: var(--teal); color: #03141b; border-color: var(--teal); transform: translateY(-3px); }

/* Form (invio nativo verso invia.php) */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin-top: 1rem; font-size: .82rem; color: var(--muted); }
.info-card__icon svg { width: 1.4rem; height: 1.4rem; stroke: #03141b; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-card__icon { color: #03141b; }

/* Popup notizie */
.popup { position: fixed; inset: 0; z-index: 1800; display: grid; place-items: center; padding: 1rem; background: rgba(3, 20, 27, .78); backdrop-filter: blur(6px); animation: fadeIn .4s both; }
@keyframes fadeIn { from { opacity: 0; } }
.popup__box { position: relative; width: min(100%, 520px); max-height: 92vh; overflow: auto; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius); animation: popIn .7s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: translateY(30px) scale(.94); } }
.popup__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.popup__body { padding: 1.4rem 1.6rem 1.8rem; display: grid; gap: .9rem; justify-items: start; }
.popup__body h3 { font-size: 1.6rem; }
.popup__body p { color: var(--muted); }
.popup__close { position: absolute; top: .7rem; right: .7rem; z-index: 1; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(3, 20, 27, .75); font-size: 1.5rem; line-height: 1; }
.popup__close:hover { background: var(--orange); color: #03141b; }
.badge { display: inline-block; padding: .2rem .8rem; border-radius: 999px; background: rgba(34, 211, 197, .14); color: var(--teal); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
html.no-scroll { overflow: hidden; }

/* Footer */
.footer__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer__social a { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 1px solid var(--line-strong); font-size: .72rem; font-weight: 800; letter-spacing: .04em; transition: background-color .35s, color .35s, transform .4s var(--ease); }
.footer__social a:hover { background: var(--teal); color: #03141b; transform: translateY(-4px) rotate(-6deg); padding-left: 0; }
.footer__grid p { color: var(--muted); font-size: .95rem; }
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.visits b { color: var(--text); font-variant-numeric: tabular-nums; }
.credits { flex-basis: 100%; }
.slot--3 time { display: grid; line-height: 1.05; font-size: inherit; }
.slot--3 time b { font-size: 1.35rem; font-weight: 900; color: var(--teal); }
.slot--3 time span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.slot--3 time span::before { content: "\2192\00a0"; }
.mini-orari .slot { grid-template-columns: 8.5rem 1fr auto; }
@media (max-width: 640px) { .mini-orari .slot { grid-template-columns: 1fr; } }
.course { cursor: pointer; }

.tab__short { display: none; }
.page-hero h1.long { font-size: clamp(2.3rem, 7.4vw, 6.2rem); }

/* Jost è un font variabile con contorni sovrapposti: nei testi "solo contorno" si vedrebbero linee interne */
.line--outline, .marquee__row--rev span, .panel__num, .footer__brand { font-family: var(--font-outline); }

/* ==========================================================================
   20 — CORSI "IN ESCLUSIVA" (Balla & Snella, Ballo AntiAge): bordo dorato che gira,
   riflesso che attraversa la scheda, etichetta e logo. Slug definiti in np.js (ESCLUSIVA).
   ========================================================================== */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.is-exclusive { --gold: #ffb02e; box-shadow: 0 0 0 1px rgba(255, 176, 46, .28), 0 24px 60px -24px rgba(255, 106, 26, .6); }
.excl-border {
  position: absolute !important; inset: 0; z-index: 3; padding: 2px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--ang), rgba(255, 176, 46, 0) 0%, rgba(255, 176, 46, 0) 45%, #ffb02e 62%, #fff4c9 74%, #ff6a1a 86%, rgba(255, 106, 26, 0) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: exclSpin 4.5s linear infinite;
}
@keyframes exclSpin { to { --ang: 360deg; } }
.excl-shine { position: absolute !important; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; }
.excl-shine::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 244, 201, .34) 50%, transparent 80%);
  transform: translateX(-130%) skewX(-12deg); animation: exclShine 4.2s ease-in-out infinite;
}
@keyframes exclShine { 0%, 55% { transform: translateX(-130%) skewX(-12deg); } 100% { transform: translateX(330%) skewX(-12deg); } }
.excl-badge {
  position: absolute !important; top: 1.2rem; left: 1.2rem; z-index: 4; display: inline-flex; align-items: center; gap: .45rem;
  padding: .32rem .95rem .32rem .7rem; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, #ffb02e, #ff6a1a); color: #03141b;
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 6px 22px rgba(255, 106, 26, .55);
}
.excl-badge svg { width: .95rem; height: .95rem; fill: currentColor; animation: exclStar 2.6s ease-in-out infinite; }
@keyframes exclStar { 50% { transform: rotate(72deg) scale(1.25); } }
.excl-badge::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%); transform: translateX(-120%); animation: exclBadge 3s ease-in-out infinite; }
@keyframes exclBadge { 0%, 45% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.course .excl-badge { left: auto; right: 1rem; top: 1rem; }
.panel .excl-logo { width: auto; height: 3.6rem; max-width: 11rem; margin-bottom: .2rem; padding: .25rem .8rem; border-radius: 14px; background: #fff; object-fit: contain; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); align-self: flex-start; }
.is-exclusive:hover { box-shadow: 0 0 0 1px rgba(255, 176, 46, .5), 0 30px 70px -22px rgba(255, 106, 26, .8); }
@media (prefers-reduced-motion: reduce) {
  .excl-border { animation: none !important; --ang: 40deg; }
  .excl-shine, .excl-badge svg, .excl-badge::after { display: none; }
}

/* ==========================================================================
   21 — PAGINE INTERNE: galleria, blog/notizie, radio, WhatsApp, crediti, area riservata
   ========================================================================== */
.section--alt { background: var(--bg-2); }

/* Riquadro centrale generico (WhatsApp, radio, crediti) */
.box { max-width: 42rem; margin-inline: auto; padding: 2.6rem 2rem; text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1rem; }
@media (max-width: 480px) { .box { padding: 2rem 1.2rem; } }
.box:hover::before { opacity: 0; }
.box h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.box p { color: var(--muted); }
.box--left { text-align: left; justify-items: start; margin-top: 1.5rem; }
.box--left h3 { font-size: 1.3rem; }
.box__icon { display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border-radius: 50%; }
.box__icon svg { width: 2.2rem; height: 2.2rem; }
.box__icon--wa { background: #25d366; color: #03141b; box-shadow: 0 0 0 10px rgba(37, 211, 102, .14); }
.btn--wa { background: #25d366; color: #03141b; --fill: var(--text); margin-top: .6rem; }
.banner { text-align: center; margin-top: 2.5rem; padding: 1.8rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; justify-items: center; }
.banner p { color: var(--muted); }
.banner:hover::before { opacity: 0; }

/* Avvisi (area riservata) */
.alert { padding: 1rem 1.3rem; margin-bottom: 1.4rem; border-radius: 16px; border: 1px solid; font-weight: 500; }
.alert--error { background: rgba(255, 107, 129, .1); border-color: rgba(255, 107, 129, .6); color: #ffb3c0; }
.alert--ok { background: rgba(34, 211, 197, .1); border-color: rgba(34, 211, 197, .6); color: var(--teal); }
.ar-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem 1.5rem; margin-bottom: 1.2rem; font-size: .9rem; color: var(--muted); }

/* Crediti */
.credit { padding: 1.3rem 0; border-top: 1px solid var(--line); width: 100%; }
.credit:first-child { border-top: 0; padding-top: 0; }
.credit h3 { margin-bottom: .5rem; }
.credit p { color: var(--muted); font-size: .96rem; margin-top: .3rem; }
.credit a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.credit__use { font-style: italic; font-size: .9rem !important; }

/* Blog / notizie */
.post { padding: 0; display: flex; flex-direction: column; cursor: pointer; }
.post__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post__img img.post__img--logo { object-fit: contain; padding: 2.2rem; }
.post:hover .post__img img { transform: scale(1.06); }
.post__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(3, 20, 27, .5)); }
.article-wrap { width: min(100% - var(--gutter) * 2, 46rem); }
.article__img { width: 100%; height: auto; max-height: 34rem; object-fit: contain; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 2rem; }
.article { font-size: 1.08rem; line-height: 1.8; color: #dcecee; }
.article > * + * { margin-top: 1.2rem; }
.article h2, .article h3, .article h4 { text-transform: none; letter-spacing: -.01em; line-height: 1.25; margin-top: 2rem; color: var(--text); }
.article h2 { font-size: 1.7rem; }
.article h3 { font-size: 1.35rem; }
.article a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.article ul, .article ol { padding-left: 1.4rem; }
.article ul { list-style: disc; }
.article li + li { margin-top: .4rem; }
.article img { max-width: 100%; height: auto; border-radius: 16px; }
.article iframe { max-width: 100%; border: 0; border-radius: 16px; }
.article blockquote { padding: .4rem 0 .4rem 1.2rem; border-left: 3px solid var(--orange); color: var(--text); font-style: italic; }

/* Galleria + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.gal-item { position: relative; display: block; aspect-ratio: 1; padding: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); cursor: zoom-in; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; }
.gal-item::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; font-weight: 300; color: #fff; background: rgba(3, 20, 27, .45); opacity: 0; transition: opacity .35s; }
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.08); }
.gal-item:hover::after, .gal-item:focus-visible::after { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 1700; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem; background: rgba(3, 20, 27, .94); backdrop-filter: blur(8px); animation: fadeIn .3s both; }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: .8rem; min-width: 0; }
.lightbox__img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox__cap { color: var(--muted); font-size: .95rem; text-align: center; }
.lightbox__close, .lightbox__nav { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); font-size: 1.8rem; line-height: 1; display: grid; place-items: center; transition: background-color .3s, color .3s; }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--orange); color: #03141b; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; align-content: center; }
  .lightbox__nav { position: absolute; bottom: 1.2rem; }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
}

/* Radio */
.radio__logo { width: 7.4rem; height: 7.4rem; border-radius: 50%; object-fit: cover; background: #fff; border: 4px solid #fff; box-shadow: 0 16px 40px -8px rgba(34, 211, 197, .5), 0 0 0 10px rgba(255, 255, 255, .06); animation: bob 7s ease-in-out infinite; }
.radio__intro { margin-top: -.4rem; }
.radio-player-embed { width: 100%; text-align: left; margin-top: .6rem; }
.rn-eq-wrap { background: #020b10; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; }
.rn-eq { display: block; width: 100%; height: 64px; }
.rn-player { display: flex; align-items: center; gap: 1.1rem; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; }
.rn-play-btn { flex: none; display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border: 0; border-radius: 50%; background: var(--orange); color: #03141b; box-shadow: 0 8px 24px rgba(255, 106, 26, .45); transition: transform .3s var(--ease), box-shadow .3s; }
.rn-play-btn:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(255, 106, 26, .6); }
.rn-play-btn:active { transform: scale(.96); }
.rn-play-btn svg { width: 1.5rem; height: 1.5rem; }
.rn-player-info { flex: 1 1 auto; min-width: 0; }
.rn-status { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rn-status.rn-live { color: #4ade80; }
.rn-nowplaying { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rn-volume { flex: none; display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.rn-volume svg { width: 1.2rem; height: 1.2rem; }
.rn-volume input[type="range"] { width: 90px; accent-color: var(--orange); }
@media (max-width: 480px) { .rn-volume { display: none; } }
.radio-info ul { padding-left: 1.2rem; list-style: disc; color: var(--muted); display: grid; gap: .4rem; }

/* Video ospitato sul server (home) */
.embed--video { padding: 0; background: #000; }
.embed--video video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }

/* 20 — RADIO: pulsante flottante nella home ------------------------------- */
.radio-float {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 250;
  display: inline-flex; align-items: center; gap: .7rem; padding: .45rem 1.1rem .45rem .45rem; border-radius: 999px;
  color: #03141b; background: var(--grad); box-shadow: 0 10px 28px -6px rgba(255, 106, 26, .55), 0 2px 8px rgba(0, 0, 0, .35);
  text-decoration: none; transition: transform .35s var(--ease, ease), box-shadow .35s;
  animation: radioPulse 2.6s ease-out infinite;
}
.radio-float:hover, .radio-float:focus-visible { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 34px -6px rgba(34, 211, 197, .6), 0 2px 8px rgba(0, 0, 0, .35); }
.radio-float__ico { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; color: var(--teal); background: #03141b; flex: none; }
.radio-float__txt { display: grid; line-height: 1.15; }
.radio-float__txt b { font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.radio-float__txt small { font-size: .72rem; font-weight: 600; opacity: .8; }
.radio-float__eq { display: flex; align-items: flex-end; gap: 3px; height: 1.3rem; }
.radio-float__eq i { width: 3px; height: 100%; border-radius: 2px; background: #03141b; transform-origin: bottom; animation: eq 1s ease-in-out infinite alternate; }
.radio-float__eq i:nth-child(2) { animation-duration: .7s; } .radio-float__eq i:nth-child(3) { animation-duration: 1.3s; } .radio-float__eq i:nth-child(4) { animation-duration: .9s; }
@keyframes radioPulse { 0% { box-shadow: 0 10px 28px -6px rgba(255, 106, 26, .55), 0 0 0 0 rgba(34, 211, 197, .55); } 70%, 100% { box-shadow: 0 10px 28px -6px rgba(255, 106, 26, .55), 0 0 0 16px rgba(34, 211, 197, 0); } }
@media (max-width: 640px) {
  .radio-float { padding: .4rem; gap: 0; }
  .radio-float__txt, .radio-float__eq { display: none; }
  .radio-float__ico { width: 3rem; height: 3rem; }
}
@media (prefers-reduced-motion: reduce) { .radio-float, .radio-float__eq i { animation: none !important; } }

/* Consenso cookie (banner + link nel footer) */
.cc { position: fixed; z-index: 1600; left: 1rem; right: 1rem; bottom: 1rem; max-width: 30rem; padding: 1.15rem 1.3rem 1.2rem; border-radius: 20px; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.cc[hidden] { display: none; }
.cc__titolo { font-weight: 800; font-size: 1.05rem; margin-bottom: .35rem; }
.cc__testo { font-size: .9rem; line-height: 1.55; color: var(--muted); }
.cc__testo strong { color: var(--text); }
.cc__testo a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.cc__azioni { display: flex; gap: .7rem; margin-top: .95rem; }
.cc__btn { flex: 1 1 0; padding: .75em 1em; border-radius: 999px; border: 1.5px solid var(--teal); background: transparent; color: var(--text); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background-color .25s, color .25s; }
.cc__btn:hover, .cc__btn:focus-visible { background: var(--teal); color: #03141b; }
.footer__link { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__link:hover { color: var(--text); }
@media (min-width: 700px) { .cc { right: auto; left: 1.5rem; bottom: 1.5rem; } }
@media print { .cc { display: none !important; } }
