/*
Theme Name: MDC Hello
Description: Tema filho do Hello Elementor para o site da Maccari de Camargo. Só cuida de posts, blog e páginas sem Elementor; cabeçalho e rodapé vêm do ElementsKit.
Template: hello-elementor
Version: 1.1.9
Text Domain: mdc-hello
*/

/* Fontes e cores sempre do Kit global do Elementor (Configurações do site > Cores/Fontes globais). */
body {
	font-family: var(--e-global-typography-text-font-family, "Wix Madefor Text"), sans-serif;
	color: var(--e-global-color-text, #212121);
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--e-global-typography-primary-font-family, "Wix Madefor Display"), sans-serif;
	font-weight: var(--e-global-typography-primary-font-weight, 600);
	color: var(--e-global-color-text, #212121);
	line-height: 1.25;
}
a {
	color: var(--e-global-color-secondary, #346915);
}
a:hover,
a:focus {
	color: var(--e-global-color-primary, #013124);
}

/* Coluna de leitura dos posts e das páginas provisórias. */
/* ".site-main.site-main" vence as larguras e o padding do Hello (body:not([class*=elementor-page-]) .site-main). */
body .site-main.site-main {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 20px 64px;
}
body .site-main.site-main.mdc-arquivo {
	max-width: 1140px;
}
body .site-main .page-header .entry-title {
	padding-inline: 0; /* o Hello põe 10 px e desalinha o título da categoria e da autora */
}

.mdc-post__cabecalho {
	margin-bottom: 28px;
}
.mdc-post__categorias {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.mdc-post__categorias a {
	text-decoration: none;
}
.mdc-post .entry-title {
	margin: 0 0 18px;
	font-size: clamp(30px, 5vw, 42px);
}
.mdc-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	color: #5f6368;
}
.mdc-meta img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}
.mdc-meta__autora {
	display: block;
	font-weight: 600;
	color: var(--e-global-color-text, #212121);
}
.mdc-post__capa {
	margin: 0 0 32px;
}
.mdc-post__capa img,
.mdc-post .page-content img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
}

.mdc-post .page-content {
	font-size: 18px;
	line-height: 1.75;
}
.mdc-post .page-content h2 {
	margin: 40px 0 12px;
	font-size: 28px;
	color: var(--e-global-color-secondary, #346915);
}
.mdc-post .page-content h3 {
	margin: 28px 0 8px;
	font-size: 22px;
}
.mdc-post .page-content p,
.mdc-post .page-content ul,
.mdc-post .page-content ol,
.mdc-post .page-content figure {
	margin: 0 0 20px;
}
.mdc-post .page-content li {
	margin-bottom: 6px;
}

/* Lista do blog e das categorias. */
.mdc-arquivo .page-header .entry-title {
	font-size: clamp(30px, 5vw, 42px);
}
.mdc-arquivo__grade {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}
.mdc-cartao {
	overflow: hidden;
	border: 1px solid #e6e8e3;
	border-radius: 16px;
	background: #fff;
}
.mdc-cartao img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.mdc-cartao__corpo {
	padding: 20px;
}
.mdc-cartao h2 {
	margin: 0 0 12px;
	font-size: 21px;
}
.mdc-cartao h2 a {
	color: inherit;
	text-decoration: none;
}
.mdc-cartao .mdc-meta {
	margin-bottom: 12px;
	font-size: 14px;
}
.mdc-cartao .mdc-meta img {
	width: 32px;
	height: 32px;
}
.mdc-cartao p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}
.mdc-arquivo .pagination {
	margin-top: 40px;
}

@media (max-width: 767px) {
	body .site-main.site-main {
		padding: 24px 16px 48px;
	}
	.mdc-post .page-content {
		font-size: 17px;
	}
	.mdc-post .page-content h2 {
		font-size: 24px;
	}
}

/* ===== Páginas convertidas dos HTMLs (Elementor gratuito) =====
   O Elementor gratuito não tem CSS personalizado nem "sticky"; o que não dá para fazer com widgets fica aqui.
   As classes vão em Avançado > Classes CSS. Cores sempre pelas variáveis do Kit. */

/* Cabeçalho global fixo no topo ao rolar. */
.ekit-template-content-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .ekit-template-content-header {
	top: 32px;
}
[id] {
	scroll-margin-top: 96px;
}
html {
	scroll-behavior: smooth;
}

/* Textura quadriculada dos fundos verdes: linhas de 1 px a cada 26 px, com máscara em degradê. */
.textura,
.textura-rodape {
	position: relative;
	isolation: isolate;
}
.textura::before,
.textura-rodape::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	border-radius: inherit;
	background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 26px 26px;
	background-position: -1px -1px;
	-webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 95%);
	mask-image: linear-gradient(100deg, transparent 30%, #000 95%);
}
.textura-rodape::before {
	-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
	mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
/* O fundo do Elementor fica no próprio contêiner; a textura precisa ficar acima dele. */
.textura > .e-con-inner,
.textura > .elementor-element,
.textura-rodape > .e-con-inner {
	position: relative;
	z-index: 1;
}

/* Linha do tempo das etapas: linha de 1 px + pontos; vertical no celular e no tablet. */
.linha-tempo {
	position: relative;
	padding-top: 34px !important;
}
.linha-tempo::before {
	content: "";
	position: absolute;
	top: 7px;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--e-global-color-accent, #92B079);
}
.linha-tempo .etapa {
	position: relative;
	overflow: visible;
}
.linha-tempo .etapa::before {
	content: "";
	position: absolute;
	top: -32px;
	left: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--e-global-color-accent, #92B079);
	box-shadow: 0 0 0 5px var(--e-global-color-primary, #013124);
}
.linha-tempo.clara::before {
	background: #9fc0ad;
}
.linha-tempo.clara .etapa::before {
	width: 15px;
	height: 15px;
	top: -34px;
	background: var(--e-global-color-secondary, #346915);
	box-shadow: 0 0 0 5px #fff;
}
@media (max-width: 1024px) {
	.linha-tempo {
		padding-top: 0 !important;
		padding-left: 34px !important;
	}
	.linha-tempo::before {
		top: 6px;
		bottom: 6px;
		left: 7px;
		right: auto;
		width: 1px;
		height: auto;
	}
	.linha-tempo .etapa::before {
		top: 6px;
		left: -32px;
	}
	.linha-tempo.clara .etapa::before {
		top: 4px;
		left: -34px;
	}
}

/* Atalhos e listas com seta à direita (o ícone dos widgets só fica à esquerda). */
.atalho .elementor-icon-box-wrapper {
	position: relative;
	padding-right: 28px;
}
.atalho .elementor-icon-box-wrapper::after {
	content: "→";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	color: var(--e-global-color-secondary, #346915);
	font-size: 20px;
}
.atalho {
	transition: border-color .2s, transform .2s;
}
.atalho:hover {
	border-color: var(--e-global-color-secondary, #346915) !important;
	transform: translateY(-2px);
}
.atalho .elementor-icon-box-title a::after {
	content: "";
	position: absolute;
	inset: 0; /* o cartão inteiro fica clicável */
}
.lista-seta .elementor-icon-list-item {
	border-top: 1px solid var(--e-global-color-borda, #DFE6E1);
}
.lista-seta .elementor-icon-list-item > a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
}
.lista-seta .elementor-icon-list-item > a::after {
	content: "→";
	color: var(--e-global-color-secondary, #346915);
}

/* Rodapé: links herdam a cor clara do texto. */
.rodape a {
	color: inherit;
	text-decoration: none;
}
.rodape a:hover {
	color: #fff;
}
.lista-pontos .elementor-icon-list-item {
	position: relative;
	padding-left: 16px;
}
.lista-pontos .elementor-icon-list-item::before {
	content: "";
	position: absolute;
	top: .65em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--e-global-color-accent, #92B079);
}
.logo-branco img {
	filter: brightness(0) invert(1);
}

/* Formulário do Boletim (sem widget de formulário no Elementor gratuito; destino ainda pendente). */
.news-home {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
.news-home input {
	flex: 1 1 220px;
	font: inherit;
	font-size: 16px;
	padding: 14px 16px;
	border: 1px solid var(--e-global-color-borda, #DFE6E1);
	border-radius: 8px;
	background: #fff;
	color: var(--e-global-color-text, #1D2A24);
}
.news-home input:focus {
	outline: 2px solid var(--e-global-color-secondary, #346915);
	outline-offset: 1px;
}
.news-home button {
	display: inline-flex;
	align-items: center;
	font-family: var(--e-global-typography-accent-font-family, "Wix Madefor Display"), sans-serif;
	font-weight: 600;
	font-size: 16px;
	padding: 15px 28px;
	border: 0;
	border-radius: 8px;
	background: var(--e-global-color-secondary, #346915);
	color: #fff;
	cursor: pointer;
}
.news-home button:hover {
	background: #2a5611;
}
.news-home small {
	flex-basis: 100%;
	font-size: 12px;
	color: var(--e-global-color-suave, #5B6B62);
}
.news-home .sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
@media (max-width: 767px) {
	.news-home input,
	.news-home button {
		flex-basis: 100%;
		justify-content: center;
	}
}

/* Cartões inteiros clicáveis (contêiner com tag <a>) e migalhas de pão. */
a.cartao-link,
a.cartao-link:hover {
	color: inherit;
	text-decoration: none;
	transition: border-color .2s, transform .2s;
}
a.cartao-link:hover {
	border-color: var(--e-global-color-secondary, #346915) !important;
	transform: translateY(-2px);
}
.migalhas a {
	color: inherit;
}
.migalhas a:hover {
	color: #fff;
}

/* Títulos dentro do texto corrido das páginas convertidas (h3 entre parágrafos). */
.elementor-widget-text-editor h3 {
	font-size: 20px;
	margin: 26px 0 8px;
}
.elementor-widget-text-editor h3:first-child {
	margin-top: 0;
}
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
	padding-left: 1.2em;
}

/* Cartão escuro (Contatos), definições (Onde estamos), Post Grid e formulário sobre o verde. */
.cartao-escuro a {
	color: #fff;
}
.cartao-escuro .elementor-heading-title > a:hover {
	text-decoration: underline;
}
.elementor-widget-text-editor dt {
	font-weight: 600;
	color: var(--e-global-color-primary, #013124);
	margin-top: 12px;
}
.elementor-widget-text-editor dt:first-child {
	margin-top: 0;
}
.elementor-widget-text-editor dd {
	margin: 0;
}
.eael-load-more-button-wrap .eael-load-more-button {
	background: var(--e-global-color-secondary, #346915) !important;
	border-radius: 8px !important;
	font-family: var(--e-global-typography-accent-font-family, "Wix Madefor Display"), sans-serif;
}
.textura .news-home input {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(207, 224, 213, .25);
	color: #fff;
}
.textura .news-home small,
.textura .news-home small a {
	color: #9fc0ad;
}
.lista-escura .elementor-icon-list-item {
	border-top-color: #1F5442;
}
.lista-escura .elementor-icon-list-item > a::after {
	color: var(--e-global-color-accent, #92B079);
}

/* Página 404 (template-parts/404.php + js/colheita.js). */
.erro-404 {
	max-width: 1140px;
	margin: 0 auto;
	padding: 72px 24px 88px;
	text-align: center;
}
.erro-404 .sobre,
.erro-404 h1 {
	margin: 0;
	font-family: var(--e-global-typography-primary-font-family), sans-serif;
	font-size: clamp(30px, 5vw, 46px);
	font-weight: 600;
	line-height: 1.2;
}
.erro-404 .sobre {
	color: var(--e-global-color-secondary, #346915);
}
.erro-404 h1 {
	margin-bottom: 16px;
	color: var(--e-global-color-primary, #013124);
}
.erro-404 .lead {
	max-width: 620px;
	margin: 0 auto;
}
.erro-404 .campo {
	max-width: 900px;
	margin: 40px auto 32px;
	border: 1px solid #DCE6D2;
	border-radius: 12px;
	overflow: hidden;
	background: #EAF1E1;
}
.erro-404 canvas {
	display: block;
	margin: 0 auto;
	image-rendering: pixelated;
	cursor: pointer;
	touch-action: manipulation;
}
.erro-404 .botoes {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}
.erro-404 .botoes a {
	padding: 14px 26px;
	border: 2px solid var(--e-global-color-primary, #013124);
	border-radius: 6px;
	font-family: var(--e-global-typography-primary-font-family), sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}
.erro-404 .botoes .prim {
	background: var(--e-global-color-primary, #013124);
	color: #fff;
}
.erro-404 .botoes .sec {
	color: var(--e-global-color-primary, #013124);
}
.erro-404 .botoes a:hover {
	background: var(--e-global-color-secondary, #346915);
	border-color: var(--e-global-color-secondary, #346915);
	color: #fff;
}
@media (max-width: 767px) {
	.erro-404 {
		padding: 48px 16px 64px;
	}
}

/* Botões de WhatsApp dentro dos posts */
.mdc-botao-post {
	margin: 32px 0;
	text-align: center;
}
.mdc-botao-post a {
	display: inline-block;
	padding: 14px 24px;
	border-radius: 8px;
	background: var(--e-global-color-secondary, #346915);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
}
.mdc-botao-post a:hover {
	background: var(--e-global-color-primary, #013124);
}
