.video-tel, .video-cornice { display: block; overflow: hidden; background: var(--bianco); cursor: pointer; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--blu); }
.video-play::after {
content: ''; position: absolute; left: 41%; top: 50%; transform: translateY(-50%);
border-left: 24px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent;
}
.video-tel:hover .video-play, .video-cornice:hover .video-play { background: var(--blu-forte); }
.video-durata { position: absolute; border-radius: 999px; background: rgba(15, 21, 53, .82); color: #fff; font-weight: 600; line-height: 1.6; }
.video-tel {
position: absolute; z-index: 2; bottom: 0; left: 30%;
width: 33%; margin-left: -16.5%;
border: 3px solid var(--cornice);
border: clamp(3px, .5vw, 6px) solid var(--cornice);
border-radius: 14px;
border-radius: clamp(14px, 2vw, 28px);
box-shadow: 0 2px 4px rgba(15, 21, 53, .08), 0 30px 60px -14px rgba(15, 21, 53, .5);
}
.video-tel img { display: block; width: 100%; height: auto; }
body .video-tel:focus-visible { border-radius: clamp(14px, 2vw, 28px); }
.video-tel .video-play {
width: 40px; height: 40px;
width: clamp(40px, 5vw, 64px); height: clamp(40px, 5vw, 64px);
box-shadow: 0 5px 16px rgba(20, 32, 110, .4), 0 0 0 4px rgba(255, 255, 255, .92);
}
.video-tel .video-play::after { border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }
.video-tel .video-durata { right: 6px; bottom: 6px; padding: 1px 7px; font-size: .6875rem; }
.video-finestra {
position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70;
display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
background: rgba(9, 13, 36, .84);
}
.video-finestra-cornice { width: 88%; max-width: 47.25vh; border-radius: 22px; overflow: hidden; background: var(--cornice); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.video-finestra video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; }
.video-finestra-x {
position: absolute; top: 12px; right: 12px;
top: calc(12px + env(safe-area-inset-top, 0px));
display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
width: 48px; height: 48px; padding: 0;
border: 0; border-radius: 50%;
background: var(--bianco); color: var(--testo); cursor: pointer;
}
.video-finestra-x:hover { background: var(--blu-chiaro); color: var(--blu); }
body .video-finestra-x:focus-visible { border-radius: 50%; outline-color: #fff; box-shadow: 0 0 0 2px var(--blu-forte); }
.video-blocco { display: none; position: relative; z-index: 1; padding: 22px 0 0; text-align: center; }
.da-volantino .video-blocco { display: block; }
.da-volantino .video-tel { display: none; }
.video-blocco h2 { margin: 0 0 14px; font-size: 1.375rem; }
.video-cornice {
position: relative; box-sizing: content-box;
width: 258px;
width: min(258px, calc(70vw - 12px));
margin: 0 auto;
aspect-ratio: 9 / 16;
border: 6px solid var(--cornice); border-radius: 24px;
box-shadow: 0 18px 44px rgba(20, 32, 110, .18);
}
.video-cornice img, .video-cornice video { display: block; width: 100%; height: 100%; object-fit: cover; }
body .video-cornice:focus-visible { border-radius: 24px; }
.video-cornice .video-play { width: 76px; height: 76px; box-shadow: 0 6px 20px rgba(20, 32, 110, .35), 0 0 0 5px rgba(255, 255, 255, .9); }
.video-cornice .video-durata { right: 10px; bottom: 10px; padding: 3px 9px; font-size: .8125rem; }
@media (min-width: 768px) {
.video-tel { width: 22%; margin-left: -11%; }
.video-tel .video-play::after { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; }
.video-tel .video-durata { right: 8px; bottom: 8px; padding: 2px 9px; font-size: .8125rem; }
}
@media (min-width: 1024px) {
.video-blocco h2 { font-size: 2rem; }
.video-cornice { width: 288px; }
}
