/* ==========================================================
   OVB — All-Sky : ultime nottate (video, keogram, startrail)
   ========================================================== */

.latest-night {
  margin-top: 4rem;
}

.latest-night-intro {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-mute);
  font-size: 0.95rem;
  line-height: 1.65;
}

.latest-grid {
  display: grid;
  gap: 2.2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.latest-item {
  display: flex;
  flex-direction: column;
}

.latest-item h3 {
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.4rem;
  letter-spacing: 0.01em;
}

.latest-item .latest-sub {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.latest-frame {
  position: relative;
  width: 100%;
  background: #000;
  border: 1px solid var(--gold-dim);
  border-radius: 6px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenitore aspect ratio diverso per video vs immagini */
.latest-item.is-video .latest-frame {
  aspect-ratio: 16 / 9;
}
.latest-item.is-keogram .latest-frame {
  /* keogram è tipicamente molto largo e basso */
  aspect-ratio: 4 / 1;
  min-height: 120px;
}
.latest-item.is-startrail .latest-frame {
  aspect-ratio: 1 / 1;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.latest-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.latest-media-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  border: none;
}
.latest-media-link:hover { border: none; }

.latest-media-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.latest-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.latest-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-top: 0.8rem;
  letter-spacing: 0.03em;
  font-style: italic;
}

/* Stato "non ancora disponibile" */
.latest-unavailable {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-mute);
}
.latest-unavailable strong {
  display: block;
  font-family: var(--serif, 'Cormorant Garamond', serif);
  font-size: 1.15rem;
  color: var(--ivory);
  margin-bottom: 0.5rem;
}
.latest-unavailable p {
  font-size: 0.88rem;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .latest-night { margin-top: 2.8rem; }
  .latest-grid  { gap: 1.8rem; }
  .latest-item h3 { font-size: 1.35rem; }
  .latest-item.is-keogram .latest-frame { aspect-ratio: 3 / 1; }
}
