:root {
  --sfondo: #0b1220;
  --superficie: #121a2c;
  --superficie-2: #182338;
  --testo: #e8eef7;
  --bordo: #2a3a55;
  --sp: #2F7D5E;
  --afc: #3A6A9E;
  --sdp: #B8672E;
  --news: #9B3A47;
  --guida: #6F4C93;
  --max: 1080px;
  --raggio: 14px;
  --ombra: 0 10px 30px rgba(0,0,0,.28);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
}
:root { --testo-muto: #a7b4c9; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% -10%, #1a2740 0%, var(--sfondo) 55%);
  color: var(--testo);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #8ec5ff; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; outline: none; }
.skip {
  position: absolute; left: -9999px; top: auto;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: #fff; color: #000; padding: .5rem .75rem; }
.involucro { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.barra {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.88);
  border-bottom: 1px solid var(--bordo);
}
.barra-interno {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0; flex-wrap: wrap;
}
.marchio { display: flex; align-items: center; gap: .75rem; color: var(--testo); text-decoration: none; }
.marchio img {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--guida); background: #1a1030;
}
.marchio strong { display: block; font-size: 1rem; line-height: 1.2; }
.marchio span { display: block; font-size: .8rem; color: var(--testo-muto); }
nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .35rem .75rem;
}
nav a {
  color: var(--testo); padding: .35rem .55rem; border-radius: 999px;
  border: 1px solid transparent;
}
nav a[aria-current="page"], nav a:hover {
  border-color: var(--bordo); background: var(--superficie);
  text-decoration: none;
}
.eroe {
  padding: 2.4rem 0 1.4rem;
  display: grid; gap: 1.25rem;
}
@media (min-width: 800px) {
  .eroe { grid-template-columns: 1.4fr .9fr; align-items: center; }
}
.eroe h1 { margin: 0 0 .6rem; font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; }
.eroe p { margin: 0 0 1rem; color: var(--testo-muto); font-size: 1.05rem; }
.pulsanti { display: flex; flex-wrap: wrap; gap: .75rem; }
.pulsante {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .75rem 1.1rem; border-radius: 999px;
  font-weight: 700; border: 1px solid transparent; text-decoration: none;
}
.pulsante-principale { background: var(--guida); color: #fff; }
.pulsante-principale:hover { filter: brightness(1.08); text-decoration: none; }
.pulsante-secondario { background: transparent; color: var(--testo); border-color: var(--bordo); }
.card-logo {
  background: var(--superficie); border: 1px solid var(--bordo);
  border-radius: var(--raggio); padding: 1.25rem; box-shadow: var(--ombra);
  display: grid; place-items: center;
}
.card-logo img { width: min(220px, 70%); border-radius: 50%; }
sezione, section { display: block; }
.sezione { padding: 1.6rem 0 2rem; }
.sezione h2 { margin: 0 0 1rem; font-size: 1.45rem; }
.griglia {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.scheda {
  background: var(--superficie); border: 1px solid var(--bordo);
  border-radius: var(--raggio); padding: 1rem; box-shadow: var(--ombra);
}
.scheda h3 { margin: .2rem 0 .5rem; font-size: 1.1rem; }
.scheda p { margin: 0; color: var(--testo-muto); }
.etichetta {
  display: inline-block; font-size: .72rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .2rem .5rem; border-radius: 999px; color: #fff;
}
.etichetta-sp { background: var(--sp); }
.etichetta-afc { background: var(--afc); }
.etichetta-sdp { background: var(--sdp); }
.etichetta-news { background: var(--news); }
.etichetta-fatto { background: var(--sp); }
.etichetta-probabile { background: var(--sdp); }
.etichetta-opinione { background: var(--afc); }
.elenco-video {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.video-card {
  background: var(--superficie-2); border: 1px solid var(--bordo);
  border-radius: var(--raggio); overflow: hidden; display: flex; flex-direction: column;
}
.video-card a { color: inherit; text-decoration: none; }
.video-card a:hover h3 { text-decoration: underline; }
.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.video-card .corpo { padding: .85rem 1rem 1rem; }
.video-card h3 { margin: 0 0 .35rem; font-size: 1rem; }
.video-card time, .video-card .meta { color: var(--testo-muto); font-size: .85rem; }
.avviso {
  background: rgba(155,58,71,.15); border: 1px solid rgba(155,58,71,.45);
  border-radius: var(--raggio); padding: 1rem; color: var(--testo);
}
.nota {
  background: rgba(58,106,158,.14); border: 1px solid rgba(58,106,158,.4);
  border-radius: var(--raggio); padding: 1rem; color: var(--testo-muto);
}
.tabella { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--raggio); }
.tabella th, .tabella td {
  text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--bordo);
  vertical-align: top;
}
.tabella th { background: var(--superficie-2); }
.tabella tr:last-child td { border-bottom: 0; }
.tabella-wrap { overflow-x: auto; border: 1px solid var(--bordo); border-radius: var(--raggio); background: var(--superficie); }
.piede {
  margin-top: 2rem; border-top: 1px solid var(--bordo);
  padding: 1.5rem 0 2.5rem; color: var(--testo-muto); font-size: .92rem;
}
.piede nav ul { margin-top: .75rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 560px) {
  .marchio strong { font-size: .95rem; }
  .tabella th, .tabella td { padding: .7rem .75rem; font-size: .92rem; }
}
