/* =====================================================
   Altea Elementor Widgets - Hero Slider (no Swiper)
   Crossfade puro CSS: tutte le slide impilate in
   absolute, la .is-active passa a opacity 1.
   ===================================================== */

.aew-hero {
	position: relative;
	width: 100%;
	height: 500px;
	overflow: hidden;
	--aew-hero-speed: 600ms;
}

.aew-hero-viewport {
	position: relative;
	width: 100%;
	height: 100%;
}

/* -- Slide impilate -- */
.aew-hero-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	opacity: 0;
	z-index: 1;
	pointer-events: none;
	-webkit-transition: opacity var(--aew-hero-speed) ease;
	transition: opacity var(--aew-hero-speed) ease;
}

.aew-hero-slide.is-active {
	opacity: 1;
	z-index: 2;
	pointer-events: auto;
}

/* -- Immagine di sfondo -- */
.aew-hero-media {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	-webkit-transform: scale(1);
	transform: scale(1);
	-webkit-transition: -webkit-transform 6s ease;
	transition: transform 6s ease;
}

/* Ken Burns: guidato solo dalle classi, nessun inline style JS */
.aew-hero--zoom .aew-hero-slide.is-active .aew-hero-media {
	-webkit-transform: scale(1.08);
	transform: scale(1.08);
}

/* -- Overlay -- */
.aew-hero-shade {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1;
}

/* -- Contenuto -- */
.aew-hero-caption {
	position: relative;
	z-index: 2;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	height: 100%;
	padding: 40px 60px;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.aew-hero-title {
	display: block;
	margin: 0 0 16px;
	font-family: 'Josefin Sans', sans-serif;
	font-size: 2.5rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
}

.aew-hero-text {
	margin: 0 0 24px;
	font-family: 'Roboto', sans-serif;
	font-size: 1.1rem;
	color: #f0f0f0;
	max-width: 600px;
}

/* -- Pulsante -- */
.aew-hero-cta {
	display: inline-block;
	padding: 12px 28px;
	font-family: 'Josefin Sans', sans-serif;
	background-color: #ffffff;
	color: #000000;
	text-decoration: none;
	font-weight: 600;
	border-radius: 4px;
	-webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.aew-hero-cta:hover {
	opacity: 0.85;
	-webkit-transform: translateY(-2px);
	transform: translateY(-2px);
}

/* -- Frecce -- */
.aew-hero-arrow {
	position: absolute;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	z-index: 20;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #ffffff;
	cursor: pointer;
	-webkit-transition: background 0.25s ease;
	transition: background 0.25s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none;
	line-height: 1;
}

.aew-hero-arrow:hover {
	background: rgba(0, 0, 0, 0.6);
}

.aew-hero-arrow:focus,
.aew-hero-arrow:focus-visible,
.aew-hero-arrow:active {
	outline: none;
	color: #ffffff;
}

.aew-hero-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
}

.aew-hero-arrow svg {
	display: block;
	width: 20px;
	height: 20px;
	pointer-events: none;
}

.aew-hero-arrow--prev {
	left: 16px;
}

.aew-hero-arrow--next {
	right: 16px;
}

/* -- Dots -- */
.aew-hero-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 14px;
	z-index: 20;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	gap: 8px;
}

.aew-hero-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-transition: background 0.25s ease;
	transition: background 0.25s ease;
}

.aew-hero-dot.is-active {
	background: #ffffff;
}

/* Elementor azzera tutte le transizioni con
   "@media (prefers-reduced-motion: reduce) html * { transition-duration: 0s !important }"
   (Windows con "Mostra animazioni" off => Firefox/Edge segnalano reduce).
   Il cliente vuole comunque fade e zoom: ripristiniamo le nostre con
   specificita' piu' alta. */
@media (prefers-reduced-motion: reduce) {
	.aew-hero .aew-hero-slide {
		-webkit-transition: opacity var(--aew-hero-speed) ease !important;
		transition: opacity var(--aew-hero-speed) ease !important;
	}

	.aew-hero .aew-hero-media {
		-webkit-transition: -webkit-transform 6s ease !important;
		transition: transform 6s ease !important;
	}
}

/* -- Responsive -- */
@media (max-width: 767px) {
	.aew-hero-arrow {
		top: auto;
		bottom: 66px;
		-webkit-transform: none;
		transform: none;
		width: 36px;
		height: 36px;
	}

	.aew-hero-arrow svg {
		width: 16px;
		height: 16px;
	}
}
