/* ==========================================================
   Valley d'Or Padel – stile (anteprima statica, copia di valleydor-padel/style.css)
   ========================================================== */


:root {
  --lime: #b3da2d;
  --lime-dark: #93b81c;
  --ink: #0b1214;
  --ink-2: #121c1f;
  --ink-3: #1b282c;
  --sea: #1f6fb2;
  --paper: #f5f7f0;
  --white: #ffffff;
  --muted: #5d6b6e;
  --muted-dark: #9fb0b3;
  --line: rgba(255, 255, 255, .1);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-head: "Kanit", system-ui, sans-serif;
  --font-body: "Mulish", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -.01em;
}

h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 em, h1 em { font-style: italic; color: var(--lime); }
h3 { font-size: 1.35rem; font-weight: 700; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime-dark);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--center { display: flex; justify-content: center; }
.eyebrow .dot { display: none; }

/* ---------- pulsanti ---------- */
.btn {
  --bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s;
  will-change: transform;
}
.btn svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn svg.ico-fill { fill: currentColor; stroke: none; }
.btn:hover svg:not(.ico-fill) { transform: translateX(4px); }
.btn:hover { transform: translateY(-3px); }

.btn--lime { --bg: var(--lime); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(179, 218, 45, .7); }
.btn--lime:hover { --bg: #c4ea3c; box-shadow: 0 16px 40px -10px rgba(179, 218, 45, .9); }
.btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--ghost-dark { color: var(--ink); border-color: rgba(11, 18, 20, .25); }
.btn--ghost-dark:hover { border-color: var(--ink); }
.btn--big { font-size: 1.1rem; padding: 1em 1.9em; }

/* ---------- header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background .4s, box-shadow .4s, transform .4s var(--ease);
}
.header.is-scrolled {
  background: rgba(11, 18, 20, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner { display: flex; align-items: center; justify-content: space-between; height: 84px; transition: height .4s; }
.header.is-scrolled .header__inner { height: 68px; }
.header__logo img { width: auto; height: 52px; transition: height .4s; }
.header.is-scrolled .header__logo img { height: 42px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .95rem;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: .6em 1.4em; }

.burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--ink);
}
.hero__bg { position: absolute; inset: -10% 0 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 22s ease-out both;
}
@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1); } }

.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 18, 20, .92) 0%, rgba(11, 18, 20, .6) 45%, rgba(11, 18, 20, .15) 100%),
    linear-gradient(0deg, rgba(11, 18, 20, .85) 0%, transparent 35%);
}

.hero__content { position: relative; padding-block: 140px 110px; }

.hero__eyebrow { color: var(--lime); opacity: 0; animation: fadeUp .9s .2s var(--ease) forwards; }
.hero__eyebrow::before { display: none; }
.hero__eyebrow .dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(179, 218, 45, .7);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(179, 218, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(179, 218, 45, 0); } }

.hero__title { font-weight: 800; margin-bottom: 1.8rem; }

/* Il nome: grande, lettera per lettera, "d'Or" verde con riflesso */
.hero__name {
  display: block;
  font-size: clamp(3.6rem, 13.5vw, 12rem);
  line-height: .86;
  letter-spacing: -.025em;
}
.hero__name .w {
  display: inline-block;
  overflow: hidden;
  padding: .02em .1em .06em 0;
  margin-right: -.1em;
  white-space: nowrap;
  vertical-align: bottom;
}
.hero__name .ch {
  display: inline-block;
  transform: translateY(105%) rotate(10deg);
  transform-origin: left bottom;
  animation: charUp 1s var(--ease) forwards;
  animation-delay: calc(.3s + var(--i) * 55ms);
}
@keyframes charUp { to { transform: none; } }

.hero__name .w--or { font-style: italic; }
.hero__name .w--or .ch {
  color: transparent;
  background: linear-gradient(105deg, var(--lime) 0%, var(--lime) 40%, #f3ffc2 50%, var(--lime) 60%, var(--lime) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
          background-clip: text;
  text-shadow: none;
  animation: charUp 1s var(--ease) forwards, shine 5s 2s ease-in-out infinite;
  animation-delay: calc(.3s + var(--i) * 55ms), calc(1.8s + var(--i) * 70ms);
}
@keyframes shine { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Lo slogan sotto il nome */
.hero__tag {
  display: block;
  margin-top: .35em;
  font-size: clamp(1.7rem, 4.4vw, 3.6rem);
  line-height: 1;
}
.hero__tag em { color: var(--lime); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s 1s var(--ease) forwards; }
@keyframes lineUp { to { transform: none; } }

/* Linea verde che si disegna sotto lo slogan */
.hero__tag::after {
  content: "";
  display: block;
  width: 120px;
  height: 5px;
  margin-top: .45em;
  border-radius: 3px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  animation: grow .9s 1.4s var(--ease) forwards;
}
@keyframes grow { to { transform: scaleX(1); } }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero__lead {
  max-width: 34rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, .85);
  margin: 0 0 2.2rem;
  opacity: 0;
  animation: fadeUp 1s 1.4s var(--ease) forwards;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .hero__actions { opacity: 0; animation: fadeUp 1s 1.6s var(--ease) forwards; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* pallina che rimbalza */
.ball {
  position: absolute;
  right: 12%;
  bottom: 18%;
  width: 64px; height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #e6ff7a, var(--lime) 45%, #7fa311 100%);
  box-shadow: inset -6px -8px 14px rgba(0, 0, 0, .25), 0 30px 40px -12px rgba(0, 0, 0, .6);
  animation: bounce 1.6s cubic-bezier(.5, 0, .5, 1) infinite;
}
.ball::before, .ball::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .85);
  clip-path: inset(0 55% 0 0);
}
.ball::after { clip-path: inset(0 0 0 55%); }
@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1.08, .92); }
  10% { transform: translateY(-20px) scale(.96, 1.04); }
  50% { transform: translateY(-180px) rotate(180deg); }
}

.scroll-hint {
  position: absolute;
  left: 50%; bottom: 28px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px;
  background: var(--lime);
  animation: scrollHint 1.8s infinite;
}
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- marquee ---------- */
.marquee {
  background: var(--lime);
  color: var(--ink);
  overflow: hidden;
  padding: 18px 0;
  transform: rotate(-1.5deg) scale(1.03);
  margin-top: -14px;
  position: relative;
  z-index: 2;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee span {
  font-family: var(--font-head);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.marquee i { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sezioni ---------- */
.section { padding-block: clamp(80px, 12vw, 150px); position: relative; }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark .eyebrow { color: var(--lime); }

.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 70px); }
.section__sub { color: var(--muted-dark); font-size: 1.1rem; margin: 1.2rem 0 0; }

/* statistiche */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(11, 18, 20, .1);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 60px;
}
.stat { background: var(--paper); padding: 34px 26px; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: var(--ink);
}
.stat span { color: var(--muted); font-weight: 600; }

/* caratteristiche */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid rgba(11, 18, 20, .06);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.feature:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(11, 18, 20, .35); }
.feature__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--ink);
  margin-bottom: 26px;
  transition: transform .5s var(--ease), background .4s;
}
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.08); background: var(--lime); }
.feature__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--lime); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.feature:hover .feature__icon svg { stroke: var(--ink); }
.feature h3 { margin-bottom: .6rem; }
.feature p { color: var(--muted); margin: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.tags li {
  padding: .3em .9em;
  border-radius: 999px;
  background: rgba(179, 218, 45, .18);
  color: #4d6206;
  font-size: .85rem;
  font-weight: 700;
}

/* ---------- prezzi ---------- */
.prices { display: grid; grid-template-columns: 1fr 1fr 1.05fr; gap: 24px; align-items: stretch; }

.price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 34px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform .2s ease-out, border-color .4s;
}
.price:hover { border-color: rgba(179, 218, 45, .5); }
.price--hot { background: linear-gradient(160deg, #1d2c10 0%, var(--ink-2) 60%); border-color: rgba(179, 218, 45, .45); }
.price__badge {
  position: absolute; top: 22px; right: 22px;
  padding: .3em .9em;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.price__time { margin: 0; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-dark); }
.price__amount { margin: .2em 0 0; font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--lime); }
.price__amount span { font-size: 5.5rem; color: var(--white); letter-spacing: -.03em; }
.price__per { margin: .6em 0 1.4em; color: var(--muted-dark); }
.price__per strong { color: var(--white); }
.price__list { list-style: none; padding: 1.4em 0 0; margin: 0 0 2em; border-top: 1px solid var(--line); flex: 1; }
.price__list li { padding: .3em 0 .3em 1.8em; position: relative; }
.price__list li::before {
  content: "";
  position: absolute; left: 0; top: .75em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--lime);
  border-bottom: 2.5px solid var(--lime);
  transform: rotate(-45deg);
}

.extras {
  padding: 40px 34px;
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--ink);
}
.extras h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.extras ul { list-style: none; padding: 0; margin: 0; }
.extras li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .9em 0;
  border-bottom: 1.5px dashed rgba(11, 18, 20, .25);
  font-weight: 700;
}
.extras b { font-family: var(--font-head); font-size: 1.2rem; }
.extras__note { margin: 1.4em 0 0; font-weight: 600; }

/* ---------- corsi ---------- */
.corsi { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.corsi__media { position: relative; }
.corsi__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.corsi__media::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 2px solid var(--lime);
  border-radius: var(--radius);
  z-index: -1;
}
.corsi__badge {
  position: absolute;
  left: -20px; bottom: 40px;
  padding: 18px 24px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .5);
  animation: float 5s ease-in-out infinite;
}
.corsi__badge strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--lime); }
.corsi__badge span { font-size: .9rem; font-weight: 600; }
@keyframes float { 50% { transform: translateY(-12px); } }

.accordion { display: grid; gap: 12px; margin-bottom: 36px; }
.acc {
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(11, 18, 20, .08);
  overflow: hidden;
  transition: box-shadow .4s;
}
.acc[open] { box-shadow: 0 20px 40px -25px rgba(11, 18, 20, .35); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary i {
  position: relative;
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--paper);
  transition: background .3s, transform .4s var(--ease);
}
.acc summary i::before, .acc summary i::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2.5px; margin: -1.25px 0 0 -6px;
  background: var(--ink);
  border-radius: 2px;
}
.acc summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.acc[open] summary i { background: var(--lime); transform: rotate(180deg); }
.acc[open] summary i::after { transform: rotate(0); }
.acc__body { padding: 0 26px 24px; color: var(--muted); }
.acc__body p { margin: 0; }
.acc__price { margin-top: 14px !important; color: var(--ink); }
.acc__price b { font-family: var(--font-head); font-size: 1.6rem; color: var(--ink); }

.corsi__cta p { font-weight: 700; margin: 0 0 1rem; }

/* ---------- galleria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: zoom-in;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.gallery__item::after {
  content: "+";
  position: absolute; inset: auto 16px 16px auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font: 700 1.6rem/1 var(--font-head);
  transform: scale(0);
  transition: transform .45s var(--ease);
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { transform: scale(1); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 60px 20px;
  background: rgba(5, 9, 10, .94);
  backdrop-filter: blur(8px);
  animation: fadeIn .3s;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 12px; animation: zoomIn .45s var(--ease); }
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background .3s;
}
.lightbox button:hover { background: var(--lime); color: var(--ink); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 20px; top: 50%; margin-top: -26px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.92); } }

/* ---------- sponsor ---------- */
.sponsors { padding: 70px 0; background: var(--ink-2); color: var(--white); overflow: hidden; }
.sponsors .eyebrow { color: var(--lime); margin-bottom: 34px; }
.sponsors__rail {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.sponsors__track { display: flex; gap: 20px; width: max-content; animation: marquee 60s linear infinite; }
.sponsors__rail:hover .sponsors__track { animation-play-state: paused; }
.sponsors__track img {
  height: 90px; width: auto;
  border-radius: 12px;
  filter: grayscale(.6);
  opacity: .85;
  transition: filter .4s, opacity .4s, transform .4s var(--ease);
}
.sponsors__track img:hover { filter: none; opacity: 1; transform: scale(1.04); }

/* ---------- dove siamo ---------- */
.dove { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.contacts { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 22px; }
.contacts li { display: flex; gap: 18px; align-items: flex-start; font-weight: 600; font-size: 1.05rem; }
.contacts svg {
  flex: none;
  width: 48px; height: 48px;
  padding: 12px;
  border-radius: 14px;
  background: var(--ink);
  fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.contacts small { display: block; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.contacts a { text-decoration: none; border-bottom: 2px solid var(--lime); }

.dove__map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: 0 40px 80px -40px rgba(11, 18, 20, .5);
  background: var(--ink-3);
}
.dove__map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.8) contrast(1.05); }

/* ---------- CTA finale ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(100px, 16vw, 200px);
  color: var(--white);
  text-align: center;
  background: var(--ink);
}
.cta__bg { position: absolute; inset: -20% 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta__inner { position: relative; }
.cta h2 { font-size: clamp(2.6rem, 7vw, 6rem); }
.cta p { font-size: 1.2rem; color: rgba(255, 255, 255, .8); margin: 1rem 0 2.2rem; }

/* ---------- footer ---------- */
.footer { background: #070c0d; color: var(--muted-dark); padding: 60px 0 30px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer__logo { height: 56px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__nav a { text-decoration: none; font-weight: 600; transition: color .3s; }
.footer__nav a:hover { color: var(--lime); }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.footer__social a:hover { background: var(--lime); border-color: var(--lime); transform: translateY(-4px); }
.footer__social svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__social .ico-fill { fill: var(--white); stroke: none; }
.footer__social a:hover svg { stroke: var(--ink); }
.footer__social a:hover .ico-fill { fill: var(--ink); }
.footer__bottom p { margin: 24px 0 0; font-size: .9rem; }

/* ---------- pulsante fisso mobile ---------- */
.fab { display: none; }

/* ---------- animazioni allo scorrimento ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1000px) {
  .prices { grid-template-columns: 1fr 1fr; }
  .extras { grid-column: 1 / -1; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

@media (max-width: 860px) {
  .burger {
    display: grid;
    gap: 5px;
    position: relative;
    z-index: 2;
    width: 46px; height: 46px;
    place-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--lime);
    cursor: pointer;
  }
  .burger span { width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: var(--ink);
    clip-path: circle(0 at calc(100% - 43px) 42px);
    transition: clip-path .7s var(--ease);
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 43px) 42px); }
  .nav a:not(.btn) { font-size: 2rem; font-weight: 800; }
  .nav__cta { font-size: 1.2rem; margin-top: 1rem; }

  .corsi, .dove { grid-template-columns: 1fr; }
  .corsi__media { max-width: 460px; margin-right: 24px; }
  .corsi__badge { left: 16px; }
  .ball { width: 44px; height: 44px; right: 8%; bottom: 14%; }
  .ball::before, .ball::after { inset: 4px; border-width: 2px; }

  .fab {
    display: block;
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 40;
    padding: 1em;
    border-radius: 999px;
    background: var(--lime);
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
    transform: translateY(140%);
    transition: transform .5s var(--ease);
  }
  .fab.is-visible { transform: none; }
  .footer { padding-bottom: 100px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .header__logo img { height: 42px; }
  .hero__content { padding-block: 120px 120px; }
  .hero__name { font-size: 21vw; }
  .ball { display: none; }
  .hero__lead { font-size: 1.05rem; }
  .hero .btn--big { width: 100%; }
  .prices { grid-template-columns: 1fr; }
  .stat { padding: 24px 18px; }
  .gallery { grid-auto-rows: 140px; gap: 10px; }
  .gallery__item--wide { grid-column: span 2; }
  .sponsors__track img { height: 64px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   WordPress: barra di amministrazione, pagine interne, modulo
   ========================================================== */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.custom-logo-link img { height: 52px; width: auto; }

.is-inner .header { background: rgba(11, 18, 20, .95); }

.inner__head {
  background: var(--ink);
  color: var(--white);
  padding: 160px 0 70px;
}
.inner__head .eyebrow { color: var(--lime); }
.inner__head h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
.inner__body { padding-block: 70px 110px; }

.entry { max-width: 780px; }
.entry__img img { border-radius: var(--radius); margin-bottom: 30px; width: 100%; height: auto; }
.entry__date { color: var(--muted); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .6rem; }
.entry__content { font-size: 1.1rem; }
.entry__content h2 { font-size: 2rem; margin: 2rem 0 1rem; }
.entry__content h3 { margin: 1.6rem 0 .8rem; }
.entry__content a { color: var(--ink); text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.entry__content img { height: auto; border-radius: 14px; }
.entry__content .wp-block-gallery img { border-radius: 10px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(11, 18, 20, .06);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11, 18, 20, .35); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { padding: 24px 26px 28px; }
.card h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.card p { color: var(--muted); margin: 0; }
.pager .nav-links { display: flex; gap: 8px; margin-top: 40px; }
.pager .page-numbers {
  display: grid; place-items: center;
  min-width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--white);
  text-decoration: none;
  font-weight: 700;
}
.pager .page-numbers.current { background: var(--lime); }

.dove__form { margin-top: 40px; }
.dove__form h3 { margin-bottom: 1rem; }
.dove__form input:not([type="submit"]):not([type="checkbox"]),
.dove__form textarea {
  width: 100%;
  padding: .9em 1.1em;
  border: 1.5px solid rgba(11, 18, 20, .15);
  border-radius: 14px;
  background: var(--white);
  font: inherit;
  transition: border-color .3s, box-shadow .3s;
}
.dove__form textarea { min-height: 130px; }
.dove__form input:focus, .dove__form textarea:focus { outline: 0; border-color: var(--lime-dark); box-shadow: 0 0 0 4px rgba(179, 218, 45, .25); }
.dove__form input[type="submit"] {
  padding: .9em 1.8em;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

/* ==========================================================
   Tornei, prezzi dei corsi, galleria completa, area riservata
   ========================================================== */
.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.tornei { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.torneo-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s;
}
.torneo-card:hover { transform: translateY(-6px); border-color: rgba(179, 218, 45, .5); }
.torneo-card__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.torneo-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 86px;
  border-radius: 16px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-head);
  text-transform: uppercase;
  line-height: 1;
}
.torneo-card__date strong { font-size: 2.4rem; font-weight: 800; }
.torneo-card__date span { font-weight: 700; letter-spacing: .1em; font-size: .85rem; }
.torneo-card__cat {
  margin: 0 0 .4rem;
  color: var(--lime);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.torneo-card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.torneo-card__meta { margin: 0 0 1.2rem; color: var(--muted-dark); }
.torneo-card__cta { position: relative; z-index: 2; padding: .6em 1.3em; font-size: .9rem; }

.tornei-vuoto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 34px;
  border-radius: var(--radius);
  border: 1px dashed rgba(179, 218, 45, .45);
  background: var(--ink-2);
}
.tornei-vuoto p { margin: 0; max-width: 620px; color: var(--muted-dark); }
.tornei-vuoto strong { display: block; color: var(--white); font-size: 1.15rem; margin-bottom: .3rem; }

.acc__prices { list-style: none; padding: 0; margin: 16px 0 0; }
.acc__prices li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55em 0;
  border-bottom: 1.5px dashed rgba(11, 18, 20, .15);
  color: var(--ink);
  font-weight: 600;
}
.acc__prices b { font-family: var(--font-head); font-size: 1.15rem; }

.gallery__item--extra { display: none; }
.gallery__more { margin: 34px 0 0; text-align: center; }

.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer__bottom p { margin-top: 24px; }
.footer__login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted-dark);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  transition: color .3s;
}
.footer__login svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__login:hover { color: var(--lime); }

.torneo-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}
.torneo-info dl { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 0; }
.torneo-info dt { color: var(--lime); font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.torneo-info dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.torneo-info__fine { margin: 0; color: var(--muted-dark); font-weight: 700; }

@media (max-width: 560px) {
  .torneo-card { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .torneo-card__date { flex-direction: row; gap: 8px; width: auto; height: auto; padding: 10px 16px; justify-self: start; }
  .torneo-card__date strong { font-size: 1.6rem; }
}

/* ==========================================================
   Listini dal pannello: numero libero di tariffe, offerte, evidenza
   ========================================================== */
:root { --sale: #ff5a5f; }

.prices { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.prices .extras { grid-column: auto; }

.price__badges {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 70%;
}
.price__badges .price__badge { position: static; }
.price__badge--sale { background: var(--sale); color: var(--white); }
.price--sale { border-color: rgba(255, 90, 95, .45); }
.price__old { margin: .4em 0 -.3em; color: var(--muted-dark); font-weight: 700; }
.price__old del { text-decoration-color: var(--sale); text-decoration-thickness: 2px; }
.price--sale .price__amount span { color: var(--white); }
.price--sale .price__amount { color: var(--sale); }
.price__list:empty { display: none; }
.price__list:empty + .btn { margin-top: auto; }

.extras li { align-items: center; }
.extras li > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.extras__tag {
  display: inline-block;
  padding: .15em .65em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-head);
  font-style: normal;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.extras__tag--sale { background: var(--sale); color: var(--white); }
.extras li.is-star { font-weight: 800; }
.extras__price { white-space: nowrap; text-align: right; }
.extras__price b { font-family: var(--font-head); font-size: 1.2rem; }
.extras__price del,
.acc__amount del { margin-right: .3em; opacity: .55; font-weight: 600; text-decoration-color: var(--sale); text-decoration-thickness: 2px; }
.extras__price small,
.acc__amount small { font-weight: 600; opacity: .7; }

.acc--star { border-color: rgba(179, 218, 45, .7); }
.acc summary > span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.acc__tag {
  padding: .2em .7em;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .06em;
}
.acc__prices li { align-items: baseline; }
.acc__prices li > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.acc__amount { white-space: nowrap; text-align: right; }
.acc__amount b { font-family: var(--font-head); font-size: 1.15rem; }
.acc__prices li.is-sale .acc__amount b { color: #c62f33; }
