/* =========================================================
   NEW VOLLEY NOCERA
   Idea guida: l'hero è un primo piano del pallone del logo.
   Tutto il resto resta sobrio, bianco, leggibile.
   ========================================================= */

:root{
  /* Colori campionati dal logo ufficiale */
  --navy:      #2C2962;   /* spicchi blu del pallone */
  --navy-deep: #1A1840;   /* sfondi pieni, testo forte */
  --navy-mid:  #3D3A86;   /* spicchi blu sullo sfondo scuro */
  --red:       #A71E22;   /* cerchio e cuciture */
  --red-dark:  #851619;
  --ball:      #E6EB19;   /* giallo del pallone */
  --court:     #F7F7FB;   /* sfondo pagina */
  --line:      #DCDCE8;
  --text:      #1A1840;
  --text-soft: #55537A;
  --white:     #FFFFFF;

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body:    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:84px; }
body{
  margin:0; background:var(--court); color:var(--text);
  font-family:var(--body); font-size:1.0625rem; line-height:1.6;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
p{ margin:0 0 1em; }
ul,ol{ margin:0; padding:0; list-style:none; }

h1,h2,h3{
  font-family:var(--display); font-weight:800; line-height:.95;
  letter-spacing:-.005em; margin:0; color:var(--navy-deep);
}
h2{ font-size:clamp(2.6rem, 6vw, 4.2rem); margin-bottom:.35em; }
h3{ font-size:1.7rem; line-height:1; }

.wrap{ max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gutter); }
.intro{ max-width:58ch; color:var(--text-soft); font-size:1.1rem; }

:focus-visible{ outline:3px solid var(--red); outline-offset:3px; border-radius:6px; }
.skip{ position:absolute; left:-9999px; top:8px; background:var(--white); padding:10px 14px; z-index:100; }
.skip:focus{ left:8px; }

/* ---------- Bottoni ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.5em;
  font:600 1rem/1 var(--body); text-decoration:none;
  padding:.95em 1.5em; border-radius:999px; border:2px solid transparent;
  transition:background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-ball{ background:var(--ball); color:var(--navy-deep); }
.btn-ball:hover{ background:#F2F65A; }
.btn-ghost{ border-color:rgba(255,255,255,.55); color:var(--white); }
.btn-ghost:hover{ border-color:var(--white); background:rgba(255,255,255,.08); }
.btn-red{ background:var(--red); color:var(--white); }
.btn-red:hover{ background:var(--red-dark); }
.btn-line{ border-color:var(--navy); color:var(--navy); }
.btn-line:hover{ background:var(--navy); color:var(--white); }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(247,247,251,.92); backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{ display:flex; align-items:center; gap:24px; height:72px; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; margin-right:auto; }
.brand img{ width:44px; height:44px; }
.brand span{ font-family:var(--display); font-weight:800; font-size:1.45rem; letter-spacing:.01em; color:var(--navy-deep); line-height:1; }
.nav{ display:flex; gap:4px; }
.nav a{
  text-decoration:none; font-weight:500; font-size:.97rem; color:var(--text-soft);
  padding:.5em .8em; border-radius:999px;
}
.nav a:hover{ color:var(--navy-deep); background:#ECECF4; }
.header-cta{ padding:.7em 1.15em; font-size:.93rem; }
.menu-btn{ display:none; background:none; border:0; width:44px; height:44px; padding:10px; cursor:pointer; }
.menu-btn span{ display:block; height:2px; background:var(--navy-deep); margin:6px 0; transition:transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.menu-btn[aria-expanded="true"] span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

/* ---------- Hero: primo piano del pallone ---------- */
.hero{
  position:relative; overflow:hidden; isolation:isolate;
  background:var(--navy-deep); color:var(--white);
  min-height:min(86vh, 760px); display:flex; align-items:center;
  padding:96px 0 120px;
}
.hero-logo{
  position:absolute; z-index:-1; pointer-events:none;
  right:-6vw; top:50%; transform:translateY(-50%);
  width:min(680px, 54vw); height:auto;
  filter:blur(9px) saturate(1.1); opacity:.5;
}
.hero > .wrap{ width:100%; }
.hero-copy{ max-width:580px; }
.hero h1{
  color:var(--white); font-size:clamp(3.3rem, 8.4vw, 6.6rem); font-weight:900;
  line-height:.88; margin-bottom:.32em;
}
.hero-lede{ font-size:clamp(1.08rem, 1.6vw, 1.25rem); color:rgba(255,255,255,.86); max-width:40ch; margin-bottom:2em; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; }
.hero-badge{
  display:flex; align-items:center; gap:10px; margin-top:44px;
  color:rgba(255,255,255,.7); font-size:.92rem;
}
.hero-badge img{ width:34px; height:auto; background:var(--white); border-radius:6px; padding:3px; }

/* All'apertura il logo si mette a fuoco piano piano, poi resta sfocato */
@media (prefers-reduced-motion: no-preference){
  .hero-logo{ animation:focus 1.6s ease-out both; }
  .hero-copy > *{ opacity:0; transform:translateY(10px); animation:rise .7s ease forwards; }
  .hero-copy > :nth-child(2){ animation-delay:.12s; }
  .hero-copy > :nth-child(3){ animation-delay:.22s; }
  .hero-copy > :nth-child(4){ animation-delay:.32s; }
}
@keyframes focus{ from{ opacity:0; filter:blur(24px); } to{ opacity:.5; filter:blur(9px) saturate(1.1); } }
@keyframes rise{ to{ opacity:1; transform:none; } }

/* ---------- Sezioni ---------- */
.section{ padding:clamp(72px, 10vw, 120px) 0; }
.section-tint{ background:#EEEEF6; }
.section-head{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:20px 40px; margin-bottom:44px; }
.section-head .intro{ margin:0; }

/* ---------- Chi siamo ---------- */
.about{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(40px, 7vw, 96px); align-items:start; }
.about-text p{ font-size:1.15rem; }
.about-text p:first-of-type{ font-size:1.3rem; line-height:1.5; color:var(--navy-deep); }
.timeline{ border-left:3px solid var(--line); padding-left:28px; display:grid; gap:30px; margin-top:10px; }
.timeline li{ position:relative; }
.timeline li::before{
  content:''; position:absolute; left:-37px; top:6px; width:15px; height:15px; border-radius:50%;
  background:var(--ball); box-shadow:0 0 0 3px var(--red);
}
.timeline .when{ font-family:var(--display); font-weight:800; font-size:1.5rem; color:var(--red); line-height:1; display:block; margin-bottom:6px; }
.timeline p{ margin:0; color:var(--text-soft); }
.timeline strong{ color:var(--navy-deep); }

/* ---------- Risultati ---------- */
.results{ background:var(--navy-deep); color:var(--white); }
.results h2{ color:var(--white); }
.results .intro{ color:rgba(255,255,255,.78); }
.results .btn-line{ border-color:rgba(255,255,255,.6); color:var(--white); }
.results .btn-line:hover{ background:var(--white); color:var(--navy-deep); border-color:var(--white); }
.match-list{ display:grid; gap:10px; }
.match{
  display:grid; grid-template-columns:110px 1fr auto; align-items:center; gap:20px;
  background:rgba(255,255,255,.06); border-radius:var(--radius); padding:18px 22px;
  border-left:5px solid transparent;
}
.match.win{ border-left-color:var(--ball); }
.match.loss{ border-left-color:rgba(255,255,255,.25); }
.match-meta{ font-size:.88rem; color:rgba(255,255,255,.65); line-height:1.35; }
.match-meta b{ display:block; color:var(--white); font-weight:600; font-size:.95rem; }
.outcome{ display:inline-block; margin-top:6px; font-size:.78rem; font-weight:600; padding:.2em .6em; border-radius:999px; background:rgba(255,255,255,.12); color:var(--white); }
.win .outcome{ background:var(--ball); color:var(--navy-deep); }
.match-teams{ font-weight:500; font-size:1.05rem; }
.match-teams .us{ color:var(--ball); font-weight:600; }
.match-score{ font-family:var(--display); font-weight:900; font-size:2.4rem; line-height:1; letter-spacing:.02em; text-align:right; }
.match-score small{ display:block; font-family:var(--body); font-weight:500; font-size:.78rem; letter-spacing:0; color:rgba(255,255,255,.65); margin-top:4px; }
.results-empty{
  border:2px dashed rgba(255,255,255,.25); border-radius:var(--radius); padding:34px 28px;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px;
}
.results-empty p{ margin:0; max-width:52ch; color:rgba(255,255,255,.85); font-size:1.1rem; }

.sub{
  font-family:var(--body); font-weight:600; font-size:.95rem; letter-spacing:.01em;
  color:rgba(255,255,255,.7); margin:0 0 16px; line-height:1.3;
}
.match-list + .sub, .upcoming-grid + .sub{ margin-top:56px; }

/* Prossime partite */
.upcoming-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }
.next{
  display:grid; grid-template-columns:auto 1fr; gap:18px; align-items:start;
  background:var(--white); color:var(--text); border-radius:var(--radius); padding:20px;
}
.next-date{
  width:76px; text-align:center; background:var(--navy-deep); color:var(--white);
  border-radius:10px; padding:10px 6px 9px; line-height:1;
}
.next-date .wd{ display:block; font-size:.75rem; font-weight:600; color:var(--ball); margin-bottom:4px; text-transform:capitalize; }
.next-date .d{ display:block; font-family:var(--display); font-weight:900; font-size:2.4rem; }
.next-date .m{ display:block; font-size:.8rem; margin-top:2px; text-transform:capitalize; }
.next-cat{ font-size:.85rem; font-weight:600; color:var(--red); margin-bottom:4px; display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; }
.next-cat .place{ font-weight:500; color:var(--text-soft); }
.next-teams{ font-weight:600; line-height:1.35; color:var(--navy-deep); margin-bottom:6px; }
.next-teams .us{ color:var(--navy); text-decoration:underline; text-decoration-color:var(--ball); text-decoration-thickness:3px; text-underline-offset:3px; }
.next-info{ font-size:.9rem; color:var(--text-soft); margin:0 0 12px; }
.ics{
  font:600 .85rem/1 var(--body); background:none; border:0; padding:0; cursor:pointer;
  color:var(--red); text-decoration:underline; text-underline-offset:3px;
}
.ics:hover{ color:var(--red-dark); }

/* Calendario */
.cal-filters{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px; }
.cal-filters button{
  font:500 .95rem/1 var(--body); padding:.7em 1.1em; border-radius:999px; cursor:pointer;
  background:var(--white); color:var(--navy-deep); border:1px solid var(--line);
}
.cal-filters button:hover{ border-color:var(--navy); }
.cal-filters button[aria-pressed="true"]{ background:var(--navy-deep); color:var(--white); border-color:var(--navy-deep); }
.cal-month{ margin-bottom:28px; }
.cal-past{ margin-bottom:28px; }
.cal-past summary{
  cursor:pointer; font-weight:600; color:var(--navy); padding:12px 0; list-style-position:inside;
}
.cal-past[open] summary{ margin-bottom:16px; }
.cal-month h3{ font-size:1.9rem; text-transform:capitalize; margin-bottom:10px; color:var(--navy); }
.cal-rows{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.cal-row{
  display:grid; grid-template-columns:120px 150px 1fr 130px; gap:16px; align-items:center;
  padding:14px 20px; border-top:1px solid var(--line);
}
.cal-row:first-child{ border-top:0; }
.cal-row.past{ background:#FAFAFD; }
.cal-when b{ display:block; font-weight:600; color:var(--navy-deep); text-transform:capitalize; }
.cal-when span, .cal-cat{ font-size:.9rem; color:var(--text-soft); }
.cal-teams{ font-weight:500; }
.cal-teams .us{ font-weight:600; color:var(--navy-deep); }
.cal-res{ text-align:right; font-size:.9rem; color:var(--text-soft); }
.cal-res .sc{ font-family:var(--display); font-weight:900; font-size:1.6rem; line-height:1; color:var(--navy-deep); }
.cal-res .w{ color:var(--red); }
.cal-empty{ background:var(--white); border:1px dashed var(--line); border-radius:var(--radius); padding:28px; color:var(--text-soft); margin:0; }

/* ---------- Gruppi: scala per età ---------- */
.ladder{ border-top:2px solid var(--navy-deep); }
.ladder li{
  display:grid; grid-template-columns:minmax(150px, 220px) 1fr minmax(180px, 240px); gap:12px 40px;
  align-items:baseline; padding:30px 0; border-bottom:1px solid var(--line);
}
.ladder .age{
  font-family:var(--display); font-weight:900; font-size:clamp(2.8rem, 6vw, 4rem); line-height:.9; color:var(--navy);
}
.ladder .age small{ display:block; font-size:.32em; font-weight:700; letter-spacing:.02em; color:var(--red); margin-top:6px; }
.ladder h3{ margin-bottom:.35em; }
.ladder p{ margin:0; color:var(--text-soft); max-width:52ch; }
.ladder .when{ font-size:.95rem; color:var(--text-soft); }
.ladder .when b{ display:block; color:var(--navy-deep); font-weight:600; }
.trial{
  margin-top:40px; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px 32px;
  background:var(--navy); color:var(--white); border-radius:var(--radius); padding:28px 32px;
}
.trial h3{ color:var(--white); font-size:2rem; }
.trial p{ margin:.4em 0 0; color:rgba(255,255,255,.82); max-width:50ch; }

/* ---------- Palestra ---------- */
.gym{ display:grid; grid-template-columns:.85fr 1.15fr; gap:clamp(32px, 6vw, 72px); align-items:center; }
.address{ font-size:1.25rem; line-height:1.45; color:var(--navy-deep); margin:20px 0 26px; font-style:normal; }
.address b{ display:block; font-family:var(--display); font-weight:800; font-size:1.9rem; line-height:1; margin-bottom:8px; }
.map{ border-radius:var(--radius); overflow:hidden; aspect-ratio:4/3; background:#E2E2EC; border:1px solid var(--line); }
.map iframe{ width:100%; height:100%; border:0; display:block; }

/* ---------- Contatti ---------- */
.contact-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.contact{
  display:flex; align-items:center; gap:16px; text-decoration:none;
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:22px;
  transition:border-color .15s ease;
}
.contact:hover{ border-color:var(--navy); }
.contact-icon{ width:52px; height:52px; border-radius:50%; flex:none; display:grid; place-items:center; }
.contact-icon svg{ width:24px; height:24px; }
.c-ig .contact-icon{ background:var(--red); }
.c-fb .contact-icon{ background:var(--navy); }
.c-mail .contact-icon{ background:var(--ball); }
.contact b{ display:block; font-family:var(--display); font-weight:800; font-size:1.55rem; line-height:1; color:var(--navy-deep); margin-bottom:4px; }
.contact span{ font-size:.92rem; color:var(--text-soft); word-break:break-word; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-deep); color:rgba(255,255,255,.75); padding:56px 0 28px; font-size:.95rem; }
.footer-top{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:32px; padding-bottom:32px; border-bottom:1px solid rgba(255,255,255,.14); }
.footer-brand{ display:flex; align-items:center; gap:14px; }
.footer-brand img{ width:56px; height:56px; }
.footer-brand strong{ display:block; font-family:var(--display); font-weight:800; font-size:1.6rem; color:var(--white); line-height:1; }
.footer-links{ display:flex; flex-wrap:wrap; gap:8px 26px; align-items:center; }
.footer-links a{ text-decoration:none; color:rgba(255,255,255,.75); }
.footer-links a:hover{ color:var(--ball); }
.footer-bottom{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:16px; padding-top:24px; font-size:.86rem; color:rgba(255,255,255,.55); }
.csi{ display:flex; align-items:center; gap:12px; }
.csi img{ height:46px; width:auto; background:var(--white); border-radius:6px; padding:4px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px){
  .about, .gym{ grid-template-columns:1fr; }
  .ladder li{ grid-template-columns:1fr; gap:6px; padding:26px 0; }
  .ladder .when{ margin-top:8px; }
  .contact-grid{ grid-template-columns:1fr; }
  .upcoming-grid{ grid-template-columns:1fr 1fr; }
  .hero-logo{ right:-22vw; width:70vw; opacity:.35; }
  @keyframes focus{ from{ opacity:0; filter:blur(24px); } to{ opacity:.35; filter:blur(9px); } }
}
@media (max-width: 820px){
  .nav{
    position:fixed; inset:72px 0 auto 0; flex-direction:column; gap:0;
    background:var(--court); border-bottom:1px solid var(--line); padding:8px var(--gutter) 20px;
    transform:translateY(-12px); opacity:0; visibility:hidden; transition:opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open{ transform:none; opacity:1; visibility:visible; }
  .nav a{ padding:14px 4px; border-radius:0; border-bottom:1px solid var(--line); font-size:1.1rem; color:var(--navy-deep); }
  .menu-btn{ display:block; }
  .header-cta{ display:none; }
  .match{ grid-template-columns:1fr auto; gap:8px 16px; }
  .cal-row{ grid-template-columns:1fr auto; gap:4px 16px; }
  .cal-when{ grid-column:1; }
  .cal-cat{ grid-column:2; grid-row:1; text-align:right; }
  .cal-teams{ grid-column:1 / -1; }
  .cal-res{ grid-column:1 / -1; text-align:left; }
  .match-meta{ grid-column:1 / -1; display:flex; gap:10px; }
  .match-meta b{ display:inline; }
  .outcome{ margin-top:0; }
  .upcoming-grid{ grid-template-columns:1fr; }
  .match-meta{ align-items:center; flex-wrap:wrap; }
}
@media (max-width: 520px){
  .hero{ padding:64px 0 88px; min-height:auto; }
  .hero-logo{ right:-35vw; width:105vw; }
}
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; }
}

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