/* Fioretti Slider – misure riprese dallo slider originale (griglia 1700 / 1024 / 480 px). */
.elementor-widget-fioretti_slider { width: 100%; }

.fs-slider {
	position: relative;
	width: 100%;
	aspect-ratio: 1700 / 900;
	max-height: 900px;
	overflow: hidden;
	background-color: #1a1a1a;
}
.fs-slider .swiper-wrapper,
.fs-slider .fs-slide { height: 100%; }
.fs-slider .fs-slide { position: relative; overflow: hidden; }

.fs-media,
.fs-media .fs-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.fs-media { display: block; margin: 0; }
.fs-media .fs-img {
	max-width: none;
	object-fit: cover;
	object-position: left center;
}
.fs-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; }

/* Testi: prima riga del titolo al 25% dell'altezza, margine come la griglia originale */
.fs-content { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.fs-text {
	position: absolute;
	top: 25%;
	left: max(1.18%, calc((100% - 1700px) / 2 + 20px));
	color: #fff;
}
.fs-eyebrow {
	position: absolute;
	bottom: 100%;
	left: 0;
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin: 0 0 3px !important;
	font-family: "Rajdhani", sans-serif !important;
	font-size: clamp(9px, 1.18vw, 20px);
	font-weight: 500;
	line-height: 1.6;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
}
.fs-eyebrow-icon { flex: 0 0 auto; width: 2em; height: 0.55em; fill: none; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.fs-eyebrow-icon path { vector-effect: non-scaling-stroke; }

.elementor-widget-fioretti_slider .fs-title {
	margin: 0 !important;
	padding: 0;
	font-family: "Teko", sans-serif !important;
	font-size: min(8.8vw, 150px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
}
.fs-line { display: block; }
.fs-line-2 { margin-top: -0.07em; margin-left: 0.46em; }

/* Frecce: impilate, centrate in verticale, a 60px dal bordo destro */
.fs-arrows {
	position: absolute;
	top: 50%;
	right: 60px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transform: translateY(calc(-50% - 7px));
}
.fs-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: #084a34;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.3s ease;
}
.fs-arrow:hover,
.fs-arrow:focus-visible { background-color: #528f68; }
.fs-arrow:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.fs-arrow svg { width: 22px; height: 22px; fill: currentColor; }
.fs-prev svg { transform: scaleX(-1); }

/* Pallini (solo smartphone) */
.fs-pagination {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	z-index: 3;
	display: none;
	justify-content: center;
	gap: 5px;
}
.fs-pagination .fs-bullet {
	display: block;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 3px solid #e5e5e5;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}
.fs-pagination .fs-bullet.is-active { background-color: #666; }

/* Animazione dei testi della slide attiva */
.fs-animate .fs-text { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s; }
.fs-animate .swiper-slide-active .fs-text { opacity: 1; transform: none; }
.fs-animate:not(.swiper-initialized) .fs-slide:first-child .fs-text { opacity: 1; transform: none; }

@media (max-width: 1023px) {
	.fs-slider { aspect-ratio: 1024 / 768; }
	.fs-text { top: 26.7%; }
	.fs-eyebrow { margin-bottom: 6px !important; gap: 10px; }
	.fs-eyebrow-icon { width: 30px; height: 8px; margin-left: 5px; }
	.elementor-widget-fioretti_slider .fs-title { font-size: 8.6vw; }
	.fs-line-2 { margin-top: 0.19em; margin-left: 1.4em; }
}

@media (max-width: 767px) {
	.fs-slider { aspect-ratio: 480 / 600; }
	.fs-text { top: 35%; left: 12px; }
	.fs-eyebrow { margin-bottom: 9px !important; font-size: 10px; gap: 11px; }
	.fs-eyebrow-icon { width: 29px; height: 8px; margin-left: 0; }
	.elementor-widget-fioretti_slider .fs-title { font-size: 8.3vw; }
	.fs-line-2 { margin-top: 0.24em; margin-left: 1.55em; }
	.fs-arrows { display: none; }
	.fs-pagination { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
	.fs-animate:not(.fs-motion-always) .fs-text { transition: none; opacity: 1; transform: none; }
	/* modalità "Ignora": prevale sulla regola di Elementor che azzera le transizioni */
	html .fs-slider.fs-animate.fs-motion-always .fs-text { transition-duration: 0.8s !important; transition-delay: 0.2s !important; }
}

/* Ancoraggio della foto per dispositivo (classi impostate dal widget) */
.fs-pos-d-left-center .fs-img { object-position: left center; }
.fs-pos-d-center-center .fs-img { object-position: center center; }
.fs-pos-d-right-center .fs-img { object-position: right center; }
.fs-pos-d-center-top .fs-img { object-position: center top; }
.fs-pos-d-center-bottom .fs-img { object-position: center bottom; }
.fs-pos-d-left-top .fs-img { object-position: left top; }
.fs-pos-d-right-top .fs-img { object-position: right top; }
.fs-pos-d-left-bottom .fs-img { object-position: left bottom; }
.fs-pos-d-right-bottom .fs-img { object-position: right bottom; }
@media (max-width: 1023px) {
	.fs-pos-t-left-center .fs-img { object-position: left center; }
	.fs-pos-t-center-center .fs-img { object-position: center center; }
	.fs-pos-t-right-center .fs-img { object-position: right center; }
	.fs-pos-t-center-top .fs-img { object-position: center top; }
	.fs-pos-t-center-bottom .fs-img { object-position: center bottom; }
	.fs-pos-t-left-top .fs-img { object-position: left top; }
	.fs-pos-t-right-top .fs-img { object-position: right top; }
	.fs-pos-t-left-bottom .fs-img { object-position: left bottom; }
	.fs-pos-t-right-bottom .fs-img { object-position: right bottom; }
}
@media (max-width: 767px) {
	.fs-pos-m-left-center .fs-img { object-position: left center; }
	.fs-pos-m-center-center .fs-img { object-position: center center; }
	.fs-pos-m-right-center .fs-img { object-position: right center; }
	.fs-pos-m-center-top .fs-img { object-position: center top; }
	.fs-pos-m-center-bottom .fs-img { object-position: center bottom; }
	.fs-pos-m-left-top .fs-img { object-position: left top; }
	.fs-pos-m-right-top .fs-img { object-position: right top; }
	.fs-pos-m-left-bottom .fs-img { object-position: left bottom; }
	.fs-pos-m-right-bottom .fs-img { object-position: right bottom; }
}
