/*
 * Gonfia la Rete — foglio di stile del tema `gonfia4`.
 *
 * Derivato da `/projects/gonfialarete/mockup.html`, che resta la fonte di verità per
 * palette, tipografia, fasce dell'header e componenti. Le classi non presenti nel mockup
 * (occhiello, paginazione, ricerca, 404, cookie banner, embed video, pagine autore/tag)
 * sono il "delta" della spec §4.1 e riusano gli stessi token, senza introdurre grafica nuova.
 *
 * Sommario
 *   1. Token
 *   2. Reset e base
 *   3. Utility
 *   4. Slot pubblicitari
 *   5. Header — fascia 1: topbar
 *   6. Header — fascia 2: masthead
 *   7. Header — fascia 3: navbar
 *   8. Layout
 *   9. Card, hero e badge
 *  10. Testata di sezione
 *  11. Colonna aside
 *  12. Footer
 *  13. Pagina articolo
 *  14. Paginazione
 *  15. Pagine di archivio (sezione, autore, tag)
 *  16. Ricerca e 404
 *  17. Cookie banner
 *  18. Responsive
 */

/* ==========================================================================
   1. Token
   ========================================================================== */

:root {
  /* Palette derivata dal logo. */
  --navy: #1f2c3e;          /* ink del logo — struttura scura */
  --navy-2: #2c3e57;        /* navy schiarito per hover/gradienti */
  --navy-deep: #162232;     /* fasce scure */
  --rosso: #ff2f4e;         /* pallino del logo — SOLO urgenza (live/gol/breaking) */
  --rosso-scuro: #d81f3c;

  /* Azzurro istituzionale Napoli — colore primario. */
  --azzurro: #12a0d7;
  --azzurro-2: #38b6e6;     /* hover/gradienti */
  --azzurro-scuro: #0a76a2;   /* testo e fondi con testo bianco: WCAG AA (>=4.5:1) */
  --azzurro-deep: #0a5f86;  /* fasce e gradienti profondi */

  /* Neutri. */
  --ink: #1f2c3e;
  --grigio: #5a6573;
  --linea: #e6e9ee;
  --bg: #f4f8fb;            /* sfondo con lievissima nota azzurra */
  --card: #fff;

  --radius: 14px;
  --shadow: 0 2px 14px rgba(31, 44, 62, .08);

  --font-brand: 'Montserrat', impact, sans-serif;  /* logo, titoli, menu */
  --font-body: 'Inter', system-ui, -apple-system, roboto, helvetica, arial, sans-serif;
}

/* ==========================================================================
   2. Reset e base
   ========================================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-brand);
  letter-spacing: .2px;
}

/* ==========================================================================
   3. Utility
   ========================================================================== */

.wrap {
  margin: 0 auto;
  max-width: 1320px;
  padding: 0 20px;
}

/* Testo per i soli screen reader: usato dalle label dei form e dai landmark. */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  background: var(--azzurro);
  color: #fff;
  font-weight: 700;
  left: -9999px;
  padding: 10px 16px;
  position: absolute;
  z-index: 200;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Griglia dell'immagine segnaposto quando l'articolo non ha copertina. */
.ph {
  align-items: center;
  color: rgba(10, 95, 134, .3);
  display: grid;
  font-size: 40px;
  font-weight: 800;
  inset: 0;
  justify-items: center;
  position: absolute;
}

/* ==========================================================================
   4. Slot pubblicitari
   ========================================================================== */

.ad {
  align-items: center;
  background: repeating-linear-gradient(45deg, #eef1f6, #eef1f6 12px, #e7ebf2 12px, #e7ebf2 24px);
  border: 1px dashed #b9c3d2;
  border-radius: 10px;
  color: #7a8699;
  display: grid;
  font-size: 12px;
  font-weight: 600;
  justify-items: center;
  letter-spacing: .5px;
  text-align: center;
}

.ad small {
  color: #9aa6b6;
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.ad-billboard {
  height: 250px;
  margin: 14px auto;
}

.ad-leaderboard {
  height: 90px;
  margin: 24px auto;
}

.ad-mpu {
  height: 250px;
}

.ad-halfpage {
  height: 600px;
  position: sticky;
  top: 130px;
}

.ad-infeed {
  grid-column: 1 / -1;
  height: 120px;
}

.ad-inarticle {
  height: 250px;
  margin: 22px 0;
}

.ad-anchor {
  display: none;
  position: relative;
}

.anchor-x {
  background: var(--navy);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  height: 24px;
  line-height: 1;
  position: absolute;
  right: 6px;
  top: -12px;
  width: 24px;
  z-index: 1;
}

/* ==========================================================================
   5. Header — fascia 1: topbar
   ========================================================================== */

.topbar {
  background: var(--navy-deep);
  color: #c3cedd;
  font-size: 12.5px;
}

.topbar .wrap {
  align-items: center;
  display: flex;
  height: 34px;
  justify-content: space-between;
}

.topbar-live {
  align-items: center;
  color: #fff;
  display: flex;
  font-weight: 600;
  gap: 7px;
  min-width: 0;   /* senza questo il titolo lungo sfonda la fascia invece di troncarsi */
}

/* Il titolo dell'ultim'ora è di lunghezza arbitraria: resta su una riga e tronca. */
.topbar-live-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-social {
  font-size: 12px;
  white-space: nowrap;
}

.dot {
  animation: pulse 1.6s infinite;
  background: var(--rosso);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 47, 78, .6);
  height: 8px;
  width: 8px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 47, 78, .6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 47, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 47, 78, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .dot {
    animation: none;
  }
}

/* ==========================================================================
   6. Header — fascia 2: masthead
   ========================================================================== */

.masthead {
  background: #fff;
  border-bottom: 1px solid var(--linea);
}

.mast-inner {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto 1fr;
  padding: 18px 20px;
}

.mast-side {
  color: var(--grigio);
  font-size: 12.5px;
  font-weight: 600;
}

.mast-side.left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mast-side.left b {
  color: var(--azzurro-scuro);
  font-family: var(--font-brand);
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  white-space: nowrap;   /* "mercoledì 28 settembre 2026" non deve andare a capo */
}

.mast-side.right {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Il logo è ~10:1: vincolarlo in altezza E larghezza lascia al browser il rispetto
   del rapporto. Fissando solo l'altezza, su schermi stretti max-width lo schiacciava. */
.logo img {
  height: auto;
  max-height: 85px;   /* desktop — logo_long.png centrato nella fascia */
  max-width: 100%;
  width: auto;
}

.search {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--linea);
  border-radius: 30px;
  color: var(--grigio);
  display: flex;
  font-size: 13.5px;
  gap: 8px;
  padding: 9px 15px;
}

.search input {
  background: none;
  border: 0;
  font: inherit;
  outline: 0;
  width: 120px;
}

.search button {
  background: none;
  border: 0;
  color: var(--grigio);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.mast-cta {
  background: var(--azzurro-scuro);
  border-radius: 30px;
  color: #fff;
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 9px 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.mast-cta:hover {
  background: var(--azzurro-deep);
}

/* ==========================================================================
   7. Header — fascia 3: navbar
   ========================================================================== */

/* Gradiente navy → azzurro istituzionale: identità Napoli senza perdere leggibilità. */
.navbar {
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 45%, var(--azzurro-deep) 100%);
  box-shadow: 0 2px 10px rgba(31, 44, 62, .18);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar .wrap {
  align-items: center;
  display: flex;
  gap: 2px;
  height: 50px;
}

.navbar a {
  align-items: center;
  border-bottom: 3px solid transparent;
  color: #dbe6f1;
  display: flex;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  height: 50px;
  letter-spacing: .4px;
  padding: 0 16px;
  text-transform: uppercase;
}

.navbar a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.navbar a.on {
  border-bottom-color: var(--azzurro-2);
  color: #fff;
}

/* Il logo in miniatura compare nella navbar quando il masthead è scrollato via.
   Il filtro lo rende bianco sul gradiente scuro. */
.navbar .nav-mini-logo {
  display: none;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
  height: auto;
  margin-right: 8px;
  max-height: 22px;
  max-width: 45%;
  width: auto;
}

.nav-spacer {
  flex: 1;
}

.navbar .nav-social {
  color: #bcd4e8;
  font-size: 12px;
  padding-right: 4px;
}

/* Overflow "Altro ▾": raccoglie le sezioni che non entrano nella barra. */
.nav-more {
  position: relative;
}

.nav-more-toggle {
  align-items: center;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #dbe6f1;
  cursor: pointer;
  display: flex;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
  height: 50px;
  letter-spacing: .4px;
  padding: 0 16px;
  text-transform: uppercase;
}

.nav-more-toggle:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.nav-more-list {
  background: var(--navy);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 26px rgba(31, 44, 62, .28);
  display: none;
  left: 0;
  list-style: none;
  min-width: 210px;
  position: absolute;
  top: 50px;
  z-index: 60;
}

.nav-more.is-open .nav-more-list {
  display: block;
}

.nav-more-list a {
  border-bottom: 0;
  height: auto;
  padding: 12px 16px;
}

/* Le voci collassabili stanno sia in barra sia nella tendina: sopra i 1100px si vedono
   solo in barra, sotto solo nella tendina. Un solo elemento visibile per sezione. */
.nav-more-list .is-collapsed-only {
  display: none;
}

/* ==========================================================================
   8. Layout
   ========================================================================== */

.grid {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 336px;
  margin: 18px auto 26px;
}

.lead {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.7fr 1fr;
  margin-bottom: 24px;
}

.sidecol {
  display: grid;
  gap: 18px;
}

.cols3 {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 8px;
}

/* ==========================================================================
   9. Card, hero e badge
   ========================================================================== */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}

.card:hover {
  box-shadow: 0 10px 26px rgba(10, 128, 179, .18);
  transform: translateY(-3px);
}

.card .pad {
  padding: 14px 16px 18px;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 9px;
}

.card.small {
  align-items: stretch;
  display: grid;
  grid-template-columns: 104px 1fr;
}

.card.small .thumb {
  aspect-ratio: auto;
  height: 100%;
}

.card.small .pad {
  padding: 11px 13px;
}

.card.small h3 {
  font-size: 15px;
}

.thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #d3e6f2, #b4d3e8);
  overflow: hidden;
  position: relative;
}

/* Varianti del fondo, come nel mockup: senza copertina una griglia di card tutte
   identiche sembra un errore di caricamento. Le sceglie il template dall'id. */
.thumb.t2 {
  background: linear-gradient(135deg, #e7ccd2, #dcaeb8);
}

.thumb.t3 {
  background: linear-gradient(135deg, #cfe0ef, #aac6de);
}

.thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Il badge di sezione è azzurro (spec §5): il colore identifica la testata, non la
   singola sezione. Il rosso di .badge.urgent resta riservato all'urgenza.
   Il testo bianco è piccolo e in grassetto, quindi serve la variante scura: sul
   #12A0D7 del mockup il contrasto è 2,98:1, sotto il minimo WCAG AA. */
.badge {
  background: var(--azzurro-scuro);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 700;
  left: 12px;
  letter-spacing: .4px;
  padding: 5px 11px;
  position: absolute;
  text-transform: uppercase;
  top: 12px;
}

/* Badge di sezione fuori dalla thumb (card piccole, liste testuali). */
.badge.inline {
  align-self: flex-start;   /* dentro l'hero, che è un flex column, altrimenti si stira */
  display: inline-block;
  left: auto;
  margin-bottom: 6px;
  position: static;
  top: auto;
}

.badge.urgent {
  background: var(--rosso-scuro);
}

/* Occhiello (campo 2 dei 10): sopra il titolo, in azzurro, mai al posto del titolo. */
.kicker {
  color: var(--azzurro-scuro);
  display: block;
  font-family: var(--font-brand);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .6px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.hero {
  background: linear-gradient(135deg, var(--navy), var(--azzurro-deep));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.hero .thumb {
  aspect-ratio: auto;
  height: 100%;
  inset: 0;
  mix-blend-mode: luminosity;
  opacity: .5;
  position: absolute;
}

.hero .body {
  background: linear-gradient(transparent, rgba(10, 50, 72, .94));
  color: #fff;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: flex-end;
  padding: 30px;
  position: absolute;
}

.hero h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.12;
  margin: 12px 0 10px;
}

.hero p {
  color: #d5e6f2;
  font-family: var(--font-body);
  font-size: 15px;
  max-width: 90%;
}

.hero .kicker {
  color: var(--azzurro-2);
}

.meta {
  align-items: center;
  color: var(--grigio);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: 12.5px;
  gap: 10px;
}

.hero .meta {
  color: #bcd4e8;
  margin-top: 14px;
}

.meta .author {
  align-items: center;
  color: inherit;
  display: flex;
  font-weight: 600;
  gap: 7px;
}

.meta .av {
  align-items: center;
  background: var(--azzurro-scuro);
  border-radius: 50%;
  color: #fff;
  display: grid;
  font-size: 11px;
  font-weight: 700;
  height: 24px;
  justify-items: center;
  width: 24px;
}

/* ==========================================================================
   10. Testata di sezione
   ========================================================================== */

.secthead {
  align-items: center;
  border-bottom: 2px solid var(--azzurro);
  display: flex;
  justify-content: space-between;
  margin: 0 0 14px;
  padding-bottom: 10px;
}

.secthead h2 {
  align-items: center;
  display: flex;
  font-size: 21px;
  font-weight: 800;
  gap: 9px;
  text-transform: uppercase;
}

.secthead h2 i {
  background: var(--azzurro);
  border-radius: 3px;
  display: inline-block;
  height: 20px;
  width: 5px;
}

.secthead a {
  color: var(--azzurro-scuro);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================================================
   11. Colonna aside
   ========================================================================== */

.box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.box-title {
  align-items: center;
  background: var(--azzurro-scuro);
  color: #fff;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  padding: 12px 16px;
  text-transform: uppercase;
}

/* "Più letti" resta rosso: è un modulo caldo/urgenza. */
.box.hot .box-title {
  background: var(--rosso-scuro);
}

.rank {
  list-style: none;
}

.rank li {
  align-items: center;
  border-bottom: 1px solid var(--linea);
  display: flex;
  gap: 12px;
  padding: 13px 16px;
}

.rank li:last-child {
  border: 0;
}

.rank .n {
  color: var(--azzurro);
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  width: 24px;
}

.box.hot .rank .n {
  color: var(--rosso);
}

.rank p {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.rank span {
  color: var(--grigio);
  font-size: 11.5px;
}

.teams {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px 16px;
}

.teams a {
  background: var(--bg);
  border: 1px solid var(--linea);
  border-radius: 20px;
  color: var(--azzurro-scuro);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
}

.teams a:hover {
  background: var(--azzurro);
  border-color: var(--azzurro);
  color: #fff;
}

.news-ad {
  background: linear-gradient(135deg, var(--azzurro), var(--azzurro-deep));
  border-radius: var(--radius);
  color: #fff;
  padding: 22px;
  text-align: center;
}

.news-ad strong {
  display: block;
  font-family: var(--font-brand);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}

.news-ad small {
  font-size: 12.5px;
  opacity: .95;
}

.news-ad .btn {
  background: #fff;
  border: 0;
  border-radius: 24px;
  color: var(--azzurro-scuro);
  cursor: pointer;
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 14px;
  padding: 10px 20px;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

footer {
  background: var(--navy-deep);
  border-top: 4px solid var(--azzurro);
  color: #b6c4d6;
  font-size: 13.5px;
  margin-top: 30px;
  padding: 42px 0 22px;
}

footer .cols {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  display: grid;
  gap: 30px;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  padding-bottom: 28px;
}

footer .foot-title {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

footer ul {
  list-style: none;
}

footer li {
  padding: 5px 0;
}

footer a:hover {
  color: var(--azzurro-2);
}

/* Logo in bianco su fondo scuro. */
footer .foot-logo {
  filter: brightness(0) invert(1);
  height: auto;
  margin-bottom: 14px;
  max-height: 34px;
  max-width: 100%;
  width: auto;
}

footer .legal {
  color: #7e93af;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 12px;
  justify-content: space-between;
  padding-top: 18px;
}

/* ==========================================================================
   13. Pagina articolo
   ========================================================================== */

.crumbs {
  color: var(--grigio);
  display: flex;
  flex-wrap: wrap;
  font-size: 12.5px;
  gap: 7px;
  margin: 14px 0;
}

.crumbs a {
  color: var(--azzurro-scuro);
  font-weight: 600;
}

.art-grid {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr 336px;
  margin-bottom: 20px;
}

.post-wrap {
  max-width: 760px;
}

.art-cat {
  background: var(--azzurro-scuro);
  border-radius: 6px;
  color: #fff;
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 5px 12px;
  text-transform: uppercase;
}

.post h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  margin: 14px 0;
}

.post .standfirst {
  color: #3a4654;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 20px;
}

.byline {
  align-items: center;
  border-bottom: 1px solid var(--linea);
  border-top: 1px solid var(--linea);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 0;
}

.byline .who {
  align-items: center;
  display: flex;
  gap: 11px;
}

.byline .av {
  align-items: center;
  background: var(--azzurro-scuro);
  border-radius: 50%;
  color: #fff;
  display: grid;
  font-weight: 700;
  height: 42px;
  justify-items: center;
  width: 42px;
}

.byline .who b {
  font-size: 14.5px;
}

.byline .who .role {
  color: var(--grigio);
  font-size: 12.5px;
}

.byline time {
  color: var(--grigio);
  font-size: 12.5px;
}

.share {
  display: flex;
  gap: 8px;
}

.share a {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--linea);
  border-radius: 50%;
  color: var(--azzurro-scuro);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  height: 34px;
  justify-items: center;
  width: 34px;
}

.share a:hover {
  background: var(--azzurro);
  border-color: var(--azzurro);
  color: #fff;
}

.hero-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #d3e6f2, #b4d3e8);
  border-radius: var(--radius);
  margin: 20px 0 8px;
  overflow: hidden;
  position: relative;
}

.hero-img img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-img .ph {
  font-size: 54px;
}

.caption {
  color: var(--grigio);
  font-size: 12px;
  font-style: italic;
  margin-bottom: 22px;
}

/* Corpo dell'articolo: gli stili colpiscono l'HTML importato, che non ha classi. */
.post-body p {
  color: #28323f;
  font-size: 17px;
  line-height: 1.72;
  margin-bottom: 18px;
}

.post-body h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 26px 0 12px;
}

.post-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 22px 0 10px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 18px 22px;
}

.post-body li {
  font-size: 17px;
  line-height: 1.72;
}

.post-body a {
  color: var(--azzurro-scuro);
  font-weight: 600;
  text-decoration: underline;
}

.post-body img {
  border-radius: 10px;
  height: auto;
  margin: 18px 0;
}

.post-body blockquote {
  border-left: 4px solid var(--azzurro);
  color: var(--azzurro-deep);
  font-family: var(--font-brand);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  margin: 24px 0;
  padding: 6px 0 6px 20px;
}

.pullquote {
  border-left: 4px solid var(--azzurro);
  color: var(--azzurro-deep);
  font-family: var(--font-brand);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  margin: 24px 0;
  padding: 6px 0 6px 20px;
}

/* Embed video (sezione Video): rapporto 16:9 senza CLS. */
.embed {
  aspect-ratio: 16 / 9;
  background: var(--navy);
  border-radius: var(--radius);
  margin: 22px 0;
  overflow: hidden;
}

.embed iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0;
}

.tags a {
  background: var(--bg);
  border: 1px solid var(--linea);
  border-radius: 20px;
  color: var(--azzurro-scuro);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 13px;
}

.tags a:hover {
  background: var(--azzurro);
  border-color: var(--azzurro);
  color: #fff;
}

.author-box {
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  margin: 24px 0;
  padding: 20px;
}

.author-box .av {
  align-items: center;
  background: linear-gradient(135deg, var(--navy), var(--azzurro));
  border-radius: 50%;
  color: #fff;
  display: grid;
  flex-shrink: 0;
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 700;
  height: 60px;
  justify-items: center;
  width: 60px;
}

.author-box .av img {
  border-radius: 50%;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.author-box b {
  font-size: 16px;
}

.author-box p {
  color: var(--grigio);
  font-size: 13px;
  margin-top: 4px;
}

/* ==========================================================================
   14. Paginazione
   ========================================================================== */

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 26px 0 10px;
}

.pagination a,
.pagination span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 8px;
  color: var(--azzurro-scuro);
  display: flex;
  font-family: var(--font-brand);
  font-size: 13.5px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  padding: 0 12px;
}

.pagination a:hover {
  background: var(--azzurro);
  border-color: var(--azzurro);
  color: #fff;
}

.pagination .is-current {
  background: var(--azzurro);
  border-color: var(--azzurro);
  color: #fff;
}

/* Il grigio dei neutri passa AA; un grigio più chiaro sarebbe illeggibile. */
.pagination .is-disabled {
  color: var(--grigio);
}

.pagination .gap {
  background: none;
  border: 0;
  color: var(--grigio);
}

/* ==========================================================================
   15. Pagine di archivio (sezione, autore, tag)
   ========================================================================== */

.page-head {
  background: linear-gradient(135deg, var(--navy), var(--azzurro-deep));
  border-radius: var(--radius);
  color: #fff;
  margin: 18px 0 22px;
  padding: 26px 28px;
}

.page-head h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
}

.page-head p {
  color: #cfe3f0;
  font-size: 14.5px;
  margin-top: 8px;
  max-width: 70ch;
}

.page-head .eyebrow {
  color: var(--azzurro-2);
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-head .count {
  color: #bcd4e8;
  font-size: 12.5px;
  margin-top: 10px;
}

/* Testata della pagina autore: avatar + bio accanto al nome. */
.author-head {
  align-items: center;
  display: flex;
  gap: 20px;
}

.author-head .av {
  align-items: center;
  background: rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: #fff;
  display: grid;
  flex-shrink: 0;
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 800;
  height: 76px;
  justify-items: center;
  width: 76px;
}

.author-head .av img {
  border-radius: 50%;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Le pagine editoriali (chi siamo, privacy…) usano lo stesso foglio del corpo articolo. */
.static-page {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 26px;
  max-width: 860px;
  padding: 30px 34px;
}

.static-page h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* Messaggio di lista vuota (sezione senza articoli, ricerca senza risultati). */
.empty {
  background: #fff;
  border: 1px dashed var(--linea);
  border-radius: var(--radius);
  color: var(--grigio);
  padding: 30px;
  text-align: center;
}

/* ==========================================================================
   16. Ricerca e 404
   ========================================================================== */

.search-page .search-big {
  align-items: center;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 30px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px 20px;
}

.search-page .search-big input {
  background: none;
  border: 0;
  flex: 1;
  font: inherit;
  font-size: 16px;
  outline: 0;
}

.search-page .search-big button {
  background: var(--azzurro-scuro);
  border: 0;
  border-radius: 24px;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  text-transform: uppercase;
}

.error-page {
  padding: 60px 0;
  text-align: center;
}

.error-page .code {
  color: var(--azzurro);
  font-family: var(--font-brand);
  font-size: 92px;
  font-weight: 900;
  line-height: 1;
}

.error-page h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 10px 0 12px;
}

.error-page p {
  color: var(--grigio);
  margin: 0 auto 22px;
  max-width: 52ch;
}

.error-page .mast-cta {
  display: inline-block;
}

/* ==========================================================================
   17. Cookie banner
   ========================================================================== */

.cookie-banner {
  background: var(--navy-deep);
  bottom: 0;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .28);
  color: #cfdcea;
  display: none;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 90;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner .wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 16px;
  padding-top: 16px;
}

.cookie-banner p {
  font-size: 13px;
  max-width: 70ch;
}

.cookie-banner a {
  color: var(--azzurro-2);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions button {
  border: 0;
  border-radius: 24px;
  cursor: pointer;
  font-family: var(--font-brand);
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 18px;
  text-transform: uppercase;
}

.cookie-accept {
  background: var(--azzurro-scuro);
  color: #fff;
}

.cookie-reject {
  background: rgba(255, 255, 255, .12);
  color: #dbe6f1;
}

/* ==========================================================================
   18. Responsive
   ========================================================================== */

/* Sotto i 1100px le ultime voci del menu collassano nell'overflow "Altro". */
@media (max-width: 1100px) {
  .navbar .nav-collapsible {
    display: none;
  }

  .nav-more-list .is-collapsed-only {
    display: list-item;
  }
}

@media (max-width: 980px) {
  .grid,
  .art-grid {
    grid-template-columns: 1fr;
  }

  .lead {
    grid-template-columns: 1fr;
  }

  .cols3 {
    grid-template-columns: 1fr 1fr;
  }

  footer .cols {
    grid-template-columns: 1fr 1fr;
  }

  .ad-halfpage {
    height: 280px;
    position: static;
  }

  .mast-inner {
    gap: 12px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .mast-side.left {
    align-items: center;
  }

  .logo img {
    max-height: 66px;   /* tablet */
  }

  .static-page {
    padding: 24px 20px;
  }
}

@media (max-width: 900px) {
  .ad-billboard {
    height: 100px;
  }

  .ad-anchor {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    bottom: 0;
    display: grid;
    height: 60px;
    left: 0;
    margin: 0;
    position: fixed;
    right: 0;
    z-index: 80;
  }

  body {
    padding-bottom: 60px;
  }

  .navbar a:not(.on) {
    display: none;
  }

  .navbar .nav-mini-logo {
    display: block;
  }

  /* Il logo è ~10:1: a 22px di altezza occupa già 225px della barra, quindi le
     icone social lasciano il posto alla voce attiva e all'overflow. */
  .navbar .nav-social {
    display: none;
  }

  /* Sotto i 900px il menu si riduce alla voce attiva: tutte le sezioni restano
     raggiungibili dall'overflow "Altro", che quindi non va nascosto con le altre. */
  .navbar .nav-more-list a {
    display: block;
  }
}

@media (max-width: 700px) {
  /* Sulla fascia utility non c'è spazio per entrambe: vince l'ultim'ora. */
  .topbar-social {
    display: none;
  }
}

@media (max-width: 560px) {
  .cols3 {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: 24px;
  }

  .post h1 {
    font-size: 28px;
  }

  .logo img {
    max-height: 46px;   /* il logo è ~10:1, va contenuto in larghezza */
  }

  .navbar .nav-mini-logo {
    max-height: 16px;
  }

  .navbar a,
  .nav-more-toggle {
    padding: 0 12px;
  }

  .page-head {
    padding: 20px;
  }

  .author-head {
    flex-direction: column;
    text-align: center;
  }
}
