html { height: 100%; }
body.cornice { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; background: var(--notte); }

.cornice main { flex: 1; min-height: 0; position: relative; display: block; }
.cornice iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cornice-attesa { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 241, 234, .7); }
.cornice-attesa svg { width: 22px; height: 22px; fill: var(--blu-luce); animation: cornice-gira 2.4s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes cornice-gira { 50% { transform: rotate(180deg) scale(1.25); } 100% { transform: rotate(360deg); } }
html.aperto .cornice-attesa { display: none; }
.cornice-senza { position: absolute; inset: 0; display: grid; place-content: center; padding: 0 var(--bordo); text-align: center; font-size: 16px; line-height: 1.5; background: var(--notte); }

@media (prefers-reduced-motion: reduce) { .cornice-attesa svg { animation: none; } }
