/*
 * Seções da capa desenhadas em outubro de 2026: Quem somos, Notícias e
 * Nossa presença. Carregado só na página inicial (inc/assets.php).
 */

/* Sobretítulo pequeno, em caixa alta, com um traço de cada lado. */
.mer-sobretitulo {
	display: flex;
	width: max-content;
	max-width: 100%;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.75rem;
	color: var(--mer-ouro-escuro);
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.mer-sobretitulo::before,
.mer-sobretitulo::after {
	content: '';
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--mer-ouro);
}

.mer-botao--ouro {
	background: var(--mer-ouro);
	color: #2b1300 !important;
}

.mer-botao--ouro:hover,
.mer-botao--ouro:focus-visible {
	background: #f0c46a;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ------------------------------------------------------------------------ */
/* Quem somos                                                                */
/* ------------------------------------------------------------------------ */

.mer-sobre {
	position: relative;
	padding: 6rem 0;
	overflow: hidden;
	background:
		radial-gradient(circle at 92% 12%, rgba(217, 158, 50, 0.14), transparent 38%),
		radial-gradient(circle at 4% 96%, rgba(165, 3, 17, 0.08), transparent 40%),
		var(--mer-creme);
}

.mer-sobre__imagem {
	position: relative;
	margin: 0 1.5rem 0 0;
}

.mer-sobre__imagem::before {
	content: '';
	position: absolute;
	inset: 1.5rem -1.5rem -1.5rem 1.5rem;
	border: 2px solid var(--mer-ouro);
	border-radius: 24px;
}

.mer-sobre__imagem img {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--mer-sombra-alta);
	object-fit: contain;
}

.mer-sobre__selo {
	position: absolute;
	left: -1rem;
	bottom: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 124px;
	height: 124px;
	border: 4px solid #fff;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--mer-marca), var(--mer-marca-escura));
	box-shadow: 0 12px 30px rgba(98, 0, 0, 0.35);
	color: #fff;
	text-align: center;
}

.mer-sobre__selo strong {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.85rem;
	line-height: 1;
}

.mer-sobre__selo span {
	max-width: 80px;
	margin-top: 0.3rem;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.25;
	text-transform: uppercase;
}

.mer-sobre__titulo {
	margin: 0 0 1.25rem;
	color: var(--mer-marca-escura);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(2rem, 3.6vw, 3rem);
	font-weight: 700;
	line-height: 1.12;
}

.mer-sobre__abertura {
	margin: 0 0 1rem;
	color: var(--mer-texto);
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.55;
}

.mer-sobre__texto {
	margin: 0 0 2rem;
	color: var(--mer-suave);
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 1.0625rem;
	line-height: 1.8;
}

/* ------------------------------------------------------------------------ */
/* Notícias                                                                  */
/* ------------------------------------------------------------------------ */

.mer-noticias {
	padding-top: 5rem !important;
	padding-bottom: 5rem !important;
}

.mer-noticias__destaque {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	margin-bottom: 2.5rem;
	overflow: hidden;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--mer-marca) 0%, var(--mer-marca-escura) 100%);
	box-shadow: var(--mer-sombra-alta);
	color: #fff;
}

.mer-noticias__destaque-foto {
	position: relative;
	display: block;
	min-height: 380px;
	overflow: hidden;
}

.mer-noticias__destaque-foto img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	border-radius: 0 !important;
	box-shadow: none !important;
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.mer-noticias__destaque:hover .mer-noticias__destaque-foto img {
	transform: scale(1.04);
}

.mer-noticias__destaque-texto {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 3rem 3rem 3rem 2.75rem;
}

.mer-noticias__selo {
	margin: 0 0 1rem;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	background: var(--mer-ouro);
	color: #2b1300;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.mer-noticias__data {
	margin: 0 0 0.6rem;
	color: #f6d79a;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.9375rem;
	font-weight: 700;
}

.mer-noticias__destaque-titulo {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 1rem;
	font-family: 'Cormorant Garamond', Georgia, serif !important;
	font-size: clamp(1.4rem, 2.2vw, 1.9rem);
	font-weight: 700;
	line-height: 1.25;
}

.mer-noticias__destaque-titulo a {
	color: #fff;
	text-decoration: none;
}

.mer-noticias__destaque-titulo a:hover {
	text-decoration: underline;
	text-decoration-color: var(--mer-ouro);
	text-underline-offset: 6px;
}

.mer-noticias__resumo {
	margin: 0 0 1.75rem;
	color: #f6e7e7;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 1.0625rem;
	line-height: 1.65;
}

.mer-noticias__grade .card-body h3 {
	font-size: 1.0625rem !important;
}

/* ------------------------------------------------------------------------ */
/* Nossa presença                                                            */
/* ------------------------------------------------------------------------ */

.mer-presenca {
	padding: 6rem 0;
	background: linear-gradient(180deg, #fff 0%, var(--mer-creme) 100%);
}

.mer-presenca__topo {
	margin-bottom: 2.5rem;
	text-align: center;
}

.mer-presenca__topo .mer-sobretitulo {
	margin-left: auto;
	margin-right: auto;
}

.mer-presenca__topo .c-title-pattern {
	display: inline-block;
}

.mer-presenca__lead {
	max-width: 640px;
	margin: 1rem auto 0;
	color: var(--mer-suave);
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 1.0625rem;
	line-height: 1.7;
}

.mer-presenca__numero {
	display: block;
	color: var(--mer-marca);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: lining-nums tabular-nums;
}

.mer-presenca__rotulo {
	display: block;
	margin-top: 0.4rem;
	color: var(--mer-texto);
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* A Ordem no mundo: três números grandes. */
.mer-presenca__mundo {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 4rem;
	margin: 0 auto 3rem;
	padding: 2rem 2.5rem;
	max-width: 860px;
	border-radius: 999px;
	background: #fff;
	box-shadow: var(--mer-sombra);
}

.mer-presenca__mundo-item {
	text-align: center;
}

.mer-presenca__mundo .mer-presenca__numero {
	font-size: clamp(2.5rem, 5vw, 3.5rem);
}

/* Painel do Brasil. */
.mer-presenca__painel {
	height: 100%;
	padding: 2rem;
	border-radius: 24px;
	background: #fff;
	box-shadow: var(--mer-sombra);
}

.mer-presenca__subtitulo {
	margin: 0 0 1.25rem;
	color: var(--mer-marca-escura);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.5rem;
	font-weight: 700;
}

.mer-presenca__brasil {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem 1rem;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
}

.mer-presenca__brasil li {
	position: relative;
	padding: 1rem;
	border-radius: 16px;
	background: var(--mer-creme);
}

.mer-presenca__brasil .mer-presenca__numero {
	font-size: 2.25rem;
}

.mer-presenca__brasil .mer-presenca__ponto {
	position: absolute;
	top: 1rem;
	right: 1rem;
}

.mer-presenca__ponto {
	display: inline-block;
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--mer-cor, var(--mer-marca));
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.mer-presenca__frase {
	margin: 0;
	padding: 0.9rem 1.25rem;
	border-radius: 14px;
	background: linear-gradient(90deg, #d99d31, #946918);
	color: #fff;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
}

/* Mapa. */
.mer-presenca__mapa-caixa {
	position: relative;
	height: 100%;
	min-height: 520px;
	overflow: hidden;
	border-radius: 24px;
	background: #e9e4dc;
	box-shadow: var(--mer-sombra);
}

.mer-presenca__mapa {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.mer-presenca__mapa .leaflet-tile-pane {
	filter: grayscale(0.85) sepia(0.2) brightness(1.04) contrast(0.92);
}

.mer-presenca__filtros {
	position: absolute;
	top: 1rem;
	left: 1rem;
	right: 4rem;
	z-index: 500;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mer-presenca__filtros[hidden] {
	display: none;
}

.mer-presenca__filtro {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 38px;
	padding: 0.4rem 0.95rem;
	border: 0;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(40, 10, 5, 0.15);
	color: var(--mer-texto);
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--mer-tempo), color var(--mer-tempo);
}

.mer-presenca__filtro:hover {
	background: var(--mer-creme);
}

.mer-presenca__filtro.is-active {
	background: var(--mer-marca);
	color: #fff;
}

.mer-presenca__filtro:focus-visible {
	outline: 3px solid var(--mer-ouro);
	outline-offset: 2px;
}

/* Pino: gota com o número de casas da cidade. */
.mer-pino {
	background: none;
	border: 0;
}

.mer-pino__marca {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 0;
	background: var(--mer-cor);
	box-shadow: 0 6px 14px rgba(40, 10, 5, 0.35);
	transform: rotate(-45deg);
	transition: transform 0.2s ease;
}

.mer-pino__marca span {
	transform: rotate(45deg);
	color: #fff;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.9375rem;
	font-weight: 800;
}

.leaflet-marker-icon:hover .mer-pino__marca,
.leaflet-marker-icon:focus .mer-pino__marca {
	transform: rotate(-45deg) scale(1.12);
}

.leaflet-marker-icon:focus-visible {
	outline: none;
}

.leaflet-marker-icon:focus-visible .mer-pino__marca {
	box-shadow: 0 0 0 4px var(--mer-ouro), 0 6px 14px rgba(40, 10, 5, 0.35);
}

.mer-balao-caixa .leaflet-popup-content-wrapper {
	border-radius: 16px;
	box-shadow: var(--mer-sombra-alta);
}

.mer-balao-caixa .leaflet-popup-content {
	margin: 1rem 1.15rem;
}

.mer-balao__cidade {
	margin: 0 0 0.6rem !important;
	color: var(--mer-marca-escura);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.05rem;
	font-weight: 700;
}

.mer-balao__cidade span {
	color: var(--mer-ouro-escuro);
	font-size: 0.8rem;
}

.mer-balao ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mer-balao li {
	display: grid;
	grid-template-columns: 10px 1fr;
	gap: 0.15rem 0.6rem;
	align-items: center;
	padding: 0.45rem 0;
	border-top: 1px solid #f0e8df;
}

.mer-balao li:first-child {
	border-top: 0;
}

.mer-balao a {
	color: var(--mer-texto);
	font-family: 'EB Garamond', Georgia, serif;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.mer-balao a:hover {
	color: var(--mer-marca);
	text-decoration: underline;
}

.mer-balao small {
	grid-column: 2;
	color: var(--mer-suave);
	font-size: 0.75rem;
}

/* Lista por estado: o índice que também funciona sem o mapa. */
.mer-presenca__estados {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.25rem;
	margin-top: 2.5rem;
}

.mer-presenca__estado {
	padding: 1.35rem 1.4rem;
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--mer-sombra);
	transition: transform var(--mer-tempo), box-shadow var(--mer-tempo);
}

.mer-presenca__estado:hover {
	transform: translateY(-3px);
	box-shadow: var(--mer-sombra-alta);
}

.mer-presenca__estado-nome {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 0.35rem;
	color: var(--mer-marca-escura);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.15rem;
	font-weight: 700;
}

.mer-presenca__uf {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 26px;
	padding: 0 0.4rem;
	border-radius: 8px;
	background: var(--mer-marca);
	color: #fff;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.05em;
}

.mer-presenca__cidades {
	margin: 0 0 0.75rem;
	color: var(--mer-suave);
	font-size: 0.875rem;
}

.mer-presenca__cidade {
	padding: 0;
	border: 0;
	background: none;
	color: var(--mer-ouro-escuro);
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 3px;
	cursor: pointer;
}

.mer-presenca__cidade:hover {
	color: var(--mer-marca);
}

.mer-presenca__casas {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mer-presenca__casas li {
	display: flex;
	align-items: baseline;
	gap: 0.55rem;
	padding: 0.3rem 0;
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.mer-presenca__casas .mer-presenca__ponto {
	transform: translateY(-1px);
}

.mer-presenca__casas a {
	color: var(--mer-texto);
	text-decoration: none;
}

.mer-presenca__casas a:hover {
	color: var(--mer-marca);
	text-decoration: underline;
}

/* ------------------------------------------------------------------------ */
/* Telas menores                                                             */
/* ------------------------------------------------------------------------ */

@media (max-width: 991px) {
	.mer-sobre {
		padding: 4rem 0;
	}

	.mer-sobre__imagem {
		margin: 0 1.5rem 1rem 0;
	}

	.mer-noticias__destaque {
		grid-template-columns: 1fr;
	}

	.mer-noticias__destaque-foto {
		min-height: 260px;
	}

	.mer-noticias__destaque-texto {
		padding: 2rem 1.5rem;
	}

	.mer-presenca {
		padding: 4rem 0;
	}

	.mer-presenca__mundo {
		border-radius: 24px;
		gap: 1.5rem 2.5rem;
	}

	.mer-presenca__mapa-caixa {
		min-height: 420px;
	}
}

@media (max-width: 575px) {
	.mer-sobre__selo {
		width: 98px;
		height: 98px;
		left: -0.5rem;
	}

	.mer-sobre__selo strong {
		font-size: 1.4rem;
	}

	/* Com a EB Garamond, "BARCELONA" passava da borda do selo. */
	.mer-sobre__selo span {
		font-size: 0.56rem;
		letter-spacing: 0.02em;
	}

	.mer-presenca__filtros {
		right: 3.5rem;
	}

	.mer-presenca__filtro {
		min-height: 34px;
		padding: 0.3rem 0.7rem;
		font-size: 0.75rem;
	}
}

/* O main.css herdado põe EB Garamond em todo elemento (*): os links dentro dos
   títulos e listas destas seções herdam a fonte de quem os contém. */
.mer-noticias__destaque-titulo a,
.mer-presenca__casas a,
.mer-balao a,
.mer-sobre a {
	font-family: inherit !important;
}

.mer-presenca__casas li {
	font-family: 'EB Garamond', Georgia, serif;
}

.mer-balao-caixa a,
.mer-balao a {
	color: var(--mer-texto) !important;
}

.mer-balao a:hover {
	color: var(--mer-marca) !important;
}
