/* =====================================================
   Altea Elementor Widgets – Swiper Slider
   ===================================================== */

.aew-swiper-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.aew-swiper {
	width: 100%;
	height: 500px; /* default, overridden by Elementor control */
}

/* ── Slide ── */
.aew-slide {
	position: relative;
	overflow: hidden;
	height: 100%;   /* fondamentale: deve ereditare l'altezza da .aew-swiper */
}

.aew-slide-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(1);
	transition: transform 6s ease;
}

.swiper-slide-active .aew-slide-bg {
	transform: scale(1.05);
}

/* ── Overlay ── */
.aew-swiper-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 1;
}

/* ── Contenuto ── */
.aew-slide-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 40px 60px;
	box-sizing: border-box;
}

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

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

/* ── Pulsante ── */
.aew-slide-btn {
	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;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.aew-slide-btn:hover {
	opacity: 0.85;
	transform: translateY(-2px);
}

/* ── Navigazione ── */
.aew-swiper .swiper-button-prev,
.aew-swiper .swiper-button-next {
	color: #ffffff;
	background: rgba(0, 0, 0, 0.35);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	transition: background 0.25s ease;
}

.aew-swiper .swiper-button-prev::after,
.aew-swiper .swiper-button-next::after {
	font-size: 16px;
}

.aew-swiper .swiper-button-prev:hover,
.aew-swiper .swiper-button-next:hover {
	background: rgba(0, 0, 0, 0.6);
}

/* ── Paginazione ── */
.aew-swiper .swiper-pagination-bullet {
	background: rgba(255, 255, 255, 0.6);
	opacity: 1;
}

.aew-swiper .swiper-pagination-bullet-active {
	background: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.aew-slide-content {
		padding: 24px 20px;
	}

	.aew-slide-title {
		font-size: 1.6rem;
	}

	.aew-slide-description {
		font-size: 0.95rem;
	}

	.aew-swiper .swiper-button-prev,
	.aew-swiper .swiper-button-next {
		display: none;
	}
}
