/*
 * HOME: slider, video, presentazione, cosa offriamo, bag-in-box.
 * Colori delle sezioni dai dati Elementor dell'originale (vedi EFFETTI-ORIGINALE.md: sul sito vivo oggi non si vedono).
 */
:root {
	--vdi-home-slider-bg: #66b4d8; /* colore che RevSlider disegna sul sito vivo */
	--vdi-home-video-bg: #ddf6c9;
	--vdi-home-about-bg: #306475;
	--vdi-home-offer-bg: #5279dc;
	--vdi-home-bib-bg: #8952dc;
}

/* ---------- Slider (griglia 1920x900, bottiglia centrata alta 108,9%) ---------- */
.vdi-hs { position: relative; overflow: hidden; aspect-ratio: 1920 / 900; background: var(--vdi-home-slider-bg); }
.vdi-hs__track, .vdi-hs__slide { position: absolute; inset: 0; }
.vdi-hs__slide { opacity: 0; visibility: hidden; transition: opacity .8s ease-in-out, visibility 0s linear .8s; }
.vdi-hs__slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.vdi-hs__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vdi-hs__fg { position: absolute; top: -12.22%; left: 50%; width: auto; max-width: none; height: 108.89%; transform: translateX(-50%); }
.vdi-hs__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; margin-top: -25px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; transition: background .3s; }
.vdi-hs__arrow:hover, .vdi-hs__arrow:focus-visible { background: rgba(0, 0, 0, .25); }
.vdi-hs__arrow .vdi-icon { width: 40px; height: 40px; }
.vdi-hs__arrow .vdi-icon path { stroke-width: 2.6; }
.vdi-h-title--about { max-width: 12em; } /* va a capo dopo la virgola come l'originale */
.vdi-hs__arrow--prev { left: 30px; }
.vdi-hs__arrow--next { right: 30px; }

/* ---------- Video ---------- */
.vdi-hv { display: flex; align-items: center; min-height: 100vh; background: var(--vdi-home-video-bg); }.vdi-hv__inner { width: 100%; max-width: 1140px; margin-inline: auto; padding: 10px; }
.vdi-hv__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vdi-hv__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Sezioni a due colonne ---------- */
.vdi-hsec { color: #fff; }
.vdi-hsec--about { background: var(--vdi-home-about-bg); }
.vdi-hsec--offer { background: var(--vdi-home-offer-bg); padding: 100px 0; }
.vdi-hsec--bib { background: var(--vdi-home-bib-bg); padding: 100px 0; }
.vdi-hsec__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; max-width: 1140px; min-height: 100vh; margin-inline: auto; }
.vdi-hsec__inner--short { min-height: 65vh; }
.vdi-hsec__col { min-width: 0; }
.vdi-hsec__col--media { margin-left: 5px; padding: 136px 0 100px; }
.vdi-hsec__col--img { margin-left: 5px; text-align: center; line-height: 0; }
.vdi-about-img { display: block; width: 430px; margin-left: 28px; }
.vdi-bib-img { width: 65%; }

.vdi-h-title, .vdi-h-label, .vdi-h-small { margin: 0; color: #fff; font-weight: 500; line-height: 1.07; }
.vdi-h-title--about { margin-bottom: 30px; font-size: 34px; }
.vdi-h-title--big { font-size: 38px; }
.vdi-h-title--mb { margin-bottom: 19px; }
.vdi-h-label { margin-top: 3px; margin-bottom: 2px; font-size: 18px; }
.vdi-h-small { margin-top: 5px; margin-bottom: 24px; font-size: 14px; }
.vdi-h-text { margin: 0 25% 8px 0; color: #fff; font-size: 16px; line-height: 1.37; }

/* Pulsanti bordati bianchi (Archivo 600 maiuscolo) */
.vdi-hbtn { display: inline-block; margin-top: 20px; padding: 12px 24px; border: 2px solid #fff; color: #fff; font-family: "Archivo", sans-serif; font-weight: 600; text-transform: uppercase; text-decoration: none; transition: all .3s; }
.vdi-hbtn--l { font-size: 18px; line-height: 18px; }
.vdi-hbtn--m { font-size: 16px; line-height: 16px; }
.vdi-hbtn:hover, .vdi-hbtn:focus-visible { background: #fff; color: #000; border-color: #fff; }

.vdi-tilt { transform-style: preserve-3d; transition: transform .3s ease-out; will-change: transform; }

.vdi-bib-img { display: block; margin-inline: auto; }

/* ---------- Tablet (come l'originale: colonne una sotto l'altra) ---------- */
@media (max-width: 1024px) {
	.vdi-h-text { margin-right: 0; }
	.vdi-hsec__inner { grid-template-columns: minmax(0, 1fr); }
	.vdi-hsec--about { padding: 10% 15%; }
	.vdi-hsec--about .vdi-hsec__col--media { padding: 100px 0; }
	.vdi-hsec__col--low { margin-top: 235px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.vdi-hs__arrow--prev { left: 10px; }
	.vdi-hs__arrow--next { right: 10px; }
	/* altezza del video, niente verde vuoto (ok utente 01/12; Elementor aveva 100vh anche su mobile) */
	.vdi-hv { padding: 60px 0; min-height: 0; }
	.vdi-hsec__inner { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
	.vdi-hsec--about { padding: 10% 10% 35%; }
	.vdi-hsec--about .vdi-hsec__col--text { padding-bottom: 80px; }
	.vdi-hsec--offer, .vdi-hsec--bib { padding: 1% 10% 0; }
	.vdi-about-img { width: calc(100% - 33px); }
}

/* ---------- Sfondo sfumato allo scroll (attivo solo con JS: home-colori.js aggiunge .vdi-hgrad su html) ---------- */
.vdi-hgrad .vdi-hv,
.vdi-hgrad .vdi-hsec--about,
.vdi-hgrad .vdi-hsec--offer,
.vdi-hgrad .vdi-hsec--bib { background: transparent; }
