/*
 * Revista Mercê: o desenho das páginas da Revista.
 *
 * As cores e medidas vêm das variáveis de moderno.css (as mesmas do portal),
 * com o bordô mais fechado da capa da Revista.
 */

:root {
	--rv-vinho: #6f0101;
	--rv-vinho-escuro: #4a0000;
}

.rv-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 3vw, 2rem);
}

.rv-container--estreito {
	max-width: 860px;
}

.rv-sobre {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 0.6rem;
	color: var(--mer-ouro-escuro);
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.rv-sobre::before {
	content: '';
	width: 30px;
	height: 2px;
	background: var(--mer-ouro);
}

.rv-sobre--claro {
	color: #f3cf8a;
}

.rv-titulo {
	margin: 0;
	color: var(--rv-vinho);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(2rem, 3.4vw, 2.9rem);
	font-weight: 700;
	line-height: 1.08;
}

.rv-titulo--claro {
	color: #fff;
}

.rv-botoes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

.rv-botao {
	display: inline-flex;
	align-items: center;
	padding: 0.8rem 1.6rem;
	border: 2px solid var(--rv-vinho);
	border-radius: 12px;
	background: var(--rv-vinho);
	color: #fff !important;
	font-size: 1.08rem;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color var(--mer-tempo), border-color var(--mer-tempo), color var(--mer-tempo), transform var(--mer-tempo);
}

.rv-botao:hover {
	border-color: var(--mer-ouro-escuro);
	background: var(--mer-ouro-escuro);
	transform: translateY(-2px);
}

.rv-botao--claro {
	background: transparent;
	color: var(--rv-vinho) !important;
}

.rv-botao--claro:hover {
	color: #fff !important;
}

.rv-link {
	color: var(--rv-vinho) !important;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none !important;
}

.rv-link::after {
	content: ' \2192';
}

.rv-link:hover {
	text-decoration: underline !important;
}

/* ------------------------------------------------------------------------ */
/* Faixa do portal                                                           */
/* ------------------------------------------------------------------------ */

.rv-portal {
	background: var(--rv-vinho-escuro);
	color: #fff;
}

.rv-portal__dentro {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0.45rem clamp(1rem, 3vw, 2rem);
}

.rv-portal__marca {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	color: #fff !important;
	line-height: 1.05;
	text-decoration: none !important;
}

.rv-portal__marca span {
	color: #f3cf8a;
	font-size: 0.72rem;
	font-style: italic;
}

.rv-portal__marca strong {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.15rem;
	letter-spacing: 0.04em;
}

.rv-portal__editorias {
	flex: 1 1 auto;
	min-width: 0;
}

.rv-portal__editorias ul {
	display: flex;
	justify-content: flex-end;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.rv-portal__editorias ul::-webkit-scrollbar {
	display: none;
}

.rv-portal__editorias a {
	display: block;
	padding: 0.35rem 0.75rem;
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.85) !important;
	font-size: 0.92rem;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background-color var(--mer-tempo), color var(--mer-tempo);
}

.rv-portal__editorias a:hover,
.rv-portal__editorias a.is-atual {
	background: rgba(255, 255, 255, 0.12);
	color: #fff !important;
}

/* ------------------------------------------------------------------------ */
/* Topo da Revista                                                           */
/* ------------------------------------------------------------------------ */

.rv-topo {
	position: sticky;
	top: 0;
	z-index: 100;
	background: linear-gradient(135deg, #8a0303 0%, var(--rv-vinho) 100%);
	box-shadow: 0 4px 18px rgba(40, 0, 0, 0.25);
}

.admin-bar .rv-topo {
	top: 32px;
}

.rv-topo__dentro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0.6rem clamp(1rem, 3vw, 2rem);
}

.rv-topo__logo img {
	display: block;
	width: auto;
	height: clamp(52px, 6vw, 78px);
}

.rv-topo__logo span {
	color: #fff;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 2rem;
	font-weight: 700;
}

.rv-topo__lista {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rv-topo__lista a {
	display: block;
	padding: 0.55rem 0.95rem;
	border-radius: 10px;
	color: #fff !important;
	font-size: 1.08rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color var(--mer-tempo);
}

.rv-topo__lista a:hover,
.rv-topo__lista .current-menu-item > a {
	background: rgba(255, 255, 255, 0.14);
}

.rv-topo__lista .current-menu-item > a {
	box-shadow: inset 0 -2px 0 var(--mer-ouro);
}

.rv-topo__abre {
	display: none;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	cursor: pointer;
}

.rv-topo__abre-barras,
.rv-topo__abre-barras::before,
.rv-topo__abre-barras::after {
	display: block;
	width: 22px;
	height: 2px;
	margin: 0 auto;
	border-radius: 2px;
	background: #fff;
	transition: transform var(--mer-tempo), opacity var(--mer-tempo);
}

.rv-topo__abre-barras {
	position: relative;
}

.rv-topo__abre-barras::before,
.rv-topo__abre-barras::after {
	content: '';
	position: absolute;
	left: 0;
}

.rv-topo__abre-barras::before {
	top: -7px;
}

.rv-topo__abre-barras::after {
	top: 7px;
}

.rv-topo__abre[aria-expanded='true'] .rv-topo__abre-barras {
	background: transparent;
}

.rv-topo__abre[aria-expanded='true'] .rv-topo__abre-barras::before {
	transform: translateY(7px) rotate(45deg);
}

.rv-topo__abre[aria-expanded='true'] .rv-topo__abre-barras::after {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991.98px) {
	.rv-topo__abre {
		display: block;
	}

	.rv-topo__menu {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		padding: 0.5rem clamp(1rem, 3vw, 2rem) 1rem;
		background: var(--rv-vinho);
		box-shadow: 0 14px 24px rgba(40, 0, 0, 0.3);
	}

	.rv-topo__menu.is-aberto {
		display: block;
	}

	.rv-topo__lista {
		flex-direction: column;
		align-items: stretch;
	}

	.rv-portal__marca {
		display: none;
	}

	.rv-portal__editorias ul {
		justify-content: flex-start;
	}
}

/* ------------------------------------------------------------------------ */
/* Banner                                                                    */
/* ------------------------------------------------------------------------ */

.rv-banner .mer-banner img {
	display: block;
	width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------------ */
/* Última edição                                                             */
/* ------------------------------------------------------------------------ */

.rv-ultima {
	padding: clamp(3rem, 7vw, 6rem) 0;
	background:
		radial-gradient(circle at 15% 20%, rgba(217, 158, 50, 0.14), transparent 45%),
		linear-gradient(180deg, #fbf7f2 0%, #fff 100%);
}

.rv-ultima__grade {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.rv-ultima__capa {
	position: relative;
	display: block;
	max-width: 440px;
	justify-self: center;
	border-radius: 6px 14px 14px 6px;
	box-shadow: -8px 0 0 rgba(0, 0, 0, 0.08) inset, 0 30px 60px rgba(60, 10, 10, 0.32);
	overflow: hidden;
	transform: rotate(-2deg);
	transition: transform var(--mer-tempo), box-shadow var(--mer-tempo);
}

.rv-ultima__capa:hover {
	transform: rotate(0) translateY(-6px);
	box-shadow: -8px 0 0 rgba(0, 0, 0, 0.08) inset, 0 40px 70px rgba(60, 10, 10, 0.38);
}

.rv-ultima__capa img {
	display: block;
	width: 100%;
	height: auto;
}

.rv-ultima__selo {
	position: absolute;
	top: 1rem;
	right: 1rem;
	padding: 0.25rem 0.75rem;
	border-radius: 8px;
	background: var(--mer-ouro);
	color: #2b1300;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.rv-ultima__numero {
	margin: 0 0 0.5rem;
	color: var(--mer-ouro-escuro);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.5rem;
	font-weight: 700;
}

.rv-ultima__numero span {
	margin-left: 0.5rem;
	padding-left: 0.75rem;
	border-left: 2px solid #e6d3b8;
	color: var(--mer-suave);
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 1.05rem;
	font-weight: 400;
}

.rv-ultima__titulo {
	margin: 0 0 1.25rem;
	color: var(--rv-vinho);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(2.2rem, 4.4vw, 3.6rem);
	font-weight: 700;
	line-height: 1.05;
}

.rv-ultima__desc {
	margin: 0;
	color: var(--mer-texto);
	font-size: clamp(1.1rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.8;
}

/* ------------------------------------------------------------------------ */
/* Edições: fileira, grade e cartão                                          */
/* ------------------------------------------------------------------------ */

.rv-anteriores {
	padding: clamp(3rem, 6vw, 5rem) 0;
}

.rv-cabeca {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem 2rem;
	margin-bottom: 2rem;
}

.rv-cabeca__lado {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.rv-setas {
	display: flex;
	gap: 0.5rem;
}

.rv-seta {
	position: relative;
	width: 44px;
	height: 44px;
	border: 2px solid #e6d3b8;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	transition: border-color var(--mer-tempo), background-color var(--mer-tempo);
}

.rv-seta::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-top: 2px solid var(--rv-vinho);
	border-right: 2px solid var(--rv-vinho);
}

.rv-seta--anterior::before {
	transform: translate(-30%, -50%) rotate(-135deg);
}

.rv-seta--proxima::before {
	transform: translate(-70%, -50%) rotate(45deg);
}

.rv-seta:hover {
	border-color: var(--rv-vinho);
}

.rv-seta:disabled {
	opacity: 0.35;
	cursor: default;
}

.rv-fileira {
	display: grid;
	grid-auto-columns: clamp(170px, 22vw, 240px);
	grid-auto-flow: column;
	gap: 1.75rem;
	margin: 0;
	padding: 0.75rem 0.25rem 1.5rem;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: thin;
}

.rv-fileira > li {
	scroll-snap-align: start;
}

.rv-grade {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 2rem 1.75rem;
}

.rv-edicao__capa {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 4px 12px 12px 4px;
	background: linear-gradient(135deg, #8a0303, var(--rv-vinho-escuro));
	box-shadow: -5px 0 0 rgba(0, 0, 0, 0.08) inset, 0 16px 30px rgba(60, 10, 10, 0.22);
	transition: transform var(--mer-tempo), box-shadow var(--mer-tempo);
}

.rv-edicao__capa img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rv-edicao__ler {
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	left: 0.75rem;
	padding: 0.5rem;
	border-radius: 8px;
	background: rgba(111, 1, 1, 0.92);
	color: #fff;
	font-weight: 700;
	text-align: center;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--mer-tempo), transform var(--mer-tempo);
}

.rv-edicao__capa:hover,
.rv-edicao__capa:focus-visible {
	transform: translateY(-6px) rotate(-1.5deg);
	box-shadow: -5px 0 0 rgba(0, 0, 0, 0.08) inset, 0 26px 40px rgba(60, 10, 10, 0.3);
}

.rv-edicao__capa:hover .rv-edicao__ler,
.rv-edicao__capa:focus-visible .rv-edicao__ler {
	opacity: 1;
	transform: none;
}

.rv-edicao__numero {
	margin: 1rem 0 0.2rem;
	color: var(--mer-ouro-escuro);
	font-size: 0.95rem;
	font-weight: 700;
}

.rv-edicao__numero span {
	display: block;
	color: var(--mer-suave);
	font-weight: 400;
}

.rv-edicao__titulo {
	margin: 0;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.rv-edicao__titulo a {
	color: var(--mer-texto) !important;
	text-decoration: none !important;
}

.rv-edicao__titulo a:hover {
	color: var(--rv-vinho) !important;
}

/* No toque não existe "passar o mouse": o rótulo fica sempre à mostra. */
@media (hover: none) {
	.rv-edicao__ler {
		opacity: 1;
		transform: none;
	}
}

/* ------------------------------------------------------------------------ */
/* Fale com a redação (página inicial)                                       */
/* ------------------------------------------------------------------------ */

.rv-contato {
	padding: clamp(3rem, 7vw, 6rem) 0;
	background:
		radial-gradient(circle at 85% 15%, rgba(217, 158, 50, 0.22), transparent 40%),
		linear-gradient(135deg, var(--rv-vinho) 0%, var(--rv-vinho-escuro) 100%);
	color: #fff;
}

.rv-contato__grade {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}

.rv-contato__foto img {
	display: block;
	width: 100%;
	max-width: 520px;
	height: auto;
	margin: 0 auto;
}

.rv-contato__texto > p {
	color: rgba(255, 255, 255, 0.85);
	font-size: 1.15rem;
	line-height: 1.7;
}

.rv-contato .mer-form {
	margin-top: 1.5rem;
}

.rv-contato .mer-form label,
.rv-contato .mer-form__aviso,
.rv-contato .mer-form__aviso a {
	color: rgba(255, 255, 255, 0.9) !important;
}

.rv-contato .mer-form .form-control {
	border: 0;
	background: rgba(255, 255, 255, 0.95);
}

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

/* ------------------------------------------------------------------------ */
/* Banners de materiais                                                      */
/* ------------------------------------------------------------------------ */

.rv-materiais {
	padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.rv-materiais .rv-container {
	display: grid;
	gap: 1.5rem;
}

.rv-materiais__banner {
	display: block;
	overflow: hidden;
	border-radius: var(--mer-raio);
	box-shadow: var(--mer-sombra-alta);
	transition: transform var(--mer-tempo);
}

.rv-materiais__banner:hover {
	transform: translateY(-3px);
}

.rv-materiais__banner img {
	display: block;
	width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------------ */
/* Página da edição                                                          */
/* ------------------------------------------------------------------------ */

.rv-edicao-topo {
	padding: clamp(2.5rem, 6vw, 5rem) 0;
	background:
		radial-gradient(circle at 15% 20%, rgba(217, 158, 50, 0.14), transparent 45%),
		linear-gradient(180deg, #fbf7f2 0%, #fff 100%);
}

.rv-edicao-topo__grade {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: start;
}

.rv-edicao-topo__capa img {
	display: block;
	width: 100%;
	max-width: 440px;
	height: auto;
	margin: 0 auto;
	border-radius: 6px 14px 14px 6px;
	box-shadow: -8px 0 0 rgba(0, 0, 0, 0.08) inset, 0 30px 60px rgba(60, 10, 10, 0.3);
}

.rv-edicao-topo__desc {
	color: var(--mer-texto);
	font-size: clamp(1.1rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.8;
}

.rv-migalhas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0;
	margin-bottom: 1.25rem;
	font-size: 0.95rem;
}

.rv-migalhas > * + *::before {
	content: '\203A';
	margin: 0 0.55rem;
	color: var(--mer-ouro);
}

.rv-migalhas a {
	color: var(--mer-suave) !important;
	text-decoration: none !important;
}

.rv-migalhas a:hover {
	color: var(--rv-vinho) !important;
}

.rv-migalhas span {
	color: var(--rv-vinho);
}

/* ------------------------------------------------------------------------ */
/* Edições Digitais                                                          */
/* ------------------------------------------------------------------------ */

.rv-anos {
	position: sticky;
	top: 96px;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 2.5rem;
	padding: 0.6rem 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(6px);
}

.rv-anos a {
	padding: 0.4rem 1rem;
	border: 1px solid #e3d6c8;
	border-radius: 10px;
	color: var(--mer-texto) !important;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color var(--mer-tempo), border-color var(--mer-tempo), color var(--mer-tempo);
}

.rv-anos a:hover {
	border-color: var(--rv-vinho);
	background: var(--rv-vinho);
	color: #fff !important;
}

.rv-ano + .rv-ano {
	margin-top: 3.5rem;
}

.rv-ano {
	scroll-margin-top: 170px;
}

.rv-ano__titulo {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.5rem;
	color: var(--rv-vinho);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 2.2rem;
	font-weight: 700;
}

.rv-ano__titulo::after {
	content: '';
	flex: 1 1 auto;
	height: 1px;
	background: #eadfd3;
}

/* ------------------------------------------------------------------------ */
/* Páginas de texto e Fale conosco                                           */
/* ------------------------------------------------------------------------ */

.rv-leitura {
	padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.rv-leitura__texto {
	font-size: clamp(1.12rem, 0.95rem + 0.3vw, 1.25rem);
	line-height: 1.85;
}

.rv-leitura__texto p {
	margin-bottom: 1.35em;
}

.rv-leitura__texto img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.rv-fale__grade {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.rv-fale__form .rv-titulo {
	margin-bottom: 1.5rem;
}

.rv-fale__contatos {
	padding: 1.75rem;
	border-radius: var(--mer-raio);
	background: #fbf7f2;
}

.rv-fale__subtitulo {
	margin: 0 0 1rem;
	color: var(--rv-vinho);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.6rem;
	font-weight: 700;
}

.rv-fale__contatos ul {
	display: grid;
	gap: 1.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1.08rem;
}

.rv-fale__contatos span {
	display: block;
	color: var(--mer-ouro-escuro);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.rv-fale__contatos a {
	color: var(--mer-texto) !important;
	word-break: break-word;
}

.rv-atalho {
	margin: 1.5rem 0;
}

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

@media (max-width: 991.98px) {
	.rv-ultima__grade,
	.rv-contato__grade,
	.rv-edicao-topo__grade,
	.rv-fale__grade {
		grid-template-columns: minmax(0, 1fr);
	}

	.rv-ultima__capa {
		max-width: 300px;
	}

	.rv-edicao-topo__capa img {
		max-width: 300px;
	}

	.rv-contato__foto {
		display: none;
	}

	.rv-anos {
		top: 70px;
	}
}

@media (max-width: 575.98px) {
	.rv-grade {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem 1rem;
	}

	.rv-setas {
		display: none;
	}
}

/* ------------------------------------------------------------------------ */
/* Faixa do título das páginas internas                                      */
/* ------------------------------------------------------------------------ */

.mer-cabecalho.l-template-content__banner {
	height: auto;
	min-height: 0;
	padding: 2.25rem 1rem 2.75rem;
}

.mer-migalhas ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 0;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}

.mer-migalhas li {
	color: rgba(255, 255, 255, 0.75);
}

.mer-migalhas li + li::before {
	content: '\203A';
	margin: 0 0.55rem;
	color: var(--mer-ouro);
}

.mer-migalhas a {
	color: rgba(255, 255, 255, 0.85) !important;
	text-decoration: none !important;
}

.mer-migalhas a:hover {
	color: #fff !important;
	text-decoration: underline !important;
}

.mer-cabecalho__subtitulo {
	margin-top: 1.5rem !important;
	color: rgba(255, 255, 255, 0.85) !important;
	font-size: 1.15rem;
	letter-spacing: 0.04em;
	text-transform: none !important;
}

/* ------------------------------------------------------------------------ */
/* Páginas internas: conteúdo e lateral                                      */
/* ------------------------------------------------------------------------ */

.rv-interna {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

.rv-interna__conteudo {
	min-width: 0;
}

.rv-interna__abertura {
	margin: 0 0 2rem;
	color: var(--mer-suave);
	font-size: 1.2rem;
	line-height: 1.7;
}

.rv-interna__destaque {
	margin: 0 0 2rem;
}

.rv-interna__destaque img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 460px;
	object-fit: cover;
	border-radius: var(--mer-raio);
	box-shadow: var(--mer-sombra-alta);
}

/* Bloco "imagem ao lado do texto" do editor. */
.rv-leitura__texto .wp-block-media-text {
	gap: clamp(1.5rem, 3vw, 2.5rem);
	align-items: start;
	margin-bottom: 2rem;
}

.rv-leitura__texto .wp-block-media-text__content {
	padding: 0;
}

.rv-leitura__texto .wp-block-media-text__media img {
	border-radius: var(--mer-raio);
	box-shadow: var(--mer-sombra-alta);
}

.rv-leitura__texto h2 {
	margin: 2rem 0 1rem;
	color: var(--rv-vinho);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 2rem;
	font-weight: 700;
}

.rv-leitura__texto hr {
	display: none;
}

.rv-leitura__texto .wp-block-image img {
	border-radius: var(--mer-raio);
	box-shadow: var(--mer-sombra-alta);
}

.rv-lateral {
	position: sticky;
	top: 110px;
	display: grid;
	gap: 1.25rem;
}

.rv-lateral > * {
	padding: 1.25rem;
	border-radius: var(--mer-raio);
	background: #fff;
	box-shadow: var(--mer-sombra-alta);
}

.rv-lateral__rotulo {
	margin: 0 0 0.75rem;
	color: var(--mer-ouro-escuro);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.rv-lateral__lista {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rv-lateral__lista a {
	position: relative;
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: 10px;
	color: var(--mer-texto) !important;
	font-size: 1.05rem;
	text-decoration: none !important;
	transition: background-color var(--mer-tempo), color var(--mer-tempo), padding var(--mer-tempo);
}

.rv-lateral__lista a:hover {
	background: #f6eee6;
	color: var(--rv-vinho) !important;
	padding-left: 1rem;
}

.rv-lateral__lista .current-menu-item > a {
	background: #f6eee6;
	color: var(--rv-vinho) !important;
	font-weight: 700;
}

.rv-lateral__lista .current-menu-item > a::before {
	content: '';
	position: absolute;
	top: 22%;
	bottom: 22%;
	left: 0;
	width: 3px;
	border-radius: 3px;
	background: var(--mer-ouro);
}

.rv-lateral__capa {
	display: block;
	max-width: 170px;
	margin: 0 auto 0.75rem;
	border-radius: 4px 10px 10px 4px;
	overflow: hidden;
	box-shadow: 0 14px 28px rgba(60, 10, 10, 0.25);
	transition: transform var(--mer-tempo);
}

.rv-lateral__capa:hover {
	transform: translateY(-4px) rotate(-1.5deg);
}

.rv-lateral__capa img {
	display: block;
	width: 100%;
	height: auto;
}

.rv-lateral__nome {
	margin: 0 0 1rem;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.15rem;
	line-height: 1.25;
	text-align: center;
}

.rv-lateral__nome strong {
	display: block;
	color: var(--mer-ouro-escuro);
	font-family: 'EB Garamond', Georgia, serif;
	font-size: 0.9rem;
}

.rv-botao--bloco {
	justify-content: center;
	width: 100%;
}

.rv-lateral .rv-lateral__colabore {
	background: linear-gradient(135deg, var(--rv-vinho) 0%, var(--rv-vinho-escuro) 100%);
	color: rgba(255, 255, 255, 0.88);
}

.rv-lateral__titulo {
	margin: 0 0 0.5rem;
	color: #fff;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.4rem;
	font-weight: 700;
}

.rv-lateral__colabore p {
	line-height: 1.55;
}

.rv-link--claro {
	color: #f3cf8a !important;
}

/* Faixa de edições no fim das páginas internas. */
.rv-chamada {
	margin-top: 3.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid #eadfd3;
}

.rv-titulo--menor {
	font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}

.rv-grade--tres {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ------------------------------------------------------------------------ */
/* Equipe                                                                    */
/* ------------------------------------------------------------------------ */

.rv-equipe {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rv-pessoa {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.75rem 1.25rem 1.5rem;
	border-radius: var(--mer-raio);
	background: #fff;
	box-shadow: var(--mer-sombra-alta);
	text-align: center;
}

.rv-pessoa__foto {
	width: 120px;
	height: 120px;
	margin-bottom: 1rem;
	overflow: hidden;
	border: 4px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--mer-ouro), 0 12px 24px rgba(60, 10, 10, 0.2);
	background: #f2ebe3;
}

.rv-pessoa__foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.rv-pessoa__foto--iniciais {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #8a0303, var(--rv-vinho-escuro));
	color: #f3cf8a;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 2.6rem;
	font-weight: 700;
}

.rv-pessoa__funcao {
	color: var(--mer-ouro-escuro);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.rv-pessoa__nome {
	margin-top: 0.35rem;
	color: var(--rv-vinho);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
}

.rv-pessoa__contato {
	margin-top: 0.5rem;
	color: var(--mer-suave) !important;
	font-size: 0.95rem;
	word-break: break-word;
}

/* ------------------------------------------------------------------------ */
/* Colabore                                                                  */
/* ------------------------------------------------------------------------ */

.rv-doacao {
	margin-top: 2.5rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--mer-raio);
	background:
		radial-gradient(circle at 90% 10%, rgba(217, 158, 50, 0.25), transparent 45%),
		linear-gradient(135deg, var(--rv-vinho) 0%, var(--rv-vinho-escuro) 100%);
	color: #fff;
}

.rv-doacao__titulo {
	margin: 0 0 1.5rem;
	color: #fff;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 2.2rem;
	font-weight: 700;
}

.rv-doacao__grade {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 1.5rem;
}

.rv-doacao__grade > div {
	padding: 1.25rem;
	border: 1px solid rgba(243, 207, 138, 0.35);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
}

.rv-doacao__rotulo {
	margin: 0 0 0.5rem;
	color: #f3cf8a;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.rv-doacao__chave {
	margin: 0;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.8rem;
	font-weight: 700;
	word-break: break-all;
}

.rv-doacao .rv-botoes {
	margin-top: 1rem;
}

.rv-doacao .rv-botao {
	border-color: var(--mer-ouro);
	background: var(--mer-ouro);
	color: #2b1300 !important;
	font-family: 'EB Garamond', Georgia, serif;
}

.rv-doacao .rv-botao--claro {
	background: transparent;
	color: #fff !important;
}

.rv-doacao__ajuda,
.rv-doacao__fim {
	margin: 1rem 0 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.98rem;
}

.rv-doacao__copiado {
	min-height: 1.3em;
	margin: 0.4rem 0 0;
	color: #9fe3b5;
	font-weight: 700;
}

.rv-doacao__banco p:last-child {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.7;
}

.rv-cartao-recanto {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 1.25rem;
	align-items: center;
	margin-top: 2rem;
	padding: 1rem;
	border-radius: var(--mer-raio);
	background: #fbf7f2;
	color: var(--mer-texto) !important;
	text-decoration: none !important;
	transition: transform var(--mer-tempo), box-shadow var(--mer-tempo);
}

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

.rv-cartao-recanto__foto img {
	display: block;
	width: 100%;
	height: 130px;
	object-fit: cover;
	border-radius: 12px;
}

.rv-cartao-recanto__texto {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.rv-cartao-recanto strong {
	color: var(--rv-vinho);
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 1.5rem;
}

/* ------------------------------------------------------------------------ */
/* Recanto Mercê                                                             */
/* ------------------------------------------------------------------------ */

.rv-video {
	margin: 2rem 0;
}

.rv-video iframe {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--mer-raio);
	background: #1a0306;
	box-shadow: var(--mer-sombra-alta);
}

.rv-video figcaption {
	margin-top: 0.6rem;
	color: var(--mer-suave);
	font-size: 0.95rem;
}

@media (max-width: 991.98px) {
	.rv-interna,
	.rv-doacao__grade {
		grid-template-columns: minmax(0, 1fr);
	}

	.rv-lateral {
		position: static;
	}

	.rv-grade--tres {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.rv-cartao-recanto {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -------------------------------------------------------------------------- */
/* Página inicial: caminho para o portal                                       */
/* -------------------------------------------------------------------------- */

.rv-portal-home {
	padding: clamp(3rem, 6vw, 5rem) 0;
	background: var(--mer-creme);
}

.rv-noticias {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}

.rv-noticia {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: var(--mer-raio);
	background: #fff;
	box-shadow: var(--mer-sombra);
	color: var(--mer-texto);
	text-decoration: none;
	transition: transform var(--mer-tempo), box-shadow var(--mer-tempo);
}

.rv-noticia:hover,
.rv-noticia:focus-visible {
	transform: translateY(-4px);
	box-shadow: var(--mer-sombra-alta);
	color: var(--mer-texto);
}

.rv-noticia__foto {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, var(--rv-vinho) 0%, var(--rv-vinho-escuro) 100%);
}

.rv-noticia__foto img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.rv-noticia:hover .rv-noticia__foto img {
	transform: scale(1.04);
}

.rv-noticia__texto {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.4rem 1.4rem;
}

.rv-noticia__data {
	color: var(--mer-ouro-escuro);
	font-size: 0.85rem;
	font-weight: 700;
}

.rv-noticia__titulo {
	color: var(--rv-vinho);
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.3rem;
	line-height: 1.25;
}

.rv-noticia__resumo {
	color: var(--mer-suave);
	font-size: 0.98rem;
	line-height: 1.55;
}

.rv-noticia__ler {
	margin-top: auto;
	padding-top: 0.4rem;
	color: var(--rv-vinho);
	font-weight: 700;
}

.rv-editorias__chamada {
	margin: 0 0 1rem;
	color: var(--rv-vinho);
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.5rem;
	font-weight: 700;
}

.rv-editorias__lista {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rv-editoria {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	height: 100%;
	padding: 1.1rem 1.25rem;
	border: 1px solid rgba(111, 1, 1, 0.12);
	border-left: 3px solid var(--mer-ouro);
	border-radius: var(--mer-raio-p);
	background: #fff;
	color: var(--mer-texto);
	text-decoration: none;
	transition: border-color var(--mer-tempo), transform var(--mer-tempo), box-shadow var(--mer-tempo);
}

.rv-editoria strong {
	color: var(--rv-vinho);
	font-size: 1.08rem;
}

.rv-editoria span {
	color: var(--mer-suave);
	font-size: 0.93rem;
	line-height: 1.45;
}

.rv-editoria:hover,
.rv-editoria:focus-visible {
	transform: translateY(-2px);
	border-color: rgba(111, 1, 1, 0.3);
	border-left-color: var(--rv-vinho);
	box-shadow: var(--mer-sombra);
	color: var(--mer-texto);
}

.rv-editoria--portal {
	border-color: transparent;
	background: linear-gradient(135deg, var(--rv-vinho) 0%, var(--rv-vinho-escuro) 100%);
}

.rv-editoria--portal strong {
	color: #fff;
}

.rv-editoria--portal span {
	color: rgba(255, 255, 255, 0.8);
}

.rv-editoria--portal:hover,
.rv-editoria--portal:focus-visible {
	border-color: transparent;
	border-left-color: #f3cf8a;
}

@media (max-width: 991.98px) {
	.rv-noticias {
		grid-template-columns: 1fr;
	}

	.rv-noticia {
		flex-direction: row;
	}

	.rv-noticia__foto {
		flex: 0 0 38%;
		aspect-ratio: auto;
		min-height: 150px;
	}

	.rv-noticia__resumo {
		display: none;
	}

	.rv-editorias__lista {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.rv-noticia {
		flex-direction: column;
	}

	.rv-noticia__foto {
		flex: none;
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.rv-editorias__lista {
		gap: 0.6rem;
	}

	.rv-editoria {
		padding: 0.85rem 0.9rem;
	}

	.rv-editoria strong {
		font-size: 1rem;
	}

	.rv-editoria span {
		font-size: 0.85rem;
	}
}

/* O sublinhado geral dos links no hover não entra nos cartões do portal. */
.rv-noticia,
.rv-noticia:hover,
.rv-noticia:focus-visible,
.rv-noticia *,
.rv-editoria,
.rv-editoria:hover,
.rv-editoria:focus-visible,
.rv-editoria * {
	text-decoration: none;
}

/* Marca do topo: "Revista" em texto, legível, sobre o "Mercê". */
.rv-topo__logo .rv-topo__marca {
	display: inline-flex;
	font-size: 1rem;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1;
}

.rv-topo__logo .rv-topo__revista {
	margin: 0 0 0.25rem 0.1rem;
	color: #fff;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: clamp(0.85rem, 1.1vw, 1.05rem);
	font-weight: 700;
	letter-spacing: 0.42em;
	text-transform: uppercase;
}

.rv-topo__logo .rv-topo__marca img {
	height: clamp(40px, 4.6vw, 58px);
}

/* -------------------------------------------------------------------------- */
/* Barra fixa do celular (a mesma do portal) e o painel do menu                */
/* -------------------------------------------------------------------------- */

.pt-barra,
.pt-folha {
	display: none;
}

@media (max-width: 991.98px) {
	body {
		padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
	}

	/* O menu do topo vira a barra: o botão de três traços sai. */
	.rv-topo__abre {
		display: none !important;
	}

	.pt-barra {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1200;
		display: flex;
		align-items: flex-end;
		justify-content: space-around;
		padding-bottom: env(safe-area-inset-bottom, 0px);
		border-top: 1px solid #ece3d8;
		background: #fff;
		box-shadow: 0 -4px 22px rgba(74, 0, 0, 0.12);
	}

	.pt-barra__item {
		display: flex;
		flex: 1 1 0;
		flex-direction: column;
		align-items: center;
		gap: 3px;
		padding: 8px 2px 9px;
		border: 0;
		background: none;
		color: #8a7f78;
		font: inherit;
		font-size: 0.78rem;
		font-weight: 700;
		line-height: 1;
		text-decoration: none;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	.pt-barra__item:hover,
	.pt-barra__item.is-atual,
	.pt-barra__item--destaque {
		color: var(--rv-vinho);
		text-decoration: none;
	}

	.pt-barra__item svg {
		display: block;
		width: 22px;
		height: 22px;
	}

	.pt-barra__circulo {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 56px;
		height: 56px;
		margin-top: -26px;
		margin-bottom: 2px;
		border: 4px solid #fff;
		border-radius: 50%;
		background: linear-gradient(150deg, #8f0a0a 0%, var(--rv-vinho-escuro) 100%);
		box-shadow: 0 8px 20px rgba(74, 0, 0, 0.38);
	}

	.pt-barra__circulo svg {
		width: 24px;
		height: 24px;
		fill: #f3cf8a;
	}

	.pt-folha {
		position: fixed;
		inset: 0;
		z-index: 1300;
		display: block;
	}

	.pt-folha[hidden] {
		display: none;
	}

	.pt-folha__veu {
		position: absolute;
		inset: 0;
		background: rgba(30, 0, 0, 0.5);
		opacity: 0;
		transition: opacity 0.3s ease;
	}

	.pt-folha.is-aberta .pt-folha__veu {
		opacity: 1;
	}

	.pt-folha__painel {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		max-height: 84vh;
		overflow: auto;
		padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
		border-radius: 22px 22px 0 0;
		background: #fff;
		transform: translateY(100%);
		transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.pt-folha.is-aberta .pt-folha__painel {
		transform: none;
	}

	.pt-folha__alca {
		width: 42px;
		height: 4px;
		margin: 4px auto 12px;
		border-radius: 4px;
		background: #e2d8cc;
	}

	.pt-folha__cabeca {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-bottom: 10px;
	}

	.pt-folha__cabeca b {
		color: var(--rv-vinho);
		font-family: 'Cormorant Garamond', Georgia, serif;
		font-size: 1.45rem;
	}

	.pt-folha__fecha {
		width: 34px;
		height: 34px;
		border: 0;
		border-radius: 50%;
		background: var(--mer-creme, #f7f1ea);
		color: #574e48;
		font-size: 22px;
		line-height: 1;
		cursor: pointer;
	}

	.pt-folha__lista {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.pt-folha__lista a {
		padding: 13px 12px;
		border: 1px solid #f1e9df;
		border-radius: 12px;
		background: #fcf9f5;
		color: var(--rv-vinho);
		font-weight: 700;
		text-decoration: none;
	}

	.pt-folha__lista a.is-atual {
		border-color: var(--mer-ouro, #d99e32);
		background: #fbf1dc;
	}

	.pt-folha__sub {
		margin: 18px 0 8px;
		color: var(--mer-ouro-escuro, #b47f1f);
		font-size: 0.8rem;
		font-weight: 700;
		letter-spacing: 0.16em;
		text-transform: uppercase;
	}

	.pt-folha__links {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
	}

	.pt-folha__links a {
		padding: 7px 12px;
		border: 1px solid #ece3d8;
		border-radius: 999px;
		color: #2f2b28;
		font-size: 0.92rem;
		text-decoration: none;
	}

	.a11y-abre {
		bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
	}

	.a11y-painel {
		bottom: calc(136px + env(safe-area-inset-bottom, 0px)) !important;
		max-height: calc(100vh - 170px) !important;
	}

	html.pt-folha-aberta .a11y-abre {
		display: none;
	}

	.mer-cookies {
		bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
	}

	/* A aba de consentimento brigava com a barra: no celular, as preferências
	   abrem pelo link do rodapé. */
	.mer-cookies-aba {
		display: none !important;
	}
}

/* Preferências de cookies, dentro do painel do celular. */
.pt-folha__cookies {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	margin-top: 14px;
	padding: 12px;
	border: 1px dashed #d9c9b6;
	border-radius: 12px;
	color: #574e48;
	font-weight: 700;
	text-decoration: none;
}

.pt-folha__cookies:hover {
	color: #6f0101;
	text-decoration: none;
}
