/* ─── SHELL: ticker, nav, footer ─────────────────────
   Importa solo i componenti del guscio della pagina.
   Il contenuto interno usa Bootstrap 5 + style.css.
──────────────────────────────────────────────────── */

:root {
  --ink: #0E0C0B;
  --paper: #F6F3EC;
  --warm: #EAE5DA;
  --dark: #161210;
  --dark-2: #1F1C1A;
  --teal: #0BBDC2;
  --teal-d: #089BA0;
  --teal-glow: rgba(11, 189, 194, .12);
  --red: #C8351E;
  --gold: #B8963A;
  --muted: #857F77;
  --border: #DDD8CE;
  --border-dark: rgba(255, 255, 255, .07);
  --white: #FFFFFF;
  --f-d: 'Cabinet Grotesk', system-ui, sans-serif;
  --f-b: 'Satoshi', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
/* La larghezza del contenuto è quella di .container di Bootstrap (caricato
   su tutte le pagine): 1140px, 1320px da 1400px in su. Nessun wrapper del
   sito deve ridefinire max-width — è così che le pagine avevano divergito. */
#cookiemod{display:none}
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-b);
  background: var(--paper);
  color: var(--ink);
  margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE/Edge */
  user-select: none; /* Standard */

}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--teal); }

/* ── Tag pill ── */
.bn-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-d); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.bn-tag.teal { background: var(--teal-glow); color: var(--teal); }
.bn-tag.red  { background: rgba(200,53,30,.12); color: var(--red); }
.bn-tag.gold { background: rgba(184,150,58,.12); color: var(--gold); }

/* ══════════════════════════════════════════════════
   NAV
   Testata + menu + barra di ricerca: identici in tutto il sito.
   Non ci sono altri fogli che li ridefiniscono: le differenze fra
   pagina e pagina nascevano dal box model. Bootstrap (caricato solo su
   home e pagine interne) impone border-box a tutto; senza di lui
   padding e bordi si SOMMAVANO alle misure — nav larga 1272 invece di
   1240, tasto lente 49px invece di 46. Qui il box model è fissato per
   l'intera testata, così non dipende più da quali CSS carica la pagina.
══════════════════════════════════════════════════ */
.bn-header, .bn-header *, .bn-header *::before, .bn-header *::after,
.bn-search-bar, .bn-search-bar *, .bn-search-bar *::before, .bn-search-bar *::after,
.bn-mobile-menu, .bn-mobile-menu *, .bn-mobile-menu *::before, .bn-mobile-menu *::after {
  box-sizing: border-box;
}
/* Stessa ragione per l'interlinea: il reboot di Bootstrap mette
   line-height 1.5 sul body, altrove resta "normal" (~1.2) e ogni
   elemento senza valore esplicito cambia altezza da pagina a pagina —
   la barra del menu era alta 45px con Bootstrap e 41px senza.
   La fascia .pg-head è inclusa perché apre tutte le pagine di sezione. */
.bn-header, .bn-search-bar, .bn-mobile-menu, .pg-head { line-height: 1.5; }
/* i controlli non ereditano da soli l'interlinea (niente font-family qui:
   questi selettori batterebbero per specificità le classi __input/__close) */
.bn-header button, .bn-header input,
.bn-search-bar button, .bn-search-bar input,
.pg-head button, .pg-head input {
  line-height: inherit; margin: 0;
}

.bn-header {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  transition: box-shadow .3s;
}
.bn-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
/* larghezza e padding laterali: .container di Bootstrap — stessa misura
   del contenuto e della home, così testata e pagina sono allineate */
.bn-nav {
  padding-top: 10px; padding-bottom: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

/* Logo centrato — stile testata giornale */
.bn-nav__logo {
  flex: 1; text-align: center; text-decoration: none;
  display: flex; flex-direction: column; align-items: center;
}
.bn-nav__logo-img {
  display: block; margin: 0 auto;
  width: auto; height: clamp(38px, 8vw, 92px);
}
.bn-nav__tagline {
  font-family: var(--f-b); font-size: 7px;
  color: var(--muted); letter-spacing: 1.2px;
  text-transform: uppercase; margin-top: 3px;
  display: block;
}

/* Hamburger — solo mobile (sotto i 992px), su desktop c'è il menu esteso */
.bn-nav__hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px; flex-shrink: 0;
}
.bn-nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all .25s;
}
@media (min-width: 992px) {
  .bn-nav__hamburger { visibility: hidden; pointer-events: none; }
}

/* ── Menu esteso desktop (riga sotto il masthead) ── */
.bn-mainnav { border-top: 1px solid var(--border); display: none; }
/* .bn-mainnav ul ha .container: larghezza/padding-x da Bootstrap.
   margin-block va azzerato a mano (il default UA della ul tornerebbe 1em). */
/* overflow visible (non più scroll orizzontale): i gruppi "Media" e
   "Progetto Barinedita" aprono un pannello che verrebbe tagliato.
   Se le voci non entrano su una riga vanno a capo. */
.bn-mainnav ul.container {
  display: flex; flex-wrap: wrap; gap: 2px; list-style: none;
  margin-top: 0; margin-bottom: 0;
  overflow: visible;
}
.bn-mainnav > ul > li { position: relative; }
.bn-mainnav a,
.bn-mainnav__toggle {
  display: block; padding: 13px 14px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; position: relative; transition: color .2s;
}
.bn-mainnav > ul > li > a::after,
.bn-mainnav__toggle::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.bn-mainnav > ul > li > a:hover,
.bn-mainnav__toggle:hover { color: var(--ink); }
.bn-mainnav > ul > li > a:hover::after,
.bn-mainnav__group:hover .bn-mainnav__toggle::after,
.bn-mainnav__toggle[aria-expanded="true"]::after { transform: scaleX(1); }
@media (min-width: 992px) {
  .bn-mainnav { display: block; }
}

/* Fra 992 e 1200 le 11 voci non entrano in una riga con il padding pieno
   e il menu andrebbe a capo: qui si stringono quel tanto che basta. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .bn-mainnav > ul > li > a,
  .bn-mainnav__toggle { padding: 13px 8px; font-size: 11.5px; }
  .bn-mainnav > ul > li > a::after,
  .bn-mainnav__toggle::after { left: 8px; right: 8px; }
}

/* ── Gruppi con sottomenu (desktop) ── */
.bn-mainnav__toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; background: none; border: 0; cursor: pointer;
}
.bn-mainnav__toggle .bn-chev { transition: transform .2s; }
.bn-mainnav__group:hover .bn-mainnav__toggle .bn-chev,
.bn-mainnav__toggle[aria-expanded="true"] .bn-chev { transform: rotate(180deg); }

.bn-subnav {
  position: absolute; top: 100%; left: 6px; z-index: 200;
  min-width: 288px; padding: 8px; margin: 0; list-style: none;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(9,9,11,.14);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.bn-mainnav__group:hover .bn-subnav,
.bn-mainnav__group:focus-within .bn-subnav,
.bn-subnav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.bn-subnav li { position: static; }
.bn-subnav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 10px; text-transform: none;
  letter-spacing: 0; font-size: 14px; color: var(--ink); white-space: normal;
  transition: background .18s;
}
.bn-subnav a::after { content: none; }
.bn-subnav a:hover { background: var(--paper); }
.bn-subnav__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bn-subnav__label { font-family: var(--f-d); font-weight: 700; font-size: 14px; }
.bn-subnav__desc  { font-weight: 400; font-size: 12px; color: var(--muted); line-height: 1.35; }
.bn-subnav__ico {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: grid; place-items: center;
}
.bn-subnav__ico svg { width: 18px; height: 18px; }

/* Colori icona per voce: stessi accenti delle tiles in homepage. */
.bn-ti-gallery { background: rgba(200,53,30,.12);  color: var(--red); }
.bn-ti-video   { background: rgba(14,12,11,.08);   color: var(--ink); }
.bn-ti-corsi   { background: rgba(21,128,61,.14);  color: #15803D; }
.bn-ti-libri   { background: rgba(184,150,58,.16); color: #96751F; }
.bn-ti-pass    { background: rgba(37,99,235,.14);  color: #2563EB; }
.bn-ti-podcast { background: rgba(124,58,237,.14); color: #6D28D9; }
.bn-ti-map     { background: var(--teal-glow);     color: var(--teal-d); }

/* Su fondo scuro (menu mobile, fascia progetto negli articoli) servono
   toni chiari: le versioni light sopra sparirebbero. */
.bn-mobile-menu .bn-ti-gallery, .bn-projband .bn-ti-gallery { background: rgba(200,53,30,.22);  color: #FF8B72; }
.bn-mobile-menu .bn-ti-video,   .bn-projband .bn-ti-video   { background: rgba(255,255,255,.12); color: #FFFFFF; }
.bn-mobile-menu .bn-ti-corsi,   .bn-projband .bn-ti-corsi   { background: rgba(21,128,61,.24);  color: #4ADE80; }
.bn-mobile-menu .bn-ti-libri,   .bn-projband .bn-ti-libri   { background: rgba(202,138,4,.24);  color: #FACC15; }
.bn-mobile-menu .bn-ti-pass,    .bn-projband .bn-ti-pass    { background: rgba(37,99,235,.26);  color: #60A5FA; }
.bn-mobile-menu .bn-ti-podcast, .bn-projband .bn-ti-podcast { background: rgba(124,58,237,.28); color: #A78BFA; }
.bn-mobile-menu .bn-ti-map,     .bn-projband .bn-ti-map     { background: rgba(11,189,194,.22); color: #5EEAF0; }

/* ══════════════════════════════════════════════════
   FASCIA "IL PROGETTO BARINEDITA" (pagine articolo)
   Stessi link e stesse icone delle tiles in homepage: il markup lo
   genera bnProgettoBand() in Helpers.php, unica fonte dei dati.
══════════════════════════════════════════════════ */
.bn-projband { background: #09090B; color: #fff; padding: 44px 0; }
.bn-projband * { box-sizing: border-box; }
.bn-projband__hdr { text-align: center; margin-bottom: 24px; }
.bn-projband__kicker {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: #D62828; font-weight: 700;
}
.bn-projband__title {
  font-family: 'Newsreader', Georgia, serif; font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.02em;
  margin: 6px 0 0; color: #fff;
}
.bn-projband__grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.bn-projband__item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 14px; border-radius: 14px;
  background: #131316; border: 1px solid #26262B; color: #fff;
  transition: background .2s, border-color .2s, transform .2s;
}
.bn-projband__item:hover { background: #1F1F23; border-color: #D62828; transform: translateY(-3px); }
.bn-projband__ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
}
.bn-projband__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bn-projband__label {
  font-family: var(--f-d); font-size: 13px; font-weight: 900;
  letter-spacing: .06em; text-transform: uppercase;
}
.bn-projband__desc { font-size: 12.5px; line-height: 1.35; color: #A1A1AA; }
.bn-projband__arrow { color: #52525B; display: flex; transition: color .2s, transform .2s; }
.bn-projband__item:hover .bn-projband__arrow { color: #D62828; transform: translateX(3px); }

@media (max-width: 767.98px) {
  .bn-projband { padding: 32px 0; }
  .bn-projband__grid { grid-template-columns: 1fr; gap: 8px; }
  .bn-projband__desc { display: none; }
  .bn-projband__item { min-height: 56px; padding: 10px 12px; }
  .bn-projband__ico { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .bn-projband__item, .bn-projband__arrow, .bn-subnav { transition: none; }
  .bn-projband__item:hover { transform: none; }
}

/* Tasto cerca */
.bn-nav__search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 1.5px solid var(--border);
  color: var(--ink); cursor: pointer;
  transition: all .2s; flex-shrink: 0;
}
.bn-nav__search-btn:hover,
.bn-nav__search-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
/* Desktop: tasto cerca più grande e visibile (accento teal) */
@media (min-width: 992px) {
  .bn-nav__search-btn {
    width: 46px; height: 46px;
    background: var(--teal-glow); border-color: var(--teal); color: var(--teal);
  }
  .bn-nav__search-btn svg { width: 22px; height: 22px; }
  .bn-nav__search-btn:hover,
  .bn-nav__search-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }
}

/* ── Search bar ── */
.bn-search-bar {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 999;
  background: rgba(14,12,11,.97);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 0 solid var(--border-dark);
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.16,1,.3,1), border-color .35s;
}
.bn-search-bar.open {
  max-height: 72px;
  border-bottom: 1px solid rgba(11,189,194,.25);
}
.bn-search-bar__inner {
  max-width: 720px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 10px;
}
.bn-search-bar__form {
  flex: 1; display: flex; align-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px; overflow: hidden;
  transition: border-color .2s;
}
.bn-search-bar__form:focus-within { border-color: var(--teal); }
.bn-search-bar__input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--f-b); font-size: 14px; color: #fff;
  padding: 9px 18px;
}
.bn-search-bar__input::placeholder { color: rgba(255,255,255,.3); }
.bn-search-bar__submit {
  background: none; border: none; color: var(--teal);
  cursor: pointer; padding: 0 16px; display: flex; align-items: center;
  transition: color .2s;
}
.bn-search-bar__submit:hover { color: #fff; }
.bn-search-bar__close {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%; width: 34px; height: 34px; flex-shrink: 0;
  color: rgba(255,255,255,.45); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.bn-search-bar__close:hover { background: rgba(255,255,255,.14); color: #fff; }

/* Mobile nav drawer */
.bn-mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(14,12,11,.96);
  backdrop-filter: blur(24px);
  flex-direction: column; align-items: flex-start; justify-content: flex-start;
  text-align: left; gap: 10px;
  /* Voci allineate a sinistra e ancorate in alto: con i gruppi esplosi
     l'elenco è lungo e il pannello scorre. */
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 72px 24px 40px;
}
.bn-mobile-menu.open { display: flex; }
.bn-mobile-menu a {
  font-family: var(--f-d); font-size: clamp(1.25rem, 5.2vw, 1.6rem); font-weight: 700;
  color: rgba(255,255,255,.7); text-decoration: none;
  transition: color .2s;
}
.bn-mobile-menu > a { display: flex; align-items: center; min-height: 44px; width: 100%; }
.bn-mobile-menu a:hover { color: var(--teal); }

/* ── Gruppi (mobile): etichetta + sottovoci sempre visibili ──
   Niente fisarmonica, niente riquadro, niente icone: sono un elenco
   indentato sotto l'etichetta della sezione. */
.bn-mobile-group { width: 100%; }
.bn-mobile-cat {
  display: block; margin: 14px 0 6px;
  font-family: var(--f-d); font-size: 12px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.bn-mobile-sub { display: flex; flex-direction: column; }
.bn-mobile-sublink {
  display: flex; align-items: center;
  min-height: 44px; padding: 4px 0 4px 14px;
  border-left: 2px solid rgba(255,255,255,.14);
  font-size: 1.05rem !important; font-weight: 600;
  color: rgba(255,255,255,.72);
}
.bn-mobile-sublink:active { color: var(--teal); }
.bn-mobile-close {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--f-d); font-size: 24px; font-weight: 300;
  color: rgba(255,255,255,.4); background: none; border: none;
  cursor: pointer; transition: color .2s;
}
.bn-mobile-close:hover { color: var(--white); }

/* ══════════════════════════════════════════════════
   CONTENUTO (layout shell)
══════════════════════════════════════════════════ */
.bn-main { min-height: 60vh; }

/* Content pages get a light background wrapper */
.bn-main.page-inner {
  background: var(--paper);
  padding-top: 32px; padding-bottom: 64px;
}

/* ══════════════════════════════════════════════════
   PAGE HEAD condiviso — banda scura stile magazine
   Usato da: eventi, esperti/faq, gallery, video, podcast, contatti
══════════════════════════════════════════════════ */
.pg-head {
  box-sizing: border-box;
  background: var(--ink);
  border-bottom: 1px solid var(--border-dark);
  padding: 64px 0 48px;
}
/* larghezza e padding laterali li mette .container di Bootstrap:
   così la fascia si allinea al contenuto e alla home */
.pg-head__inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.pg-head__titles { flex: 1 1 auto; min-width: 0; }
.pg-head__eyebrow {
  font-family: var(--f-d); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px;
}
.pg-head__h1 {
  font-family: var(--f-d);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800; color: #fff;
  letter-spacing: -.03em; line-height: 1.05; margin: 0;
}
.pg-head__sub {
  font-family: var(--f-b); font-size: 14px; line-height: 1.5;
  color: rgba(255,255,255,.6); margin: 14px 0 0; max-width: 640px;
}
.pg-head__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* Barra di ricerca dentro l'header (stile magazine) */
.pg-head__search { margin-top: 28px; max-width: 440px; display: flex; align-items: center; gap: 8px; }
.pg-head__search input {
  flex: 1; font-family: var(--f-b); font-size: 14px; color: var(--white);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px; padding: 11px 20px; outline: none;
  transition: border-color .2s;
}
.pg-head__search input:focus { border-color: var(--teal); background: rgba(11,189,194,.06); }
.pg-head__search input::placeholder { color: rgba(255,255,255,.28); }
.pg-head__search button {
  font-family: var(--f-d); font-size: 12px; font-weight: 700;
  color: var(--ink); background: var(--teal);
  border: none; border-radius: 100px;
  padding: 11px 24px; cursor: pointer;
  white-space: nowrap; transition: all .2s;
}
.pg-head__search button:hover { background: var(--teal-d); transform: translateY(-1px); }
.pg-head__search a { font-family: var(--f-b); font-size: 13px; color: rgba(255,255,255,.5); white-space: nowrap; }
.pg-head__search a:hover { color: var(--teal); }
/* Bottone azione (es. iscriviti YouTube, fai una domanda) */
.pg-head__btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-d); font-size: 12px; font-weight: 700;
  color: var(--ink); background: var(--teal);
  border: none; border-radius: 100px; padding: 11px 22px;
  cursor: pointer; white-space: nowrap; transition: all .2s;
}
.pg-head__btn:hover { background: var(--teal-d); transform: translateY(-1px); }
.pg-head__btn svg { fill: currentColor; }
/* Full-bleed + flush sotto la nav quando dentro le content page */
.page-inner .pg-head {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -32px;
  margin-bottom: 40px;
}
@media (max-width: 767px) {
  .pg-head { padding: 40px 0 32px; }
}

/* ── Paginazione condensata condivisa (stile magazine) ── */
.pg-pagination {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: nowrap; gap: 4px; padding: 8px 0 16px;
}
.pg-pagination .dots {
  min-width: 20px; text-align: center; color: var(--muted);
  font-family: var(--f-d); font-size: 14px; border: none; background: none;
}
.pg-pagination a,
.pg-pagination span {
  box-sizing: content-box;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 30px; padding: 0 3px; border-radius: 7px;
  font-family: var(--f-d); font-size: 12px; font-weight: 600;
  text-decoration: none; transition: all .2s;
  border: 1px solid var(--border);
  color: var(--muted); background: var(--paper);
}
.pg-pagination a:hover { border-color: var(--teal); color: var(--teal); }
.pg-pagination span.active {
  background: var(--teal); border-color: var(--teal);
  color: var(--ink); font-weight: 700;
}
.pg-pagination .pg-status {
  display: none; min-width: 0; padding: 0 14px; border: none; background: none;
  font-family: var(--f-d); font-size: 14px; font-weight: 700; color: var(--ink);
}
@media (max-width: 575.98px) {
  .pg-pagination { gap: 8px; }
  .pg-pagination a:not(.pg-nav),
  .pg-pagination span.active,
  .pg-pagination .dots { display: none; }
  .pg-pagination .pg-status { display: inline-flex; align-items: center; }
  .pg-pagination .pg-nav { min-width: 44px; height: 44px; font-size: 18px; }
}

/* Page header inside content pages */
.bn-page-header {
  padding: 24px 0 20px;
  border-bottom: 2px solid var(--teal);
  margin-bottom: 28px;
}
.bn-page-header h1 {
  font-family: var(--f-d); font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800; color: var(--ink);
  letter-spacing: -.025em; line-height: 1.15;
}
.bn-page-header .bn-breadcrumb {
  font-family: var(--f-b); font-size: 12px;
  color: var(--muted); margin-top: 6px;
}
.bn-page-header .bn-breadcrumb a {
  color: var(--teal); text-decoration: none;
}
.bn-page-header .bn-breadcrumb a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════
   SECTION HEADINGS (inside content)
══════════════════════════════════════════════════ */
.bn-section-title {
  font-family: var(--f-d); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted);
  margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.bn-section-title a { color: var(--teal); text-decoration: none; float: right; font-size: 12px; }

/* ══════════════════════════════════════════════════
   NEWSLETTER — fascia a tutta larghezza sopra il footer.
   Presente su ogni pagina (Template::newsletterBand).
══════════════════════════════════════════════════ */
.bn-nlband {
  background: var(--ink);
  border-top: 1px solid var(--border-dark);
  padding: 64px 0;
}
.bn-nlband__inner {
  max-width: 620px;      /* il testo resta centrato, la fascia no */
  text-align: center;
}
.bn-nlband__kicker {
  display: inline-block; font-family: var(--f-d);
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.bn-nlband__title {
  font-family: var(--f-d);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 800;
  color: #fff; line-height: 1.05; letter-spacing: -.03em;
  margin: 0 0 12px;
}
.bn-nlband__sub {
  font-family: var(--f-b); font-size: 15px; line-height: 1.5;
  color: rgba(255,255,255,.5); margin: 0 0 26px;
}
.bn-nlband__form {
  display: flex; gap: 8px; max-width: 420px; margin: 0 auto;
}
.bn-nlband__label {   /* etichetta per screen reader */
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.bn-nlband__input {
  flex: 1; min-width: 0;
  font-family: var(--f-b); font-size: 14px; color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px; padding: 12px 20px; outline: none;
}
.bn-nlband__input::placeholder { color: rgba(255,255,255,.4); }
.bn-nlband__input:focus { border-color: var(--teal); }
.bn-nlband__submit {
  font-family: var(--f-d); font-size: 13px; font-weight: 700;
  color: var(--ink); background: var(--teal);
  border: none; border-radius: 100px; padding: 12px 24px;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s;
}
.bn-nlband__submit:hover { background: var(--teal-d); }
.bn-nlband__submit:disabled { opacity: .55; cursor: default; }
.bn-nlband__msg[hidden] { display: none; }
.bn-nlband__msg {
  font-family: var(--f-b); font-size: 13px; font-weight: 500;
  margin: 16px auto 0; max-width: 420px;
  color: rgba(255,255,255,.6);   /* stato neutro ("Invio in corso"): la fascia
                                    e' scura, senza questo eredita il nero */
}
.bn-nlband__msg--ok   { color: var(--teal); }
.bn-nlband__msg--warn { color: var(--gold); }
.bn-nlband__msg--err  { color: #E8624B; }
.bn-nlband__privacy {
  font-family: var(--f-b); font-size: 11px; line-height: 1.5;
  color: rgba(255,255,255,.3); margin: 18px 0 0;
}
.bn-nlband__privacy a { color: rgba(255,255,255,.55); text-decoration: underline; }

@media (max-width: 640px) {
  .bn-nlband { padding: 44px 0; }
  .bn-nlband__form { flex-direction: column; }
  .bn-nlband__submit { padding: 13px 24px; }
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.bn-footer {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: 60px 0 32px;
}
/* le tre fasce del footer hanno .container: stessa larghezza del contenuto */
.bn-footer-grid {
  display: grid; grid-template-columns: 260px 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}
.bn-footer-logo {
  display: inline-flex; align-items: center;
  margin-bottom: 14px; text-decoration: none;
}
.bn-footer-logo-img { height: 40px; width: auto; }
.bn-footer-tagline {
  font-family: var(--f-b); font-size: 13px;
  color: rgba(255,255,255,.3); line-height: 1.55; margin-bottom: 20px;
}
.bn-footer-social { display: flex; gap: 8px; }
.bn-footer-social a {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.32); text-decoration: none;
  transition: color .2s, border-color .2s, background-color .2s;
}
.bn-footer-social a svg { width: 15px; height: 15px; display: block; }
.bn-footer-social a:hover {
  border-color: var(--teal); color: var(--teal);
  background: var(--teal-glow);
}
.bn-footer-col-title {
  font-family: var(--f-d); font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.26); margin-bottom: 18px;
}
.bn-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.bn-footer-links a {
  font-family: var(--f-b); font-size: 14px;
  color: rgba(255,255,255,.42); text-decoration: none; transition: color .2s;
}
.bn-footer-links a:hover { color: var(--white); }
.bn-footer-bottom {
  margin-top: 26px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.bn-footer-copy { font-family: var(--f-b); font-size: 12px; color: rgba(255,255,255,.18); }
.bn-footer-legal { display: flex; gap: 16px; }
.bn-footer-legal a {
  font-family: var(--f-b); font-size: 12px;
  color: rgba(255,255,255,.2); text-decoration: none; transition: color .2s;
}
.bn-footer-legal a:hover { color: rgba(255,255,255,.5); }

/* Dati societari + credits */
.bn-footer-legalinfo {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.bn-footer-company {
  font-family: var(--f-b); font-size: 11px; line-height: 1.7;
  color: rgba(255,255,255,.22); margin: 0; max-width: 900px;
}
.bn-footer-credits { font-family: var(--f-b); font-size: 11px; color: rgba(255,255,255,.22); margin: 0; }
.bn-footer-credits a { color: rgba(255,255,255,.4); text-decoration: none; transition: color .2s; }
.bn-footer-credits a:hover { color: var(--teal); }

@media (max-width: 700px) {
  .bn-footer-bottom, .bn-footer-legalinfo { flex-direction: column; align-items: flex-start; }
  .bn-footer-legal { flex-wrap: wrap; gap: 12px; }
}

/* ══════════════════════════════════════════════════
   CONTENT / FORM PAGES  (.cp-*)
   Usato da: segnala-notizia, entra-redazione, scrivi-esperti, staff
══════════════════════════════════════════════════ */
.cp { padding: 44px 0 72px; }
.cp-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: start;
}
.cp-grid--single { grid-template-columns: 1fr; max-width: 820px; }

/* Testo / prosa */
.cp-prose { font-family: var(--f-b); font-size: 16px; line-height: 1.75; color: #35302B; }
.cp-prose p { margin: 0 0 18px; }
.cp-prose a { color: var(--teal-d); text-decoration: none; border-bottom: 1px solid rgba(8,155,160,.3); transition: border-color .2s; }
.cp-prose a:hover { border-color: var(--teal-d); }
.cp-prose strong { color: var(--ink); }

/* Titoletto di sezione */
.cp-sec {
  font-family: var(--f-d); font-weight: 800;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--ink); letter-spacing: -.02em;
  margin: 40px 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.cp-sec:first-child { margin-top: 0; }

/* Bottone teal inline (es. "Clicca qui") */
.cp-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-d); font-size: 13px; font-weight: 700;
  color: var(--ink) !important; background: var(--teal);
  border: none; border-radius: 100px; padding: 10px 20px;
  text-decoration: none !important; border-bottom: none !important;
  transition: all .2s; margin: 6px 0;
}
.cp-cta:hover { background: var(--teal-d); transform: translateY(-1px); }
.cp-cta--ghost {
  background: transparent; color: var(--ink) !important;
  border: 1px solid var(--border);
}
.cp-cta--ghost:hover { background: var(--ink); color: #fff !important; border-color: var(--ink); }

/* Donazioni (sostienici) */
.cp-donate { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 8px; }
.cp-donate__card {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 24px 26px; box-shadow: 0 1px 3px rgba(14,12,11,.04), 0 12px 32px rgba(14,12,11,.05);
}
.cp-donate__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--teal-d); }
.cp-donate__title { font-family: var(--f-d); font-size: 18px; font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.cp-donate__body { font-family: var(--f-b); font-size: 14px; line-height: 1.65; color: #35302B; }
.cp-donate__body p { margin: 0 0 10px; }
.cp-donate__body strong { color: var(--ink); }
.cp-iban {
  font-family: var(--f-d); font-size: 15px; font-weight: 700; letter-spacing: .5px;
  color: var(--ink); background: var(--paper); border: 1px dashed var(--border);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; word-break: break-all;
}
.cp-donate__note {
  font-family: var(--f-b); font-size: 14px; line-height: 1.6; color: #35302B;
  background: var(--warm); border-radius: 12px; padding: 16px 20px; margin: 24px 0 20px;
}
.cp-donate__note a { color: var(--teal-d); }
.cp-donate__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 700px) { .cp-donate { grid-template-columns: 1fr; } }

/* Card form */
.cp-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
  position: sticky; top: 24px;
  box-shadow: 0 1px 3px rgba(14,12,11,.04), 0 12px 32px rgba(14,12,11,.05);
}
.cp-form__title {
  font-family: var(--f-d); font-size: 20px; font-weight: 800;
  color: var(--ink); letter-spacing: -.02em; margin: 0 0 4px;
}
.cp-form__sub { font-family: var(--f-b); font-size: 13px; color: var(--muted); margin: 0 0 22px; }

.cp-field { margin-bottom: 16px; }
.cp-label {
  display: block; font-family: var(--f-d); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.cp-input, .cp-select, .cp-textarea {
  width: 100%; box-sizing: border-box;
  font-family: var(--f-b); font-size: 15px; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; outline: none;
  transition: border-color .2s, background .2s;
}
.cp-input:focus, .cp-select:focus, .cp-textarea:focus {
  border-color: var(--teal); background: var(--white);
}
.cp-input::placeholder, .cp-textarea::placeholder { color: rgba(133,127,119,.6); }
.cp-textarea { resize: vertical; min-height: 110px; }
.cp-select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23857F77' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}

/* Captcha */
.cp-captcha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-captcha img.cp-captcha__code { border: 1px solid var(--border); border-radius: 8px; height: 40px; }
.cp-captcha__reload {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--paper); cursor: pointer; color: var(--muted); transition: all .2s; flex-shrink: 0;
}
.cp-captcha__reload:hover { color: var(--teal-d); border-color: var(--teal); }
.cp-captcha .cp-input { flex: 1; min-width: 90px; }

/* Privacy + submit */
.cp-privacy {
  display: flex; gap: 9px; align-items: flex-start;
  font-family: var(--f-b); font-size: 12.5px; line-height: 1.5; color: var(--muted);
  margin: 18px 0 16px;
}
.cp-privacy input { margin-top: 2px; accent-color: var(--teal); flex-shrink: 0; }
.cp-privacy a { color: var(--teal-d); }
.cp-btn {
  width: 100%; font-family: var(--f-d); font-size: 14px; font-weight: 700;
  color: var(--ink); background: var(--teal); border: none; border-radius: 100px;
  padding: 13px; cursor: pointer; transition: all .2s;
}
.cp-btn:hover { background: var(--teal-d); transform: translateY(-1px); }

/* Messaggio successo */
.cp-success {
  text-align: center; padding: 40px 24px;
  font-family: var(--f-b); font-size: 16px; line-height: 1.6; color: var(--ink);
}
.cp-success svg { color: var(--teal); margin-bottom: 12px; }

/* Anti-spam honeypot */
.cp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Griglia staff */
.cp-staff { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 8px; }
.cp-staff--lead { grid-template-columns: repeat(6, 1fr); }
.cp-person {
  position: relative; display: block; border-radius: 12px; overflow: hidden;
  aspect-ratio: 3/4; text-decoration: none; background: var(--warm);
}
.cp-person img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.cp-person:hover img { transform: scale(1.05); }
.cp-person__name {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 12px 12px; font-family: var(--f-d); font-size: 13px; font-weight: 700;
  color: #fff; background: linear-gradient(to top, rgba(14,12,11,.9), transparent);
}
.cp-person--lead { aspect-ratio: 1/1; max-width: 240px; }

.cp-info {
  font-family: var(--f-b); font-size: 14px; line-height: 1.7; color: #35302B;
  background: var(--warm); border-radius: 12px; padding: 20px 22px; margin-bottom: 8px;
}
.cp-info a { color: var(--teal-d); }

/* Pagine legali (privacy / cookie policy) */
.cp-legal { max-width: 820px; }
.cp-legal .cp-sub {
  font-family: var(--f-d); font-weight: 800;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink); letter-spacing: -.01em;
  margin: 34px 0 12px;
}
.cp-legal .cp-sub2 {
  font-family: var(--f-d); font-weight: 700; font-size: 15px;
  color: var(--teal-d); letter-spacing: .01em;
  margin: 24px 0 8px; text-transform: none;
}
.cp-legal ul { margin: 12px 0 18px; padding-left: 20px; }
.cp-legal li { margin-bottom: 8px; }
.cp-legal ul ul { margin: 8px 0 4px; }
.cp-legal a { color: var(--teal-d); word-break: break-word; }
.cp-legal br + br { line-height: 2.2; }

.cp-legal, .cp-grid > * { min-width: 0; }
.cp-table-wrap { overflow-x: auto; max-width: 100%; margin: 18px 0 24px; -webkit-overflow-scrolling: touch; }
.cp-table {
  width: 100%; min-width: 520px; border-collapse: collapse;
  font-family: var(--f-b); font-size: 14px; line-height: 1.6;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
}
.cp-table td { padding: 12px 14px; border: 1px solid var(--border); vertical-align: top; }
.cp-table tr:first-child td {
  background: var(--warm); font-family: var(--f-d); font-size: 12px;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink);
}
.cp-legal__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

@media (max-width: 600px) {
  .cp-legal { font-size: 15px; }
  .cp-table { min-width: 420px; font-size: 13px; }
  .cp-table td { padding: 10px; }
}

/* Mappa embed */
.cp-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); line-height: 0; }
.cp-map iframe { display: block; width: 100%; }

/* Colonna laterale banner */
.cp-aside { position: sticky; top: 24px; }
.cp-aside__label {
  font-family: var(--f-d); font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px; text-align: center;
}
.cp-aside > *:not(.cp-aside__label) { margin: 0 auto; }
@media (max-width: 900px) { .cp-aside { position: static; } }

/* Albo lettori — griglia citazioni */
.cp-quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: start;
}
.cp-quote {
  position: relative; margin: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 34px 22px 20px;
  box-shadow: 0 1px 3px rgba(14,12,11,.04);
}
.cp-quote::before {
  content: "\201C"; position: absolute; top: 6px; left: 16px;
  font-family: Georgia, serif; font-size: 52px; line-height: 1; color: var(--teal);
}
.cp-quote__text {
  margin: 0; font-family: var(--f-b); font-size: 14px; line-height: 1.6;
  font-style: italic; color: #35302B;
}
.cp-quote__author {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
  font-family: var(--f-d); font-size: 14px; font-weight: 700; color: var(--ink); text-align: right;
}
.cp-quote__author::before { content: "\2014 "; color: var(--teal-d); }
@media (max-width: 900px) { .cp-quotes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cp-quotes { grid-template-columns: 1fr; } }

/* Lista esperti */
.cp-expert {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.cp-expert:first-child { padding-top: 0; }
.cp-expert__photo { flex-shrink: 0; }
.cp-expert__photo img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; display: block; }
.cp-expert__name { font-family: var(--f-d); font-size: 17px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.cp-expert__name a { color: var(--ink); text-decoration: none; transition: color .2s; }
.cp-expert__name a:hover { color: var(--teal-d); }
.cp-expert__cv { font-family: var(--f-b); font-size: 14px; line-height: 1.6; color: #55504A; }
.cp-expert__cv a { color: var(--teal-d); }

@media (max-width: 900px) {
  .cp-grid { grid-template-columns: 1fr; gap: 32px; }
  .cp-form { position: static; }
  .cp-staff, .cp-staff--lead { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .cp-staff, .cp-staff--lead { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bn-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .bn-nav { padding-top: 8px; padding-bottom: 8px; }
  .bn-footer { padding: 48px 0 28px; }
  .bn-footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
