@font-face { font-family: "Plakat"; src: url("../fonts/PlakatGrotesk-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/Satoshi-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --nero: #111111;
  --bianco: #ffffff;
  --rosso: #F3403B;
  --rosa: #F775A5;
  --giallo: #F3D148;
  --ambra: #E99700;
  --verde: #00C48D;
  --azzurro: #72C7F6;
  --viola: #695BD3;
  --display: "Plakat", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --text: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
body { font-family: var(--text); font-weight: 500; font-size: 18px; line-height: 1.55; color: var(--nero); background: var(--bianco); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .95; }
h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.01em; margin-bottom: 28px; }
h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.01em; }
.eyebrow { font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; margin-bottom: 16px; display: block; }
.lead { font-size: clamp(19px, 1.8vw, 22px); max-width: 640px; }
mark { background: var(--rosso); color: var(--nero); padding: 0 .15em; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: var(--nero); color: var(--bianco); transform: translateY(-100%); transition: transform .35s ease; }
.nav.visible { transform: none; }
.nav .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.nav img { height: 22px; width: auto; }
.nav ul { margin-left: auto; display: flex; gap: 28px; list-style: none; font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.nav ul a { text-decoration: none; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--rosso); }

/* FASCE: ognuna alta uno schermo */
.band { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 56px; scroll-snap-align: start; }
.band > .wrap { width: 100%; }

/* HERO */
.hero { position: relative; background: var(--rosso); overflow: hidden; padding: 0; }

/* LINGUA */
.lang { display: flex; gap: 6px; font-weight: 900; font-size: 14px; letter-spacing: .04em; }
.lang a { text-decoration: none; opacity: .5; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.nav .lang { padding-left: 28px; border-left: 1px solid #444; }
.hero .lang { position: absolute; top: 24px; right: var(--gutter); color: var(--nero); }
.hero .logo { width: 100%; height: auto; }

/* Ingresso del logo: schermo nero, il logo si riaccende a scatti, poi torna il rosso */
.luce-intro .hero { animation: luce-sfondo 1.6s ease both; }
.luce-intro .hero .logo { animation: luce-logo 1.6s linear both; }
.luce-intro .hero .lang { animation: luce-lang 1.6s ease both; }
@keyframes luce-sfondo {
  0%, 62% { background: var(--nero); }
  100% { background: var(--rosso); }
}
@keyframes luce-logo {
  0%   { opacity: 0;   filter: invert(1) blur(6px); }
  12%  { opacity: .9;  filter: invert(1) blur(3px); }
  16%  { opacity: 0;   filter: invert(1) blur(3px); }
  28%  { opacity: 0;   filter: invert(1) blur(2px); }
  32%  { opacity: .6;  filter: invert(1) blur(2px); }
  36%  { opacity: .1;  filter: invert(1) blur(1px); }
  44%  { opacity: 1;   filter: invert(1) blur(1px); }
  48%  { opacity: .35; filter: invert(1) blur(0); }
  56%  { opacity: 1;   filter: invert(1) blur(0); }
  72%, 100% { opacity: 1; filter: invert(0) blur(0); }
}
@keyframes luce-lang {
  0%, 70% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .luce-intro .hero, .luce-intro .hero .logo, .luce-intro .hero .lang { animation: none; }
}

/* INTRO */
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
.intro h1 { font-size: clamp(44px, 7vw, 96px); text-transform: uppercase; letter-spacing: -0.02em; }
.intro p { font-size: clamp(19px, 1.8vw, 22px); }

/* QUOTE */
.quote { background: var(--nero); color: var(--bianco); }
.quote blockquote { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 64px); line-height: 1; max-width: 960px; }
.quote blockquote span { color: var(--giallo); }
.quote cite { display: block; margin-top: 28px; font-style: normal; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: #bdbdbd; }


/* PROBLEMA */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.stat { border-top: 3px solid var(--nero); padding-top: 20px; }
.stat .num { display: inline-block; font-family: var(--display); font-weight: 700; font-size: clamp(56px, 7vw, 88px); line-height: 1; padding: 6px 12px 2px; margin-bottom: 18px; }
.stat:nth-child(1) .num { background: var(--viola); color: var(--bianco); }
.stat:nth-child(2) .num { background: var(--rosa); }
.stat:nth-child(3) .num { background: var(--azzurro); }
.stat p strong { font-weight: 900; }

/* PROGETTO */
.progetto { background: var(--giallo); }
.progetto p + p { margin-top: 18px; }

/* AREE */
.aree-list { list-style: none; margin-top: 24px; border-top: 3px solid var(--nero); }
.area { display: grid; grid-template-columns: 220px 1fr 1.4fr; gap: 32px; padding: 13px 0; border-bottom: 1px solid #d6d6d6; align-items: start; }
.area .fase { display: flex; align-items: center; gap: 14px; }
.area .n { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 26px; }
.area h3 { font-size: 26px; }
.area .focus { font-weight: 900; text-transform: uppercase; letter-spacing: .03em; font-size: 14px; display: block; margin-bottom: 4px; }
.area .oggi { color: #555; }
#aree .lead { margin-bottom: 0; }
#aree.band { padding-top: 80px; padding-bottom: 32px; }
.area p { font-size: 16px; line-height: 1.45; }
.area h3 { font-size: 24px; }
.area:nth-child(1) .n { background: var(--rosso); }
.area:nth-child(2) .n { background: var(--rosa); }
.area:nth-child(3) .n { background: var(--giallo); }
.area:nth-child(4) .n { background: var(--verde); }
.area:nth-child(5) .n { background: var(--azzurro); }

/* TEAM */
.team { background: var(--nero); color: var(--bianco); }
.team .lead { color: #e6e6e6; }
.team-layout { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.member { position: relative; }
.member img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.member figcaption { position: absolute; left: 10px; bottom: 10px; font-weight: 900; font-size: 15px; line-height: 1.1; color: var(--bianco); text-shadow: 0 1px 8px rgba(0,0,0,.35); }

/* CONTATTI */
.contatti { background: var(--rosa); }
/* fascia finale che contiene anche il fondo pagina */
.con-footer { padding-bottom: 0; }
.con-footer > .wrap { flex: 1; display: grid; align-content: center; }
.team footer { border-top: 1px solid #2a2a2a; }
.contatti-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.contatti .mail { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 56px); text-decoration: none; border-bottom: 4px solid var(--nero); line-height: 1.1; word-break: break-all; }
.contatti .mail:hover { color: var(--bianco); border-color: var(--bianco); }
.contatti address { font-style: normal; font-size: 18px; }
.contatti address strong { font-weight: 900; display: block; }
.contatti .social { display: block; width: fit-content; margin-top: 28px; background: var(--nero); color: var(--bianco); padding: 10px 18px; font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.contatti .social:hover { background: var(--bianco); color: var(--nero); }

/* SPORT: nomi che scorrono */
.sport { background: var(--viola); padding: 0; overflow: hidden; }
.sport > .sport-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; align-content: stretch; }
.sport-ruota { position: relative; align-self: stretch; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.sport-traccia { position: absolute; left: 0; top: 0; animation: sport-su 26s linear infinite; }
.sport-traccia ul { list-style: none; }
.sport-traccia li { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 7.5vw, 112px); line-height: 1.02; text-transform: uppercase; color: rgba(17, 17, 17, .32); transition: color .25s; }
.sport-traccia li.attivo { color: var(--nero); }
.sport-testo { padding: 96px 0 56px; }
.sport-testo h2, .sport-testo .lead { color: var(--bianco); }
@keyframes sport-su { to { transform: translateY(-50%); } }
@keyframes sport-sx { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .sport-traccia { animation: none; } }
@media (min-width: 901px) and (max-height: 780px) {
  .sostieni .titolo-pagina { font-size: 56px; margin-bottom: 16px; }
  .sostieni .btn { margin-top: 20px; }
  .sostieni .sostieni-video { margin-top: 24px; width: min(100%, calc(44svh * 16 / 9)); }
  .sport-testo { padding: 80px 0 24px; }
  .sport-testo h2 { font-size: 56px; margin-bottom: 20px; }
  .sport-testo .lead { font-size: 18px; }
  .sport-testo .btn { margin-top: 24px; }
}

/* PULSANTE */
.btn { display: inline-block; width: fit-content; margin-top: 32px; background: var(--bianco); color: var(--nero); padding: 12px 20px; font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.btn:hover { background: var(--rosso); }

/* PAGINA TEAM */
.titolo-pagina { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.01em; margin-bottom: 28px; }
.organo-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.organo h2 { text-transform: uppercase; }
.persone { list-style: none; border-top: 1px solid var(--nero); }
.persone li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--nero); }
.persone .nome { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1; text-transform: uppercase; }
.persone .ruolo { font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; text-align: right; }
.organo.scuro { background: var(--nero); color: var(--bianco); }
.organo.scuro .lead { color: #e6e6e6; }
.organo.scuro .persone, .organo.scuro .persone li { border-color: #555; }
.squadra { background: var(--giallo); }

/* PAGINA SOSTIENI */
.sostieni { background: var(--rosso); }
/* titolo presente per motori di ricerca e lettori di schermo, ma non visibile */
.nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sostieni .lead { max-width: 760px; }
.sostieni-video[hidden] { display: none; }
.cinque-per-mille { background: var(--giallo); }
.cinque-per-mille .lead { max-width: 720px; }
.codice-fiscale { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 9vw, 128px); line-height: 1; letter-spacing: .01em; margin-top: 20px; }
.btn.copia { border: 0; cursor: pointer; font-family: inherit; background: var(--nero); color: var(--bianco); }
.btn.copia:hover { background: var(--bianco); color: var(--nero); }
.sostieni-video { display: block; width: min(100%, calc(48svh * 16 / 9)); aspect-ratio: 16 / 9; margin-top: 40px; background: var(--nero); object-fit: cover; }
.squadra .lead { margin-bottom: 32px; }

footer { background: var(--nero); color: #bdbdbd; padding: 28px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
footer img { height: 28px; width: auto; }

@media (max-width: 900px) {
  .nav .wrap { gap: 16px; }
  .nav ul { gap: 16px; font-size: 12px; }
  .nav .lang { padding-left: 16px; font-size: 12px; }
  .intro-grid, .contatti-grid { grid-template-columns: 1fr; }
  .stats { gap: 14px; margin-top: 40px; }
  .stat { font-size: 15px; line-height: 1.45; }
  .stat .num { font-size: clamp(30px, 8vw, 56px); padding: 4px 8px 1px; }
  .area { grid-template-columns: 1fr; gap: 12px; }
  .team-layout { grid-template-columns: 1fr; gap: 0; }
  .team-grid { margin-top: 28px; }
  .member figcaption { font-size: 11px; left: 6px; bottom: 6px; }
  .band { padding: 80px 0 40px; }
  .con-footer { padding-bottom: 0; }
  h2, .titolo-pagina { margin-bottom: 18px; }
  .organo-layout { grid-template-columns: 1fr; gap: 32px; }
  .persone li { padding: 14px 0; }
  .persone .nome { font-size: 24px; }
  .sport > .sport-layout { grid-template-columns: 1fr; gap: 0; align-content: center; }
  .sport-ruota { height: 76px; margin-top: 64px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
  .sport-traccia { display: flex; animation-name: sport-sx; animation-duration: 22s; }
  .sport-traccia ul { display: flex; }
  .sport-traccia li { font-size: 64px; padding-right: 28px; white-space: nowrap; }
  .sport-testo { padding: 20px 0 32px; }
  .area { padding: 12px 0; gap: 4px; }
  .area .oggi { display: none; }
  #aree .lead { display: none; }
  .area .focus { display: inline; margin-right: 6px; }
  .area .fase { gap: 10px; }
  .area h3 { font-size: 22px; }
  .area .n { width: 34px; height: 34px; font-size: 20px; }
  .area p { font-size: 15px; line-height: 1.45; }
  #aree.band { padding-top: 68px; padding-bottom: 16px; }
}
