/* ─── VIDEO PAGE ────────────────────────────────────────────────────
   Sfondo chiaro, coerente con le pagine interne.
─────────────────────────────────────────────────────────────────── */

body.page-video { background: var(--paper); }

/* ══════════════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════════════ */
.vd-header {
  max-width: 1320px; margin: 0 auto;
  padding: 32px 40px 20px;
  border-bottom: 2px solid var(--teal);
}
.vd-header__row {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.vd-header__h1 {
  font-family: var(--f-d); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--ink);
  letter-spacing: -.025em; line-height: 1.15; margin: 0;
}
.vd-header__sub {
  font-family: var(--f-b); font-size: 12px;
  color: var(--muted); margin-top: 4px;
}
.vd-header__yt {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-d); font-size: 12px; font-weight: 700;
  color: var(--ink); background: var(--teal);
  padding: 9px 16px; border-radius: 100px;
  text-decoration: none; transition: background .2s;
  flex-shrink: 0;
}
.vd-header__yt:hover { background: var(--teal-d); }
.vd-header__yt svg  { fill: var(--ink); flex-shrink: 0; }

/* ══════════════════════════════════════════════════
   BODY
══════════════════════════════════════════════════ */
.vd-body {
  max-width: 1320px; margin: 0 auto;
  padding: 32px 40px 72px;
}

/* ══════════════════════════════════════════════════
   GRID
══════════════════════════════════════════════════ */
.vd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* ── Card ─────────────────────────────────────────── */
.vd-card {
  background: #fff;
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s;
}
.vd-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
}

/* Thumbnail */
.vd-card__thumb {
  position: relative; aspect-ratio: 16/9;
  overflow: hidden; background: var(--ink);
}
.vd-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.92);
  transition: filter .4s, transform .5s var(--ease);
}
.vd-card:hover .vd-card__thumb img {
  filter: brightness(.78);
  transform: scale(1.04);
}

/* Play button */
.vd-card__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.vd-card__play-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(11,189,194,.92);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(11,189,194,.2);
  transition: transform .3s var(--ease), background .2s;
}
.vd-card:hover .vd-card__play-circle {
  transform: scale(1.1);
  background: var(--teal);
}
.vd-card__play-circle svg {
  width: 18px; height: 18px; fill: var(--ink);
  margin-left: 3px;
}

/* Body */
.vd-card__body {
  padding: 14px 16px 18px;
  flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.vd-card__title {
  font-family: var(--f-d); font-size: 14px; font-weight: 700;
  color: var(--ink); line-height: 1.3; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.vd-card:hover .vd-card__title { color: var(--teal); }
.vd-card__date {
  font-family: var(--f-b); font-size: 11px;
  color: var(--muted); margin-top: auto;
}

/* ══════════════════════════════════════════════════
   PAGINAZIONE
══════════════════════════════════════════════════ */
.vd-pag {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap;
}
.vd-pag__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 7px; border: 1px solid var(--border);
  font-family: var(--f-d); font-size: 13px; font-weight: 600;
  color: var(--muted); background: #fff;
  text-decoration: none; transition: all .2s;
}
.vd-pag__btn:hover    { border-color: var(--teal); color: var(--teal); }
.vd-pag__btn.active   { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.vd-pag__btn.disabled { opacity: .3; pointer-events: none; }

/* ══════════════════════════════════════════════════
   MODALE YOUTUBE
══════════════════════════════════════════════════ */
.vd-modal {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(10,9,8,.96);
  align-items: center; justify-content: center;
}
.vd-modal.open { display: flex; }
.vd-modal__box {
  position: relative; width: min(900px, 92vw);
}
.vd-modal__ratio {
  position: relative; padding-bottom: 56.25%;
  background: #000; border-radius: 8px; overflow: hidden;
}
.vd-modal__ratio iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}
.vd-modal__title {
  margin-top: 14px;
  font-family: var(--f-d); font-size: 15px; font-weight: 700;
  color: rgba(255,255,255,.7); line-height: 1.35; text-align: center;
}
.vd-modal__close {
  position: fixed; top: 20px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none;
  color: rgba(255,255,255,.7); font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.vd-modal__close:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .vd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .vd-header { padding: 24px 20px 16px; }
  .vd-body   { padding: 20px 20px 56px; }
  .vd-grid   { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .vd-grid { grid-template-columns: 1fr; gap: 14px; }
}
