.sm-hero-slider {
	--sm-hero-min-height: 520px;
	position: relative;
	width: 100%;
	margin: 0;
	color: #fff;
}

.sm-hero-slider--fullwidth {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	--sm-container-max: 1170px;
	--sm-container-pad: 15px;
	--sm-container-inset: max(
		var(--sm-container-pad),
		calc((100vw - var(--sm-container-max)) / 2 + var(--sm-container-pad))
	);
}

.sm-hero-slider__viewport {
	position: relative;
	overflow: hidden;
	min-height: var(--sm-hero-min-height);
	background: #1a1a1a;
}

.sm-hero-slider--has-separator .sm-hero-slide__content {
	padding-bottom: 72px;
}

.sm-hero-slider__track {
	position: relative;
	width: 100%;
	min-height: var(--sm-hero-min-height);
}

.sm-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.55s ease, visibility 0.55s ease;
	pointer-events: none;
}

.sm-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.sm-hero-slide__media,
.sm-hero-slide__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.sm-hero-slide__image {
	object-fit: cover;
	object-position: center;
}

.sm-hero-slider--set-vw-km-zero .sm-hero-slide__image {
	object-position: center 40%;
}

.sm-hero-slide__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.62) 0%,
		rgba(0, 0, 0, 0.28) 55%,
		rgba(0, 0, 0, 0.08) 100%
	);
	z-index: 2;
}

.sm-hero-slide__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 1170px;
	padding: 48px 15px 56px;
	box-sizing: border-box;
}

.sm-hero-slider:not(.sm-hero-slider--fullwidth) .sm-hero-slide__content {
	max-width: none;
}

.sm-hero-slide__title {
	margin: 0 0 12px;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	line-height: 1.15;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.sm-hero-slide__subtitle {
	margin: 0 0 20px;
	font-size: clamp(1.375rem, 2.6vw, 1.625rem);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.92);
	max-width: 560px;
}

.sm-hero-slide__cta {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 3px;
	background: #e60000;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.2s ease;
}

.sm-hero-slide__cta--sopra {
	margin: 0 0 16px;
}

.sm-hero-slide__cta--sotto {
	margin: 0;
}

.sm-hero-slide__cta:hover {
	background: #d90707;
	color: #fff !important;
	transform: translateY(-1px);
}

.sm-hero-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}

.sm-hero-slider__arrow:hover {
	background: rgba(0, 0, 0, 0.72);
}

.sm-hero-slider__arrow--prev {
	left: 16px;
}

.sm-hero-slider__arrow--next {
	right: 16px;
}

.sm-hero-slider--fullwidth .sm-hero-slider__arrow--prev {
	left: var(--sm-container-inset);
}

.sm-hero-slider--fullwidth .sm-hero-slider__arrow--next {
	right: var(--sm-container-inset);
}

.sm-hero-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 34px;
	z-index: 7;
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 0;
	background: transparent;
}

.sm-hero-slider__separator {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 6;
	height: 48px;
	pointer-events: none;
	line-height: 0;
}

.sm-hero-slider__separator svg {
	display: block;
	width: 100%;
	height: 100%;
	transform: translateZ(0);
	color: transparent;
}

.sm-hero-slider__separator svg path {
	fill: #ffffff;
}

.sm-hero-slider__separator svg .sm-hero-slider__separator-ribbon,
.sm-hero-slider__separator svg path.sm-hero-slider__separator-ribbon {
	fill: #e60000 !important;
}

.sm-hero-slider__separator svg .sm-hero-slider__separator-base,
.sm-hero-slider__separator svg path.sm-hero-slider__separator-base {
	fill: #ffffff !important;
}

.sm-hero-slider__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease;
}

.sm-hero-slider__dot.is-active {
	background: #e60000;
	transform: scale(1.15);
}

@media screen and (max-width: 768px) {
	.sm-hero-slider {
		--sm-hero-min-height: 360px;
	}

	.sm-hero-slide__content {
		padding: 28px 15px 36px;
	}

	.sm-hero-slide__overlay {
		background: linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.05) 0%,
			rgba(0, 0, 0, 0.55) 70%,
			rgba(0, 0, 0, 0.72) 100%
		);
	}

	.sm-hero-slider__arrow {
		width: 36px;
		height: 36px;
		font-size: 22px;
	}

	.sm-hero-slider__arrow--prev {
		left: 8px;
	}

	.sm-hero-slider--fullwidth .sm-hero-slider__arrow--prev {
		left: max(8px, var(--sm-container-inset));
	}

	.sm-hero-slider--has-separator .sm-hero-slide__content {
		padding-bottom: 58px;
	}

	.sm-hero-slider__dots {
		bottom: 28px;
	}

	.sm-hero-slider__separator {
		height: 36px;
	}

	.sm-hero-slider__arrow--next {
		right: 8px;
	}

	.sm-hero-slider--fullwidth .sm-hero-slider__arrow--next {
		right: max(8px, var(--sm-container-inset));
	}
}

@media (prefers-reduced-motion: reduce) {
	.sm-hero-slide {
		transition: none;
	}

	.sm-hero-slide__cta,
	.sm-hero-slider__arrow,
	.sm-hero-slider__dot {
		transition: none;
	}
}
