/**
 * Sezione News — Archivio + Single, verbatim dal Figma "Wireframe News"
 * (nodes 1537:3 archivio, 1544:2 single). Token colore da global.css.
 *
 * @package ANMA3
 * @since   0.9.2
 */

.anma-news {
  /* Stesso incolonnamento del resto del sito: oltre i 1440 il margine
     cresce ai lati invece che il contenuto. Vedi le altre sezioni. */
  --edge: max(0px, (100% - 1440px) / 2);
  /* Accento della sezione News: verde, non l'arancio globale --c-orange.
     Token locale — --c-orange resta invariato in global.css (home, mc-journal, navbar). */
  --nw-accent: #80bd1b;
  --nw-bg-blue: #eaf4fb;
  /* Tag delle news — un colore per ciascuno dei 13 termini del vocabolario
     (Progetti/Anma/tag-news-anma-2026-08-20.md). Tutti verificati a contrasto
     >= 4,5:1 su testo bianco, la soglia AA per il testo piccolo dei chip. */
  --nw-tag-formazione-ecm: #1a5276;
  --nw-tag-normativa: #7d6608;
  --nw-tag-eventi: #1e8449;
  --nw-tag-congresso: #6c3483;
  --nw-tag-vita-associativa: #b03a2e;
  --nw-tag-covid-19: #7b241c;
  --nw-tag-anma-istituzioni: #34495e;
  --nw-tag-mc-journal: #a04000;
  --nw-tag-salute-e-rischi: #117a65;
  --nw-tag-professione: #21618c;
  --nw-tag-sorveglianza-sanitaria: #4a235a;
  --nw-tag-pubbliredazionale: #626567;
  --nw-tag-rassegna-bibliografica: #6e2c00;
  font-family: var(--f);
  background: #fff;
}
.anma-news * { box-sizing: border-box; }

/* ---------- primitives ---------- */

.nw-kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--nw-accent); display: block; /* Figma 1537:88, 1545:5 */
}

.nw-tag {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px; border-radius: 20px;
  font-size: 10px; font-weight: 600; color: #fff;
}
.nw-tag--m {
  height: 26px; padding: 0 12px; gap: 6px;
  font-size: 11px; border-radius: 20px;
}
.nw-tag__dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.nw-tag--m .nw-tag__dot { width: 7px; height: 7px; }
.nw-tag { background: var(--c-gray); } /* tag fuori vocabolario: neutro */
.nw-tag--neutro { background: var(--c-gray); }
.nw-tag--formazione-ecm { background: var(--nw-tag-formazione-ecm); }
.nw-tag--normativa { background: var(--nw-tag-normativa); }
.nw-tag--eventi { background: var(--nw-tag-eventi); }
.nw-tag--congresso { background: var(--nw-tag-congresso); }
.nw-tag--vita-associativa { background: var(--nw-tag-vita-associativa); }
.nw-tag--covid-19 { background: var(--nw-tag-covid-19); }
.nw-tag--anma-istituzioni { background: var(--nw-tag-anma-istituzioni); }
.nw-tag--mc-journal { background: var(--nw-tag-mc-journal); }
.nw-tag--salute-e-rischi { background: var(--nw-tag-salute-e-rischi); }
.nw-tag--professione { background: var(--nw-tag-professione); }
.nw-tag--sorveglianza-sanitaria { background: var(--nw-tag-sorveglianza-sanitaria); }
.nw-tag--pubbliredazionale { background: var(--nw-tag-pubbliredazionale); }
.nw-tag--rassegna-bibliografica { background: var(--nw-tag-rassegna-bibliografica); }

.nw-avatar {
  display: inline-block; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(46, 134, 193, 0.18); flex-shrink: 0;
}

.nw-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 400;
}
.nw-breadcrumb a { color: var(--c-secondary); text-decoration: none; }
.nw-breadcrumb a:hover { text-decoration: underline; }
.nw-breadcrumb__sep { color: var(--c-gray); }
.nw-breadcrumb__current { color: var(--c-dark); font-weight: 600; }

/* ---------- archivio: header ---------- */

.nw-header {
  background: var(--nw-bg-blue); padding: 56px 120px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.nw-header__titles {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.nw-header__title {
  margin: 0; font-family: var(--f); font-size: 48px; font-weight: 700;
  color: var(--c-dark); text-align: center; line-height: 1.15;
}
.nw-header__sub {
  margin: 0; max-width: 640px; font-size: 17px; font-weight: 400;
  color: var(--c-gray); text-align: center; line-height: 1.5;
}

/* ---------- archivio: filtri ---------- */

.nw-filters {
  background: #fff; padding: 40px 120px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.nw-filters__head {
  display: flex; justify-content: space-between; align-items: center;
}
.nw-filters__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--c-gray);
}
.nw-filters__count { font-size: 13px; font-weight: 400; color: var(--c-gray); }
.nw-filters__pills {
  /* Il Figma (1537:95) ha row-gap 0 perché prevedeva una riga sola di filtri.
     Con i 13 tag del vocabolario le pill vanno su due righe: senza row-gap si
     toccherebbero. */
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.nw-filter { border: 0; cursor: pointer; font-family: var(--f); text-decoration: none; }
.nw-filter--all {
  padding: 8px 16px; border-radius: 99px; background: var(--c-light-gray);
  color: var(--c-dark); font-size: 13px; font-weight: 600;
}
.nw-filter--all.is-active { background: var(--c-primary); color: #fff; }
.nw-filter.nw-tag { opacity: 1; } /* verbatim Figma: pill filtro a piena opacità */
.nw-filter.nw-tag:hover, .nw-filter.nw-tag.is-active { opacity: 1; }
.nw-filter.nw-tag.is-active { outline: 2px solid var(--c-dark); outline-offset: 1px; }
.nw-filter:hover { filter: brightness(1.1); }

/* ---------- archivio: griglia ---------- */

.nw-grid {
  background: #fff; padding: 24px 120px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.nw-grid__cards {
  display: flex; flex-wrap: wrap; gap: 40px 24px;
  width: 100%; max-width: 1200px;
}
.nw-card {
  width: calc((100% - 48px) / 3); min-width: 0; height: 340px;
  background: #fff; border: 1px solid var(--c-light-gray); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
}
.nw-card__img {
  display: block; height: 180px; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.nw-card__img--ph { background: var(--nw-bg-blue); }
.nw-card__body {
  flex: 1; padding: 18px 20px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.nw-card__top { display: flex; flex-direction: column; gap: 10px; }
.nw-card__tags { display: flex; align-items: center; gap: 6px; }
.nw-card__title {
  margin: 0; max-width: 344px; font-family: var(--f);
  font-size: 16px; font-weight: 700; line-height: 1.125; /* Figma 1537:126, 1537:143 */
}
.nw-card__title a { color: var(--c-dark); text-decoration: none; }
.nw-card__title a:hover { color: var(--c-primary); }
.nw-card__footer {
  display: flex; justify-content: space-between; align-items: center;
}
.nw-card__meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 400; color: var(--c-gray);
}
.nw-card__cta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--c-secondary);
  text-decoration: none;
}
.nw-card__cta strong { font-size: 13px; font-weight: 700; }
.nw-card__cta:hover { text-decoration: underline; }
.nw-card--related { height: 320px; }
.nw-card--related .nw-card__body { padding: 18px 20px; }

/* ---------- archivio: comparsa a blocchi di 9 ----------
   36 card per pagina, 9 visibili all'apertura, le altre a blocchi di 9 quando
   si arriva in fondo all'elenco (news.js); la paginazione solo a elenco
   finito. .is-a-blocchi la mette uno script subito dopo la griglia
   (news-archive.php): senza JavaScript si vede tutto. Il 10 di nth-child è il
   blocco di 9 più uno, scritto anche in news-archive.php. */
.nw-grid.is-a-blocchi .nw-card:nth-child(n+10):not(.is-mostrata) { display: none; }
.nw-grid.is-a-blocchi:not(.is-finita) .nw-pagination { display: none; }
@keyframes nw-entrata { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.nw-card.is-entrata { animation: nw-entrata .6s ease both; }
/* La sentinella sotto la griglia: entrando nello schermo fa partire il blocco
   dopo, e intanto gira (.is-attiva). */
.nw-grid__sentinella { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; }
.nw-grid__sentinella::before {
  content: ""; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--c-light-gray); border-top-color: var(--c-secondary);
  opacity: 0; transition: opacity .2s ease;
}
.nw-grid__sentinella.is-attiva::before { opacity: 1; animation: nw-rotella .8s linear infinite; }
@keyframes nw-rotella { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .nw-card.is-entrata { animation: none; }
  .nw-grid__sentinella.is-attiva::before { animation: none; }
}

/* ---------- archivio: paginazione ---------- */

.nw-pagination {
  display: flex; align-items: center; gap: 6px; padding-top: 24px;
}
.nw-page {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--c-light-gray);
  font-family: var(--f); font-size: 14px; font-weight: 600;
  color: var(--c-dark); text-decoration: none;
}
.nw-page:hover { border-color: var(--c-primary); }
.nw-page.is-active {
  background: var(--c-primary); border-color: var(--c-primary); color: #fff;
}
.nw-page--nav { font-weight: 700; }
.nw-page--dots { border: 0; color: var(--c-gray); font-weight: 700; }
.nw-page--dots:hover { border: 0; }

/* classi native WP paginate_links() */
.nw-pagination .page-numbers {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--c-light-gray);
  font-family: var(--f); font-size: 14px; font-weight: 600;
  color: var(--c-dark); text-decoration: none;
}
.nw-pagination a.page-numbers:hover { border-color: var(--c-primary); }
.nw-pagination .page-numbers.current {
  background: var(--c-primary); border-color: var(--c-primary); color: #fff;
}
.nw-pagination .page-numbers.dots { border: 0; color: var(--c-gray); font-weight: 700; }
.nw-pagination .page-numbers.prev,
.nw-pagination .page-numbers.next { font-weight: 700; }
.nw-pagination .nw-page--edge { cursor: default; } /* freccia di bordo non cliccabile (verbatim Figma) */
.nw-grid__empty {
  margin: 24px 0; font-size: 16px; color: var(--c-gray); text-align: center;
}

/* ---------- single: breadcrumb bar ---------- */

.nw-breadcrumb--bar {
  background: var(--c-bg-light); padding: 20px calc(var(--edge) + 120px);
}

/* ---------- single: contenuto ---------- */

.nw-single {
  display: flex; justify-content: center; gap: 40px;
  padding: 48px 120px 80px; background: #fff;
}
.nw-article {
  width: 760px; max-width: 100%; flex-shrink: 1;
  display: flex; flex-direction: column; gap: 14px;
}
.nw-article__tags { display: flex; align-items: center; gap: 8px; }
.nw-article__title {
  margin: 0; font-family: var(--f); font-size: 40px; font-weight: 800;
  color: var(--c-dark); line-height: 1.15;
}
.nw-article__meta {
  display: flex; align-items: center; gap: 16px; padding-bottom: 12px;
  font-size: 13px; font-weight: 400; color: var(--c-gray);
}
.nw-article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.nw-article__hero {
  height: 420px; border-radius: 12px; margin-bottom: 8px;
  background-size: cover; background-position: center;
}
.nw-article__p {
  margin: 0; font-size: 18px; font-weight: 400; line-height: 1.75;
  color: var(--c-dark);
}
.nw-article__h2 {
  margin: 0; font-family: var(--f); font-size: 28px; font-weight: 700;
  line-height: 1.3; color: var(--c-dark);
}
.nw-article__list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.nw-article__list li {
  position: relative; padding-left: 18px;
  font-size: 18px; font-weight: 400; line-height: 1.75; color: var(--c-dark);
}
.nw-article__list li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-dark);
}
.nw-article__link { margin: 0; }
.nw-article__link a {
  font-size: 18px; font-weight: 600; line-height: 1.75;
  color: var(--c-secondary); text-decoration: none;
}
.nw-article__link a:hover { text-decoration: underline; }

/* contenuto articolo da the_content() — stessi stili degli elementi nw-article__* */
.nw-article__content { display: flex; flex-direction: column; gap: 14px; }
.nw-article__content p {
  margin: 0; font-size: 18px; font-weight: 400; line-height: 1.75;
  color: var(--c-dark);
}
.nw-article__content h2 {
  margin: 0; font-family: var(--f); font-size: 28px; font-weight: 700;
  line-height: 1.3; color: var(--c-dark);
}
.nw-article__content h3 {
  margin: 0; font-family: var(--f); font-size: 22px; font-weight: 700;
  line-height: 1.3; color: var(--c-dark);
}
.nw-article__content ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 14px; /* Figma 1544:112: passo riga 46px su righe da 32px */
}
.nw-article__content ul li {
  position: relative; padding-left: 18px;
  font-size: 18px; font-weight: 400; line-height: 1.75; color: var(--c-dark);
}
.nw-article__content ul li::before {
  content: ""; position: absolute; left: 0; top: 0; /* Figma 1544:112: items-start */
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-dark);
}
.nw-article__content ol {
  margin: 0; padding-left: 22px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 18px; line-height: 1.75; color: var(--c-dark);
}
.nw-article__content a {
  font-weight: 600; color: var(--c-secondary); text-decoration: none;
}
.nw-article__content a:hover { text-decoration: underline; }
.nw-article__content img { max-width: 100%; height: auto; border-radius: 12px; }
.nw-article__content blockquote {
  margin: 0; padding: 12px 20px; border-left: 3px solid var(--c-secondary);
  color: var(--c-gray); font-size: 18px; line-height: 1.6;
}

.nw-sidebar__thumb--ph { background: var(--nw-bg-blue); }

.nw-share {
  display: flex; align-items: center; gap: 14px; padding: 24px 0;
  border-top: 1px solid var(--c-light-gray);
  border-bottom: 1px solid var(--c-light-gray);
}
.nw-share__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--c-gray);
}
.nw-share__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--c-light-gray); border-radius: 6px;
  background: #fff; cursor: pointer; font-family: var(--f);
  font-size: 12px; font-weight: 600; color: var(--c-dark); text-decoration: none;
}
.nw-share__chip strong { font-size: 13px; font-weight: 700; color: var(--c-secondary); }
.nw-share__chip:hover { border-color: var(--c-secondary); }

/* ---------- single: sidebar ---------- */

.nw-sidebar {
  width: 400px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 24px;
}
.nw-sidebar__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--c-gray);
  display: block;
}

/* ---------- single: sidebar — carosello "ALTRE NEWS" (Figma 1544:145) ---------- */

.nw-carousel {
  background: var(--c-primary); border-radius: 10px; padding: 20px;
  min-height: 410px; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
}
.nw-carousel__head {
  display: flex; align-items: center; justify-content: space-between;
  height: 20px; font-size: 11px;
}
.nw-carousel__label {
  font-weight: 800; letter-spacing: 1.32px; color: var(--nw-accent);
}
.nw-carousel__count {
  font-weight: 700; letter-spacing: 0.88px; color: rgba(255, 255, 255, 0.7);
}
/* le slide si sovrappongono nella stessa cella: l'altezza non salta cambiando slide */
.nw-carousel__track { display: grid; }
.nw-carousel__slide {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; gap: 14px; text-decoration: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease;
}
.nw-carousel__slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.nw-carousel__photo {
  display: block; height: 200px; border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.08);
  --anma-fondo-copertina: rgba(255, 255, 255, 0.08);
  background-size: cover; background-position: center;
}
.nw-carousel__body {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.nw-carousel__title {
  font-size: 17px; font-weight: 700; line-height: 1.2; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nw-carousel__slide:hover .nw-carousel__title { text-decoration: underline; }
.nw-carousel__date { font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, 0.65); }
.nw-carousel__controls {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; height: 36px;
}
.nw-carousel__arrow {
  width: 36px; height: 36px; padding: 0; border-radius: 18px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f); font-size: 18px; font-weight: 700; line-height: 1;
  color: #fff; cursor: pointer;
}
.nw-carousel__arrow:hover { background: rgba(255, 255, 255, 0.2); }
.nw-carousel__dots { display: flex; align-items: center; justify-content: center; gap: 8px; }
.nw-carousel__dot {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px;
  background: rgba(255, 255, 255, 0.35); cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.nw-carousel__dot.is-active { width: 22px; background: var(--nw-accent); }

.nw-sidebar__latest {
  background: #fff; border: 1px solid var(--c-light-gray); border-radius: 12px;
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
}
.nw-sidebar__item {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
}
.nw-sidebar__thumb {
  width: 80px; height: 80px; border-radius: 6px; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.nw-sidebar__item-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.nw-sidebar__item-title {
  max-width: 260px; font-size: 13px; font-weight: 600; color: var(--c-dark);
  line-height: 1.15; /* Figma 1546:38: 2 righe in 30px */
}
.nw-sidebar__item:hover .nw-sidebar__item-title { color: var(--c-primary); }
.nw-sidebar__item-date { font-size: 11px; font-weight: 400; color: var(--c-gray); }
.nw-sidebar__divider { height: 1px; background: var(--c-light-gray); }

/* ---------- single: related ---------- */

.nw-related {
  background: var(--nw-bg-blue); padding: 80px 120px;
  display: flex; flex-direction: column; gap: 40px; align-items: center;
}
.nw-related__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  width: 100%; max-width: 1200px;
}
.nw-related__titles { display: flex; flex-direction: column; gap: 6px; }
.nw-related__title {
  margin: 0; font-family: var(--f); font-size: 32px; font-weight: 700;
  color: var(--c-dark);
}
.nw-related__more {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--c-secondary); text-decoration: none;
}
.nw-related__more:hover { text-decoration: underline; }
.nw-related__cards {
  display: flex; gap: 24px; width: 100%; max-width: 1200px;
}
.nw-related__cards .nw-card { flex: 1; min-width: 0; }

/* ---------- leva socio (condiviso) ---------- */

.nw-leva {
  background: var(--c-bg-light); padding: 80px 120px;
  display: flex; justify-content: center;
}
.nw-leva__banner {
  position: relative; width: 100%; max-width: 1200px; min-height: 280px;
  border-radius: 16px; overflow: hidden; padding: 56px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--c-primary);
}
.nw-leva__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.nw-leva__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 32, 46, 0.92) 0%, rgba(10, 32, 46, 0.65) 55%, rgba(10, 32, 46, 0.4) 100%);
}
.nw-leva__body {
  position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 560px;
}
.nw-leva__kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--nw-accent); } /* Figma 1538:6, 1545:69 */
.nw-leva__title { margin: 0; font-family: var(--f); font-size: 28px; font-weight: 700; color: #fff; }
.nw-leva__desc {
  margin: 0; font-size: 15px; font-weight: 400;
  color: rgba(255, 255, 255, 0.9); line-height: 1.5;
}
.nw-leva__cta {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 22px 36px; border-radius: 8px; background: var(--nw-accent); /* Figma 1538:9, 1545:72 */
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em; color: #fff;
  text-decoration: none; transition: filter .15s ease;
}
.nw-leva__cta strong { font-size: 17px; }
.nw-leva__cta:hover { filter: brightness(1.08); }

/* ---------- responsive ---------- */

@media (max-width: 1279px) {
  .nw-header, .nw-filters, .nw-grid, .nw-related, .nw-leva { padding-left: 40px; padding-right: 40px; }
  .nw-breadcrumb--bar { padding: 20px 40px; }
  .nw-single { padding: 48px 40px 80px; flex-wrap: wrap; }
  .nw-sidebar { width: 100%; max-width: 760px; }
}

@media (max-width: 1100px) {
  .nw-card { width: calc((100% - 24px) / 2); }
}

@media (max-width: 900px) {
  .nw-card { width: 100%; height: auto; min-height: 340px; }
  .nw-header__title { font-size: 36px; }
  .nw-article__title { font-size: 30px; }
  .nw-article__hero { height: 260px; }
  .nw-related__cards { flex-direction: column; }
  .nw-related__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nw-leva__banner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .nw-share { flex-wrap: wrap; }
}

/* ---- Fix da revisione indipendente 2026-08-14 ----
   I chip filtro sono il controllo primario della pagina ma erano
   alti 26px: sotto la soglia di tocco. */
@media (max-width:767px){
  .nw-filter{min-height:40px;display:inline-flex;align-items:center}
}


/* ---- Responsive mobile 2026-08-14 (round 5, corretto) ----
   Il banner "Diventa socio" teneva padding:56px anche a 320px: 112px dei
   280 disponibili erano padding, il testo scendeva a 3-4 righe e la CTA
   diventava una barra a tutta larghezza con l'etichetta spezzata.
   Il primo tentativo non ha avuto effetto: le regole mobile avevano una
   classe sola (0,1,0) contro i selettori di pagina a due classi (0,2,0),
   che vincevano. Qui il prefisso di pagina c'e' anche sul banner e sulla
   CTA — ed e' la CTA, con padding 22px 36px, la vera responsabile del
   bottone da 222px. */
@media (max-width:767px){
  .nw-leva{padding-left:20px;padding-right:20px}
  .nw-leva__banner{padding:32px 24px;min-height:0}
  .nw-leva__cta{max-width:100%;padding:18px 22px}
}
@media (max-width:359px){
  .nw-leva__banner{padding:24px 20px}
  .nw-leva__cta{padding:16px 18px;font-size:14px}
}

/* ---- Uniforma la larghezza dei filtri a quella delle card 2026-08-14 ----
   La fascia filtri (FILTRA PER TAG + pill + conteggio) si estendeva fino al
   padding di 120px, quindi piu' larga della griglia .nw-grid__cards, che e'
   capata a max-width:1200px e centrata. Qui la fascia viene portata nella
   stessa colonna da 1200px centrata: bordo sinistro allineato alla prima
   card, bordo destro all'ultima. L'header resta un hero centrato (invariato). */
.nw-filters { align-items: center; }
.nw-filters__head,
.nw-filters__pills { width: 100%; max-width: 1200px; }

/* ---- Icone del set al posto dei glifi (2026-10-20) ----
   anma_icon() stampa un SVG da 1em con currentColor: la misura la
   decide il font-size del contenitore. Dove il contenitore non era
   già flex, l'icona andrebbe sulla linea di base del testo invece
   che al suo centro. */
.nw-article__meta span svg,
.nw-share__chip strong svg{display:block}
