/* ==========================================================================
   Ritocchi alla versione statica di Learning for Living Together (28/10/2026). Collegato da tutte le pagine.
   ========================================================================== */

/* --- Video: anteprima che apre il popup (youtube-nocookie, solo al clic). Rapporto 16:9 con aspect-ratio. --- */
.video-anteprima { position: relative; display: block; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video-anteprima img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-anteprima .video-play { position: absolute; top: 50%; left: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 3px solid #fff; box-sizing: border-box; transition: background .2s; }
.video-anteprima .video-play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -14px 0 0 -9px; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #fff; }
.video-anteprima:hover .video-play { background: rgba(228, 0, 124, .85); }

/* finestra sovrapposta del video */
.video-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 100000; background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center; }
.video-overlay-inner { position: relative; width: 92vw; max-width: 960px; aspect-ratio: 16 / 9; background: #000; }
.video-overlay-inner iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-overlay-chiudi { position: absolute; top: -40px; right: 0; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: #fff; font-size: 34px; line-height: 36px; cursor: pointer; }
