/* t4-news — pagina News (piano v3, P4): la notizia più recente in evidenza.
   Card a gradiente #192B88→#2448d8 con testo bianco, etichetta "Ultima" in
   Space Mono con il pallino azzurro che pulsa (fermo con "riduci movimento")
   e "Nuova" nei primi 7 giorni. Stesso trattamento sulla notizia principale
   della prima pagina (.t4gz) quando è la stessa. Le altre righe restano come
   sono (t4-sections.css). Classi aggiunte da t4-live.js (loadNews). */

/* ---------- etichette ---------- */
.t4nw-tags { align-items: center; display: inline-flex; flex-wrap: wrap; gap: 6px 8px; }
.t4nw-tag {
  align-items: center; border-radius: 999px; display: inline-flex; font-family: var(--t4-mono); font-size: clamp(10px, .75vw, 12px);
  font-style: normal; gap: 7px; letter-spacing: .1em; line-height: 1.3; padding: 4px 10px; text-transform: uppercase; white-space: nowrap;
}
.t4nw-tag--last { border: 1px solid rgba(134, 160, 255, .55); color: #fff; }
.t4nw-tag--new { background: var(--t4-sky); color: var(--t4-navy); }
.t4nw-tag .t4-dot { background: var(--t4-sky); position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .t4nw-tag .t4-dot::after { animation: t4nw-pulse 1.8s var(--t4-ease-out) infinite; background: var(--t4-sky); border-radius: 50%; content: ""; inset: 0; position: absolute; }
}
@keyframes t4nw-pulse { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(3.2); } }

/* ---------- elenco: la riga più recente ---------- */
.t4nw__item.is-latest {
  background: var(--t4-grad); border-bottom: 0; border-radius: clamp(12px, 1.2vw, 18px); box-shadow: 0 22px 50px rgba(25, 43, 136, .25);
  color: #fff; margin: clamp(10px, 1vw, 16px) 0; overflow: hidden;
}
.t4nw__item.is-latest .t4nw__row { padding-inline: clamp(14px, 2vw, 28px); }
.t4nw__item.is-latest .t4nw__row:hover { background: rgba(255, 255, 255, .06); }
.t4nw__item.is-latest .t4nw__main { gap: 8px; }
.t4nw__item.is-latest .t4nw__date span { opacity: .75; }
.t4nw__item.is-latest .t4nw__kind { color: var(--t4-sky); }
.t4nw__item.is-latest.is-alert .t4nw__kind { color: #ffc58f; }
.t4nw__item.is-latest .t4nw__kind em { opacity: .85; }
.t4nw__item.is-latest .t4nw__excerpt { opacity: .85; }
.t4nw__item.is-latest .t4nw__chev { border-color: rgba(255, 255, 255, .45); }
.t4nw__item.is-latest .t4nw__row:hover .t4nw__chev { border-color: #fff; color: #fff; }
.t4nw__item.is-latest.is-open .t4nw__chev { background: #fff; border-color: #fff; color: var(--t4-ink); }
.t4nw__item.is-latest .t4nw__body { padding-inline: clamp(14px, 2vw, 28px); }
@media (min-width: 900px) { .t4nw__item.is-latest .t4nw__body { padding-left: calc(9rem + clamp(14px, 2vw, 28px) - .5rem); } }
.t4nw__item.is-latest .t4nw__text p { color: #fff; }
.t4nw__item.is-latest .t4nw__copy { color: var(--t4-sky); }
.t4nw__item.is-latest .t4nw__copy:hover { color: #fff; }
.t4nw__item.is-latest .t4nw__done { color: #b9f5d0; }
.t4nw__item.is-latest .t4nw__row:focus-visible, .t4nw__item.is-latest .t4nw__copy:focus-visible { outline: 2px solid var(--t4-sky); outline-offset: -4px; }

/* ---------- prima pagina (.t4gz) quando la principale è anche la più recente ---------- */
.t4gz__lead--latest { background: var(--t4-grad); border-radius: .9rem; color: #fff; padding: clamp(12px, 1.2vw, 18px); }
.t4gz__lead--latest:hover { color: #fff; }
.t4gz__lead--latest .t4gz__kind { color: var(--t4-sky); }
.t4gz__lead--latest .t4gz__kind.is-alert { color: #ffc58f; }
.t4gz__lead--latest .t4gz__excerpt { opacity: .85; }
.t4gz__lead--latest .t4gz__more { color: #fff; }
.t4gz__lead--latest .t4gz__img { margin: 0; }
.t4gz__lead--latest .t4nw-tags { margin-bottom: -2px; }
.t4gz .t4gz__lead--latest:focus-visible { outline-color: var(--t4-blue); }
