/* I caratteri del club, serviti da qui. Vedi index.html per il perche'. */
@font-face { font-family: Saira; src: url(../font/SairaSemiBold.woff) format('woff');
             font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: Saira; src: url(../font/SairaBold.woff) format('woff');
             font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Saira; src: url(../font/SairaExtraBold.woff) format('woff');
             font-weight: 800 900; font-style: normal; font-display: swap; }
@font-face { font-family: Sora; src: url(../font/SoraRegular.woff) format('woff');
             font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: Sora; src: url(../font/SoraMedium.woff) format('woff');
             font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Sora; src: url(../font/SoraSemiBold.woff) format('woff');
             font-weight: 600 700; font-style: normal; font-display: swap; }

/* GIKÈ CLUB — foglio di stile del sito.
   Palette chiara, costruita sui colori del logo: il verde e i due blu. */

:root {
  /* colori del marchio, campionati dal logo */
  --green:     #5CA518;
  --green-dk:  #47800F;
  --blue:      #0A72AE;
  --blue-dk:   #064E8F;
  --cyan:      #14A8C8;

  /* neutri chiari */
  --bg:        #F4F7F6;
  --bg-alt:    #FFFFFF;
  --surface:   #FFFFFF;
  --surface-2: #EEF3F0;
  --text:      #10222E;
  --muted:     #4C6573;
  --dim:       #647C8A;
  --faint:     #8195A0;
  --ink:       #0A1A24;   /* testo scuro sopra i fondi di marchio */

  --line:      rgba(16, 34, 46, .12);
  --line-soft: rgba(16, 34, 46, .07);

  --shadow-sm: 0 1px 2px rgba(16, 34, 46, .05), 0 2px 8px rgba(16, 34, 46, .04);
  --shadow-md: 0 2px 6px rgba(16, 34, 46, .06), 0 14px 32px -18px rgba(16, 34, 46, .28);
  --shadow-lg: 0 30px 70px -40px rgba(10, 60, 90, .55);

  --display: Saira, system-ui, sans-serif;
  --body:    Sora, system-ui, sans-serif;

  --gutter: 28px;
  --maxw:   1280px;

  --accent: var(--green);
}

/* Quello che è nascosto resta nascosto: senza, uno stile «display: grid» o
   «inline-flex» di un bottone vince sull'attributo hidden, e cose che dovevano
   sparire (la conferma del sito, i bottoni di un invito scaduto) restavano lì. */
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--green-dk); }
::selection { background: var(--green); color: #fff; }

img { max-width: 100%; }

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

/* ---------- elementi comuni ---------- */

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: var(--green-dk);
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; flex: none; border-radius: 2px; }
.eyebrow--blue { color: var(--blue); }

.title {
  margin: 14px 0 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 4.6vw, 64px); line-height: .95;
  text-transform: uppercase; letter-spacing: -.015em;
  color: var(--text);
}

.lead {
  margin: 0; max-width: 34ch;
  font-size: 15.5px; line-height: 1.65; color: var(--muted);
  text-wrap: pretty;
}
.lead--wide { max-width: 38ch; }

.section { padding: 110px var(--gutter); background: var(--bg); }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section__inner { max-width: var(--maxw); margin: 0 auto; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; margin-bottom: 46px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--display); font-weight: 800; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 17px 30px; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px -14px rgba(92, 165, 24, .9); }
.btn--primary:hover { background: var(--green-dk); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(92, 165, 24, .95); }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn--ghost:hover { color: var(--blue-dk); border-color: var(--blue); transform: translateY(-2px); }
.btn--sm { padding: 16px 28px; font-size: 13.5px; }

/* ---------- navigazione ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px var(--gutter);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 56px; width: auto; display: block; }
.nav__links {
  display: flex; align-items: center; gap: clamp(12px, 2.2vw, 28px);
  flex-wrap: wrap; justify-content: flex-end;
  font-family: var(--display); font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.nav__link { color: var(--muted); }
.nav__link:hover { color: var(--green-dk); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(100deg, var(--green), var(--blue));
  color: #fff; font-weight: 800; letter-spacing: .1em;
  box-shadow: 0 10px 22px -14px rgba(10, 114, 174, .9);
}
.nav__cta:hover { color: #fff; filter: saturate(1.1); }

/* Sul telefono i collegamenti non ci stanno: al loro posto il pulsante con
   le tre righe, che apre la tendina (menu.js la costruisce dalle stesse voci). */
.nav__menu, .nav__tendina { display: none; }
@media (max-width: 960px) {
  .nav__link { display: none; }
  .nav__menu {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line); background: var(--surface); color: var(--text);
  }
  .nav__menu-righe { position: relative; width: 18px; height: 12px; }
  .nav__menu-righe i {
    position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
  }
  .nav__menu-righe i:nth-child(1) { top: 0; }
  .nav__menu-righe i:nth-child(2) { top: 5px; }
  .nav__menu-righe i:nth-child(3) { top: 10px; }
  .nav[data-menu="aperto"] .nav__menu-righe i:nth-child(1) { top: 5px; transform: rotate(45deg); }
  .nav[data-menu="aperto"] .nav__menu-righe i:nth-child(2) { opacity: 0; }
  .nav[data-menu="aperto"] .nav__menu-righe i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
  .nav__tendina {
    display: grid; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 72px); overflow-y: auto;
    padding: 4px var(--gutter) 16px; background: var(--surface);
    border-bottom: 1px solid var(--line-soft); box-shadow: 0 30px 40px -30px rgba(16, 34, 46, .45);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav[data-menu="aperto"] .nav__tendina {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__tendina-voce {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 2px; border-bottom: 1px solid var(--line-soft);
    font-family: var(--display); font-size: 16px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  }
  .nav__tendina-voce:last-child { border-bottom: 0; }
  .nav__tendina-voce::after { content: '→'; color: var(--green); font-weight: 800; }
  .nav__tendina-voce[aria-current="page"] { color: var(--green-dk); }
}

/* ---------- hero ---------- */

.hero { padding: 132px var(--gutter) 72px; background: var(--bg-alt); }
.hero__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__tag {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-size: 12.5px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: var(--green-dk);
}
.hero__tag::before { content: ""; width: 44px; height: 2px; background: currentColor; flex: none; border-radius: 2px; }
.hero__title {
  margin: 22px 0 0; max-width: 14ch;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(46px, 6.2vw, 92px); line-height: .92;
  letter-spacing: -.02em; text-transform: uppercase;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--green), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin: 26px 0 0; max-width: 46ch; font-size: 17.5px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__media {
  position: relative; border-radius: 26px; overflow: hidden;
  aspect-ratio: 4 / 3; max-width: 100%;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.hero__photo, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo { object-fit: cover; }
.hero__canvas { display: block; }
.hero__canvas[hidden] { display: none; }

/* ---------- barra numeri ---------- */

.stats { background: var(--bg); border-bottom: 1px solid var(--line-soft); }
.stats__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat { padding: 34px var(--gutter); border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; color: var(--text); }
.stat__num--green { color: var(--green-dk); }
.stat__num--blue  { color: var(--blue); }
.stat__label { margin-top: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

/* ---------- impianto 3D ---------- */

.stage { position: relative; height: 420vh; background: var(--bg-alt); }
.stage__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg-alt); }
.stage__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; touch-action: pan-y; cursor: grab;
}
.stage__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,0) 22%),
    linear-gradient(0deg,   rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 20%),
    /* velo a sinistra: tiene leggibile il titolo sopra il modello */
    linear-gradient(90deg,  rgba(255,255,255,.72) 0%, rgba(255,255,255,0) 32%);
}
.stage__overlay { position: absolute; inset: 0; pointer-events: none; }
.stage__intro { position: absolute; left: var(--gutter); top: 116px; max-width: 360px; pointer-events: none; }
.stage__intro h2 {
  margin: 14px 0 12px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 4vw, 58px); line-height: .95;
  text-transform: uppercase; letter-spacing: -.015em;
}
.stage__intro p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.stage__fallback { position: absolute; inset: auto 20px 92px; text-align: center; font-size: 13.5px; color: var(--dim); }

.hot {
  position: absolute; top: 0; left: 0; opacity: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 15px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
  backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
  font-family: var(--display); font-size: 12.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: var(--green-dk);
}
.hot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.hot--green { color: var(--green-dk); border-color: rgba(92, 165, 24, .4); }
.hot--blue  { color: var(--blue);     border-color: rgba(10, 114, 174, .4); }
.hot--club  { color: #B07A12;         border-color: rgba(176, 122, 18, .35); }
.hot--muted { color: var(--dim);      border-color: var(--line); font-weight: 600; }
.hot__label { color: var(--text); }
.hot--muted .hot__label { color: var(--muted); }

.chips {
  position: absolute; left: 0; right: 0; bottom: 26px;
  display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; padding: 0 20px;
}
.chip {
  padding: 11px 18px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .9); color: var(--muted);
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.chip:hover { border-color: var(--green); color: var(--green-dk); }
.chip[aria-current="true"] { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- campi ---------- */

/* Sopra i campi da calcio, stretti e alti come un campo visto dall'alto,
   quattro per riga con il video; sotto i due padel e il video, tre per riga
   nella stessa larghezza. */
.cards {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px; perspective: 1400px;
}
.cards > .card { grid-column: span 4; }
.cards > .card--verticale { grid-column: span 3; min-height: 520px; }
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards > .card, .cards > .card--verticale { grid-column: auto; }
  .cards > .card--verticale { min-height: 460px; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .cards > .card--verticale { min-height: 420px; }
}
.card {
  position: relative; padding: 30px; min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 22px; border: 1px solid var(--line-soft);
  background: linear-gradient(170deg, rgba(92, 165, 24, .1) 0%, var(--surface) 55%);
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .35s ease, border-color .35s ease;
}
.card:hover { border-color: rgba(92, 165, 24, .45); box-shadow: var(--shadow-md); }
.card--lead { background: linear-gradient(170deg, rgba(92, 165, 24, .18) 0%, var(--surface) 58%); }
.card--padel { background: linear-gradient(170deg, rgba(10, 114, 174, .1) 0%, var(--surface) 55%); }
.card--padel:hover { border-color: rgba(10, 114, 174, .45); }
.card--padel-lead { background: linear-gradient(170deg, rgba(10, 114, 174, .18) 0%, var(--surface) 58%); }
.card--padel-lead:hover { border-color: rgba(10, 114, 174, .5); }

.card__top { transform: translateZ(30px); }
.card__kicker {
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--green-dk);
}
.card__kicker--blue { color: var(--blue); }
.card__name {
  margin-top: 16px; font-family: var(--display); font-weight: 800;
  font-size: 54px; line-height: .9; text-transform: uppercase; color: var(--text);
}
.card__specs { transform: translateZ(18px); display: grid; gap: 10px; font-size: 14px; color: var(--dim); }
.card__specs div {
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line-soft); padding-top: 10px;
}
.card__specs strong { font-weight: 600; color: var(--text); text-align: right; }

.card--photo { padding: 0; overflow: hidden; background: var(--surface-2); }
.card--photo:hover { border-color: var(--line); }
.card--photo picture, .card--photo img, .card__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.card--photo img, .card__video { object-fit: cover; }
.card__video { background: #0d2a16; }
.card--photo .card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 34, 46, 0) 38%, rgba(16, 34, 46, .82) 100%);
}
.card__caption { position: absolute; left: 26px; right: 26px; bottom: 24px; transform: translateZ(24px); }
.card__caption strong {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 26px; line-height: 1; text-transform: uppercase; color: #fff;
}
.card__caption span { display: block; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .84); }
@media (max-width: 1100px) and (min-width: 981px) { .card--verticale .card__name { font-size: 38px; } }

/* Le schede-campo: il campo visto dall'alto fa da sfondo, il nome ci sta
   sopra in bianco e le caratteristiche in un tabellone chiaro in fondo,
   perché sopra le righe bianche si leggerebbero male. */
.card--campo { overflow: hidden; color: #fff; }
.card--campo > * { position: relative; }
.card--calcio {
  border-color: rgba(38, 104, 28, .55);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .055) 0 11.11%, rgba(0, 0, 0, .045) 11.11% 22.22%),
    radial-gradient(120% 90% at 50% 0%, #5aa634 0%, #3d8a27 55%, #2c6e1f 100%);
}
.card--calcio:hover { border-color: rgba(38, 104, 28, .9); }
/* in verticale le strisce dell'erba corrono di traverso, come sul campo vero */
.card--calcio.card--verticale {
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .055) 0 8.33%, rgba(0, 0, 0, .045) 8.33% 16.66%),
    radial-gradient(120% 90% at 50% 0%, #5aa634 0%, #3d8a27 55%, #2c6e1f 100%);
}
.card--verticale { padding: 26px 22px; }
.card--verticale .card__name { font-size: 46px; }
.card--verticale .card__specs { font-size: 13px; gap: 8px; }
.card--verticale .card__specs div { gap: 10px; }
.card--padelcampo {
  border-color: rgba(8, 72, 128, .55);
  background:
    linear-gradient(90deg, transparent 0 17.3%, rgba(255, 255, 255, .04) 17.3% 82.7%, transparent 82.7%),
    radial-gradient(120% 90% at 50% 0%, #1f7cc2 0%, #135f9f 55%, #0b4a80 100%);
}
.card--outdoor {
  background:
    linear-gradient(90deg, transparent 0 17.3%, rgba(255, 255, 255, .05) 17.3% 82.7%, transparent 82.7%),
    radial-gradient(120% 90% at 80% 0%, #4aa3dc 0%, #1d77bb 50%, #125f9c 100%);
}
.card--padelcampo:hover { border-color: rgba(8, 72, 128, .9); }

.card__linee {
  position: absolute !important; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px);
  fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 2;
  pointer-events: none;
}
.card__linee * { vector-effect: non-scaling-stroke; }
.card__vetro { stroke: rgba(210, 236, 255, .45); stroke-width: 7; }
.card__rete { stroke: rgba(255, 255, 255, .95); stroke-width: 3.5; stroke-dasharray: 2 3; }

.card--campo .card__kicker { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.card--campo .card__name { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .3); }
.card--campo .card__specs {
  margin-top: 26px; padding: 4px 16px 12px;
  background: rgba(255, 255, 255, .94); border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.card--campo .card__specs div:first-child { border-top: 0; }

/* ---------- prenotazione ---------- */

.booking { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.booking__panel {
  flex: 1 1 440px; min-width: 0;
  padding: clamp(18px, 3vw, 30px); border-radius: 24px;
  border: 1px solid var(--line-soft); background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.field-label {
  font-family: var(--display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 12px;
}

.seg { display: flex; gap: 10px; margin-bottom: 26px; }
.seg__btn {
  flex: 1; padding: 15px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--dim);
  font-family: var(--display); font-size: 14px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.seg__btn:hover { color: var(--text); }
.seg__btn[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.seg__btn--padel[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }

.courts { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 28px; }
.court-btn {
  padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--dim);
  font-family: var(--body); font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.court-btn:hover { color: var(--text); border-color: var(--accent); }
.court-btn[aria-pressed="true"] { background: var(--surface-2); color: var(--text); border-color: var(--accent); font-weight: 600; }

.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 28px; }
.day-btn {
  display: block; padding: 13px 6px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  text-align: center; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.day-btn:hover { border-color: var(--accent); }
.day-btn[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.day-btn__dow { display: block; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.day-btn__num { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.2; }

.slots { display: grid; gap: 22px; }
.slots__gruppo { display: grid; gap: 10px; }
.slots__momento {
  font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
}
.slots__griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slots__pieno { font-size: 12.5px; color: var(--faint); }
.slot-btn {
  padding: 14px 6px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-family: var(--display); font-size: 15px; font-weight: 700;
  letter-spacing: .06em; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.slot-btn:hover:not([disabled]) { border-color: var(--accent); }
.slot-btn[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.slot-btn[disabled] {
  background: var(--surface-2); color: var(--faint); border-color: var(--line-soft);
  cursor: not-allowed; text-decoration: line-through;
}

.summary {
  flex: 1 1 300px; max-width: 100%; align-self: stretch;
  padding: clamp(20px, 3vw, 30px); border-radius: 24px;
  border: 1px solid rgba(92, 165, 24, .3);
  background: linear-gradient(170deg, rgba(92, 165, 24, .13), var(--surface) 62%);
  box-shadow: var(--shadow-sm);
}
.summary__court {
  margin-top: 20px; font-family: var(--display); font-weight: 800;
  font-size: 30px; line-height: 1.05; text-transform: uppercase;
}
.summary__rows { margin: 22px 0 0; display: grid; gap: 12px; font-size: 14.5px; }
.summary__rows div {
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line-soft); padding-top: 12px;
}
.summary__rows dt { color: var(--dim); margin: 0; }
.summary__rows dd { margin: 0; font-weight: 500; }
.summary__total { align-items: baseline; }
.summary__total dd { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--green-dk); }
.summary__total dd small { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--dim); }
.summary__cta {
  margin-top: 26px; display: flex; align-items: center; justify-content: center;
  padding: 17px; border-radius: 14px;
  background: var(--surface-2); color: var(--faint);
  font-family: var(--display); font-size: 14px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
}
.summary__cta[data-ready="true"] { background: var(--green); color: #fff; box-shadow: 0 10px 24px -14px rgba(92, 165, 24, .9); }
.summary__cta[data-ready="true"]:hover { background: var(--green-dk); color: #fff; }
.summary__note { margin: 16px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--faint); }

/* nascosto vuol dire nascosto: le regole qui sotto danno un display, e senza
   questa il bottone «Prenota» restava visibile sopra il modulo */
.summary [hidden], .summary__cta[hidden], .summary__form[hidden], .summary__esito[hidden] { display: none !important; }
.summary__form { margin-top: 20px; display: grid; gap: 7px; }
.summary__form label {
  font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
}
.summary__form label + input { margin-bottom: 8px; }
.summary__form input {
  font: inherit; width: 100%; padding: 13px 15px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
}
.summary__form input:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 114, 174, .15);
}
.summary__form .summary__cta { margin-top: 6px; width: 100%; border: 0; cursor: pointer; }
.summary__nota-form { margin: 10px 0 0; font-size: 12px; line-height: 1.55; color: var(--faint); }
.summary__quanti { display: grid; gap: 7px; margin-bottom: 8px; }
.summary__quanti label span { letter-spacing: .04em; text-transform: none; font-weight: 500; font-family: var(--body, inherit); }
.summary__quanti .summary__nota-form { margin-top: 0; }
.contatore { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); width: 100%; }
.contatore button { flex: 0 0 52px; border: 0; background: var(--surface-2); color: var(--text); font-size: 22px; font-weight: 700; cursor: pointer; }
.contatore button:disabled { opacity: .35; cursor: default; }
.summary__form .contatore input { border: 0; border-radius: 0; text-align: center; font-family: var(--display); font-size: 20px; font-weight: 800; -moz-appearance: textfield; }
.contatore input::-webkit-outer-spin-button, .contatore input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.summary__esito {
  margin: 18px 0 0; padding: 14px 16px; border-radius: 14px;
  font-size: 14px; line-height: 1.55;
  background: rgba(92, 165, 24, .12); border: 1px solid rgba(92, 165, 24, .35); color: var(--green-dk);
}
.summary__esito--errore {
  background: rgba(179, 38, 30, .08); border-color: rgba(179, 38, 30, .3); color: #8E1F19;
}

/* ---------- tariffe ---------- */

.rates {
  border: 1px solid var(--line-soft); border-radius: 24px; overflow-x: auto;
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.rates__row {
  display: grid; min-width: 560px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; border-top: 1px solid var(--line-soft);
}
.rates__row--head {
  border-top: 0; background: var(--surface-2);
  font-family: var(--display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--dim);
}
.rates__row--head > * { padding: 18px 24px; }
.rates__row > * { padding: 22px 24px; }
.rates__name { font-family: var(--display); font-size: 20px; font-weight: 700; }
.rates__note { margin-top: 4px; font-size: 13px; color: var(--faint); }
.rates__price { font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--green-dk); }
.rates__price small { font-family: var(--body); font-size: 12.5px; font-weight: 400; color: var(--dim); display: block; margin-top: 2px; }
.rates__dur { font-size: 15px; color: var(--muted); }
/* Sul telefono la tabella scorreva e il prezzo restava fuori: due colonne,
   campo e prezzo. La durata è la stessa per tutti, ed è scritta sopra. */
@media (max-width: 620px) {
  .rates__row { min-width: 0; grid-template-columns: minmax(0, 1fr) auto; }
  .rates__row > :nth-child(3) { display: none; }
  .rates__row > * { padding: 18px 20px; }
  .rates__row--head > * { padding: 16px 20px; }
  .rates__row > :nth-child(2) { text-align: right; }
  .rates__name { font-size: 18px; }
  .rates__price { font-size: 26px; }
}

/* ---------- l'invito a scaricare l'app ---------- */

.app-invito {
  background: linear-gradient(160deg, rgba(92, 165, 24, .12), var(--bg-alt) 55%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.app-invito__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.app-invito__punti {
  margin: 22px 0 0; padding: 0; list-style: none;
  display: grid; gap: 9px; font-size: 14.5px; color: var(--muted);
}
.app-invito__punti li { display: flex; align-items: flex-start; gap: 10px; }
.app-invito__punti li::before {
  content: ""; flex: none; margin-top: 7px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}
.app-invito__bottoni { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.app-invito__presto {
  padding: 13px 20px; border-radius: 999px;
  background: var(--surface); border: 1px dashed var(--line);
  font-family: var(--display); font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.app-invito__figura {
  width: clamp(120px, 20vw, 190px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 34px; background: var(--surface);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg);
}
.app-invito__figura img { width: 62%; height: auto; }

@media (max-width: 760px) {
  .app-invito__inner { grid-template-columns: minmax(0, 1fr); }
  .app-invito__figura { display: none; }
}

/* ---------- classifica dei tornei ---------- */

.classifica {
  margin-top: 4px; border: 1px solid var(--line-soft); border-radius: 14px;
  overflow: hidden; background: var(--surface);
}
.classifica__riga {
  display: grid; align-items: center;
  grid-template-columns: 26px minmax(0, 1fr) 26px 26px 26px 26px 34px;
  gap: 4px; padding: 10px 13px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.classifica__riga:first-child { border-top: 0; }
.classifica__riga--testa {
  background: var(--surface-2);
  font-family: var(--display); font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.classifica__pos { font-family: var(--display); font-weight: 800; color: var(--faint); }
.classifica__pos--primo { color: var(--green-dk); }
.classifica__squadra {
  min-width: 0; display: grid; gap: 1px 8px;
  grid-template-columns: auto 1fr; align-items: center;
}
.classifica__squadra strong, .classifica__squadra small { grid-column: 2; }
.classifica__stemma, .classifica__sigla { grid-row: 1 / span 2; grid-column: 1; }
.classifica__stemma { width: 26px; height: 26px; object-fit: contain; }
.classifica__sigla {
  display: grid; place-items: center; min-width: 30px; padding: 3px 5px;
  border-radius: 7px; background: var(--faint); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 10.5px; letter-spacing: .04em;
}
.classifica__squadra strong {
  font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.classifica__squadra small {
  font-size: 10.5px; color: var(--faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.classifica__punti {
  font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--green-dk);
  text-align: right;
}
.classifica__punti--blu { color: var(--blue); }
.classifica__girone {
  padding: 8px 13px 6px; border-top: 1px solid var(--line-soft);
  font-family: var(--display); font-size: 10.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dim); background: var(--bg);
}
.classifica__nota {
  margin: 0; padding: 10px 13px; border-top: 1px solid var(--line-soft);
  font-size: 11px; line-height: 1.5; color: var(--faint); background: var(--bg);
}

@media (max-width: 420px) {
  .classifica__riga { grid-template-columns: 22px minmax(0, 1fr) 24px 24px 30px; gap: 3px; padding: 9px 10px; }
  .classifica__riga > span:nth-child(5),
  .classifica__riga > span:nth-child(6) { display: none; }
}

.perks { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.perks--due { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .perks--due { grid-template-columns: 1fr; } }
.perk { padding: 26px; border-radius: 18px; border: 1px solid var(--line-soft); background: var(--surface); box-shadow: var(--shadow-sm); }
.perk strong { display: block; font-family: var(--display); font-size: 19px; font-weight: 700; }
.perk p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- eventi ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.event {
  padding: 28px; border-radius: 20px; border: 1px solid var(--line-soft);
  background: var(--surface); box-shadow: var(--shadow-sm); display: grid; gap: 18px;
}
.event--green { background: linear-gradient(170deg, rgba(92, 165, 24, .12), var(--surface) 58%); }
.event--blue  { background: linear-gradient(170deg, rgba(10, 114, 174, .12), var(--surface) 58%); }
.event__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tag {
  padding: 7px 13px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
  font-family: var(--display); font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.tag--green { background: rgba(92, 165, 24, .16); color: var(--green-dk); }
.tag--blue  { background: rgba(10, 114, 174, .14); color: var(--blue-dk); }
.event__when { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--dim); }
.event h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase; }
.event p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.event__meta {
  display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--dim);
  border-top: 1px solid var(--line-soft); padding-top: 16px;
}
.link-cta { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- corsi ---------- */

.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; }
.courses__intro h2 {
  margin: 14px 0 20px; font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 4.6vw, 58px); line-height: .95;
  text-transform: uppercase; letter-spacing: -.015em;
}
.courses__intro p { margin: 0 0 30px; max-width: 44ch; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.courses__list { display: grid; gap: 14px; }
.course {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center;
  padding: 24px; border-radius: 18px; border: 1px solid var(--line-soft);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.course__side {
  font-family: var(--display); font-size: 13px; font-weight: 800; letter-spacing: .1em;
  color: var(--green-dk); writing-mode: vertical-rl; text-transform: uppercase;
}
.course--padel .course__side { color: var(--blue); }
.course strong { font-family: var(--display); font-size: 22px; font-weight: 700; }
.course p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- contatti ---------- */

.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.info__card { padding: 28px; border-radius: 20px; border: 1px solid var(--line-soft); background: var(--surface); box-shadow: var(--shadow-sm); }
.info__label {
  font-family: var(--display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--faint);
}
.info__value { margin-top: 14px; font-size: 17px; line-height: 1.55; }
.info__value small { display: block; font-size: 14px; color: var(--faint); margin-top: 2px; }
.info__links { margin-top: 14px; display: grid; gap: 8px; font-size: 17px; justify-items: start; }

.highlights { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.highlight { padding: 28px; border-radius: 20px; box-shadow: var(--shadow-sm); }
.highlight--green { border: 1px solid rgba(92, 165, 24, .3); background: linear-gradient(160deg, rgba(92, 165, 24, .13), var(--surface) 62%); }
.highlight--blue  { border: 1px solid rgba(10, 114, 174, .3); background: linear-gradient(160deg, rgba(10, 114, 174, .13), var(--surface) 62%); }
.highlight strong { display: block; font-family: var(--display); font-size: 24px; font-weight: 800; text-transform: uppercase; }
.highlight p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

/* ---------- footer ---------- */

.footer { padding: 44px var(--gutter); border-top: 1px solid var(--line-soft); background: var(--bg-alt); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer img { height: 84px; width: auto; }
.footer__note { font-size: 13px; color: var(--faint); text-align: right; }
.footer__note a { color: var(--dim); white-space: nowrap; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__media { aspect-ratio: 16 / 10; order: -1; }
}

@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .section { padding: 84px var(--gutter); }
  .hero { padding: 112px var(--gutter) 56px; }
  .stage { height: 360vh; }
  .stage__intro { top: 96px; max-width: min(360px, 74vw); }
  .card__name { font-size: 44px; }
}

@media (max-width: 720px) {
  .nav { padding: 8px var(--gutter); gap: 12px; }
  .nav__logo img { height: 44px; }
  .nav__link { display: none; }
  .nav__cta { padding: 11px 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .days { gap: 5px; }
  .day-btn { padding: 10px 2px; }
  .day-btn__num { font-size: 18px; }
  .slots__griglia { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
  .stage__intro p { display: none; }
  /* Nove pulsanti su un telefono andavano a capo cinque volte e coprivano
     un terzo dell'impianto. Su una riga sola che scorre, invece, restano
     fuori dai piedi. */
  .chips {
    bottom: 18px; gap: 6px; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; padding: 0 16px 2px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { padding: 9px 13px; font-size: 11px; flex: 0 0 auto; scroll-snap-align: center; }
  .footer__inner { justify-content: center; }
  .footer__note { text-align: center; }
}

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

/* Un torneo con i suoi colori si riconosce già dalla scheda: una riga in
   alto del suo colore, il logo accanto al nome. */
.event--vestito { border-top: 3px solid var(--torneo); }
.event__titolo { display: flex; align-items: center; gap: 12px; }
.event__logo {
  width: 54px; height: 54px; object-fit: contain; flex: 0 0 auto;
  border-radius: 12px; background: var(--surface-2); padding: 5px;
}
.event__titolo h3 { margin: 0; }
.event__sottotitolo {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--torneo, var(--dim));
}

/* Il cursore dice che sport stai prenotando: il pallone del club sui campi da
   calcio, la racchetta del club su quelli da padel — le foto vere, ritagliate
   a 32 e 64 pixel. Il punto attivo è al centro dell'immagine e sotto resta
   sempre il `pointer`, se il browser non carica il disegno. */
.booking--calcio .booking__panel,
.booking--calcio .booking__panel button,
.booking--calcio .summary__cta {
  cursor: url(../img/cursore-pallone.png) 16 16, pointer;
  cursor: -webkit-image-set(url(../img/cursore-pallone.png) 1x,
                            url(../img/cursore-pallone@2x.png) 2x) 16 16, pointer;
  cursor: image-set(url(../img/cursore-pallone.png) 1x,
                    url(../img/cursore-pallone@2x.png) 2x) 16 16, pointer;
}
.booking--padel .booking__panel,
.booking--padel .booking__panel button,
.booking--padel .summary__cta {
  cursor: url(../img/cursore-racchetta.png) 16 16, pointer;
  cursor: -webkit-image-set(url(../img/cursore-racchetta.png) 1x,
                            url(../img/cursore-racchetta@2x.png) 2x) 16 16, pointer;
  cursor: image-set(url(../img/cursore-racchetta.png) 1x,
                    url(../img/cursore-racchetta@2x.png) 2x) 16 16, pointer;
}
/* Sugli orari già presi il cursore torna a dire "qui no". */
.booking .slot-btn[disabled],
.booking .slot-btn--preso { cursor: not-allowed; }

/* ============ la conferma della prenotazione ============
   Prenotare è il momento in cui si tira fuori il portafoglio: il sì del club
   arriva a tutto schermo, non come una riga di testo in fondo al riquadro. */

/* `display: grid` vince su `hidden`, che vale solo finche' nessuno dice
   altro: senza questa riga il riquadro compare all'apertura del sito. */
.conferma[hidden] { display: none; }

.conferma {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(6px);
  animation: conferma-entra .25s ease-out both;
}
@keyframes conferma-entra { from { opacity: 0 } to { opacity: 1 } }

.conferma__foglio {
  width: min(460px, 100%); text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 26px; padding: 34px 26px 26px;
  box-shadow: 0 30px 70px rgba(16, 34, 46, .18);
  animation: conferma-sale .45s cubic-bezier(.2, .9, .3, 1.1) both;
}
@keyframes conferma-sale {
  from { opacity: 0; transform: translateY(24px) scale(.96) }
  to   { opacity: 1; transform: none }
}

.conferma__segno { position: relative; display: grid; place-items: center; height: 132px; }

.conferma__cerchio {
  width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent, var(--green));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent, var(--green)) 38%, transparent);
  animation: conferma-scatto .5s cubic-bezier(.2, 1.3, .4, 1) both;
  grid-area: 1 / 1;
}
.conferma__cerchio svg { width: 112px; height: 112px; }
@keyframes conferma-scatto {
  from { transform: scale(.35); opacity: 0 }
  to   { transform: scale(1); opacity: 1 }
}

/* la spunta si disegna: il tratto che si chiude vale più di un'icona già fatta */
.conferma__spunta {
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: conferma-traccia .4s ease-out .22s both;
}
@keyframes conferma-traccia { to { stroke-dashoffset: 0 } }

.conferma__onda {
  grid-area: 1 / 1;
  width: 112px; height: 112px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent, var(--green)) 45%, transparent);
  animation: conferma-onda 1.1s ease-out .3s both;
}
.conferma__onda--due { animation-delay: .46s }
@keyframes conferma-onda {
  from { transform: scale(.9); opacity: .9 }
  to   { transform: scale(1.9); opacity: 0 }
}

.conferma__titolo {
  font-family: var(--display); font-weight: 800; font-size: clamp(26px, 6vw, 32px);
  letter-spacing: -.02em; margin: 22px 0 0; color: var(--text);
  animation: conferma-testo .45s ease-out .34s both;
}
.conferma__sotto {
  margin: 8px 0 0; color: var(--dim); font-size: 14px; line-height: 1.5;
  animation: conferma-testo .45s ease-out .4s both;
}
@keyframes conferma-testo {
  from { opacity: 0; transform: translateY(10px) }
  to   { opacity: 1; transform: none }
}

.conferma__righe {
  margin: 22px 0 0; text-align: left; display: grid; gap: 0;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  animation: conferma-testo .45s ease-out .46s both;
}
.conferma__righe > div {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 15px;
}
.conferma__righe > div + div { border-top: 1px solid var(--line-soft, var(--line)) }
.conferma__righe dt { color: var(--dim); font-size: 13px; margin: 0 }
.conferma__righe dd {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: 14.5px; color: var(--text);
  text-align: right;
}
.conferma__righe > div:last-child dd { color: var(--accent, var(--green-dk)); font-size: 16px }

.conferma__azioni {
  margin-top: 22px; display: grid; gap: 8px;
  animation: conferma-testo .45s ease-out .52s both;
}
.conferma__azioni .btn { width: 100% }

/* i coriandoli: scoppiano dal centro e poi cadono */
/* Ancorati al centro del cerchio: lasciati sull'angolo in alto a sinistra
   scoppiavano da fuori campo, che non e' proprio l'effetto voluto. */
.conferma__coriandoli {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0; pointer-events: none;
}
.coriandolo {
  position: absolute; top: 0; left: 0; opacity: 0;
  animation: coriandolo 2.4s cubic-bezier(.15, .6, .4, 1) var(--ritardo, 0s) both;
}
@keyframes coriandolo {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0 }
  10%  { opacity: 1 }
  26%  { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--giro) * .25)); opacity: 1 }
  100% { transform: translate(var(--dx), calc(var(--dy) + var(--caduta))) rotate(var(--giro)); opacity: 0 }
}

/* Chi ha chiesto meno animazioni riceve lo stesso messaggio, fermo. */
@media (prefers-reduced-motion: reduce) {
  .conferma, .conferma__foglio, .conferma__cerchio, .conferma__spunta,
  .conferma__titolo, .conferma__sotto, .conferma__righe, .conferma__azioni { animation: none }
  .conferma__spunta { stroke-dashoffset: 0 }
  .conferma__onda, .conferma__coriandoli { display: none }
}

/* ============ le pagine dei documenti ============
   Testo lungo da leggere, non da scorrere: una colonna stretta, righe alte,
   e i titoli che si distinguono senza gridare. */
.doc { padding: 120px 0 80px; }
.doc__inner { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.doc__briciole { font-size: 12.5px; color: var(--faint); margin: 0 0 18px; }
.doc__briciole a { color: var(--dim); }
.doc__titolo {
  font-family: var(--display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(30px, 6vw, 44px); line-height: 1.05; margin: 0; color: var(--text);
}
.doc__data { margin: 10px 0 30px; font-size: 13px; color: var(--faint); }
.doc__avviso {
  border: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border-radius: 14px; padding: 16px 18px; margin: 0 0 34px;
  font-size: 13.5px; line-height: 1.6; color: var(--text);
}
.doc h2 {
  font-family: var(--display); font-weight: 800; font-size: 21px;
  margin: 38px 0 10px; color: var(--text);
}
.doc h3 {
  font-family: var(--display); font-weight: 700; font-size: 16px;
  margin: 24px 0 8px; color: var(--text);
}
.doc p, .doc li { font-size: 15px; line-height: 1.72; color: var(--dim); }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 16px; padding-left: 20px; }
.doc li { margin-bottom: 7px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--text);
}
.doc__tabella {
  width: 100%; border-collapse: collapse; margin: 0 0 20px;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  display: block; overflow-x: auto;
}
.doc__tabella th, .doc__tabella td {
  text-align: left; padding: 11px 14px; font-size: 13.5px; line-height: 1.55;
  border-bottom: 1px solid var(--line-soft); vertical-align: top;
}
.doc__tabella th {
  font-family: var(--display); font-weight: 700; font-size: 11.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  background: var(--surface-2); white-space: nowrap;
}
.doc__tabella td { color: var(--dim); }
.doc__tabella tr:last-child td { border-bottom: 0; }

.nav__link[aria-current="page"] { color: var(--green-dk); }

/* Ogni scheda porta alla pagina del suo torneo. */
.event--link { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.event--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md, 0 14px 34px rgba(16, 34, 46, .12)); }
.event__vai {
  font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; color: var(--green-dk);
}
.event--blue .event__vai { color: var(--blue-dk); }
.event--vestito .event__vai { color: var(--torneo); }


/* ---------- le locandine dei tornei ---------- */
.tornei-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.torneo-card {
  position: relative; overflow: hidden; border-radius: 26px; min-height: 420px; padding: 30px;
  display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; color: #fff;
  box-shadow: 0 18px 44px -22px rgba(16, 34, 46, .55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.torneo-card:hover { transform: translateY(-4px); box-shadow: 0 26px 54px -24px rgba(16, 34, 46, .6); }
.torneo-card--colori {
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--t2) 55%, transparent) 0%, transparent 55%),
    linear-gradient(160deg, var(--t1) 0%, color-mix(in srgb, var(--t1) 55%, #0b1620) 100%);
}
.torneo-card--copertina {
  background: linear-gradient(180deg, rgba(8, 16, 24, .1) 0%, rgba(8, 16, 24, .55) 45%, rgba(8, 16, 24, .92) 100%), var(--foto) center / cover no-repeat;
}
.torneo-card--chiaro {
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line-soft); border-top: 5px solid var(--t1);
}
.torneo-card__dentro { position: relative; z-index: 1; display: grid; gap: 12px; max-width: 560px; }
.torneo-card__etichette { display: flex; flex-wrap: wrap; gap: 8px; }
.torneo-card__tag {
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
  font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.torneo-card--chiaro .torneo-card__tag { background: color-mix(in srgb, var(--t1) 12%, transparent); color: var(--t1); }
.torneo-card__sotto { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.torneo-card__nome {
  margin: 0; font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: clamp(30px, 3.4vw, 42px); line-height: .95; text-transform: uppercase; text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.torneo-card--chiaro .torneo-card__nome { text-shadow: none; }
.torneo-card__testo { margin: 0; font-size: 14.5px; line-height: 1.55; opacity: .9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.torneo-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; opacity: .88; }
.torneo-card__meta span + span::before { content: '·'; margin-right: 16px; opacity: .6; }
.torneo-card__podio { margin: 4px 0 0; padding: 10px 14px; list-style: none; counter-reset: pos; border-radius: 14px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.torneo-card--chiaro .torneo-card__podio { background: var(--surface-2); }
.torneo-card__podio li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; counter-increment: pos; font-size: 14px; }
.torneo-card__podio li span::before { content: counter(pos) '.  '; font-family: var(--display); font-weight: 800; opacity: .7; }
.torneo-card__vai {
  justify-self: start; margin-top: 6px; padding: 13px 20px; border-radius: 999px; text-decoration: none;
  background: #fff; color: #10222e; font-family: var(--display); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.torneo-card--chiaro .torneo-card__vai { background: var(--t1); color: #fff; }
.torneo-card__logo {
  position: absolute; top: 24px; right: 24px; width: 104px; height: 104px; object-fit: contain; z-index: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35));
}
/* un torneo solo: un banner largo, con il logo grande a destra */
.tornei--uno { grid-template-columns: 1fr; }
.tornei--uno .torneo-card { min-height: 380px; padding: 40px; }
.tornei--uno .torneo-card__logo { top: 50%; right: 48px; width: min(260px, 30%); height: auto; max-height: 80%; transform: translateY(-50%); }
.tornei--uno .torneo-card__dentro { max-width: min(620px, 62%); }
@media (max-width: 720px) {
  .tornei--uno .torneo-card { padding: 28px; }
  .tornei--uno .torneo-card__logo { position: absolute; top: 22px; right: 22px; width: 88px; transform: none; }
  .tornei--uno .torneo-card__dentro { max-width: none; }
  .torneo-card { min-height: 460px; }
}

.torneo-card__campo { position: absolute; top: 18px; right: 18px; bottom: 18px; width: 42%; max-width: 260px; color: rgba(255, 255, 255, .22); pointer-events: none; }
.torneo-card__campo svg { width: 100%; height: 100%; transform: rotate(90deg) scale(1.25); transform-origin: center; }
.torneo-card--chiaro .torneo-card__campo { color: color-mix(in srgb, var(--t1) 22%, transparent); }
.tornei--uno .torneo-card__campo { width: 34%; max-width: 360px; }
.tornei--uno .torneo-card__campo svg { transform: none; }
@media (max-width: 720px) { .torneo-card__campo { width: 55%; opacity: .7; } }
