/* =====================================================================
   home.css — hero, banner de parceiros, atalhos e faixa de chamada da home
   ===================================================================== */

.hero {
	display: flex;
	align-items: stretch;
	gap: 18px;
	margin-bottom: 24px;
}

.hero__search,
.hero__banner {
	border-radius: var(--radius-lg);
	min-height: 260px;
	box-shadow: var(--shadow);
}

.hero__search {
	flex: 1 1 62%;
	padding: 28px;
	background:
		linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.02)),
		linear-gradient(120deg, #9fc635 0%, #6d9e11 42%, #3f6a0f 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
}

.hero__search h1 {
	font-size: clamp(1.6rem, 2.4vw, 2.3rem);
	line-height: 1.12;
	max-width: 760px;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.hero__search p {
	max-width: 720px;
	color: rgba(255, 255, 255, 0.94);
}

.hero__filters {
	display: grid;
	grid-template-columns: 1.3fr 0.85fr 0.85fr auto;
	gap: 10px;
	margin-top: 6px;
}

.hero__filters input,
.hero__filters select {
	min-width: 0;
	height: 46px;
	border: 0;
	border-radius: 9px;
	padding: 0 14px;
	background: rgba(255, 255, 255, 0.96);
	color: var(--text);
}

.hero__filters button {
	border-radius: 9px;
	padding-inline: 26px;
}

.hero__hint {
	font-size: 0.86rem;
	color: rgba(255, 255, 255, 0.88);
	margin-top: -4px;
}

.hero__hint strong {
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	border-radius: 6px;
	padding: 1px 6px;
}

.hero__stats {
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.9);
}

.hero__stats strong {
	font-size: 1.05rem;
	color: #fff;
}

/* --- Espaço publicitário das lojas parceiras -------------------------- */
.hero__banner {
	flex: 1 1 34%;
	position: relative;
	overflow: hidden;
	display: flex;
	background: #e7e9e0;
	min-width: 0;
}

.hero__carousel {
	position: absolute;
	inset: 0;
}

/* Identificação obrigatória do conteúdo pago (art. 36 do CDC). */
.hero__banner-selo {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	background: rgba(0, 0, 0, 0.62);
	color: #fff;
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 999px;
}

/* A arte do parceiro aparece inteira, sem corte: o anunciante paga pela
   peça como ela foi entregue. */
.hero__banner .hero__slide img {
	object-fit: contain;
	background: #fff;
}

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

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

/* A imagem cobre todo o quadro: sem faixas nas laterais nem no topo. */
.hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.hero__slide-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 40px 18px 18px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 100%);
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hero__slide-caption strong {
	font-size: 1.02rem;
	line-height: 1.28;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
}

.hero__slide-caption em {
	font-style: normal;
	font-size: 0.86rem;
	opacity: 0.88;
}

.hero__carousel-dots {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: inline-flex;
	gap: 7px;
	z-index: 3;
}

.hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease;
}

.hero__dot.is-active {
	background: #fff;
	transform: scale(1.2);
}

.hero__banner-vazio {
	margin: auto;
	padding: 24px;
	text-align: center;
	display: grid;
	gap: 10px;
	justify-items: center;
}

.hero__banner-vazio strong {
	font-size: 1.15rem;
	color: #2b3324;
}

.hero__banner-vazio p {
	color: var(--muted);
	font-size: 0.92rem;
}

/* --- Atalhos por tipo ------------------------------------------------ */
.atalhos {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 6px;
}

.atalho {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--shadow-soft);
	font-size: 0.9rem;
	font-weight: 600;
	transition: border-color 150ms ease, transform 150ms ease;
}

.atalho:hover {
	border-color: var(--green);
	transform: translateY(-2px);
}

.atalho__total {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--green-wash);
	color: var(--green-dark);
	font-size: 0.78rem;
	font-weight: 700;
}

/* --- Faixa de chamada ----------------------------------------------- */
.faixa-cta {
	margin-top: 36px;
	padding: 26px 28px;
	border-radius: var(--radius-lg);
	background: linear-gradient(120deg, #2b3324 0%, #405228 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	box-shadow: var(--shadow);
}

.faixa-cta h2 {
	color: #fff;
	font-size: 1.32rem;
	margin-bottom: 6px;
}

.faixa-cta p {
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.95rem;
}

.faixa-cta__acoes {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

@media (max-width: 1100px) {
	.hero {
		flex-direction: column;
	}

	.hero__banner {
		min-height: 300px;
	}
}

@media (max-width: 680px) {
	.hero__filters {
		grid-template-columns: 1fr;
	}

	.hero__search {
		padding: 22px;
	}

	.faixa-cta {
		padding: 22px;
	}

	.faixa-cta__acoes .button {
		flex: 1 1 140px;
	}
}
