/* ══════════════════════════════════════════════
   OPEN MIND — news.css
   Solo per le pagine PHP di /news/ (elenco e articolo).
   Separato da style.css perché il server tiene i CSS in cache una settimana:
   questo file è caricato con ?v=… (VERSIONE in _inc/sito.php), da alzare a ogni modifica.
   ══════════════════════════════════════════════ */

.news-intro { color: var(--text-muted); font-size: 1.05rem; line-height: 1.78; max-width: 700px; }
.news-vuoto { margin-top: 3rem; padding: 2.4rem; background: var(--off-white); border-radius: var(--radius-card); color: var(--text-muted); }

/* ── Elenco ────────────────────────────────────── */
.news-griglia { display: grid; gap: 1.75rem; margin-top: 3rem; }
.section-sm .news-griglia { margin-top: 1.5rem; }
@media (min-width: 700px)  { .news-griglia { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-griglia { grid-template-columns: repeat(3, 1fr); } }

.news-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card); border: 1px solid rgba(0,75,202,.06);
  transition: box-shadow .35s, transform .35s;
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.news-card:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.news-card__img { display: block; aspect-ratio: 16 / 10; background: var(--navy-dark); overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__img img.news-card__logo { object-fit: contain; padding: 2.2rem; opacity: .85; }
.news-card__corpo { display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem 1.7rem 1.8rem; flex: 1; }
.news-card__data {
  font-family: 'Barlow Condensed', sans-serif; font-size: .8rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--pink);
}
.news-card__bozza {
  align-self: flex-start; padding: .15rem .6rem; border-radius: 50px;
  background: rgba(232,23,93,.1); color: var(--pink); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.news-card__titolo {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 800;
  line-height: 1.15; color: var(--navy); overflow-wrap: anywhere;
}
.news-card__testo { color: var(--text-muted); font-size: .95rem; line-height: 1.65; }
.news-card__vai { margin-top: auto; padding-top: .6rem; font-size: .85rem; font-weight: 700; color: var(--pink); }

.news-pagine { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; margin-top: 3.5rem; color: var(--text-muted); font-size: .9rem; }

/* ── Articolo ──────────────────────────────────── */
.news-articolo .label a:hover { text-decoration: underline; }
.news-articolo .section-title { overflow-wrap: anywhere; }
.news-data { color: var(--text-muted); font-size: .95rem; font-weight: 500; margin-bottom: 2.5rem; }
.news-copertina { margin: 0 0 2.75rem; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); background: var(--off-white); }
.news-copertina img { width: 100%; height: auto; }
.news-avviso-bozza {
  margin-bottom: 2rem; padding: 1rem 1.25rem; border-radius: 1rem;
  background: rgba(232,23,93,.07); border: 1px solid rgba(232,23,93,.25); font-size: .92rem; line-height: 1.6;
}
.news-avviso-bozza a { color: var(--pink); font-weight: 700; text-decoration: underline; }
.news-indietro { margin-top: 3.5rem; }

/* il testo scritto dal pannello: più scuro del muted del sito, perché è lettura lunga */
.news-testo { font-size: 1.08rem; line-height: 1.8; color: #1f2a4d; overflow-wrap: anywhere; }
.news-testo > * + * { margin-top: 1.3rem; }
.news-testo h2, .news-testo h3, .news-testo h4 { font-family: 'Barlow Condensed', sans-serif; color: var(--navy); line-height: 1.15; }
.news-testo h2 { font-size: 2rem; font-weight: 800; margin-top: 2.8rem; }
.news-testo h3 { font-size: 1.55rem; font-weight: 700; margin-top: 2.2rem; }
.news-testo h4 { font-size: 1.25rem; font-weight: 700; margin-top: 1.8rem; }
.news-testo a { color: var(--pink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.news-testo a:hover { color: var(--pink-hover); }
.news-testo strong { font-weight: 700; color: var(--navy-dark); }
.news-testo ul, .news-testo ol { padding-left: 1.4rem; }
.news-testo li + li { margin-top: .5rem; }
.news-testo li::marker { color: var(--pink); font-weight: 700; }
.news-testo img { max-width: 100%; height: auto; border-radius: 1rem; margin: .4rem 0; }
.news-testo hr { border: 0; border-top: 1px solid rgba(0,75,202,.14); margin: 2.5rem 0; }
.news-testo blockquote {
  border-left: 4px solid var(--pink); padding: .3rem 0 .3rem 1.4rem;
  font-size: 1.2rem; line-height: 1.6; color: var(--navy); font-style: italic;
}
.news-testo .callout { background: var(--off-white); border-radius: 1rem; padding: 1.3rem 1.5rem; border-left: 4px solid var(--navy); }
.news-testo blockquote p + p, .news-testo .callout p + p { margin-top: .7rem; }

@media (max-width: 767px) {
  .news-testo { font-size: 1.02rem; }
  .news-testo h2 { font-size: 1.7rem; }
  .news-data { margin-bottom: 1.8rem; }
}
