/* Hero carrossel — Rudia Travels FSE */

.rudia-hero-with-carousel {
	position: relative;
	margin-top: 0;
	margin-bottom: 0;
	background-color: #0e1215;
}

/* Título do hero: overlay mais leve → sombra reforçada para leitura */
.rudia-hero-carousel__slide .rudia-hero-carousel__content h1 {
	color: #fff !important;
	text-shadow:
		0 2px 28px rgba(0, 0, 0, 0.5),
		0 1px 4px rgba(0, 0, 0, 0.75);
}

.rudia-hero-carousel__slide .rudia-hero-carousel__badge {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.rudia-hero-carousel {
	position: relative;
	width: 100%;
	min-height: min(78vh, 720px);
	overflow: hidden;
	background: #0e1215;
}

.rudia-hero-carousel__viewport {
	position: relative;
	min-height: min(78vh, 720px);
}

.rudia-hero-carousel__track {
	display: flex;
	height: 100%;
	min-height: min(78vh, 720px);
	transition: transform 0.55s ease;
	will-change: transform;
}

.rudia-hero-carousel[data-reduced-motion="1"] .rudia-hero-carousel__track {
	transition: none;
}

.rudia-hero-carousel__slide {
	flex: 0 0 100%;
	width: 100%;
	min-height: min(78vh, 720px);
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 4rem 1.25rem 4.5rem;
	box-sizing: border-box;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Só escurece a zona inferior para texto/botões; o topo da foto fica quase sem filtro */
.rudia-hero-carousel__dim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.5) 0%,
		rgba(0, 0, 0, 0.12) 35%,
		transparent 58%
	);
	z-index: 0;
	pointer-events: none;
}

.rudia-hero-carousel__content {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	text-align: center;
	color: #fff;
}

.rudia-hero-carousel__content h1 {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.15;
	font-weight: 600;
	text-shadow:
		0 2px 28px rgba(0, 0, 0, 0.5),
		0 1px 4px rgba(0, 0, 0, 0.75);
}

.rudia-hero-carousel__content p {
	margin: 0 0 1.5rem;
	font-size: 1.05rem;
	line-height: 1.65;
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
	opacity: 0.98;
	text-shadow:
		0 1px 14px rgba(0, 0, 0, 0.55),
		0 1px 3px rgba(0, 0, 0, 0.65);
}

.rudia-hero-carousel__badge {
	display: inline-block;
	margin-bottom: 0.75rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: rgba(127, 159, 144, 0.95);
	color: #fff;
	border-radius: 999px;
}

.rudia-hero-carousel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	align-items: center;
}

.rudia-hero-carousel__actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.rudia-hero-carousel__actions a:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.rudia-hero-carousel__btn--primary:hover,
.rudia-hero-carousel__btn--primary:focus-visible {
	background: #6f8d7f;
	border-color: #6f8d7f;
	color: #fff;
}

.rudia-hero-carousel__btn--primary {
	background: #7f9f90;
	color: #fff;
	border: 2px solid #7f9f90;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.rudia-hero-carousel__btn--outline {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.65);
}

.rudia-hero-carousel__prev,
.rudia-hero-carousel__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transition: background 0.2s ease;
}

.rudia-hero-carousel__prev:hover,
.rudia-hero-carousel__next:hover,
.rudia-hero-carousel__prev:focus-visible,
.rudia-hero-carousel__next:focus-visible {
	background: rgba(255, 255, 255, 0.3);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.rudia-hero-carousel__prev {
	left: 0.75rem;
}

.rudia-hero-carousel__next {
	right: 0.75rem;
}

.rudia-hero-carousel__dots {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.rudia-hero-carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.6);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.rudia-hero-carousel__dot:hover,
.rudia-hero-carousel__dot:focus-visible {
	background: rgba(255, 255, 255, 0.5);
	outline: none;
}

.rudia-hero-carousel__dot.is-active {
	background: #fff;
	border-color: #fff;
	transform: scale(1.15);
}

.rudia-hero-carousel__dot:focus-visible {
	box-shadow: 0 0 0 2px #7f9f90;
}

@media (max-width: 600px) {
	.rudia-hero-carousel__prev,
	.rudia-hero-carousel__next {
		width: 38px;
		height: 38px;
		font-size: 1.25rem;
	}

	.rudia-hero-carousel__prev {
		left: 0.35rem;
	}

	.rudia-hero-carousel__next {
		right: 0.35rem;
	}
}
