/* =====================================================================
   AREA51 STUDIO FITNESS & BODYBUILDING
   Foglio di stile — mobile-first
   ---------------------------------------------------------------------
   Indice
   01. Font (ospitati in locale)
   02. Variabili: colori del logo, font, misure
   03. Base e utilità
   04. Pulsanti (glow, onda, pressione 3D)
   05. Pre-loader "hangar"
   06. Header e menu
   07. Hero
   08. Nastro "area riservata"
   09. Approccio
   10. Servizi
   11. Recensioni
   12. Iscrizione / modulo
   13. Footer e mappa
   14. Barra azioni mobile e WhatsApp flottante
   15. Scroll reveal
   16. Keyframes
   17. Accessibilità: movimento ridotto
   ===================================================================== */

/* 01. FONT ------------------------------------------------------------ */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("assets/fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Stencil";
  src: url("assets/fonts/big-shoulders-stencil-display-latin-800-normal.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* 02. VARIABILI --------------------------------------------------------- */
:root {
  /* Colori presi dal logo */
  --hangar: #1B191A;       /* antracite dello sfondo del logo */
  --bunker: #131213;       /* nero profondo per le sezioni alterne */
  --plate: #232022;        /* superfici (card, modulo) */
  --steel: #2E2B2D;        /* bordi e linee */
  --steel-2: #403C3E;      /* bordi dei campi */
  --alien: #CCCDC8;        /* argento del volto alieno: testo corrente */
  --white: #FFFFFF;        /* titoli, come le lettere del logo */
  --logo-green: #4AAF63;   /* verde del logo: struttura, icone, contorni */
  --signal: #5CFF8F;       /* verde neon: azioni, hover, glow */
  --signal-deep: #1F7A3F;  /* ombra 3D dei pulsanti */
  --ink: #0D1A11;          /* testo sopra il verde neon */
  --muted: #8F8D89;

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-stencil: "Big Shoulders Stencil", "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 72px;
  --chamfer: 30px;
  --ease-out: cubic-bezier(.2, .75, .2, 1);

  /* Contorno verde dei titoli, come le lettere "AREA 51" del logo */
  --rim: 2px 0 0 var(--logo-green), -2px 0 0 var(--logo-green), 0 2px 0 var(--logo-green), 0 -2px 0 var(--logo-green),
         1.4px 1.4px 0 var(--logo-green), -1.4px -1.4px 0 var(--logo-green), 1.4px -1.4px 0 var(--logo-green), -1.4px 1.4px 0 var(--logo-green);
}

/* 03. BASE -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
html.is-loading, html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--hangar);
  color: var(--alien);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
main { overflow-x: clip; } /* nessuno scorrimento orizzontale su smartphone */
p { margin: 0 0 1.1em; }
a { color: var(--signal); }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }

::selection { background: var(--signal); color: var(--ink); }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 2000;
  padding: 10px 16px; background: var(--signal); color: var(--ink);
  font-weight: 700; text-decoration: none; border-radius: 4px;
}
.skip-link:focus { top: 16px; }

.section {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0;
}

.h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.7rem, 8.4vw, 4.9rem);
  line-height: .92;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .45em;
  text-wrap: balance;
}

/* Riquadro con angoli tagliati (motivo ricorrente "hangar") */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--plate);
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.9) contrast(1.12) brightness(.82);
  transition: filter .7s var(--ease-out), transform 1s var(--ease-out);
}
.frame::after { /* velatura verde che sparisce al passaggio del mouse */
  content: "";
  position: absolute; inset: 0;
  background: var(--logo-green);
  mix-blend-mode: color;
  opacity: .45;
  pointer-events: none;
  transition: opacity .7s var(--ease-out);
}
.frame:hover img { filter: grayscale(.15) contrast(1.05) brightness(.95); transform: scale(1.035); }
.frame:hover::after { opacity: .08; }

.frame__tag {
  position: absolute;
  left: 0; bottom: calc(var(--chamfer) + 16px);
  z-index: 2;
  padding: .3em .85em .25em;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--f-stencil);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Immagine di riserva se una foto non si carica */
img.is-fallback {
  object-fit: contain !important;
  padding: 16%;
  background: var(--hangar);
  filter: none !important;
}

/* Stelle */
.stars { display: inline-flex; gap: .18em; color: var(--signal); line-height: 0; }
.stars svg { width: 1em; height: 1em; fill: currentColor; }
.stars--xs { font-size: 16px; }
.stars--sm { font-size: 18px; }
.stars--lg { font-size: 24px; gap: .2em; }

/* 04. PULSANTI ------------------------------------------------------------ */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 54px;
  padding: 0 1.7em;
  border: 0;
  border-radius: 4px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s var(--ease-out), box-shadow .3s var(--ease-out), color .35s var(--ease-out), background-color .3s;
}
.btn > span { position: relative; z-index: 2; }
.btn--sm { min-height: 46px; font-size: 1.1rem; padding: 0 1.3em; }
.btn--block { width: 100%; }

/* Primario: verde neon, effetto pressione 3D + bagliore + lama di luce */
.btn--primary {
  background: var(--signal);
  color: var(--ink);
  margin-bottom: 6px; /* spazio per lo spessore 3D */
  box-shadow: 0 6px 0 var(--signal-deep), 0 0 0 rgba(92, 255, 143, 0);
}
.btn--primary::before {
  content: "";
  position: absolute; top: 0; bottom: 0;
  left: -70%;
  width: 45%;
  z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: skewX(-22deg);
  transition: left .7s var(--ease-out);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 0 var(--signal-deep), 0 0 26px 2px rgba(92, 255, 143, .55), 0 0 70px rgba(92, 255, 143, .28);
}
.btn--primary:hover::before { left: 130%; }
.btn--primary:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 var(--signal-deep), 0 0 18px rgba(92, 255, 143, .45);
  transition-duration: .06s;
}

/* Secondario: contorno neon che si riempie con un'onda di colore */
.btn--wave {
  background: transparent;
  color: var(--signal);
  box-shadow: inset 0 0 0 2px var(--signal);
}
.btn--wave::after {
  content: "";
  position: absolute;
  left: 50%; top: 105%;
  width: 280%;
  aspect-ratio: 1;
  margin-left: -140%;
  z-index: 1;
  background: var(--signal);
  border-radius: 42%;
  animation: wave-spin 4.5s linear infinite paused;
  transition: top .75s var(--ease-out);
}
.btn--wave:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--signal), 0 0 28px rgba(92, 255, 143, .35); }
.btn--wave:hover::after { top: -45px; animation-play-state: running; }
.btn--wave:active { transform: scale(.97); }

/* 05. PRE-LOADER ------------------------------------------------------------ */
.loader { display: none; }
.js .loader {
  display: block;
  position: fixed; inset: 0;
  z-index: 1000;
  animation: loader-failsafe 0s linear 6s forwards; /* sicurezza: sparisce comunque dopo 6s */
}
.js.loader-seen .loader { display: none; }

.loader__door {
  position: absolute; top: 0; bottom: 0;
  width: 50.5%;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    repeating-linear-gradient(180deg, transparent 0 79px, rgba(255, 255, 255, .035) 79px 80px),
    var(--bunker);
  transition: transform 1.05s cubic-bezier(.77, 0, .18, 1) .12s;
}
.loader__door--left { left: 0; justify-content: flex-end; }
.loader__door--right { right: 0; justify-content: flex-start; }
.loader__door::after { /* bordo a strisce di sicurezza */
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 18px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 12px, var(--bunker) 12px 24px);
}
.loader__door--left::after { right: 0; }
.loader__door--right::after { left: 0; }
.loader__door span {
  padding: 0 40px;
  font-family: var(--f-stencil);
  font-weight: 800;
  font-size: clamp(4.5rem, 21vw, 15rem);
  line-height: 1;
  color: rgba(255, 255, 255, .045);
  user-select: none;
}

.loader__core {
  position: absolute; inset: 0; z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  transition: opacity .3s ease, transform .3s ease;
}

.rig { width: min(320px, 78vw); height: auto; overflow: visible; animation: rig-lift .6s ease-in-out 1.15s; }
.rig__bar { fill: #8E908D; }
.rig__plate {
  fill: var(--bunker);
  stroke: var(--logo-green);
  stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
}
.rig__side--left .rig__plate { animation: plate-left .5s cubic-bezier(.2, .9, .25, 1.25) forwards; }
.rig__side--right .rig__plate { animation: plate-right .5s cubic-bezier(.2, .9, .25, 1.25) forwards; }
.rig__plate--1 { animation-delay: .15s !important; }
.rig__plate--2 { animation-delay: .4s !important; }
.rig__plate--3 { animation-delay: .65s !important; }
.rig__head { fill: var(--alien); stroke: #0F0E0F; stroke-width: 4; }
.rig__eye { fill: #141314; animation: eye-on .35s ease-out 1.05s forwards; }
.rig__glint { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; }
.rig__mouth { stroke: #141314; stroke-width: 3.5; stroke-linecap: round; }

.loader__status {
  margin: 0;
  font-family: var(--f-stencil);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
}
.loader__pct { color: var(--signal); }
.loader__track {
  width: min(260px, 66vw);
  height: 6px;
  border-radius: 3px;
  background: var(--steel);
  overflow: hidden;
}
.loader__fill {
  display: block; height: 100%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  animation: fill-bar 1.45s cubic-bezier(.6, .1, .3, 1) .1s forwards;
}

.loader.is-open .loader__core { opacity: 0; transform: scale(.96); }
.loader.is-open .loader__door--left { transform: translateX(-101%); }
.loader.is-open .loader__door--right { transform: translateX(101%); }

/* 06. HEADER --------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
}
.header::before { /* sfondo sfocato quando si scorre (sul pseudo-elemento per non rompere il menu mobile) */
  content: "";
  position: absolute; inset: 0;
  background: rgba(27, 25, 26, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  opacity: 0;
  transition: opacity .35s ease;
}
.header.is-scrolled::before { opacity: 1; }

.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand__mark { width: auto; height: 40px; transition: transform .5s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 1px 0 0 var(--logo-green), -1px 0 0 var(--logo-green), 0 1px 0 var(--logo-green), 0 -1px 0 var(--logo-green);
}

/* Pulsante menu: due mini bilancieri che diventano una X */
.menu-toggle {
  position: relative; z-index: 2;
  display: grid; place-content: center; gap: 8px;
  width: 48px; height: 48px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--steel-2);
  border-radius: 4px;
  cursor: pointer;
}
.menu-toggle__bar {
  position: relative;
  display: block;
  width: 24px; height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .35s var(--ease-out);
}
.menu-toggle__bar::before, .menu-toggle__bar::after {
  content: "";
  position: absolute; top: -3px;
  width: 3px; height: 9px;
  background: var(--signal);
  border-radius: 1px;
}
.menu-toggle__bar::before { left: 0; }
.menu-toggle__bar::after { right: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child { transform: translateY(-5.5px) rotate(-45deg); }

/* Menu mobile a schermo intero */
.nav {
  position: fixed; inset: 0;
  z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 36px;
  padding: calc(var(--header-h) + 24px) 24px 48px;
  background: var(--hangar);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity .3s ease, transform .35s var(--ease-out), visibility 0s linear .35s;
}
.nav::after { /* striscia di sicurezza in fondo al menu */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 12px, var(--hangar) 12px 24px);
}
.nav.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s ease, transform .35s var(--ease-out), visibility 0s;
}
.nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav__link {
  position: relative;
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.7rem, 12vw, 3.8rem);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color .25s ease;
}
.nav__link:hover, .nav__link.is-current { color: var(--signal); }
.nav__cta { align-self: flex-start; }

/* 07. HERO ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 32px) 0 clamp(200px, 34vw, 230px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--bunker); }
.hero__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: grayscale(1) contrast(1.15) brightness(.62);
}
.hero__media::before { /* duotone verde */
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: var(--logo-green);
  mix-blend-mode: color;
  opacity: .5;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(27, 25, 26, .6) 0%, rgba(27, 25, 26, .3) 30%, rgba(27, 25, 26, .9) 70%, var(--hangar) 100%);
}
.hero__beam { /* raggio traente dell'UFO */
  position: absolute;
  z-index: 3;
  top: -4%; left: 62%;
  width: 78vw; max-width: 780px;
  height: 92%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(92, 255, 143, .55), rgba(92, 255, 143, .1) 60%, transparent 88%);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  opacity: .32;
  filter: blur(3px);
  animation: beam 7s ease-in-out infinite;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 4; }

.hero__plate {
  display: inline-block;
  margin-bottom: 22px;
  padding: .35em .75em .3em;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--f-stencil);
  font-weight: 800;
  font-size: clamp(.92rem, 2.6vw, 1.1rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3.3rem, 19vw, 9rem);
  line-height: .86;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: var(--rim);
  margin-bottom: .32em;
}
.hero__line { display: block; }
.hero__place {
  display: block;
  margin-top: .3em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 7vw, 3.7rem);
  line-height: 1;
  letter-spacing: .01em;
  color: var(--white);
  text-shadow: none;
  text-wrap: balance;
}

/* Colline del Chianti disegnate in fondo all'hero */
.hero__hills {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  width: 100%;
  height: clamp(200px, 24vw, 330px);
  pointer-events: none;
}

.hero__lead {
  max-width: 34em;
  font-size: clamp(1.06rem, 2.4vw, 1.2rem);
  color: var(--alien);
  margin-bottom: 30px;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__ctas .btn { flex: 1 1 200px; }

.hero__rating {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 20px;
  color: var(--alien);
  font-size: .97rem;
  text-decoration: none;
}
.hero__rating strong { color: var(--white); }
.hero__rating > span:last-child { border-bottom: 1px solid transparent; transition: border-color .25s ease, color .25s ease; }
.hero__rating:hover > span:last-child { color: var(--white); border-color: var(--signal); }

/* 08. NASTRO -------------------------------------------------------------- */
.tape-wrap {
  position: relative; z-index: 5;
  margin-top: -30px;
  padding: 22px 0;
  overflow: hidden;
}
.tape {
  position: relative;
  width: 112%;
  margin-left: -6%;
  transform: rotate(-2.2deg);
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}
.tape::before, .tape::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--bunker) 0 10px, var(--signal) 10px 20px);
}
.tape::before { top: 0; }
.tape::after { bottom: 0; }
.tape__track {
  display: flex; align-items: center; gap: 1.3rem;
  width: max-content;
  padding: 1rem 0 .9rem;
  font-family: var(--f-stencil);
  font-weight: 800;
  font-size: clamp(1.15rem, 3.4vw, 1.65rem);
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
}
.tape__track b { font-size: .8em; }

/* 10. SERVIZI: menu a tendina --------------------------------------------- */
.services { background: var(--hangar); }
.acc { margin-top: 26px; border-top: 1px solid var(--steel); }
.acc__item { border-bottom: 1px solid var(--steel); }
.acc__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
}
.acc__head::-webkit-details-marker { display: none; }
.acc__head:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
.acc__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 4.6vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
  transition: color .25s ease;
}
.acc__icon {
  flex: none;
  width: 36px; height: 36px;
  padding: 8px;
  border-radius: 50%;
  color: var(--signal);
  box-shadow: inset 0 0 0 2px var(--signal);
  transition: transform .35s var(--ease-out), background-color .25s ease, color .25s ease;
}
.acc__head:hover .acc__name, .acc__item[open] .acc__name { color: var(--signal); }
.acc__item[open] .acc__icon { transform: rotate(45deg); background: var(--signal); color: var(--ink); }
.acc__body { display: grid; gap: 16px; padding: 0 0 26px; animation: acc-in .4s var(--ease-out); }
.acc__body p { margin: 0; max-width: 40em; font-size: 1.05rem; }

/* 11. RECENSIONI (compatte) ------------------------------------------------ */
.section.reviews { padding: 56px 0 64px; }
.reviews {
  background:
    radial-gradient(ellipse 50% 70% at 12% 50%, rgba(74, 175, 99, .12), transparent 70%),
    var(--bunker);
}
.reviews__layout { display: grid; gap: 28px; }
.score { position: relative; isolation: isolate; display: flex; align-items: center; gap: 20px; }
.radar {
  position: absolute; left: 72px; top: 50%;
  z-index: -1;
  width: 230px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(74, 175, 99, .2) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(180deg, transparent calc(50% - .5px), rgba(74, 175, 99, .2) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    radial-gradient(circle, transparent 0 23.5%, rgba(74, 175, 99, .3) 23.5% 24%, transparent 24% 47%, rgba(74, 175, 99, .25) 47% 47.5%, transparent 47.5% 69%, rgba(74, 175, 99, .3) 69% 70%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 71%);
  mask-image: radial-gradient(circle, #000 55%, transparent 71%);
}
.radar__sweep {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg 285deg, rgba(92, 255, 143, .38) 360deg);
  animation: sweep 5s linear infinite;
}
.radar__blip {
  position: absolute; top: 27%; left: 64%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 14px var(--signal);
  opacity: 0;
  animation: blip 5s linear infinite;
}
.score__value {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(5rem, 22vw, 7.2rem);
  line-height: .8;
  color: var(--white);
  text-shadow: var(--rim), 0 0 50px rgba(92, 255, 143, .25);
  font-variant-numeric: tabular-nums;
}
.score__side { display: grid; gap: 6px; }
.score .stars svg { filter: drop-shadow(0 0 8px rgba(92, 255, 143, .55)); }
.js .score .stars svg { transform: scale(0) rotate(-120deg); }
.js .score.is-visible .stars svg { animation: star-pop .55s cubic-bezier(.2, .9, .3, 1.4) forwards; }
.js .score.is-visible .stars svg:nth-child(2) { animation-delay: .12s; }
.js .score.is-visible .stars svg:nth-child(3) { animation-delay: .24s; }
.js .score.is-visible .stars svg:nth-child(4) { animation-delay: .36s; }
.js .score.is-visible .stars svg:nth-child(5) { animation-delay: .48s; }
.score__label { margin: 0; font-size: .92rem; color: var(--alien); }
.score__link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--signal); text-decoration: none; }
.score__link svg { width: 14px; height: 14px; }
.score__link:hover { text-decoration: underline; text-underline-offset: 3px; }

.reviews__cards {
  display: flex; gap: 14px;
  margin: 0 -16px;
  padding: 4px 16px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reviews__cards::-webkit-scrollbar { display: none; }
.review {
  position: relative;
  flex: 0 0 84%;
  display: flex; flex-direction: column; gap: 10px;
  margin: 0;
  padding: 20px 18px 18px;
  background: var(--plate);
  border: 1px solid var(--steel);
  scroll-snap-align: start;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.review::before {
  content: "\201C";
  position: absolute; top: 0; right: 22px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
  color: var(--logo-green);
  opacity: .45;
}
.review__text { flex: 1; margin: 0; font-size: .98rem; color: var(--white); }
.review__author { font-size: .92rem; }
.review__author strong { color: var(--white); }

/* 12. CURL ANIMATO + MODULI ---------------------------------------------- */


.form {
  position: relative;
  padding: 34px 20px 26px;
  background: var(--hangar);
  border: 1px solid var(--steel);
}
.form::before {
  content: "";
  position: absolute; left: -1px; right: -1px; top: -1px;
  height: 7px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 10px, var(--hangar) 10px 20px);
}
.form__title {
  margin-bottom: 20px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .95rem; color: var(--white); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bunker);
  border: 1px solid var(--steel-2);
  border-radius: 4px;
  color: var(--white);
  font: inherit;
  font-size: 1rem; /* almeno 16px: evita lo zoom automatico su iPhone */
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #77746F; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%235CFF8F' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(92, 255, 143, .22), 0 0 22px rgba(92, 255, 143, .12);
}
.field [aria-invalid="true"] { border-color: #FF7A7A; }
.field__error { margin: 6px 0 0; font-size: .9rem; color: #FF9A9A; }
.form .btn { margin-top: 8px; }
.form__note { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }

/* 13. FOOTER ---------------------------------------------------------------- */
.footer {
  padding: 72px 0 calc(100px + env(safe-area-inset-bottom)); /* spazio per la barra azioni mobile */
  background: var(--hangar);
  border-top: 1px solid var(--steel);
}
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }


.footer__logo { width: 150px; height: auto; margin-bottom: 30px; }
.footer__cols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer__h {
  margin-bottom: 10px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
}
.footer address { font-style: normal; margin-bottom: 8px; }
.footer__cols p { margin: 0; }
.footer__link {
  display: block;
  padding: 4px 0;
  color: var(--alien);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .25s ease;
}
.footer__link svg { width: 14px; height: 14px; margin-left: 4px; vertical-align: -1px; }
.footer__link:hover { color: var(--signal); }
.nowrap { white-space: nowrap; }
.hours { margin: 0; display: grid; gap: 4px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; }
.hours dt { color: var(--white); }
.hours dd { margin: 0; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--steel);
  font-size: .86rem;
  color: var(--muted);
}
.footer__bottom p { margin: 0; }
.footer__bottom a { color: inherit; margin-right: 16px; }
.footer__bottom a:hover { color: var(--signal); }

/* 14. BARRA AZIONI MOBILE + WHATSAPP FLOTTANTE ------------------------------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(19, 18, 19, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--steel);
  transform: translateY(110%);
  transition: transform .45s var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.action-bar__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px;
  border-radius: 4px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--hangar);
  box-shadow: inset 0 0 0 1px var(--steel-2);
}
.action-bar__btn svg { width: 20px; height: 20px; }
.action-bar__btn--wa { background: var(--signal); color: var(--ink); box-shadow: 0 4px 0 var(--signal-deep); }
.action-bar__btn:active { transform: translateY(3px); box-shadow: none; }

.float-wa { display: none; }

/* ============================ BREAKPOINT 600 ============================ */
@media (min-width: 600px) {
  .form { padding: 40px 34px 30px; }
  .hero__ctas .btn { flex: 0 0 auto; }
}

/* ============================ BREAKPOINT 760 ============================ */
@media (min-width: 760px) {
  .container { width: min(1200px, 100% - 64px); }
}

/* ============================ BREAKPOINT 960 (desktop) ================== */
@media (min-width: 960px) {
  :root { --header-h: 84px; --chamfer: 36px; }

  .brand__mark { height: 46px; }

  .menu-toggle { display: none; }
  .nav {
    position: static;
    flex-direction: row; align-items: center; gap: 36px;
    padding: 0;
    background: none;
    opacity: 1; visibility: visible; transform: none;
    transition: none;
  }
  .nav::after { display: none; }
  .nav__list { display: flex; gap: 30px; }
  .nav__link {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: .06em;
    color: var(--alien);
    padding: 6px 0;
  }
  .nav__link::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--signal);
    box-shadow: 0 0 10px var(--signal);
    transform: scaleX(0);
    transition: transform .3s var(--ease-out);
  }
  .nav__link:hover, .nav__link.is-current { color: var(--white); }
  .nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); }
  .nav__cta { min-height: 46px; padding: 0 1.3em; font-size: 1.1rem; margin-bottom: 6px; }

  .hero { align-items: center; padding-bottom: clamp(200px, 20vw, 280px); }
  .hero__media {
    left: 36%;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--hangar) 0%, rgba(27, 25, 26, .45) 30%, rgba(27, 25, 26, .1) 70%),
      linear-gradient(180deg, rgba(27, 25, 26, .5) 0%, transparent 30%, transparent 70%, var(--hangar) 100%);
  }
  .hero__beam { left: 60%; width: 52vw; }
  .hero__inner { max-width: 1200px; }
  .hero__title { font-size: min(9rem, 9.4vw); }
  .hero__line { display: inline; }
  .hero__lead { max-width: 30em; }





  .footer { padding-bottom: 32px; }
  .footer__grid { grid-template-columns: minmax(0, 420px) 1fr; gap: 72px; align-items: center; }

  .action-bar { display: none; }

  .float-wa {
    position: fixed; right: 26px; bottom: 26px;
    z-index: 60;
    display: grid; place-items: center;
    width: 62px; height: 62px;
    border-radius: 50%;
    background: var(--signal);
    color: var(--ink);
    box-shadow: 0 6px 0 var(--signal-deep), 0 12px 30px rgba(0, 0, 0, .45);
    transition: transform .2s var(--ease-out), box-shadow .3s ease;
  }
  .float-wa svg { width: 28px; height: 28px; }
  .float-wa::before { /* onda che pulsa */
    content: "";
    position: absolute; inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--signal);
    animation: ring 2.8s ease-out infinite;
  }
  .float-wa:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--signal-deep), 0 0 30px rgba(92, 255, 143, .55); }
  .float-wa:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--signal-deep); }
  .float-wa__tip {
    position: absolute; right: calc(100% + 14px); top: 50%;
    padding: 8px 12px;
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
    opacity: 0;
    transform: translate(8px, -50%);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s var(--ease-out);
  }
  .float-wa:hover .float-wa__tip, .float-wa:focus-visible .float-wa__tip { opacity: 1; transform: translate(0, -50%); }
}

@media (min-width: 1280px) {
  .hero__media { left: 40%; }
}

/* =====================================================================
   18. NUOVE SEZIONI DELLA HOME
   ===================================================================== */

/* --- Mappa stilizzata del Chianti (footer) ------------------------------ */

/* --- Perché sceglierci ----------------------------------------------- */
.strengths { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.strength { padding-top: 22px; border-top: 1px solid var(--steel); }
.strength__icon { display: block; width: 34px; height: 34px; margin-bottom: 14px; color: var(--signal); }
.strength:first-child .strength__icon { filter: drop-shadow(0 0 10px rgba(92, 255, 143, .6)); }
.strength__name {
  margin: 0 0 .35em;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
.strength p { margin: 0; max-width: 30em; }

/* --- Corsi (home) ------------------------------------------------------ */
.courses__head p { max-width: 38em; }
.courses__grid { display: grid; gap: 18px; margin-top: 44px; }
.course-card {
  display: flex; flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: var(--plate);
  border: 1px solid var(--steel);
}
.course-card:hover { border-color: var(--signal); }
.course-card__media { display: block; aspect-ratio: 16 / 10; --chamfer: 22px; }
.course-card:hover .frame img { filter: grayscale(.15) contrast(1.05) brightness(.95); transform: scale(1.04); }
.course-card:hover .frame::after { opacity: .08; }
.course-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; }
.course-card__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
.course-card__desc { flex: 1; font-size: .98rem; color: var(--alien); }
.course-card__meta { font-size: .88rem; color: var(--muted); }
.course-card__lock { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; font-size: .95rem; color: var(--signal); }
.course-card__lock svg { width: 18px; height: 18px; }
.is-logged .course-card__lock svg { display: none; }

/* --- Canali di contatto (pagina Richiedi info) ------------------------- */
.channel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 16px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  background: var(--plate);
  border: 1px solid var(--steel-2);
  border-radius: 6px;
  transition: border-color .25s ease, box-shadow .3s ease, transform .2s var(--ease-out);
}
.channel__icon {
  grid-row: span 2;
  width: 50px; height: 50px;
  padding: 12px;
  border-radius: 50%;
  color: var(--signal);
  box-shadow: inset 0 0 0 2px var(--signal);
  transition: background-color .25s ease, color .25s ease;
}
.channel__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--white);
}
.channel__sub { font-size: .95rem; color: var(--alien); }
.channel:hover { border-color: var(--signal); box-shadow: 0 0 26px rgba(92, 255, 143, .18); transform: translateY(-2px); }
.channel:hover .channel__icon { background: var(--signal); color: var(--ink); }
.channel:active { transform: translateY(1px); }

/* =====================================================================
   19. AREA RISERVATA (accesso, abbonamenti, corsi, contatto)
   ===================================================================== */
html:not(.is-logged) [data-when="in"],
html.is-logged [data-when="out"] { display: none !important; }
html.is-logged .gate { display: none; }
html:not(.is-logged) .gated { display: none; }

/* Le pagine interne sono nascoste finché non vengono aperte:
   - con JavaScript: classe .is-active (script.js)
   - senza JavaScript (anteprime che bloccano gli script): link #... e :target */
.view { display: none; min-height: 80vh; padding-bottom: 110px; }
.view.is-active { display: block; }
.in-view #home { display: none; }
html:not(.js) .view:target,
html:not(.js) .view:has(:target) { display: block; }
html:not(.js) body:has(.view:target) #home,
html:not(.js) body:has(.view :target) #home { display: none; }
html:not(.js) body:has(.view:target) .header::before,
html:not(.js) body:has(.view :target) .header::before { opacity: 1; }
.anchor { display: block; height: 0; }

/* Senza JavaScript l'"accesso" apre il contenuto protetto con un link */
html:not(.js) .gated { display: none; }
html:not(.js) .gated:target,
html:not(.js) .gated:has(:target) { display: block; }
html:not(.js) .view:has(.gated:target) .gate,
html:not(.js) .view:has(.gated :target) .gate { display: none; }
.view-hero {
  position: relative;
  padding: calc(var(--header-h) + 30px) 0 42px;
  background:
    radial-gradient(ellipse 60% 80% at 85% 0%, rgba(74, 175, 99, .14), transparent 70%),
    var(--bunker);
}
.view-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 7px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 12px, var(--bunker) 12px 24px);
}
.view-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 22px;
  color: var(--alien);
  font-weight: 500;
  text-decoration: none;
}
.view-back svg { width: 18px; height: 18px; transition: transform .25s var(--ease-out); }
.view-back:hover { color: var(--signal); }
.view-back:hover svg { transform: translateX(-3px); }
.view-hero .hero__plate { display: table; margin-bottom: 14px; }
.view-title {
  margin: 0 0 .3em;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.9rem, 11vw, 5.6rem);
  line-height: .9;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: var(--rim);
  outline: none;
}
.view-lead { max-width: 36em; margin: 0; font-size: 1.1rem; }
.demo-note {
  display: inline-block;
  margin: 18px 0 0;
  padding: 6px 12px;
  border: 1px dashed var(--steel-2);
  border-radius: 4px;
  font-size: .85rem;
  color: var(--muted);
}
.view-body { padding-top: 40px; }

/* Pulsante-testo */
.link-btn {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { text-shadow: 0 0 12px rgba(92, 255, 143, .6); }

/* --- Accesso / crea account ------------------------------------------ */
.auth {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 24px;
  background: var(--plate);
  border: 1px solid var(--steel);
}
.auth::before {
  content: "";
  position: absolute; left: -1px; right: -1px; top: -1px;
  height: 7px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 10px, var(--plate) 10px 20px);
}
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -20px 24px; padding-top: 7px; border-bottom: 1px solid var(--steel); }
.auth__tab {
  margin-bottom: -1px;
  padding: 18px 8px 14px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.auth__tab { text-align: center; }
.auth__radio { position: absolute; opacity: 0; pointer-events: none; }
.auth__radio--login:checked ~ .auth__tabs .auth__tab--login,
.auth__radio--signup:checked ~ .auth__tabs .auth__tab--signup { color: var(--white); border-bottom-color: var(--signal); }
.auth__radio--login:focus-visible ~ .auth__tabs .auth__tab--login,
.auth__radio--signup:focus-visible ~ .auth__tabs .auth__tab--signup { outline: 3px solid var(--white); outline-offset: -3px; }
.auth__radio--login:checked ~ .auth__form--signup,
.auth__radio--signup:checked ~ .auth__form--login { display: none; }
label.link-btn { display: inline; }
.auth__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field__label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .95rem; color: var(--white); }
.auth .btn { margin-top: 6px; }
.auth__legal { margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.auth__legal a { color: var(--alien); }
.auth__switch { margin: 16px 0 0; text-align: center; font-size: .93rem; }


/* Timbro dopo l'accesso */
.stamp {
  position: fixed; left: 50%; top: 42%;
  z-index: 80;
  padding: .2em .6em .15em;
  border: 4px solid var(--signal);
  background: rgba(19, 18, 19, .9);
  color: var(--signal);
  font-family: var(--f-stencil);
  font-weight: 800;
  font-size: clamp(1.9rem, 8.5vw, 4.2rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(92, 255, 143, .6);
  box-shadow: 0 0 34px rgba(92, 255, 143, .35), inset 0 0 22px rgba(92, 255, 143, .2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-8deg) scale(1.8);
}
.stamp.is-on { animation: stamp 1.7s cubic-bezier(.2, .9, .3, 1) forwards; }

/* --- Abbonamenti -------------------------------------------------------- */

.plans { display: grid; gap: 20px; }
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px 24px 26px;
  background: var(--plate);
  border: 1px solid var(--steel);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.plan--featured {
  background: linear-gradient(180deg, rgba(92, 255, 143, .09), transparent 45%), var(--plate);
  border-color: var(--signal);
  box-shadow: inset 0 0 0 1px var(--signal);
}
.plan__badge {
  position: absolute; top: 20px; right: 34px;
  padding: .2em .6em .15em;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--f-stencil);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.plan__name {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
.plan__price { display: grid; margin: 0; }
.plan__amount { font-family: var(--f-display); font-weight: 900; font-size: 3.4rem; line-height: 1; color: rgba(255, 255, 255, .28); }
.plan__price small { font-weight: 600; font-size: .9rem; color: var(--signal); }
.plan__desc { margin: 0; }
.plan__list { flex: 1; display: grid; align-content: start; gap: 10px; margin: 4px 0 8px; padding: 0; list-style: none; }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--white); }
.plan__list svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--signal); }
.plan .btn { margin-top: auto; }
.plan__done:not(:target):not(.is-on) { display: none !important; }
.plan:has(.plan__done:target) .plan__cta, .plan.is-requested .plan__cta { display: none; }
.plan__done {
  display: flex; align-items: center; gap: 10px;
  margin: auto 0 0;
  padding: 14px;
  background: rgba(92, 255, 143, .1);
  border: 1px solid var(--signal);
  font-weight: 500;
  color: var(--white);
}
.plan__done svg { flex: none; width: 22px; height: 22px; color: var(--signal); }
.plans__note { margin: 26px 0 0; text-align: center; color: var(--muted); }

/* --- Corsi: calendario e prenotazioni --------------------------------- */
.tabs {
  display: flex; gap: 10px;
  margin: 0 -16px;
  padding: 2px 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 10px 16px;
  background: var(--plate);
  border: 1px solid var(--steel-2);
  border-radius: 999px;
  font: 500 .95rem var(--f-body);
  color: var(--alien);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.chip:hover { border-color: var(--signal); }
.chip[aria-selected="true"] { background: var(--signal); border-color: var(--signal); color: var(--ink); font-weight: 700; }

.sessions { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.session {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-areas: "time info" "time action";
  gap: 12px 16px;
  padding: 18px;
  background: var(--plate);
  border: 1px solid var(--steel);
  border-left: 3px solid var(--logo-green);
}
.session__time { grid-area: time; display: grid; align-content: start; }
.session__time b { font-family: var(--f-display); font-weight: 900; font-size: 1.9rem; line-height: 1; color: var(--white); }
.session__time span { font-size: .85rem; color: var(--muted); }
.session__info { grid-area: info; }
.session__name { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; line-height: 1.05; text-transform: uppercase; color: var(--white); }
.session__level { margin: 2px 0 8px; font-size: .9rem; color: var(--muted); }
.spots { max-width: 240px; height: 6px; background: var(--steel); border-radius: 3px; overflow: hidden; }
.spots span { display: block; height: 100%; background: var(--logo-green); }
.session__spots { margin: 6px 0 0; font-size: .88rem; }
.session__action { grid-area: action; display: flex; align-items: center; gap: 16px; }
.session__action .btn { margin-bottom: 6px; }
.session__state { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.session__state--ok { color: var(--signal); }
.session.is-booked { border-left-color: var(--signal); background: linear-gradient(90deg, rgba(92, 255, 143, .09), transparent 60%), var(--plate); }
.session.is-past, .session.is-full { opacity: .55; }
.sessions__empty, .my-bookings__empty { padding: 18px; border: 1px dashed var(--steel-2); color: var(--muted); }

.my-bookings { margin-top: 52px; }
.my-bookings__title { margin: 0 0 14px; font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; color: var(--white); }
.my-bookings__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.booking {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 22px;
  padding: 16px 18px;
  background: var(--plate);
  border: 1px solid var(--steel);
}
.booking > div:first-child { display: grid; }
.booking b { font-size: 1.05rem; color: var(--white); }
.booking small { color: var(--muted); }
.booking__actions { display: flex; flex-wrap: wrap; gap: 18px; }

/* Finestra di prenotazione: foglio dal basso su smartphone, riquadro su desktop */
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%; max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--alien);
}
.sheet::backdrop { background: rgba(10, 10, 10, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open] .sheet__inner { animation: sheet-up .35s var(--ease-out); }
.sheet__inner {
  position: relative;
  padding: 30px 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--hangar);
  border-top: 1px solid var(--steel);
}
.sheet__inner::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--signal) 0 10px, var(--hangar) 10px 20px);
}
.sheet__close {
  position: absolute; top: 12px; right: 10px;
  width: 44px; height: 44px;
  background: none; border: 0;
  font-size: 2rem; line-height: 1;
  color: var(--alien);
  cursor: pointer;
}
.sheet__close:hover { color: var(--signal); }
a.sheet__close { display: grid; place-items: center; text-decoration: none; }
.sheet__kicker { margin: 0 0 6px; font-family: var(--f-stencil); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }
.sheet__title { margin: 0 0 8px; padding-right: 40px; font-family: var(--f-display); font-weight: 900; font-size: 2.1rem; line-height: .95; text-transform: uppercase; color: var(--white); }
.sheet__meta { margin: 0 0 20px; }
.sheet__note { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__ok {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--ink);
  box-shadow: 0 0 30px rgba(92, 255, 143, .5);
}
.form__ok svg { width: 28px; height: 28px; }

/* Avviso breve */
.toast {
  position: fixed; left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex; align-items: center; gap: 16px;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity .3s ease, transform .3s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .link-btn { color: var(--signal-deep); }

/* Saluto account nel menu */
.account { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--alien); }
.account svg { width: 20px; height: 20px; color: var(--signal); }
.account__out { padding: 0; background: none; border: 0; font: inherit; font-weight: 600; color: var(--signal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* --- Fatti contattare --------------------------------------------------- */
.contact-grid { display: grid; gap: 30px; }
.alt-channels { display: grid; gap: 12px; align-content: start; }
.alt-channels__title { margin: 0 0 4px; font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; color: var(--white); }
.form__done p { margin-bottom: 20px; }
.form__done:not(:target):not(.is-on) { display: none; }
.form:has(.form__done:target) .form__step--form, .form.is-done .form__step--form { display: none; }

/* --- Responsive nuove sezioni ----------------------------------------- */
@media (min-width: 600px) {
  .courses__grid { grid-template-columns: repeat(2, 1fr); }
  .session {
    grid-template-columns: 86px 1fr auto;
    grid-template-areas: "time info action";
    align-items: center;
  }
  .sheet { inset: 0; width: min(480px, 100% - 32px); height: fit-content; margin: auto; }
  .sheet__inner { border: 1px solid var(--steel); }
}
@media (min-width: 760px) {
  .strengths { grid-template-columns: repeat(2, 1fr); gap: 34px 44px; }
  .tabs { margin: 0; padding-inline: 0; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
  .toast { bottom: 32px; }
  .nav { gap: 26px; }
  .nav__list { gap: 24px; }
  .account { font-size: .95rem; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .account [data-greet] { display: none; }
}
@media (min-width: 1100px) {
  .courses__grid { grid-template-columns: repeat(4, 1fr); }
  .strengths { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   20. HOME: PERCHÉ SCEGLIERCI, TRASFORMAZIONI, PROMEMORIA FINALE
   ===================================================================== */
.h2--tight { margin-bottom: .12em; }
.subtitle {
  margin: 0 0 34px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3.6vw, 1.8rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--signal);
}
.why { background: var(--hangar); }
.courses { background: var(--bunker); }
.courses .courses__grid { margin-top: 30px; }

/* Trasformazioni: cursore prima / dopo */
.transformations { background: var(--bunker); }
.ba-grid { display: grid; gap: 22px; }
.ba { margin: 0; }
.ba__frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--plate);
  user-select: none;
  touch-action: pan-y;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.ba__layer { position: absolute; inset: 0; }
.ba__layer img { width: 100%; height: 100%; object-fit: cover; }
.ba__layer--after { clip-path: inset(0 0 0 var(--pos)); }
.ba__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center start;
  padding-left: 9%;
  background: repeating-linear-gradient(135deg, #221F21 0 14px, #272426 14px 28px);
  font-family: var(--f-stencil);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ba__ph--after {
  place-items: center end;
  padding: 0 9% 0 0;
  background: repeating-linear-gradient(135deg, #1A2A1F 0 14px, #203326 14px 28px);
  color: var(--logo-green);
}
.ba__tag {
  position: absolute; top: 14px; z-index: 2;
  padding: .22em .6em .18em;
  font-family: var(--f-stencil);
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba__tag--before { left: 14px; background: rgba(19, 18, 19, .88); color: var(--white); }
.ba__tag--after { right: 14px; background: var(--signal); color: var(--ink); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  z-index: 2;
  width: 3px;
  margin-left: -1.5px;
  background: var(--signal);
  box-shadow: 0 0 14px var(--signal);
  pointer-events: none;
}
.ba__handle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 42px; height: 42px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--signal);
  border-radius: 50%;
  background: var(--bunker) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='12' viewBox='0 0 22 12'%3E%3Cpath d='M6 1L1 6l5 5M16 1l5 5-5 5' fill='none' stroke='%235CFF8F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px 12px no-repeat;
  box-shadow: 0 0 18px rgba(92, 255, 143, .45);
}
.ba__range {
  position: absolute; inset: 0;
  z-index: 3;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba__frame:has(.ba__range:focus-visible) .ba__handle::after { outline: 3px solid var(--white); outline-offset: 2px; }
.ba__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 12px; }
.ba__cap strong { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; color: var(--white); }
.ba__cap span { font-size: .92rem; color: var(--muted); }

/* Promemoria finale: banda verde con i due pulsanti dell'inizio */
.cta-band { position: relative; padding: 46px 0; background: var(--signal); color: var(--ink); }
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 10px, var(--signal) 10px 20px);
}
.cta-band::before { top: 0; }
.cta-band::after { bottom: 0; }
.cta-band__inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px 22px; }
.cta-band__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 10vw, 5.2rem);
  line-height: .9;
  text-transform: uppercase;
  color: var(--ink);
}
.cta-band__btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__btns .btn { flex: 1 1 200px; }
.cta-band a:focus-visible { outline-color: var(--ink); }

.btn--ink { margin-bottom: 6px; background: var(--ink); color: var(--signal); box-shadow: 0 6px 0 #000; }
.btn--ink::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -70%;
  z-index: 1;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(92, 255, 143, .35), transparent);
  transform: skewX(-22deg);
  transition: left .7s var(--ease-out);
}
.btn--ink:hover { transform: translateY(-3px); box-shadow: 0 9px 0 #000, 0 14px 30px rgba(0, 0, 0, .3); }
.btn--ink:hover::before { left: 130%; }
.btn--ink:active { transform: translateY(5px); box-shadow: 0 1px 0 #000; transition-duration: .06s; }
.btn--ink-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); margin-bottom: 6px; }
.btn--ink-outline::after {
  content: "";
  position: absolute; left: 50%; top: 105%;
  z-index: 1;
  width: 280%;
  aspect-ratio: 1;
  margin-left: -140%;
  background: var(--ink);
  border-radius: 42%;
  animation: wave-spin 4.5s linear infinite paused;
  transition: top .75s var(--ease-out);
}
.btn--ink-outline:hover { color: var(--signal); }
.btn--ink-outline:hover::after { top: -45px; animation-play-state: running; }
.btn--ink-outline:active { transform: scale(.97); }

/* Footer: mappa del Chianti accanto ai contatti */
.footer .where { width: 100%; max-width: 460px; }

@media (min-width: 760px) {
  .ba-grid { grid-template-columns: repeat(3, 1fr); }
  .ba__frame { aspect-ratio: 4 / 5; }
  .acc__body { grid-template-columns: minmax(0, 560px) 1fr; grid-template-areas: "gal txt" "hint txt"; align-items: start; gap: 12px 36px; }
  .acc__body .gallery { grid-area: gal; }
  .acc__body .gallery__hint { grid-area: hint; margin: 0; }
  .acc__body > p:last-child { grid-area: txt; align-self: center; }
  .reviews__cards { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; overflow: visible; }
  .review { flex: none; }
  .cta-band__inner { grid-template-columns: auto 1fr auto; }
  .cta-band__btns { grid-column: auto; }
  .cta-band__btns .btn { flex: 0 0 auto; }
}
@media (min-width: 960px) {
  .reviews__layout { grid-template-columns: 380px 1fr; align-items: center; gap: 40px; }
  .score__value { font-size: 6.4rem; }
}

/* --- Orari settimanali (versione senza JavaScript) ------------------------ */
.js .tt-static { display: none; }
html:not(.js) .tt-dynamic { display: none; }
.tt-static { display: grid; gap: 18px; }
.tt-course { padding: 20px; background: var(--plate); border: 1px solid var(--steel); border-left: 3px solid var(--logo-green); }
.tt-course__name { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1.05; text-transform: uppercase; color: var(--white); }
.tt-course__meta { margin: 4px 0 12px; font-size: .9rem; color: var(--muted); }
.tt-slots { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tt-slot { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding-top: 8px; border-top: 1px solid var(--steel); }
.tt-slot b { font-family: var(--f-display); font-weight: 900; font-size: 1.4rem; color: var(--white); }
.tt-slot .btn { margin-bottom: 4px; }

/* Finestre di conferma senza JavaScript */
.overlay { display: none; }
.overlay:target {
  position: fixed; inset: 0;
  z-index: 95;
  display: grid; place-items: end center;
  background: rgba(10, 10, 10, .75);
}
.overlay__box {
  position: relative;
  width: 100%;
  padding: 30px 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--hangar);
  border-top: 1px solid var(--steel);
}
@media (min-width: 600px) {
  .overlay:target { place-items: center; }
  .overlay__box { width: min(480px, 100% - 32px); border: 1px solid var(--steel); }
  .tt-static { grid-template-columns: repeat(2, 1fr); }
}

/* 15. SCROLL REVEAL ------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="right"] { transform: translateY(34px); }
@media (min-width: 960px) { .js [data-reveal="right"] { transform: translateX(44px); } }
.js [data-reveal="scale"] { transform: scale(.9); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* 16. KEYFRAMES ------------------------------------------------------------ */
@keyframes plate-left {
  from { opacity: 0; transform: translateX(-120px); }
  40% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes plate-right {
  from { opacity: 0; transform: translateX(120px); }
  40% { opacity: 1; }
  to { opacity: 1; transform: none; }
}
@keyframes eye-on {
  to { fill: var(--signal); filter: drop-shadow(0 0 8px var(--signal)); }
}
@keyframes rig-lift {
  50% { transform: translateY(-14px); }
}
@keyframes fill-bar { to { transform: scaleX(1); } }
@keyframes loader-failsafe { to { visibility: hidden; opacity: 0; } }

@keyframes wave-spin { to { transform: rotate(360deg); } }

@keyframes beam {
  0%, 100% { opacity: .3; }
  45% { opacity: .42; }
  50% { opacity: .22; }
  55% { opacity: .4; }
}
@keyframes dot {
  0%, 100% { opacity: .15; }
  35% { opacity: 1; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Curl con il manubrio */
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes blip {
  0%, 9% { opacity: 0; transform: scale(.5); }
  11% { opacity: 1; transform: scale(1.2); }
  20% { transform: scale(1); }
  50%, 100% { opacity: 0; }
}
@keyframes star-pop {
  to { transform: scale(1) rotate(0deg); }
}
@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes ring {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(1.65); opacity: 0; }
}

@keyframes acc-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes sheet-up {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.8); }
  18%, 70% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(.96); }
}

/* 17. MOVIMENTO RIDOTTO ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .js .loader { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .score .stars svg { transform: none; }
  .tape__track { animation: none; }
}

/* =====================================================================
   20. PAESAGGIO DEL CHIANTI (hero e footer), GALLERIE, CALENDARIO
   ===================================================================== */

/* Paesaggio disegnato: borgo, vigneti, casale, strada bianca e cipressi */
.tus-far { fill: #17221A; stroke: rgba(74, 175, 99, .45); stroke-width: 1.5; }
.tus-borgo { fill: #17221A; stroke: rgba(74, 175, 99, .6); stroke-width: 1.4; stroke-linejoin: round; }
.tus-mid { fill: #111A14; stroke: rgba(74, 175, 99, .7); stroke-width: 1.5; }
.tus-vines path { fill: none; stroke: rgba(92, 255, 143, .3); stroke-width: 2.2; stroke-dasharray: 2 7; stroke-linecap: round; }
.tus-casale { fill: #111A14; stroke: rgba(74, 175, 99, .8); stroke-width: 1.4; stroke-linejoin: round; }
.tus-near { fill: var(--hangar); stroke: rgba(74, 175, 99, .85); stroke-width: 1.5; }
.tus-road { fill: none; stroke: rgba(204, 205, 200, .3); stroke-width: 5; stroke-linecap: round; }
.tus-cypress path { fill: #1C3A25; stroke: rgba(74, 175, 99, .75); stroke-width: 1.2; }
.tus-cypress--far path { fill: #17291D; stroke: rgba(74, 175, 99, .5); }

/* Footer: "Siamo nel Chianti" + Google Maps */
.where { display: grid; justify-items: center; gap: 14px; text-align: center; }
.where__art { display: block; width: 100%; max-width: 460px; height: auto; overflow: hidden; }
.where__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}
.where .btn { margin-bottom: 6px; }
.where__pin { animation: pin-float 3s ease-in-out infinite; transform-box: fill-box; }
.where__pin-body { fill: var(--signal); filter: drop-shadow(0 0 14px rgba(92, 255, 143, .55)); }
.where__pin-hole { fill: var(--hangar); }
.where__pin-shadow { fill: rgba(0, 0, 0, .45); }
.where__pin-pulse {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pin-pulse 2.4s ease-out infinite;
}

/* Galleria foto dei servizi */
.gallery { position: relative; max-width: 620px; }
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  scroll-snap-align: start;
  background: var(--plate);
  cursor: zoom-in;
}
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.05) brightness(.9); transition: filter .4s ease; }
.gallery__slide:hover img { filter: none; }
.gallery__nav {
  position: absolute; top: 50%;
  z-index: 2;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin-top: -23px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(19, 18, 19, .82);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.gallery__nav svg { width: 22px; height: 22px; }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__nav--next svg, .lightbox__nav--next svg, .cal__nav--next svg { transform: rotate(180deg); }
.gallery__nav:hover { background: var(--signal); color: var(--ink); }
.gallery__nav:disabled { opacity: 0; pointer-events: none; }
html:not(.js) .gallery__nav { display: none; }
.gallery__count {
  position: absolute; right: 12px; bottom: 12px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(19, 18, 19, .82);
  font-size: .82rem;
  font-weight: 600;
  color: var(--white);
  pointer-events: none;
}
.gallery__hint { margin: -6px 0 0; font-size: .85rem; color: var(--muted); }
.gallery__hint--touch { display: none; }
@media (hover: none) {
  .gallery__hint--mouse { display: none; }
  .gallery__hint--touch { display: inline; }
}

/* Foto a schermo intero */
.lightbox {
  width: 100%; max-width: 100%;
  height: 100%; max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 10, 10, .96);
  color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(10, 10, 10, .9); }
.lightbox__fig { display: grid; justify-items: center; gap: 12px; margin: 0; padding: 64px 16px; }
.lightbox__fig img { max-width: min(1400px, 100%); max-height: calc(100vh - 160px); object-fit: contain; animation: lb-in .3s var(--ease-out); }
.lightbox__cap { font-size: .95rem; color: var(--alien); text-align: center; }
.lightbox__nav, .lightbox__close {
  position: fixed;
  z-index: 2;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav { top: 50%; margin-top: -26px; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox__close { top: 14px; right: 14px; font-size: 2rem; line-height: 1; }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--signal); color: var(--ink); }
.lightbox__nav:disabled { opacity: .25; pointer-events: none; }

/* Calendario dei corsi */
.booker { display: grid; gap: 22px; margin-top: 18px; }
.cal { padding: 18px 14px 14px; background: var(--plate); border: 1px solid var(--steel); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal__month { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: 1.7rem; line-height: 1; text-transform: uppercase; color: var(--white); }
.cal__nav {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--steel-2);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
}
.cal__nav svg { width: 20px; height: 20px; }
.cal__nav:hover { border-color: var(--signal); color: var(--signal); }
.cal__nav:disabled { opacity: .3; pointer-events: none; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow span { padding: 4px 0; font-size: .78rem; font-weight: 600; text-align: center; color: var(--muted); }
.cal__day {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font: 600 1rem var(--f-body);
  color: var(--alien);
  cursor: pointer;
}
.cal__day:disabled { color: #4E4A4C; cursor: default; }
.cal__day.has-course:not(:disabled) { background: rgba(92, 255, 143, .07); color: var(--white); }
.cal__day.has-course::after {
  content: "";
  position: absolute; bottom: 5px; left: 50%;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--signal);
}
.cal__day.has-course:disabled::after { background: #4E4A4C; }
.cal__day.is-today { border-color: var(--steel-2); }
.cal__day.has-booking::before {
  content: "";
  position: absolute; top: 4px; right: 4px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--white);
}
.cal__day:not(:disabled):hover { border-color: var(--signal); }
.cal .cal__day[aria-pressed="true"] { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.cal .cal__day[aria-pressed="true"]::after { background: var(--ink); }
.cal .cal__day[aria-pressed="true"]::before { background: var(--ink); }
.cal__legend { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.cal__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.day-panel__title { margin: 0 0 12px; font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; line-height: 1.05; text-transform: uppercase; color: var(--white); }
.day-panel .sessions { margin-top: 0; }

/* Consenso promo in evidenza (NON pre-spuntato) */
.optin {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  margin: 6px 0 14px;
  padding: 14px 14px 14px 12px;
  background: rgba(92, 255, 143, .06);
  border: 1px solid rgba(92, 255, 143, .45);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.optin:hover { border-color: var(--signal); }
.optin input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: grid; place-content: center;
  width: 24px; height: 24px;
  margin: 2px 0 0;
  background: var(--bunker);
  border: 2px solid var(--signal);
  border-radius: 5px;
  cursor: pointer;
}
.optin input:checked { background: var(--signal); }
.optin input:checked::after {
  content: "";
  width: 7px; height: 12px;
  border: solid var(--ink);
  border-width: 0 3px 3px 0;
  transform: translate(0, -1px) rotate(45deg);
}
.optin input:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.optin:has(input:checked) { background: rgba(92, 255, 143, .13); border-color: var(--signal); }
.optin__text { display: grid; gap: 3px; font-size: .9rem; line-height: 1.45; color: var(--alien); }
.optin__text strong { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; text-transform: uppercase; color: var(--white); }

/* Promemoria finale: sagoma "prima / dopo" sotto lo scanner */
.morph { display: grid; justify-items: center; gap: 4px; width: 84px; }
.morph__svg { display: block; width: 100%; height: auto; overflow: visible; }
.morph__before * { fill: var(--ink); }
.morph__after * { fill: var(--ink); }
.morph__before { opacity: .3; animation: morph-before 5s ease-in-out infinite; }
.morph__after { animation: morph-after 5s ease-in-out infinite; }
.morph__scan {
  fill: var(--white);
  transform-box: view-box;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .9));
  animation: morph-scan 5s ease-in-out infinite;
}
.morph__label { position: relative; display: block; width: 100%; height: 1.1em; font-family: var(--f-stencil); font-weight: 800; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: var(--ink); }
.morph__l1, .morph__l2 { position: absolute; inset: 0; }
.morph__l1 { animation: morph-l1 5s ease-in-out infinite; }
.morph__l2 { opacity: 0; animation: morph-l2 5s ease-in-out infinite; }

@media (min-width: 600px) {
  .lightbox__nav--prev { left: 24px; }
  .lightbox__nav--next { right: 24px; }
  .cal { padding: 22px 20px 18px; }
}
@media (min-width: 960px) {
  .booker { grid-template-columns: minmax(0, 420px) 1fr; gap: 36px; align-items: start; }
  .morph { width: 96px; }
}

@keyframes pin-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pin-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes morph-scan {
  0%, 8% { transform: translateY(0); opacity: 1; }
  58% { transform: translateY(184px); opacity: 1; }
  64%, 100% { transform: translateY(184px); opacity: 0; }
}
@keyframes morph-before {
  0%, 8% { clip-path: inset(0 0 0 0); opacity: .3; }
  58%, 88% { clip-path: inset(100% 0 0 0); opacity: .3; }
  92% { clip-path: inset(0 0 0 0); opacity: 0; }
  100% { clip-path: inset(0 0 0 0); opacity: .3; }
}
@keyframes morph-after {
  0%, 8% { clip-path: inset(0 0 100% 0); opacity: 1; }
  58%, 86% { clip-path: inset(0 0 0 0); opacity: 1; }
  92%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes morph-l1 { 0%, 30% { opacity: 1; } 36%, 90% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes morph-l2 { 0%, 30% { opacity: 0; } 36%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .morph__before { opacity: 0; }
  .morph__after { clip-path: none; opacity: 1; }
  .morph__scan, .morph__l1 { display: none; }
  .morph__l2 { opacity: 1; }
}

/* =====================================================================
   21. SMARTPHONE: paesaggio, punti forti, trasformazioni, corsi, alieno
   ===================================================================== */
.hero__hills--narrow { display: none; }
@media (max-width: 599px) {
  .hero__hills--wide { display: none; }
  .hero__hills--narrow { display: block; height: 210px; }
}

/* Alieno dell'animazione finale: occhi "bucati" sul verde */
.morph__after .morph__eye { fill: var(--signal); }

/* Trasformazioni: una alla volta con le frecce (smartphone) */
.ba-nav { display: none; }
@media (max-width: 759px) {
  .js .ba-grid > .ba:not(.is-active) { display: none; }
  .js .ba-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; }
  .ba-nav__btn {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--steel-2);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
  }
  .ba-nav__btn svg { width: 22px; height: 22px; }
  .ba-nav__btn--next svg { transform: rotate(180deg); }
  .ba-nav__btn:active, .ba-nav__btn:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
  .ba-nav__count { min-width: 56px; text-align: center; font-weight: 600; font-size: .95rem; color: var(--alien); }
  .ba__frame { aspect-ratio: 4 / 5; }
  .ba.is-active { animation: ba-in .35s var(--ease-out); }
}
@keyframes ba-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 759px) {
  /* Perché sceglierci: griglia 2 × 2 compatta */
  .why.section { padding: 48px 0; }
  .strengths { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; margin-top: 4px; }
  .strength { padding-top: 14px; }
  .strength__icon { width: 26px; height: 26px; margin-bottom: 8px; }
  .strength__name { font-size: 1.2rem; }
  .strength p { display: none; } /* su smartphone bastano icona e titolo */
  .why .subtitle { margin-bottom: 18px; }

  /* Corsi: file da due */
  .courses__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .course-card__media { aspect-ratio: 4 / 3; --chamfer: 14px; }
  .course-card__body { gap: 5px; padding: 12px 12px 14px; }
  .course-card__name { font-size: 1.25rem; }
  .course-card__desc { font-size: .84rem; line-height: 1.4; }
  .course-card__meta { font-size: .78rem; }
  .course-card__lock { gap: 6px; margin-top: 4px; font-size: .82rem; }
  .course-card__lock svg { width: 15px; height: 15px; }
}
