/* =========================================================
   Polisportiva Art Moving — style.css
   Mobile-first, con adattamento tablet (≥40rem) e desktop
   (≥60rem). Base neutra; blu e giallo come dettagli
   (filetti separatori, kicker, bordi, stati attivi).
   ========================================================= */

/* -------- Font (self-hosted) -------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/poppins-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/poppins-700.woff2") format("woff2");
}

/* -------- Design tokens -------- */
:root {
  --bg: #ffffff;
  --surface: #f7f7f5;
  --ink: #1a1a1a;
  --ink-soft: #5b5b5b;
  --ink-faint: #8a8a86;
  --line: #e6e6e2;

  /* accenti */
  --blue: #2d5dbf;
  --blue-deep: #1b2a5e;
  --blue-tint: #e9f0fc;
  --blue-wash: #f2f6fd;
  --yellow: #d9b64a;
  --yellow-tint: #fbf3dc;

  --pending-bg: #fdf8ea;
  --pending-line: #e6cf8f;

  --container: 30rem;      /* ~480px */
  --header-h: 3.5rem;      /* 56px */

  --radius: 12px;
  --radius-sm: 9px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* -------- Reset -------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }

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

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

/* -------- Layout primitives -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: 3.25rem; }
.section + .section { border-top: 1px solid var(--line); }
.section:target { scroll-margin-top: calc(var(--header-h) + 0.5rem); }

/* kicker: piccola etichetta di sezione con marcatore blu/giallo */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.85rem;
}
.kicker::before {
  content: "";
  width: 2rem;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue) 55%, var(--yellow) 55%);
  flex: none;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* filetti decorativi rimossi su richiesta */
.filet,
.hero__filet,
.landing__filet { display: none; }

.lead,
.about__text {
  margin-top: 1.15rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* -------- Segnaposto (contenuti da completare) -------- */
.pending {
  display: block;
  margin-top: 0.9rem;
  padding: 0.7rem 0.85rem;
  background: var(--pending-bg);
  border: 1px dashed var(--pending-line);
  border-radius: var(--radius-sm);
  color: #7a6321;
  font-size: 0.86rem;
  line-height: 1.5;
}
.pending::before {
  content: "Da completare";
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #3a2f0c;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.08em;
}

/* -------- Header -------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(8px);
  -webkit-backdrop-filter: saturate(1.6) blur(8px);
  border-bottom: 1px solid var(--line);
}
/* filo colorato in cima alla pagina */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--yellow) 85%);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}
.brand img { width: 2rem; height: 2rem; }
.brand span { color: var(--ink); }
.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* hamburger */
.nav-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.nav-toggle:hover { border-color: var(--blue); }
.nav-toggle svg { width: 1.15rem; height: 1.15rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* mobile menu panel */
.site-nav {
  position: absolute;
  inset: 100% 0 auto 0;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.25);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.site-nav ul { padding: 0.5rem 1.25rem 1.25rem; }
.site-nav li + li { border-top: 1px solid var(--line); }
.site-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 0.25rem;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
}
.site-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  flex: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.site-nav a:hover::before { background: var(--yellow); }
.site-nav a.is-active { color: var(--blue); }
.site-nav a.is-active::before { background: var(--blue); transform: scale(1.3); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(20, 20, 20, 0.32);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0.22s;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

body.nav-open { overflow: hidden; }

/* -------- Buttons -------- */
.btn {
  --_bg: var(--blue);
  --_fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  background: var(--_bg);
  color: var(--_fg);
  border: 1.5px solid var(--_bg);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(45, 93, 191, 0.7); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --_bg: transparent;
  --_fg: var(--blue);
  border-color: var(--blue);
}
.btn--ghost:hover { background: rgba(45, 93, 191, 0.06); box-shadow: none; }
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn--block { display: flex; width: 100%; }

/* pulsanti cross-link: colore della scuola di destinazione (indipendenti dal tema) */
.btn--to-gym { --_bg: #d9b64a; --_fg: #33280a; border-color: #d9b64a; }
.btn--to-gym:hover { box-shadow: 0 10px 22px -12px rgba(138, 106, 18, 0.5); }
.btn--to-calcio { --_bg: #2d5dbf; --_fg: #fff; border-color: #2d5dbf; }
.btn--to-calcio:hover { box-shadow: 0 10px 22px -12px rgba(45, 93, 191, 0.6); }

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.link-inline:hover { border-color: currentColor; }
.link-inline svg { width: 0.9rem; height: 0.9rem; }

/* =========================================================
   LANDING (index.html)
   ========================================================= */
.landing {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.landing::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 10;
  background: linear-gradient(90deg, var(--blue), var(--yellow) 85%);
}
.landing__main {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.25rem 2.5rem;
  overflow: hidden;
}
.landing__main::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 8%;
  width: min(30rem, 118%);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  background:
    radial-gradient(42% 42% at 32% 30%, rgba(45, 93, 191, 0.26), transparent 70%),
    radial-gradient(40% 40% at 70% 26%, rgba(217, 182, 74, 0.30), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.landing__logo {
  width: 11rem;
  height: 11rem;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.12));
}
.landing__title {
  margin-top: 1.6rem;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.landing__title b { color: var(--blue-deep); font-weight: 700; }
.landing__sub {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.landing__choices {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  max-width: 21rem;
  margin-top: 2.6rem;
}
.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  transition: transform 0.16s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.choice:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 16px 30px -20px rgba(0, 0, 0, 0.28);
}
.choice__label { font-weight: 600; font-size: 1.05rem; }
.choice__hint {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 0.1rem;
}
.choice__arrow {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--blue);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.choice:hover .choice__arrow { background: var(--yellow); color: var(--blue-deep); transform: translateX(2px); }
.choice__arrow svg { width: 0.9rem; height: 0.9rem; }
/* la scheda della palestra usa l'accento giallo */
.choice[href="/moving-gym-academy"] { border-left-color: var(--yellow); }
.choice[href="/moving-gym-academy"]:hover { border-color: var(--yellow); }
.choice[href="/moving-gym-academy"] .choice__arrow { color: #8a6a12; }
.choice[href="/moving-gym-academy"]:hover .choice__arrow { background: var(--yellow); color: #33280a; }

/* =========================================================
   HERO (pagine sezione)
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + 2.25rem);
  padding-bottom: 1.75rem;
  text-align: center;
  background: linear-gradient(180deg, var(--blue-wash) 0%, #ffffff 82%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* velo decorativo blu/giallo dietro il logo */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18% -25% 20% -25%;
  background:
    radial-gradient(58% 60% at 26% 18%, rgba(45, 93, 191, 0.28), transparent 72%),
    radial-gradient(54% 56% at 80% 12%, rgba(217, 182, 74, 0.30), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}
.hero__logo {
  width: 8.5rem;
  height: 8.5rem;
  margin: 0 auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.12));
}
.hero__title {
  margin-top: 1.15rem;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero__text {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
}
.hero__badges {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.badge {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #d3e0f6;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
}
.badge b { color: var(--blue); font-weight: 600; }
.hero__cta { margin-top: 1.8rem; }

/* =========================================================
   CHI SIAMO
   ========================================================= */
.about__text > p + p { margin-top: 0.9rem; }
.about__text { color: var(--ink-soft); }
.facts {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.1rem;
}
.facts li {
  display: flex;
  gap: 0.7rem;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.facts li + li { border-top: 1px solid var(--line); }
.facts li::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.52rem;
  border-radius: 2px;
  background: var(--yellow);
  border-left: 2px solid var(--blue);
}

/* =========================================================
   CATEGORIE
   ========================================================= */
.cat-list {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.8rem;
}
.cat {
  padding: 1.1rem 1.15rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cat:hover {
  border-color: var(--blue);
  box-shadow: 0 14px 30px -20px rgba(45, 93, 191, 0.4);
}
.cat__name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--blue-deep);
}
.cat__years {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  border: 1px solid #cfe0f7;
  color: var(--blue);
  background: var(--blue-tint);
}
.cat__meta {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 0.45rem;
}
.cat__row {
  display: flex;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.cat__row b { color: var(--ink); font-weight: 600; }
.cat__ic {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  color: var(--blue);
}

/* =========================================================
   STAFF (carosello)
   ========================================================= */
.staff {
  position: relative;
  background: var(--blue-wash);
}
.section.staff,
.section.staff + .section { border-top: 0; }
.staff__viewport {
  margin-top: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.staff__viewport::-webkit-scrollbar { display: none; }
.staff__track {
  display: flex;
  gap: 0.9rem;
  padding-bottom: 0.25rem;
}
.staff-card {
  flex: 0 0 80%;
  max-width: 17rem;
  scroll-snap-align: start;
}
.staff-card__photo {
  aspect-ratio: 680 / 963;
  background: #00133a;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 30px -18px rgba(0, 19, 58, 0.6);
}
.staff-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.staff-card__name {
  margin-top: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: -0.01em;
}
.staff-card__role {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.staff__controls {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.staff__dots {
  display: flex;
  gap: 0.4rem;
  flex: 1;
}
.staff__dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.staff__dots button[aria-current="true"] {
  background: var(--blue);
  transform: scale(1.35);
}
.staff__arrows { display: flex; gap: 0.5rem; }
.staff__arrows button {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.staff__arrows button:hover { border-color: var(--blue); }
.staff__arrows button:disabled { opacity: 0.35; cursor: not-allowed; }
.staff__arrows svg { width: 1rem; height: 1rem; }

/* =========================================================
   SEDI
   ========================================================= */
.venues {
  margin-top: 1.6rem;
  display: grid;
  gap: 1.6rem;
}
.venue__name {
  font-size: 1.1rem;
  font-weight: 600;
}
.venue__addr {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.venue__map {
  margin-top: 0.9rem;
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.venue__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  text-align: center;
}
.map-consent p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 18rem;
}
.map-consent__icon {
  width: 2rem; height: 2rem;
  color: var(--blue);
}
.venue__links {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  font-size: 0.9rem;
}

/* =========================================================
   CONTATTI
   ========================================================= */
.contact__actions {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.8rem;
}
.contact__note {
  margin-top: 1.8rem;
  display: grid;
  gap: 1.1rem;
}
.contact__note h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

/* -------- Social -------- */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem 0.55rem 0.7rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid #cfe0f7;
  transition: background 0.18s var(--ease), transform 0.15s var(--ease);
}
.social:hover { background: #dce8fb; transform: translateY(-1px); }
.social svg { width: 1.15rem; height: 1.15rem; flex: none; }

.socials--footer {
  margin-top: 1.5rem;
}
.socials--footer .social {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.socials--footer .social:hover { background: rgba(255, 255, 255, 0.18); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.66);
  padding-block: 2.75rem;
}
.site-footer__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-footer__top img { width: 2.6rem; height: 2.6rem; }
.site-footer__top b { font-weight: 600; font-size: 0.98rem; color: #fff; }
.site-footer__top small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.footer-nav {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover { color: #fff; border-color: var(--yellow); }
.site-footer__legal {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 0.55rem;
}
.site-footer__legal button {
  justify-self: start;
  font-size: 0.8rem;
  color: #cdd9f2;
  border-bottom: 1px solid transparent;
}
.site-footer__legal button:hover { border-color: currentColor; }
.foot-todo::before {
  content: "Da completare · ";
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 0.04em;
}

/* =========================================================
   CROSS-LINK — rimando all'altra scuola della Polisportiva
   ========================================================= */
.crosslink {
  padding-block: 3.25rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.crosslink--to-gym { background: #fdf9ec; }
.crosslink--to-calcio { background: #f2f6fd; }
.crosslink__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.crosslink__title {
  margin-top: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.crosslink .btn { margin-top: 1.4rem; }

/* =========================================================
   COOKIE / CONSENSO MAPPE
   ========================================================= */
.cookie-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 34px -24px rgba(0, 0, 0, 0.3);
  transform: translateY(110%);
  transition: transform 0.3s var(--ease);
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar .container {
  padding-block: 1.1rem;
  display: grid;
  gap: 0.9rem;
}
.cookie-bar p {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.cookie-bar strong { color: var(--ink); font-weight: 600; }
.cookie-bar__actions {
  display: flex;
  gap: 0.6rem;
}
.cookie-bar__actions .btn {
  flex: 1;
  padding: 0.7rem 0.6rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* =========================================================
   TEMA GINNASTICA — Moving Gym Academy
   Accento giallo/oro al posto del blu, per distinguere la
   pagina dalla Scuola Calcio.
   ========================================================= */
.theme-gym {
  --blue: #8a6a12;
  --blue-deep: #4a3c14;
  --blue-tint: #f8f0d9;
  --blue-wash: #fdf9ec;
}
.theme-gym .btn:not(.btn--ghost):not(.btn--to-calcio):not(.btn--to-gym) {
  --_bg: var(--yellow);
  --_fg: #33280a;
  border-color: var(--yellow);
}
.theme-gym .btn:not(.btn--to-calcio):hover { box-shadow: 0 10px 22px -12px rgba(138, 106, 18, 0.5); }
.theme-gym .btn--ghost:hover { background: rgba(138, 106, 18, 0.07); }
.theme-gym .badge { border-color: #ecdcae; }
.theme-gym .site-footer__legal button { color: #e8dcb6; }
.theme-gym .hero::before {
  background:
    radial-gradient(58% 60% at 26% 18%, rgba(217, 182, 74, 0.42), transparent 72%),
    radial-gradient(54% 56% at 80% 12%, rgba(166, 124, 20, 0.24), transparent 72%);
}

/* =========================================================
   TABLET  ≥ 40rem (640px)
   Il menu resta a scomparsa; iniziano le griglie a 2 colonne.
   ========================================================= */
@media (min-width: 40rem) {
  .container { max-width: 40rem; padding-inline: 2rem; }
  .section { padding-block: 4.25rem; }

  .hero__logo { width: 9.5rem; height: 9.5rem; }
  .hero__title { font-size: 2.5rem; }

  .landing__choices { flex-direction: row; max-width: 40rem; }
  .landing__choices .choice { flex: 1 1 0; }

  .cat-list { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .venues { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.75rem; }
  .contact__actions { grid-template-columns: 1fr 1fr; }
  .contact__actions .btn--block { width: 100%; }
}

/* =========================================================
   DESKTOP  ≥ 60rem (960px)
   Navigazione in linea, tipografia più ampia, layout esteso.
   ========================================================= */
@media (min-width: 60rem) {
  :root { --header-h: 4.25rem; }

  body { font-size: 1.05rem; }
  .container { max-width: 72rem; padding-inline: 2.5rem; }
  .section { padding-block: 5.5rem; }

  .section-title { font-size: 2rem; }
  .kicker { font-size: 0.72rem; margin-bottom: 1rem; }

  /* --- header: nav in linea --- */
  .nav-toggle { display: none; }
  .brand { font-size: 0.95rem; }
  .brand img { width: 2.2rem; height: 2.2rem; }
  .site-nav {
    position: static;
    z-index: auto;
    margin-left: auto;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .site-nav ul { display: flex; gap: 0.15rem; padding: 0; }
  .site-nav li + li { border-top: 0; }
  .site-nav a {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
  }
  .site-nav a::before { display: none; }
  .site-nav a:hover { background: var(--blue-tint); color: var(--blue); }
  .site-nav a.is-active { color: var(--blue); background: var(--blue-tint); }
  .nav-backdrop { display: none; }
  body.nav-open { overflow: auto; }

  /* --- hero --- */
  .hero {
    padding-top: calc(var(--header-h) + 4rem);
    padding-bottom: 3.75rem;
  }
  .hero::before { inset: -24% 4% 12% 4%; filter: blur(10px); }
  .hero__logo { width: 11.5rem; height: 11.5rem; }
  .hero__title { font-size: 3.15rem; margin-top: 1.4rem; }
  .hero__badges { margin-top: 1.9rem; gap: 0.6rem; }
  .badge { font-size: 0.82rem; padding: 0.45rem 1rem; }
  .hero__cta { margin-top: 2.25rem; }

  /* --- chi siamo: titolo sopra, testo sotto --- */
  .section__head { margin-bottom: 1.75rem; }
  .about__text { font-size: 1.1rem; max-width: 52rem; }
  .about__text > p + p { margin-top: 1.1rem; }

  /* --- contatti: titolo sopra, button affiancati --- */
  .contact__actions {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 40rem;
    margin-top: 0;
  }
  .contact__note { max-width: 40rem; margin-top: 2rem; }

  /* --- categorie --- */
  .cat-list { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .cat { padding: 1.4rem 1.5rem; }
  .cat__name { font-size: 1.18rem; }

  /* --- staff: carosello con card più strette --- */
  .staff__viewport { margin-top: 2rem; }
  .staff-card { flex-basis: 15rem; max-width: 15rem; }
  .staff__controls { margin-top: 1.5rem; }

  /* --- sedi --- */
  .venues { grid-template-columns: 1fr 1fr; gap: 2.25rem 2.5rem; }
  .venue__name { font-size: 1.2rem; }

  /* --- cross-link --- */
  .crosslink { padding-block: 4.25rem; }
  .crosslink__title { font-size: 1.6rem; }

  /* --- footer --- */
  .site-footer { padding-block: 3.5rem; }
  .site-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  .footer-nav { margin-top: 0; }
  .site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.75rem;
  }
  .site-footer__legal p:last-child { margin-left: auto; }

  /* --- cookie bar: riga orizzontale --- */
  .cookie-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding-block: 1rem;
  }
  .cookie-bar p { flex: 1; }
  .cookie-bar__actions { flex: none; }
  .cookie-bar__actions .btn { flex: none; padding: 0.7rem 1.5rem; }

  /* --- landing --- */
  .landing__main { padding: 5rem 2rem; }
  .landing__main::before { width: min(42rem, 92%); top: 4%; }
  .landing__logo { width: 13.5rem; height: 13.5rem; }
  .landing__title { font-size: 2.6rem; }
  .landing__choices { max-width: 46rem; gap: 1.25rem; margin-top: 3rem; }
  .landing__choices .choice { padding: 1.6rem 1.7rem; }
  .landing__choices .choice__label { font-size: 1.15rem; }
}

/* =========================================================
   DESKTOP LARGE  ≥ 80rem (1280px)
   ========================================================= */
@media (min-width: 80rem) {
  .container { max-width: 80rem; }
  .hero__title { font-size: 3.4rem; }
  .section { padding-block: 6rem; }
  .cat-list { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   DESKTOP XL  ≥ 100rem (1600px)
   ========================================================= */
@media (min-width: 100rem) {
  .container { max-width: 90rem; }
}
