/* KOLOB edizioni — notizie: schede (home e /notizie/) e pagina dell'articolo */

/* ─── SCHEDE ─── */
.notizie-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 48px 40px;
}
.notizia-scheda { display: flex; flex-direction: column; min-width: 0; }
.notizia-scheda__img {
  display: block; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 20px;
  background: var(--bg2); box-shadow: 0 0 0 1px var(--line);
}
.notizia-scheda__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.notizia-scheda:hover .notizia-scheda__img img { transform: scale(1.04); }
.notizia-scheda__data {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.notizia-scheda h3 {
  font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2;
  color: var(--text-bright); margin-bottom: 10px;
}
.notizia-scheda h3 a { transition: color .25s; }
.notizia-scheda h3 a:hover { color: var(--gold); }
.notizia-scheda p { font-family: var(--serif); font-size: 18px; color: var(--muted-light); line-height: 1.5; }
.notizia-scheda .notizia-scheda__data { font-size: 11px; color: var(--muted); }
.notizia-bozza { color: var(--gold); }
.notizie-tutte { margin-top: 48px; }
.notizie-pagina { padding-top: 160px; }
.notizie-feed { color: var(--gold); font-size: 13px; white-space: nowrap; margin-left: 6px; }
.nav a[aria-current="page"] { color: var(--text-bright); }

/* ─── ARTICOLO ─── */
/* Tutto l'articolo con le grazie, come la pagina di un libro */
.articolo { padding: 160px 0 100px; font-family: var(--serif); }
.articolo__container { width: min(720px, 90vw); margin: 0 auto; }
.articolo .section__label { font-family: var(--serif); font-size: 13px; }
.articolo .section__label a:hover { color: var(--text-bright); }
.articolo h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.1;
  color: var(--text-bright); margin-bottom: 18px;
}
.articolo__data {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.articolo__sommario {
  font-family: var(--serif); font-style: italic; font-size: 23px; line-height: 1.45;
  color: var(--muted-light); margin-top: 28px;
}
.articolo__figura { width: min(960px, 90vw); margin: 48px auto 0; }
.articolo__figura img { width: 100%; height: auto; max-height: 80vh; object-fit: cover; display: block; box-shadow: 0 0 0 1px var(--line); }
.articolo__figura figcaption { margin-top: 12px; font-size: 16px; font-style: italic; color: var(--muted); text-align: center; }

/* Testo scritto nel CMS */
.articolo__testo { margin-top: 48px; font-size: 21px; line-height: 1.65; color: var(--text); }
.articolo__testo > * + * { margin-top: 1.1em; }
.articolo__testo h2, .articolo__testo h3 {
  font-family: var(--serif); font-weight: 500; color: var(--text-bright); line-height: 1.2;
  margin-top: 1.8em;
}
.articolo__testo h2 { font-size: 32px; }
.articolo__testo h3 { font-size: 25px; }
.articolo__testo strong { font-weight: 600; color: var(--text-bright); }
.articolo__testo a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.articolo__testo a:hover { color: var(--text-bright); }
.articolo__testo ul, .articolo__testo ol { padding-left: 1.4em; }
.articolo__testo li + li { margin-top: .4em; }
.articolo__testo blockquote {
  border-left: 2px solid var(--gold); padding: 4px 0 4px 24px;
  font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--text-bright);
}
.articolo__testo img { width: 100%; height: auto; display: block; margin: 2em 0; box-shadow: 0 0 0 1px var(--line); }
/* Video YouTube: anteprima con pulsante, poi il lettore al suo posto */
.articolo__testo .video { margin: 2em 0; }
.video__anteprima, .video__lettore {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border: 0; background: var(--bg2); box-shadow: 0 0 0 1px var(--line);
}
.articolo__testo .video__anteprima img {
  width: 100%; height: 100%; object-fit: cover; margin: 0; box-shadow: none;
  transition: filter .4s;
}
.video__anteprima:hover img, .video__anteprima:focus-visible img { filter: brightness(.8); }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 5px;
  background: rgba(0,0,0,.6); color: var(--text-bright); font-size: 42px;
  border: 1px solid var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transition: background .3s, color .3s, transform .3s;
}
.video__anteprima:hover .video__play, .video__anteprima:focus-visible .video__play {
  background: var(--gold); color: var(--bg); transform: scale(1.08);
}
.video__anteprima:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.video figcaption { margin-top: 12px; font-size: 16px; font-style: italic; color: var(--muted); text-align: center; }

/* I libri citati, in fondo all'articolo (le classi book__* vengono da home.css) */
.articolo__libri { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.articolo__libri-titolo {
  font-family: var(--serif); font-weight: 500; font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 28px;
}
.libro-citato { --book-accent: var(--gold); display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; }
.libro-citato + .libro-citato { margin-top: 40px; }
.libro-citato .book__cover { aspect-ratio: auto; }
.libro-citato .book__cover img { height: auto; }
.libro-citato h3 {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  color: var(--text-bright); line-height: 1.2; margin-bottom: 4px;
}
.libro-citato .book__links { margin-top: 14px; }
@media (max-width: 520px) {
  .libro-citato { grid-template-columns: 100px 1fr; gap: 20px; }
  .libro-citato h3 { font-size: 22px; }
}

.articolo__fine { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .articolo, .notizie-pagina { padding-top: 120px; }
  .articolo__testo { font-size: 19px; }
}
