/* ============================================================
   Prime Padel FC
   Foglio di stile principale (desktop-first; mobile in seguito)
   ============================================================ */

/* ------------------------------------------------------------
   1. FONT
   ------------------------------------------------------------ */
/* Barlow / Barlow Condensed (licenza SIL OFL), self-hosted */
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('../fonts/Barlow-BoldItalic.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/BarlowCondensed-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/BarlowCondensed-Italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/BarlowCondensed-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/BarlowCondensed-BoldItalic.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

/* ------------------------------------------------------------
   2. TOKEN & BASE
   ------------------------------------------------------------ */
:root {
  --primary: #0c1f57;
  --cream: #fffeec;
  --gold: #e0c588;
  --grunge-image-url: url('../img/grunge.jpg');
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Durante il caricamento/intro la pagina non è scrollabile: il ripristino
   scroll del browser non ha nessuna posizione a cui saltare (via a fine intro) */
html.is-loading,
html.is-loading body { overflow: hidden; height: 100%; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--primary);
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  line-height: 1.2em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
hr { border: none; border-top: 1px solid var(--gold); opacity: .8; width: 100%; margin: 0; }

.font-condensed {
  font-family: 'Barlow Condensed', sans-serif;
  line-height: 1em;
}

/* Texture grunge sovrapposta alle immagini */
.with-grunge-effect { overflow: clip; position: relative; z-index: 1; }
.with-grunge-effect::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image: var(--grunge-image-url);
  mix-blend-mode: multiply;
  opacity: .3;
  pointer-events: none;
}

/* ------------------------------------------------------------
   3. BOTTONI
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: bold;
  line-height: 1em;
  text-transform: uppercase;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.btn-primary   { background: var(--primary);  color: var(--cream); }
.btn-secondary { background: var(--cream); color: var(--primary); }
.btn-primary:hover   { background: var(--cream); color: var(--primary); }
.btn-secondary:hover { background: var(--primary);  color: var(--cream); }
.btn-size-base   { border-radius: .5rem; padding: .5rem .75rem; }
.btn-size-normal { border-radius: .5rem; padding: .75rem 1.5rem; }
.btn-border { border: 2px solid var(--primary); }
/* variante "ghost": interno trasparente, testo e bordo colorati */
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: var(--cream); }

/* CTA "espansa" delle sezioni (variante senza .btn) */
.cta-inline {
  font-family: 'Barlow Condensed', sans-serif;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  background: var(--primary);
  color: var(--cream);
}
.cta-inline:hover { background: var(--cream); color: var(--primary); }
.cta-inline--invert { background: var(--cream); color: var(--primary); }
.cta-inline--invert:hover { background: var(--primary); color: var(--cream); }

/* ------------------------------------------------------------
   4. LOADER
   ------------------------------------------------------------ */
.loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--cream);
  z-index: 9999999;
  pointer-events: none;
}
.loader-logo {
  opacity: 0;
  will-change: transform;
}
.loader-logo svg {
  display: block;
  width: clamp(280px, 42vw, 560px);
  height: auto;
}

/* Wrapper pagina: il fade-in iniziale lo gestisce il JS */
.page { position: relative; }

/* ------------------------------------------------------------
   5. HEADER + MENU
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 1.25rem;
  z-index: 990;
  transition: opacity .5s ease-in-out;
}
.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.0rem;
  border-radius: .75rem;
  padding: .75rem 1.5rem;
  background-color: var(--header-background-color);
  transition: background-color .5s ease-in-out;
}
.header-solid       { --header-foreground-color: var(--primary);   --header-background-color: var(--cream); }
.header-transparent { --header-foreground-color: var(--cream); --header-background-color: transparent; }
.header-bar .header-text,
.header-bar .header-logo {
  color: var(--header-foreground-color);
  transition: color .3s ease-in-out;
}
.header-text {
  text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: bold;
  line-height: 1em;
}
.header-left  { justify-self: start; }
.header-right { justify-self: end; }
.header-social { display: flex; align-items: center; gap: 1rem; }
.header-social a {
  display: inline-flex;
  color: var(--header-foreground-color);
  transition: color .3s ease-in-out;
}
.header-social a:hover { color: var(--gold); }
.header-logo { display: block; }
.header-logo img {
  height: 2.75rem;
  width: auto;
  display: block;
}
/* variante del logo in base allo stato dell'header */
.header-solid .logo-on-dark { display: none; }
.header-transparent .logo-on-light { display: none; }
.menu-toggle .label-open,
.menu-toggle .label-close { pointer-events: none; }
.header-bar[data-menu-state="closed"] .label-open  { display: inline-block; }
.header-bar[data-menu-state="closed"] .label-close { display: none; }
.header-bar[data-menu-state="open"]   .label-open  { display: none; }
.header-bar[data-menu-state="open"]   .label-close { display: inline-block; }

/* Overlay menu a tutto schermo (sta dietro alla barra) */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s;
}
.menu-overlay.is-visible { opacity: 1; visibility: visible; }
.menu-overlay .menu-grunge {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grunge-image-url);
  mix-blend-mode: multiply;
  opacity: .3;
}
.menu-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.menu-nav {
  flex-grow: 1;
  flex-shrink: 0;
  padding: 6rem .625rem 0;
}
.menu-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}
.menu-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.5rem;
  line-height: 1em;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--cream);
  transition: all .3s;
}
.menu-link:hover { font-style: italic; color: var(--gold); }

/* ------------------------------------------------------------
   6. SEZIONI PARALLAX
   ------------------------------------------------------------ */
.section-wrapper {
  position: relative;
  margin-inline: auto;
  z-index: var(--section-zindex, 1);
  background: var(--cream);
  width: 100%;
}
.section-wrapper.is-rounded {
  background: transparent;
  width: 95%;
}
.section-inner { position: relative; margin-inline: auto; }
.section-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Immagine di sfondo alta 150vh per il parallasse */
.section-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  width: 100%;
  height: 150vh;
  will-change: transform;
}
.section-wrapper.is-rounded .section-bg { border-radius: 100px; }
.section-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}
.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-bg .scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 1;
}

/* Blocco centrato "tipo hero" */
.full-section {
  position: relative;
  min-height: 100lvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* variante corta: intro che non occupa un viewport intero
   (usata per "Football Legend" così le card stanno subito sotto) */
.full-section--compact {
  min-height: 0;
  padding-top: 22vh;
  padding-bottom: 6rem; /* aria tra il testo dell'intro e le card sotto */
}
.full-section .inner-text {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  padding: 2.5rem;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 6rem;
  line-height: 1;
  font-weight: bold;
  text-transform: uppercase;
}
.section-title em { font-style: italic; }
.text-on-photo { color: var(--cream); }
.text-on-cream { color: var(--primary); }
.text-lead { font-size: 1.125rem; line-height: 160%; }

/* Pallina che rimbalza in fondo all'hero (invito a scorrere, solo CSS) */
.scroll-ball {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.scroll-ball {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-ball .ball {
  display: block;
  transform-origin: center bottom;
  animation: ball-bounce 1.15s infinite;
  position: relative;
  z-index: 1;
}
.scroll-ball .ball-body { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.scroll-ball .ball-seam { stroke: var(--gold); stroke-width: 2.5; }
.scroll-ball .racket {
  display: block;
  margin-top: -9px; /* il piatto arriva appena sotto il punto di rimbalzo */
  transform: rotate(-32deg);
  transform-origin: center 20%;
  animation: racket-hit 1.15s infinite;
}
.scroll-ball .racket-line { fill: none; stroke: var(--gold); stroke-width: 2; }
.scroll-ball .racket-dot { fill: var(--gold); }
.scroll-ball .racket-grip { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; }
@keyframes ball-bounce {
  0%   { transform: translateY(-80px) scale(1, 1); animation-timing-function: cubic-bezier(.55, 0, .85, .36); }
  45%  { transform: translateY(0) scale(1, 1); animation-timing-function: linear; }
  50%  { transform: translateY(0) scale(1.15, .85); }
  55%  { transform: translateY(0) scale(1, 1); animation-timing-function: cubic-bezier(.15, .5, .45, 1); }
  100% { transform: translateY(-80px) scale(1, 1); }
}
@keyframes racket-hit {
  0%, 100% { transform: rotate(-32deg) translateY(0); }
  45%, 55% { transform: rotate(-34deg) translateY(3px); }
  50%      { transform: rotate(-35deg) translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-ball svg { animation: none; }
}

/* ------------------------------------------------------------
   7. KARAOKE
   ------------------------------------------------------------ */
.karaoke {
  display: grid;
  min-height: 100dvh;
}
.karaoke .karaoke-inner {
  position: sticky;
  top: 0; left: 0;
  min-height: 100dvh;
  width: 70dvw;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.text-karaoke {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 5.75rem;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  font-style: italic;
  color: var(--primary);
  position: relative;
}
.karaoke .char {
  color: var(--gold);
  display: inline;
  opacity: .3;
  transition: color .15s linear, opacity .15s linear;
  white-space: normal;
}
.karaoke .char.on { color: var(--primary); opacity: 1; }
.karaoke .word { display: inline-block; }
.karaoke-sub { max-width: 100%; }

/* ------------------------------------------------------------
   8. STRUCTURED IMAGES (galleria pinnata 700vh)
   ------------------------------------------------------------ */
.structured-section {
  position: relative;
  min-height: var(--section-vh, 700vh);
  width: 100%;
  background: var(--cream);
}
.structured-sticky {
  position: sticky;
  top: 0; left: 0;
  height: 100vh;
  overflow: clip;
}
.structured-img {
  position: absolute;
  top: 50%; left: 50%;
  width: 25vw;
  height: auto;
  border-radius: .5rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0);
  will-change: transform, opacity;
}
.structured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------------------------------------------------------------
   9. SLIDER CARD (Swiper)
   ------------------------------------------------------------ */
.cards-swiper-container {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-bottom: 5rem;
  position: relative;
  width: 100%;
}
.cards-swiper { overflow: visible; width: 100%; }
.cards-swiper .swiper-wrapper { min-height: 490px; }
.cards-swiper .swiper-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 20rem;
  width: 100%;
}
.card {
  background: var(--cream);
  border-radius: .75rem;
  padding: 1rem 1rem 2rem;
  text-align: center;
  color: var(--primary);
}
.card .img-container {
  aspect-ratio: 1 / 1;
  border-radius: .375rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.card .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.card[data-state="collapsed"] .img-container img { transform: scale(1.25); }
.card .title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.875rem;
  line-height: 1 !important;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
}
.card .description {
  margin-top: 1rem;
  height: fit-content;
  max-height: 24rem;
  overflow: hidden;
  transition: all .5s cubic-bezier(.4, 0, .2, 1);
}
.card[data-state="collapsed"] .description { max-height: 0; opacity: 0; }
.card .description .btn { width: 100%; }
/* Poche card che ci stanno tutte: riga centrata senza carosello (vedi JS) */
.cards-swiper.cards-static .swiper-wrapper {
  justify-content: center;
  gap: 80px;
}
.cards-swiper.cards-static .navigation { display: none; }

.cards-swiper .navigation {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
  margin-top: 2.5rem;
  color: var(--cream);
}
.cards-swiper .navigation svg {
  width: 58px;
  height: 31px;
}

/* ------------------------------------------------------------
   10. LISTING CAMPI
   ------------------------------------------------------------ */
.courts-section {
  width: 60dvw;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 50dvh;
}
/* Carosello loghi partner (loop CSS infinito, due gruppi identici) */
.partners-carousel {
  width: 100%;
  overflow: hidden;
  padding-block: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.partners-track {
  display: flex;
  width: max-content;
  animation: partners-loop 40s linear infinite;
}
.partners-track--reverse {
  animation-direction: reverse;
  animation-duration: 30s;
}
.partners-group {
  display: flex;
  align-items: center;
  gap: 5rem;
  padding-right: 5rem; /* pari al gap: rende il loop -50% esattamente periodico */
  color: var(--cream);
}
.partners-group img.partner-logo {
  height: 3rem;
  width: auto;
  max-width: none;
}
.partners-group img.partner-logo--minor { height: 2rem; }
@keyframes partners-loop {
  0%  { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.courts-cta { padding-top: 8rem; }

/* Intro sport (logo + 3 righe) */
.sport-intro {
  display: grid;
  place-content: center;
  height: auto;
  padding: 32vh 1rem 2rem;
}
.sport-intro .inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  color: var(--cream);
}
.text-sport-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 5.625rem;
  line-height: 1em;
  font-weight: bold;
  text-transform: uppercase;
}
.sport-intro .sub {
  max-width: 56rem;
  padding-inline: 10rem;
}

/* ------------------------------------------------------------
   11. EFFECT PHRASE (sezione finale rossa pinnata)
   ------------------------------------------------------------ */
/* Zona esterna alta 250vh: dà allo scroll i 150vh di "corsa" mentre la
   sezione interna resta incollata via sticky (niente pin JS: niente scatti) */
.effect-phrase-zone {
  position: relative;
  z-index: 30;
  height: 250vh;
  width: 100%;
}
.effect-phrase {
  position: sticky;
  top: 0;
  display: grid;
  place-content: center;
  height: 100vh;
  background: var(--primary);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
  width: 100%;
}
.effect-phrase-title-wrap { width: 90dvw; margin-inline: auto; }
.effect-phrase-main-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 5.75rem;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  font-style: italic;
  color: var(--cream);
  will-change: filter;
}
.effect-phrase-inner {
  width: 350px;
  position: absolute;
  left: 50%;
  bottom: 0;
  background: var(--cream);
  color: var(--primary);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  z-index: 10;
  will-change: transform;
}
.effect-phrase-inner .inner-col {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  justify-content: center;
  align-items: center;
}
.text-effect-phrase {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  line-height: 105%;
  font-weight: 700;
  text-transform: uppercase;
  font-style: italic;
  color: var(--primary);
}
.effect-phrase-inner .w-full { width: 100%; }
.effect-phrase-inner .btn { width: 100%; }

/* ------------------------------------------------------------
   12. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  position: relative;
  z-index: 30;
  color: var(--primary);
  background: var(--cream);
  padding: 2rem 2rem 0;
  margin-top: 3.5rem;
}
/* Wordmark gigante */
.footer-logos {
  display: flex;
  flex-direction: column;
  margin-top: 0;
}
.footer-logo-img {
  width: min(28%, 320px);
  height: auto;
  margin-inline: auto;
}

/* Bottone newsletter (mailto con consenso precompilato) */
.footer-newsletter {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* Riga legale */
.footer-legal {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding-block: 2rem;
  font-size: 1.125rem;
}
.privacy-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: bold;
  font-size: 1.125rem;
  line-height: 1em;
  text-decoration: underline;
  transition: color .3s;
}
.privacy-link:hover { color: var(--gold); }

/* ------------------------------------------------------------
   13. MODALI
   ------------------------------------------------------------ */
dialog.app-modal {
  opacity: 0;
  pointer-events: none;
  transform: scale(.95);
  transition: opacity .5s ease, transform .3s ease;
  border: none;
}
dialog.app-modal.animate-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
dialog::backdrop { background: rgba(0, 0, 0, .7); }

.modal-contact {
  overflow: visible;
  width: fit-content;
  min-width: 20rem;
  border-radius: 1.5rem;
  background: var(--cream);
  color: var(--primary);
  padding: 1.5rem;
  margin: auto;
}
.modal-contact .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.modal-contact .modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  text-align: center;
  font-size: 2rem;
  line-height: 1em;
  font-style: italic;
  font-weight: bold;
}
.modal-privacy { max-width: 36rem; }
.modal-privacy .privacy-text {
  text-align: left;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: .5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  font-size: .9375rem;
  line-height: 1.5;
}
.modal-privacy .privacy-text h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-style: italic;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: .5rem;
}
.modal-close {
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  outline: none;                          /* niente anello di focus sulla X */
  -webkit-tap-highlight-color: transparent; /* niente flash blu al tap mobile */
}

/* Modale evento: testo a sinistra, galleria fotografica a destra */
.modal-event { width: min(56rem, 92vw); }
.modal-event .event-body {
  display: flex;
  flex-direction: column; /* testo sopra, galleria sotto */
  gap: 1.5rem;
  align-items: stretch;
  text-align: left;
}
.modal-event .event-text {
  flex: 1;
  font-size: .9375rem;
  line-height: 1.5;
}
.modal-event .event-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  align-content: start;
  max-height: 50vh;
  overflow-y: auto;
}
.modal-event .event-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: .5rem;
}
.modal-event .event-gallery a {
  display: block;
  cursor: zoom-in;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.modal-event .event-gallery a:hover img { opacity: .85; }

/* Lightbox gallerie evento: dialog a tutto schermo sopra la modale */
dialog.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 31, 87, .96);
  color: var(--cream);
}
dialog.lightbox[open] { display: grid; place-items: center; }
dialog.lightbox::backdrop { background: transparent; }
.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: .5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox button {
  color: var(--cream);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .3s;
}
.lightbox button:hover { color: var(--gold); }
.lightbox button svg { display: block; width: 34px; height: 34px; }
.lightbox-close { position: fixed; top: 1.25rem; right: 1.25rem; }
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  padding: 1rem .5rem;
}
.lightbox-prev { left: .5rem; }
.lightbox-next { right: .5rem; }
.lightbox-counter {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .1em;
}

/* ------------------------------------------------------------
   14. MOBILE / TABLET
   ------------------------------------------------------------ */
/* Sotto il breakpoint "grande" (1024px): tipografia ridotta e header compatto */
@media (max-width: 1023px) {
  .site-header { padding: .625rem; }
  .header-bar { padding: .5rem 1.25rem; min-height: 3.25rem; }
  .header-logo img { height: 2.25rem; }
  .menu-link { font-size: 2rem; }
  .loader-logo svg { width: 70vw; }
  .section-title { font-size: 3.75rem; }
  .text-karaoke { font-size: 3.5rem; }
  .text-sport-heading { font-size: 3.5rem; }
  .effect-phrase-main-title { font-size: 3.5rem; }
  .card .title { font-size: 1.5rem; }
  .cards-swiper-container { padding-bottom: 2.5rem; }
}

/* Sotto il breakpoint "medio" (768px): layout a colonna */
@media (max-width: 767px) {
  .full-section .inner-text { padding: 2.5rem 1.25rem; }
  .karaoke .karaoke-inner { width: 90dvw; }
  .structured-img { width: 50vw; }
  .sport-intro .sub { padding-inline: 1rem; }
  .courts-section { width: 100%; padding-bottom: 30dvh; }
  .partners-group { gap: 3rem; padding-right: 3rem; }
  .partners-group img.partner-logo { height: 2.25rem; }
  .partners-group img.partner-logo--minor { height: 1.5rem; }
  .courts-cta { padding-top: 4rem; }
  .effect-phrase-inner { width: 90dvw; }
  .modal-privacy { max-width: 90vw; }
  .modal-event .event-body { flex-direction: column; }
  .modal-event .event-gallery { max-height: 40vh; width: 100%; grid-template-columns: repeat(2, 1fr); }
  .site-footer { padding: 1.5rem 1rem 0; }
  .footer-legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .75rem;
  }
}
