/* ==========================================================================
   Carrossel
   ========================================================================== */

.hero {
	position: relative;
	max-width: var(--container-max-width);
	margin: 0 auto;
	padding: 0 1rem;
}

.hero__viewport {
	position: relative;
	overflow: hidden;
	height: 25rem;
	border-radius: var(--radius-image);
	background: var(--color-primary);
}

.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.6s ease;
	pointer-events: none;
}

.hero__slide--active {
	opacity: 1;
	pointer-events: auto;
}

.hero__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, #4DAB99 18%, rgba(77, 171, 153, 0.6) 55%, rgba(77, 171, 153, 0.12) 100%);
	pointer-events: none;
}

.hero__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.75rem;
	padding: 1.75rem 1.625rem;
	pointer-events: none;
}

.hero__title {
	margin: 0;
	color: #ffffff;
	font-size: 1.5rem;
	line-height: 1.25;
	font-weight: 700;
	max-width: 35rem;
	text-wrap: pretty;
}

.hero__cta {
	align-self: flex-start;
	background: var(--color-secondary);
	color: #ffffff;
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.75rem 1.75rem;
	border-radius: var(--radius-button);
	cursor: pointer;
}

.hero__slide--active .hero__cta {
	pointer-events: auto;
}

.hero__cta:hover {
	background: var(--color-secondary-hover);
	color: #ffffff;
}

.hero__dots {
	position: absolute;
	bottom: 1.125rem;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.hero__dot {
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	border: none;
	padding: 0;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.45);
}

.hero__dot--active {
	background: #ffffff;
}

.hero__nav {
	display: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 2.375rem;
	height: 2.75rem;
	background: var(--color-secondary);
	border: none;
	border-radius: 0.25rem;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	z-index: 1;
	color: #ffffff;
	font-size: 0.75rem;
}

.hero__nav:hover {
	background: var(--color-secondary-hover);
}

.hero__nav--prev {
	left: 1rem;
}

.hero__nav--next {
	right: 1rem;
}

@media (min-width: 64rem) {

	.hero {
		padding: 0 1.75rem;
	}

	.hero__viewport {
		height: 30rem;
	}

	.hero__content {
		padding: 2.5rem 3.75rem 2.5rem 6.875rem;
	}

	.hero__title {
		font-size: 2.125rem;
	}

	.hero__nav {
		display: flex;
	}

	.hero__nav--prev {
		left: 3.5rem;
	}

	.hero__nav--next {
		right: 3.5rem;
	}
}
