/* ==========================================================================
   Risco | Reparação — tokens e componentes compartilhados
   ========================================================================== */

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 300 800;
	font-stretch: 100%;
	font-display: swap;
	src: url("../fonts/open-sans-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/playfair-display-latin.woff2") format("woff2");
}
@font-face {
	font-family: "Playfair Display";
	font-style: italic;
	font-weight: 400 900;
	font-display: swap;
	src: url("../fonts/playfair-display-italic-latin.woff2") format("woff2");
}

/* Valores do layout. As cores/fontes globais do Elementor (Configurações do
   site) têm prioridade quando existem: veja o bloco `body` abaixo. */
:root {
	--rr-primary: #856942;
	--rr-dark: #3c2f26;
	--rr-text: #3c2f26;
	--rr-muted: #606060;
	--rr-bg-soft: #f9f9f9;
	--rr-border: #dedede;
	--rr-white: #ffffff;
	--rr-on-dark: #d9d2cc;
	--rr-line-dark: rgba(255, 255, 255, 0.35);
	--rr-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--rr-sans: "Open Sans", "Segoe UI", Arial, sans-serif;
	--rr-container: 1240px;
	--rr-gutter: 20px;
	--rr-focus: 2px solid var(--rr-primary);
}

body {
	--rr-primary: var(--e-global-color-primary, #856942);
	--rr-dark: var(--e-global-color-secondary, #3c2f26);
	--rr-text: var(--e-global-color-text, #3c2f26);
	--rr-muted: var(--e-global-color-rrmuted, #606060);
	--rr-bg-soft: var(--e-global-color-rrsoft, #f9f9f9);
	--rr-border: var(--e-global-color-rrborder, #dedede);
	--rr-white: var(--e-global-color-rrwhite, #ffffff);
	--rr-serif: var(--e-global-typography-primary-font-family, "Playfair Display"), Georgia, "Times New Roman", serif;
	--rr-sans: var(--e-global-typography-text-font-family, "Open Sans"), "Segoe UI", Arial, sans-serif;
	margin: 0;
	background: var(--rr-white);
	color: var(--rr-text);
	font-family: var(--rr-sans);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

@media (max-width: 767px) {
	:root { --rr-gutter: 16px; }
}

/* Reset mínimo (substitui o reset.css do Hello) */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
main { display: block; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0.5rem; font-weight: 500; line-height: 1.2; }
p { margin-top: 0; margin-bottom: 0.9rem; }
b, strong { font-weight: 700; }
img { border-style: none; }
figure { margin: 0; }
button, input, optgroup, select, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: 1.5; }
button, [type="button"], [type="submit"] { -webkit-appearance: button; cursor: pointer; }
button:disabled { cursor: default; }
[type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; }
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
fieldset { min-width: 0; }
dl, dd { margin: 0; }
table { border-collapse: collapse; }
[hidden] { display: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rr-primary); }
:focus-visible { outline: var(--rr-focus); outline-offset: 2px; }
button { font-family: inherit; }

.rr-container {
	width: 100%;
	max-width: calc(var(--rr-container) + 2 * var(--rr-gutter));
	margin-inline: auto;
	padding-inline: var(--rr-gutter);
}

.rr-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

/* Kicker (rótulo pequeno em caixa alta) ------------------------------------ */
.rr-kicker {
	display: block;
	margin: 0;
	font-family: var(--rr-sans);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--rr-primary);
}
.rr-kicker a { color: inherit; }
.rr-kicker--dark { color: var(--rr-dark); }
.rr-kicker--light { color: var(--rr-on-dark); }

/* Títulos de seção ---------------------------------------------------------- */
.rr-section-head { margin: 0 0 32px; }
.rr-section-head--center { text-align: center; }
.rr-section-head .rr-kicker { margin-bottom: 8px; }
.rr-section-title {
	margin: 0;
	font-family: var(--rr-sans);
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--rr-primary);
}
.rr-rule::after,
.rr-section-title::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	margin-top: 12px;
	background: var(--rr-primary);
}
.rr-section-head--center .rr-section-title::after { margin-inline: auto; }

/* Título pequeno (DESTAQUES, MAIS LIDAS) */
.rr-mini-title {
	margin: 0 0 24px;
	font-family: var(--rr-sans);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--rr-dark);
}
.rr-mini-title::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	margin-top: 12px;
	background: var(--rr-primary);
}

/* Título leve centralizado (Últimas publicações, Leia também) */
.rr-light-title {
	margin: 0;
	font-family: var(--rr-sans);
	font-size: 38px;
	font-weight: 400;
	line-height: 1.25;
	text-align: center;
	color: var(--rr-dark);
}
.rr-light-title--rule::after {
	content: "";
	display: block;
	width: 40px;
	height: 3px;
	margin: 18px auto 0;
	background: var(--rr-primary);
}

/* Botões --------------------------------------------------------------------- */
.rr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid var(--rr-primary);
	border-radius: 0;
	background: var(--rr-primary);
	color: var(--rr-white);
	font-family: var(--rr-sans);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.rr-btn:hover, .rr-btn:focus-visible { background: var(--rr-dark); border-color: var(--rr-dark); color: var(--rr-white); }
.rr-btn--outline { background: transparent; border-color: var(--rr-border); color: var(--rr-dark); font-weight: 600; }
.rr-btn--outline:hover { background: var(--rr-bg-soft); border-color: var(--rr-dark); color: var(--rr-dark); }
.rr-btn--outline-light { background: transparent; border-color: var(--rr-line-dark); color: var(--rr-white); }
.rr-btn--outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--rr-white); }
.rr-btn--block { width: 100%; }

/* Link com seta */
.rr-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 400;
	color: var(--rr-dark);
}
.rr-arrow-link svg { width: 24px; height: 12px; flex: none; transition: transform 0.15s; }
.rr-arrow-link:hover svg { transform: translateX(3px); }
.rr-arrow-link--strong { font-weight: 600; color: var(--rr-primary); }

/* Imagem com placeholder ---------------------------------------------------- */
.rr-media {
	position: relative;
	display: block;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--rr-border);
	background: var(--rr-bg-soft);
	aspect-ratio: 16 / 9;
}
.rr-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rr-media--card { aspect-ratio: 16 / 10; }
.rr-media--thumb { aspect-ratio: 4 / 3; }
.rr-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: #8a8a8a;
	font-size: 11.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.rr-placeholder svg { width: 22px; height: 22px; }
.rr-media--hero .rr-placeholder svg { width: 32px; height: 32px; }
.rr-media--thumb .rr-placeholder svg { width: 22px; height: 22px; }

/* Selo de data (dia sobre primário, mês sobre escuro) ------------------------ */
.rr-date {
	position: absolute;
	top: 0;
	right: 24px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 60px;
	text-align: center;
	color: var(--rr-white);
	font-family: var(--rr-sans);
}
.rr-date__day { display: block; padding: 9px 0 8px; background: var(--rr-primary); font-size: 26px; font-weight: 400; line-height: 33px; }
.rr-date__month { display: block; padding: 5px 0 4px; background: var(--rr-dark); font-size: 10px; font-weight: 700; line-height: 16px; letter-spacing: 0.12em; text-transform: uppercase; }
.rr-date--sm { right: 18px; width: 52px; }
.rr-date--sm .rr-date__day { padding: 6px 0 5px; font-size: 24px; line-height: 31px; }
.rr-date--sm .rr-date__month { padding: 4px 0 3px; font-size: 9px; line-height: 15px; }

/* Selo de formato (canto inferior esquerdo da imagem) */
.rr-format {
	position: absolute;
	left: -1px;
	bottom: -1px;
	z-index: 1;
	padding: 6px 12px 5px;
	border: 1px solid var(--rr-border);
	background: var(--rr-white);
	color: var(--rr-dark);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Card de publicação --------------------------------------------------------- */
.rr-card { display: flex; flex-direction: column; min-width: 0; }
.rr-card__media { display: block; }
.rr-card__kicker {
	margin-top: 14px;
	padding-bottom: 9px;
	border-bottom: 1px solid var(--rr-border);
}
.rr-card__title {
	margin: 16px 0 0;
	font-family: var(--rr-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--rr-dark);
}
.rr-card__title a { color: inherit; }
.rr-card__title a:hover { color: var(--rr-primary); }
.rr-card__excerpt {
	margin: 12px 0 0;
	font-size: 15px;
	line-height: 24px;
	color: var(--rr-muted);
}
.rr-card__more { margin-top: 18px; }

/* Avatar circular com inicial ----------------------------------------------- */
.rr-avatar {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	overflow: hidden;
	border: 1px solid var(--rr-border);
	border-radius: 50%;
	background: var(--rr-bg-soft);
	color: var(--rr-primary);
	font-family: var(--rr-serif);
	font-size: 20px;
	line-height: 1;
}
.rr-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Mensagem do editor quando falta conteúdo */
.rr-empty { padding: 16px; border: 1px dashed var(--rr-border); color: var(--rr-muted); font-size: 13px; text-align: center; }

/* Faixas de seção fora do Elementor (matéria, listagens) */
.rr-band { padding: 48px 0 64px; }
.rr-band--soft { background: var(--rr-bg-soft); border-top: 1px solid var(--rr-border); }
