.rhs-slider {
	position: relative;
	width: 100%;
	height: var(--rhs-height, 520px);
	overflow: hidden;
	background: #222;
}

.rhs-slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.rhs-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease;
	display: flex;
	align-items: center;
}

.rhs-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.rhs-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(20, 25, 35, 0.55); /* fallback, sovrascritto inline per ogni slide */
}

.rhs-content {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: center;
	color: #fff;
}

.rhs-logo {
	margin-bottom: 22px;
}

.rhs-logo img {
	max-height: 130px;
	width: auto;
	margin: 0 auto;
	display: block;
}

.rhs-text {
	font-size: 17px;
	line-height: 1.6;
	margin-bottom: 26px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.rhs-text strong {
	font-weight: 700;
}

.rhs-text h1,
.rhs-text h2,
.rhs-text h3,
.rhs-text h4 {
	margin: 0 0 14px;
	line-height: 1.25;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.rhs-text h1 { font-size: 34px; font-weight: 700; }
.rhs-text h2 { font-size: 26px; font-weight: 700; }
.rhs-text h3 { font-size: 21px; font-weight: 600; }
.rhs-text h4 { font-size: 18px; font-weight: 600; }

.rhs-text p {
	margin: 0 0 14px;
}

.rhs-text p:last-child {
	margin-bottom: 0;
}

.rhs-buttons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
}

.rhs-btn {
	display: inline-block;
	background: #e8a020;
	color: #1a1a1a;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none;
	padding: 14px 26px;
	border-radius: 3px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.rhs-btn:hover {
	background: #f5b23a;
	color: #1a1a1a;
	transform: translateY(-2px);
}

/* Arrows */
.rhs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	background: transparent;
	border: none;
	color: #fff;
	width: 44px;
	height: 44px;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
	transition: transform 0.2s ease, opacity 0.2s ease;
	opacity: 0.85;
}

.rhs-arrow:hover {
	background: transparent;
	opacity: 1;
	transform: translateY(-50%) scale(1.15);
}

.rhs-prev {
	left: 20px;
}

.rhs-next {
	right: 20px;
}

@media (max-width: 782px) {
	/* Su mobile lo slide passa da posizionamento assoluto a flusso normale:
	   così l'altezza si adatta al contenuto reale e la foto di sfondo torna visibile
	   (con "height:auto" un elemento assoluto con altezza in percentuale collassava a 0). */
	.rhs-slider {
		height: auto;
	}

	.rhs-slides {
		height: auto;
	}

	.rhs-slide {
		position: relative;
		inset: auto;
		opacity: 1;
		visibility: visible;
		display: none;
		min-height: 520px;
		padding: 70px 0 90px;
	}

	.rhs-slide.is-active {
		display: flex;
	}

	.rhs-logo img {
		max-height: 90px;
	}
	.rhs-text {
		font-size: 15px;
	}
	.rhs-buttons {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.rhs-btn {
		padding: 14px 20px;
		font-size: 12px;
		width: 100%;
		text-align: center;
	}
	.rhs-arrow {
		width: 36px;
		height: 36px;
		font-size: 26px;
	}
	.rhs-prev { left: 8px; }
	.rhs-next { right: 8px; }
}
