@charset "UTF-8";
/* ============================================================
   JUNIOR CLUB TERNI — Foglio di stile
   Palette: verde bottiglia · oro · avorio  (stile "circolo raffinato")
   Font: Cormorant Garamond (titoli) + Jost (testo)
   ============================================================ */

/* ---------- Variabili / Design tokens ---------- */
:root {
  /* colori — campionati dal logo ufficiale: teal #05444f · giallo #fdcb07 · panna */
  --green-900: #04333b;   /* teal profondo (fondali scuri) */
  --green-800: #06444e;   /* teal del logo (brand) */
  --green-700: #0d5a64;   /* teal vivo per hover/accento */
  --green-100: #d5e6e6;   /* teal chiarissimo (sfondo icone) */
  --gold:      #fbc80a;   /* giallo pallina da tennis (accento) */
  --gold-soft: #ffdf6e;   /* giallo tenue (testo su scuro) */
  --gold-deep: #0d5a64;   /* teal accento (testo/icone su chiaro) */
  --ivory:     #f4efe4;   /* panna di fondo */
  --ivory-2:   #e9e0cf;
  --cream:     #fffdf7;   /* card chiare */
  --ink:       #06414a;   /* testo scuro (teal) */
  --muted:     #566462;   /* testo secondario */
  --muted-light:#9fb0ad;  /* testo su fondo scuro */
  --line:      #e4ddc9;   /* bordi chiari */
  --line-dark: rgba(255,255,255,.12);

  /* tipografia */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* misure */
  --container: 1200px;
  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 18px 50px -25px rgba(4, 42, 48, .4);
  --shadow-soft: 0 12px 40px -22px rgba(4, 42, 48, .32);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset di base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: .2px; }
p { margin: 0 0 1rem; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- Tipografia condivisa ---------- */
.overline {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gold-deep);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.overline::before {
  content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7;
}
.overline--gold { color: var(--gold); }

.section__title {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: .3px;
}
.lead {
  font-size: 1.22rem;
  color: var(--muted);
  font-weight: 400;
  max-width: 46ch;
}
.lead--center { margin-inline: auto; }

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: var(--green-800);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.9rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 100px;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(4,42,48,.5); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: #06414a; border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--dark { --btn-bg: var(--green-800); }
.btn--ghost {
  background: transparent; color: currentColor;
  border-color: currentColor;
}
.btn--ghost:hover { background: var(--ivory); color: var(--green-900); border-color: var(--ivory); box-shadow: none; }
.btn--sm { padding: .68rem 1.3rem; font-size: .74rem; }
.btn--full { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.1rem 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(244, 238, 225, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  padding: .55rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--ivory); transition: color .4s var(--ease); }
.scrolled .brand { color: var(--green-800); }
.brand__logo {
  width: 54px; height: 54px; flex: none; display: block; border-radius: 50%;
  background: url('../assets/logo.jpg') center / 115% no-repeat;
  box-shadow: 0 3px 12px rgba(0,0,0,.2);
  transition: width .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease);
}
.scrolled .brand__logo { width: 46px; height: 46px; box-shadow: 0 2px 8px rgba(4,42,48,.16); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; gap: 5px; }
.brand__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .5px; }
.brand__place { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; opacity: .8; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  position: relative; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; color: var(--ivory); opacity: .92; transition: color .3s var(--ease), opacity .3s;
}
.scrolled .nav__link { color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { width: 100%; }
.nav__cta { color: #06414a !important; }

/* selettore lingua IT / EN — pill segmentato */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: 100px; border: 1px solid rgba(247,243,234,.26); background: rgba(247,243,234,.06);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.lang-switch__opt {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px;
  padding: .26rem .5rem; border-radius: 100px; font-size: .7rem; font-weight: 600; letter-spacing: .08em;
  color: var(--ivory); opacity: .7;
  transition: background .35s var(--ease), color .35s var(--ease), opacity .35s var(--ease);
}
.lang-switch__opt:hover { opacity: 1; }
.lang-switch__opt.is-active { background: var(--gold); color: #06414a; opacity: 1; box-shadow: 0 3px 9px -3px rgba(251,200,10,.55); }
/* header chiaro (scrolled) + header delle pagine legali */
.scrolled .lang-switch, .legal-header .lang-switch { border-color: var(--line); background: rgba(6,68,78,.04); }
.scrolled .lang-switch__opt, .legal-header .lang-switch__opt { color: var(--ink); }
.scrolled .lang-switch__opt.is-active, .legal-header .lang-switch__opt.is-active { color: #06414a; }
.legal-header__actions { display: flex; align-items: center; gap: 1rem; }

/* hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ivory); transition: .3s var(--ease); border-radius: 2px; }
.scrolled .nav-toggle span { background: var(--green-800); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ivory);
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(14,90,100,.5), transparent 60%),
    linear-gradient(160deg, #04333b 0%, #06444e 55%, #043a42 100%);
  padding: 8rem 0 5rem;
  overflow: hidden;
}
.hero::after { /* vignettatura calda in basso */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to top, rgba(3,30,34,.62), transparent);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; }
.hero__overline { color: var(--gold-soft); }
.hero__title {
  font-size: clamp(2.35rem, 6.6vw, 5.6rem);
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 1.6rem;
  max-width: 16ch;
}
.hero__title em { font-style: italic; color: var(--gold-soft); font-weight: 500; }
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 52ch; color: rgba(247,243,234,.82); font-weight: 300;
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 2.6rem;
  padding-top: 2.2rem; border-top: 1px solid rgba(247,243,234,.16);
}
.hero__stats li { display: flex; flex-direction: column; gap: .2rem; }
.hero__stat-num { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--gold-soft); line-height: 1; }
.hero__stat-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: rgba(247,243,234,.7); }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; }
.hero__scroll span {
  display: block; width: 24px; height: 40px; border: 1.5px solid rgba(247,243,234,.4); border-radius: 14px; position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 2px;
  background: var(--gold-soft); transform: translateX(-50%); animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 30%{opacity:1} 60%{opacity:1;transform:translate(-50%,12px)} 100%{opacity:0;transform:translate(-50%,14px)} }

/* ---------- Pallina da tennis che rimbalza ---------- */
.hero__ball-wrap {
  position: absolute; right: 7%; top: 50%; transform: translateY(-50%);
  width: 200px; height: 340px; z-index: 2; pointer-events: none;
}
.hero__ball {
  position: absolute; left: 50%; bottom: 28px; width: 172px; height: 172px; margin-left: -86px;
  transform-origin: center bottom; will-change: transform;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.4));
  animation: heroBallBounce 1.25s infinite;
}
.hero__ball picture { display: block; width: 100%; height: 100%; }
/* leggera virata verso il giallo-optic per far risaltare la pallina sul fondo teal */
.hero__ball-img { width: 100%; height: 100%; display: block; object-fit: contain; filter: saturate(1.15) hue-rotate(-16deg) brightness(1.07); }
.hero__ball-shadow {
  position: absolute; left: 50%; bottom: 24px; width: 122px; height: 24px; margin-left: -61px;
  background: radial-gradient(ellipse at center, rgba(2,18,20,.5), rgba(2,18,20,0) 70%);
  border-radius: 50%; will-change: transform, opacity;
  animation: heroBallShadow 1.25s infinite;
}
@keyframes heroBallBounce {
  0%   { transform: translateY(0) scale(1.12, .88); animation-timing-function: cubic-bezier(.13,.5,.38,1); }
  14%  { transform: translateY(-8px) scale(1, 1); }
  50%  { transform: translateY(-150px) scale(1, 1); animation-timing-function: cubic-bezier(.55,0,.9,.5); }
  86%  { transform: translateY(-8px) scale(1, 1); }
  100% { transform: translateY(0) scale(1.12, .88); }
}
@keyframes heroBallShadow {
  0%   { transform: scale(1.1); opacity: .42; animation-timing-function: cubic-bezier(.13,.5,.38,1); }
  50%  { transform: scale(.48); opacity: .14; animation-timing-function: cubic-bezier(.55,0,.9,.5); }
  100% { transform: scale(1.1); opacity: .42; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__ball, .hero__ball-shadow { animation: none; }
  .hero__ball { transform: none; }
}
@media (max-width: 960px) { .hero__ball-wrap { display: none; } }

/* ============================================================
   SEZIONI GENERICHE
   ============================================================ */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section__head { max-width: 640px; margin-bottom: 3.2rem; }
.section__head--center { text-align: center; margin-inline: auto; }
.section--dark { background: linear-gradient(165deg, #04333b, #06444e); color: var(--ivory); }
.section--dark .section__title { color: var(--ivory); }
.section--dark .lead { color: rgba(247,243,234,.72); }

.grid-2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.grid-2--wide { grid-template-columns: 1fr 1fr; align-items: start; }

/* ---------- Il Circolo ---------- */
.section--circolo { background: var(--ivory); }
.section--circolo p:not(.overline):not(.lead) { color: var(--muted); }
.signature { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.signature__line { width: 46px; height: 1px; background: var(--gold); }
.signature__text { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--green-800); }

.circolo__aside { display: flex; flex-direction: column; gap: 1rem; }
.value-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem; display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.2rem;
  align-items: center; box-shadow: var(--shadow-soft); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card__icon {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-deep);
  background: var(--green-100); border: 1px solid var(--line);
}
.value-card h3 { font-size: 1.5rem; align-self: end; }
.value-card p { margin: 0; font-size: .96rem; color: var(--muted); }

/* ---------- Strutture / Campi ---------- */
.courts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-bottom: 3.5rem; }
.court-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.court-card:hover { transform: translateY(-6px); border-color: rgba(196,162,76,.5); }
.court-card__media {
  position: relative; aspect-ratio: 4 / 3; display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 1rem;
  background-size: cover; background-position: center;
}
/* SFONDI CAMPI — sostituibili con foto reali: background-image: url('../assets/tennis1.jpg'); */
/* campi da tennis in terra rossa, padel in blu */
.court-card--tennis  { background: radial-gradient(130% 120% at 28% 16%, #c05f42, #863d28); }
.court-card--tennis2 { background: radial-gradient(130% 120% at 28% 16%, #c46446, #8c412b); }
.court-card--padel   { background: radial-gradient(130% 120% at 72% 18%, #2f74a6, #164f7a); }
.court-diagram { position: absolute; inset: 0; width: 100%; height: 100%; }
.court-card__badge {
  position: relative; z-index: 1; background: var(--gold); color: #06414a;
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  padding: .35rem .8rem; border-radius: 100px;
}
.court-card__body { padding: 1.5rem 1.6rem 1.8rem; }
.court-card__body h3 { font-size: 1.7rem; color: var(--ivory); margin-bottom: .4rem; }
.court-card__body p { margin: 0; color: rgba(247,243,234,.66); font-size: .96rem; font-weight: 300; }

.feature-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem;
  padding-top: 3rem; border-top: 1px solid var(--line-dark);
}
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line-dark); }
.feature h4 { font-family: var(--sans); font-weight: 500; font-size: .98rem; color: var(--ivory); margin-bottom: .15rem; letter-spacing: .02em; }
.feature p { margin: 0; font-size: .86rem; color: rgba(247,243,234,.6); font-weight: 300; }

/* ---------- Corsi ---------- */
.section--corsi { background: var(--ivory); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.course-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.4rem 2rem; position: relative; box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-card--feature { background: linear-gradient(165deg, #06444e, #04333b); color: var(--ivory); border-color: transparent; }
.course-card--feature h3, .course-card--feature .course-card__num { color: var(--gold-soft); }
.course-card--feature p { color: rgba(247,243,234,.72); }
.course-card--feature .ticks li { color: rgba(247,243,234,.85); }
.course-card--feature .ticks li::before { color: var(--gold); }
.course-card__num { font-family: var(--serif); font-size: 1rem; color: var(--gold-deep); letter-spacing: .1em; }
.course-card h3 { font-size: 1.9rem; margin: .3rem 0 .8rem; }
.course-card p { color: var(--muted); font-size: 1rem; }
.ticks { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .94rem; color: var(--ink); }
.ticks li::before { content: "\2726"; position: absolute; left: 0; color: var(--gold-deep); font-size: .8rem; top: 1px; }

.cta-strip {
  margin-top: 2.4rem; background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg); padding: 2.2rem 2.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  box-shadow: var(--shadow-soft);
}
.cta-strip h3 { font-size: 1.8rem; margin-bottom: .3rem; }
.cta-strip p { margin: 0; color: var(--muted); max-width: 52ch; }

/* ---------- Orari ---------- */
.section--orari { background: linear-gradient(180deg, var(--ivory), var(--ivory-2)); }
.booking-steps { display: flex; flex-direction: column; gap: 1rem; margin: 2rem 0 2.4rem; }
.booking-step { display: flex; align-items: center; gap: 1.1rem; }
.booking-step span {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.3rem; color: var(--gold-deep); background: var(--cream); border: 1px solid var(--line);
}
.booking-step p { margin: 0; font-size: 1.02rem; color: var(--ink); }

.hours-card {
  background: linear-gradient(165deg, #06444e, #04333b); color: var(--ivory);
  border-radius: var(--radius-lg); padding: 2.6rem 2.4rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hours-card::before { content: ""; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; border: 1px solid rgba(196,162,76,.25); border-radius: 50%; }
.hours-card__title { font-size: 1.9rem; color: var(--gold-soft); margin-bottom: 1.4rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid rgba(247,243,234,.12); font-size: 1.02rem; }
.hours li span:first-child { color: rgba(247,243,234,.78); }
.hours li span:last-child { font-weight: 500; letter-spacing: .02em; }
.hours--note span:last-child { color: var(--gold-soft); }
.hours-card__foot { margin: 1.3rem 0 0; font-size: .84rem; color: rgba(247,243,234,.55); font-weight: 300; }

/* ---------- Contatti ---------- */
.section--contatti { background: var(--ivory); }
.contact-list { margin: 2.2rem 0; display: flex; flex-direction: column; gap: 1.4rem; }
.contact-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-list__ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-deep); background: var(--green-100); border: 1px solid var(--line); }
.contact-list div { color: var(--muted); font-size: 1rem; }
.contact-list strong { color: var(--ink); font-weight: 500; }
.contact-list a:hover { color: var(--gold-deep); }

.socials { display: flex; gap: .8rem; }
.social { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--green-800); border: 1px solid var(--line); transition: .35s var(--ease); }
.social:hover { background: var(--green-800); color: var(--ivory); transform: translateY(-3px); }

/* form */
.contact-form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.4rem; box-shadow: var(--shadow-soft); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(251,200,10,.22);
}
.field textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: var(--muted); margin: .3rem 0 1.4rem; }
.check input { margin-top: .25rem; accent-color: var(--green-800); }
.form-feedback { margin: 1rem 0 0; font-size: .95rem; font-weight: 500; min-height: 1.2em; }
.form-feedback.ok { color: var(--green-700); }
.form-feedback.err { color: #b23b3b; }

/* mappa (Google Maps incorporata) */
.map-embed {
  position: relative; margin-top: 3.5rem; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft);
  background: var(--cream);
}
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; filter: saturate(.92); }
.map-embed__link {
  position: absolute; right: 16px; bottom: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green-800); color: var(--ivory);
  padding: .6rem 1.05rem; border-radius: 100px; font-size: .78rem; font-weight: 500;
  letter-spacing: .04em; box-shadow: 0 10px 24px -10px rgba(4,42,48,.7);
  border: 1px solid rgba(255,255,255,.14); transition: transform .3s var(--ease), background .3s var(--ease);
}
.map-embed__link svg { color: var(--gold); flex: none; }
.map-embed__link:hover { transform: translateY(-2px); background: var(--green-700); }
@media (max-width: 620px) { .map-embed iframe { height: 320px; } }

/* ============================================================
   PRENOTAZIONI — azioni & bottone WhatsApp
   ============================================================ */
.booking-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.btn--wa { background: var(--cream); border-color: var(--line); color: var(--ink); }
.btn--wa:hover { background: var(--green-800); border-color: var(--green-800); color: #fff; }

/* ============================================================
   MAESTRI / STAFF
   ============================================================ */
.staff-team { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; margin-top: 3.4rem; }
.staff-card {
  flex: 0 1 240px; background: var(--cream); border-radius: var(--radius-lg); overflow: hidden;
  text-align: center; box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.staff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.staff-card__photo {
  width: 100%; aspect-ratio: 3 / 4; background-size: cover; background-position: center top;
  background-color: var(--green-100);
}
/* Foto staff: WebP con fallback JPG universale (via @supports) — ottimizzazione peso.
   I browser moderni scaricano il .webp (~58% piu leggero); i vecchi restano sul .jpg. */
.staff-card__photo--valerio  { background-image: url("../assets/valerio-elisa.jpg"); }
.staff-card__photo--carlo    { background-image: url("../assets/carlo.jpg"); }
.staff-card__photo--lorenzo  { background-image: url("../assets/lorenzo.jpg"); }
.staff-card__photo--federico { background-image: url("../assets/federico.jpg"); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
  .staff-card__photo--valerio  { background-image: image-set(url("../assets/valerio-elisa.webp") type("image/webp"), url("../assets/valerio-elisa.jpg") type("image/jpeg")); }
  .staff-card__photo--carlo    { background-image: image-set(url("../assets/carlo.webp") type("image/webp"), url("../assets/carlo.jpg") type("image/jpeg")); }
  .staff-card__photo--lorenzo  { background-image: image-set(url("../assets/lorenzo.webp") type("image/webp"), url("../assets/lorenzo.jpg") type("image/jpeg")); }
  .staff-card__photo--federico { background-image: image-set(url("../assets/federico.webp") type("image/webp"), url("../assets/federico.jpg") type("image/jpeg")); }
}
.staff-card__info { padding: 1.3rem 1.1rem 1.6rem; }
.staff-card h3 { font-size: 1.5rem; color: var(--ink); }
.staff-card__role { color: var(--gold-deep); font-weight: 500; font-size: .82rem; margin-top: .35rem; line-height: 1.45; }
.staff-cta { text-align: center; margin-top: 3rem; }

/* ============================================================
   RECENSIONI
   ============================================================ */
.section--reviews { background: var(--ivory); }
.rating-hero {
  display: flex; align-items: center; justify-content: center; gap: 1.8rem; flex-wrap: wrap;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem 2.4rem; max-width: 620px; margin: 0 auto 2.8rem; box-shadow: var(--shadow-soft);
}
.rating-hero__score { display: flex; flex-direction: column; align-items: center; }
.rating-hero__num { font-family: var(--serif); font-size: 3.6rem; font-weight: 600; color: var(--ink); line-height: 1; }
.rating-hero__stars { color: var(--gold); letter-spacing: 3px; font-size: 1.1rem; }
.rating-hero__text { text-align: left; }
.rating-hero__text p { margin: 0 0 .35rem; color: var(--muted); }
.rating-hero__text strong { color: var(--ink); }
.link-underline { color: var(--gold-deep); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .3s; }
.link-underline:hover { color: var(--green-800); }

.review-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: .9rem; margin: 0;
}
.review-card__stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }
.review-card p { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; font-style: italic; line-height: 1.4; margin: 0; }
.review-card footer { color: var(--muted); font-size: .92rem; font-weight: 500; letter-spacing: .02em; margin-top: auto; }

/* ============================================================
   FAQ (accordion nativo)
   ============================================================ */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line-dark); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 1.35rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem;
  font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.55rem); color: var(--ivory); transition: color .3s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-soft); }
.faq__item summary::after { content: "+"; color: var(--gold); font-family: var(--sans); font-size: 1.7rem; font-weight: 300; line-height: 1; flex: none; transition: transform .3s var(--ease); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__a { padding: 0 0 1.5rem; animation: faqIn .4s var(--ease); }
.faq__a p { color: rgba(244,239,228,.72); margin: 0; max-width: 70ch; font-size: 1.02rem; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   BARRA AVANZAMENTO + WHATSAPP FLUTTUANTE
   ============================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transition: width .1s linear;
}
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  display: inline-flex; align-items: center; gap: .5rem;
  background: #06444e; color: var(--ivory); padding: .8rem 1.15rem; border-radius: 100px;
  box-shadow: 0 12px 30px -8px rgba(4,42,48,.65); border: 1px solid rgba(255,255,255,.14);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); background: var(--green-700); }
.wa-float svg { color: var(--gold); flex: none; }
.wa-float__label { font-size: .82rem; font-weight: 500; letter-spacing: .04em; }
.wa-float::after {
  content: ""; position: absolute; inset: -1px; border-radius: 100px; border: 2px solid var(--gold);
  opacity: 0; animation: waPulse 2.8s var(--ease) infinite; pointer-events: none;
}
@keyframes waPulse { 0% { opacity: .5; transform: scale(1); } 70% { opacity: 0; transform: scale(1.14); } 100% { opacity: 0; } }

/* riga fiducia nel hero */
.hero__trust { display: flex; align-items: center; gap: .7rem; margin: -2.4rem 0 3.2rem; font-size: .95rem; color: rgba(244,239,228,.85); }
.hero__trust-stars { color: var(--gold); letter-spacing: 2px; }
.hero__trust strong { color: var(--gold-soft); font-size: 1.05rem; }

/* ============================================================
   LE DISCIPLINE
   ============================================================ */
.section--discipline { background: var(--ivory); }
.discipline { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: 3.5rem; }
.discipline + .discipline { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.discipline--reverse .discipline__text { order: 2; }
.discipline__text h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .4rem 0 1rem; }
.discipline__text p { color: var(--muted); font-size: 1.05rem; }
.discipline__visual {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); display: grid; place-items: center; color: var(--gold-soft);
  position: relative; overflow: hidden; box-shadow: var(--shadow);
  background: radial-gradient(120% 100% at 50% 38%, #0c5966, #05363e);
}
.discipline__visual--tennis { background: radial-gradient(120% 110% at 50% 32%, #c05f42, #7f3925); }
.discipline__visual--padel  { background: radial-gradient(120% 110% at 50% 32%, #2f74a6, #154c76); }
.discipline__court { position: absolute; inset: 0; width: 100%; height: 100%; }
.discipline__icon { position: relative; z-index: 1; width: 48%; height: auto; filter: drop-shadow(0 9px 15px rgba(0,0,0,.34)); }

/* ============================================================
   SERVIZI & COMFORT
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service {
  background: rgba(255,255,255,.03); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 1.9rem;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.service:hover { transform: translateY(-5px); border-color: rgba(251,200,10,.4); background: rgba(255,255,255,.05); }
.service__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line-dark); margin-bottom: 1.1rem; }
.service h3 { font-size: 1.4rem; color: var(--ivory); margin-bottom: .4rem; }
.service p { color: rgba(244,239,228,.66); font-size: .95rem; font-weight: 300; margin: 0; }

@media (max-width: 900px) {
  .discipline, .discipline--reverse { grid-template-columns: 1fr; gap: 1.8rem; }
  .discipline--reverse .discipline__text { order: 0; }
  .discipline__visual { order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .wa-float__label { display: none; }
  .wa-float { padding: .85rem; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #052f36; color: rgba(244,239,228,.72); padding: 4.5rem 0 2rem; }
.site-footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(247,243,234,.1); }
.brand__name--footer { color: var(--ivory); font-size: 1.7rem; display: block; margin-bottom: .8rem; }
.site-footer__brand p { max-width: 40ch; font-weight: 300; font-size: .96rem; }
.site-footer h4 { font-family: var(--sans); font-weight: 500; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--gold-soft); margin-bottom: 1.1rem; }
.site-footer__nav { display: flex; flex-direction: column; gap: .6rem; }
.site-footer__nav a, .site-footer__contact a { font-size: .96rem; font-weight: 300; transition: color .3s; }
.site-footer__nav a:hover, .site-footer__contact a:hover { color: var(--gold-soft); }
.site-footer__contact p { margin: 0 0 .5rem; font-weight: 300; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .82rem; color: rgba(247,243,234,.45); flex-wrap: wrap; }
.site-footer__bottom p { margin: 0; }
.site-footer__credit { text-align: center; padding-top: 1.5rem; margin-top: 1.4rem; border-top: 1px solid rgba(247,243,234,.07); }
.site-footer__credit p { margin: 0; font-size: .78rem; letter-spacing: .06em; color: rgba(247,243,234,.4); }
.site-footer__maker { color: var(--gold-soft); font-weight: 500; letter-spacing: .08em; }
a.site-footer__maker { transition: color .3s var(--ease); }
a.site-footer__maker:hover { color: var(--gold); }

/* ============================================================
   ANIMAZIONI AL SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span::after { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .courts { grid-template-columns: 1fr 1fr; }
  .feature-band { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cards-3 { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .grid-2, .grid-2--wide { grid-template-columns: 1fr; }
  .circolo__aside { margin-top: .5rem; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  /* menu mobile / tablet */
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 1.6rem; padding: 2rem 2.4rem;
    background: linear-gradient(165deg, #06444e, #04333b);
    transform: translateX(100%); transition: transform .45s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.5);
  }
  .nav.open { transform: none; }
  .nav__link { color: var(--ivory) !important; font-size: 1rem; }
  .nav__cta { margin-top: .5rem; }
  #mainNav .lang-switch { margin-top: .6rem; border-color: rgba(247,243,234,.26) !important; background: rgba(247,243,234,.06) !important; }
  #mainNav .lang-switch__opt { color: var(--ivory) !important; }
  #mainNav .lang-switch__opt.is-active { background: var(--gold) !important; color: #06414a !important; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.open span { background: var(--ivory) !important; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  /* FIX menu mobile: da scrollati, il backdrop-filter dell'header (.scrolled) crea un
     "containing block" che intrappola il pannello del menu (position:fixed), dimensionandolo
     rispetto all'header (~80px) invece che al viewport → menu tutto storto/collassato.
     A menu aperto disattiviamo il filtro: il pannello torna a tutta altezza schermo. */
  body.nav-open .site-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .courts { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .feature-band { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero__stats { gap: 1.6rem 2rem; }
  .hero__stat-num { font-size: 2rem; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  .rating-hero { flex-direction: column; gap: 1rem; padding: 1.6rem; }
  .rating-hero__text { text-align: center; }
  .booking-actions { width: 100%; }
  .booking-actions .btn { width: 100%; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom { flex-direction: column; }
  .contact-form { padding: 1.8rem 1.4rem; }
}

@media (max-width: 440px) {
  .container { padding: 0 18px; }
  .brand__name { font-size: 1.18rem; }
  .brand__place { font-size: .54rem; letter-spacing: .2em; }
  .brand__logo { width: 44px; height: 44px; }
  .hero { padding: 7rem 0 4rem; }
  .hero__actions { gap: .7rem; }
  .hero__actions .btn { width: 100%; }
  .btn { padding: .9rem 1.5rem; }
  .section__title { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .staff-card, .discipline__visual { flex-basis: 100%; }
}

/* ============================================================
   BANNER COOKIE
   ============================================================ */
.cookie-banner {
  position: fixed; left: 22px; right: auto; bottom: 22px; z-index: 300; width: min(440px, calc(100vw - 44px));
  background: linear-gradient(165deg, #06444e, #04333b); color: var(--ivory);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
  box-shadow: 0 22px 50px -18px rgba(0,0,0,.6); padding: 1.4rem 1.5rem;
  transform: translateY(160%); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), opacity .45s var(--ease), visibility .5s;
}
.cookie-banner.is-open { transform: none; opacity: 1; visibility: visible; }
.cookie-banner__text { margin: 0 0 1.1rem; font-size: .92rem; font-weight: 300; color: rgba(244,239,228,.86); line-height: 1.6; }
.cookie-banner__text a { color: var(--gold-soft); border-bottom: 1px solid rgba(255,223,110,.4); }
.cookie-banner__text a:hover { border-color: var(--gold-soft); }
.cookie-banner__actions { display: flex; gap: .7rem; }
.cookie-banner__actions .btn { flex: 1; }
.cookie-banner .btn--ghost { color: var(--ivory); border-color: rgba(255,255,255,.4); }
.cookie-banner .btn--ghost:hover { background: rgba(255,255,255,.1); color: var(--ivory); border-color: rgba(255,255,255,.65); box-shadow: none; }
body.cookie-open .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }
@media (max-width: 520px) { .cookie-banner { left: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 1.2rem; } }

/* mappa — overlay di consenso */
.map-consent {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .9rem; text-align: center; padding: 1.5rem;
  background: repeating-linear-gradient(45deg, rgba(217,233,231,.5) 0 14px, transparent 14px 28px), var(--cream);
}
.map-consent[hidden] { display: none; }
.map-consent p { margin: 0; max-width: 36ch; font-size: .96rem; color: var(--green-800); }
.map-consent__link { color: var(--gold-deep); font-weight: 500; font-size: .86rem; border-bottom: 1px solid currentColor; }
.map-consent__link:hover { color: var(--green-800); }

/* footer — link legali */
.site-footer__legal { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; align-items: center; }
.site-footer__legal a { font-size: .82rem; color: rgba(247,243,234,.6); transition: color .3s; }
.site-footer__legal a:hover { color: var(--gold-soft); }

/* ============================================================
   PAGINE LEGALI (privacy / cookie / note legali)
   ============================================================ */
.legal-header { background: var(--ivory); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.legal-header .brand { color: var(--green-800); }
.legal-header .btn--ghost { color: var(--green-800); border-color: var(--line); }
.legal-header .btn--ghost:hover { background: var(--green-800); color: var(--ivory); border-color: var(--green-800); }
.legal-main { padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; background: var(--ivory); }
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .5rem; color: var(--ink); }
.legal__updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.4rem; }
.legal h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--green-800); margin: 2.6rem 0 .8rem; }
.legal h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 1.5rem 0 .4rem; }
.legal p, .legal li { color: var(--muted); font-size: 1.02rem; line-height: 1.72; }
.legal p { margin: 0 0 1rem; }
.legal ul { margin: 0 0 1.2rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.legal ul li { position: relative; padding-left: 1.5rem; }
.legal ul li::before { content: "\2726"; position: absolute; left: 0; top: .4rem; color: var(--gold-deep); font-size: .8rem; }
.legal a { color: var(--gold-deep); border-bottom: 1px solid rgba(13,90,100,.3); word-break: break-word; }
.legal a:hover { color: var(--green-800); border-color: currentColor; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__contact { background: var(--cream); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; margin: 1.6rem 0; }
.legal__contact p { margin: .25rem 0; }
