/* ==========================================================================
   Banner (hero) — réplica do site de referência, editável pelo widget
   Elementor "Banner (Hero)". Os valores padrão abaixo são os da referência;
   o widget sobrescreve via CSS gerado pelo Elementor.
   ========================================================================== */

.sm-hero {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: stretch;
	width: 100vw;
	margin-top: -33px;
	margin-left: calc(50% - 50vw);
	padding-top: 60px;
	min-height: 37vh;
	background-color: #027635;
}

.sm-hero__inner {
	width: 100%;
	max-width: 1369px;
	margin: 0 auto;
	padding: 0;
}

/* #slider-banner -------------------------------------------------------- */
.sm-hero__slider {
	position: relative;
	border: var(--sm-hero-border-width, 2px) solid var(--sm-hero-border-color, #ffffff);
	border-bottom: none;
	border-top-left-radius: var(--sm-hero-radius, 20px);
	border-top-right-radius: var(--sm-hero-radius, 20px);
	overflow: visible;
}

/* Pill rosa atravessando a borda superior */
.sm-hero__pill {
	position: absolute;
	top: var(--sm-hero-pill-top, -10px);
	left: var(--sm-hero-pill-left, 40px);
	display: var(--sm-hero-pill-display, flex);
	align-items: center;
	justify-content: center;
	width: var(--sm-hero-pill-width, 62px);
	height: var(--sm-hero-pill-height, 20px);
	background: var(--sm-hero-pill-color, #d9006f);
	border-radius: var(--sm-hero-pill-radius, 20px);
	color: var(--sm-hero-pill-text-color, #ffffff);
	font-family: var(--sm-hero-pill-font, 'Nunito', 'Roboto', sans-serif);
	font-size: var(--sm-hero-pill-font-size, 12px);
	font-weight: var(--sm-hero-pill-font-weight, 700);
	line-height: 1;
	z-index: 5;
}

.sm-hero__track,
.sm-hero__slides {
	border-top-left-radius: var(--sm-hero-radius, 20px);
	border-top-right-radius: var(--sm-hero-radius, 20px);
}

.sm-hero__slides {
	position: relative;
}

/* Slide ---------------------------------------------------------------- */
.sm-hero__slide {
	display: none;
	position: relative;
	height: var(--sm-hero-height, 494px);
	overflow: hidden;
	border-top-left-radius: calc(var(--sm-hero-radius, 20px) - var(--sm-hero-border-width, 2px));
	border-top-right-radius: calc(var(--sm-hero-radius, 20px) - var(--sm-hero-border-width, 2px));
}

.sm-hero__slide.is-active {
	display: block;
}

.sm-hero__bg {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
	background-size: var(--sm-hero-image-fit, 85% auto);
	background-position: left 0;
}

/* Conteúdo (título + botão) à direita ----------------------------------- */
.sm-hero__link {
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	height: 100%;
	text-decoration: none;
}

.sm-hero__contents {
	max-width: var(--sm-hero-contents-width, 53%);
	padding: 44px 44px 0 0;
	text-align: right;
}

.sm-hero__btn-link {
	display: inline-block;
	text-decoration: none;
}

.sm-hero__heading {
	margin: 0 0 20px;
	color: var(--sm-hero-heading-color, #ffffff);
	font-family: var(--sm-hero-heading-font, 'Nunito', 'Roboto', sans-serif);
	font-size: var(--sm-hero-heading-size, 44px);
	font-weight: var(--sm-hero-heading-weight, 600);
	line-height: 1.2;
	text-transform: none;
}

.sm-hero__button {
	display: inline-block;
	padding: 14px 32px;
	background-color: var(--sm-hero-button-bg, #d50170);
	border: var(--sm-hero-button-border-width, 0) solid var(--sm-hero-button-border-color, transparent);
	border-radius: var(--sm-hero-button-radius, 12px);
	color: var(--sm-hero-button-color, #fdc500);
	font-family: var(--sm-hero-button-font, 'Inter', sans-serif);
	font-size: var(--sm-hero-button-size, 18px);
	font-weight: var(--sm-hero-button-weight, 700);
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

a.sm-hero__link:hover .sm-hero__button,
a.sm-hero__btn-link:hover .sm-hero__button {
	background-color: var(--sm-hero-button-hover-bg, #b3015f);
	color: var(--sm-hero-button-hover-color, #ffd84d);
}

/* Setas ---------------------------------------------------------------- */
.sm-hero__arrow {
	position: absolute;
	top: 80%;
	transform: translateY(-50%);
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: var(--sm-hero-arrow-bg, transparent);
	border-radius: var(--sm-hero-arrow-radius, 50%);
	color: var(--sm-hero-arrow-color, #ffffff);
	cursor: pointer;
	transition: color 0.25s ease, background-color 0.25s ease;
}

.sm-hero__arrow:hover {
	color: var(--sm-hero-arrow-hover-color, #fdc500);
}

.sm-hero__arrow--prev {
	left: 16px;
}

.sm-hero__arrow--next {
	right: 16px;
}

.sm-hero__arrow svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

/* Paginação (bolinhas) -------------------------------------------------- */
.sm-hero__pagination {
	position: absolute;
	top: 280px;
	right: 0;
	z-index: 6;
	display: flex;
	gap: var(--sm-hero-pagination-gap, 2px);
	width: 100px;
	margin-right: 40px;
	margin-left: auto;
}

.sm-hero__pagination span {
	display: block;
	width: var(--sm-hero-pagination-size, 17px);
	height: var(--sm-hero-pagination-size, 17px);
	border-radius: var(--sm-hero-pagination-radius, 50%);
	background-color: var(--sm-hero-pagination-idle, #d9d9d9);
	cursor: pointer;
	transition: background-color 0.25s ease;
}

.sm-hero__pagination span.is-active {
	background-color: var(--sm-hero-pagination-active, #fdc500);
}

/* Mobile ------------------------------------------------------------------ */
@media (max-width: 767px) {
	.sm-hero {
		padding-top: 30px;
	}

	.sm-hero__inner {
		padding: 0 16px;
	}

	.sm-hero__slider {
		border-radius: 20px;
	}

	.sm-hero__slide {
		height: var(--sm-hero-mobile-height, 380px);
	}

	.sm-hero__bg {
		background-position: center top;
		background-size: var(--sm-hero-image-fit-mobile, cover);
	}

	.sm-hero__contents {
		max-width: 100%;
		padding: 30px 20px 0;
	}

	.sm-hero__heading {
		font-size: var(--sm-hero-heading-mobile-size, 24px);
		line-height: 1.2;
	}

	.sm-hero__subheading {
		font-size: 14px;
		margin-top: 8px;
	}

	.sm-hero__button {
		font-size: 14px;
		padding: 10px 22px;
		margin-top: 16px;
	}

	.sm-hero__arrow {
		top: 85%;
		width: 32px;
		height: 32px;
	}

	.sm-hero__pagination {
		top: auto;
		bottom: 16px;
		width: 80px;
	}

	.sm-hero__pagination span {
		width: var(--sm-hero-pagination-mobile-size, 8px);
		height: var(--sm-hero-pagination-mobile-size, 8px);
	}
}
