/* ===========================================================
   Sport che Unisce — design system condiviso
   Palette dal logo "su!": turchese · lime · blu-lavanda
   =========================================================== */

:root {
  --teal:   #1f8a99;   /* turchese profondo (testo/CTA) */
  --teal-2: #2E9CAC;
  --teal-br:#45BACB;   /* turchese acceso (grafica) */
  --lime:   #8fa00c;   /* lime scuro (testo) */
  --lime-br:#C3D42B;   /* lime acceso (grafica) */
  --peri:   #5566b0;   /* blu-lavanda (testo/CTA) */
  --peri-br:#6E7FC4;

  --ink:    #1c2830;   /* testo principale */
  --ink-2:  #2b3a44;
  --muted:  #5a6a74;   /* testo secondario */
  --line:   #e6ebe9;
  --bg:     #ffffff;
  --bg-soft:#f5f8f7;
  --bg-dark:#14212a;   /* sezioni scure */

  --maxw: 1120px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 12px 34px rgba(28, 40, 48, .08);
  --shadow-lg: 0 24px 60px rgba(28, 40, 48, .16);

  --font: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.62; font-size: 18px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--peri); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.015em; margin: 0; font-weight: 900; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.narrow { max-width: 780px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 16px;
}
.kicker::before { content:""; width: 26px; height: 3px; border-radius: 999px; background: var(--lime-br); }
.kicker.on-dark { color: #8fd6e0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color:#fff; padding: 12px 18px; border-radius: 0 0 10px 0; z-index: 200; }
.skip:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-weight: 800; text-decoration: none; padding: 15px 28px; border-radius: 999px; border: none;
  font-size: 1rem; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #16707d; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--peri); color: var(--peri); transform: translateY(-2px); }
.btn-ghost.on-dark { color:#fff; border-color: rgba(255,255,255,.35); }
.btn-ghost.on-dark:hover { border-color:#fff; color:#fff; background: rgba(255,255,255,.08); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand .bt { font-size: 1.02rem; color: var(--ink); font-weight: 900; letter-spacing: -.01em; line-height: 1.1; }
.brand .bs { display: block; font-size: .74rem; color: var(--muted); font-weight: 700; }
.mainnav { display: flex; align-items: center; gap: 6px; }
.mainnav a {
  text-decoration: none; color: var(--ink-2); font-weight: 800; font-size: .98rem;
  padding: 9px 16px; border-radius: 999px; transition: background .15s var(--ease), color .15s var(--ease);
}
.mainnav a:hover { background: var(--bg-soft); color: var(--teal); }
.mainnav a[aria-current="page"] { color: var(--teal); background: #e7f4f6; }
.mainnav .btn { padding: 11px 20px; font-size: .96rem; margin-left: 8px; }
.nav-toggle { display: none; }

/* ---------- HERO (forte, full-bleed) ---------- */
.hero {
  position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .band picture { display: contents; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after {
  content:""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,44,52,.30) 0%, rgba(13,33,42,.20) 40%, rgba(11,26,34,.86) 100%),
    linear-gradient(90deg, rgba(31,138,153,.55) 0%, rgba(31,138,153,.10) 55%, transparent 100%);
}
.hero__inner { padding: 120px 0 68px; width: 100%; }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem); max-width: 16ch; margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero p.lead { font-size: clamp(1.08rem, 1.9vw, 1.35rem); max-width: 56ch; color: #eef4f3; font-weight: 600; margin: 0 0 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__rule { display:flex; gap:8px; margin-top: 40px; }
.hero__rule span { height: 6px; width: 64px; border-radius: 999px; }
.hero__rule span:nth-child(1){ background: var(--teal-br); }
.hero__rule span:nth-child(2){ background: var(--lime-br); }
.hero__rule span:nth-child(3){ background: var(--peri-br); }

/* Hero variante interna (pagine) */
.pagehero { position: relative; color: #fff; background: var(--bg-dark); overflow: hidden; isolation: isolate; }
.pagehero::before {
  content:""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 88% 0%, rgba(110,127,196,.30), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(69,186,203,.26), transparent 60%),
    radial-gradient(40% 70% at 60% 120%, rgba(195,212,43,.16), transparent 60%);
}
.pagehero .wrap { padding: 96px 0 64px; }
.pagehero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 18ch; margin-bottom: 18px; }
.pagehero p { font-size: clamp(1.05rem, 1.7vw, 1.25rem); max-width: 60ch; color: #d6e0e4; font-weight: 600; margin: 0; }

/* ---------- Sezioni ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.tint { background: var(--bg-soft); }
.dark { background: var(--bg-dark); color: #eaf1f2; }
.dark h2 { color: #fff; }
.section-head { max-width: 64ch; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); margin: 0; font-weight: 500; font-size: 1.08rem; }
.dark .section-head p { color: #b7c4ca; }

/* Idea + Modello */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.panel .bar { height: 6px; width: 58px; border-radius: 999px; margin-bottom: 22px; }
.panel h3 { font-size: 1.5rem; margin-bottom: 14px; }
.panel p { margin: 0; color: var(--muted); font-weight: 500; }
.panel.idea .kicker { color: var(--teal); }
.panel.idea .bar { background: var(--teal-br); }
.panel.modello .kicker { color: var(--peri); }
.panel.modello .bar { background: var(--peri-br); }

/* Photo band */
.band figure { margin: 0; position: relative; }
.band img { width: 100%; height: clamp(300px, 44vw, 520px); object-fit: cover; }
.band figcaption {
  position: absolute; inset: auto 0 0 0; color:#fff; font-weight: 800; font-size: clamp(1.1rem,2vw,1.5rem);
  background: linear-gradient(to top, rgba(14,28,34,.8), transparent);
}
.band figcaption .wrap { padding-top: 90px; padding-bottom: 30px; }

/* Icon feature (icone SVG, niente emoji) */
.feature-ico {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; color: #fff; margin-bottom: 18px;
}
.feature-ico svg { width: 28px; height: 28px; stroke: #fff; stroke-width: 1.9; fill: none; }
.bg-teal { background: var(--teal); } .bg-lime { background: var(--lime); } .bg-peri { background: var(--peri); }
.tx-teal { color: var(--teal); } .tx-lime { color: var(--lime); } .tx-peri { color: var(--peri); }

/* Audience cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.acard {
  background:#fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.acard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.acard h3 { font-size: 1.28rem; margin-bottom: 10px; }
.acard p { color: var(--muted); font-weight: 500; font-size: 1rem; margin: 0 0 18px; flex: 1; }
.acard .link { font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.acard .link svg { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.acard:hover .link svg { transform: translateX(4px); }

/* Steps (come funziona) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.step .n { counter-increment: s; font-weight: 900; font-size: 1rem; color:#fff; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.step .n::before { content: counter(s, decimal-leading-zero); }
.step:nth-child(1) .n { background: var(--teal); }
.step:nth-child(2) .n { background: var(--lime); }
.step:nth-child(3) .n { background: var(--peri); }
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-weight: 500; margin: 0; font-size: 1rem; }

/* Prose (pagina progetto) */
.prose p { color: var(--ink-2); font-weight: 500; margin: 0 0 20px; font-size: 1.12rem; }
.prose p:last-child { margin-bottom: 0; }
.prose .lead-p { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.pull {
  border-left: 5px solid var(--lime-br); padding: 6px 0 6px 26px; margin: 34px 0;
  font-size: clamp(1.3rem,2.6vw,1.7rem); font-weight: 800; color: var(--ink); line-height: 1.3;
}

/* Benefit list */
.benefits { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px 34px; margin-top: 8px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit .tick { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background:#e7f4f6; display:grid; place-items:center; margin-top: 3px; }
.benefit .tick svg { width: 17px; height: 17px; stroke: var(--teal); stroke-width: 2.4; fill:none; }
.benefit b { display:block; margin-bottom: 3px; }
.benefit span { color: var(--muted); font-weight: 500; font-size: 1rem; }

/* Loghi società */
.loghi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.logo-tile {
  background:#fff; border:1px solid var(--line); border-radius: 16px; aspect-ratio: 3/2; min-width: 0;
  display: grid; place-items: center; padding: 22px; box-shadow: var(--shadow); transition: transform .18s var(--ease);
}
.logo-tile:hover { transform: translateY(-3px); }
.logo-tile img { max-width: 100%; max-height: 88px; width: auto; height: auto; object-fit: contain; }

/* Club cards (pagina realtà) */
.clubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.club {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.club:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.club__media { aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.club__media.nophoto { display: grid; place-items: center; padding: 20px; }
.club__media.nophoto img { max-width: 100%; max-height: 120px; width: auto; height: auto; object-fit: contain; }
.club__body { padding: 22px 26px 26px; }
.club__sport { font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin: 0 0 6px; }
.club__body h3 { font-size: 1.32rem; }

/* Contatti */
.contatti-box {
  background: var(--bg-dark); color:#fff; border-radius: var(--radius-lg); padding: clamp(34px, 5vw, 56px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.contatti-box::before { content:""; position:absolute; inset:0; z-index:0; background: radial-gradient(60% 120% at 100% 0%, rgba(69,186,203,.28), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(110,127,196,.26), transparent 60%); }
.contatti-box > * { position: relative; z-index: 1; }
.contatti-box h2 { color:#fff; font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 12px; }
.contatti-box p { color:#c7d0d6; margin: 0; font-weight: 500; }
.contatti-actions { display: flex; flex-direction: column; gap: 14px; }
.contatti-actions a {
  display:flex; align-items:center; gap: 14px; text-decoration:none; font-weight: 800; color:#fff;
  padding: 16px 22px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  transition: background .15s var(--ease), transform .15s var(--ease);
}
.contatti-actions a:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.contatti-actions a svg { width: 22px; height: 22px; flex: 0 0 auto; }
.contatti-actions a.ig { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af); border:none; }
.contatti-actions small { display:block; font-weight:600; color: rgba(255,255,255,.7); font-size:.82rem; }

/* CTA banner */
.cta-band { text-align:center; }
.cta-band h2 { font-size: clamp(1.7rem,3.4vw,2.5rem); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 54ch; margin: 0 auto 28px; font-weight: 500; }
.cta-actions { display:flex; gap:14px; justify-content:center; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--bg-dark); color:#aab8bf; padding: 56px 0 30px; }
.site-footer .top { display:flex; flex-wrap:wrap; gap: 30px; justify-content: space-between; align-items: flex-start; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .fbrand img { height: 52px; background:#fff; padding:8px 12px; border-radius: 12px; }
.site-footer .fnav { display:flex; gap: 26px; flex-wrap: wrap; }
.site-footer .fnav a { color:#cdd8dd; text-decoration:none; font-weight:700; }
.site-footer .fnav a:hover { color:#fff; }
.site-footer .fcontact { display:flex; flex-direction:column; gap: 8px; font-size: .95rem; }
.site-footer .fcontact a { color:#cdd8dd; text-decoration:none; font-weight:600; }
.site-footer .fcontact a:hover { color:#fff; }
.site-footer .bottom { padding-top: 24px; font-size: .86rem; color:#7f9098; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .duo, .cards-3, .steps, .benefits, .contatti-box { grid-template-columns: 1fr; }
  .clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loghi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mainnav { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background:#fff; border-bottom: 1px solid var(--line); padding: 14px clamp(20px,4vw,40px) 22px; box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform .28s var(--ease); }
  .mainnav.open { transform: translateY(0); }
  .mainnav a { padding: 13px 14px; }
  .mainnav .btn { margin-left: 0; margin-top: 6px; justify-content: center; }
  .nav-toggle { display: inline-flex; align-items:center; justify-content:center; width:46px; height:46px; border:1px solid var(--line);
    background:#fff; border-radius: 12px; cursor: pointer; }
  .nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 2; fill:none; }
}

@media (max-width: 560px) {
  .clubs { grid-template-columns: 1fr; }
  .site-footer .top { flex-direction: column; }
}

/* ---------- Accessibilità ---------- */
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--peri-br); outline-offset: 3px; border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
