/*
 * Tema Floripa Mil Grau — CSS principal.
 * Versão no nome do arquivo (fmg-v7.css): o servidor tira o ?ver=. Mexeu?
 * Cria o fmg-v8.css e troca FMG_ASSET_VER no functions.php.
 */

/* Montserrat do próprio tema (latin, variável 100–900). font-display:
 * optional: se não estiver pronta logo no começo, a visita fica na fonte do
 * sistema sem trocar com a página na tela (era o que fazia o menu pular). */
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 100 900;
	font-display: optional;
	src: url('../fonts/montserrat-latin-v31.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--fmg-azul: #005aff;        /* faixa do logo */
	--fmg-marinho: #202f5b;     /* faixa do menu */
	--fmg-destaque: #1151d3;    /* selos, títulos de seção, botões */
	--fmg-escuro: #14224a;      /* rodapé */
	--fmg-mais-escuro: #090818; /* assinatura */
	--fmg-texto: #222;
	--fmg-suave: #5b6275;
	--fmg-borda: #e3e7f0;
	--fmg-fundo-suave: #f5f7fb;
	--fmg-titulo: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--fmg-corpo: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--fmg-raio: 8px;
	--fmg-menu-h: 44px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--fmg-menu-h) + 12px); }
body {
	margin: 0;
	background: #fff;
	color: var(--fmg-texto);
	font: 16px/1.55 var(--fmg-corpo);
	overflow-wrap: break-word;
}
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; vertical-align: middle; }
a { color: var(--fmg-destaque); }
a:hover { color: var(--fmg-marinho); }
h1, h2, h3, h4, h5, h6 { font-family: var(--fmg-titulo); line-height: 1.25; color: #111; margin: 1.2em 0 .5em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--fmg-destaque); outline-offset: 2px; }
/* amarelo só no fundo escuro (menu, rodapé, faixa do logo): no branco ele quase some */
.fmg-topo :focus-visible, .fmg-menu :focus-visible, .fmg-rodape :focus-visible { outline-color: #ffbf00; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.fmg-pular { position: absolute; left: 8px; top: -60px; z-index: 1000; background: #fff; padding: 8px 12px; }
.fmg-pular:focus { top: 8px; }

.fmg-largura { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
.fmg-largura--texto { max-width: 860px; }
.fmg-conteudo { min-height: 50vh; padding-bottom: 32px; }

/* ---------- topo (logo) ---------- */
.fmg-topo { background: var(--fmg-azul); }
.fmg-topo__marca { display: flex; justify-content: center; align-items: center; min-height: 70px; padding: 8px 16px; }
.fmg-logo { margin: 0; font-size: 1.4rem; line-height: 1; }
.fmg-logo a { color: #fff; text-decoration: none; display: block; }
.fmg-logo img { max-height: 54px; width: auto; }

/* ---------- menu (grudado no topo ao rolar) ---------- */
.fmg-menu { position: sticky; top: 0; z-index: 100; background: var(--fmg-marinho); color: #fff; }
.admin-bar .fmg-menu { top: 32px; }
@media (max-width: 782px) { .admin-bar .fmg-menu { top: 46px; } }
@media (max-width: 600px) { .admin-bar .fmg-menu { top: 0; } }

.fmg-menu__barra { display: flex; align-items: center; gap: 8px; min-height: var(--fmg-menu-h); }
.fmg-menu a, .fmg-menu button { color: #fff; }
.fmg-menu__casa { display: flex; padding: 8px 6px; }
.fmg-menu__nav { flex: 1; }
.fmg-menu__lista, .fmg-menu__lista ul { list-style: none; margin: 0; padding: 0; }
.fmg-menu__lista { display: flex; flex-wrap: wrap; }
.fmg-menu__lista > li { position: relative; display: flex; align-items: center; }
.fmg-menu__lista a {
	display: block; padding: 11px 10px; text-decoration: none;
	font: 600 14px/22px var(--fmg-titulo); text-transform: uppercase; letter-spacing: .01em;
}
.fmg-menu__lista a:hover, .fmg-menu__lista .current-menu-item > a { color: #ffd84d; }
.fmg-sub-abrir { background: none; border: 0; padding: 4px 6px 4px 0; margin-left: -6px; cursor: pointer; font-size: 12px; }
.fmg-menu__lista .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 230px;
	background: #fff; border-radius: 0 0 var(--fmg-raio) var(--fmg-raio);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .18); padding: 6px 0; z-index: 10;
}
.fmg-menu__lista .sub-menu a { color: var(--fmg-texto); text-transform: none; font-weight: 500; padding: 8px 16px; }
.fmg-menu__lista .sub-menu a:hover { background: var(--fmg-fundo-suave); color: var(--fmg-destaque); }
.fmg-menu__lista > li:hover > .sub-menu,
.fmg-menu__lista > li:focus-within > .sub-menu,
.fmg-menu__lista > li.is-aberto > .sub-menu { display: block; }

.fmg-menu__abrir { display: none; background: none; border: 0; padding: 8px 6px; cursor: pointer; align-items: center; gap: 8px; font: 600 14px var(--fmg-titulo); text-transform: uppercase; }
.fmg-hamburguer, .fmg-hamburguer::before, .fmg-hamburguer::after {
	display: block; width: 20px; height: 2px; background: #fff; position: relative; content: '';
}
.fmg-hamburguer::before { position: absolute; top: -6px; }
.fmg-hamburguer::after { position: absolute; top: 6px; }
.fmg-menu__busca-btn { margin-left: auto; background: none; border: 0; padding: 8px 6px; cursor: pointer; display: flex; }

.fmg-busca { background: #16224a; padding: 12px 0; }
.fmg-form-busca { display: flex; gap: 8px; max-width: 640px; }
.fmg-form-busca input {
	flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--fmg-borda); border-radius: var(--fmg-raio); background: #fff; color: var(--fmg-texto);
}
.fmg-form-busca button, .fmg-botao {
	display: inline-block; padding: 10px 18px; border: 0; border-radius: var(--fmg-raio); cursor: pointer;
	background: var(--fmg-destaque); color: #fff; text-decoration: none;
	font: 700 14px/1.2 var(--fmg-titulo); text-transform: uppercase;
}
.fmg-form-busca button:hover, .fmg-botao:hover { background: var(--fmg-marinho); color: #fff; }

/* Notebook (1024–1365px): os 8 itens do menu não cabem numa linha com a
   letra cheia e a barra virava duas (88px). Letra e respiro menores. */
@media (min-width: 1024px) and (max-width: 1365px) {
	.fmg-menu__lista a { font-size: 13px; padding-inline: 7px; letter-spacing: 0; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
	.fmg-menu__lista a { font-size: 12px; padding-inline: 6px; }
}
@media (min-width: 1024px) and (max-width: 1099px) {
	.fmg-menu__lista a { font-size: 11.5px; padding-inline: 5px; } /* 884 de 897px: no limite */
}

@media (max-width: 1023px) {
	.fmg-menu__abrir { display: flex; }
	.fmg-menu__casa { display: none; }
	.fmg-menu__nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--fmg-marinho); max-height: calc(100vh - var(--fmg-menu-h)); max-height: calc(100dvh - var(--fmg-menu-h)); overflow-y: auto;
		box-shadow: 0 12px 24px rgba(0, 0, 0, .3);
	}
	.fmg-menu.is-aberto .fmg-menu__nav { display: block; }
	.fmg-menu__lista { flex-direction: column; padding: 6px 0 12px; }
	.fmg-menu__lista > li { flex-wrap: wrap; }
	.fmg-menu__lista > li > a { flex: 1; padding: 12px 16px; }
	.fmg-sub-abrir { padding: 12px 16px; margin: 0; font-size: 16px; }
	.fmg-menu__lista .sub-menu { position: static; width: 100%; box-shadow: none; border-radius: 0; background: #16224a; }
	.fmg-menu__lista > li:hover > .sub-menu, .fmg-menu__lista > li:focus-within > .sub-menu { display: none; }
	.fmg-menu__lista > li.is-aberto > .sub-menu { display: block; }
	.fmg-menu__lista .sub-menu a { color: #fff; padding-left: 32px; }
	.fmg-menu__lista .sub-menu a:hover { background: none; color: #ffd84d; }
}

/* ---------- anúncios (o tamanho quem reserva é o plugin) ---------- */
/* Bloco centralizado, NÃO flex: dentro de flex a imagem com lazy (ainda sem
 * arquivo) encolhe pra quase zero e só cresce ao carregar, e a página pula.
 * Como bloco, o width/height do <img> já reserva o espaço certo. */
.fmg-anuncio { display: block; text-align: center; margin: 20px auto; padding-inline: 16px; max-width: 1280px; line-height: 0; }
.fmg-anuncio img { max-width: 100%; height: auto; vertical-align: top; }
.fmg-lista .fmg-anuncio { padding-inline: 0; margin: 0 0 16px; }

/* ---------- destaques da home ---------- */
.fmg-destaques {
	display: grid; gap: 20px; margin-top: 20px;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 240px);
	align-items: start;
}
.fmg-destaques--sem-cats { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }

.fmg-slide { position: relative; border-radius: var(--fmg-raio); overflow: hidden; background: #111; }
.fmg-slide__trilho {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; aspect-ratio: 4 / 5;
}
.fmg-slide__trilho::-webkit-scrollbar { display: none; }
.fmg-slide__item { position: relative; flex: 0 0 100%; scroll-snap-align: start; color: #fff; text-decoration: none; }
/* as artes do FMG são 4:5 (formato do Instagram): contain mostra a arte
 * inteira, sem cortar o texto escrito nela */
.fmg-slide__item img, .fmg-slide__item .fmg-foto-vazia { width: 100%; height: 100%; object-fit: contain; display: block; }
/* o título já vem escrito na arte: aqui ele fica só pra leitor de tela */
.fmg-slide__titulo {
	position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.fmg-slide__seta {
	position: absolute; top: 40%; width: 36px; height: 36px; border-radius: 50%; border: 0;
	background: rgba(0, 0, 0, .55); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.fmg-slide__seta--ant { left: 8px; }
.fmg-slide__seta--prox { right: 8px; }

.fmg-abas { border: 1px solid var(--fmg-borda); border-radius: var(--fmg-raio); overflow: hidden; }
.fmg-abas > input { position: absolute; opacity: 0; pointer-events: none; }
.fmg-abas__rotulos { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: 1px solid var(--fmg-borda); }
.fmg-abas__rotulos label {
	text-align: center; padding: 10px; cursor: pointer; font: 600 15px var(--fmg-titulo); color: var(--fmg-suave);
	border-bottom: 3px solid transparent;
}
#fmg-aba-ultimas:checked ~ .fmg-abas__rotulos label[for="fmg-aba-ultimas"],
#fmg-aba-floripa:checked ~ .fmg-abas__rotulos label[for="fmg-aba-floripa"] { color: #111; border-bottom-color: var(--fmg-destaque); }
#fmg-aba-ultimas:focus-visible ~ .fmg-abas__rotulos label[for="fmg-aba-ultimas"],
#fmg-aba-floripa:focus-visible ~ .fmg-abas__rotulos label[for="fmg-aba-floripa"] { outline: 3px solid #ffbf00; outline-offset: -3px; }
.fmg-abas__painel { display: none; list-style: none; margin: 0; padding: 0; }
#fmg-aba-ultimas:checked ~ .fmg-abas__painel--ultimas,
#fmg-aba-floripa:checked ~ .fmg-abas__painel--floripa { display: block; }
@media (min-width: 1024px) {
	/* no PC a lista acompanha a altura do slide (300px de largura, 4:5) */
	.fmg-abas__painel { max-height: 330px; overflow-y: auto; }
}

.fmg-mini a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-decoration: none; color: var(--fmg-texto); border-bottom: 1px solid var(--fmg-borda); }
.fmg-mini:last-child a { border-bottom: 0; }
.fmg-mini a:hover { background: var(--fmg-fundo-suave); }
.fmg-mini img, .fmg-mini .fmg-foto-vazia { flex: 0 0 72px; width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.fmg-mini__titulo { font: 600 14px/1.35 var(--fmg-titulo); }

.fmg-cats-alta { background: var(--fmg-fundo-suave); border: 1px solid var(--fmg-borda); border-radius: var(--fmg-raio); padding: 14px 16px; }
.fmg-cats-alta h2 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--fmg-suave); }
.fmg-cats-alta ul { list-style: none; margin: 0; padding: 0; }
.fmg-cats-alta li { border-bottom: 1px solid var(--fmg-borda); }
.fmg-cats-alta li:last-child { border-bottom: 0; }
.fmg-cats-alta a { display: block; padding: 7px 0; color: #14224a; font-weight: 700; font-size: 14px; text-decoration: none; }
.fmg-cats-alta a:hover { color: var(--fmg-destaque); }
.fmg-cats-alta span { color: var(--fmg-suave); font-weight: 400; font-size: 12px; }

@media (max-width: 1023px) {
	.fmg-destaques { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
	.fmg-cats-alta { grid-column: 1 / -1; }
	.fmg-cats-alta ul { columns: 3; column-gap: 24px; }
	.fmg-cats-alta li { break-inside: avoid; }
}
@media (max-width: 699px) {
	.fmg-destaques, .fmg-destaques--sem-cats { grid-template-columns: minmax(0, 1fr); }
	.fmg-slide { max-width: 420px; width: 100%; justify-self: center; }
	.fmg-cats-alta ul { columns: 2; }
}

/* ---------- listas de notícias ---------- */
.fmg-secao-titulo { margin: 28px 0 16px; border-bottom: 2px solid var(--fmg-destaque); font-size: 18px; }
.fmg-secao-titulo span { display: inline-block; background: var(--fmg-destaque); color: #fff; padding: 7px 14px; border-radius: 6px 6px 0 0; }

.fmg-trilha ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 16px 0 0; padding: 0; font-size: 13px; color: var(--fmg-suave); }
.fmg-trilha li + li::before { content: '/'; margin: 0 8px; color: #aab; }
.fmg-trilha a { text-decoration: none; }

.fmg-titulo-pagina { font-size: clamp(24px, 4vw, 32px); font-weight: 800; margin: 16px 0 20px; }
.fmg-titulo-pagina span { color: var(--fmg-destaque); }
.fmg-lista__descricao { color: var(--fmg-suave); margin-top: -8px; margin-bottom: 20px; }

.fmg-card {
	display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 18px;
	padding: 12px; margin-bottom: 16px; border: 1px solid var(--fmg-borda); border-radius: var(--fmg-raio);
	background: #fff;
}
.fmg-card__foto { display: block; border-radius: 6px; overflow: hidden; background: var(--fmg-fundo-suave); aspect-ratio: 16 / 10; }
.fmg-card__foto img, .fmg-card__foto .fmg-foto-vazia { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fmg-card__texto { min-width: 0; }
/* post sem foto: sem o quadro cinza vazio, o texto ocupa o card todo */
.fmg-card:not(.has-post-thumbnail) { grid-template-columns: minmax(0, 1fr); }
.fmg-card:not(.has-post-thumbnail) .fmg-card__foto, .fmg-mini .fmg-foto-vazia { display: none; }
.fmg-card__titulo { margin: 6px 0 6px; font-size: 20px; font-weight: 600; }
.fmg-card__titulo a { color: #111; text-decoration: none; }
.fmg-card__titulo a:hover { color: var(--fmg-destaque); }
.fmg-card__resumo { margin: 8px 0 0; color: #444; font-size: 15px; }
@media (max-width: 699px) {
	.fmg-card { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.fmg-card__titulo { font-size: 18px; }
}

.fmg-selo {
	display: inline-block; background: var(--fmg-destaque); color: #fff; text-decoration: none;
	font: 700 11px/1 var(--fmg-titulo); text-transform: uppercase; letter-spacing: .04em;
	padding: 5px 8px; border-radius: 4px;
}
.fmg-selo:hover { background: var(--fmg-marinho); color: #fff; }
.fmg-data { display: block; font-size: 13px; color: var(--fmg-suave); }

.fmg-ver-mais { text-align: center; margin: 24px 0 0; }

.fmg-lista.is-infinito .pagination { display: none; }
.fmg-infinito { text-align: center; margin: 8px 0 24px; min-height: 48px; color: var(--fmg-suave); font-size: 15px; }
.fmg-infinito__carregando::before {
	content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -4px;
	border: 3px solid var(--fmg-borda); border-top-color: var(--fmg-destaque); border-radius: 50%;
	animation: fmg-gira .8s linear infinite;
}
@keyframes fmg-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fmg-infinito__carregando::before { animation: none; } }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 24px; }
.page-numbers {
	display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center; text-decoration: none;
	border: 1px solid var(--fmg-borda); border-radius: 6px; color: var(--fmg-texto);
}
.page-numbers.current { background: var(--fmg-destaque); border-color: var(--fmg-destaque); color: #fff; }
.page-numbers.dots { border: 0; }
.fmg-nada { padding: 24px 0; }

/* ---------- post ---------- */
.fmg-post__cabecalho { margin-top: 16px; }
.fmg-post__titulo { font-size: clamp(26px, 4.5vw, 38px); font-weight: 800; margin: 12px 0 10px; }
.fmg-post__meta { margin: 0 0 20px; }
.fmg-post__foto { margin: 0 0 24px; }
.fmg-post__foto img { width: 100%; height: auto; border-radius: var(--fmg-raio); }
.fmg-post__foto figcaption, .fmg-texto figcaption { font-size: 13px; color: var(--fmg-suave); margin-top: 6px; }

.fmg-texto { font-size: 18px; line-height: 1.7; }
.fmg-texto > * { max-width: 100%; }
.fmg-texto p { margin: 0 0 1.1em; }
.fmg-texto figure { margin: 1.5em 0; }
.fmg-texto blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--fmg-destaque); color: #333; font-style: italic; }
.fmg-texto .aligncenter { margin-inline: auto; display: block; }
.fmg-texto .alignleft { float: left; margin: 0 1em 1em 0; }
.fmg-texto .alignright { float: right; margin: 0 0 1em 1em; }
.fmg-texto iframe { width: 100%; }
/* campos de formulário de plugin (Contact Form 7 usa size="40"): não passam da tela */
.fmg-texto input:not([type="checkbox"]):not([type="radio"]), .fmg-texto textarea, .fmg-texto select { max-width: 100%; }
/* Formulários de plugin (Contact Form 7, Fluent Forms): no Newsup eles pegavam
 * o estilo de campo e botão do tema; sem isso saíam crus (botão cinza do
 * navegador, campo de 300px). :where() deixa especificidade zero, então
 * qualquer CSS do próprio plugin (ou da votação) ganha. */
:where(.fmg-texto) :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="password"], textarea, select) {
	width: 100%; padding: 10px 12px; border: 1px solid #cfd6e4; border-radius: var(--fmg-raio);
	background: #fff; color: var(--fmg-texto); font-size: 16px; line-height: 1.4;
}
:where(.fmg-texto) :where(input, textarea, select):focus { outline: 2px solid var(--fmg-destaque); outline-offset: 1px; border-color: var(--fmg-destaque); }
:where(.fmg-texto) :where(input[type="submit"], button[type="submit"], .ff-btn-submit) {
	display: inline-block; padding: 12px 24px; border: 0; border-radius: var(--fmg-raio); cursor: pointer;
	background: var(--fmg-destaque); color: #fff; font: 700 15px/1.2 var(--fmg-titulo);
}
:where(.fmg-texto) :where(input[type="submit"], button[type="submit"], .ff-btn-submit):hover { background: var(--fmg-marinho); }
/* Contact Form 7 põe os campos lado a lado com <br>: um embaixo do outro, com respiro */
:where(.fmg-texto) .wpcf7-form-control-wrap { display: block; margin-bottom: 12px; }
:where(.fmg-texto) .wpcf7 form br { display: none; }
:where(.fmg-texto) .wpcf7 textarea { height: 170px; }
/* separador: linha fina na largura toda (o padrão do WP é um traço de 100px no meio) */
.fmg-texto hr.wp-block-separator:not(.is-style-dots) { width: 100%; border: 0; border-top: 1px solid var(--fmg-borda); margin: 2em 0; }
/* coluna vazia (Contato tinha uma) não reserva meia página */
.fmg-texto .wp-block-column:empty { display: none; }
/* só vídeo é 16:9; Spotify, SoundCloud e post embutido têm altura própria */
.fmg-texto .wp-embed-aspect-16-9 iframe { aspect-ratio: 16 / 9; height: auto; }
.fmg-texto table { border-collapse: collapse; width: 100%; font-size: 16px; }
.fmg-texto td, .fmg-texto th { border: 1px solid var(--fmg-borda); padding: 8px; }
@media (min-width: 1000px) {
	.fmg-texto .alignwide { margin-inline: -60px; max-width: calc(100% + 120px); }
}
.fmg-texto .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
/* 100vw inclui a barra de rolagem no Windows: sem isso a página vazava ~15px pro lado */
.fmg-conteudo { overflow-x: clip; }
/* páginas do Elementor (ou com colunas/galeria): largura cheia, letra menor */
.fmg-pagina--larga .fmg-texto { font-size: 16px; line-height: 1.55; }

/* Blocos das páginas que vieram do Elementor (fase 3) */
.fmg-texto .wp-block-heading { line-height: 1.25; margin: 1.2em 0 .5em; }
.fmg-texto .wp-block-columns { gap: 32px; margin: 2em 0; }
.fmg-texto .wp-block-column > :first-child { margin-top: 0; }
.fmg-texto .wp-block-group.has-background { border-radius: var(--fmg-raio); margin: 2em 0; }
.fmg-texto .wp-block-quote { font-style: normal; font-size: 15px; }
/* galeria: a última linha não estica (uma foto sozinha virava um pôster) */
.fmg-texto .wp-block-gallery.has-nested-images figure.wp-block-image { flex-grow: 0; }
/* sem recorte: as galerias do site são cartazes (SOS Desaparecidos etc.), e com o
 * recorte padrão a foto mais alta da linha esticava as outras e cortava o
 * "DESAPARECIDO" do topo */
.fmg-texto .wp-block-gallery.has-nested-images { align-items: flex-start; }
.fmg-texto .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img { height: auto; object-fit: contain; }
@media (min-width: 600px) {
	.fmg-texto .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image) {
		width: calc(25% - var(--wp--style--unstable-gallery-gap, 16px) * .75);
	}
}
.fmg-texto .wp-block-button__link {
	background: var(--fmg-destaque); color: #fff; border-radius: var(--fmg-raio); font-weight: 700; padding: 12px 24px; text-decoration: none;
}
.fmg-texto .wp-block-button__link:hover { background: var(--fmg-marinho); }
.fmg-texto .wp-block-social-links { justify-content: center; }
.fmg-texto .wp-block-image.aligncenter { text-align: center; }
.fmg-texto .wp-block-image.aligncenter img { display: inline-block; }

.fmg-post-rodape { margin: 28px 0; padding-top: 20px; border-top: 1px solid var(--fmg-borda); }
.fmg-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fmg-tags a { background: var(--fmg-fundo-suave); border: 1px solid var(--fmg-borda); border-radius: 20px; padding: 4px 12px; font-size: 13px; text-decoration: none; color: var(--fmg-marinho); }
.fmg-compartilhar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fmg-compartilhar > span { font-weight: 700; font-size: 14px; margin-right: 4px; }
.fmg-btn-rede { padding: 8px 14px; border-radius: 20px; color: #fff; text-decoration: none; font: 700 13px var(--fmg-titulo); }
.fmg-btn-rede:hover { color: #fff; filter: brightness(.9); }
.fmg-btn-rede--whatsapp { background: #1fa855; }
.fmg-btn-rede--facebook { background: #1877f2; }
.fmg-btn-rede--x { background: #000; }
.fmg-btn-rede--telegram { background: #1d8fc7; }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-navigation a { display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--fmg-borda); border-radius: var(--fmg-raio); text-decoration: none; color: var(--fmg-texto); }
.post-navigation a:hover { border-color: var(--fmg-destaque); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.fmg-nav-rotulo { display: block; font-size: 12px; text-transform: uppercase; color: var(--fmg-suave); margin-bottom: 4px; }
.fmg-nav-titulo { font: 600 14px/1.35 var(--fmg-titulo); }
@media (max-width: 599px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
}

.fmg-relacionados__grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fmg-rel { text-decoration: none; color: var(--fmg-texto); }
.fmg-rel img, .fmg-rel .fmg-foto-vazia { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px; background: var(--fmg-fundo-suave); }
.fmg-rel__titulo { display: block; margin-top: 8px; font: 600 15px/1.35 var(--fmg-titulo); }
.fmg-rel:hover .fmg-rel__titulo { color: var(--fmg-destaque); }
@media (max-width: 599px) { .fmg-relacionados__grade { grid-template-columns: 1fr; } }

.fmg-comentarios { margin-top: 32px; }
.fmg-comentarios__lista { padding-left: 0; list-style: none; }
.fmg-comentarios__lista .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 12px 0; border-bottom: 1px solid var(--fmg-borda); }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; padding: 10px; border: 1px solid var(--fmg-borda); border-radius: var(--fmg-raio);
}
.comment-form .submit { background: var(--fmg-destaque); color: #fff; border: 0; border-radius: var(--fmg-raio); padding: 10px 18px; font-weight: 700; cursor: pointer; }

.fmg-foto-vazia { display: block; background: var(--fmg-fundo-suave); }

/* ---------- rodapé ---------- */
.fmg-rodape { background: var(--fmg-escuro); color: #c9d1ea; margin-top: 40px; font-size: 15px; }
.fmg-rodape a { color: #fff; text-decoration: none; }
.fmg-rodape a:hover { color: #ffd84d; }
.fmg-rodape__grade { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 28px; padding-block: 36px; }
.fmg-rodape__marca img { max-height: 54px; width: auto; }
.fmg-rodape__frase { margin: 12px 0 0; }
.fmg-rodape h2 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.fmg-rodape ul { list-style: none; margin: 0; padding: 0; }
.fmg-rodape__col li { margin-bottom: 6px; }
.fmg-redes { display: flex; flex-wrap: wrap; gap: 8px; }
.fmg-redes li { margin: 0 !important; }
.fmg-redes a { display: inline-block; border: 1px solid rgba(255, 255, 255, .3); border-radius: 20px; padding: 5px 12px; font-size: 13px; }
.fmg-redes a:hover { border-color: #ffd84d; }
.fmg-rodape__assinatura { background: var(--fmg-mais-escuro); text-align: center; font-size: 13px; color: #aaaed1; padding: 14px 16px; }
.fmg-rodape__assinatura p { margin: 0; }
@media (max-width: 899px) { .fmg-rodape__grade { grid-template-columns: 1fr 1fr; } }
@media (max-width: 499px) { .fmg-rodape__grade { grid-template-columns: 1fr; } }

.fmg-404 .fmg-form-busca { margin-bottom: 12px; }
