/* Video della home (Registro 01/11/2026 «Video della home»): parte da solo e muto quando si vede, «Attiva l'audio», Play con le onde */
.video-home { position: relative; overflow: hidden; }
.video-home::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -25%; height: 70%; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 100%, rgba(227, 6, 19, .10), transparent 70%); }
.video-home .contenitore { position: relative; }
.video-home__intro { max-width: 34rem; }

.video-home__palco { position: relative; margin-top: clamp(2rem, 4vw, 3rem); perspective: 1600px; }
.js .video-home__palco[data-rivela] { transform: translateY(48px) rotateX(9deg) scale(.96); transform-origin: 50% 100%; }
.js .video-home__palco[data-rivela].is-visibile { transform: none; }

.video-home__cornice { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-l); overflow: hidden; background: #0a1328;
  box-shadow: var(--ombra-l), 0 60px 120px -50px rgba(227, 6, 19, .45); outline: 1px solid rgba(20, 22, 26, .08); }
.video-home__copertina, .video-home__lettore { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-home__copertina { transition: transform 1.2s var(--morbido), opacity .35s; }
.video-home__cornice:hover .video-home__copertina { transform: scale(1.03); }
.video-home__lettore { background: #000; }

.video-home__play { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 1.2rem;
  width: 100%; margin: 0; padding: 0; border: 0; color: #fff; font: inherit; cursor: pointer;
  background: linear-gradient(180deg, rgba(10, 19, 40, .05), rgba(10, 19, 40, .45)); transition: opacity .35s, visibility .35s; }
.video-home__play:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }
.video-home__tondo { position: relative; display: grid; place-items: center; width: clamp(4.6rem, 9vw, 7rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--rosso); box-shadow: var(--ombra-rossa), 0 0 0 10px rgba(227, 6, 19, .18); transition: transform .35s var(--molla); }
.video-home__tondo::before, .video-home__tondo::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .75); animation: video-onda 2.6s ease-out infinite; }
.video-home__tondo::after { animation-delay: 1.3s; }
.video-home__tondo svg { width: 40%; height: 40%; margin-left: 9%; fill: currentColor; }
.video-home__play:hover .video-home__tondo, .video-home__play:focus-visible .video-home__tondo { transform: scale(1.08); }
.video-home__etichetta { display: inline-flex; align-items: center; gap: .7rem; padding: .55rem 1.15rem; border-radius: 999px;
  background: rgba(10, 19, 40, .62); backdrop-filter: blur(8px); font-size: .95rem; color: rgba(255, 255, 255, .85); }
.video-home__etichetta b { font-family: var(--f-titoli); font-weight: 700; color: #fff; }
.video-home__etichetta span::before { content: "·"; margin-right: .7rem; color: var(--rosso-2); }
.video-home__cornice.is-avviato .video-home__play, .video-home__cornice.is-avviato .video-home__copertina { opacity: 0; visibility: hidden; }
.video-home__cornice:not(.is-avviato) .video-home__lettore { visibility: hidden; }

/* avvio automatico muto: i browser non permettono l'audio senza un gesto del visitatore */
.video-home__audio { position: absolute; top: 1rem; right: 1rem; z-index: 3; display: none; align-items: center; gap: .5rem; padding: .6rem 1.05rem;
  border: 0; border-radius: 999px; background: var(--rosso); color: #fff; font: 650 .95rem/1 var(--f-titoli); cursor: pointer;
  box-shadow: var(--ombra-rossa); animation: video-respiro 2.4s ease-in-out infinite; }
.video-home__audio svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.video-home__audio:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.video-home__cornice.is-avviato.is-muto .video-home__audio { display: inline-flex; }
@keyframes video-respiro { 50% { transform: scale(1.06); } }
.video-home__senza-js { position: absolute; left: 50%; bottom: 1.2rem; z-index: 3; transform: translateX(-50%); padding: .5rem 1rem; border-radius: 999px; background: #fff; color: var(--inchiostro); font-weight: 600; }

/* la «i» di Oesis accanto allo schermo */
.video-home__i { position: absolute; left: clamp(-2.4rem, -3vw, -1.4rem); top: 16%; width: 10px; height: 50%; border-radius: 4px; background: var(--rosso); box-shadow: var(--ombra-rossa); }
.video-home__i span { position: absolute; left: 50%; top: -26px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--rosso); }

@keyframes video-onda { from { transform: scale(1); opacity: .85; } to { transform: scale(1.9); opacity: 0; } }

@media (max-width: 720px) {
  .video-home__i { display: none; }
  .video-home__cornice { border-radius: var(--r-m); }
  .video-home__etichetta { font-size: .85rem; }
  .video-home__audio { top: .6rem; right: .6rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .video-home__tondo::before, .video-home__tondo::after { display: none; }
  .video-home__audio { animation: none; }
  .js .video-home__palco[data-rivela] { transform: none; }
}
