/* Conteúdo de posts convertidos do Elementor (migration/convert-posts.php).
   Reproduz o que o Elementor + kit global aplicavam: seções "boxed" de 1140px com 10px de respiro,
   20px entre widgets, títulos com line-height 1, vídeo 16:9 e botões do Elementor.
   Classes:
   .amc-el-sec    seções do Elementor (1 coluna) — caixa de 1140px
   .amc-el-con    container flexbox do Elementor (conteúdo de até 1140px)
   .amc-el-raw    post que estava no modo Elementor mas exibia o post_content (largura total)
   .amc-el-text   widget "editor de texto" (margens naturais do tema)
   .amc-el-heading(--small|--medium|--large|--xl|--xxl), .amc-el-color-*, .amc-el-video,
   .amc-el-btn (core/buttons) + .amc-el-btn--pdf / --blue (core/button), .amc-el-image */

/* Variáveis do kit global do Elementor (usadas em estilos inline colados no conteúdo). */
.page-content,
.amc-el-sec,
.amc-el-con,
.amc-el-raw {
	--e-global-color-primary: #000000;
	--e-global-color-secondary: #54595F;
	--e-global-color-text: #000000;
	--e-global-color-accent: #000000;
	--e-global-typography-primary-font-family: "Montserrat";
	--e-global-typography-primary-font-weight: 600;
	--e-global-typography-secondary-font-family: "Montserrat";
	--e-global-typography-secondary-font-weight: 400;
	--e-global-typography-text-font-family: "Montserrat";
	--e-global-typography-text-font-weight: 400;
	--e-global-typography-accent-font-family: "Montserrat";
	--e-global-typography-accent-font-weight: 500;
}

/* Posts do Elementor tinham body.elementor-page-*: o .site-main do Hello ocupava a largura toda. */
body.single .site-main:has(> .page-content > :is(.amc-el-sec, .amc-el-con, .amc-el-raw)) {
	max-width: none;
	padding-inline: 0;
}

/* ---- Caixas ---- */
.amc-el-sec,
.amc-el-con {
	position: relative;
	box-sizing: border-box;
	margin: 0;
}
.amc-el-sec {
	max-width: 1140px;
	margin-inline: auto;
	padding: 10px;
}
.amc-el-con {
	padding: 10px;
}
body .amc-el-con.amc-el-con > * {
	max-width: 1140px;
	margin-inline: auto;
}
@media (max-width: 1024px) {
	.amc-el-sec { max-width: 1024px; }
	body .amc-el-con.amc-el-con > * { max-width: 1024px; }
}
@media (max-width: 767px) {
	.amc-el-sec { max-width: 767px; }
	body .amc-el-con.amc-el-con > * { max-width: 767px; }
}
.page-content > .amc-el-sec,
.page-content > .amc-el-con,
.page-content > .amc-el-raw {
	margin-block: 0;
}
/* 20px entre widgets (sobrepõe o blockGap de 24px do layout "flow"). */
body .amc-el-sec.amc-el-sec > *,
body .amc-el-con.amc-el-con > * {
	margin-block: 0;
}
body .amc-el-sec.amc-el-sec > * + *,
body .amc-el-con.amc-el-con > * + * {
	margin-block-start: 20px;
}

/* Texto livre: margens naturais do tema (como fora do Elementor). */
.amc-el-text {
	display: flow-root;
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
	font-weight: var(--e-global-typography-text-font-weight);
	color: var(--e-global-color-text);
}
:is(.amc-el-text, .amc-el-raw).wp-block-group > * {
	margin-block: 0;
}
:is(.amc-el-text, .amc-el-raw).wp-block-group > p {
	margin-block: 0 .9rem;
}
:is(.amc-el-text, .amc-el-raw).wp-block-group > :is(h1, h2, h3, h4, h5, h6) {
	margin-block: .5rem 1rem;
}
:is(.amc-el-text, .amc-el-raw).wp-block-group > :is(ul, ol, dl) {
	margin-block: 0 1em;
}
:is(.amc-el-text, .amc-el-raw).wp-block-group > :is(figure, blockquote) {
	margin-block: 1em;
}

/* ---- Título (widget heading) ---- */
.amc-el-heading.amc-el-heading {
	margin: 0;
	padding: 0;
	line-height: 1;
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
	font-weight: var(--e-global-typography-primary-font-weight);
	color: var(--e-global-color-primary);
}
.amc-el-heading > a { color: inherit; font-size: inherit; line-height: inherit; }
.amc-el-heading--small.amc-el-heading { font-size: 15px; }
.amc-el-heading--medium.amc-el-heading { font-size: 19px; }
.amc-el-heading--large.amc-el-heading { font-size: 29px; }
.amc-el-heading--xl.amc-el-heading { font-size: 39px; }
.amc-el-heading--xxl.amc-el-heading { font-size: 59px; }
.amc-el-heading.amc-el-color-blue { color: #0388A6; }
.amc-el-heading.amc-el-color-black { color: #000000; }

/* ---- Vídeo (widget video → core/embed) ---- */
.amc-el-video.wp-block-embed {
	margin: 0;
	overflow: hidden;
}
.amc-el-video .wp-block-embed__wrapper {
	position: relative;
	aspect-ratio: 1.77777;
}
.amc-el-video.wp-has-aspect-ratio .wp-block-embed__wrapper::before {
	display: none;
}
.amc-el-video .wp-block-embed__wrapper iframe,
.amc-el-video video {
	position: absolute;
	inset: 0;
	display: flex;
	width: 100%;
	height: 100%;
	border: none;
	background-color: #000;
}
.amc-el-video.wp-embed-aspect-21-9 .wp-block-embed__wrapper { aspect-ratio: 2.33333; }
.amc-el-video.wp-embed-aspect-4-3 .wp-block-embed__wrapper { aspect-ratio: 1.33333; }
.amc-el-video.wp-embed-aspect-3-2 .wp-block-embed__wrapper { aspect-ratio: 1.5; }
.amc-el-video.wp-embed-aspect-1-1 .wp-block-embed__wrapper { aspect-ratio: 1; }
.amc-el-video.wp-embed-aspect-9-16 .wp-block-embed__wrapper { aspect-ratio: .5625; }

/* ---- Botão (widget button → core/buttons) ---- */
.amc-el-btn.wp-block-buttons {
	display: block;
	margin: 0;
}
.amc-el-btn .wp-block-button {
	display: block;
	margin: 0;
}
.amc-el-btn .wp-block-button + .wp-block-button { margin-top: 20px; }
.amc-el-btn .wp-block-button__link.wp-element-button {
	display: inline-flex;
	flex-direction: row;
	justify-content: center;
	gap: 5px;
	box-sizing: border-box;
	padding: 12px 24px;
	border: 0;
	border-radius: 3px;
	background-color: #69727d;
	color: #fff;
	fill: #fff;
	font-family: var(--e-global-typography-accent-font-family), Sans-serif;
	font-weight: var(--e-global-typography-accent-font-weight);
	font-size: 15px;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-align: center;
	text-decoration: underline; /* .page-content a do Hello (era herdado pelo botão do Elementor) */
	transition: all .3s;
	width: auto;
}
.amc-el-btn .wp-block-button__link.wp-element-button:is(:hover, :focus, :visited) { color: #fff; }
.amc-el-btn .amc-el-btn--blue .wp-block-button__link.wp-element-button { background-color: #0388A6; }
/* Ícone à direita (Font Awesome, "far fa-file-pdf"). */
.amc-el-btn .amc-el-btn--pdf .wp-block-button__link::after {
	content: "\f1c1";
	display: flex;
	align-items: center;
	font-family: "Font Awesome 5 Free";
	font-weight: 400;
	font-style: normal;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	text-decoration: none;
}

/* ---- Imagem (widget image → core/image) ---- */
.amc-el-image.wp-block-image {
	margin: 0;
	text-align: center;
}
.amc-el-image.wp-block-image img {
	display: inline-block;
	vertical-align: middle;
	max-width: 100%;
	height: auto;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

/* h3 do kit global do Elementor (.elementor-kit-7 h3) — valia no conteúdo dos posts. */
.site-main h3 {
	font-size: 20px;
	font-weight: normal;
	text-transform: uppercase;
	letter-spacing: 0.9px;
}

/* Páginas que não eram do Elementor (pagina-exemplo, politica-de-privacidade): reproduzem o
   template de página do Hello (.site-main limitado + título h1.entry-title) dentro do
   .amc-page de largura total. Conteúdo em migration/content/<ID>-<slug>.html. */
.amc-hello-page.wp-block-group {
	margin-inline: auto;
	width: 100%;
}
@media (max-width: 575px) {
	.amc-hello-page.wp-block-group,
	.amc-hello-page.wp-block-group > .entry-title { padding-inline: 10px; } /* .page-header .entry-title do Hello */
}
@media (min-width: 576px) { .amc-hello-page.wp-block-group { max-width: 500px; } }
@media (min-width: 768px) { .amc-hello-page.wp-block-group { max-width: 600px; } }
@media (min-width: 992px) { .amc-hello-page.wp-block-group { max-width: 800px; } }
@media (min-width: 1200px) { .amc-hello-page.wp-block-group { max-width: 1140px; } }
.amc-hello-page.wp-block-group > * { margin-block: 0; }
.amc-hello-page.wp-block-group > p { margin-block: 0 .9rem; }
.amc-hello-page.wp-block-group > :is(h1, h2, h3, h4, h5, h6) { margin-block: .5rem 1rem; }
.amc-hello-page.wp-block-group > :is(ul, ol) { margin-block: 0 1em; }
.amc-hello-page.wp-block-group > :is(blockquote, figure) { margin: 1em 40px; }
.amc-hello-page a { text-decoration: underline; } /* .page-content a do Hello */
