/* ==========================================================
   Sporting Padel - padel.css (Premium Club)
   Concept A) "Club premium" con brand forte:
   - Background chiaro (premium, leggero)
   - Brand panel blu (header + hero)
   - Fluo usato come firma/CTA
   - Arancio: micro accenti rarissimi
   - JS unico compatibile (padel.js)
   ========================================================== */

:root{
  /* Brand core */
  --brand-1: #13235F;
  --brand-2: #1839B6;
  --fluo:   #C6FF2E;
  --orange: #FF6A00;

  /* Premium light canvas */
  --bg:        #F4F6FB;          /* ice */
  --bg-2:      #EEF2FF;          /* leggero blu */
  --surface:   #FFFFFF;          /* card */
  --surface-2: rgba(255,255,255,.70);

  /* Text (su sfondo chiaro) */
  --ink:        #0B1635;         /* blu notte */
  --ink-soft:   rgba(11,22,53,.78);
  --ink-muted:  rgba(11,22,53,.60);

  /* Text (su blu) */
  --onbrand:        #FFFFFF;
  --onbrand-soft:   rgba(255,255,255,.86);
  --onbrand-muted:  rgba(255,255,255,.68);

  /* Borders */
  --line:       rgba(11,22,53,.10);
  --line-2:     rgba(255,255,255,.18);

  /* Shadows (premium, soft) */
  --shadow-sm:  0 10px 24px rgba(8,14,35,.10);
  --shadow:     0 18px 46px rgba(8,14,35,.14);

  /* Radius / layout */
  --radius:     18px;
  --radius-sm:  12px;
  --container:  1100px;

  /* Spacing */
  --s1: 8px;
  --s2: 12px;
  --s3: 16px;
  --s4: 22px;
  --s5: 34px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body.padel{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--ink);
  line-height: 1.55;

  /* Canvas chiaro */
  background: transparent;
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
}

/* Background premium fisso (non si “resetta”) */
body.padel::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  /* Ice + glow brand super discreto */
  background:
    radial-gradient(900px 560px at 18% -10%, rgba(19,35,95,.10), transparent 60%),
    radial-gradient(700px 520px at 105% 8%, rgba(198,255,46,.10), transparent 62%),
    linear-gradient(180deg, var(--bg-2), var(--bg));

  transform: translateZ(0);
  will-change: transform;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* Accessibilità */
.skip-link{
  position: absolute;
  left: -999px;
  top: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #000;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 10px; }

/* ==========================================================
   Header / Nav (premium)
   ========================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;

  /* “Glass” premium su canvas chiaro */
  backdrop-filter: blur(12px);
  background: rgba(244,246,251,.72);

  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--s2);
  padding: 12px 0;
}

/* Brand block */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 1000;
  letter-spacing: .2px;
}

/* Cerchio logo (taglio perfetto) */
.brand-mark{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(19,35,95,.08);
  border: 2px solid rgba(19,35,95,.18);
  box-shadow: var(--shadow-sm);
}

.brand-logo{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Nome brand (importante) */
.brand-name{
  font-weight: 1000;
  font-size: 1.30rem;
  letter-spacing: .35px;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
}

/* Firma fluo sotto il nome */
.brand-name::after{
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--fluo);
}

/* HOME boost */
body.is-home .brand-mark{
  width: 68px;
  height: 68px;
  border-color: rgba(198,255,46,.45);
  box-shadow: 0 18px 46px rgba(19,35,95,.16);
}
body.is-home .brand-name{
  font-size: 1.52rem;
}

/* Nav */
.site-nav{
  display: none;
  gap: 10px;
  align-items: center;
}

/* Menu aperto mobile: card pulita */
.site-nav.is-open{
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 12px;
  margin-top: 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(11,22,53,.10);
  box-shadow: var(--shadow-sm);
}

.nav-link{
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
}

.site-nav.is-open .nav-link{
  background: rgba(19,35,95,.04);
  border-color: rgba(11,22,53,.10);
}

.nav-link:hover{
  text-decoration: none;
  color: var(--ink);
  background: rgba(19,35,95,.06);
}

.nav-link.is-active{
  color: var(--ink);
  background: rgba(198,255,46,.18);
  border-color: rgba(198,255,46,.40);
}

.nav-toggle{
  border: 1px solid rgba(11,22,53,.14);
  background: rgba(255,255,255,.75);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 10px;
  cursor: pointer;
}
.nav-toggle:hover{ background: rgba(255,255,255,.92); }

.nav-toggle-lines{
  display: block;
  width: 22px;
  height: 14px;
  position: relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}
.nav-toggle-lines::before{ top: 2px; }
.nav-toggle-lines::after{ bottom: 2px; }

.header-cta{ display: none; }

/* Desktop nav */
@media (min-width: 900px){
  .header-inner{ grid-template-columns: auto 1fr auto; }
  .nav-toggle{ display: none; }
  .site-nav{
    display: inline-flex;
    justify-content: center;
  }
  .site-nav.is-open{
    display: inline-flex;
    grid-column: auto;
    padding: 0;
    margin-top: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .header-cta{ display: inline-flex; }

  body.is-home .brand-mark{ width: 76px; height: 76px; }
  body.is-home .brand-name{ font-size: 1.62rem; }
}

@media (max-width: 360px){
  .brand-mark{ width: 48px; height: 48px; }
  body.is-home .brand-mark{ width: 56px; height: 56px; }
  .brand-name{ font-size: 1.12rem; }
  body.is-home .brand-name{ font-size: 1.22rem; }
}

/* ==========================================================
   Buttons (premium)
   ========================================================== */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 950;
  letter-spacing: .2px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, background .2s ease, border-color .2s ease, filter .2s ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--fluo);
  color: #0b1a0f;
  border-color: rgba(198,255,46,.55);
  box-shadow: 0 14px 34px rgba(198,255,46,.18);
}
.btn-primary:hover{ text-decoration: none; filter: brightness(1.02); }

.btn-primary2{
  background: rgba(41, 80, 222, 0.431);
  color: var(--onbrand);
  border-color: rgba(11,22,53,.12);
}
.btn-secondary:hover{ text-decoration: none; background: rgba(19,35,95,.09); }

.btn-secondary{
  background: rgba(19,35,95,.06);
  color: var(--ink);
  border-color: rgba(11,22,53,.12);
}
.btn-secondary:hover{ text-decoration: none; background: rgba(19,35,95,.09); }

.btn-link{
  background: rgba(108, 150, 255, 0.071);
  border: 1px solid transparent;
  padding: 12px 12px;
  color: var(--ink-soft);
}
.btn-link:hover{ text-decoration: none; color: var(--ink); }

/* ==========================================================
   Typography / Sections
   ========================================================== */

.section{ padding: 42px 0; }

.section-header{ margin-bottom: 16px; }

.section-header h2{
  margin: 0 0 8px 0;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.3px;
  position: relative;
  display: inline-block;
}
.section-header h2::after{
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--fluo);
}
.section-header p{
  margin: 0;
  color: var(--ink-muted);
}

.kicker{
  margin: 0 0 10px 0;
  color: var(--ink-muted);
  font-weight: 900;
  letter-spacing: .25px;
}

.lead{
  margin: 12px 0 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 62ch;
}

.micro{
  margin: 12px 0 0 0;
  color: var(--ink-muted);
  font-size: .95rem;
}

strong{ color: var(--ink); }
.accent-orange{ color: var(--orange); font-weight: 900; }

/* ==========================================================
   Hero (brand panel premium)
   ========================================================== */

.hero{
  padding: 34px 0 18px 0;
}

/* Brand panel: il blu vive qui, non ovunque */
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Rendo la hero un “pannello” */
.hero{
  position: relative;
}

.hero-inner{
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.hero-text{
  /* pannello blu solo per il blocco testo (premium) */
  background: linear-gradient(160deg, rgba(19,35,95,.96), rgba(24,57,182,.92));
  color: var(--onbrand);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero-text .kicker{ color: var(--onbrand-muted); }
.hero-text .lead{ color: var(--onbrand-soft); }
.hero-text .micro{ color: var(--onbrand-muted); }
.hero-text strong{ color: var(--onbrand); }
.hero-text a{ text-decoration: underline; text-decoration-color: rgba(198,255,46,.55); }

.hero h1{
  margin: 0;
  font-size: 2.05rem;
  line-height: 1.06;
  letter-spacing: -0.6px;
  color: var(--fluo);
}

.hero-cta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* badges dentro hero: su blu */
.trust-badges{
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-badges li{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--onbrand-soft);
  font-weight: 900;
  font-size: .9rem;
}

/* Media: card bianca premium (foto risalta) */
.hero-media{
  border-radius: var(--radius);
  border: 1px solid rgba(11,22,53,.10);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 260px;
}

.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-placeholder{
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 22px;
  color: var(--ink-muted);
}
.media-placeholder p{
  margin: 0 0 8px 0;
  font-weight: 950;
  color: var(--ink);
}

@media (min-width: 900px){
  .hero{ padding: 46px 0 22px 0; }
  .hero-inner{ grid-template-columns: 1.05fr .95fr; gap: 22px; }
  .hero h1{ font-size: 2.7rem; }
  .hero-media{ min-height: 420px; }
  .hero-text{ padding: 26px; }
}

/* ==========================================================
   Cards / Grids (premium clean)
   ========================================================== */

.cards{ display: grid; gap: 12px; }

.card{
  border-radius: var(--radius);
  border: 1px solid rgba(11,22,53,.10);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.card h3{
  margin: 0 0 8px 0;
  font-size: 1.02rem;
  color: var(--ink);
}
.card p{ margin: 0; color: var(--ink-muted); }

/* Prezzi: valore in blu + fluo come accento */
.price-card .price{
  margin: 6px 0 4px 0;
  font-size: 1.12rem;
  color: var(--ink);
}
.price-card .price strong{
  color: var(--brand-2);
}
.price-card .note{
  margin: 0;
  color: var(--ink-soft);
  font-weight: 850;
  font-size: .95rem;
}

/* Griglie responsive */
.cards-2, .cards-3, .cards-4, .cards-5{ grid-template-columns: 1fr; }

@media (min-width: 640px){
  .cards-2{ grid-template-columns: repeat(2, 1fr); }
  .cards-3{ grid-template-columns: repeat(3, 1fr); }
  .cards-4{ grid-template-columns: repeat(2, 1fr); }
  .cards-5{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px){
  .cards-4{ grid-template-columns: repeat(4, 1fr); }
  .cards-5{ grid-template-columns: repeat(5, 1fr); }
}

.inline-cta{
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* hover premium (quasi impercettibile) */
.section .card{
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.section .card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(11,22,53,.14);
}

/* ==========================================================
   Highlights (premium boxes)
   ========================================================== */

.highlights-grid{
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.highlight{
  border-radius: var(--radius);
  border: 1px solid rgba(11,22,53,.10);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 16px;
}

.highlight h3{
  margin: 0 0 6px 0;
  color: var(--ink);
  font-size: 1.02rem;
}

/* micro firma arancio: rarissima, solo puntino */
.highlight h3::after{
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(255,106,0,.85);
  transform: translateY(-1px);
}

.highlight p{ margin: 0; color: var(--ink-muted); }

@media (min-width: 760px){
  .highlights-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px){
  .highlights-grid-min{ grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================
   Quick contacts (premium panel)
   ========================================================== */

.quick-contacts-inner{
  display: grid;
  gap: 14px;
  align-items: center;

  border-radius: var(--radius);
  border: 1px solid rgba(11,22,53,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.quick-contacts-inner h2{
  margin: 0 0 6px 0;
  font-size: 1.4rem;
  color: var(--ink);
}
.quick-contacts-inner h2::after{
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--fluo);
}

.quick-contacts-cta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (min-width: 900px){
  .quick-contacts-inner{
    grid-template-columns: 1.2fr .8fr;
    padding: 22px;
  }
  .quick-contacts-cta{ justify-content: flex-end; }
}

/* ==========================================================
   Footer (brand panel elegante)
   ========================================================== */

.site-footer{
  border-top: 1px solid rgba(11,22,53,.10);
  padding: 24px 0 84px 0; /* spazio sticky CTA */
  background: linear-gradient(160deg, rgba(19,35,95,.96), rgba(24,57,182,.92));
  color: var(--onbrand);
}

.footer-inner{
  display: grid;
  gap: 16px;
}

.footer-col strong{
  display: inline-block;
  margin-bottom: 6px;
  color: var(--onbrand);
}

.footer-col p{ color: var(--onbrand-soft); }

.footer-col a{
  color: var(--onbrand-muted);
  text-decoration: none;
}
.footer-col a:hover{
  color: var(--onbrand);
  text-decoration: underline;
  text-decoration-color: rgba(198,255,46,.55);
}

.footer-bottom{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.16);
}

@media (min-width: 860px){
  .footer-inner{
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 18px;
  }
}

/* ==========================================================
   Sticky CTA (mobile) – resta brand
   ========================================================== */

.sticky-cta{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 12px;

  background: linear-gradient(160deg, rgba(19,35,95,.96), rgba(24,57,182,.92));
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.16);
}

.sticky-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px;
  border-radius: 14px;
  font-weight: 950;
  letter-spacing: .2px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: var(--onbrand);
  text-decoration: none;
}
.sticky-btn:hover{
  text-decoration: none;
  background: rgba(255,255,255,.14);
}
.sticky-btn:first-child{
  background: var(--fluo);
  border-color: rgba(198,255,46,.55);
  color: #0b1a0f;
}

@media (min-width: 900px){
  .sticky-cta{ display: none; }
  .site-footer{ padding-bottom: 24px; }
}

/* ==========================================================
   Focus + motion
   ========================================================== */

.site-nav a:focus,
.btn:focus,
.sticky-btn:focus,
.nav-toggle:focus{
  outline: 2px solid rgba(198,255,46,.70);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}

/* =========================
   HOME brand badge (logo grande sotto navbar)
   ========================= */

.home-brand-badge{
  padding: 14px 0 0 0; /* subito sotto navbar */
}

.home-brand-inner{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  justify-items: center;
}

.home-badge{
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;

  /* premium ring */
  background: rgba(255,255,255,.9);
  border: 3px solid rgba(198,255,46,.55);
  box-shadow: 0 18px 46px rgba(19,35,95,.20);
}

.home-badge img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.home-badge-copy{
  text-align: center;
}

.home-badge-kicker{
  margin: 0;
  font-weight: 1000;
  letter-spacing: .38px;
  color: var(--ink);
  opacity: .92;
  text-transform: uppercase;
  font-size: 1.35rem;
}

.home-badge-tagline{
  margin: 6px 0 0 0;
  font-weight: 900;
  color: var(--ink-soft);
  font-size: .90rem;
}

/* DESKTOP: badge a sinistra della hero, più premium */
@media (min-width: 900px){
  .home-brand-badge{
    padding: 18px 0 0 0;
  }

  .home-brand-inner{
    grid-template-columns: auto 1fr;
    justify-items: start;
    gap: 14px;
  }

  .home-badge{
    width: 96px;
    height: 96px;
  }

  .home-badge-copy{
    text-align: left;
  }

  .home-badge-kicker{
    font-size: 1.02rem;
  }

  .home-badge-tagline{
    font-size: 1.05rem;
  }
}