.hhs-slider {
	--hhs-accent: var(--bde-palette-arancione-4881cd5d-0572-456d-9f6a-4a50b161248e-3, #db3b26);
	position: relative;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto;
	overflow: hidden;
}

/* All slides share one grid cell: the slider is as tall as the tallest picture. */
.hhs-track {
	display: grid;
	position: relative;
	overflow: hidden;
}

.hhs-slide {
	grid-area: 1 / 1;
	align-self: center;
	position: relative;
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s ease, visibility 0s linear .7s;
}

.hhs-slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity .7s ease, visibility 0s;
	z-index: 1;
}

.hhs-picture-link {
	display: block;
}

.hhs-slide picture,
.hhs-slide img {
	display: block;
	width: 100%;
	height: auto;
}

.hhs-btn {
	position: absolute;
	left: var(--hhs-x, 80%);
	top: var(--hhs-y, 80%);
	transform: translate(calc(-50% + var(--hhs-dx, 0px)), calc(-50% + var(--hhs-dy, 0px)));
	z-index: 2;
	display: inline-block;
	padding: 12px 26px;
	border-radius: 8px;
	font-family: FuturaStdBook, "Futura", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none !important;
	transition: filter .2s ease, transform .2s ease;
}

.hhs-btn:hover,
.hhs-btn:focus-visible {
	filter: brightness(1.1);
	transform: translate(calc(-50% + var(--hhs-dx, 0px)), calc(-50% + var(--hhs-dy, 0px))) scale(1.04);
}

.hhs-btn-red,
.hhs-btn-red:hover,
.hhs-btn-red:focus {
	background: var(--hhs-accent);
	color: #fff !important;
}

.hhs-btn-white,
.hhs-btn-white:hover,
.hhs-btn-white:focus {
	background: #fff;
	color: var(--hhs-accent) !important;
}

.hhs-btn-dark,
.hhs-btn-dark:hover,
.hhs-btn-dark:focus {
	background: #202020;
	color: #fff !important;
}

.hhs-arrow {
	position: absolute;
	top: calc(50% - 15px);
	z-index: 3;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s ease, background .2s ease;
}

.hhs-slider:hover .hhs-arrow,
.hhs-arrow:focus-visible {
	opacity: 1;
}

.hhs-arrow:hover {
	background: rgba(0, 0, 0, .6);
}

.hhs-arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
}

.hhs-prev {
	left: 16px;
}

.hhs-prev::before {
	transform: translate(-30%, -50%) rotate(135deg);
}

.hhs-next {
	right: 16px;
}

.hhs-next::before {
	transform: translate(-70%, -50%) rotate(-45deg);
}

/* Below the picture: the pictures carry their own text, the dots must not cover it. */
.hhs-dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding: 10px 0 0;
}

.hhs-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c9c9c9;
	cursor: pointer;
}

.hhs-dot.is-active {
	background: var(--hhs-accent);
}

@media (max-width: 767px) {
	.hhs-btn {
		left: var(--hhs-xm, 50%);
		top: var(--hhs-ym, 85%);
		padding: 10px 20px;
		font-size: 14px;
	}

	.hhs-btn-hide-mobile {
		display: none;
	}

	.hhs-arrow {
		display: none;
	}

	.hhs-dots {
		gap: 6px;
		padding-top: 8px;
	}

	.hhs-dot {
		width: 8px;
		height: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hhs-slide,
	.hhs-slide.is-active,
	.hhs-btn {
		transition: none;
	}
}
