/* Video a tutto schermo negli articoli (vedi assets/video.js) */
.prose a.vfs-link {
  display: inline-flex; align-items: center; gap: .6em;
  margin: .4em 0; padding: 14px 26px 14px 18px; border-radius: 999px;
  background: var(--blue); color: #fff !important; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.3;
  box-shadow: 0 6px 18px rgba(25, 51, 128, .25);
  transition: transform .15s, box-shadow .15s;
}
.prose a.vfs-link::before {
  content: ""; flex: none; width: 2em; height: 2em; border-radius: 50%;
  background: var(--yellow) no-repeat 58% 50% / 42% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='%231b1f2a'/%3E%3C/svg%3E");
}
.prose a.vfs-link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(25, 51, 128, .32); }
.prose a.vfs-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

html.vfs-on, html.vfs-on body { overflow: hidden; }
.vfs {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 12, 28, .94);
  opacity: 0; transition: opacity .4s ease;
}
.vfs[hidden] { display: none; }   /* senza questa riga, il velo trasparente resta sopra la pagina e blocca i clic */
.vfs.vfs-in { opacity: 1; }
.vfs.vfs-out { opacity: 0; }
.vfs video {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transform: scale(.96); transition: transform .45s ease;
}
.vfs.vfs-in video { transform: none; }
.vfs-close {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 30px; line-height: 46px; padding: 0;
}
.vfs-close:hover, .vfs-close:focus-visible { background: rgba(255, 255, 255, .3); outline: none; }
.vfs-play {
  position: absolute; border: 0; cursor: pointer; padding: 16px 28px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font: 700 1.1rem var(--font-head);
}
@media (prefers-reduced-motion: reduce) {
  .vfs, .vfs video { transition: none; }
}
