/* ==========================================================================
   Home - misure ricavate dal CSS Elementor della home originale (post-915).
   Regole che contano: gli h2 di Elementor hanno line-height:1; widget distanziati di 20px.
   ========================================================================== */

/* Animazioni di comparsa (solo con JS attivo; vedi assets/js/home.js) */
.js .cds-anim {
	visibility: hidden;
}
.js .cds-anim.is-in {
	visibility: visible;
	animation-duration: 1.25s;
	animation-fill-mode: both;
}
.cds-anim[data-anim="fadeInUp"].is-in { animation-name: cdsFadeInUp; }
.cds-anim[data-anim="fadeIn"].is-in { animation-name: cdsFadeIn; }
.cds-anim[data-anim="slideInLeft"].is-in { animation-name: cdsSlideInLeft; }
.cds-anim[data-anim="slideInRight"].is-in { animation-name: cdsSlideInRight; }
.cds-anim[data-anim="slideInUp"].is-in { animation-name: cdsSlideInUp; }
.cds-anim[data-anim="zoomIn"].is-in { animation-name: cdsZoomIn; }
@keyframes cdsFadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes cdsFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cdsSlideInLeft { from { transform: translate3d(-100%, 0, 0); visibility: visible; } to { transform: none; } }
@keyframes cdsSlideInRight { from { transform: translate3d(100%, 0, 0); visibility: visible; } to { transform: none; } }
@keyframes cdsSlideInUp { from { transform: translate3d(0, 100%, 0); visibility: visible; } to { transform: none; } }
@keyframes cdsZoomIn { from { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.js .cds-anim { visibility: visible; }
	.js .cds-anim.is-in { animation: none; }
}
/* le animazioni "slide" non devono creare scroll orizzontale */
.home-trio,
.home-duo,
.home-map {
	overflow: hidden;
}

/* Titoli di presentazione */
.home-intro {
	margin: 60px 0;
}
.home-intro__inner {
	display: flex;
	flex-direction: column;
	padding: 10px;
	text-align: center;
}
.home-intro h1,
.home-intro h2 {
	margin: 0;
	line-height: 1;
	color: #000;
}
.home-intro__t1 { font-weight: 700; margin-bottom: 20px !important; }
.home-intro__t2 { font-weight: 400; margin: -7px 0 20px !important; } /* -27px di margine + 20px di spazio fra i widget */
.home-intro__t3 { font-size: 21px; font-weight: 400; }

/* Riga a 3 colonne */
.home-trio {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}
.home-col {
	position: relative;
	min-width: 0;
}
.home-trio .home-col {
	width: 33.333%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.home-col--photo {
	min-height: 600px;
}
.home-col .cds-cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* Colonna centrale dorata */
.home-col--news {
	background: #b7905a;
	text-align: center;
}
.home-news {
	display: flex; /* flex: i margini non si fondono, come nei widget Elementor */
	flex-direction: column;
}
.home-news > * { margin-bottom: 20px; }
.home-news > *:last-child { margin-bottom: 0; }
.home-news img {
	display: inline-block;
	vertical-align: middle;
}
.home-news__label { margin: 40px 0 60px !important; } /* 40px del widget + 20px di spazio */
.home-news__title {
	margin: 0 0 60px; /* 40px del widget + 20px di spazio */
	font-size: 28px;
	line-height: 1;
	font-weight: 700;
	color: #fff;
}
.home-news__btn {
	margin-bottom: 0;
}
.home-button {
	display: inline-block;
	min-height: 40px;
	padding: 12px 24px;
	border-radius: 5px;
	background: #000;
	color: #fff;
	font-family: "Roboto", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	transition-duration: 0.3s;
	transition-property: transform;
}
.home-button:hover,
.home-button:focus {
	color: #fff;
	text-decoration: none;
	transform: scale(0.9);
}

/* Colonna Gift Card */
.home-col--gift {
	background: #edefef;
	border: 15px solid #95a5b0;
	padding: 50px;
	text-align: center;
}
.home-gift {
	display: flex;
	flex-direction: column;
}
.home-gift h2 {
	margin: 0;
	line-height: 1;
	color: #000;
}
.home-gift__title { font-weight: 700; margin-bottom: 20px !important; }
.home-gift__sub {
	font-size: 18px;
	font-weight: 400;
	margin-bottom: 50px !important; /* 30px + 20px */
}
.home-gift__text {
	margin-bottom: 60px; /* 40px + 20px */
	color: #7a7a7a;
}
.home-gift__img img {
	display: inline-block;
	vertical-align: middle;
}

/* Due immagini affiancate */
.home-duo {
	display: flex;
	flex-wrap: wrap;
}
.home-duo .home-col {
	width: 50%;
	min-height: 600px;
}

/* Mappa */
.home-map {
	line-height: 0;
}
.home-map iframe {
	display: block;
	width: 100%;
	height: 500px;
	border: 0;
	filter: saturate(0%);
	transition: filter 1.5s;
}
.home-map:hover iframe {
	filter: saturate(100%);
}

/* Su touch la mappa non intrappola lo scroll: si attiva con un tocco (vedi nav.js) */
@media (hover: none) {
	.home-map iframe { pointer-events: none; }
	.home-map.is-active iframe { pointer-events: auto; }
}

/* Tablet (<= 1024px): colonne a tutta larghezza */
@media (max-width: 1024px) {
	.home-trio .home-col {
		width: 100%;
	}
	.home-col--photo {
		min-height: 600px;
	}
	.home-news__arrows {
		margin-top: 30px;
	}
	.home-news__btn {
		margin-bottom: 30px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.home-intro__t1 { font-size: 21px; }
	.home-intro__t2 { font-size: 16px; margin-top: 5px !important; }
	.home-intro__t3 { font-size: 18px; }
	.home-col--news { padding: 10px; }
	.home-duo .home-col { width: 100%; }
	/* foto un po' meno alte e Gift Card con meno margine interno */
	.home-col--photo,
	.home-duo .home-col { min-height: 440px; }
	.home-col--gift { padding: 32px 24px; }
	.home-map iframe { height: 340px; }
}
