/* ==========================================================
   Thymos Vertical Plus Slider
   Versione con stile personalizzato Thymos + scroll-lock fascia
   ========================================================== */

.thymos-vslider {
	/* Proprietà funzionali necessarie al widget.
	   Nessun padding/background/raggio viene imposto qui,
	   così restano valide le personalizzazioni Elementor. */
	--th-vslider-gap: 18px;
	--th-vslider-number-width: 150px;
	--th-vslider-speed: 650ms;

	position: relative;
	isolation: isolate;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	outline: none;
}

.thymos-vslider:focus-visible {
	outline: 2px solid #8a141f;
	outline-offset: 4px;
}

.thymos-vslider__viewport {
	position: relative;
	height: 520px;
	overflow: hidden;
}

.thymos-vslider__track {
	display: flex;
	flex-direction: column;
	gap: var(--th-vslider-gap);
	height: 100%;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	transition: transform var(--th-vslider-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.thymos-vslider__item {
	display: grid;
	grid-template-columns: var(--th-vslider-number-width) minmax(0, 1fr);
	align-items: center;
	column-gap: clamp(20px, 4vw, 40px);
	flex: 0 0 calc(
		(100% - ((var(--th-vslider-per-view, 3) - 1) * var(--th-vslider-gap))) /
		var(--th-vslider-per-view, 3)
	);
	min-height: 0;
	box-sizing: border-box;
}

.thymos-vslider__number {
	color: #8a141f;
	font-family: var(--th-font-heading, "TheSeasons", Georgia, serif);
	font-size: clamp(68px, 7vw, 120px);
	font-weight: 400;
	line-height: 0.82;
	text-align: center;
}

.thymos-vslider__content {
	max-width: 630px;
	color: #322d29;
	font-family: var(--th-font-body, "Instrument Sans", system-ui, sans-serif);
	font-size: clamp(18px, 1.5vw, 24px);
	font-weight: 400;
	line-height: 1.1;
}

.thymos-vslider__content p {
	margin: 0;
	line-height: 1.2;
}

.thymos-vslider__content strong,
.thymos-vslider__content b {
	color: #670627;
	font-weight: 900;
}

.thymos-vslider__pagination {
	position: absolute;
	top: 50%;
	right: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	transform: translateY(-50%);
	z-index: 4;
}

.thymos-vslider__bullets {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.thymos-vslider__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50%;
	color: #670627!important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition:
		color 260ms ease,
		opacity 260ms ease,
		transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.thymos-vslider__arrow svg {
	display: block;
	width: 42px;
	height: 42px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
}

.thymos-vslider__arrow--prev:hover:not(:disabled),
.thymos-vslider__arrow--prev:focus-visible:not(:disabled) {
	color: #8a141f;
	transform: translateY(-3px);
}

.thymos-vslider__arrow--next:hover:not(:disabled),
.thymos-vslider__arrow--next:focus-visible:not(:disabled) {
	color: #8a141f;
	transform: translateY(3px);
}

.thymos-vslider__arrow:focus-visible {
	outline: 2px solid #8a141f;
	outline-offset: 2px;
}

.thymos-vslider__arrow:disabled {
	opacity: 0.28;
	cursor: default;
}

.thymos-vslider__bullet {
	display: block;
	width: 20px;
	height: 40px;
	margin: 0;
	padding: 0 !important;
	border: 3px solid #670627;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	transition:
		background-color 320ms ease,
		border-color 320ms ease,
		transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
		opacity 320ms ease;
}

.thymos-vslider__bullet:hover,
.thymos-vslider__bullet:focus-visible {
	transform: scaleY(1.08);
	background-color: #43051a!important;
	background-image: none!important;
	border-color: #43051a!important;
}

.thymos-vslider__bullet:focus-visible {
	outline: none;
	outline-offset: 0;
}

.thymos-vslider__bullet.is-active {
	background: #670627;
	border-color: #670627;
}

.thymos-vslider__bullet:not(.is-active) {
	opacity: 0.9;
	background-color: rgba(0, 0, 0, 0) !important;
	background-image: none;
}

.thymos-vslider__pagination[hidden] {
	display: none;
}

.thymos-vslider__bullet:focus {
	background-color: #670627!important;
	background-image: none !important;
}

@media (max-width: 1024px) {
	.thymos-vslider {
		padding: 44px 52px;
	}

	.thymos-vslider__viewport {
		height: 520px;
	}

	.thymos-vslider__item {
		column-gap: 32px;
	}

	.thymos-vslider__pagination {
		right: 18px;
	}
}

/* ==========================================================
   Breakpoint speciale fascia Plus

   > 1110px: 3 punti
   991px - 1110px: 2 punti, perché la fascia è ancora a due colonne
   768px - 990px: 3 punti, perché Elementor porta lo slider a tutta larghezza
   <= 767px: 1 punto
   ========================================================== */

@media (min-width: 991px) and (max-width: 1110px) {
	.thymos-vslider {
		--th-vslider-number-width: 112px;
	}

	.thymos-vslider__viewport {
		height: 400px;
	}

	.thymos-vslider__item {
		column-gap: 26px;
	}

	.thymos-vslider__number {
		font-size: clamp(74px, 8vw, 100px);
	}

	.thymos-vslider__content {
		max-width: 100%;
		font-size: clamp(17px, 1.8vw, 22px);
	}
}

@media (min-width: 768px) and (max-width: 990px) {
	.thymos-vslider {
		--th-vslider-number-width: 116px;
		padding: 38px 52px;
	}

	.thymos-vslider__viewport {
		height: 520px;
	}

	.thymos-vslider__item {
		column-gap: 28px;
	}

	.thymos-vslider__number {
		font-size: clamp(70px, 10vw, 98px);
	}

	.thymos-vslider__content {
		max-width: 100%;
		font-size: clamp(17px, 2.15vw, 21px);
	}
}

@media (max-width: 767px) {
	.thymos-vslider {
		--th-vslider-number-width: 76px;
		padding: 34px 38px 34px 24px;
		border-radius: 28px;
	}

	.thymos-vslider__viewport {
		height: 360px;
	}

	.thymos-vslider__item {
		column-gap: 18px;
	}

	.thymos-vslider__number {
		font-size: clamp(54px, 18vw, 78px);
	}

	.thymos-vslider__content {
		font-size: 18px;
		line-height: 1.35;
	}

	.thymos-vslider__pagination {
		right: 12px;
		gap: 7px;
	}

	.thymos-vslider__bullets {
		gap: 7px;
	}

	.thymos-vslider__arrow {
		width: 28px;
		height: 28px;
		min-width: 28px;
		min-height: 28px;
	}

	.thymos-vslider__arrow svg {
		width: 18px;
		height: 18px;
	}

	.thymos-vslider__bullet {
		width: 11px;
		height: 28px;
		border-width: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.thymos-vslider__track,
	.thymos-vslider__bullet,
	.thymos-vslider__arrow {
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================
   Scroll-lock desktop della fascia contenente il widget
   ========================================================== */

.has-thymos-scroll-lock {
	scroll-margin-top: 110px;
}

.has-thymos-scroll-lock.is-thymos-scroll-locked {
	overscroll-behavior: contain;
}

@media (max-width: 767px), (hover: none), (pointer: coarse) {
	.has-thymos-scroll-lock.is-thymos-scroll-locked {
		overscroll-behavior: auto;
		touch-action: none;
	}
}
