/* =====================================================
   PavBressa — Homepage stylesheet
   "Athletic editorial": deep navy + electric lime saetta.
   Mobile-first, accessibility-conscious for 18px+ body.
   ===================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --c-blue-900:  #06122E;
  --c-blue-800:  #0A1F47;
  --c-blue-700:  #0E2A5C;
  --c-blue-600:  #143A82;
  --c-blue-500:  #1E50AE;
  --c-green:     #9CF33A;
  --c-green-700: #74C814;
  --c-white:     #FFFFFF;
  --c-text:      #F2F5FB;
  --c-muted:     #A9B7D6;
  --c-line:      rgba(255, 255, 255, 0.12);
  --c-line-2:    rgba(255, 255, 255, 0.18);

  /* Surface gradients */
  --grad-hero:   linear-gradient(180deg, rgba(6, 18, 46, 0.55) 0%, rgba(14, 42, 92, 0.78) 50%, rgba(6, 18, 46, 0.95) 100%);
  --grad-band:   linear-gradient(180deg, var(--c-blue-700) 0%, var(--c-blue-800) 100%);

  /* Type */
  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body:    1.125rem;          /* 18px */
  --fs-body-lg: 1.25rem;
  --fs-small:   0.95rem;
  --fs-eyebrow: 0.78rem;
  --fs-h3:      clamp(1.4rem, 1.1rem + 1vw, 1.75rem);
  --fs-h2:      clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-h1:      clamp(2.6rem, 1.6rem + 5.4vw, 6rem);
  --lh-display: 0.96;

  /* Layout */
  --container:  1240px;
  --gutter:     clamp(1rem, 4vw, 2rem);
  --radius-sm:  10px;
  --radius:     18px;
  --radius-lg:  28px;

  /* Effects */
  --shadow-glow:    0 0 0 2px var(--c-green), 0 0 32px rgba(156, 243, 58, 0.55);
  --shadow-glow-sm: 0 0 0 1px var(--c-green), 0 0 18px rgba(156, 243, 58, 0.45);
  --shadow-card:    0 24px 48px -16px rgba(0, 0, 0, 0.55);

  /* Motion */
  --t-fast: 180ms cubic-bezier(.2,.7,.2,1);
  --t-mid:  320ms cubic-bezier(.2,.7,.2,1);
  --t-slow: 600ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, dl, dd, dt, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
em, i { font-style: italic; }

/* ---------- Base ---------- */
html, body { background: var(--c-blue-700); }
body {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.55;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--c-green); color: var(--c-blue-900); }

:focus-visible {
  outline: 3px solid var(--c-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  background: var(--c-green);
  color: var(--c-blue-900);
  padding: .75rem 1rem;
  font-weight: 800;
  z-index: 1000;
  border-radius: var(--radius-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 7vw, 7rem);
  position: relative;
}

.section--alt { background: var(--c-blue-800); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 1.25rem;
}
.eyebrow--light { color: var(--c-green); }
.eyebrow--dark  { color: var(--c-blue-900); }
.eyebrow__bar {
  width: 36px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-h2);
  line-height: var(--lh-display);
  letter-spacing: -0.02em;
  color: var(--c-white);
  text-wrap: balance;
}

.section-head { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.section-head--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.t-green { color: var(--c-green); font-style: italic; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--c-green);
  border-bottom: 2px solid transparent;
  padding-block: .35rem;
  transition: gap var(--t-fast), border-color var(--t-fast);
}
.link-arrow svg { width: 20px; height: 20px; transition: transform var(--t-fast); }
.link-arrow:hover { gap: 1rem; border-bottom-color: var(--c-green); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn__icon { width: 18px; height: 18px; transition: transform var(--t-fast); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }

.btn--xl {
  padding: 1.15rem 2.1rem;
  font-size: 1.1rem;
  letter-spacing: .06em;
}

.btn--primary {
  background: var(--c-green);
  color: var(--c-blue-900);
  box-shadow: 0 8px 24px -6px rgba(156, 243, 58, 0.45);
}
.btn--primary:hover {
  box-shadow: 0 16px 36px -10px rgba(156, 243, 58, 0.7), 0 0 0 4px rgba(156, 243, 58, 0.18);
}

.btn--secondary {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-line-2);
}
.btn--secondary:hover {
  border-color: var(--c-green);
  color: var(--c-green);
}

.btn--ghost {
  background: transparent;
  color: var(--c-green);
  border-color: var(--c-green);
  padding: .55rem 1.1rem;
  font-size: .9rem;
}
.btn--ghost:hover { background: var(--c-green); color: var(--c-blue-900); }

.btn--dark {
  background: var(--c-blue-900);
  color: var(--c-green);
  border-color: var(--c-blue-900);
}
.btn--dark:hover {
  background: var(--c-white);
  border-color: var(--c-white);
  color: var(--c-blue-900);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 18, 46, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--t-mid), border-color var(--t-mid);
}
.site-header[data-state="scrolled"] {
  background: rgba(6, 18, 46, 0.9);
  border-bottom-color: var(--c-line);
}

.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: .9rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header__brand { display: inline-flex; align-items: center; }
.site-header__logo { height: 72px; width: auto; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--c-line-2);
  background: transparent;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast), background var(--t-fast);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--c-green); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--c-green); }

.primary-nav {
  position: fixed;
  inset: 0;
  background: var(--c-blue-900);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform var(--t-mid);
  z-index: 100;
  visibility: hidden;
}
.primary-nav[data-open="true"] {
  transform: translateY(0);
  visibility: visible;
}

.primary-nav__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  text-align: center;
}
.primary-nav__list a {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--c-white);
  position: relative;
  padding: .25rem .5rem;
  transition: color var(--t-fast);
}
.primary-nav__list a[aria-current="page"] { color: var(--c-green); }
.primary-nav__list a:hover { color: var(--c-green); }

.primary-nav__news { display: inline-flex; align-items: center; gap: .5rem; }
.primary-nav__news .ico-ext { width: 22px; height: 22px; transform: rotate(-45deg); }

.primary-nav__cta { font-size: .95rem; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    transform: none;
    visibility: visible;
    background: transparent;
    padding: 0;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
  }
  .primary-nav__list {
    flex-direction: row;
    gap: 1.4rem;
  }
  .primary-nav__list a {
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--c-text);
    text-transform: uppercase;
  }
  .primary-nav__list a[aria-current="page"]::after,
  .primary-nav__list a:hover::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -.45rem;
    width: 24px;
    height: 3px;
    background: var(--c-green);
    transform: translateX(-50%);
  }
  .primary-nav__news .ico-ext { width: 14px; height: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(640px, 92vh, 900px);
  padding-block: clamp(5rem, 12vh, 9rem);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    var(--grad-hero),
    url("../Immagini_Homepage/primadivisionefoto.jpg") center/cover no-repeat;
  background-blend-mode: normal;
  filter: saturate(0.92) contrast(1.05);
}

/* SVG-noise grain overlay (no external asset needed) */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

.hero__backletter {
  position: absolute;
  z-index: -1;
  bottom: -3vw;
  right: -2vw;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(14rem, 38vw, 32rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(156, 243, 58, 0.18);
  text-stroke: 2px rgba(156, 243, 58, 0.18);
  pointer-events: none;
  user-select: none;
  animation: backletter-drift 22s ease-in-out infinite alternate;
}

@keyframes backletter-drift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-2%, -1.5%, 0); }
}

.hero__content {
  position: relative;
  max-width: 1100px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-h1);
  line-height: var(--lh-display);
  letter-spacing: -0.035em;
  color: var(--c-white);
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

.hero__line { display: block; }
.hero__line--italic em {
  font-style: italic;
  font-weight: 800;
  color: var(--c-text);
  opacity: 0.92;
  font-size: 0.78em;
  display: block;
  letter-spacing: -0.02em;
}

.hero__line--bolt {
  display: inline-flex;
  align-items: center;
  gap: clamp(.5rem, 1.5vw, 1.4rem);
}

.hero__highlight {
  position: relative;
  color: var(--c-blue-900);
  background: var(--c-green);
  padding: 0 .35em .04em .35em;
  border-radius: 6px;
  box-shadow: 0 0 0 0 rgba(156, 243, 58, 0);
  animation: highlight-pulse 4s ease-in-out infinite;
}
@keyframes highlight-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(156, 243, 58, 0.0), 0 0 22px rgba(156, 243, 58, 0.25); }
  50%      { box-shadow: 0 0 0 0 rgba(156, 243, 58, 0.0), 0 0 44px rgba(156, 243, 58, 0.65); }
}

.bolt--inline {
  width: clamp(4rem, 9vw, 7.5rem);
  height: auto;
  color: var(--c-green);
  filter: drop-shadow(0 0 18px rgba(156, 243, 58, 0.6));
  animation: bolt-shake 5.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes bolt-shake {
  0%, 86%, 100% { transform: rotate(-6deg) scale(1); }
  88%           { transform: rotate(2deg)  scale(1.08); }
  90%           { transform: rotate(-10deg) scale(0.96); }
  92%           { transform: rotate(0deg)  scale(1.05); }
  94%           { transform: rotate(-6deg) scale(1); }
}

.hero__lead {
  max-width: 38ch;
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 2.2rem;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 2rem;
  border-top: 1px solid var(--c-line);
  padding-top: 1.4rem;
  max-width: 600px;
}
.hero__stats > div { display: flex; flex-direction: column; gap: .15rem; }
.hero__stats dt {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-muted);
  order: 2;
}
.hero__stats dd {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-green);
  margin: 0;
  order: 1;
}

.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, var(--c-green), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 24px;
  background: var(--c-green);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%   { transform: translateY(-100%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

@media (max-width: 600px) {
  .hero__scroll { display: none; }
  .hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1rem; }
  .hero__stats dd { font-size: 1.75rem; }
  .hero__stats dt { font-size: .65rem; letter-spacing: .14em; }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--c-green);
  color: var(--c-blue-900);
  padding-block: 1.1rem;
  overflow: hidden;
  border-block: 2px solid var(--c-blue-900);
  position: relative;
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker-roll 40s linear infinite;
  padding-left: 100%;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.ticker__track > span:not(.ticker__dot) { display: inline-block; }
.ticker__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--c-blue-900);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes ticker-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Valori (3 colonne) ---------- */
.valori { background: var(--c-blue-700); }

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 760px) { .value-grid { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  position: relative;
  padding: 2.2rem 1.8rem 2rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 58, 130, 0.45) 0%, rgba(8, 24, 58, 0.65) 100%);
  overflow: hidden;
  transition: transform var(--t-mid), border-color var(--t-mid), background var(--t-mid);
}
.value-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 60%, rgba(156, 243, 58, 0.0) 100%);
  transition: background var(--t-mid);
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(156, 243, 58, 0.5);
  background: linear-gradient(180deg, rgba(30, 80, 174, 0.45) 0%, rgba(14, 42, 92, 0.7) 100%);
}
.value-card:hover::before {
  background: linear-gradient(135deg, transparent 50%, rgba(156, 243, 58, 0.18) 100%);
}

.value-card__num {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 4.5rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(156, 243, 58, 0.16);
  pointer-events: none;
}

.value-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--c-blue-900);
  color: var(--c-green);
  margin-bottom: 1.6rem;
  border: 1px solid rgba(156, 243, 58, 0.3);
}
.value-card__icon svg { width: 32px; height: 32px; }

.value-card h3 {
  font-size: var(--fs-h3);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--c-white);
  margin-bottom: .6rem;
}
.value-card p {
  color: var(--c-muted);
  font-size: var(--fs-body);
  line-height: 1.55;
}

/* ---------- Squadre teaser ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }

.team-card--feature {
  grid-column: 1 / -1;
  max-width: none;
  margin-inline: 0;
  width: 100%;
}
.team-card--feature a {
  display: grid !important;
  grid-template-columns: 2fr 1fr !important;
}
.team-card--feature .team-card__media {
  aspect-ratio: auto !important;
  max-height: 312px;
  height: 100%;
  width: 100%;
  min-height: 100%;
}
.team-card--feature .team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: none;
}
.team-card--feature a:hover .team-card__media img,
.team-card--feature a:focus-visible .team-card__media img {
  transform: scale(1.04);
}
.team-card--feature .team-card__media::after {
  background: linear-gradient(90deg, transparent 60%, rgba(6, 18, 46, 0.35) 100%);
}
.team-card--feature .team-card__body {
  position: static;
  padding: 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-blue-900);
}
.team-card--feature .team-card__body h3 {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  line-height: 1.05;
}
.team-card--feature .team-card__body p {
  font-size: .9rem;
  margin-top: .25rem;
  line-height: 1.4;
}
.team-card--feature .team-card__cta {
  opacity: 1;
  transform: none;
  margin-top: .8rem;
}

.team-card:not(.team-card--feature) .team-card__media { aspect-ratio: 1 / 1; }
.team-card:not(.team-card--feature) .team-card__body {
  padding: 1.05rem 1rem .95rem;
}
.team-card:not(.team-card--feature) .team-card__body h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: .15rem;
}
.team-card:not(.team-card--feature) .team-card__body p {
  font-size: .8rem;
  line-height: 1.35;
}
.team-card:not(.team-card--feature) .team-card__tag {
  font-size: .58rem;
  padding: .18rem .42rem;
  margin-bottom: .55rem;
  letter-spacing: .18em;
}
.team-card:not(.team-card--feature) .team-card__cta {
  margin-top: .55rem;
  font-size: .68rem;
  letter-spacing: .14em;
}
.team-card:not(.team-card--feature) .team-card__cta svg { width: 13px; height: 13px; }

.team-card {
  position: relative;
}
.team-card a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-blue-900);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-line);
}
.team-card a:hover,
.team-card a:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
  border-color: var(--c-green);
  outline: none;
}

.team-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0;
}
.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03);
  transform: scale(1.04);
  transition: filter var(--t-slow), transform var(--t-slow);
}
.team-card a:hover .team-card__media img,
.team-card a:focus-visible .team-card__media img {
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.08);
}

.team-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 18, 46, 0.85) 100%);
  pointer-events: none;
}

.team-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.6rem 1.4rem 1.4rem;
  z-index: 1;
}
.team-card__tag {
  display: inline-block;
  padding: .25rem .55rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-blue-900);
  background: var(--c-green);
  border-radius: 4px;
  margin-bottom: .8rem;
}
.team-card__body h3 {
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin-bottom: .25rem;
}
.team-card__body p {
  font-size: .95rem;
  color: var(--c-muted);
  margin: 0;
}
.team-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .9rem;
  color: var(--c-green);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity var(--t-mid), transform var(--t-mid);
}
.team-card__cta svg { width: 16px; height: 16px; }
.team-card a:hover .team-card__cta,
.team-card a:focus-visible .team-card__cta {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Community / Grandi Insieme (light bg, blu+lime) ---------- */
.community { background: var(--c-blue-700); }
.community--light {
  background: #F5F7FA;
  color: #263050;
  position: relative;
  overflow: hidden;
}
.community--light::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(156, 243, 58, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.community--light::after {
  content: "";
  position: absolute;
  bottom: -140px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(38, 48, 80, 0.10) 0%, transparent 65%);
  pointer-events: none;
}
.community--light .eyebrow { color: #263050; }
.community--light .eyebrow__bar { background: #263050; }
.community--light .section-title { color: #263050; }
.community--light .t-green { color: #82D824; }
.community--light .btn--primary {
  background: #263050;
  color: #9CF33A;
  border-color: #263050;
}
.community--light .btn--primary:hover {
  background: #9CF33A;
  color: #263050;
  border-color: #9CF33A;
}

.community__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) {
  .community__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 5rem;
  }
}
.community__copy { max-width: 58ch; }
.community__lead {
  font-size: var(--fs-body);
  color: rgba(38, 48, 80, 0.78);
  margin-block: 1rem 0;
  line-height: 1.6;
  font-weight: 500;
}
.community--light .community__lead strong {
  color: #263050;
  font-weight: 800;
}
.community--light .community__lead em {
  color: #82D824;
  font-style: italic;
  font-weight: 700;
}
.community--light .community__copy .btn { margin-top: 2rem; }

/* ---- Gallery: 2x2 grid of 4 photos + floating badges ---- */
.community__gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: .9rem;
}
@media (min-width: 600px) {
  .community__gallery { gap: 1.1rem; }
}

.community__photo {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 48px -18px rgba(38, 48, 80, 0.45);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
  aspect-ratio: 4 / 5;
}
.community__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform var(--t-slow);
}
.community__photo:hover { transform: translateY(-4px); }
.community__photo:hover img { transform: scale(1.05); }

.community__photo--top {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  border: 4px solid #263050;
  transform: rotate(-1.5deg);
}
.community__photo--main {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  border: 4px solid #9CF33A;
  transform: rotate(1deg);
}
.community__photo--bottom {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  border: 4px solid #263050;
  transform: rotate(1.5deg);
}
.community__photo--mini {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  border: 4px solid #9CF33A;
  transform: rotate(-2deg);
}

/* Floating badges */
.community__badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: .85rem 1.1rem;
  text-align: center;
  font-family: var(--font-display);
  box-shadow: 0 14px 30px -10px rgba(38, 48, 80, 0.45);
  z-index: 2;
  transform: rotate(-4deg);
  transition: transform var(--t-mid);
}
.community__badge:hover { transform: rotate(-2deg) scale(1.05); }
.community__badge em {
  font-style: italic;
  font-weight: 600;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
}
.community__badge strong {
  font-weight: 900;
  font-style: italic;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: .15rem;
}
.community__badge--year {
  background: #9CF33A;
  color: #263050;
  top: -14px;
  right: 8px;
}
.community__badge--serie {
  background: #263050;
  color: #9CF33A;
  bottom: -14px;
  left: -10px;
  transform: rotate(3deg);
}
.community__badge--serie:hover { transform: rotate(1deg) scale(1.05); }

@media (min-width: 600px) {
  .community__badge--year { top: -22px; right: -16px; padding: 1rem 1.3rem; }
  .community__badge--year strong { font-size: 1.9rem; }
  .community__badge--serie { bottom: -20px; left: -22px; padding: 1rem 1.3rem; }
  .community__badge--serie strong { font-size: 1.7rem; }
}

/* ---------- Enlist (CTA strip) ---------- */
.enlist {
  position: relative;
  background: var(--c-green);
  color: var(--c-blue-900);
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-block: 3px solid var(--c-blue-900);
}
.enlist__bolt--bg {
  position: absolute;
  z-index: -1;
  right: -4vw;
  top: -4vw;
  width: 80vw;
  max-width: 760px;
  height: auto;
  color: rgba(6, 18, 46, 0.08);
  transform: rotate(14deg);
}

.enlist__inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.enlist .eyebrow { color: var(--c-blue-900); }
.enlist__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--c-blue-900);
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.enlist__title-strike {
  position: relative;
  display: inline-block;
  padding: 0 .15em;
}
.enlist__title-strike::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-blue-900);
  z-index: -1;
  transform: skewX(-9deg);
}
.enlist__title-strike { color: var(--c-green); }

.enlist__lead {
  max-width: 48ch;
  font-size: var(--fs-body-lg);
  color: var(--c-blue-900);
  margin-bottom: 2rem;
}

/* ---------- Sponsors / Partners ---------- */
.sponsors {
  background: var(--c-blue-800);
  padding-block: clamp(4.5rem, 8vw, 7rem);
  scroll-margin-top: 90px;
  position: relative;
}
.sponsors::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 80% 0%, rgba(156, 243, 58, 0.08), transparent 50%),
                    radial-gradient(circle at 10% 100%, rgba(30, 80, 174, 0.35), transparent 55%);
}
.sponsors > .container { position: relative; }

.sponsors__lead {
  font-size: var(--fs-body-lg);
  color: var(--c-muted);
  max-width: 56ch;
  margin-top: 1.2rem;
}

.sponsors__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 2.5rem;
}
@media (min-width: 720px) {
  .sponsors__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
@media (min-width: 1024px) {
  .sponsors__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sponsors__list li {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1.4rem;
  min-height: clamp(220px, 26vw, 280px);
  border: 2px solid transparent;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.sponsor-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(120px, 14vw, 160px);
  padding: 1rem;
  border-bottom: 1px solid rgba(14, 42, 92, 0.1);
}
.sponsor-card__logo img {
  max-height: 100%;
  max-width: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.sponsor-card__info { display: flex; flex-direction: column; gap: .85rem; }
.sponsor-card__info p + p { margin-top: 0; }
.sponsor-card__actions { margin-top: .4rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.sponsor-card__info h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  color: var(--c-blue-900);
  margin: 0;
}
.sponsor-card__info p {
  font-size: .98rem;
  line-height: 1.55;
  color: #1a2a4a;
  margin: 0;
}
.sponsor-card__contact {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: .2rem;
  padding: .55rem .9rem;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .02em;
  color: var(--c-blue-900);
  background: var(--c-green);
  border-radius: 999px;
  text-decoration: none;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.sponsor-card__contact svg { width: 14px; height: 18px; color: var(--c-blue-900); }
.sponsor-card__contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.25);
}
.sponsors__list li::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 64px;
  height: 6px;
  background: var(--c-green);
  border-bottom-right-radius: 8px;
  transition: width var(--t-mid);
}
.sponsors__list li:hover,
.sponsors__list li:focus-within {
  transform: translateY(-6px);
  border-color: var(--c-green);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}
.sponsors__list li:hover::before {
  width: 100%;
  height: 6px;
  border-bottom-right-radius: 0;
}

.sponsors__list .sponsor-card__logo img {
  display: block;
  max-height: 100%;
  max-width: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform var(--t-mid);
}
.sponsors__list li:hover .sponsor-card__logo img { transform: scale(1.04); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--c-blue-900) 0%, #04091F 100%);
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  color: var(--c-text);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--c-green) 50%, transparent 100%);
  opacity: .4;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.75rem 2.5rem;
  }
}
@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.5fr 1fr 1.25fr 1.4fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
  }
}

.site-footer__brand p {
  color: var(--c-muted);
  margin-top: 1rem;
  max-width: 32ch;
  font-size: .95rem;
  line-height: 1.55;
}
.site-footer__logo { height: 72px; width: auto; }

.site-footer h4 {
  position: relative;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 1.25rem;
  padding-bottom: .65rem;
}
.site-footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--c-green);
  border-radius: 2px;
}
.site-footer__links { display: flex; flex-direction: column; gap: .8rem; }
.site-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--c-text);
  font-weight: 500;
  font-size: .95rem;
  transition: color var(--t-fast), transform var(--t-fast);
}
.site-footer__links a:hover { color: var(--c-green); transform: translateX(2px); }
.site-footer__links a svg { width: 18px; height: 18px; opacity: .75; flex-shrink: 0; }
.site-footer__links a:hover svg { opacity: 1; }
.site-footer__links li { color: var(--c-muted); font-size: .92rem; line-height: 1.45; }

/* Privacy & Tutela docs list */
.site-footer__col--privacy .site-footer__links a {
  font-size: .9rem;
  line-height: 1.4;
  align-items: flex-start;
}
.site-footer__col--privacy .site-footer__links a svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--c-green);
  opacity: .85;
}
.site-footer__col--privacy .site-footer__links a:hover svg { opacity: 1; }

.site-footer__social { display: flex; gap: .8rem; margin-top: .75rem; }
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line-2);
  color: var(--c-text);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.site-footer__social a:hover {
  background: var(--c-green);
  color: var(--c-blue-900);
  border-color: var(--c-green);
  transform: translateY(-2px);
}
.site-footer__social svg { width: 20px; height: 20px; }

.site-footer__legal {
  padding-block: 1.5rem;
  background: var(--c-blue-900);
}
.site-footer__legal-name {
  color: var(--c-text);
  font-weight: 700;
  font-size: .92rem;
  margin: 0 0 .65rem;
  letter-spacing: .01em;
}
.site-footer__legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.75rem;
  color: var(--c-muted);
  font-size: .82rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer__legal-list li {
  display: inline-flex;
  align-items: baseline;
}
.site-footer__legal-list span {
  opacity: .65;
  margin-right: .4rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.site-footer__legal-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, .2);
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.site-footer__legal-list a:hover {
  color: var(--c-green);
  text-decoration-color: var(--c-green);
}

.site-footer__base {
  border-top: 1px solid var(--c-line);
  padding-block: 1.5rem;
  background: var(--c-blue-900);
}
.site-footer__base-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--c-muted);
  font-size: .82rem;
}
.site-footer__fipav {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--c-green);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .35rem .7rem;
  border: 1px solid rgba(156, 243, 58, .35);
  border-radius: 6px;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.site-footer__fipav:hover {
  background: var(--c-green);
  color: var(--c-blue-900);
  border-color: var(--c-green);
}

/* Evento temporaneo strip (top of footer) */
.site-footer__evento {
  background: linear-gradient(90deg, var(--c-green) 0%, var(--c-green-700) 100%);
  color: var(--c-blue-900);
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.site-footer__evento-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.site-footer__evento-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  max-width: 60ch;
}
.site-footer__evento-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  font-style: italic;
}
.site-footer__evento-eyebrow {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.site-footer__evento .btn--primary {
  background: var(--c-blue-900);
  color: var(--c-green);
  border-color: var(--c-blue-900);
}
.site-footer__evento .btn--primary:hover {
  background: var(--c-blue-800);
  color: var(--c-green);
  border-color: var(--c-blue-800);
}
.site-footer__evento .btn--primary svg {
  width: 18px;
  height: 18px;
  margin-left: .35rem;
  vertical-align: middle;
}

/* Safeguarding band — full-width card with PDF download CTA */
.site-footer__safeguarding-band {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: linear-gradient(90deg, rgba(156, 243, 58, .04) 0%, rgba(156, 243, 58, .01) 100%);
}
.site-footer__safeguarding {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  padding-block: 1.6rem;
}
@media (min-width: 760px) {
  .site-footer__safeguarding {
    grid-template-columns: auto 1fr auto auto;
    gap: 1.5rem 2rem;
  }
}
.site-footer__safeguarding-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(156, 243, 58, .12);
  border: 1px solid rgba(156, 243, 58, .35);
  color: var(--c-green);
  flex-shrink: 0;
}
.site-footer__safeguarding-mark svg { width: 26px; height: 26px; }
.site-footer__safeguarding-body { min-width: 0; }
.site-footer__safeguarding-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: .35rem;
}
.site-footer__safeguarding p {
  color: var(--c-muted);
  font-size: .92rem;
  line-height: 1.45;
  margin: 0;
}
.site-footer__safeguarding-contact {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding-left: 0;
  border-left: 0;
}
@media (min-width: 760px) {
  .site-footer__safeguarding-contact {
    padding-left: 1.5rem;
    border-left: 1px solid var(--c-line-2);
  }
}
.site-footer__safeguarding-contact strong {
  color: var(--c-text);
  font-size: .95rem;
  font-weight: 700;
}
.site-footer__safeguarding-contact a {
  color: var(--c-muted);
  font-size: .88rem;
  font-variant-numeric: tabular-nums;
  transition: color var(--t-fast);
}
.site-footer__safeguarding-contact a:hover { color: var(--c-green); }
.site-footer__safeguarding-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.1rem;
  background: var(--c-green);
  color: var(--c-blue-900);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 2px solid var(--c-green);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  justify-self: start;
}
.site-footer__safeguarding-cta:hover {
  background: transparent;
  color: var(--c-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(156, 243, 58, .5);
}
.site-footer__safeguarding-cta svg { width: 18px; height: 18px; }

/* GDPR minors note */
.site-footer__minors-note {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--c-line);
  color: var(--c-muted);
  font-size: .78rem;
  font-style: italic;
  line-height: 1.55;
  max-width: 95ch;
  opacity: .85;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: var(--c-blue-900);
  border-top: 2px solid var(--c-green);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .35);
  color: var(--c-text);
  animation: cookie-banner-up .35s cubic-bezier(.2,.7,.2,1) both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 1.1rem;
}
.cookie-banner__text {
  flex: 1 1 360px;
  min-width: 0;
}
.cookie-banner__text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: .25rem;
}
.cookie-banner__text p {
  margin: 0;
  color: var(--c-muted);
  font-size: .88rem;
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--c-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
@keyframes cookie-banner-up {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}

/* ---------- Hero entrance stagger ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow,
.hero__title,
.hero__lead,
.hero__actions,
.hero__stats {
  opacity: 0;
  animation: fade-up .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero .eyebrow   { animation-delay: .1s; }
.hero__title     { animation-delay: .25s; }
.hero__lead      { animation-delay: .45s; }
.hero__actions   { animation-delay: .6s; }
.hero__stats     { animation-delay: .75s; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1),
              transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Enlist diagonal stripes texture ---------- */
.enlist::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -10deg,
    transparent 0 30px,
    rgba(6, 18, 46, 0.06) 30px 34px
  );
  mask-image: linear-gradient(180deg, black, black);
}

/* =====================================================
   SQUADRE PAGE
   ===================================================== */

/* ---------- Page hero (sub-page intro) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(7rem, 16vh, 11rem) clamp(4rem, 8vw, 6.5rem);
  background: var(--c-blue-700);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(6, 18, 46, 0.7) 0%, rgba(14, 42, 92, 0.92) 100%),
    url("../Immagini_Homepage/squadre.png") center/cover no-repeat;
  filter: saturate(0.9) contrast(1.05);
}
.page-hero__grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}
.page-hero__backletter {
  position: absolute;
  z-index: -1;
  bottom: -2vw;
  right: -1vw;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(156, 243, 58, 0.28);
  pointer-events: none;
  user-select: none;
  animation: backletter-drift 22s ease-in-out infinite alternate;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 5.6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--c-white);
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
.page-hero__lead {
  font-size: var(--fs-body-lg);
  max-width: 56ch;
  color: var(--c-text);
  margin-bottom: 2.4rem;
}

/* Quick-jump anchor strip */
.quick-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
}
.quick-jump a {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text);
  background: rgba(6, 18, 46, 0.55);
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.quick-jump a:hover {
  background: var(--c-green);
  color: var(--c-blue-900);
  border-color: var(--c-green);
  transform: translateY(-2px);
}

/* ---------- Team feature (1ª Divisione) ---------- */
.team-feature { background: var(--c-blue-700); }
.team-feature__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .team-feature__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 4.5rem;
    align-items: start;
  }
}

.team-feature__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-card);
  min-width: 0;
  width: 100%;
}
@media (min-width: 960px) {
  .team-feature__media {
    position: sticky;
    top: 110px;
  }
}
.team-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 18, 46, 0.65) 100%);
  pointer-events: none;
}
.team-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.95) contrast(1.05);
}
.team-feature__badge {
  position: absolute;
  bottom: 1.2rem;
  left: 1.2rem;
  padding: .55rem 1rem;
  background: var(--c-green);
  color: var(--c-blue-900);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.team-feature__badge span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  padding: .1rem .35rem;
  background: var(--c-blue-900);
  color: var(--c-green);
  border-radius: 4px;
}

.team-feature__content { display: flex; flex-direction: column; min-width: 0; }

.team-feature__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--c-white);
  margin-bottom: 1.2rem;
  text-wrap: balance;
}

.team-feature__lead {
  font-size: var(--fs-body-lg);
  color: var(--c-text);
  margin-bottom: 2rem;
  max-width: 56ch;
}

.team-feature__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.6rem;
  margin-bottom: 2rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(90deg, rgba(156, 243, 58, 0.14) 0%, rgba(156, 243, 58, 0.03) 100%);
  border-radius: var(--radius);
  border-left: 3px solid var(--c-green);
}
.team-feature__highlights li {
  flex: 1 1 130px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.team-feature__highlights strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-green);
}
.team-feature__highlights span {
  font-size: .82rem;
  color: var(--c-text);
  line-height: 1.4;
}

.team-feature__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding: 1.6rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: rgba(6, 18, 46, 0.55);
}
@media (min-width: 720px) {
  .team-feature__meta { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
}
.team-feature__meta dt {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: .35rem;
}
.team-feature__meta dt svg { width: 14px; height: 14px; }
.team-feature__meta dd {
  font-weight: 700;
  color: var(--c-white);
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
}
.team-feature__meta dd small {
  display: block;
  font-weight: 500;
  font-size: .85rem;
  color: var(--c-muted);
  margin-top: .15rem;
}

.team-feature__schedule { margin-bottom: 2rem; }
.team-feature__schedule h3 {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: .9rem;
}
.team-feature__schedule h3 svg { width: 16px; height: 16px; }

.team-feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
}

/* ---------- Schedule (shared) ---------- */
.schedule {
  display: grid;
  gap: .55rem;
  margin: 0;
}
.schedule li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.1rem;
  background: var(--c-blue-900);
  border-left: 3px solid var(--c-green);
  border-radius: 8px;
  transition: transform var(--t-fast), background var(--t-fast);
}
.schedule li:hover {
  background: var(--c-blue-600);
  transform: translateX(3px);
}
.schedule__day {
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .92rem;
  color: var(--c-white);
}
.schedule__time {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--c-green);
  letter-spacing: -0.01em;
}

/* ---------- Teams grid (other 6) ---------- */
.teams { background: var(--c-blue-800); }
.teams__lead {
  font-size: var(--fs-body-lg);
  color: var(--c-muted);
  margin-top: 1rem;
  max-width: 60ch;
}

.teams-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px)  { .teams-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .teams-grid { grid-template-columns: repeat(3, 1fr); } }

.team-detail {
  position: relative;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 58, 130, 0.3) 0%, rgba(8, 24, 58, 0.55) 100%);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
  scroll-margin-top: 110px;
  overflow: hidden;
  isolation: isolate;
}
.team-detail:hover {
  transform: translateY(-6px);
  border-color: rgba(156, 243, 58, 0.55);
  box-shadow: 0 28px 56px -18px rgba(0, 0, 0, 0.65), 0 0 32px rgba(156, 243, 58, 0.28);
}

.team-detail__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-blue-900);
}
.team-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04);
  transition: transform var(--t-slow), filter var(--t-slow);
}
.team-detail:hover .team-detail__media img,
.team-detail:focus-within .team-detail__media img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.05);
}
.team-detail__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 46, 0) 35%, rgba(6, 18, 46, 0.78) 100%);
  z-index: 1;
  pointer-events: none;
}

.team-detail__num {
  position: absolute;
  top: .85rem;
  right: 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-green);
  text-shadow: 0 2px 14px rgba(6, 18, 46, 0.85);
  z-index: 2;
  pointer-events: none;
}

.team-detail__tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: .35rem .75rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-blue-900);
  background: var(--c-green);
  border-radius: 4px;
  z-index: 2;
}

.team-detail__body {
  padding: 1.5rem 1.6rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  flex: 1;
}
.team-detail__body h3 {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin: 0 0 .25rem;
  line-height: 1.1;
  text-wrap: balance;
}
.team-detail__body > p {
  color: var(--c-muted);
  font-size: .95rem;
  line-height: 1.45;
  margin: 0;
}

.team-detail__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-line);
  margin: 0;
}
@media (min-width: 480px) {
  .team-detail__meta { grid-template-columns: 1fr 1fr; }
}
.team-detail__meta dt {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: .2rem;
}
.team-detail__meta dt svg { width: 12px; height: 12px; }
.team-detail__meta dd {
  font-weight: 700;
  font-size: .9rem;
  color: var(--c-white);
  margin: 0;
  line-height: 1.35;
}

.team-detail .schedule { margin: 0; }
.team-detail .schedule li { padding: .65rem .9rem; }
.team-detail .schedule__day { font-size: .85rem; }
.team-detail .schedule__time { font-size: 1rem; }

.team-detail__sub {
  margin: 1rem 0 .4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-green);
}
.team-detail__note {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--c-text);
}
.team-detail__note strong { color: var(--c-green); font-weight: 800; }

/* =====================================================
   STAFF PAGE
   ===================================================== */

.staff-section { background: var(--c-blue-700); }
.staff-section.section--alt { background: var(--c-blue-800); }

.staff-section__lead {
  font-size: var(--fs-body-lg);
  color: var(--c-muted);
  max-width: 60ch;
  margin-top: 1rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 540px)  { .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 820px)  { .staff-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
@media (min-width: 1080px) { .staff-grid { grid-template-columns: repeat(4, 1fr); gap: 1.75rem; } }

.staff-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-blue-900);
  border: 1px solid var(--c-line);
  transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
  display: flex;
  flex-direction: column;
}
.staff-card:hover {
  transform: translateY(-6px);
  border-color: rgba(156, 243, 58, 0.55);
  box-shadow: 0 28px 56px -18px rgba(0, 0, 0, 0.65), 0 0 32px rgba(156, 243, 58, 0.28);
}

.staff-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-blue-600), var(--c-blue-900));
}
.staff-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.92);
  transition: filter var(--t-slow), transform var(--t-slow);
}
.staff-card__media img[src=""],
.staff-card__media img:not([src]) {
  opacity: 0;
}
.staff-card:hover .staff-card__media img,
.staff-card:focus-within .staff-card__media img {
  filter: contrast(1.02) brightness(1);
  transform: scale(1.06);
}
.staff-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 46, 0) 55%, rgba(6, 18, 46, 0.85) 100%);
  pointer-events: none;
}

.staff-card__num {
  position: absolute;
  top: .7rem;
  right: .85rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-green);
  text-shadow: 0 2px 12px rgba(6, 18, 46, 0.85);
  z-index: 2;
  pointer-events: none;
}

.staff-card__body {
  padding: 1.2rem 1.3rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.staff-card__role {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: .35rem;
}
.staff-card__role-sub {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: .55rem;
  font-style: italic;
}
.staff-card__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-white);
  margin: .15rem 0 0;
  text-wrap: balance;
}

.staff-cta-row {
  margin-top: 3rem;
  padding: 1.6rem 1.8rem;
  background: rgba(6, 18, 46, 0.55);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  color: var(--c-text);
  font-size: var(--fs-body);
}
.staff-cta-row .link-arrow { font-size: .88rem; }

/* ---------- Live classifica (squadre page) ---------- */
.live-classifica { background: var(--c-blue-900); }

.live-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.live-cols > * { min-width: 0; }
@media (min-width: 960px) { .live-cols { grid-template-columns: 2fr 1fr; gap: 2.5rem; } }

.live-col__title {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 1.1rem;
}
.live-col__title svg { width: 14px; height: 18px; flex-shrink: 0; }

.classifica-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
  max-width: 100%;
}

.classifica {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-display);
  font-size: .88rem;
  background: var(--c-blue-800);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.classifica th {
  background: var(--c-blue-700);
  color: var(--c-muted);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .65rem .8rem;
  text-align: left;
  white-space: nowrap;
}
.classifica td {
  padding: .6rem .8rem;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text);
  white-space: nowrap;
}
.classifica tr:last-child td { border-bottom: none; }
.classifica tr:nth-child(even) td { background: rgba(255,255,255,.03); }
.classifica tr:hover td { background: rgba(156,243,58,.06); }

.classifica__row--ours td {
  background: rgba(156, 243, 58, 0.12) !important;
  color: var(--c-white);
  font-weight: 700;
}
.classifica__row--ours td:first-child { color: var(--c-green); }

@media (max-width: 720px) {
  .classifica { font-size: .82rem; width: 100%; }
  .classifica th, .classifica td { padding: .55rem .55rem; }
  .classifica th:nth-child(4),
  .classifica td:nth-child(4),
  .classifica th:nth-child(5),
  .classifica td:nth-child(5),
  .classifica th:nth-child(6),
  .classifica td:nth-child(6),
  .classifica th:nth-child(7),
  .classifica td:nth-child(7),
  .classifica th:nth-child(8),
  .classifica td:nth-child(8) { display: none; }
  .classifica th:nth-child(1),
  .classifica td:nth-child(1) {
    width: 1%;
    text-align: center;
    padding-inline: .5rem;
  }
  .classifica th:nth-child(3),
  .classifica td:nth-child(3) {
    width: 1%;
    text-align: right;
    padding-right: .9rem;
    padding-left: .7rem;
  }
  .classifica td:nth-child(2) {
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }
}

.classifica__loading, .classifica__error {
  padding: 1.5rem;
  color: var(--c-muted);
  font-size: .9rem;
  text-align: center;
}
.classifica__error a { color: var(--c-green); }

.live-source {
  margin-top: .8rem;
  font-size: .78rem;
  color: var(--c-muted);
}
.live-source a { color: var(--c-green); text-decoration: none; }
.live-source a:hover { text-decoration: underline; }

.prossima-wrap {
  background: var(--c-blue-800);
  border-radius: var(--radius);
  padding: 1.4rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prossima__match {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.prossima__match span {
  display: block;
  padding: .6rem .85rem;
  background: var(--c-blue-700);
  border-left: 3px solid var(--c-green);
  border-radius: 6px;
  font-size: .88rem;
  font-family: var(--font-display);
  color: var(--c-text);
}
.prossima__empty {
  color: var(--c-muted);
  font-size: .88rem;
  margin: 0;
}
.prossima__empty a { color: var(--c-green); text-decoration: none; }
.prossima__empty a:hover { text-decoration: underline; }

.prossima__match {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.prossima__giornata {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-green);
  background: rgba(156,243,58,.1);
  padding: .35rem .7rem;
  border-radius: 4px;
  align-self: flex-start;
}
.prossima__data {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--c-white);
  letter-spacing: -0.02em;
}
.prossima__teams {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--c-text);
  line-height: 1.3;
}
.prossima__teams strong { color: var(--c-white); font-weight: 700; }
.prossima__teams em {
  font-style: normal;
  font-size: .7rem;
  color: var(--c-muted);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: .2rem 0;
}

.prossima__final {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  align-items: flex-start;
}
.prossima__final-tag {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-green);
  margin: 0;
}
.prossima__final-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--c-white);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
}
.prossima__final-sub {
  font-size: .9rem;
  color: var(--c-text);
  margin: 0;
}
.prossima__final-link {
  margin-top: .4rem;
  color: var(--c-green);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
}
.prossima__final-link:hover { text-decoration: underline; }

/* ---------- Home: Champion banner (1ª Divisione campione) ---------- */
.champion-banner {
  background:
    linear-gradient(135deg, rgba(14, 42, 92, 0.85) 0%, rgba(6, 18, 46, 0.95) 100%),
    radial-gradient(ellipse at top right, rgba(156, 243, 58, 0.18) 0%, transparent 60%);
  background-color: var(--c-blue-800);
  position: relative;
  overflow: hidden;
}
.champion-banner__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 880px) {
  .champion-banner__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; }
}
.champion-banner__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
  border: 1px solid rgba(156, 243, 58, .18);
  position: relative;
}
.champion-banner__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.champion-banner__content {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.champion-banner__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--c-white);
  margin: .8rem 0 1.2rem;
}
.champion-banner__lead {
  font-size: var(--fs-body-lg);
  color: var(--c-muted);
  max-width: 42ch;
  margin: 0 0 1.6rem;
}
.champion-banner__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 600px) {
  .champion-banner__stats { grid-template-columns: repeat(4, 1fr); }
}
.champion-banner__stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.6rem 1rem;
  background: var(--c-blue-900);
  text-align: center;
  gap: .3rem;
}
.champion-banner__stats strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.4rem);
  line-height: 1;
  color: var(--c-green);
  letter-spacing: -0.04em;
}
.champion-banner__stats span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.champion-banner__bolt {
  position: absolute;
  right: -40px;
  top: -30px;
  width: 240px;
  height: 240px;
  color: var(--c-green);
  opacity: .07;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Home: 50° Anniversario manifestazione ----------
   Palette allineata al sito Netlify ufficiale:
   blu #263050 + lime #9CF33A su sfondo off-white. */
.anniversario--light {
  background: #F5F7FA;
  color: #263050;
  position: relative;
  overflow: hidden;
}
.anniversario--light::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(156, 243, 58, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.anniversario--light::after {
  content: "";
  position: absolute;
  bottom: -140px;
  right: -100px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(38, 48, 80, 0.10) 0%, transparent 65%);
  pointer-events: none;
}
.anniversario--light .eyebrow { color: #263050; }
.anniversario--light .eyebrow__bar { background: #263050; }
.anniversario--light .section-title { color: #263050; }
.anniversario__head { max-width: 760px; position: relative; z-index: 1; }
.anniversario__lead {
  font-size: var(--fs-body-lg);
  color: rgba(38, 48, 80, 0.72);
  margin-top: 1.2rem;
  max-width: 60ch;
  font-weight: 500;
}
.anniversario__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 2.8rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 760px) {
  .anniversario__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

.day-card {
  position: relative;
  border-radius: 28px;
  padding: 2.2rem 1.8rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1), box-shadow 320ms ease;
  overflow: hidden;
  box-shadow: 0 18px 40px -16px rgba(38, 48, 80, 0.35);
}
.day-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px -16px rgba(38, 48, 80, 0.45);
}

/* Venerdì — BLU */
.day-card:not(.day-card--accent) {
  background: linear-gradient(155deg, #2E3A60 0%, #263050 60%, #1B2240 100%);
  color: #FFFFFF;
}
.day-card:not(.day-card--accent)::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(156, 243, 58, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

/* Sabato — LIME */
.day-card--accent {
  background: linear-gradient(155deg, #B6FF54 0%, #9CF33A 55%, #82D824 100%);
  color: #263050;
}
.day-card--accent::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(38, 48, 80, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.day-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  padding-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}
.day-card:not(.day-card--accent) .day-card__head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.day-card--accent .day-card__head {
  border-bottom: 1px solid rgba(38, 48, 80, 0.18);
}

.day-card__day {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.day-card:not(.day-card--accent) .day-card__day { color: #9CF33A; }
.day-card--accent .day-card__day { color: rgba(38, 48, 80, 0.7); }

.day-card__date {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(2.4rem, 1.6rem + 2.8vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.day-card:not(.day-card--accent) .day-card__date { color: #FFFFFF; }
.day-card--accent .day-card__date { color: #263050; }

.day-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  z-index: 1;
}
.day-card__list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: start;
}
.day-card__time {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .82rem;
  letter-spacing: .06em;
  border-radius: 999px;
  padding: .4rem .7rem;
  text-align: center;
  align-self: start;
  text-transform: uppercase;
}
.day-card:not(.day-card--accent) .day-card__time {
  background: #9CF33A;
  color: #263050;
}
.day-card--accent .day-card__time {
  background: #263050;
  color: #9CF33A;
}

.day-card__what {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.day-card__what strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
}
.day-card__what em {
  font-style: italic;
  font-size: .95rem;
  font-weight: 500;
}
.day-card:not(.day-card--accent) .day-card__what strong { color: #FFFFFF; }
.day-card:not(.day-card--accent) .day-card__what em { color: rgba(255, 255, 255, 0.78); }
.day-card--accent .day-card__what strong { color: #263050; }
.day-card--accent .day-card__what em { color: rgba(38, 48, 80, 0.75); }

.anniversario__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.8rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 760px) {
  .anniversario__foot {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.anniversario__where {
  margin: 0;
  font-size: 1rem;
  color: #263050;
  font-weight: 700;
  background: #FFFFFF;
  padding: .85rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px -8px rgba(38, 48, 80, 0.3);
  border: 1px solid rgba(38, 48, 80, 0.08);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  line-height: 1.2;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}
.anniversario__where svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
a.anniversario__where:hover,
a.anniversario__where:focus-visible {
  background: var(--c-green);
  color: var(--c-blue-900);
  border-color: var(--c-green);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(38, 48, 80, 0.45);
  outline: none;
}
a.anniversario__where:focus-visible {
  outline: 2px solid var(--c-blue-900);
  outline-offset: 3px;
}
.anniversario--light .btn--primary {
  background: #263050;
  color: #9CF33A;
  border-color: #263050;
}
.anniversario--light .btn--primary:hover {
  background: #9CF33A;
  color: #263050;
  border-color: #9CF33A;
}

/* ---------- News / eventi page ---------- */
.news-section__lead {
  font-size: var(--fs-body-lg);
  color: var(--c-muted);
  margin-top: 1rem;
  max-width: 60ch;
}

.event-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (min-width: 1100px) { .event-cards { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

.event-card {
  position: relative;
  background: linear-gradient(180deg, rgba(20,58,130,.4) 0%, rgba(6,18,46,.85) 100%);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-mid), box-shadow var(--t-mid), transform var(--t-mid);
}
.event-card:hover {
  border-color: rgba(156,243,58,.55);
  box-shadow: 0 32px 64px -20px rgba(0,0,0,.6), 0 0 40px rgba(156,243,58,.25);
  transform: translateY(-6px);
}
.event-card--featured {
  border-color: rgba(156,243,58,.4);
  box-shadow: 0 16px 32px -12px rgba(0,0,0,.4), 0 0 24px rgba(156,243,58,.15);
}

.event-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-blue-900);
}
.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  transition: transform var(--t-slow), filter var(--t-slow);
}
.event-card:hover .event-card__media img {
  transform: scale(1.06);
  filter: saturate(1.15) contrast(1.06);
}
.event-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 18, 46, 0.85) 100%);
  pointer-events: none;
}

.event-card__date-badge {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 110px;
  background: var(--c-green);
  border-radius: var(--radius-sm);
  color: var(--c-blue-900);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.5);
}
.event-card__day {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 3.2rem;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.event-card__month {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-top: .15rem;
}

.event-card__body {
  flex: 1;
  padding: 2rem 2.2rem 2.4rem;
  display: flex;
  flex-direction: column;
}

.event-card__tag {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-green);
  margin: 0 0 .8rem;
}

.event-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--c-white);
  margin: 0 0 1.2rem;
  text-wrap: balance;
}

.event-card__desc {
  font-size: var(--fs-body);
  color: var(--c-muted);
  line-height: 1.6;
  margin: 0 0 1.6rem;
  max-width: 50ch;
}

.event-card__meta {
  list-style: none;
  padding: 1.2rem 0 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  border-top: 1px solid var(--c-line);
}
.event-card__meta li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .95rem;
  color: var(--c-text);
}
.event-card__meta svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--c-green); }

.event-card__bolt {
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 160px;
  height: 200px;
  color: var(--c-green);
  opacity: .07;
  pointer-events: none;
  z-index: 0;
}

.news-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-top: 2.5rem;
  padding: 1.6rem 2rem;
  background: rgba(6,18,46,.55);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-muted);
  font-size: var(--fs-body);
}

/* ---------- Grandi Insieme page ---------- */
.gi-intro__grid,
.gi-formation__grid,
.gi-collab__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 880px) {
  .gi-intro__grid,
  .gi-formation__grid,
  .gi-collab__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.gi-intro__media img,
.gi-formation__media img,
.gi-collab__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.gi-intro__media,
.gi-formation__media,
.gi-collab__media { margin: 0; position: relative; }
.gi-formation__media figcaption {
  margin-top: .8rem;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 700;
}
.gi-intro__copy p,
.gi-formation__copy p,
.gi-collab__copy p {
  font-size: var(--fs-body-lg);
  color: var(--c-muted);
  margin-top: 1rem;
  max-width: 56ch;
  line-height: 1.6;
}
.gi-intro__copy strong,
.gi-formation__copy strong,
.gi-collab__copy strong { color: var(--c-white); }

.gi-mission__lead {
  font-size: var(--fs-body-lg);
  color: var(--c-muted);
  max-width: 60ch;
  margin-top: 1rem;
}
.gi-values {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 720px) { .gi-values { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .gi-values { grid-template-columns: repeat(6, 1fr); } }
.gi-values li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.8rem 1rem;
  background: var(--c-blue-900);
  text-align: center;
  transition: background var(--t-mid), color var(--t-mid);
}
.gi-values li:hover { background: var(--c-blue-800); }
.gi-values span {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1rem;
  color: var(--c-green);
  letter-spacing: .04em;
}
.gi-values strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: -0.01em;
}

.gi-talenti__lead {
  font-size: var(--fs-body-lg);
  color: var(--c-muted);
  max-width: 64ch;
  margin-top: 1rem;
  line-height: 1.6;
}
.gi-talenti__lead strong { color: var(--c-white); }

.gi-academy { padding-block: clamp(2.5rem, 5vw, 4rem); }
.gi-academy__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.gi-academy__title {
  font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem);
  margin-top: 0.4rem;
}
.gi-academy__shot {
  margin: 0;
  width: 100%;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-line);
}
.gi-academy__shot img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 6px);
}
.gi-academy__content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.gi-academy__block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.gi-academy__sub {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gi-academy__intro {
  margin: 0;
  color: var(--c-ink-soft);
  line-height: 1.55;
}
.gi-academy__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.gi-academy__list li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.5;
  color: var(--c-ink);
}
.gi-academy__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--c-green);
  border-radius: 2px;
  transform: rotate(45deg);
}
.gi-academy__link {
  margin: 0.3rem 0 0;
  font-weight: 700;
}
.gi-academy__link a {
  color: var(--c-white);
  text-decoration: underline;
  text-decoration-color: var(--c-green);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  word-break: break-all;
}
.gi-academy__link a:hover { color: rgba(255, 255, 255, 0.7); }
@media (max-width: 860px) {
  .gi-academy__inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .gi-academy__shot { order: 2; }
  .gi-academy__content { order: 1; gap: 1.1rem; }
  .gi-academy__shot img { aspect-ratio: 16 / 10; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker__track { animation: none; }
  .hero__backletter { animation: none; }
  .bolt--inline { animation: none; }
  .hero__highlight { animation: none; }
  .hero .eyebrow,
  .hero__title,
  .hero__lead,
  .hero__actions,
  .hero__stats {
    opacity: 1;
    animation: none;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Body scroll lock when mobile menu open ---------- */
body[data-nav-open="true"] { overflow: hidden; }


/* =====================================================
   MOBILE FIXES (≤ 1023px)
   - Hamburger menu rebuild (stable iOS/Android)
   - News-strip 6/7 Giugno layout polish
   - Team cards equal size + senior-friendly typography
   PC version (≥ 1024px) NOT touched.
   ===================================================== */

@media (max-width: 1023px) {

  /* ---- Header (mobile): toggle absolute LEFT, logo CENTERED ----
     Drop backdrop-filter & stacking context so menu overlay can render
     reliably on iOS Safari. */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(6, 18, 46, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header[data-state="scrolled"] {
    background: rgba(6, 18, 46, 0.98);
  }
  .site-header__inner {
    position: relative;
    padding: .55rem var(--gutter);
    gap: 0;
    justify-content: center;
  }
  .site-header__logo { height: 56px; }
  .site-header__brand {
    margin: 0 auto;
    pointer-events: auto;
  }

  .nav-toggle {
    position: absolute;
    left: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    z-index: 130;
    width: 48px;
    height: 48px;
  }

  /* Mobile: hide original .primary-nav — replaced by .mobile-drawer */
  .primary-nav {
    display: none !important;
  }

  .primary-nav__list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    text-align: left;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }
  .primary-nav__list li {
    border-bottom: 1px solid var(--c-line);
  }
  .primary-nav__list a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.05rem .4rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--c-white);
    min-height: 60px;
    letter-spacing: -0.01em;
  }
  .primary-nav__list a[aria-current="page"] { color: var(--c-green); }

  .primary-nav__cta {
    margin: 1.6rem auto 0;
    width: 100%;
    max-width: 520px;
    justify-content: center;
    font-size: 1rem;
    padding: 1rem 1.8rem;
    min-height: 54px;
  }

  /* ---- Squadre / L'orgoglio cards equal size on mobile ---- */
  .team-grid { gap: 1.25rem; }

  /* Feature card mobile: keep horizontal — image left 2/3, text right 1/3 */
  .team-card--feature {
    grid-column: 1 / -1;
    max-width: none;
    margin: 0;
    width: 100%;
  }
  .team-card--feature a {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
  }
  .team-card--feature .team-card__media {
    aspect-ratio: auto !important;
    max-height: 264px;
    height: 100%;
    position: relative;
  }
  .team-card--feature .team-card__media::after {
    background: linear-gradient(90deg, transparent 60%, rgba(6, 18, 46, 0.45) 100%);
  }
  .team-card--feature .team-card__body {
    position: static;
    padding: 1.1rem 1.1rem;
    background: var(--c-blue-900);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
  }

  /* Unified typography for ALL team cards on mobile */
  .team-card:not(.team-card--feature) .team-card__tag,
  .team-card--feature .team-card__tag {
    font-size: .68rem;
    letter-spacing: .18em;
    padding: .25rem .55rem;
    margin-bottom: .8rem;
  }
  .team-card:not(.team-card--feature) .team-card__body h3,
  .team-card--feature .team-card__body h3 {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin-bottom: .25rem;
  }
  .team-card:not(.team-card--feature) .team-card__body p,
  .team-card--feature .team-card__body p {
    font-size: .95rem;
    line-height: 1.4;
    color: var(--c-muted);
    margin: 0;
  }
  .team-card:not(.team-card--feature) .team-card__cta,
  .team-card--feature .team-card__cta {
    opacity: 1;
    transform: none;
    margin-top: .9rem;
    font-size: .8rem;
    letter-spacing: .14em;
    color: var(--c-green);
  }
  .team-card:not(.team-card--feature) .team-card__cta svg,
  .team-card--feature .team-card__cta svg {
    width: 16px;
    height: 16px;
  }
  .team-card:not(.team-card--feature) .team-card__body,
  .team-card--feature .team-card__body {
    padding: 1.6rem 1.4rem 1.4rem;
  }
}

/* ---- Phones only (≤ 600px): tighter polish ---- */
@media (max-width: 600px) {
  .site-header__logo { height: 50px; }
  .nav-toggle { width: 46px; height: 46px; }

  .team-grid { grid-template-columns: 1fr; gap: 1.1rem; }
}

/* =====================================================
   MOBILE DRAWER (≤ 1023px)
   Standalone overlay built dynamically by inline JS.
   Independent from .primary-nav (which still serves desktop).
   ===================================================== */
.mobile-drawer,
.mobile-drawer__backdrop { display: none; }

@media (max-width: 1023px) {
  .mobile-drawer__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
  }
  .mobile-drawer__backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 84vw;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #0A1F47 0%, #06122E 100%);
    transform: translateX(-105%);
    transition: transform 320ms cubic-bezier(.2,.7,.2,1);
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 8px 0 48px rgba(0, 0, 0, 0.55);
    border-right: 1px solid rgba(156, 243, 58, 0.18);
  }
  .mobile-drawer.is-open { transform: translateX(0); }

  .mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: .6rem;
  }
  .mobile-drawer__brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--c-white);
    letter-spacing: -0.02em;
    text-decoration: none;
  }
  .mobile-drawer__brand .t-green { color: var(--c-green); }
  .mobile-drawer__close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--c-white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
  }
  .mobile-drawer__close:hover { color: var(--c-green); border-color: var(--c-green); }

  .mobile-drawer__list {
    list-style: none;
    padding: .4rem 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  .mobile-drawer__list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .mobile-drawer__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.6rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--c-white);
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: background 160ms ease, color 160ms ease, padding-left 200ms ease;
  }
  .mobile-drawer__list a::after {
    content: "›";
    font-size: 1.6rem;
    font-weight: 400;
    color: rgba(156, 243, 58, 0.55);
    transition: transform 200ms ease, color 200ms ease;
  }
  .mobile-drawer__list a:hover,
  .mobile-drawer__list a:active {
    background: rgba(156, 243, 58, 0.08);
    color: var(--c-green);
    padding-left: 1.9rem;
  }
  .mobile-drawer__list a:hover::after { color: var(--c-green); transform: translateX(4px); }
  .mobile-drawer__list a[aria-current="page"] { color: var(--c-green); }
  .mobile-drawer__list a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    width: 4px;
    height: 32px;
    background: var(--c-green);
    border-radius: 0 4px 4px 0;
  }
  .mobile-drawer__list li { position: relative; }

  .mobile-drawer__cta {
    margin: 1.4rem 1.4rem 1.6rem;
    width: calc(100% - 2.8rem);
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    padding: 1rem 1.6rem;
    min-height: 54px;
    background: var(--c-green);
    color: var(--c-blue-900);
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: transform 160ms ease, box-shadow 160ms ease;
  }
  .mobile-drawer__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(156, 243, 58, 0.35);
  }

  .mobile-drawer__foot {
    padding: 1rem 1.4rem 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--c-muted);
    font-size: .82rem;
    text-align: center;
  }
  .mobile-drawer__foot strong { color: var(--c-green); font-weight: 800; }
}

/* =====================================================
   Back-to-top button — appears on scroll
   ===================================================== */
.back-to-top {
  position: fixed;
  right: clamp(0.85rem, 2vw, 1.5rem);
  bottom: clamp(0.85rem, 2vw, 1.5rem);
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-blue-900);
  border: none;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 240ms ease,
    visibility 0s linear 240ms,
    transform 240ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
  box-shadow:
    0 6px 18px rgba(6, 18, 46, 0.35),
    0 0 0 4px rgba(156, 243, 58, 0.18);
}
.back-to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 240ms ease,
    visibility 0s linear 0s,
    transform 240ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}
.back-to-top:hover {
  background: #b7ff5c;
  transform: translateY(-2px);
  box-shadow:
    0 10px 24px rgba(6, 18, 46, 0.45),
    0 0 0 5px rgba(156, 243, 58, 0.28);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 3px;
}
.back-to-top svg {
  width: 22px;
  height: 22px;
  display: block;
}
@media (max-width: 480px) {
  .back-to-top { width: 44px; height: 44px; }
  .back-to-top svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 120ms linear, visibility 0s linear;
    transform: none !important;
  }
}

/* =====================================================
   Mobile refinements (< 768px) — affina solo mobile, desktop intatto
   ===================================================== */
@media (max-width: 767px) {
  /* Pulsante scuro 'Scopri tutto il programma' (anniversario__foot) — meno invadente */
  .anniversario__foot .btn--xl {
    padding: .75rem 1.3rem;
    font-size: .92rem;
    letter-spacing: .04em;
  }
  .anniversario__foot .btn--xl .btn__icon {
    width: 18px;
    height: 18px;
  }

  /* Pulsante 'Apri in Google Maps' — tap target più ampio e leggibile */
  .anniversario__where {
    padding: 1rem 1.4rem;
    font-size: 1rem;
    gap: .65rem;
    width: 100%;
    justify-content: center;
  }
  .anniversario__where svg {
    width: 20px;
    height: 20px;
  }

  /* Stack verticale del footer base + clearance sotto la riga FIPAV
     così il back-to-top button (fixed bottom-right) non copre il link */
  .site-footer__base {
    padding-bottom: calc(1.5rem + 56px); /* room per back-to-top button (44px + margin) */
  }
  .site-footer__base-row {
    flex-direction: column;
    align-items: flex-start;
    gap: .85rem;
    text-align: left;
  }
  .site-footer__fipav {
    align-self: flex-start;
  }
}
