/* =====================================================
   Waves Pole Dance — Impeccable-aligned stylesheet
   ---------------------------------------------------
   Design tokens live in ./design-system/tokens.css
   Bring-your-own to Next.js: import that file in your
   root layout (or convert via tokens.json + Tailwind).
   ===================================================== */

@import url("./design-system/tokens.css");

* {
  box-sizing: border-box;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

html,
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-wrap: break-word;
  font-feature-settings: "kern" 1, "calt" 1, "ss01" 1, "cv11" 1;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
}

main {
  position: relative;
  z-index: 1;
}

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

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6, p {
  overflow-wrap: break-word;
  hyphens: auto;
}

:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cyan-signature);
  color: var(--bg-deep);
  font-weight: 600;
  font-size: var(--body-sm);
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform 200ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== SCROLL PERFORMANCE — touch / low-GPU degradation =====
   backdrop-filter forces a layered repaint over a large area every scroll
   frame. On touch devices and devices with integrated GPUs (Intel UHD on
   Windows, low-end Android) this is the single biggest cause of jank.
   We keep the visual idea but trim the blur radius drastically. The dark
   tinted background already provides enough contrast separation. */
@media (pointer: coarse) {
  .topbar {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .booking-form {
    backdrop-filter: blur(6px);
  }
  .booking-dialog::backdrop {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .mobile-drawer {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 40;
  background: oklch(1 0 0 / 0.06);
}

.scroll-progress-bar {
  height: 100%;
  width: 0;
  background: var(--cyan-signature);
}

/* ===== SITE-WIDE VIDEO BACKGROUND =====
   Promote to its own GPU layer so the rest of the page doesn't trigger a full
   repaint of the video on every scroll frame. Critical for smooth scroll on
   Windows with integrated GPUs and on mid-range Android. */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-deep);
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout paint;
}

.site-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ===== TOPBAR ===== */
.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  width: min(1220px, calc(100vw - 24px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 12px 10px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: oklch(0.13 0.018 230 / 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  color: var(--text-primary);
}

.logo span {
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "wdth" 88, "opsz" 56;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.logo em {
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 2px;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--text-muted);
  font-size: var(--body-sm);
}

.menu a {
  position: relative;
  padding: 6px 0;
  transition: color 200ms ease;
}

.menu a:hover {
  color: var(--text-primary);
}

.menu a::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--cyan-signature);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu a:hover::after {
  transform: scaleX(1);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: var(--body-sm);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms ease, color 220ms ease,
    border-color 220ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  min-height: 50px;
  padding: 13px 24px;
  font-size: var(--body-md);
}

.btn-primary {
  background: var(--cyan-signature);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: var(--cyan-deep);
  color: var(--bg-deep);
}

.btn-ghost {
  border-color: var(--line);
  background: oklch(1 0 0 / 0.04);
  color: var(--text-primary);
}

.btn-ghost:hover {
  border-color: var(--cyan-deep);
  background: oklch(1 0 0 / 0.08);
}

.btn-block {
  width: 100%;
}

/* ===== HERO (bolder pass) ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: 140px 6vw 90px;
  overflow: hidden;
}

.hero-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    oklch(0.05 0.02 230 / 0.55) 0%,
    oklch(0.05 0.02 230 / 0.18) 32%,
    oklch(0.05 0.02 230 / 0.88) 100%
  );
}

.hero-marker {
  position: absolute;
  top: clamp(120px, 14vh, 160px);
  right: clamp(20px, 6vw, 60px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 88, "opsz" 24;
  font-size: var(--body-sm);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1;
  pointer-events: none;
}

.hero-marker span:nth-child(3) {
  color: var(--cyan-signature);
  font-variation-settings: "wght" 600, "wdth" 84, "opsz" 24;
}

.hero-copy {
  max-width: 1100px;
}

.hero-tag {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 92, "opsz" 24;
  font-size: var(--body-sm);
  color: var(--cyan-signature);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  max-width: none;
}

/* Hero title scrub — cinetic typography driven by hero exit progress.
   Lettere si espandono (wdth) e si ingrassano (wght) mentre l'hero esce dal viewport.
   `--scrub` default 1 (titolo espresso) → browser senza scroll-driven vedono lo stato finale. */
@property --scrub {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 13vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

h1 .line {
  display: block;
  font-variation-settings:
    "wght" calc(560 + var(--scrub) * 140),
    "wdth" calc(80 + var(--scrub) * 30),
    "opsz" 96;
}

h1 .line:nth-child(2) {
  padding-left: clamp(0px, 4vw, 70px);
}

.emph {
  font-style: italic;
  color: var(--cyan-signature);
  font-variation-settings:
    "wght" calc(580 + var(--scrub) * 120),
    "wdth" calc(75 + var(--scrub) * 20),
    "opsz" 96;
  padding-left: clamp(0px, 8vw, 140px);
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes hero-title-scrub {
      from { --scrub: 0; }
      to   { --scrub: 1; }
    }

    .hero h1 {
      animation: hero-title-scrub linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 70vh;
    }
  }
}

.lede {
  max-width: 48ch;
  margin: 32px 0 0;
  font-family: var(--font-display);
  font-variation-settings: "wght" 400, "wdth" 96, "opsz" 36;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-cta .btn-lg {
  min-height: 56px;
  padding: 15px 28px;
  font-size: 1.05rem;
}

.hero-meta {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 26px;
  font-size: var(--body-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-meta li {
  position: relative;
  padding-left: 14px;
}

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--cyan-signature);
  transform: translateY(-50%);
}

.hero-meta li:last-child {
  color: var(--cyan-signature);
}

.hero-meta li:last-child::before {
  background: var(--magenta-rare);
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 0 oklch(0.7 0.22 330 / 0.55);
  animation: dot-pulse 2.8s var(--ease-out-quart) infinite;
}

@keyframes dot-pulse {
  0% {
    box-shadow: 0 0 0 0 oklch(0.7 0.22 330 / 0.55);
  }
  60% {
    box-shadow: 0 0 0 10px oklch(0.7 0.22 330 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 oklch(0.7 0.22 330 / 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-meta li:last-child::before {
    animation: none;
  }
}

.scroll-hint {
  position: absolute;
  left: 6vw;
  bottom: 28px;
  width: 26px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  --mx: 0;
  --my: 0;
  transform: translate3d(calc(var(--mx) * 4px), calc(var(--my) * 4px), 0);
  transition: transform var(--dur-mid) var(--ease-out-quart),
    border-color var(--dur-mid) var(--ease-out-quart);
}

.scroll-hint:hover {
  border-color: var(--cyan-signature);
}

.scroll-hint span {
  width: 2px;
  height: 8px;
  background: var(--cyan-signature);
  border-radius: 999px;
  animation: scrollDot 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint {
    transform: none;
  }
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(14px); opacity: 0.3; }
}

/* ===== PANELS ===== */
.container {
  width: var(--container);
  margin-inline: auto;
}

.panel {
  position: relative;
  z-index: 1;
  padding: var(--panel-y-default) 0;
}

.panel--airy {
  padding: var(--panel-y-airy) 0;
}

.panel--tight {
  padding: var(--panel-y-tight) 0;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: oklch(0.08 0.018 230 / 0.66);
}

.panel > * {
  position: relative;
  z-index: 1;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 92, "opsz" 80;
  font-size: var(--step-2);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h2 em {
  font-style: italic;
  color: var(--cyan-signature);
  font-variation-settings: "wght" 500, "wdth" 84, "opsz" 80;
}

h3 {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 96, "opsz" 60;
  font-size: var(--step-3);
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

p {
  margin: 0;
  max-width: 64ch;
  color: var(--text-muted);
}

.panel p {
  font-size: var(--body-md);
  line-height: 1.62;
}

.muted {
  color: var(--text-soft);
}

.small {
  font-size: var(--body-sm);
}

/* ===== MANIFESTO ===== */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}

.manifesto-headline {
  font-size: clamp(2.2rem, 5.8vw, 4.6rem);
}

.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 12px;
}

.info-list {
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.info-list > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-list dt {
  font-size: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-signature);
}

.info-list dd {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--body-md);
}

/* ===== PIN STORYTELLING ===== */
.pin-section {
  position: relative;
  z-index: 1;
  height: 240vh;
}

.pin-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 6vw;
  gap: 22px;
}

.pin-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    oklch(0.05 0.02 230 / 0.85) 0%,
    oklch(0.05 0.02 230 / 0.55) 40%,
    oklch(0.05 0.02 230 / 0.15) 75%,
    transparent 100%
  );
}

.pin-kicker {
  margin: 0;
  font-size: var(--body-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-signature);
}

.pin-headline {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 86, "opsz" 96;
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.pin-headline em {
  font-style: italic;
  color: var(--cyan-signature);
  font-variation-settings: "wght" 500, "wdth" 80, "opsz" 96;
}

.pin-subs {
  position: relative;
  min-height: 4em;
  max-width: 56ch;
  width: 100%;
}

.pin-sub {
  position: absolute;
  inset: 0;
  margin: 0;
  color: var(--text-primary);
  font-size: var(--body-lg);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 540ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 540ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pin-sub.is-active {
  opacity: 1;
  transform: translateY(0);
}

.pin-dots {
  display: flex;
  gap: 8px;
}

.pin-dots span {
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.18);
  transition: background-color 280ms ease, transform 280ms ease;
}

.pin-dots span.is-active {
  background: var(--cyan-signature);
  transform: scaleX(1.3);
}

/* ===== COACH ===== */
.coach-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.coach-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.coach-name {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 88, "opsz" 60;
  font-size: var(--step-3);
  color: var(--cyan-signature);
  letter-spacing: -0.01em;
}

.coach-quote {
  margin: 0;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: oklch(0.16 0.02 230 / 0.6);
}

.coach-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 90, "opsz" 60;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.coach-quote blockquote::before {
  content: "“";
  display: block;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--cyan-signature);
  margin-bottom: 12px;
}

.coach-quote figcaption {
  margin-top: 18px;
  font-size: var(--body-sm);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ===== OPERA (proof gallery, RGB shooting) ===== */
.opera {
  position: relative;
  isolation: isolate;
}

.opera::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      120% 80% at 100% 0%,
      oklch(0.7 0.22 330 / 0.12) 0%,
      transparent 55%
    ),
    radial-gradient(
      120% 90% at 0% 100%,
      oklch(0.68 0.18 220 / 0.12) 0%,
      transparent 55%
    ),
    oklch(0.08 0.018 230 / 0.94);
  pointer-events: none;
}

.opera-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding-bottom: clamp(40px, 5vw, 72px);
}

.opera-kicker {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  font-size: var(--label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta-rare);
  font-weight: 500;
}

.opera-head h2 {
  margin: 0;
  max-width: 18ch;
}

.opera-dim {
  color: var(--text-soft);
}

.opera-lede {
  margin: 0;
  max-width: 42ch;
  color: var(--text-muted);
}

.opera-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}

.opera-cell {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
  grid-column: span 2;
  grid-row: span 2;
  min-width: 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out-quart),
    transform var(--dur-slow) var(--ease-out-quart),
    border-color var(--dur-mid) var(--ease-out-quart);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.opera-cell.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.opera-cell:hover,
.opera-cell:focus-within {
  border-color: oklch(1 0 0 / 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .opera-cell {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.opera-cell--tall {
  grid-column: span 2;
  grid-row: span 3;
}

.opera-cell--wide {
  grid-column: span 4;
  grid-row: span 2;
}

.opera-cell--meta {
  grid-column: span 4;
  grid-row: span 2;
}

.opera-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
    filter var(--dur-mid) var(--ease-out-quart);
}

.opera-cell:hover img,
.opera-cell:focus-within img {
  transform: scale(1.04);
}

/* RGB scattering — chromatic aberration sull'hover delle stills.
   Filter SVG inline (#rgb-shift) separa i canali R/B di 2px in direzioni opposte:
   l'effetto cromatico richiama letteralmente il nome "RGB Shooting" del set.
   Solo desktop con pointing fine, mai in reduced-motion (rispetto a11y). */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .opera-cell:hover img,
  .opera-cell:focus-within img {
    filter: url(#rgb-shift);
  }
}

.opera-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.04);
  pointer-events: none;
}

.opera-cell--meta figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--body-sm);
  font-variation-settings: "wght" 500, "wdth" 90, "opsz" 24;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  background: oklch(0.13 0.018 230 / 0.55);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-soft);
}

.opera-foot {
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: var(--body-md);
  color: var(--text-soft);
}

.opera-foot a {
  color: var(--cyan-signature);
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 90, "opsz" 24;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 200ms ease, transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.opera-foot a::after {
  content: "→";
  display: inline-block;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.opera-foot a:hover {
  color: var(--text-primary);
}

.opera-foot a:hover::after {
  transform: translateX(4px);
}

@media (max-width: 639px) {
  .opera-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 1023px) {
  .opera-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
  }
  .opera-cell,
  .opera-cell--tall,
  .opera-cell--wide,
  .opera-cell--meta {
    grid-column: span 2;
    grid-row: span 2;
  }
  .opera-cell--tall { grid-row: span 3; }
}

@media (max-width: 639px) {
  .opera-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .opera-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 420px;
    gap: 12px;
  }
  .opera-cell,
  .opera-cell--tall,
  .opera-cell--wide,
  .opera-cell--meta {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ===== PERCORSI ===== */
.percorsi-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding-bottom: clamp(28px, 4vw, 56px);
}

.percorsi-head p {
  align-self: end;
  max-width: 48ch;
}

.percorsi-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.percorso {
  display: grid;
  grid-template-columns: 70px 1.6fr 1fr;
  gap: clamp(20px, 3.5vw, 56px);
  align-items: start;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
  transition: border-color var(--dur-mid) var(--ease-out-quart);
}

.percorso::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan-signature);
  transition: width var(--dur-slow) var(--ease-out-expo);
  pointer-events: none;
}

.percorso:hover::before,
.percorso:focus-within::before {
  width: 100%;
}

.percorso:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.percorso-num {
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 80, "opsz" 96;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--text-soft);
  line-height: 1;
  transition: color var(--dur-mid) var(--ease-out-quart),
    transform var(--dur-mid) var(--ease-out-quart);
}

.percorso:hover .percorso-num,
.percorso:focus-within .percorso-num {
  color: var(--cyan-signature);
  transform: translateX(-4px);
}

.percorso.is-feature .percorso-num {
  color: var(--cyan-signature);
}

.percorso h3 {
  transition: transform var(--dur-mid) var(--ease-out-quart);
}

.percorso:hover h3,
.percorso:focus-within h3 {
  transform: translateX(4px);
}

.percorso-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 52ch;
}

.percorso-body p {
  margin: 0;
  color: var(--text-muted);
}

.percorso-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  row-gap: 8px;
  margin: 0;
  align-content: start;
}

.percorso-meta dt {
  font-size: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.percorso-meta dd {
  margin: 0;
  font-size: var(--body-sm);
  color: var(--text-primary);
}

/* ===== ORARI ===== */
.orari-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding-bottom: clamp(28px, 4vw, 56px);
}

.schedule-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.schedule-day {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: oklch(0.16 0.02 230 / 0.55);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 220ms ease, transform 220ms ease;
}

.schedule-day:hover {
  border-color: var(--cyan-deep);
  transform: translateY(-2px);
}

.schedule-day .day-label {
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 92, "opsz" 36;
  font-size: 0.98rem;
  color: var(--cyan-signature);
  margin-bottom: 6px;
}

.schedule-day span:not(.day-label) {
  font-size: var(--body-sm);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "ss01" 1;
}

/* ===== BOOKING ===== */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.booking-pitch {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 16px;
}

.booking-pitch-wide {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 62ch;
}

.booking-eyebrow {
  margin: 0;
  font-size: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan-signature);
}

.booking-lede {
  margin: 0;
  font-size: var(--body-lg);
  color: var(--text-muted);
  max-width: 56ch;
}

.booking-ticks {
  margin-top: 8px;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
}

.booking-fallback {
  font-size: var(--body-sm);
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--dur-fast) var(--ease-out-quart);
}

.booking-fallback:hover {
  color: var(--text-primary);
}

.ticklist {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text-primary);
}

.ticklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 16px;
  height: 1px;
  background: var(--cyan-signature);
}

.booking-form {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: oklch(0.13 0.018 230 / 0.78);
  backdrop-filter: blur(14px);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-form label {
  font-size: var(--label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  font: inherit;
  color: var(--text-primary);
  background: oklch(1 0 0 / 0.04);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  min-height: 48px;
  transition: border-color 200ms ease, background-color 200ms ease,
    box-shadow 200ms ease;
}

.booking-form textarea {
  min-height: 96px;
  resize: vertical;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--cyan-deep);
  background: oklch(1 0 0 / 0.06);
  box-shadow: 0 0 0 3px oklch(0.68 0.18 220 / 0.18);
}

.booking-form input::placeholder,
.booking-form textarea::placeholder {
  color: oklch(0.55 0.015 230);
}

.field-hint {
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-soft);
  line-height: 1.4;
}

.field-counter {
  display: flex;
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
}

.field-counter.is-near-limit {
  color: var(--magenta-rare);
}

.field-error {
  display: block;
  font-size: 0.82rem;
  line-height: 1.4;
  color: oklch(0.82 0.18 25);
  letter-spacing: 0;
  text-transform: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: oklch(0.65 0.22 25);
  background: oklch(0.65 0.22 25 / 0.08);
}

.field.has-error .field-hint {
  display: none;
}

.field.is-valid input,
.field.is-valid select,
.field.is-valid textarea {
  border-color: oklch(0.7 0.14 160 / 0.65);
}

.consent {
  display: flex;
  gap: 10px;
  font-size: var(--body-sm);
  color: var(--text-muted);
  align-items: flex-start;
  line-height: 1.4;
  flex-wrap: wrap;
  padding: 4px 0;
}

.consent input {
  margin-top: 3px;
  accent-color: var(--cyan-signature);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.consent.has-error {
  color: oklch(0.82 0.18 25);
}

.consent.has-error .field-error {
  flex-basis: 100%;
  margin-left: 28px;
}

.consent a {
  color: var(--cyan-signature);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-feedback {
  margin: 0;
  font-size: var(--body-sm);
  min-height: 1.2em;
  color: var(--text-muted);
}

.form-feedback.is-error {
  color: oklch(0.82 0.18 25);
}

.form-feedback.is-success {
  color: var(--cyan-signature);
}

.form-feedback a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: btn-spin 720ms linear infinite;
  margin-left: 10px;
}

.btn.is-loading {
  cursor: progress;
  opacity: 0.85;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.btn[disabled]:hover {
  transform: none;
}

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

/* ===== BOOKING DIALOG ===== */
.booking-dialog {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--text-primary);
  width: min(960px, 96vw);
  max-width: 96vw;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border-radius: 22px;
  inset: 0;
  margin: auto;
}

.booking-dialog::backdrop {
  background: oklch(0.08 0.02 230 / 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.booking-dialog[open] {
  animation: bookingDialogIn 420ms var(--ease-out-quart);
}

.booking-dialog[open]::backdrop {
  animation: bookingBackdropIn 320ms var(--ease-out-quart);
}

@keyframes bookingDialogIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bookingBackdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.booking-dialog-inner {
  background: linear-gradient(
    180deg,
    oklch(0.16 0.025 230 / 0.96) 0%,
    oklch(0.12 0.02 230 / 0.98) 100%
  );
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 24px);
  overflow: hidden;
}

.booking-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px) 0;
}

.booking-dialog-head-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.booking-dialog-eyebrow {
  margin: 0;
  font-size: var(--label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-signature);
}

#bookingDialogTitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 500;
  font-variation-settings: "wght" 500, "wdth" 88, "opsz" 96;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

#bookingDialogDescription {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--body-sm);
  max-width: 56ch;
}

.booking-dialog-close {
  border: 1px solid var(--line-soft);
  background: oklch(1 0 0 / 0.04);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart),
    transform var(--dur-fast) var(--ease-out-quart);
}

.booking-dialog-close:hover {
  border-color: var(--cyan-signature);
  color: var(--cyan-signature);
  transform: rotate(90deg);
}

.booking-dialog-close:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 2px;
}

.booking-stepper {
  margin: 18px clamp(20px, 3vw, 32px) 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-bottom: 1px solid var(--line-soft);
  /* Fade verso il contenuto scrollabile: nasconde il "passaggio sotto" dei
     campi quando si scorre, mantenendo netta la linea di separazione. */
  position: relative;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    oklch(0.13 0.02 230 / 0) 0%,
    oklch(0.13 0.02 230 / 0.6) 60%,
    oklch(0.13 0.02 230 / 0.98) 100%
  );
}

.booking-stepper li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  color: var(--text-soft);
  font-size: var(--body-sm);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart);
}

.booking-stepper li.is-active {
  color: var(--text-primary);
  border-bottom-color: var(--cyan-signature);
}

.booking-stepper li.is-done {
  color: var(--cyan-signature);
}

.booking-stepper .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid currentColor;
  flex-shrink: 0;
}

.booking-stepper li.is-active .dot,
.booking-stepper li.is-done .dot {
  background: currentColor;
}

.booking-step {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(16px, 2.5vw, 28px);
  padding: clamp(18px, 2.5vw, 28px) clamp(20px, 3vw, 32px) 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  /* Scrollbar sempre visibile, sottile, on-brand. macOS nasconde le overlay
     scrollbars a riposo: forziamo persistenza per dare segnale di scrollabilità. */
  scrollbar-width: thin;
  scrollbar-color: oklch(1 0 0 / 0.18) transparent;
  scroll-padding-bottom: 88px;
}

.booking-step::-webkit-scrollbar {
  width: 8px;
}

.booking-step::-webkit-scrollbar-track {
  background: transparent;
}

.booking-step::-webkit-scrollbar-thumb {
  background: oklch(1 0 0 / 0.18);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.booking-step::-webkit-scrollbar-thumb:hover {
  background: oklch(1 0 0 / 0.32);
  background-clip: padding-box;
  border: 2px solid transparent;
}

.booking-step[data-step="2"],
.booking-step[data-step="3"] {
  grid-template-columns: 1fr;
}

.booking-step:not(.is-active) {
  display: none;
}

.booking-step-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 clamp(18px, 2.5vw, 28px);
  border-top: 1px solid var(--line-soft);
  margin-top: 4px;
  /* Sticky bottom: i bottoni Indietro/Conferma restano sempre visibili
     mentre scrolli i campi del form. Background opaco con sfumatura in alto
     per "rivelare" il contenuto che scorre sotto senza taglio netto. */
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    oklch(0.13 0.02 230 / 0) 0%,
    oklch(0.13 0.02 230 / 0.92) 22%,
    oklch(0.13 0.02 230 / 0.98) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.booking-step-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--body-sm);
}

.booking-step-summary strong {
  color: var(--text-primary);
}

/* Calendar */
.calendar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-month {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 85, "opsz" 72;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
  text-transform: capitalize;
}

.calendar-nav {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: oklch(1 0 0 / 0.04);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: color var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart);
}

.calendar-nav:hover:not([disabled]) {
  color: var(--cyan-signature);
  border-color: var(--cyan-signature);
}

.calendar-nav[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-soft);
  background: oklch(1 0 0 / 0.03);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 100, "opsz" 18;
  font-size: 0.95rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color var(--dur-fast) var(--ease-out-quart),
    border-color var(--dur-fast) var(--ease-out-quart),
    background-color var(--dur-fast) var(--ease-out-quart),
    transform var(--dur-fast) var(--ease-out-quart);
}

.calendar-day.is-outside {
  visibility: hidden;
}

.calendar-day.is-closed {
  color: var(--text-soft);
  background: transparent;
  cursor: not-allowed;
  opacity: 0.45;
}

.calendar-day.is-past {
  color: var(--text-soft);
  background: transparent;
  cursor: not-allowed;
  opacity: 0.3;
}

.calendar-day.is-full {
  color: var(--text-muted);
  cursor: not-allowed;
}

.calendar-day.is-full::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 16px;
  height: 1px;
  background: oklch(0.82 0.18 25 / 0.55);
}

.calendar-day.is-available:hover {
  color: var(--cyan-signature);
  border-color: var(--cyan-signature);
  transform: translateY(-1px);
}

.calendar-day.is-available::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan-signature);
}

.calendar-day.is-today {
  outline: 1px solid var(--text-soft);
  outline-offset: -3px;
}

.calendar-day.is-selected {
  background: var(--cyan-signature);
  color: var(--bg-deep);
  border-color: var(--cyan-signature);
}

.calendar-day.is-selected::after {
  background: var(--bg-deep);
}

.calendar-day:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 2px;
}

.calendar-legend {
  margin: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.legend-dot.is-available {
  background: var(--cyan-signature);
  border-color: var(--cyan-signature);
}

.legend-dot.is-full {
  background: oklch(0.82 0.18 25 / 0.55);
  border-color: oklch(0.82 0.18 25 / 0.55);
}

.legend-dot.is-closed {
  background: transparent;
}

/* Slots panel */
.slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  border-left: 1px solid var(--line-soft);
  padding-left: clamp(14px, 2vw, 22px);
}

.slots-label {
  margin: 0;
  font-size: var(--body-sm);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.slots-label strong {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 92, "opsz" 36;
  font-size: 1.1rem;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--text-primary);
  margin-top: 2px;
}

.slots-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: oklch(1 0 0 / 0.03);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color var(--dur-fast) var(--ease-out-quart),
    background-color var(--dur-fast) var(--ease-out-quart),
    color var(--dur-fast) var(--ease-out-quart);
}

.slot:hover:not([disabled]) {
  border-color: var(--cyan-signature);
  background: oklch(0.68 0.18 220 / 0.08);
}

.slot:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 2px;
}

.slot.is-selected {
  border-color: var(--cyan-signature);
  background: oklch(0.68 0.18 220 / 0.14);
}

.slot[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.slot-time {
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 92, "opsz" 24;
  font-size: 1.05rem;
}

.slot-course {
  color: var(--text-muted);
  font-size: var(--body-sm);
}

.slot-state {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.slot.is-full .slot-state {
  color: oklch(0.82 0.18 25);
}

.slot.is-selected .slot-state {
  color: var(--cyan-signature);
}

.slots-empty {
  padding: 18px 14px;
  border: 1px dashed var(--line-soft);
  border-radius: 12px;
  color: var(--text-soft);
  font-size: var(--body-sm);
}

/* Step 2 chip */
.booking-summary-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px solid var(--cyan-signature);
  background: oklch(0.68 0.18 220 / 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: var(--body-sm);
}

.booking-summary-chip strong {
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 92, "opsz" 24;
  font-size: 1.05rem;
}

.booking-summary-chip .chip-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan-signature);
  flex-shrink: 0;
}

.booking-summary-chip button {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--cyan-signature);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

/* Override booking-form inside dialog: no blur card */
.booking-dialog .booking-form {
  border: 0;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
}

/* Step 3 confirmation */
.booking-confirm {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.booking-confirm-kicker {
  margin: 0;
  font-size: var(--label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-signature);
}

.booking-confirm h3 {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 88, "opsz" 96;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.booking-confirm-lede {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--body-lg);
  max-width: 56ch;
}

.booking-recap {
  margin: 4px 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  row-gap: 8px;
  column-gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: oklch(1 0 0 / 0.025);
  width: 100%;
  max-width: 520px;
}

.booking-recap dt {
  font-size: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.booking-recap dd {
  margin: 0;
  color: var(--text-primary);
  font-size: var(--body-md);
}

.booking-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.booking-confirm-foot {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--text-soft);
  max-width: 56ch;
}

body.dialog-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .booking-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    inset: 0;
    margin: 0;
  }

  .booking-dialog-inner {
    border-radius: 0;
    border: 0;
    max-height: 100dvh;
  }

  .booking-step {
    grid-template-columns: 1fr;
    padding: 18px 18px 0;
  }

  .slots {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding-left: 0;
    padding-top: 16px;
  }

  .booking-stepper {
    margin: 14px 18px 0;
    font-size: 0.78rem;
  }

  .booking-stepper li {
    gap: 6px;
    padding-bottom: 10px;
  }

  .booking-dialog-head {
    padding: 18px 18px 0;
  }

  .booking-step-foot {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 14px 0 18px;
  }

  .booking-step-foot .btn {
    width: 100%;
    justify-content: center;
  }

  .booking-confirm-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-confirm-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-dialog[open],
  .booking-dialog[open]::backdrop {
    animation: none;
  }
}

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-soft);
}

.faq-list details {
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
  transition: border-color var(--dur-mid) var(--ease-out-quart);
}

.faq-list details[open] {
  border-bottom-color: var(--cyan-deep);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: var(--body-lg);
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out-quart);
}

.faq-list summary:hover {
  color: var(--cyan-signature);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  width: 14px;
  height: 14px;
  border-right: 1px solid var(--cyan-signature);
  border-bottom: 1px solid var(--cyan-signature);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur-mid) var(--ease-out-quint),
    border-color var(--dur-fast) var(--ease-out-quart);
}

.faq-list summary:hover::after {
  border-color: var(--text-primary);
}

.faq-list details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.faq-list details p {
  margin: 14px 0 0;
  color: var(--text-muted);
  max-width: 64ch;
  animation: faq-content-in var(--dur-mid) var(--ease-out-quart);
}

@keyframes faq-content-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ALLIEVE ===== */
.allieve-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.testimonials figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonials blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 90, "opsz" 48;
  font-size: 1.2rem;
  line-height: 1.42;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  position: relative;
  padding-top: 0.9em;
  hanging-punctuation: first;
}

.testimonials blockquote::before {
  content: "\201C";
  position: absolute;
  left: -0.08em;
  top: -0.32em;
  font-family: var(--font-display);
  font-variation-settings: "wght" 700, "wdth" 78, "opsz" 96;
  font-size: 6.2em;
  line-height: 1;
  color: var(--cyan-signature);
  opacity: 0.26;
  pointer-events: none;
  user-select: none;
}

.testimonials figcaption {
  font-size: var(--body-sm);
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ===== LOCATION ===== */
.location-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: stretch;
}

.location-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.address {
  font-family: var(--font-display);
  font-variation-settings: "wght" 500, "wdth" 96, "opsz" 36;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

.map-wrap {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-soft);
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  filter: grayscale(0.5) contrast(0.95) brightness(0.85);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 60px 20px 70px;
  border-top: 1px solid var(--line-soft);
  background: oklch(0.08 0.018 230 / 0.92);
  backdrop-filter: blur(10px);
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer h3 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan-signature);
  font-weight: 600;
  font-variation-settings: normal;
}

.footer p,
.footer a {
  margin: 0 0 6px;
  font-size: var(--body-sm);
  color: var(--text-muted);
}

.footer a:hover {
  color: var(--cyan-signature);
}

/* ===== MOBILE NAV (hamburger + drawer) ===== */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: oklch(1 0 0 / 0.04);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.menu-toggle:hover,
.menu-toggle[aria-expanded="true"] {
  border-color: var(--cyan-deep);
  background: oklch(1 0 0 / 0.08);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 999px;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: oklch(0.08 0.018 230 / 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(420px, 88vw);
  padding: 24px 0;
}

.mobile-drawer a {
  font-family: var(--font-display);
  font-variation-settings: "wght" 600, "wdth" 92, "opsz" 48;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  padding: 6px 0;
  transition: color 200ms ease, transform 200ms ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mobile-drawer a:hover {
  color: var(--cyan-signature);
  transform: translateX(4px);
}

.mobile-drawer .btn {
  font-family: var(--font-body);
  font-size: var(--body-md);
  letter-spacing: 0;
  align-self: flex-start;
  margin-top: 12px;
  padding: 13px 24px;
  text-transform: none;
}

.mobile-drawer-ig {
  font-family: var(--font-body) !important;
  font-size: var(--body-sm) !important;
  color: var(--text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-top: 20px;
  font-variation-settings: normal !important;
}

/* Sticky bottom CTA (mobile only) */
.mobile-cta {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 24;
  background: var(--cyan-signature);
  color: var(--bg-deep);
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  font-weight: 600;
  font-size: var(--body-md);
  box-shadow: var(--shadow-strong);
  min-height: 56px;
  align-items: center;
  justify-content: center;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms ease;
}

.mobile-cta.is-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

/* Body lock when drawer open */
body.no-scroll {
  overflow: hidden;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet wide (1024-1100): hybrid */
@media (max-width: 1100px) {
  .schedule-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .testimonials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-marker {
    font-size: 0.7rem;
  }
}

/* Tablet (768-1024): two-col layouts collapse selectively */
@media (max-width: 1024px) {
  .menu {
    display: none;
  }
  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }
  .topbar-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .mobile-drawer {
    display: flex;
  }
}

/* Tablet portrait (768-1024) */
@media (max-width: 1024px) and (min-width: 768px) {
  .manifesto-grid,
  .coach-grid,
  .percorsi-head,
  .orari-head,
  .booking-grid,
  .faq-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .testimonials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .schedule-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  body {
    padding-bottom: 90px;
  }
  .topbar {
    top: 10px;
    border-radius: 16px;
    padding: 8px 8px 8px 16px;
  }
  .logo span {
    font-size: 1.2rem;
  }
  .logo em {
    font-size: 0.58rem;
  }
  .menu {
    display: none;
  }
  .hero {
    padding-top: 110px;
    padding-bottom: 130px;
  }
  .hero-marker {
    top: 100px;
    right: 18px;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }
  .hero-tag {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }
  h1 .line:nth-child(2) {
    padding-left: 18px;
  }
  .emph {
    padding-left: 32px;
  }
  .hero-meta {
    gap: 12px 16px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
  .scroll-hint {
    display: none;
  }

  .manifesto-grid,
  .coach-grid,
  .percorsi-head,
  .orari-head,
  .booking-grid,
  .faq-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .info-list,
  .field-row {
    grid-template-columns: 1fr;
  }
  .schedule-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .schedule-day {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 16px;
  }
  .schedule-day .day-label {
    min-width: 88px;
    margin-bottom: 0;
  }
  .testimonials {
    grid-template-columns: 1fr;
  }
  .percorso {
    grid-template-columns: 46px 1fr;
    gap: 18px;
    padding: 26px 0;
  }
  .percorso-num {
    font-size: 1.4rem;
  }
  .percorso-meta {
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 1px solid var(--line-soft);
    grid-template-columns: 84px 1fr;
    column-gap: 14px;
  }
  .booking-form {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    font-size: 16px; /* prevent iOS zoom on focus */
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel {
    padding: 84px 0;
  }
  .mobile-cta {
    display: flex;
  }
  .mobile-drawer-inner {
    width: min(420px, 90vw);
  }
  .map-frame,
  .map-wrap {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .hero-marker {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
  }
}

@media (hover: none) and (pointer: coarse) {
  /* Touch devices: remove hover transforms that look broken on tap */
  .btn:hover,
  .schedule-day:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
