/* Fonts (devono essere importati prima di ogni regola) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap');

/* 0) Reset leggero */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; }

/* 1) Tokens + Tipografia */
:root {
	/* Colori estratti dalla palette esistente, ripuliti per un look meno template */
	--c-primary: #073a82;
	--c-primary-900: #061d3d;
	--c-primary-800: #092b60;
	--c-accent: #f0c12c;
	--c-accent-soft: #fff0ad;
	--c-bg: #f7f4ec;
	--c-surface: #fffdf7;
	--c-surface-2: #ede7d9;
	--c-text: #101622;
	--c-muted: #687080;
	--c-border: rgba(7, 58, 130, .13);

	/* Spaziatura */
	--sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px;
	/* Raggi */
	--radius: 10px; --radius-sm: 6px; --radius-lg: 22px;
    /* Ombra */
    --shadow: 0 20px 50px rgba(6, 29, 61, 0.10);
    --shadow-soft: 0 10px 30px rgba(6, 29, 61, 0.08);

    /* Colore oro per il titolo hero in home (Anton) */
    --c-hero-gold: #f3c64d;
}



html { font-family: Outfit, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: var(--c-text); background: var(--c-bg); scroll-behavior: smooth; }
body {
	font-size: 16px;
	line-height: 1.6;
	min-height: 100dvh;
	overflow-x: hidden;
	background:
		radial-gradient(circle at 8% 0%, rgba(240, 193, 44, .14), transparent 26rem),
		linear-gradient(180deg, #fbf8f0 0%, var(--c-bg) 34rem, #f2eee4 100%);
}
h1, h2, h3 { font-family: Oswald, Outfit, sans-serif; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; margin: 0 0 var(--sp-4); text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(42px, 7vw, 96px); }
h2 { font-weight: 700; font-size: clamp(30px, 4vw, 52px); color: var(--c-primary-900); }
h3 { font-weight: 600; font-size: 20px; }
small, .muted { color: var(--c-muted); }
p { text-wrap: pretty; }

/* 2) Layout */
.container { width: min(1740px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: var(--sp-7) 0; position: relative; scroll-margin-top: 86px; }
.section h2 { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.section h2::before { content: ""; width: 46px; height: 4px; background: var(--c-accent); border-radius: 999px; }
.grid { display: grid; gap: var(--sp-5); }

/* 3) Header/Nav */
.header { position: sticky; top: 0; z-index: 100; background: rgba(6, 29, 61, .94); color: #fff; backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; }
.header.scrolled { box-shadow: 0 18px 38px rgba(6,29,61,.22), 0 1px 0 rgba(255,255,255,.08) inset; }
.nav { 
  /* Brand fisso a sinistra, menu centrato, burger a destra */
  display: grid; 
  grid-template-columns: auto 1fr auto; 
  align-items: center; 
  padding: 14px 0; 
  column-gap: var(--sp-5);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); }
.menu { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: nowrap; justify-content: center; }
.menu { padding-left: var(--sp-2); }

/* Riduci leggermente il gap su viewport medi per evitare overflow */
@media (min-width: 900px) and (max-width: 1200px) {
  .menu { gap: var(--sp-4); }
}
.menu a { color: rgba(255,255,255,.86); padding: 9px 12px; border-radius: var(--radius-sm); white-space: nowrap; font-weight: 600; font-size: .94rem; transition: color .2s ease, background .2s ease, transform .2s ease; }
.menu a.active, .menu a:hover { color: #fff; background: rgba(255,255,255,.12); transform: translateY(-1px); }
.burger { display: none; width: 40px; height: 40px; position: relative; border-radius: var(--radius-sm); background: rgba(255,255,255,.08); }
.burger span, .burger::before, .burger::after { content: ""; position: absolute; left: 6px; right: 6px; height: 2px; background: #fff; transition: .2s; }
.burger span { top: 50%; transform: translateY(-50%); }
.burger::before { top: 11px; }
.burger::after { bottom: 11px; }

.mobile-panel { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; z-index: 1200; pointer-events: none; }
.mobile-panel.open { display: block; pointer-events: auto; }
.mobile-panel .mobile-drawer { position: absolute; top: 0; right: 0; width: min(340px, 86%); height: 100dvh; background: var(--c-primary-900); color: #fff; padding: var(--sp-6) var(--sp-5); box-shadow: -20px 0 50px rgba(0,0,0,.28); transform: translateX(100%); transition: transform .25s; overflow-y: auto; display: flex; flex-direction: column; }
.mobile-panel.open .mobile-drawer { transform: translateX(0); }
.mobile-panel .mobile-menu { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-3); }
.mobile-panel .mobile-menu a { display: block; padding: var(--sp-3) 0; color: #fff; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 1.05rem; letter-spacing: .01em; }
.mobile-panel .mobile-menu a:last-child { border-bottom: none; }

/* 4) Hero */
.hero { color: #fff; padding: clamp(54px, 6vw, 82px) 0 clamp(46px, 5vw, 68px); position: relative; overflow: hidden; min-height: clamp(390px, 48dvh, 520px); display: flex; align-items: center; background-color: var(--c-primary-900); }
.hero-home { background-image: linear-gradient(90deg, rgba(6, 29, 61, .88) 0%, rgba(6, 29, 61, .62) 46%, rgba(6, 29, 61, .18) 100%), url('images/BackgroundHome.jpeg'); background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 54%, rgba(6,29,61,.72) 100%); pointer-events: none; }
.hero::after { content: ""; position: absolute; right: max(4vw, 32px); bottom: -28px; width: min(42vw, 560px); height: 112px; background: var(--c-accent); transform: skewX(-18deg); opacity: .86; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; }
.hero .eyebrow { margin: 0 0 var(--sp-3); color: var(--c-accent-soft); font-weight: 700; letter-spacing: .13em; text-transform: uppercase; font-size: .82rem; }
.hero .subtitle { margin: 0; max-width: min(620px, 100%); color: rgba(255,255,255,.88); font-size: clamp(1.08rem, 2vw, 1.35rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }

/* Stile specifico per il titolo della home */
.hero-home h1 {
  font-family: Oswald, Outfit, sans-serif;
  color: var(--c-hero-gold);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  font-size: clamp(58px, 7.2vw, 104px);
  line-height: .92;
  max-width: min(980px, 100%);
  text-shadow: 0 18px 36px rgba(0,0,0,.42);
}

@media (min-width: 1200px) {
  .hero-home h1 { font-size: clamp(82px, 6.5vw, 112px); }
}

/* 5) Sezioni */
/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.card { background: rgba(255, 253, 247, .94); border: 1px solid rgba(7, 58, 130, .10); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(7, 58, 130, .22); box-shadow: 0 26px 62px rgba(6,29,61,.15); }
.card .media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #ebe4d2, #fffaf0); }
.card .media img { width: 100%; height: 100%; object-fit: cover; }
.card .content { padding: var(--sp-5); }
.card .meta { font-size: 13px; color: var(--c-muted); margin-top: var(--sp-2); font-variant-numeric: tabular-nums; }

/* Palmarès */
.trophy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.trophy { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-5); border: 1px solid rgba(240, 193, 44, .34); border-radius: var(--radius); background: linear-gradient(135deg, rgba(255,253,247,.98), rgba(255,240,173,.28)); box-shadow: var(--shadow-soft); }
.trophy img { width: 64px; height: 64px; object-fit: contain; }

/* Sponsor */
.sponsor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.sponsor { background: rgba(255, 253, 247, .88); border: 1px solid rgba(7, 58, 130, .10); border-radius: var(--radius-sm); padding: var(--sp-5); min-height: 112px; display: grid; place-items: center; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset; }
.sponsor:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-soft); }
.sponsor img { width: 100%; height: 60px; object-fit: contain; }

/* Galleria */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 0; background: #fff; transition: transform .25s ease, box-shadow .25s ease; box-shadow: var(--shadow-soft); }
.gallery-item .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-photo { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; background: #f1f5f9; transition: transform .3s ease, opacity .25s ease; cursor: zoom-in; }
.gallery-photo.is-loaded { opacity: 1; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 26px 62px rgba(6,29,61,.16); }
.gallery-item:hover .gallery-photo { transform: scale(1.045); }
.gallery-item.is-hidden { display: none; }
.gallery-load-more-wrapper { margin-top: var(--sp-5); display: flex; justify-content: center; }
.gallery-load-more { background: var(--c-primary); color: #fff; border: none; border-radius: var(--radius); padding: 12px 24px; font-weight: 600; box-shadow: var(--shadow); cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.gallery-load-more:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(11, 63, 145, .22); }
.gallery-lightbox { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(15, 23, 42, .9); z-index: 3000; padding: var(--sp-5); }
.gallery-lightbox.open { display: flex; }
.gallery-lightbox__backdrop { position: absolute; inset: 0; cursor: zoom-out; }
.gallery-lightbox__content { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-4); max-width: min(1200px, 100%); width: 100%; }
.gallery-lightbox__figure { margin: 0; grid-column: 2; text-align: center; }
.gallery-lightbox__img { max-height: 80vh; max-width: 100%; width: auto; border-radius: var(--radius); box-shadow: 0 24px 64px rgba(0, 0, 0, .45); background: #0f172a; }
.gallery-lightbox__caption { margin-top: var(--sp-3); color: #f8fafc; font-size: .95rem; font-weight: 500; text-shadow: 0 0 12px rgba(15, 23, 42, .6); }
.gallery-lightbox__close { position: absolute; top: 12px; right: 12px; background: transparent; border: none; color: #fff; font-size: 38px; line-height: 1; cursor: pointer; padding: 0 6px; }
.gallery-lightbox__nav { border: none; background: rgba(30, 41, 59, .7); color: #fff; width: 54px; height: 54px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; cursor: pointer; transition: background .2s ease, transform .2s ease, opacity .2s ease; }
.gallery-lightbox__nav:hover { background: rgba(59, 130, 246, .85); transform: scale(1.05); }
.gallery-lightbox__nav:disabled { opacity: .4; cursor: default; transform: none; }
.gallery-lightbox__prev { grid-column: 1; }
.gallery-lightbox__next { grid-column: 3; }

.cookie-banner { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: min(960px, calc(100% - 32px)); background: #fff; color: var(--c-text); border-radius: 18px; padding: clamp(20px, 3vw, 28px); box-shadow: 0 24px 48px rgba(15, 23, 42, .18); border: 1px solid var(--c-border); z-index: 2500; animation: cookieSlideUp .35s ease-out both; }
.cookie-banner__inner { display: flex; flex-direction: column; gap: var(--sp-4); }
.cookie-banner__text h2 { font-size: 1.35rem; margin: 0 0 var(--sp-2); color: var(--c-primary); }
.cookie-banner__text p { margin: 0 0 var(--sp-2); font-size: .95rem; color: var(--c-muted); }
.cookie-banner__text a { color: var(--c-primary); text-decoration: underline; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.cookie-btn { border: 1px solid var(--c-border); background: #fff; color: var(--c-text); padding: 10px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.cookie-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(15, 23, 42, .12); }
.cookie-btn--ghost { background: rgba(11, 63, 145, .08); border-color: rgba(11, 63, 145, .12); color: var(--c-primary); }
.cookie-btn--primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); box-shadow: 0 16px 36px rgba(11, 63, 145, .28); }
.cookie-btn--primary:hover { box-shadow: 0 20px 48px rgba(11, 63, 145, .32); }

.cookie-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: var(--sp-5); background: rgba(15, 23, 42, .72); z-index: 2600; }
.cookie-modal.open { display: flex; }
.cookie-modal__overlay { position: absolute; inset: 0; background: transparent; }
.cookie-modal__dialog { position: relative; z-index: 1; max-width: 560px; width: 100%; background: #fff; color: var(--c-text); border-radius: 18px; padding: clamp(24px, 5vw, 36px); box-shadow: 0 32px 68px rgba(15, 23, 42, .22); outline: none; }
.cookie-modal__title { margin: 0 0 var(--sp-2); font-size: 1.5rem; color: var(--c-primary); }
.cookie-modal__intro { margin: 0 0 var(--sp-4); color: var(--c-muted); font-size: .95rem; }
.cookie-modal__close { position: absolute; top: 16px; right: 16px; border: none; background: rgba(15,23,42,.08); color: var(--c-text); font-size: 28px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .16s ease, transform .16s ease; }
.cookie-modal__close:hover { background: rgba(11, 63, 145, .12); transform: rotate(-5deg); }
.cookie-modal__option { display: flex; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-border); }
.cookie-modal__option:last-of-type { border-bottom: none; padding-bottom: 0; }
.cookie-modal__option h3 { margin: 0 0 6px; font-size: 1.05rem; }
.cookie-modal__option p { margin: 0; color: var(--c-muted); font-size: .95rem; }
.cookie-modal__option--essential { align-items: center; }
.cookie-badge { display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(15, 118, 110, .12); color: #0f766e; text-transform: uppercase; letter-spacing: .05em; }
.cookie-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.cookie-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cookie-switch__slider { position: relative; width: 48px; height: 26px; border-radius: 999px; background: #cbd5f5; transition: background .2s ease; }
.cookie-switch__slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .2); transition: transform .2s ease; }
.cookie-switch input:checked + .cookie-switch__slider { background: var(--c-primary); }
.cookie-switch input:checked + .cookie-switch__slider::after { transform: translateX(22px); }
.cookie-switch__label { font-size: .85rem; color: var(--c-muted); }
.cookie-modal__actions { margin-top: var(--sp-4); display: flex; justify-content: flex-end; gap: var(--sp-3); }

.policy { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 36px); line-height: 1.7; color: var(--c-text); }
.policy h2 { margin-top: var(--sp-5); font-size: 1.4rem; color: var(--c-primary); }
.policy h2:first-of-type { margin-top: var(--sp-3); }
.policy p { margin: 0 0 var(--sp-3); font-size: 1rem; color: var(--c-text); }
.policy-list { padding-left: 1.25rem; margin: 0 0 var(--sp-3); color: var(--c-text); }
.policy-list li { margin-bottom: var(--sp-2); }
.cookie-settings-link-inline { border: none; background: none; color: var(--c-primary); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.cookie-settings-link-inline:hover { color: #0b3281; }

.footer .legal-links { display: flex; gap: var(--sp-3); flex-wrap: wrap; font-size: .9rem; align-items: center; }
.footer .legal-links a,
.footer .legal-links .cookie-settings-link { color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.06); border-radius: var(--radius-sm); padding: 8px 11px; text-decoration: none; cursor: pointer; font: inherit; font-weight: 700; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.footer .legal-links a:hover,
.footer .legal-links .cookie-settings-link:hover { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); transform: translateY(-1px); }

@keyframes cookieSlideUp {
	from { transform: translate(-50%, 20px); opacity: 0; }
	to { transform: translate(-50%, 0); opacity: 1; }
}

.players-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.players-grid .player-card { height: 100%; }


/* 6) Footer */
.footer { position: relative; background: linear-gradient(135deg, var(--c-primary-900), var(--c-primary)); color: #fff; padding: var(--sp-7) 0 var(--sp-6); margin-top: var(--sp-6); box-shadow: 0 -1px 0 rgba(255,255,255,.08) inset; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(640px 220px at 20% 0%, rgba(240,193,44,.18), transparent 62%); opacity: .7; pointer-events: none; }
.footer .container { position: relative; z-index: 1; }
.footer-main { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.8fr); gap: var(--sp-7); align-items: center; }
.footer-brand { display: flex; align-items: center; gap: var(--sp-4); max-width: 460px; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0,0,0,.24)); }
.footer-brand p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.55; }
.footer-brand .footer-kicker { color: #fff; font-family: Oswald, Outfit, sans-serif; font-size: clamp(28px, 2.35vw, 42px); line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.footer .links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); align-items: stretch; }
.footer .links a { color: #fff; min-height: 74px; padding: var(--sp-3); display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); background: rgba(255,255,255,.06); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; font-weight: 800; line-height: 1.2; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.footer .links a img.link-logo { width: 30px; height: 30px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.22)); opacity: .96; }
.footer .links a:hover { transform: translateY(-2px); background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.24); }
.footer .social { display: flex; gap: var(--sp-4); justify-content: flex-end; }
.footer-meta { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--sp-4); }
.footer .copyright { margin: 0; font-size: 14px; color: rgba(255,255,255,.78); }
.footer-meta .copyright { justify-self: end; text-align: right; }
.footer .copyright a { color: #fff; font-weight: 800; text-decoration: none; }
.footer .copyright a:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 44px; padding: 11px 18px; border-radius: var(--radius-sm); font-weight: 700; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(6,29,61,.16); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--c-accent); color: var(--c-primary-900); border: 1px solid var(--c-accent); }
.btn-primary:hover { background: #ffd85a; }
.btn-secondary { background: transparent; color: var(--c-primary); border: 1px solid rgba(7, 58, 130, .34); }
.btn-secondary:hover { background: rgba(7, 58, 130, .08); border-color: rgba(7, 58, 130, .46); }
.btn-on-dark { color: #fff; border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.btn-on-dark:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.72); }

/* 7) Utilities */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0 0 0 0); overflow: hidden; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 5000; transform: translateY(-140%); background: var(--c-accent); color: var(--c-primary-900); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; box-shadow: var(--shadow-soft); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); outline: 3px solid #fff; outline-offset: 2px; }
a:focus-visible, button:focus-visible, iframe:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.badge-data { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; color: #fff; background: var(--c-primary); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--c-border); border-radius: 999px; background: #fff; }

/* 9) Responsive */
@media (max-width: 1200px) {
	.sponsor-grid { grid-template-columns: repeat(3, 1fr); }
	.gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: var(--sp-5); align-items: start; }
  .footer .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.news-grid { grid-template-columns: repeat(2, 1fr); }
	.trophy-grid { grid-template-columns: 1fr; }
	.sponsor-grid { grid-template-columns: repeat(2, 1fr); }
	.gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.menu { display: none; }
	.burger { display: inline-block; }
  .footer .legal-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
	.news-grid { grid-template-columns: 1fr; }
	.sponsor-grid { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: 1fr; }
  .footer .links { grid-template-columns: 1fr; }
  .footer-brand { align-items: flex-start; }
  .footer-brand img { width: 58px; height: 58px; }
  .footer-meta { grid-template-columns: 1fr; align-items: flex-start; }
  .footer-meta .copyright { justify-self: start; text-align: left; }
  .cookie-banner { width: calc(100% - 24px); bottom: 16px; padding: var(--sp-4); }
  .cookie-banner__actions { flex-direction: column; align-items: stretch; }
  .cookie-btn, .cookie-btn--primary { width: 100%; text-align: center; }
  .cookie-modal { padding: var(--sp-4); }
  .cookie-modal__dialog { padding: var(--sp-4); }
  .cookie-modal__option { flex-direction: column; align-items: flex-start; }
  .footer .legal-links { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
}

body.menu-open { overflow: hidden; }

/* Mobile refinements */
@media (max-width: 600px) {
  .hero { text-align: left; padding: var(--sp-7) 0 var(--sp-6); min-height: 520px; align-items: flex-end; }
  .hero::after { right: -42px; bottom: -58px; width: 78vw; height: 104px; opacity: .72; }
  .hero-home h1 { font-size: clamp(40px, 12.6vw, 50px); max-width: 100%; }
  .hero-home h1 span { display: block; }
  .hero .subtitle { width: min(32ch, calc(100vw - 40px)); font-size: 1rem; }
  .hero .btn { width: 100%; justify-content: center; margin-bottom: var(--sp-3); }
  .hero .btn-on-dark { background: rgba(6, 29, 61, .56); }
  .home-widgets { gap: var(--sp-4); }
  .card .content { padding: var(--sp-3); }
  .news-grid { gap: var(--sp-4); }
  .players-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
  .players-grid .player-card { padding: var(--sp-3) !important; }
  .footer .links { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--sp-3); }
  .footer .links a { justify-content: center; }
  .footer .social { justify-content: center; }
  .footer .copyright { text-align: center; }
  .footer .legal-links { justify-content: center; align-items: center; text-align: center; }
  .footer-brand { flex-direction: column; align-items: center; text-align: center; margin: 0 auto; }
  .footer-meta { justify-content: center; text-align: center; }

  .gallery-lightbox { padding: var(--sp-4); }
  .gallery-lightbox__content { grid-template-columns: 1fr; }
  .gallery-lightbox__prev,
  .gallery-lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; }
  .gallery-lightbox__prev { left: 12px; }
  .gallery-lightbox__next { right: 12px; }
  .gallery-lightbox__caption { font-size: .9rem; }
}

body.lightbox-open { overflow: hidden; }
body.cookie-modal-open { overflow: hidden; }

/* Home: sezione widget (mappa + risultati + classifica) */
.home-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); align-items: stretch; --homeWidgetH: 420px; }
.home-widgets .card { height: 100%; }
.home-widgets .card .content { min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; align-content: start; }
.home-widgets .card h3 { min-height: 2.1rem; display: flex; align-items: center; margin-bottom: var(--sp-4); }
.home-widgets .card .media { width: 100%; height: var(--homeWidgetH); position: relative; overflow: hidden; align-self: center; justify-self: center; }
.home-widgets .card .media iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-cover-link { position: absolute; inset: 0; z-index: 2; }
.venue-address { width: 100%; margin: var(--sp-3) auto 0; min-height: 3.4rem; font-weight: 700; line-height: 1.55; }
/* Leaflet map inside media */
.home-widgets .card .media #home-map { position: absolute; inset: 0; }
.leaflet-container { border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--c-border); }
.leaflet-control-zoom a { background: #fff; color: var(--c-primary); }
.leaflet-control-zoom a:hover { filter: brightness(0.95); }

/* Home: contenitore embed semplice (risultati/classifica) */
.home-embed { height: var(--homeWidgetH); border: 1px solid rgba(7, 58, 130, .12); border-radius: var(--radius-sm); overflow: hidden; background: #fff; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.72); }
.home-embed iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); display: block; }

/* Collapsible embed widgets (toggle button) */
.embed-collapsible { position: relative; }
.embed-toggle { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; background: #1e40af; color: #fff; border: none; border-radius: 999px; padding: 6px 12px; font-weight: 600; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.embed-toggle:focus { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* Small-screen refinements */
@media (max-width: 560px) {
  .nav { padding: var(--sp-3) 0; }
  .brand img { width: 32px; height: 32px; }
  .brand span { font-size: 16px; letter-spacing: .02em; }
  .card .content { padding: var(--sp-3); }
}
@media (max-width: 1000px) {
  .home-widgets { grid-template-columns: 1fr 1fr; --homeWidgetH: 360px; }
}
@media (max-width: 680px) {
  .home-widgets { grid-template-columns: 1fr; --homeWidgetH: 260px; }
  .home-widgets .card .content { display: block; min-height: 0; }
  .home-widgets .card h3,
  .venue-address { min-height: 0; }
}

/* Home: sezione Social */
.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); align-items: stretch; }
.social-card { display: grid; grid-template-columns: minmax(260px, .88fr) minmax(0, 1fr); min-height: 330px; background: rgba(255, 253, 247, .94); border: 1px solid rgba(7, 58, 130, .10); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.social-card:hover { transform: translateY(-4px); border-color: rgba(7, 58, 130, .22); box-shadow: 0 26px 62px rgba(6,29,61,.15); }
.social-cover { position: relative; min-height: 100%; background: var(--c-primary-900); overflow: hidden; }
.social-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,29,61,.04), rgba(6,29,61,.52)); pointer-events: none; }
.social-cover img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.social-card:hover .social-cover img { transform: scale(1.045); filter: saturate(1.06); }
.social-body { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-5); padding: clamp(24px, 3vw, 38px); }
.social-platform { margin: 0 0 var(--sp-2); color: var(--c-primary); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.social-body h3 { margin-bottom: var(--sp-2); font-size: clamp(24px, 2vw, 34px); color: var(--c-primary-900); }
.social-handle { margin: 0; color: var(--c-muted); font-weight: 700; }
.social-copy { margin: 0; max-width: 42ch; color: #3d4658; line-height: 1.65; }
.social-card .btn { align-self: flex-start; }
.social-card--instagram .btn-secondary { color: #8f294d; border-color: rgba(143, 41, 77, .34); }
.social-card--instagram .btn-secondary:hover { background: rgba(143, 41, 77, .08); border-color: rgba(143, 41, 77, .48); }

@media (max-width: 1100px) {
  .social-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .social-card { grid-template-columns: 1fr; min-height: 0; }
  .social-cover img { min-height: 220px; max-height: 280px; }
  .social-card .btn { width: 100%; }
}
