/* =========================================================
   Odissea Verticale — palette del logo ufficiale (viola
   montagna, antracite, bianco divisore), in due temi.
   Il tema segue automaticamente le impostazioni del dispositivo
   (prefers-color-scheme): scuro di default, chiaro se il sistema
   è impostato su chiaro. Nessun toggle manuale.
   ========================================================= */

:root {
  --bg:          #0f0c12;
  --bg-alt:      #151119;
  --surface:     #1c1621;
  --surface-2:   #241c2c;
  --border:      #322a3b;
  --border-2:    #453a51;
  --text:        #ece9e3;
  --muted:       #a79dae;
  --muted-2:     #77697f;
  --accent:       #8a0f94;
  --accent-light: #d791ea;
  --accent-soft:  rgba(138, 15, 148, .22);
  --on-accent:    #ffffff;
  --ok:          #46b45f;
  --danger:      #ef6b6b;
  --header-bg:   rgba(15, 12, 18, .84);

  /* Fisse: usate solo sopra le foto (hero, page-hero), non seguono il tema chiaro/scuro
     perché quelle sezioni hanno sempre uno scrim scuro sopra l'immagine. */
  --on-photo-text:   #f5f2f8;
  --on-photo-muted:  #cdc3d4;
  --on-photo-accent: #e3b3f0;

  --radius:   16px;
  --radius-sm: 10px;
  --shadow:   0 18px 50px -20px rgba(0, 0, 0, .7);
  --maxw:     1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: "Segoe Script", "Bradley Hand", "Brush Script MT", cursive;

  color-scheme: dark;
}

/* =========================================================
   Tema chiaro — si attiva da solo quando il sistema operativo
   dell'utente è impostato su "chiaro" (nessun toggle manuale:
   il sito segue le impostazioni del dispositivo). Stessa viola
   del logo, ricalibrato per restare leggibile su fondo chiaro.
   ========================================================= */
@media (prefers-color-scheme: light) {
  :root {
    --bg:          #faf8fb;
    --bg-alt:      #f2eef6;
    --surface:     #fdfcfe;
    --surface-2:   #f4eff8;
    --border:      #e3dce9;
    --border-2:    #cfc3d7;
    --text:        #1c1621;
    --muted:       #5c5164;
    --muted-2:     #7d7286;
    --accent:       #740c7d;
    --accent-light: #8a0f94;
    --accent-soft:  rgba(122, 16, 132, .12);
    --on-accent:    #ffffff;
    --header-bg:    rgba(250, 248, 251, .82);
    --ok:           #1f7a34;
    --danger:       #c42a2a;

    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.1; margin: 0; text-wrap: balance; }

.icon { width: 1.25em; height: 1.25em; fill: none; display: inline-block; vertical-align: middle; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 780px; }

/* ---------- Eyebrow / titoli ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--muted-2);
  margin: 0 0 12px;
}
.eyebrow.accent { color: var(--accent-light); }

.section-title {
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-sub { color: var(--muted); margin: 14px 0 0; font-size: 1.06rem; }
.prose { color: var(--muted); font-size: 1.08rem; margin: 0 0 18px; }
.prose strong { color: var(--text); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--accent-light), var(--accent)); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-light); color: var(--accent-light); }
.btn .icon { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { height: 32px; display: inline-flex; align-items: center; }
.brand-mark img, .brand-mark svg { height: 100%; width: auto; display: block; }
/* Il logo ha una sagoma antracite che si confonde con lo sfondo scuro dell'header:
   un doppio drop-shadow chiaro le ridà un bordo leggibile, sia in tema scuro che chiaro. */
.brand-mark img {
  filter:
    drop-shadow(0 0 1px rgba(255,255,255,.55))
    drop-shadow(0 0 5px rgba(255,255,255,.16));
}
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-text b { font-weight: 800; letter-spacing: .12em; font-size: .95rem; color: var(--text); }
.brand-text .brand-sub { font-weight: 800; letter-spacing: .18em; font-size: .7rem; color: var(--accent-light); margin-top: 3px; }
.brand-text .brand-script {
  font-family: var(--font-script); font-style: italic; font-weight: 400; font-size: .88rem; letter-spacing: .01em;
  color: var(--muted); margin-top: 2px; line-height: 1;
}

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 9px 13px; border-radius: 8px; font-size: .95rem; font-weight: 600;
  color: var(--muted); transition: color .18s ease, background .18s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); background: var(--surface); }
.site-nav a.nav-cta { background: var(--accent-soft); color: var(--accent-light); }
.site-nav a.nav-cta:hover { background: var(--accent); color: var(--on-accent); }

.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(70px, 12vw, 130px) 0 76px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 30%; opacity: .5;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,12,18,.92) 0%, rgba(15,12,18,.55) 42%, rgba(15,12,18,.2) 68%),
    linear-gradient(180deg, transparent 55%, var(--bg) 96%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(138, 15, 148, .26), transparent 60%),
    radial-gradient(760px 520px at 6% 12%, rgba(60, 30, 80, .22), transparent 58%),
    linear-gradient(180deg, #120e17 0%, var(--bg) 68%);
}
/* trama topografica sottile */
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%232a2030' stroke-width='1'%3E%3Cpath d='M-20 40 C 20 10, 60 70, 120 40 S 180 10, 220 40'/%3E%3Cpath d='M-20 80 C 20 50, 60 110, 120 80 S 180 50, 220 80'/%3E%3Cpath d='M-20 120 C 20 90, 60 150, 120 120 S 180 90, 220 120'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
  font-size: clamp(2.9rem, 11vw, 6rem);
  font-weight: 900; letter-spacing: -.02em; margin: 6px 0 0;
}
.hero-title { color: var(--on-photo-text); }
.hero-title span { color: var(--on-photo-accent); letter-spacing: .04em; text-shadow: 0 2px 28px rgba(215, 145, 234, .35); }
.hero-lead { max-width: 560px; margin: 22px 0 0; font-size: 1.18rem; color: var(--on-photo-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .eyebrow { color: var(--on-photo-muted); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 54px; max-width: 720px;
}
.stat {
  background: linear-gradient(180deg, rgba(36, 28, 44, .82), rgba(28, 22, 33, .55));
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 18px 16px;
  backdrop-filter: blur(6px);
}
.stat-value { font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 800; color: var(--on-photo-accent); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .84rem; color: var(--on-photo-muted); margin-top: 8px; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(64px, 10vw, 100px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Proprietarie ---------- */
.owners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.owner-card {
  display: flex; gap: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.owner-avatar {
  flex: 0 0 auto; width: 82px; height: 82px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.7rem; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .14);
}
.owner-info h3 { font-size: 1.28rem; font-weight: 800; }
.owner-role { color: var(--accent-light); font-weight: 600; font-size: .92rem; margin: 4px 0 12px; }
.owner-bio { color: var(--muted); font-size: .98rem; margin: 0; max-width: 46ch; }

/* ---------- Strutture ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); border-color: var(--border-2); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-light); margin-bottom: 16px;
}
.feature-icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Le vie: gruppi per tipo (placca / strapiombo) ---------- */
.route-groups { display: grid; gap: 48px; }
.route-group-head { max-width: 640px; margin-bottom: 20px; }
.route-group-title { font-size: 1.4rem; font-weight: 800; }
.route-group-blurb { color: var(--muted); margin: 8px 0 0; font-size: .98rem; }
.route-list { display: grid; gap: 12px; }

.grade-badge {
  flex: 0 0 auto; font-weight: 800; font-size: .95rem; padding: 6px 12px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-light); border: 1px solid rgba(138, 15, 148, .38);
  font-variant-numeric: tabular-nums;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px;
}
.chip .swatch { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }

/* Riga via: intera riga è il trigger che espande recensioni + form sotto, inline (niente modal). */
.route-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .18s ease; }
.route-row.is-open { border-color: var(--border-2); }
.route-row-trigger {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: none; border: none; cursor: pointer; text-align: left; color: inherit; font: inherit;
  border-radius: var(--radius);
}
.route-row-trigger:hover { background: var(--surface-2); }
.route-row-trigger:focus-visible { outline: 2px solid var(--accent-light); outline-offset: -2px; }
.route-swatch { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.route-row-main { flex: 1 1 auto; min-width: 0; }
.route-row-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.route-row-name { font-size: 1.15rem; font-weight: 800; }
.route-row-height { color: var(--muted-2); font-size: .84rem; font-variant-numeric: tabular-nums; }
.route-row-desc { color: var(--muted); font-size: .92rem; margin: 5px 0 0; }
.route-row-stats { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.route-row-chevron { width: 18px; height: 18px; color: var(--muted-2); transition: transform .2s ease; flex: 0 0 auto; }
.route-row.is-open .route-row-chevron { transform: rotate(90deg); }
.rating-num { font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.rating-count { color: var(--muted-2); font-size: .85rem; }

.route-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.route-row.is-open .route-panel { grid-template-rows: 1fr; }
.route-panel-inner { overflow: hidden; min-height: 0; }
.route-panel-inner > div { padding: 4px 20px 26px; border-top: 1px solid var(--border); }
@media (max-width: 560px) {
  .route-row-trigger { flex-wrap: wrap; }
  .route-row-stats { width: 100%; justify-content: space-between; padding-left: 30px; }
}

.route-gallery { display: flex; gap: 10px; overflow-x: auto; padding: 16px 0 6px; margin: 0; }
.route-gallery-item {
  flex: 0 0 auto; width: 150px; height: 104px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2); display: block;
}
.route-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.route-gallery-item:hover img { transform: scale(1.05); }

/* ---------- Stelle (display) ---------- */
.stars {
  position: relative; display: inline-block; font-size: 1.02rem; line-height: 1;
  font-family: Arial, sans-serif; white-space: nowrap;
}
.stars::before { content: "★★★★★"; letter-spacing: 3px; color: var(--border-2); }
.stars .stars-fill {
  position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; width: 0;
}
.stars .stars-fill::before { content: "★★★★★"; letter-spacing: 3px; color: var(--accent-light); }

/* ---------- Corsi ---------- */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.course {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.course-check {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(70, 180, 95, .14); color: var(--ok); margin-bottom: 14px;
}
.course h3 { font-size: 1.14rem; font-weight: 700; margin-bottom: 8px; }
.course p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- Orari ---------- */
.hours-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px;
}
.hours-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent-light);
  display: grid; place-items: center;
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: 1.02rem; }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table .day { font-weight: 600; }
.hours-table .time { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours-table tr.is-today td { color: var(--accent-light); }
.hours-table tr.is-today .day::after {
  content: "oggi"; margin-left: 10px; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  background: var(--accent-soft); color: var(--accent-light); padding: 2px 8px; border-radius: 999px; vertical-align: middle;
}
.hours-note { color: var(--muted-2); font-size: .88rem; margin: 18px 0 0; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.contact-list li {
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.contact-list .icon { width: 24px; height: 24px; color: var(--accent-light); flex: 0 0 auto; }
.contact-list span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); }
.contact-list a, .contact-list div > :not(span) { color: var(--text); font-weight: 600; }
.contact-list a:hover, .contact-list a:focus-visible { color: var(--accent-light); }

/* Mappa incorporata (Google Maps) */
.map-embed {
  position: relative; border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; min-height: 260px; background: var(--surface-2);
}
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 260px; }
.map-embed-link {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(15, 12, 18, .88); backdrop-filter: blur(6px);
  border: 1px solid var(--border-2); border-radius: 999px;
  padding: 9px 16px; font-size: .84rem; font-weight: 700; color: var(--text);
  transition: border-color .18s ease, color .18s ease;
}
.map-embed-link:hover, .map-embed-link:focus-visible { color: var(--accent-light); border-color: var(--accent-light); }
.map-embed-link .icon { width: 1.05em; height: 1.05em; color: var(--accent-light); }

/* Card di fallback (usata quando l'iframe non può caricare, es. anteprime sandboxed) */
.map-card {
  border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden;
  background:
    radial-gradient(120px 120px at 70% 30%, rgba(138, 15, 148, .22), transparent 70%),
    repeating-linear-gradient(45deg, #171320 0 14px, #1a1520 14px 28px);
  display: grid; place-items: center; min-height: 220px; transition: border-color .18s ease;
}
.map-card:hover, .map-card:focus-visible { border-color: var(--accent-light); }
.map-card-inner { text-align: center; padding: 20px; }
.map-card-inner .icon { width: 40px; height: 40px; color: var(--accent-light); }
.map-card-inner span { display: block; font-weight: 700; margin-top: 10px; }
.map-card-inner small { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 52px 0 26px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
.footer-brand p { color: var(--muted-2); font-size: .9rem; margin: 12px 0 0; }
.footer-brand .brand-text b { font-size: 1.05rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a { color: var(--muted); font-size: .95rem; }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--accent-light); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: .86rem;
}
.footer-social { display: inline-flex; gap: 10px; }
.footer-social a { color: var(--muted); }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--accent-light); }
.footer-social .icon { width: 22px; height: 22px; }

.reviews-list { display: grid; gap: 12px; margin: 20px 0 6px; }
.review {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 15px 17px;
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.review-author { font-weight: 700; }
.review-date { color: var(--muted-2); font-size: .8rem; }
.review-sub { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-comment { color: var(--muted); margin: 0; font-size: .96rem; }
.diff-chip { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--muted); }
.diff-facile { color: var(--ok); border-color: rgba(70, 180, 95, .4); }
.diff-dura { color: var(--danger); border-color: rgba(239, 107, 107, .4); }
.reviews-empty { color: var(--muted-2); font-style: italic; margin: 16px 0; }

/* ---------- Form recensione ---------- */
.review-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.review-form h4 { font-size: 1.1rem; margin: 0 0 16px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.field input[type="text"], .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--border-2); border-radius: 10px;
  color: var(--text); padding: 11px 13px; font: inherit; resize: vertical;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible,
.star-input button:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 1px; }
.field textarea { min-height: 84px; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 200px; }

.star-input { display: inline-flex; gap: 4px; }
.star-input button {
  background: none; border: none; cursor: pointer; padding: 2px; font-size: 1.9rem; line-height: 1;
  color: var(--border-2); transition: color .12s ease, transform .12s ease;
}
.star-input button:hover { transform: scale(1.12); }
.star-input button[aria-checked="true"], .star-input.hovering button.hot { color: var(--accent-light); }

.form-error { color: var(--danger); font-size: .86rem; margin: 4px 0 0; min-height: 1.1em; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.form-success {
  display: none; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; font-size: .92rem;
}
.form-success.show { display: inline-flex; animation: fade .3s ease; }
.form-success .icon { width: 1.2em; height: 1.2em; }

/* ---------- Nav: stato attivo (multi-pagina) ---------- */
.site-nav a.is-active { color: var(--text); background: var(--surface); }
.site-nav a.nav-cta.is-active { background: var(--accent); color: var(--on-accent); }

/* ---------- Breadcrumb / rientro ---------- */
.crumb {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted);
  font-size: .9rem; font-weight: 600; margin-bottom: 22px;
}
.crumb .icon { width: 1em; height: 1em; transform: rotate(180deg); }
.crumb:hover, .crumb:focus-visible { color: var(--accent-light); }

/* ---------- Page hero (sotto-pagine) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(96px, 14vw, 150px) 0 56px; border-bottom: 1px solid var(--border); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); opacity: .34; }
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  /* Fissa (non segue il tema): la sezione ha sempre una foto scura sotto,
     quindi resta scura anche in tema chiaro — il testo sopra usa i colori
     --on-photo-* fissi per restare leggibile in entrambi i temi. */
  background: linear-gradient(180deg, rgba(15,12,18,.6) 0%, #17121d 92%);
}
.page-hero-title { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 900; letter-spacing: -.01em; margin: 4px 0 0; }
.page-hero-lead { max-width: 620px; margin: 16px 0 0; font-size: 1.1rem; color: var(--muted); }

/* Varianti con foto di sfondo: testo fisso chiaro, la sezione resta scura
   indipendentemente dal tema (c'è sempre uno scrim scuro sopra l'immagine). */
.page-hero-photo .page-hero-title { color: var(--on-photo-text); }
.page-hero-photo .page-hero-lead { color: var(--on-photo-muted); }
.page-hero-photo .eyebrow { color: var(--on-photo-muted); }
.page-hero-photo .eyebrow.accent { color: var(--on-photo-accent); }
.page-hero-photo .crumb { color: var(--on-photo-muted); }
.page-hero-photo .crumb:hover, .page-hero-photo .crumb:focus-visible { color: var(--on-photo-accent); }

/* ---------- Frame immagine (foto reali) ---------- */
.media-frame {
  border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden;
  background: var(--surface-2); position: relative;
}
.media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-frame.ratio-square { aspect-ratio: 1 / 1; }
.media-frame.ratio-wide { aspect-ratio: 16 / 10; }
.media-frame.ratio-tall { aspect-ratio: 3 / 4; }
.media-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 12px;
  font-size: .82rem; color: #f2eef7; background: linear-gradient(0deg, rgba(8,6,10,.82), transparent);
}

/* ---------- Split: testo + media ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.split.reverse { grid-template-columns: .95fr 1.05fr; }
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }

/* ---------- Strutture: foto in evidenza + card icona, non tutte identiche ---------- */
.feature-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.feature-photo { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 5 / 4; }
.feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-photo .feature-photo-body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px;
  background: linear-gradient(0deg, rgba(8,6,10,.88) 20%, transparent 100%);
}
.feature-photo h3 { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.feature-photo p { color: #d8d0de; font-size: .9rem; margin: 0; }
@media (max-width: 620px) {
  .feature-photos { grid-template-columns: 1fr; }
  .feature-photo { aspect-ratio: 16 / 10; }
}

/* ---------- Quote / voce diretta ---------- */
.quote-block { max-width: 720px; padding: 6px 0 6px 24px; border-left: 3px solid var(--accent); }
.quote-block p { font-size: 1.3rem; line-height: 1.45; color: var(--text); margin: 0 0 12px; font-weight: 500; }
.quote-block cite { font-style: normal; color: var(--muted); font-size: .92rem; }

/* ---------- Team note (istruttori / ruoli, non in card) ---------- */
.team-notes { display: grid; gap: 2px; margin-top: 8px; border-top: 1px solid var(--border); }
.team-note { display: grid; grid-template-columns: 200px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.team-note dt { font-weight: 700; color: var(--text); }
.team-note dt span { display: block; font-weight: 600; font-size: .82rem; color: var(--accent-light); margin-top: 2px; }
.team-note dd { margin: 0; color: var(--muted); }
@media (max-width: 620px) { .team-note { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Orario corsi (tabelle per fascia d'età) ---------- */
.schedule-block { margin-bottom: 34px; }
.schedule-block h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.schedule-block .schedule-when { color: var(--accent-light); font-size: .84rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.schedule-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.schedule-table th, .schedule-table td { padding: 12px 16px; text-align: left; font-size: .95rem; }
.schedule-table th { background: var(--surface-2); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.schedule-table td { border-top: 1px solid var(--border); color: var(--text); }
.schedule-table td.muted { color: var(--muted); }
.schedule-table-wrap { overflow-x: auto; }
.schedule-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 34px; align-items: start; }
@media (max-width: 780px) { .schedule-columns { grid-template-columns: 1fr; } }

/* ---------- Callout con foto (prova gratuita / feste) ---------- */
.callout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.callout .media-frame { border: none; border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 220px; }
.callout-body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.callout-body h3 { font-size: 1.3rem; font-weight: 800; }
.callout-body p { color: var(--muted); margin: 0; }
.callout-body .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 720px) { .callout { grid-template-columns: 1fr; } .callout .media-frame { aspect-ratio: 16/10; min-height: 0; } }

/* ---------- Prezzi / abbonamenti ---------- */
.price-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 8px; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.price-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.price-card .price-note { color: var(--muted); font-size: .88rem; margin: 0 0 16px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.price-row:first-of-type { border-top: none; }
.price-row .price-label { color: var(--text); font-size: .96rem; }
.price-row .price-value { font-weight: 800; color: var(--accent-light); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-fineprint { color: var(--muted-2); font-size: .86rem; margin-top: 18px; max-width: 65ch; }

/* ---------- Galleria ---------- */
.gallery-grid { columns: 3 260px; column-gap: 18px; }
.gallery-grid figure { break-inside: avoid; margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.gallery-grid img { display: block; width: 100%; height: auto; }
.gallery-grid figcaption { padding: 12px 14px; color: var(--muted); font-size: .85rem; }
@media (max-width: 620px) { .gallery-grid { columns: 1 100%; } }

/* ---------- Eventi ---------- */
.events-list { display: grid; gap: 22px; }
.event-card { display: grid; grid-template-columns: 220px 1fr; gap: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.event-card .media-frame { border: none; border-radius: 0; aspect-ratio: 3 / 4; }
.event-card .media-frame img { position: absolute; inset: 0; }
.event-card-body { padding: 22px 24px 22px 0; }
.event-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.event-date { color: var(--accent-light); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.event-card p { color: var(--muted); margin: 10px 0 0; }
@media (max-width: 620px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card .media-frame { aspect-ratio: 16/9; }
  .event-card-body { padding: 18px; }
}

/* ---------- Footer: dati legali ---------- */
.legal-fineprint { color: var(--muted-2); font-size: .78rem; margin-top: 6px; }

/* ---------- Animazioni ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-nav {
    position: fixed; top: 68px; right: 0; left: 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 14px 22px 20px;
    transform: translateY(-140%); transition: transform .28s ease; box-shadow: var(--shadow);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 12px 14px; }
  .nav-toggle { display: grid; place-items: center; }
  .owners-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split .split-media, .split.reverse .split-media { order: -1; }
}

@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .owner-card { flex-direction: column; gap: 14px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .map-embed, .map-embed iframe { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
