/* ═══════════════════════════════════════════════════════════════
   DREAM PADEL CLUB — Sito unificato
   Sportivo · High-tech · Blu + Bianco
═══════════════════════════════════════════════════════════════ */

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

:root {
  --blue:        #1450D4;
  --blue-dark:   #0d3aab;
  --blue-deep:   #061540;
  --blue-glow:   #4d8aff;
  --blue-pale:   #eef2fd;
  --accent:      #00e0a4;     /* verde-acido sportivo per highlight */
  --white:       #ffffff;
  --off:         #f6f7fb;
  --ink:         #0a1628;
  --ink-2:       #1a2540;
  --muted:       #5a6a85;
  --border:      #e3e7f1;
  --radius:      8px;
  --radius-lg:   16px;
  --nav-h:       72px;
  --shadow-1:    0 4px 24px rgba(10, 30, 80, 0.06);
  --shadow-2:    0 12px 40px rgba(10, 30, 80, 0.12);
  --shadow-blue: 0 16px 48px rgba(20, 80, 212, 0.28);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ── TIPOGRAFIA ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-weight: 900; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-title {
  font-size: clamp(30px, 4vw, 52px);
  margin-top: 14px;
}
.section-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  line-height: 1.65;
  max-width: 620px;
  margin-top: 22px;
}

p { font-size: 16px; line-height: 1.7; color: var(--muted); }

.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

/* ── BOTTONI ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .2s ease, background .2s ease, box-shadow .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-blue {
  background: var(--blue); color: white;
  box-shadow: 0 8px 24px rgba(20,80,212,0.32);
}
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(20,80,212,0.42); }
.btn-white { background: white; color: var(--blue); }
.btn-white:hover { background: var(--off); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.btn-ghost-white { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.45); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.08); border-color: white; }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: white; }
.btn-accent {
  background: var(--accent); color: var(--blue-deep);
  box-shadow: 0 10px 28px rgba(0, 224, 164, 0.35);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 224, 164, 0.45); }

.btn-lg { padding: 20px 42px; font-size: 15px; }

/* ── NAV ─────────────────────────────────────────────────────── */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 32px;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
#nav.solid {
  background: rgba(255,255,255,0.94);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.nav-logo .badge {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--blue);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(20,80,212,0.4);
  transition: transform .3s ease;
}
.nav-logo:hover .badge { transform: rotate(-6deg) scale(1.05); }
.nav-logo .badge img { width: 26px; height: 26px; object-fit: contain; }
.nav-logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 14px;
  letter-spacing: -0.01em;
  line-height: 1; color: white;
  transition: color .3s ease;
}
.nav-logo-text small {
  display: block; font-size: 9px; font-weight: 600;
  letter-spacing: 0.3em; opacity: 0.6; margin-top: 3px;
}
#nav.solid .nav-logo-text { color: var(--ink); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0 auto;
}
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; transition: all .2s ease;
  color: rgba(255,255,255,0.78);
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.08); }
#nav.solid .nav-links a { color: var(--ink-2); }
#nav.solid .nav-links a:hover { color: var(--blue); background: var(--blue-pale); }

.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }
.nav-cta {
  background: var(--blue); color: white !important;
  padding: 11px 22px; border-radius: var(--radius);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 6px 18px rgba(20,80,212,0.35);
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: white;
  transition: all .3s ease;
  border-radius: 2px;
}
#nav.solid .hamburger span { background: var(--ink); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: white; z-index: 199;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .35s ease, opacity .25s ease;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-drawer a {
  padding: 16px 4px; font-size: 18px; font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.04em;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-drawer a::after {
  content: '→'; color: var(--blue); font-weight: 400;
  transform: translateX(-4px); opacity: 0; transition: all .25s ease;
}
.nav-drawer a:hover { color: var(--blue); }
.nav-drawer a:hover::after { transform: translateX(0); opacity: 1; }
.nav-drawer .drawer-cta {
  margin-top: 24px; background: var(--blue); color: white;
  border-radius: var(--radius); justify-content: center;
  border: none; font-size: 16px; padding: 18px;
}
.nav-drawer .drawer-cta::after { display: none; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  #nav { padding: 0 18px; }
}

/* ── CONTAINER & SECTION ─────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.section   { padding: 120px 0; }
.section--sm { padding: 80px 0; }
.section--ink {
  background: var(--ink);
  color: white;
}
.section--ink h2, .section--ink h3 { color: white; }
.section--ink p { color: rgba(255,255,255,0.7); }
.section--ink .eyebrow { color: var(--blue-glow); }

.section--blue {
  background: var(--blue);
  color: white;
  position: relative;
  overflow: hidden;
}
.section--blue h2, .section--blue h3 { color: white; }
.section--blue p { color: rgba(255,255,255,0.8); }
.section--blue .eyebrow { color: rgba(255,255,255,0.6); }

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .section--sm { padding: 56px 0; }
  .container { padding: 0 20px; }
}

/* ── REVEAL ANIMATION ────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--blue-deep); color: rgba(255,255,255,0.55);
  padding: 80px 0 32px;
  position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; inset: auto -10% -50% -10%;
  height: 80%;
  background: radial-gradient(ellipse at center top, rgba(20,80,212,0.5), transparent 70%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 56px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 21px; color: white;
  letter-spacing: -0.01em; display: block; margin-bottom: 16px;
}
.footer-brand p { font-size: 15px; color: rgba(255,255,255,0.55); max-width: 320px; line-height: 1.7; }
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  text-decoration: none; font-size: 14px;
  color: rgba(255,255,255,0.6); transition: color .2s ease;
}
.footer-col ul a:hover { color: white; }
.footer-bottom {
  position: relative;
  margin-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; flex-wrap: wrap; gap: 16px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7); text-decoration: none;
  transition: all .2s ease;
}
.socials a:hover { background: var(--blue); color: white; transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
