/* ============================================================
   VARIABILI DI COLORE E STILE
   Modifica i valori qui sotto per cambiare i colori in tutto il sito
   ============================================================ */
:root {
  --nero: #0d0d0d;
  --nero-2: #1a1918;
  --nero-3: #242220;
  --bianco: #f3f1eb;
  --bianco-soft: #dedad0;
  --oro: #c9a24b;
  --oro-scuro: #8c6d2f;
  --grigio: #9a958a;

  --font-display: 'Anton', 'Archivo Black', sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-logo: 'Bison Bold', 'Anton', 'Archivo Black', sans-serif;

  --max-width: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ============================================================
   FONT DEL LOGO — "Bison Bold"
   Non è disponibile su Google Fonts: va scaricato e caricato manualmente.
   1. Scarica il file del font (es. da https://www.dafont.com/bison-2.font
      per uso personale, oppure acquista la licenza commerciale su
      https://ellenlufftype.com/bison/ se il sito è per un'attività
      commerciale — la versione gratuita è "solo per uso personale").
   2. Crea una cartella "fonts" accanto a index.html.
   3. Rinomina il file scaricato in "bison-bold.ttf" e mettilo in quella cartella.
   4. Togli i simboli /* e */ qui sotto per attivare il font.
   Finché non lo fai, il sito userà automaticamente "Anton" come alternativa
   (già simile per impatto visivo, il logo funziona comunque).
   ============================================================ */
/*
@font-face {
  font-family: 'Bison Bold';
  src: url('fonts/bison-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
*/

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bianco);
  color: var(--nero);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5em 0;
}

p { margin: 0 0 1em 0; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; position: relative; }
/* Grana leggerissima sulle sezioni scure, generata via CSS (nessuna immagine da caricare):
   dà un po' di "materia" al nero piatto, senza compromettere la leggibilità del testo. */
.section-dark {
  background-color: var(--nero);
  background-image: url("noise-dark.png");
  color: var(--bianco);
}
.section-light {
  background-color: var(--bianco);
  background-image: url("noise.png");
  color: var(--nero);
}

/* ============================================================
   TAGLIO DIAGONALE TRA LE SEZIONI (stile "corda del ring")
   Si applica aggiungendo la classe "section-slant" a una sezione,
   in aggiunta a "section" e "section-dark"/"section-light".
   Funziona "disegnando sopra" il fondo della sezione precedente:
   non serve modificare la sezione sopra, solo quella che segue.
   ============================================================ */
.section-slant {
  position: relative;
  z-index: 1;
  clip-path: polygon(0 0, 100% 40px, 100% 100%, 0 100%);
  margin-top: -40px;
  padding-top: 136px; /* 96px normali + 40px per il taglio diagonale */
}

.eyebrow {
  color: var(--oro);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 40px;
}

/* ============================================================
   CORNICE FOTO — sistema unico per tutti i punti del sito dove va
   inserita un'immagine (galleria, istruttori, chi siamo, shop...).

   Come funziona, in breve:
   - Finché il div è vuoto (contiene solo la scritta di riferimento
     nello <span class="ph-label">), mostra lo sfondo a righe e il
     bordo tratteggiato dorato, per farti capire dove va la foto.
   - Appena ci metti dentro un tag <img>, la cornice si sistema da
     sola: bordo pieno sottile, righe nascoste, foto a piena misura.
   Non devi toccare il CSS: basta seguire le istruzioni nei commenti
   dentro index.html per ogni singola foto.
   ============================================================ */
.photo-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--oro);
  background: repeating-linear-gradient(
    45deg,
    var(--nero-3),
    var(--nero-3) 10px,
    #2c2a26 10px,
    #2c2a26 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5; /* proporzione di default: verticale */
  transition: border-color 0.2s ease;
}
.photo-frame.square { aspect-ratio: 1 / 1; }
.photo-frame.wide { aspect-ratio: 16 / 9; }
.photo-frame.tall { aspect-ratio: 3 / 4; }

.photo-frame .ph-label {
  color: var(--oro);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
  line-height: 1.4;
}

.photo-frame img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

/* Appena c'è una foto dentro, la cornice diventa "definitiva":
   bordo pieno invece che tratteggiato, niente più righe/scritta */
.photo-frame:has(img) {
  border-style: solid;
  border-color: var(--oro-scuro);
  background: none;
}
.photo-frame:has(img) .ph-label { display: none; }
.photo-frame:has(img):hover img { transform: scale(1.04); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--oro-scuro); }

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  position: relative;
}
/* Il logo è il file SVG dorato su una riga (già con effetto graffiato incluso),
   quindi qui basta regolare l'altezza: si adatta da sola mantenendo le proporzioni. */
.logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.logo-img-small { height: 26px; }

/* Riflesso di luce che attraversa le lettere del logo (al caricamento e al passaggio
   del mouse): una fascia chiara ritagliata sulla forma esatta del logo, come nel video dell'hero */
.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: url("thunder boxe riga oro.svg") center / contain no-repeat;
  mask: url("thunder boxe riga oro.svg") center / contain no-repeat;
  background: linear-gradient(75deg, rgba(255, 250, 230, 0) 44%, rgba(255, 250, 230, 0.9) 50%, rgba(255, 250, 230, 0) 56%);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
.logo.shine::after,
.logo:hover::after { animation: logo-shine 1.1s var(--ease) both; }
@keyframes logo-shine {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}

/* Barra di avanzamento dello scroll: la sua larghezza la imposta script.js */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--oro-scuro), var(--oro), #f1cf72);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  color: var(--bianco);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { border-color: var(--oro); color: var(--oro); }
/* Voce del menu "attiva": si illumina da sola in base a quale sezione stai guardando
   (gestito in script.js) */
.main-nav a.active { border-color: var(--oro); color: var(--oro); }
.main-nav a.nav-cta {
  border: 1px solid var(--oro);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.main-nav a.nav-cta:hover { background: var(--oro); color: var(--nero); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--bianco);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--nero);
  background-image: url("noise-dark.png");
}

.hero-media {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
  overflow: hidden;
  background: repeating-linear-gradient(
    45deg, var(--nero-2), var(--nero-2) 12px, #232019 12px, #232019 24px
  );
}
.hero-media img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.4) contrast(1.05);
  opacity: 0.55;
}
.hero-media .ph-label {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--oro);
  font-weight: 600;
  border: 1px dashed var(--oro-scuro);
  text-align: center;
  padding: 24px;
}
.hero-media:has(img) .ph-label,
.hero-media:has(video) .ph-label { display: none; }

/* Video di sfondo (creato con HyperFrames): riempie tutto l'hero.
   Su desktop il logo nel video sta a destra, quindi se lo schermo è più stretto
   del video si taglia di più il lato sinistro, per non perdere il logo. */
.hero-video {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 75% 50%;
  background: var(--nero);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-video.is-ready { opacity: 1; }
@media (max-aspect-ratio: 1/1) {
  .hero-video { object-position: 50% 0%; }
}

.hero::after {
  /* Sfumatura scura per leggere bene il testo: forte in basso dove c'è il titolo,
     quasi assente in alto per lasciare vedere il logo e i fulmini del video */
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(0deg, rgba(13,13,13,0.96) 6%, rgba(13,13,13,0.55) 32%, rgba(13,13,13,0) 58%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 24px 24px 100px 24px;
  color: var(--bianco);
}

.hero-kicker {
  color: var(--oro);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 480px;
  font-size: 1.05rem;
  color: var(--bianco-soft);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

.hero-line { display: inline-block; }
.hero-accent {
  font-style: normal;
  color: var(--oro);
}

/* ---- Entrata dell'hero al caricamento della pagina ----
   Le righe del titolo arrivano una dopo l'altra uscendo dalla sfocatura,
   poi sottotitolo e bottoni. Parte quando script.js aggiunge "is-loaded" al tag <html>. */
.js-anim .hero-kicker,
.js-anim .hero-line,
.js-anim .hero-sub,
.js-anim .hero-actions,
.js-anim .hero-scroll {
  opacity: 0;
}
.is-loaded .hero-kicker { animation: hero-rise 0.7s var(--ease) 0.15s both; }
/* "backwards": finita l'entrata la riga torna allo stile normale, senza filtri attivi che appesantiscono lo scorrimento */
.is-loaded .hero-line { opacity: 1; animation: hero-blur-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.is-loaded .hero-line:nth-of-type(1) { animation-delay: 0.3s; }
.is-loaded .hero-line:nth-of-type(2) { animation-delay: 0.42s; }
.is-loaded .hero-line:nth-of-type(3) { animation-delay: 0.54s; }
.is-loaded .hero-sub { animation: hero-rise 0.8s var(--ease) 0.85s both; }
.is-loaded .hero-actions { animation: hero-rise 0.8s var(--ease) 1s both; }
/* "VITA" si accende come colpita da un fulmine appena il titolo è arrivato */
.is-loaded .hero-accent {
  animation:
    hero-strike 0.9s ease-out 1.15s both,
    hero-strike-loop 6s ease-out 7s infinite;
}
/* Dopo il primo lampo, "VITA" si riaccende da sola ogni 6 secondi (il lampo occupa solo l'inizio del giro) */
@keyframes hero-strike-loop {
  0% { text-shadow: none; color: var(--oro); }
  2% { text-shadow: 0 0 18px rgba(255, 236, 180, 0.95), 0 0 42px rgba(224, 177, 61, 0.8); color: #fff3c4; }
  4% { text-shadow: none; color: var(--oro); }
  6% { text-shadow: 0 0 14px rgba(255, 236, 180, 0.8), 0 0 30px rgba(224, 177, 61, 0.6); color: #fff3c4; }
  15%, 100% { text-shadow: 0 0 0 rgba(224, 177, 61, 0); color: var(--oro); }
}

@keyframes hero-blur-in {
  from { opacity: 0; filter: blur(10px); transform: translateY(0.18em); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-strike {
  0% { text-shadow: none; color: var(--oro); }
  8% { text-shadow: 0 0 18px rgba(255, 236, 180, 0.95), 0 0 42px rgba(224, 177, 61, 0.8); color: #fff3c4; }
  16% { text-shadow: none; color: var(--oro); }
  24% { text-shadow: 0 0 14px rgba(255, 236, 180, 0.8), 0 0 30px rgba(224, 177, 61, 0.6); color: #fff3c4; }
  100% { text-shadow: 0 0 0 rgba(224, 177, 61, 0); color: var(--oro); }
}

/* Freccia "scorri giù" in fondo all'hero */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(243, 241, 235, 0.45);
  border-radius: 14px;
  transition: border-color 0.2s ease;
}
.hero-scroll:hover { border-color: var(--oro); }
.hero-scroll::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--oro);
  animation: hero-scroll-dot 1.8s var(--ease) infinite;
}
.is-loaded .hero-scroll { animation: hero-rise 0.8s var(--ease) 1.4s both; }
@keyframes hero-scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   COMPARSA ALLO SCROLL per titoli ed etichette delle sezioni
   (le card hanno già la loro, più sotto). script.js aggiunge
   "is-visible" quando l'elemento entra nello schermo.
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
/* Trattino dorato che si "disegna" davanti all'etichetta */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 2px;
  background: var(--oro);
  transition: width 0.6s var(--ease), margin-right 0.6s var(--ease);
}
.eyebrow.is-visible::before { width: 28px; margin-right: 12px; }

.js-anim .reveal-title {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), transform 0.8s var(--ease);
}
.js-anim .reveal-title.is-visible { opacity: 1; filter: blur(0); transform: none; }

.js-anim .reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js-anim .reveal-up.is-visible { opacity: 1; transform: none; }

/* ============ BOTTONI ============ */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(0,0,0,0.35); }

.btn-gold {
  background: var(--oro);
  color: var(--nero);
}
.btn-gold:hover { background: #d9b565; }

.btn-outline {
  background: transparent;
  color: var(--bianco);
  border-color: var(--bianco);
}
.btn-outline:hover { background: var(--bianco); color: var(--nero); }

.btn-outline-small {
  background: transparent;
  border: 1px solid var(--oro);
  color: var(--oro);
  font-size: 0.85rem;
  padding: 10px 18px;
  width: 100%;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.btn-outline-small:hover { background: var(--oro); color: var(--nero); transform: translateY(-1px); }

/* ============ CHI SIAMO ============ */
.chi-siamo-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.chi-siamo-stats {
  display: flex;
  gap: 56px;
  margin-top: 32px;
  border-top: 1px solid var(--oro-scuro);
  padding-top: 24px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  color: var(--oro);
}
.stat-label {
  color: var(--bianco-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ DISCIPLINE / ROUND ============ */
.rounds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}
.round-card {
  padding: 32px 28px 104px; /* spazio in basso riservato al numero in filigrana */
  position: relative;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(13,13,13,0.04);
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease), opacity 0.5s var(--ease);
}
.round-card.is-visible { opacity: 1; transform: translateY(0); }
.round-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(13,13,13,0.18);
}
/* Sfondo bianco + angolo tagliato: separati dalla card vera e propria (sopra),
   così il taglio non "mangia" anche l'ombra quando ci passi sopra col mouse. */
.round-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: var(--bianco);
  border: 1px solid rgba(13,13,13,0.08);
  border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  transition: border-color 0.4s ease;
  z-index: 0;
}
.round-card:hover::after { border-color: var(--oro); }
/* Numero gigante "in filigrana" dietro al testo, in stile Bison come il logo.
   Prende il numero dall'attributo data-round="01" messo sul tag <article> in index.html. */
.round-card::before {
  content: attr(data-round);
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  /* Stessa forma con l'angolo tagliato dello sfondo (::after), così il numero
     resta dentro i confini della card invece di uscirne */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  font-family: var(--font-logo);
  font-size: 7.5rem;
  line-height: 0.75;
  padding: 0 4px 8px 0;
  color: rgba(140, 109, 47, 0.24);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.round-number, .round-card h3, .round-card p {
  position: relative;
  z-index: 2;
}
.round-number {
  display: block;
  font-family: var(--font-display);
  color: var(--oro-scuro);
  font-size: 0.95rem;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.round-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.round-card p { color: #4a463e; font-size: 0.95rem; margin: 0; }

/* ============ ISTRUTTORI ============ */
.coaches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
}
/* Schede istruttori: rettangoli scuri con bordo dorato che si sollevano al passaggio del mouse.
   Quando arriveranno le foto, il blocco .photo-frame si mette in cima alla scheda (vedi index.html). */
.coach-card {
  position: relative;
  padding: 36px 30px 32px;
  background: var(--nero-2);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), border-color 0.3s ease, box-shadow 0.4s var(--ease);
}
/* Riga dorata in alto che si allunga al passaggio del mouse */
.coach-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 56px;
  height: 3px;
  background: var(--oro);
  transition: width 0.45s var(--ease);
}
.coach-card.is-visible { opacity: 1; transform: translateY(0); }
.coach-card:hover {
  transform: translateY(-8px);
  border-color: var(--oro);
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(201, 162, 75, 0.25);
}
.coach-card:hover::before { width: 100%; }
.coach-card .photo-frame { margin: -36px -30px 24px; border: 0; border-radius: 0; }
.coach-tag {
  display: block;
  font-family: var(--font-display);
  color: var(--oro-scuro);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.coach-card h3 { font-size: 1.6rem; margin-bottom: 10px; }
.coach-role { color: var(--oro); font-weight: 700; font-size: 0.9rem; line-height: 1.45; margin-bottom: 14px; }
.coach-bio { color: var(--bianco-soft); font-size: 0.95rem; margin: 0; }

/* ============ ORARI ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--nero); border-radius: var(--radius-sm); }
table.schedule {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.95rem;
}
table.schedule th, table.schedule td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--bianco-soft);
}
table.schedule thead th {
  background: var(--nero);
  color: var(--oro);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
}
table.schedule td.course-name {
  text-align: left;
  font-weight: 700;
}
table.schedule tbody tr:nth-child(even) { background: rgba(0,0,0,0.03); }
.table-note { margin-top: 16px; font-size: 0.85rem; color: #5f5a50; }

/* ============ SHOP ============ */
.shop-intro { max-width: 640px; color: var(--bianco-soft); }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
  margin-bottom: 56px;
}
.product-card {
  background: var(--nero-2);
  border: 1px solid var(--nero-3);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.5s var(--ease), border-color 0.4s ease, opacity 0.5s var(--ease);
}
.product-card.is-visible { opacity: 1; transform: translateY(0); }
.product-card:hover { transform: translateY(-4px); border-color: var(--oro-scuro); }
.product-card .photo-frame { aspect-ratio: 1 / 1; }
.product-card h3 { font-size: 1.1rem; margin: 4px 0 0 0; }
.product-price { color: var(--oro); font-weight: 700; margin: 0; }
.product-controls {
  display: flex;
  gap: 12px;
}
.product-controls label {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: var(--grigio);
  gap: 4px;
  flex: 1;
}
.product-controls select,
.product-controls input,
.request-form input {
  background: var(--nero);
  border: 1px solid var(--nero-3);
  color: var(--bianco);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}
.product-controls select:focus,
.product-controls input:focus,
.request-form input:focus {
  outline: none;
  border-color: var(--oro);
}

.request-summary {
  background: var(--nero-2);
  border: 1px solid var(--oro-scuro);
  border-radius: var(--radius);
  padding: 32px;
}
.request-summary h3 { font-size: 1.3rem; }
.request-list { list-style: none; padding: 0; margin: 0 0 16px 0; }
.request-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--nero-3);
  font-size: 0.95rem;
}
.request-list li.request-empty { color: var(--grigio); border-bottom: none; }
.request-item-remove {
  background: none;
  border: none;
  color: var(--oro);
  cursor: pointer;
  font-weight: 700;
  margin-left: 12px;
}
.request-total {
  font-size: 1.1rem;
  margin-bottom: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--oro-scuro);
}
.request-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 420px;
}
.request-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--grigio);
}
.request-note { font-size: 0.8rem; color: var(--grigio); margin-top: 4px; }

/* ============ GALLERIA ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-grid .photo-frame {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.gallery-grid .photo-frame.is-visible { opacity: 1; transform: translateY(0); }

/* ============ CONTATTI ============ */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Contenitore della mappa Google Maps: altezza fissa perché l'iframe
   dentro usa height:100%, quindi gli serve un'altezza di riferimento */
.map-embed {
  height: 320px;
  border: 1px solid var(--nero-2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.contatti-list { list-style: none; padding: 0; margin: 0; }
.contatti-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--nero-2);
}
.contatti-label {
  color: var(--oro);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.contatti-list a:hover { color: var(--oro); }

/* Pulsante Instagram: sostituisce il vecchio elenco "Social" testuale */
.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 12px 22px;
  border: 1px solid var(--oro);
  border-radius: var(--radius-sm);
  color: var(--oro);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.btn-instagram:hover { background: var(--oro); color: var(--nero); transform: translateY(-1px); }
.btn-instagram svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ FOOTER ============ */
.site-footer {
  background-color: var(--nero);
  background-image: url("noise-dark.png");
  color: var(--grigio);
  padding: 32px 0;
  border-top: 1px solid var(--nero-3);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--nero);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--oro-scuro);
    /* Comparsa morbida invece che di scatto: non si può animare "display",
       quindi usiamo opacità + una piccola discesa dall'alto */
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }

  .chi-siamo-grid,
  .contatti-grid {
    grid-template-columns: 1fr;
  }
  .chi-siamo-stats { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 860px) {
  .logo-img { height: 26px; }
  .hero-content { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  .main-nav { transition: none !important; }
  .round-card, .coach-card, .product-card, .gallery-grid .photo-frame,
  .reveal-title, .reveal-up,
  .hero-kicker, .hero-line, .hero-sub, .hero-actions, .hero-scroll, .hero-accent {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
  .hero-scroll::before, .logo::after { animation: none !important; }
  .eyebrow::before { transition: none; }
  /* Niente video in movimento: resta l'immagine fissa (poster) */
  .hero-video { opacity: 1; transition: none; }
}

/* ============================================================
   INTERRUTTORE SHOP
   Quando <body> ha class="no-shop" (vedi commento in cima a index.html),
   la sezione Shop non sparisce del tutto: resta al suo posto (mantiene
   l'alternanza chiaro/scuro tra le sezioni) ma mostra un piccolo avviso
   "in manutenzione" al posto dei prodotti, più compatta.
   ============================================================ */
.shop-maintenance { display: none; } /* nascosto quando lo shop è attivo */

body.no-shop #shop .shop-active { display: none; }
body.no-shop #shop .shop-maintenance {
  display: block;
  text-align: center;
  padding: 24px 0 8px;
}
body.no-shop #shop { padding-bottom: 56px; } /* sezione più compatta in manutenzione */
.shop-maintenance-text {
  color: var(--bianco-soft);
  max-width: 440px;
  margin: 0 auto;
}

/* ============================================================
   ANIMAZIONI EXTRA
   ============================================================ */

/* Foto delle cornici: punto di inquadratura regolabile con style="--pos: ..." nell'HTML */
.photo-frame img { object-position: var(--pos, 50% 50%); }

/* ---- Galleria: le foto si aprono a tutto schermo (vedi script.js) ---- */
.gallery-grid .photo-frame:has(img) { cursor: zoom-in; }
.gallery-grid .photo-frame::after {
  /* Velo dorato con lente che compare al passaggio del mouse */
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f1eb' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 44px no-repeat,
    linear-gradient(0deg, rgba(13, 13, 13, 0.55), rgba(140, 109, 47, 0.25));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery-grid .photo-frame:hover::after { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 72px;
  background: rgba(8, 8, 8, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--oro-scuro);
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}
.lightbox.open .lightbox-img { transform: scale(1); opacity: 1; }
.lightbox-img.cambio { transform: scale(0.97); opacity: 0; transition-duration: 0.15s; }
.lightbox-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.6);
  background: rgba(13, 13, 13, 0.6);
  color: var(--bianco);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.lightbox-btn:hover { background: var(--oro); color: var(--nero); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; margin-top: -24px; }
.lightbox-next { right: 12px; top: 50%; margin-top: -24px; }
.lightbox-prev:hover { transform: translateX(-3px); }
.lightbox-next:hover { transform: translateX(3px); }
.lightbox-count {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--grigio);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
@media (max-width: 860px) {
  .lightbox { padding: 64px 12px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 8px; margin-top: 0; }
}

/* ---- Foto "Chi siamo": scorre più lenta della pagina (effetto profondità) ---- */
.photo-frame.parallax img {
  transform: translateY(var(--parallax, 0px)) scale(1.14);
  transition: none;
}
.photo-frame.parallax:hover img { transform: translateY(var(--parallax, 0px)) scale(1.14); }

/* ---- Bottoni dorati: lampo di luce che attraversa il bottone al passaggio del mouse ---- */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 250, 230, 0.75) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn-gold:hover::after { left: 130%; transition: left 0.6s var(--ease); }

/* ---- Istruttori: alone dorato che segue il mouse dentro la scheda ---- */
.coach-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(201, 162, 75, 0.16), rgba(201, 162, 75, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.coach-card:hover::after { opacity: 1; }
.coach-card > * { position: relative; z-index: 1; }

/* ---- Orari: le righe entrano una alla volta e il giorno di oggi si illumina ---- */
.js-anim table.schedule tbody tr {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 150ms);
}
.js-anim .table-wrap.is-visible table.schedule tbody tr { opacity: 1; transform: none; }
table.schedule .oggi { background: rgba(201, 162, 75, 0.14); }
table.schedule thead th.oggi {
  background: var(--oro);
  color: var(--nero);
  position: relative;
}
table.schedule thead th.oggi::after {
  content: "Oggi";
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
table.schedule tbody tr:hover td { background: rgba(201, 162, 75, 0.1); }

@media (prefers-reduced-motion: reduce) {
  .photo-frame.parallax img { transform: scale(1.14) !important; }
  .btn-gold::after { display: none; }
  .js-anim table.schedule tbody tr { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lightbox, .lightbox-img { transition: none !important; }
}

/* ============ FAQ ============ */
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.faq-intro { position: sticky; top: 120px; }
.faq-intro .section-title { margin-bottom: 20px; }
.faq-lead { color: var(--bianco-soft); max-width: 340px; margin-bottom: 12px; }
.faq-intro .btn { margin-top: 12px; }

.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--nero-2);
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, box-shadow 0.4s var(--ease);
  /* permette alla risposta di aprirsi con un'animazione morbida (browser recenti) */
  interpolate-size: allow-keywords;
}
.faq-item:hover { border-color: rgba(201, 162, 75, 0.7); }
.faq-item[open] {
  border-color: var(--oro);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.8);
}
.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 64px 22px 26px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover,
.faq-item[open] summary { color: var(--oro); }
/* Il "+" dorato che ruota e diventa "×" quando la risposta è aperta */
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  background: var(--oro);
  transition: transform 0.35s var(--ease);
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::before { transform: rotate(45deg); }
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; border-radius: var(--radius); }

.faq-item::details-content {
  height: 0;
  overflow: hidden;
  transition: height 0.4s var(--ease), content-visibility 0.4s allow-discrete;
}
.faq-item[open]::details-content { height: auto; }
.faq-answer { padding: 0 26px 24px; }
.faq-answer p { color: var(--bianco-soft); margin: 0; line-height: 1.65; }
.faq-answer a { color: var(--oro); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item::details-content, .faq-item summary::before, .faq-item summary::after { transition: none; }
}

/* ============ CONTATTI su fondo chiaro ============ */
.section-light .contatti-list li { border-bottom-color: rgba(13, 13, 13, 0.14); }
.section-light .contatti-list a:hover { color: var(--oro-scuro); }
.section-light .contatti-label { color: var(--oro-scuro); }
.section-light .btn-instagram { color: var(--nero); border-color: var(--oro-scuro); }
.section-light .btn-instagram:hover { background: var(--nero); color: var(--oro); border-color: var(--nero); }

/* ============ CHI SIAMO: titolo, paragrafi e citazione ============ */
.chi-siamo-text > p { color: var(--bianco-soft); }
.chi-siamo-quote {
  margin-top: 28px !important;
  padding-left: 20px;
  border-left: 3px solid var(--oro);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--oro) !important;
}

/* ============ GALLERIA: locandina intera e 2 colonne su telefono ============ */
.photo-frame.contain:has(img) { background: #0d0d0d; }
.photo-frame.contain img { object-fit: contain; }
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ============ ORARI su telefono: una scheda per corso ============ */
@media (max-width: 640px) {
  .table-wrap { border: 0; overflow: visible; }
  table.schedule { min-width: 0; }
  table.schedule thead { display: none; }
  table.schedule, table.schedule tbody, table.schedule tr, table.schedule td { display: block; }
  table.schedule tbody tr {
    margin-bottom: 14px;
    background: var(--bianco) !important;
    border: 1px solid rgba(13, 13, 13, 0.12);
    border-radius: var(--radius);
    overflow: hidden;
  }
  table.schedule td {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(13, 13, 13, 0.07);
    text-align: right;
  }
  table.schedule td::before {
    content: attr(data-giorno);
    font-family: var(--font-display);
    color: var(--oro-scuro);
    letter-spacing: 0.03em;
  }
  table.schedule td.vuoto { display: none; }
  table.schedule td:last-child { border-bottom: 0; }
  table.schedule td.course-name {
    display: block;
    background: var(--nero);
    color: var(--oro);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    padding: 14px 16px;
  }
  table.schedule td.course-name::before { content: none; }
  table.schedule td.oggi { background: rgba(201, 162, 75, 0.16); }
  table.schedule td.oggi::before { content: attr(data-giorno) " · oggi"; }
}

/* ============ MAPPA: segnaposto finché non c'è il consenso ============ */
.map-embed { background: var(--nero-2); }
.map-embed iframe { display: block; }
.map-consent {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: var(--bianco-soft);
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(201, 162, 75, 0.12), rgba(0, 0, 0, 0) 70%),
    var(--nero-2);
}
.map-consent svg { width: 34px; height: 34px; fill: none; stroke: var(--oro); stroke-width: 1.8; }
.map-consent p { margin: 0; max-width: 300px; font-size: 0.9rem; }
.map-consent a { color: var(--oro); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }

/* ============ FOOTER ============ */
.site-footer { padding: 56px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { margin: 16px 0; max-width: 300px; font-size: 0.9rem; }
.footer-title {
  font-size: 1.05rem;
  color: var(--bianco);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.footer-list { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.footer-list li { margin-bottom: 8px; }
.footer-list a, .footer-legal a { transition: color 0.2s ease; }
.footer-list a:hover, .footer-legal a:hover, .footer-link-btn:hover { color: var(--oro); }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--oro-scuro);
  border-radius: 50%;
  color: var(--oro);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.footer-social:hover { background: var(--oro); color: var(--nero); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid var(--nero-3);
  font-size: 0.8rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; }
.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}
.footer-list-cols { columns: 2; column-gap: 48px; }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ BANNER COOKIE ============ */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: rgba(20, 19, 18, 0.97);
  color: var(--bianco-soft);
  border: 1px solid var(--oro-scuro);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.85);
  animation: cookie-in 0.5s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.cookie-text p { margin: 0; font-size: 0.88rem; line-height: 1.5; }
.cookie-text a { color: var(--oro); text-decoration: underline; text-underline-offset: 3px; }
.cookie-title {
  font-family: var(--font-display);
  color: var(--bianco);
  font-size: 1.15rem !important;
  letter-spacing: 0.02em;
  margin-bottom: 4px !important;
}
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
/* Accetta e Rifiuta hanno la stessa misura e la stessa evidenza, come chiede il Garante privacy */
.cookie-btn {
  min-width: 112px;
  padding: 12px 20px;
  text-align: center;
  background: transparent;
  color: var(--bianco);
  border-color: var(--oro);
}
.cookie-btn:hover { background: var(--oro); color: var(--nero); }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
  .cookie-actions .cookie-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}

/* ============ PAGINA PRIVACY ============ */
.legal-back { color: var(--bianco); font-weight: 600; font-size: 0.95rem; transition: color 0.2s ease; }
.legal-back:hover { color: var(--oro); }
.legal-main { padding-top: 140px; }
.legal-inner { max-width: 780px; }
.legal-updated { color: #5f5a50; font-size: 0.9rem; margin-top: -24px; margin-bottom: 40px; }
.legal-inner h2 { font-size: 1.6rem; margin-top: 40px; }
.legal-inner p, .legal-inner li { color: #33302a; }
.legal-inner ul { padding-left: 20px; margin: 0 0 1em; }
.legal-inner li { margin-bottom: 8px; }
.legal-inner a:not(.btn) { color: var(--oro-scuro); text-decoration: underline; text-underline-offset: 3px; }
.legal-back-bottom { margin-top: 48px; }
.legal-page .site-footer { padding-top: 0; }

/* ============ PREZZI (dentro la sezione Orari) ============ */
.prices { margin-top: 88px; scroll-margin-top: 90px; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.price-card {
  background: var(--nero);
  color: var(--bianco);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.price-card:hover {
  border-color: var(--oro);
  box-shadow: 0 22px 40px -22px rgba(13, 13, 13, 0.6);
}
.price-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(201, 162, 75, 0.3);
  background: linear-gradient(180deg, rgba(201, 162, 75, 0.14), rgba(201, 162, 75, 0));
}
.price-head h3 { margin: 0; font-size: 1.9rem; color: var(--oro); }
.price-age {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bianco-soft);
}
.price-list { list-style: none; margin: 0; padding: 6px 26px 10px; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(243, 241, 235, 0.08);
}
.price-list li:last-child { border-bottom: 0; }
.price-name { font-weight: 700; font-size: 1.05rem; }
.price-name small {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--grigio);
}
.price-value {
  flex-shrink: 0;
  text-align: right;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--bianco);
}
.price-per-month {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--oro);
}
.price-notes {
  margin-top: 24px;
  padding: 18px 22px;
  border-left: 3px solid var(--oro);
  background: rgba(201, 162, 75, 0.1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.price-notes p { margin: 0 0 6px; color: #33302a; }
.price-notes p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .prices { margin-top: 64px; }
  .price-head, .price-list { padding-left: 18px; padding-right: 18px; }
  .price-value { font-size: 1.7rem; }
}

/* ============ MENU: con 9 voci si passa al menu a tendina già sotto i 1080px ============ */
.main-nav a { white-space: nowrap; }
@media (max-width: 1080px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--nero);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--oro-scuro);
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-toggle { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav { transition: none !important; }
}

/* ============ CONTO ALLA ROVESCIA (fascia dorata sotto l'hero) ============ */
.countdown {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: linear-gradient(100deg, #b8913f 0%, var(--oro) 35%, #e0bc63 55%, var(--oro) 75%, #b8913f 100%);
  color: var(--nero);
  padding: 28px 0;
}
.countdown[hidden] { display: none; }
/* Fascia di luce che attraversa la banda ogni pochi secondi */
.countdown::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 22%;
  background: linear-gradient(100deg, rgba(255, 250, 230, 0) 0%, rgba(255, 250, 230, 0.55) 50%, rgba(255, 250, 230, 0) 100%);
  transform: translateX(-140%) skewX(-18deg);
  animation: countdown-sheen 5s var(--ease) infinite 1.5s;
  pointer-events: none;
  will-change: transform;
}
/* si muove con transform (non con "left"): il telefono la gestisce senza ricalcolare la pagina */
@keyframes countdown-sheen {
  0% { transform: translateX(-140%) skewX(-18deg); }
  45%, 100% { transform: translateX(600%) skewX(-18deg); }
}
.countdown-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.countdown-kicker {
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.countdown-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.countdown-place { margin: 4px 0 0; font-size: 0.9rem; font-weight: 600; }
.countdown-timer { display: flex; gap: 10px; }
.countdown-timer[hidden] { display: none; }
.cd-unit {
  min-width: 76px;
  padding: 10px 8px 8px;
  text-align: center;
  background: var(--nero);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.cd-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--oro);
  font-variant-numeric: tabular-nums;
}
.cd-num.tick { animation: cd-tick 0.45s var(--ease); }
@keyframes cd-tick {
  from { transform: translateY(-45%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cd-label {
  display: block;
  margin-top: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bianco-soft);
}
.countdown-live {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
}
.countdown-btn {
  background: var(--nero);
  color: var(--oro);
  border-color: var(--nero);
}
.countdown-btn:hover { background: #000; color: #f1cf72; }
@media (max-width: 860px) {
  .countdown-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .countdown-timer { width: 100%; }
  .cd-unit { flex: 1; min-width: 0; }
  .countdown-btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .countdown::after { display: none; }
  .cd-num.tick { animation: none; }
}

/* ============ BANDA SCORREVOLE (fondo di "Chi siamo") ============ */
.marquee-wrap {
  position: relative;
  margin-top: 72px;
  height: 150px;
  overflow: hidden;
}
.marquee {
  position: absolute;
  left: -5%;
  width: 110%;
  top: 50%;
  margin-top: -32px;
  height: 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.marquee-front {
  background: linear-gradient(90deg, #b8913f, var(--oro) 30%, #e0bc63 50%, var(--oro) 70%, #b8913f);
  color: var(--nero);
  transform: rotate(-2.5deg);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8);
  z-index: 2;
}
.marquee-back {
  background: var(--nero-3);
  border-top: 1px solid rgba(201, 162, 75, 0.35);
  border-bottom: 1px solid rgba(201, 162, 75, 0.35);
  color: transparent;
  -webkit-text-stroke: 1px var(--oro);
  transform: rotate(2.5deg);
  z-index: 1;
}
.marquee-track { display: flex; width: max-content; animation: marquee-sinistra 38s linear infinite; }
.marquee-back .marquee-track { animation-name: marquee-destra; animation-duration: 46s; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group span {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 26px;
}
.marquee-bolt { width: 22px; height: 22px; flex-shrink: 0; fill: currentColor; }
.marquee-front .marquee-bolt { fill: var(--nero); }
.marquee-back .marquee-bolt { fill: var(--oro); }
@keyframes marquee-sinistra { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-destra { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 640px) {
  .marquee-wrap { margin-top: 56px; height: 120px; }
  .marquee { height: 46px; }
  .marquee-back { margin-top: -50px; transform: rotate(4deg); }
  .marquee-front { margin-top: -6px; transform: rotate(-4deg); }
  .marquee-group span { font-size: 1.6rem; padding: 0 18px; }
  .marquee-bolt { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============ SCHEDE IN 3D (classe aggiunta da script.js solo con il mouse) ============ */
.js-anim .tilt-card.is-visible:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  transition: transform 0.15s ease-out, box-shadow 0.4s var(--ease), border-color 0.3s ease;
  transition-delay: 0s;
}
/* Riflesso di luce sulle schede scure (istruttori e prezzi) che segue il mouse */
.price-card.tilt-card { position: relative; }
.price-card.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 0%), rgba(201, 162, 75, 0.14), rgba(201, 162, 75, 0) 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.price-card.tilt-card:hover::after { opacity: 1; }
.price-card.tilt-card > * { position: relative; z-index: 1; }

/* ============ HERO IN PROFONDITÀ (valori impostati da script.js mentre si scorre) ============ */
/* Lo spostamento lo imposta script.js direttamente sugli elementi, solo su computer con il mouse */
@media (hover: hover) and (pointer: fine) {
  .hero-media, .hero-content { will-change: transform; }
}


/* ============ TITOLI CHE SI SVELANO DAL BASSO (classi aggiunte da script.js) ============ */
.reveal-line {
  display: block;
  overflow: hidden;
  /* un po' di spazio sopra e sotto, così gli accenti (È) non vengono tagliati */
  padding: 0.14em 0 0.06em;
  margin: -0.14em 0 -0.06em;
}
.reveal-line-inner {
  display: block;
  transform: translateY(115%);
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--l, 0) * 120ms);
}
.reveal-lines.is-visible .reveal-line-inner { transform: none; }
/* Riga dorata che si disegna sotto il titolo */
.reveal-lines::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 18px;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s var(--ease) 0.4s;
}
.reveal-lines.is-visible::after { transform: scaleX(1); }
.shop-maintenance .reveal-lines::after { margin-left: auto; margin-right: auto; transform-origin: center; }

/* ============ BOTTONE "TORNA SU" ============ */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.88);
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s, background 0.2s ease;
}
.to-top.visibile { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #000; }
.to-top:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.to-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* il riempimento parte dall'alto */
}
.to-top-ring circle { fill: none; stroke-width: 2.5; }
.to-top-track { stroke: rgba(201, 162, 75, 0.25); }
.to-top-progress {
  stroke: var(--oro);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.to-top-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  fill: none;
  stroke: var(--oro);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.to-top:hover .to-top-arrow { transform: translateY(-3px); }
@media (max-width: 640px) {
  .to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  /* mentre il banner dei cookie è aperto il bottone si nasconde, per non coprirlo */
  body:has(.cookie-banner:not([hidden])) .to-top { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .to-top, .to-top-arrow { transition: none; }
}

/* ============ BOTTONE WHATSAPP FISSO ============ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 121;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--oro);
  color: var(--nero);
  box-shadow: 0 12px 26px -8px rgba(0, 0, 0, 0.65);
  transition: transform 0.25s var(--ease), background 0.2s ease;
}
.wa-icon svg { width: 28px; height: 28px; fill: currentColor; }
/* Onda dorata che pulsa intorno al bottone ogni pochi secondi */
.wa-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--oro);
  animation: wa-pulse 3.2s var(--ease) infinite 2s;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  45%, 100% { transform: scale(1.6); opacity: 0; }
}
/* Etichetta che compare al passaggio del mouse */
.wa-label {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: rgba(13, 13, 13, 0.92);
  border: 1px solid var(--oro-scuro);
  color: var(--bianco);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.wa-float:hover .wa-icon { transform: scale(1.07); background: #d9b565; }
.wa-float:hover .wa-label,
.wa-float:focus-visible .wa-label { opacity: 1; transform: none; }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-icon { outline: 2px solid var(--bianco); outline-offset: 3px; }

/* Il bottone "torna su" si sposta sopra quello di WhatsApp */
.to-top { bottom: 92px; right: 24px; }

@media (max-width: 640px) {
  .wa-float { right: 14px; bottom: 14px; }
  .wa-icon { width: 52px; height: 52px; }
  .wa-label { display: none; }
  .to-top { bottom: 78px; right: 17px; }
  /* finché il banner dei cookie è aperto si nasconde anche WhatsApp, per non coprirlo */
  body:has(.cookie-banner:not([hidden])) .wa-float { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-icon::before { animation: none; display: none; }
  .wa-icon, .wa-label { transition: none; }
}

/* Footer: spazio libero a destra per i bottoni fissi (WhatsApp e "torna su"),
   così non coprono i link sui portatili e i tablet */
@media (min-width: 641px) and (max-width: 1400px) {
  .site-footer .section-inner { padding-right: 104px; }
}

/* ============ TITOLO DELL'HERO: tre righe su computer, due su telefono ============ */
.hero-title-mobile { display: none; }
@media (max-width: 640px) {
  .hero-title-desktop { display: none; }
  .hero-title-mobile { display: block; }
}
@media (max-width: 640px) {
  /* i due bottoni affiancati su una riga, invece che uno sotto l'altro */
  .hero-actions { gap: 10px; flex-wrap: nowrap; margin-top: 18px; }
  .hero-actions .btn { padding: 13px 16px; font-size: 0.9rem; white-space: nowrap; }
  .hero-title { margin-bottom: 16px; }
}
/* telefoni con schermo basso (iPhone SE, Android piccoli): blocco ancora più compatto */
@media (max-width: 640px) and (max-height: 760px) {
  .hero-content { padding-bottom: 28px; }
  .hero-scroll { display: none; }
  .hero-title { font-size: 2.5rem; margin-bottom: 12px; }
  .hero-sub { font-size: 0.95rem; }
  .hero-kicker { margin-bottom: 4px; }
}
/* Sul telefono il bottone WhatsApp compare solo dopo l'hero (nell'hero c'è già "Prenota una prova") */
@media (max-width: 640px) {
  .wa-float { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s; }
  body:not(.oltre-hero) .wa-float { opacity: 0; visibility: hidden; transform: translateY(16px); }
}
