.mdw-fs {
	position: relative;
	width: 100%;
	overflow: hidden;
	isolation: isolate;
}

.mdw-fs__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.mdw-fs__viewport {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 520px;
}

.mdw-fs__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.mdw-fs__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
}

/* --- Immagine principale --- */
.mdw-fs__main {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
	will-change: transform, opacity;
}

.mdw-fs__main img {
	display: block;
	width: 100%;
	height: auto;
}

/* --- Ingredienti --- */
.mdw-fs__ingredients {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.mdw-fs__ingredient {
	position: absolute;
	transform: translate(-50%, -50%);
	will-change: transform, opacity;
}

.mdw-fs__ingredient img {
	display: block;
	width: 100%;
	height: auto;
}

/* --- Testo: ognuno posizionato in modo indipendente --- */
.mdw-fs__title,
.mdw-fs__desc,
.mdw-fs__cta {
	position: absolute;
	z-index: 4;
	margin: 0;
	will-change: transform, opacity;
}

.mdw-fs__title {
	left: 8%;
	top: 14%;
	max-width: 42%;
	font-size: 42px;
	line-height: 1.1;
}

.mdw-fs__desc {
	left: 8%;
	top: 30%;
	max-width: 36%;
}

.mdw-fs__cta {
	left: 8%;
	top: 46%;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 24px;
	border: 1px solid currentColor;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.25s ease, color 0.25s ease;
	white-space: nowrap;
}

/* --- Tabs gusto --- */
.mdw-fs__tabs {
	position: absolute;
	z-index: 5;
	display: flex;
	gap: 20px;
}

.mdw-fs--tabs-left .mdw-fs__tabs {
	left: 4%;
	top: 50%;
	transform: translateY(-50%);
	flex-direction: column;
}

.mdw-fs--tabs-right .mdw-fs__tabs {
	right: 4%;
	top: 50%;
	transform: translateY(-50%);
	flex-direction: column;
}

.mdw-fs--tabs-top .mdw-fs__tabs {
	left: 50%;
	top: 24px;
	transform: translateX(-50%);
	flex-direction: row;
}

.mdw-fs__tab {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px 0;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: color 0.25s ease;
	white-space: nowrap;
}

/* --- Frecce --- */
.mdw-fs__nav {
	position: absolute;
	z-index: 5;
	right: 4%;
	bottom: 24px;
	display: flex;
	gap: 12px;
}

.mdw-fs__arrow {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid currentColor;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.mdw-fs__arrow:hover {
	background-color: currentColor;
}

.mdw-fs__arrow:hover svg,
.mdw-fs__arrow:hover i {
	color: #fff;
	filter: invert(1) grayscale(1) brightness(2);
}

/* =========================================================
   RESPONSIVE
   Le posizioni X/Y, larghezze e distanze di ogni elemento
   sono personalizzabili per tablet e mobile direttamente dai
   controlli responsive di Elementor (icona device in alto a
   sinistra di ogni campo). Qui solo alcuni default di comodo.
   ========================================================= */
@media (max-width: 1024px) {

	.mdw-fs__viewport {
		height: 480px;
	}
}

@media (max-width: 767px) {

	.mdw-fs__viewport {
		height: 460px;
	}

	.mdw-fs--tabs-left .mdw-fs__tabs,
	.mdw-fs--tabs-right .mdw-fs__tabs,
	.mdw-fs--tabs-top .mdw-fs__tabs {
		left: 0;
		right: 0;
		top: 12px;
		transform: none;
		flex-direction: row;
		justify-content: flex-start;
		overflow-x: auto;
		padding: 0 5%;
		gap: 16px;
		-ms-overflow-style: none;
		scrollbar-width: none;
	}

	.mdw-fs__tabs::-webkit-scrollbar {
		display: none;
	}

	.mdw-fs__tab {
		font-size: 12px;
	}

	.mdw-fs__nav {
		right: 5%;
		bottom: 12px;
	}

	.mdw-fs__arrow {
		width: 40px;
		height: 40px;
	}
}
