/* Digitalia – video YouTube: immagine e pulsante, il lettore si carica solo al clic. */
.dg-yt-box { margin: 0; }
.dg-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #1B2E47; cursor: pointer; }
.dg-yt img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.dg-yt:hover img, .dg-yt:focus-visible img { transform: scale(1.02); }
.dg-yt__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--dg-acc, #8E3B2C); box-shadow: 0 6px 18px rgba(27, 46, 71, .25); transition: transform .2s ease, background .2s ease; }
.dg-yt__play::before { content: ""; position: absolute; left: 30px; top: 25px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #FFFFFF; }
.dg-yt:hover .dg-yt__play, .dg-yt:focus-visible .dg-yt__play { transform: scale(1.06); background: var(--dg-acc-scuro, #5E2519); }
.dg-yt:focus-visible { outline: 3px solid #6ABFDF; outline-offset: 3px; }
.dg-yt__nota { margin: 8px 0 0 !important; font-size: 13px; color: #4A5B70; }
.dg-yt-frame { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .dg-yt img, .dg-yt__play { transition: none; } }
