/* ==========================================================
   Thymos Analysis Steps Slider
   Tre card per pagina + movimento verticale + scroll-lock
   ========================================================== */

.thymos-steps-slider {
	--th-steps-column-gap: 24px;
	--th-steps-row-gap: 28px;
	--th-steps-speed: 650ms;
	--th-steps-per-view: 3;
	--th-steps-page-height: 405px;
	--th-steps-card-top: #670627;
	--th-steps-card-bottom: rgba(138, 20, 31, 0.20);

	position: relative;
	width: 100%;
	box-sizing: border-box;
	outline: none;
}

.thymos-steps-slider:focus-visible {
	outline: 2px solid #d4e4f3;
	outline-offset: 5px;
}

.thymos-steps-slider__viewport {
	position: relative;
	height: 405px;
	margin-right: 72px;
	overflow: hidden;
}

.thymos-steps-slider__track {
	display: grid;
	grid-template-columns: repeat(var(--th-steps-per-view, 3), minmax(0, 1fr));
	grid-auto-rows: var(--th-steps-page-height, 405px);
	column-gap: var(--th-steps-column-gap);
	row-gap: var(--th-steps-row-gap);
	width: 100%;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	transition: transform var(--th-steps-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.thymos-steps-slider__item {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	min-width: 0;
	height: 100%;
	padding: 42px 34px 40px;
	box-sizing: border-box;
	overflow: hidden;
	background: linear-gradient(
		180deg,
		var(--th-steps-card-top) 0%,
		var(--th-steps-card-bottom) 100%
	);
	border-radius: 44px;
}

.thymos-steps-slider__number {
	flex: 0 0 auto;
	margin-bottom: clamp(22px, 3vw, 40px);
	color: #d4e4f3;
	font-family: var(--th-font-heading, "the-seasons", "The Seasons", Georgia, serif);
	font-size: clamp(82px, 7vw, 120px);
	font-style: normal;
	font-weight: 400;
	line-height: 0.82;
	text-align: center;
}

.thymos-steps-slider__content {
	color: #d4e4f3;
	font-family: var(--th-font-body, "area-normal", "Area Normal", Arial, sans-serif);
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.15;
}

.thymos-steps-slider__content p {
	margin: 0;
	line-height: inherit;
}

.thymos-steps-slider__content strong,
.thymos-steps-slider__content b {
	color: inherit;
	font-weight: 900;
}

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

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

.thymos-steps-slider__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-steps-slider__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-steps-slider__arrow--prev:hover:not(:disabled),
.thymos-steps-slider__arrow--prev:focus-visible:not(:disabled) {
	color: #8a141f;
	transform: translateY(-3px);
}

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

.thymos-steps-slider__arrow:focus-visible {
	outline: 2px solid #d4e4f3;
	outline-offset: 2px;
}

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

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



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


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

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

.thymos-steps-slider__bullet:not(.is-active) {
	opacity: 0.95;
	background-color: rgba(0, 0, 0, 0) !important;
}

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

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

@media (max-width: 1024px) {
	.thymos-steps-slider__viewport {
		height: 390px;
		margin-right: 54px;
	}

	.thymos-steps-slider__item {
		padding: 34px 28px;
		border-radius: 36px;
	}

	.thymos-steps-slider__number {
		font-size: clamp(72px, 11vw, 104px);
	}

	.thymos-steps-slider__pagination {
		right: 12px;
	}
}

@media (max-width: 767px) {
	.thymos-steps-slider {
		--th-steps-column-gap: 16px;
		--th-steps-row-gap: 20px;
	}

	.thymos-steps-slider__viewport {
		height: 390px;
		margin-right: 38px;
	}

	.thymos-steps-slider__item {
		padding: 30px 24px;
		border-radius: 28px;
	}

	.thymos-steps-slider__number {
		margin-bottom: 24px;
		font-size: clamp(70px, 24vw, 98px);
	}

	.thymos-steps-slider__content {
		font-size: 16px;
		line-height: 1.25;
	}

	.thymos-steps-slider__pagination {
		right: 6px;
		gap: 7px;
	}

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

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

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

@media (prefers-reduced-motion: reduce) {
	.thymos-steps-slider__track,
	.thymos-steps-slider__bullet,
	.thymos-steps-slider__arrow {
		transition-duration: 0.01ms !important;
	}
}

/* Scroll-lock 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: 1024px), (hover: none), (pointer: coarse) {
	.has-thymos-scroll-lock.is-thymos-scroll-locked {
		overscroll-behavior: auto;
		touch-action: none;
	}
}
