/**
 * rg-home.css — Home page (front-page.php)
 *
 * Carregado apenas em: is_front_page()
 * Depende de: rg-global.css
 *
 * Figma: node 27:3 — Home page
 *   27:6 / 27:16  — Hero + busca
 *   27:80         — Adicionados recentemente
 *   27:178        — Bairros populares
 *   27:214        — Diferenciais
 *   27:256        — Formulário de lead
 *
 * @package HelloElementorChild
 * @since   0.9.0 — Sprint 9
 */


/* ==========================================================================
   0. SWITCH — radio-based sliding toggle (replicado do snippet busca home)
   ========================================================================== */

.rg-switch {
	position: relative;
	display: flex;
	width: 240px;
	height: 50px;
	background-color: #e9e9f0;
	border-radius: 12px;
	padding: 4px;
	box-sizing: border-box;
}

.rg-switch input[type="radio"] {
	position: absolute !important;
	clip: rect(0, 0, 0, 0);
	height: 1px;
	width: 1px;
	border: 0;
	overflow: hidden;
}

.rg-switch label {
	position: relative;
	z-index: 2;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-base);
	font-weight: var(--rg-font-weight-medium);
	color: #666;
	cursor: pointer;
	transition: color 0.7s ease;
	margin: 0;
	background: transparent !important;
	white-space: nowrap;
}

.rg-switch__glider {
	position: absolute;
	top: 4px;
	left: 4px;
	width: calc(50% - 4px);
	height: calc(100% - 8px);
	background-color: var(--rg-color-accent);
	border-radius: 10px;
	z-index: 1;
	transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Posição do glider baseada no radio checked — CSS-only */
.rg-switch input:nth-of-type(1):checked ~ .rg-switch__glider {
	transform: translateX(0);
}

.rg-switch input:nth-of-type(2):checked ~ .rg-switch__glider {
	transform: translateX(calc(100% + 0px));
}

.rg-switch input:checked + label {
	color: var(--rg-color-text-on-accent);
	font-weight: var(--rg-font-weight-bold);
}

/* Variante compacta (seção Recentes) */
.rg-switch--sm {
	width: 200px;
	height: 42px;
}

.rg-switch--sm label {
	font-size: var(--rg-text-sm);
}

@media (max-width: 480px) {
	.rg-switch {
		height: 44px;
		padding: 3px;
	}

	.rg-switch label {
		font-size: var(--rg-text-sm);
		padding: 0 8px;
	}

	.rg-switch__glider {
		top: 3px;
		left: 3px;
		width: calc(50% - 3px);
		height: calc(100% - 6px);
	}
}


/* ==========================================================================
   1. HERO
   ========================================================================== */

.rg-home-hero {
	position: relative;
	min-height: 680px;
	display: flex;
	align-items: center;
	background-color: var(--rg-color-primary);
	background-image: var(--rg-hero-bg, none);
	background-size: cover;
	background-position: center;
	padding-block: var(--rg-space-20);
}

.rg-home-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 5, 81, 0.03);
	pointer-events: none;
}

.rg-home-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: var(--rg-space-10);
	align-items: flex-start;
}

/* --- Texto hero --- */

.rg-home-hero__text {
	max-width: 640px;
}

.rg-home-hero__title {
	font-family: var(--rg-font-heading);
	font-size: 3.5rem; /* 56px — Figma */
	font-weight: var(--rg-font-weight-bold);
	color: var(--rg-color-text-on-dark); /* Branco */
	line-height: 1.15;
	margin: 0 0 var(--rg-space-4);
}

.rg-home-hero__subtitle {
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-lg); /* 20px */
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.6;
	margin: 0;
}

/* --- Card de busca flutuante --- */

.rg-home-search {
	background-color: var(--rg-color-bg-white);
	border-radius: var(--rg-radius-lg);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
	padding: var(--rg-space-6) var(--rg-space-8);
	width: 100%;
	max-width: 860px;
}

/* Toggle Comprar / Alugar — usa .rg-toggle (seção 0) */

#rg-hero-toggle {
	margin-bottom: var(--rg-space-5);
}

/* Campos */

.rg-home-search__fields {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: var(--rg-space-4);
	margin-bottom: var(--rg-space-5);
}

.rg-home-search__field--wide {
	grid-column: span 2;
}

.rg-home-search__label {
	display: block;
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-xs);
	font-weight: var(--rg-font-weight-medium);
	color: var(--rg-color-text-secondary);
	margin-bottom: var(--rg-space-1);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rg-home-search__input,
.rg-home-search__select {
	width: 100%;
	height: 44px;
	padding-inline: var(--rg-space-4);
	padding-block: var(--rg-space-3);
	border: 1px solid var(--rg-color-border);
	border-radius: var(--rg-radius);
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-base);
	color: var(--rg-color-text);
	background-color: var(--rg-color-bg-white);
	appearance: none;
	-webkit-appearance: none;
	transition: border-color var(--rg-transition-fast);
}

.rg-home-search__select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4a6a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: var(--rg-space-8);
}

.rg-home-search__input:focus,
.rg-home-search__select:focus {
	outline: 2px solid var(--rg-color-primary);
	outline-offset: 0;
	border-color: var(--rg-color-primary);
}

/* Botão buscar */

.rg-home-search__submit {
	background-color: var(--rg-color-accent);
	color: var(--rg-color-text-on-accent);
	width: 100%;
	height: 48px;
	font-size: var(--rg-text-base);
	font-weight: var(--rg-font-weight-bold);
	gap: var(--rg-space-2);
	justify-content: center;
}

.rg-home-search__submit:hover,
.rg-home-search__submit:focus-visible {
	background-color: var(--rg-color-accent-bright);
}

/* rg-btn base — deve vir de rg-global.css, reafirmado aqui como scoped */
.rg-home-search .rg-btn {
	display: flex;
	align-items: center;
	border: none;
	border-radius: var(--rg-radius);
	padding: var(--rg-space-3) var(--rg-space-8);
	cursor: pointer;
	transition: background-color var(--rg-transition-fast);
	text-decoration: none;
}


/* ==========================================================================
   2. ADICIONADOS RECENTEMENTE
   ========================================================================== */

.rg-home-recentes {
	background-color: var(--rg-color-bg-gray);
	padding-block: var(--rg-space-16);
}

.rg-home-recentes__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--rg-space-6);
	margin-bottom: var(--rg-space-8);
	flex-wrap: wrap;
}

.rg-home-recentes__title {
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-2xl); /* 32px */
	font-weight: var(--rg-font-weight-bold);
	color: var(--rg-color-primary);
	margin: 0 0 var(--rg-space-2);
	line-height: 1.2;
}

.rg-home-recentes__subtitle {
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-base);
	color: var(--rg-color-text-muted);
	margin: 0;
}

.rg-home-recentes__controls {
	display: flex;
	align-items: center;
	gap: var(--rg-space-6);
	flex-shrink: 0;
}

/* Toggle Venda / Locação — usa .rg-toggle.rg-toggle--sm (seção 0) */

.rg-home-recentes__ver-todos {
	display: inline-flex;
	align-items: center;
	gap: var(--rg-space-1);
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-sm);
	font-weight: var(--rg-font-weight-bold);
	color: var(--rg-color-primary);
	text-decoration: none;
	transition: gap var(--rg-transition-fast);
	white-space: nowrap;
}

.rg-home-recentes__ver-todos:hover {
	gap: var(--rg-space-2);
}

/* Grid de cards */

.rg-home-recentes__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--rg-space-5);
}

.rg-home-recentes__grid[hidden] {
	display: none !important;
}

.rg-home-recentes__empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--rg-color-text-muted);
	font-family: var(--rg-font-body);
	padding-block: var(--rg-space-12);
}

/* --- Card de imóvel (home) --- */

.rg-home-card {
	background-color: var(--rg-color-bg-white);
	border-radius: var(--rg-radius-lg);
	overflow: hidden;
	box-shadow: var(--rg-shadow);
	transition: transform var(--rg-transition), box-shadow var(--rg-transition);
}

.rg-home-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rg-shadow-md);
}

.rg-home-card__media {
	position: relative;
	height: 220px;
	overflow: hidden;
}

.rg-home-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--rg-transition-slow);
}

.rg-home-card:hover .rg-home-card__img {
	transform: scale(1.04);
}

.rg-home-card__img-placeholder {
	width: 100%;
	height: 100%;
	background-color: var(--rg-color-bg-gray);
}

/* Badges */

.rg-home-card__badge {
	position: absolute;
	top: var(--rg-space-3);
	left: var(--rg-space-3);
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-xs);
	font-weight: var(--rg-font-weight-bold);
	padding: 3px var(--rg-space-2);
	border-radius: var(--rg-radius-full);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rg-home-card__badge--new {
	background-color: var(--rg-color-success);
	color: var(--rg-color-text-on-dark);
}

.rg-home-card__badge--exclusive {
	background-color: var(--rg-color-primary);
	color: var(--rg-color-text-on-dark);
}

.rg-home-card__badge--custom {
	background-color: var(--rg-color-accent);
	color: var(--rg-color-text-on-accent);
}

/* Corpo do card */

.rg-home-card__body {
	display: block;
	padding: var(--rg-space-5);
	text-decoration: none;
	color: inherit;
}

.rg-home-card__price {
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-xl);
	font-weight: var(--rg-font-weight-bold);
	color: var(--rg-color-primary);
	margin: 0 0 var(--rg-space-2);
}

.rg-home-card__title {
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-base);
	font-weight: var(--rg-font-weight-bold);
	color: var(--rg-color-text);
	margin: 0 0 var(--rg-space-2);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rg-home-card__local {
	display: flex;
	align-items: center;
	gap: var(--rg-space-1);
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-sm);
	color: var(--rg-color-text-muted);
	margin: 0 0 var(--rg-space-3);
}

.rg-home-card__stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rg-space-3);
}

.rg-home-card__stat {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-sm);
	font-weight: var(--rg-font-weight-medium);
	color: var(--rg-color-text-secondary);
}


/* ==========================================================================
   3. BAIRROS POPULARES
   ========================================================================== */

.rg-home-bairros {
	background-color: var(--rg-color-bg-white);
	padding-block: var(--rg-space-16);
}

.rg-home-bairros__header {
	text-align: center;
	margin-bottom: var(--rg-space-8);
}

.rg-home-bairros__title {
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-2xl);
	font-weight: var(--rg-font-weight-bold);
	color: var(--rg-color-primary);
	margin: 0 0 var(--rg-space-3);
	line-height: 1.2;
}

.rg-home-bairros__subtitle {
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-base);
	color: var(--rg-color-text-muted);
	margin: 0;
}

/* Grid de cards de bairro */

.rg-home-bairros__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--rg-space-4);
	margin-bottom: var(--rg-space-8);
}

.rg-home-bairro-card {
	position: relative;
	height: 280px;
	border-radius: var(--rg-radius-lg);
	overflow: hidden;
	background-color: var(--rg-color-primary);
	background-image: var(--rg-bairro-bg, none);
	background-size: cover;
	background-position: center;
	text-decoration: none;
	display: flex;
	align-items: flex-end;
	transition: transform var(--rg-transition);
}

.rg-home-bairro-card:hover {
	transform: scale(1.02);
}

.rg-home-bairro-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 5, 81, 0.85) 0%,
		rgba(0, 5, 81, 0.2) 60%,
		transparent 100%
	);
	pointer-events: none;
}

.rg-home-bairro-card__content {
	position: relative;
	z-index: 1;
	padding: var(--rg-space-5);
}

.rg-home-bairro-card__name {
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-lg);
	font-weight: var(--rg-font-weight-bold);
	color: var(--rg-color-text-on-dark);
	margin: 0 0 var(--rg-space-1);
}

.rg-home-bairro-card__count {
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-sm);
	font-weight: var(--rg-font-weight-medium);
	color: var(--rg-color-accent-bright);
}

.rg-home-bairros__footer {
	text-align: center;
}


/* ==========================================================================
   4. DIFERENCIAIS
   ========================================================================== */

.rg-home-diferenciais {
	background-color: var(--rg-color-bg-gray);
	padding-block: var(--rg-space-16);
}

.rg-home-diferenciais__header {
	text-align: center;
	margin-bottom: var(--rg-space-10);
	max-width: 640px;
	margin-inline: auto;
}

.rg-home-diferenciais__title {
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-2xl);
	font-weight: var(--rg-font-weight-bold);
	color: var(--rg-color-primary);
	margin: 0 0 var(--rg-space-3);
	line-height: 1.2;
}

.rg-home-diferenciais__subtitle {
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-base);
	color: var(--rg-color-text-muted);
	margin: 0;
	line-height: 1.6;
}

/* Grid de cards */

.rg-home-diferenciais__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--rg-space-5);
}

.rg-home-dif-card {
	background-color: var(--rg-color-bg-white);
	border-radius: var(--rg-radius-lg);
	padding: var(--rg-space-8) var(--rg-space-6);
	text-align: center;
	box-shadow: var(--rg-shadow-sm);
	transition: transform var(--rg-transition), box-shadow var(--rg-transition);
}

.rg-home-dif-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--rg-shadow);
}

.rg-home-dif-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	border-radius: var(--rg-radius-full);
	background-color: #e8f4f8;
	color: var(--rg-color-primary-dark);
	margin: 0 auto var(--rg-space-5);
}

.rg-home-dif-card__title {
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-lg);
	font-weight: var(--rg-font-weight-bold);
	color: var(--rg-color-primary);
	margin: 0 0 var(--rg-space-3);
	line-height: 1.3;
}

.rg-home-dif-card__desc {
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-base);
	color: var(--rg-color-text-muted);
	margin: 0;
	line-height: 1.6;
}


/* ==========================================================================
   5. FORMULÁRIO DE LEAD
   ========================================================================== */

.rg-home-lead {
	padding-block: var(--rg-space-16);
	background-color: var(--rg-color-bg-gray);
}

.rg-home-lead__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-radius: var(--rg-radius-lg);
	overflow: hidden;
	box-shadow: var(--rg-shadow-md);
}

/* Coluna esquerda — contato */

.rg-home-lead__info {
	background-color: var(--rg-color-primary-dark); /* #023f71 */
	padding: var(--rg-space-12) var(--rg-space-10);
	color: var(--rg-color-text-on-dark);
}

.rg-home-lead__info-title {
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-2xl);
	font-weight: var(--rg-font-weight-bold);
	color: var(--rg-color-accent); /* Amarelo — design system */
	margin: 0 0 var(--rg-space-4);
	line-height: 1.2;
}

.rg-home-lead__info-subtitle {
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-base);
	color: rgba(255, 255, 255, 0.8);
	margin: 0 0 var(--rg-space-10);
	line-height: 1.6;
}

.rg-home-lead__contacts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--rg-space-5);
}

.rg-home-lead__contact {
	display: flex;
	align-items: center;
	gap: var(--rg-space-4);
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-base);
	color: rgba(255, 255, 255, 0.9);
}

.rg-home-lead__contact a {
	color: inherit;
	text-decoration: none;
}

.rg-home-lead__contact a:hover {
	color: var(--rg-color-accent-bright);
	text-decoration: underline;
}

.rg-home-lead__contact-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--rg-radius-full);
	background-color: var(--rg-color-accent);
	color: var(--rg-color-text-on-accent);
	flex-shrink: 0;
}

.rg-home-lead__contact-icon--green {
	background-color: var(--rg-color-success);
	color: var(--rg-color-text-on-dark);
}

.rg-home-lead__contact-text {
	display: flex;
	flex-direction: column;
}

.rg-home-lead__contact-label {
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-sm);
	font-weight: var(--rg-font-weight-bold);
	color: var(--rg-color-text-on-dark);
	margin-bottom: 2px;
}

/* Foto de fachada */

.rg-home-lead__facade {
	margin-top: var(--rg-space-6);
	overflow: hidden;
	border-radius: var(--rg-radius);
}

.rg-home-lead__facade-img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

/* Coluna direita — formulário */

.rg-home-lead__form-wrap {
	background-color: var(--rg-color-bg-cream); /* #fbf7de */
	padding: var(--rg-space-12) var(--rg-space-10);
}

.rg-home-lead__form-title {
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-2xl);
	font-weight: var(--rg-font-weight-bold);
	color: var(--rg-color-text);
	margin: 0 0 var(--rg-space-2);
	line-height: 1.2;
}

.rg-home-lead__form-title-accent {
	color: var(--rg-color-accent);
}

.rg-home-lead__form-desc {
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-base);
	color: var(--rg-color-text-muted);
	margin: 0 0 var(--rg-space-6);
	line-height: 1.5;
}

.rg-home-lead__form {
	display: flex;
	flex-direction: column;
	gap: var(--rg-space-5);
}

.rg-home-lead__row {
	display: grid;
	gap: var(--rg-space-4);
}

.rg-home-lead__row--2 {
	grid-template-columns: 1fr 1fr;
}

.rg-home-lead__group {
	display: flex;
	flex-direction: column;
	gap: var(--rg-space-1);
}

.rg-home-lead__label {
	display: block;
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-sm);
	font-weight: var(--rg-font-weight-medium);
	color: var(--rg-color-text-secondary);
}

.rg-home-lead__label span {
	color: var(--rg-color-error);
}

.rg-home-lead__input,
.rg-home-lead__select,
.rg-home-lead__textarea {
	width: 100%;
	height: auto;
	padding: var(--rg-space-3) var(--rg-space-4);
	border: 1px solid var(--rg-color-border);
	border-radius: var(--rg-radius);
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-base);
	color: var(--rg-color-text);
	background-color: var(--rg-color-bg-white);
	transition: border-color var(--rg-transition-fast);
	appearance: none;
	-webkit-appearance: none;
}

.rg-home-lead__select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4a6a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: var(--rg-space-8);
}

.rg-home-lead__input:focus,
.rg-home-lead__select:focus,
.rg-home-lead__textarea:focus {
	outline: 2px solid var(--rg-color-primary);
	outline-offset: 0;
	border-color: var(--rg-color-primary);
}

.rg-home-lead__textarea {
	resize: vertical;
	min-height: 100px;
}

/* Feedback */

.rg-home-lead__feedback {
	font-family: var(--rg-font-body);
	font-size: var(--rg-text-sm);
	padding: var(--rg-space-3) var(--rg-space-4);
	border-radius: var(--rg-radius);
}

.rg-home-lead__feedback--success {
	background-color: rgba(0, 183, 7, 0.1);
	color: #005c03;
	border: 1px solid rgba(0, 183, 7, 0.3);
}

.rg-home-lead__feedback--error {
	background-color: rgba(211, 47, 47, 0.08);
	color: var(--rg-color-error);
	border: 1px solid rgba(211, 47, 47, 0.25);
}

/* Botão submit */

.rg-home-lead__submit {
	width: 100%;
	height: 48px;
	background-color: var(--rg-color-accent);
	color: var(--rg-color-text-on-accent);
	font-family: var(--rg-font-heading);
	font-size: var(--rg-text-base);
	font-weight: var(--rg-font-weight-bold);
	border: none;
	border-radius: var(--rg-radius);
	cursor: pointer;
	transition: background-color var(--rg-transition-fast);
}

.rg-home-lead__submit:hover:not(:disabled) {
	background-color: var(--rg-color-accent-bright);
}

.rg-home-lead__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}


/* ==========================================================================
   RESPONSIVO — 1024px (tablet landscape)
   ========================================================================== */

@media (max-width: 1024px) {

	/* Hero */
	.rg-home-hero__title {
		font-size: 2.75rem; /* 44px */
	}

	.rg-home-search__fields {
		grid-template-columns: 1fr 1fr;
	}

	.rg-home-search__field--wide {
		grid-column: span 2;
	}

	/* Recentes */
	.rg-home-recentes__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Bairros */
	.rg-home-bairros__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Diferenciais */
	.rg-home-diferenciais__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Lead */
	.rg-home-lead__grid {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   RESPONSIVO — 768px (tablet portrait)
   ========================================================================== */

@media (max-width: 768px) {

	/* Hero */
	.rg-home-hero {
		min-height: auto;
		padding-block: var(--rg-space-12);
	}

	.rg-home-hero__title {
		font-size: var(--rg-text-2xl); /* 32px */
	}

	.rg-home-hero__subtitle {
		font-size: var(--rg-text-base);
	}

	.rg-home-search {
		padding: var(--rg-space-5) var(--rg-space-5);
	}

	/* Recentes header */
	.rg-home-recentes__header {
		flex-direction: column;
	}

	.rg-home-recentes__controls {
		width: 100%;
		justify-content: space-between;
	}

	/* Lead */
	.rg-home-lead__info,
	.rg-home-lead__form-wrap {
		padding: var(--rg-space-8) var(--rg-space-6);
	}

	.rg-home-lead__row--2 {
		grid-template-columns: 1fr;
	}
}


/* ==========================================================================
   RESPONSIVO — 580px (mobile)
   ========================================================================== */

@media (max-width: 580px) {

	/* Hero */
	.rg-home-hero__title {
		font-size: var(--rg-text-xl); /* 24px */
	}

	.rg-home-search__fields {
		grid-template-columns: 1fr;
	}

	.rg-home-search__field--wide {
		grid-column: auto;
	}

	/* Recentes */
	.rg-home-recentes__grid {
		grid-template-columns: 1fr;
	}

	/* Bairros */
	.rg-home-bairros__grid {
		grid-template-columns: 1fr 1fr;
	}

	.rg-home-bairro-card {
		height: 200px;
	}

	/* Diferenciais */
	.rg-home-diferenciais__grid {
		grid-template-columns: 1fr;
	}

	/* Recentes controles */
	.rg-home-recentes__controls {
		flex-wrap: wrap;
	}
}


/* ==========================================================================
   prefers-reduced-motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

	.rg-home-card,
	.rg-home-card__img,
	.rg-home-bairro-card,
	.rg-home-dif-card {
		transition: none;
	}
}
