/*
Theme Name: MATIS
Theme URI: https://gpmatis.com.br/
Author: Grupo MATIS
Description: Tema do Grupo de Pesquisa MATIS (Materiais, Tecnologia, Inovação e Sustentabilidade). HTML e CSS próprios, sem construtor de páginas. Funciona em conjunto com o plugin MATIS Core.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matis-theme
*/

/* =========================================================================
   ÍNDICE
   1. Fontes (arquivos locais, sem Google Fonts)
   2. Cores, medidas e variáveis  ← comece por aqui para mudar o visual
   3. Base e tipografia
   4. Layout e botões
   5. Cabeçalho e menu
   6. Rodapé
   7. Página inicial
   8. Faixa de título das páginas internas e chamadas (CTA)
   9. Sobre
  10. Linhas de pesquisa (acordeão)
  11. Notícias
  12. Contato
  13. Texto corrido (editor de blocos)
  14. Paginação, 404 e avisos
  15. Ajustes para telas pequenas
   ========================================================================= */


/* =========================================================================
   1. FONTES
   ========================================================================= */

@font-face {
	font-family: 'Bricolage Grotesque';
	src: url('assets/fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'DM Sans';
	src: url('assets/fonts/dm-sans-latin-wght-normal.woff2') format('woff2');
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
}


/* =========================================================================
   2. CORES, MEDIDAS E VARIÁVEIS
   ========================================================================= */

:root {
	--mt-ink: #10231f;         /* texto */
	--mt-deep: #0b2b27;        /* verde profundo (títulos, rodapé, hero) */
	--mt-green: #0b4f4a;       /* verde principal (botões, links) */
	--mt-amber: #e3a32b;       /* âmbar de destaque */
	--mt-amber-ink: #8a5e08;   /* âmbar escuro para texto sobre fundo claro */
	--mt-cream: #fbf1da;       /* creme (blocos de chamada) */
	--mt-bg: #f5f7f4;          /* fundo do site */
	--mt-mint: #e8efea;        /* faixa de título das páginas */
	--mt-surface: #ffffff;
	--mt-line: #dce4df;        /* bordas */
	--mt-muted: #4a5f5a;       /* texto secundário */
	--mt-soft: #d5e3dc;        /* fundos suaves (fotos vazias) */

	--mt-font-display: 'Bricolage Grotesque', system-ui, sans-serif;
	--mt-font-text: 'DM Sans', system-ui, sans-serif;

	--mt-max: 1264px;          /* largura máxima do conteúdo */
	--mt-pad: 48px;            /* margem lateral */
	--mt-radius: 16px;
	--mt-radius-lg: 24px;
}


/* =========================================================================
   3. BASE E TIPOGRAFIA
   ========================================================================= */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--mt-bg);
	color: var(--mt-ink);
	font-family: var(--mt-font-text);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--mt-green);
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--mt-font-display);
	font-weight: 700;
	line-height: 1.15;
	color: var(--mt-deep);
}

p {
	margin: 0 0 1em;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

:focus-visible {
	outline: 3px solid var(--mt-amber);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 18px;
	clip: auto;
	clip-path: none;
	background: #fff;
	color: var(--mt-deep);
	font-weight: 700;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.muted {
	color: var(--mt-muted);
}

.label,
.eyebrow {
	margin: 0 0 8px;
	font-family: var(--mt-font-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mt-amber-ink);
}

.eyebrow {
	letter-spacing: 0.16em;
	color: var(--mt-amber);
}

.eyebrow--dark {
	color: var(--mt-amber-ink);
}


/* =========================================================================
   4. LAYOUT E BOTÕES
   ========================================================================= */

.container {
	width: 100%;
	max-width: calc(var(--mt-max) + 2 * var(--mt-pad));
	margin: 0 auto;
	padding-left: var(--mt-pad);
	padding-right: var(--mt-pad);
}

.container--narrow {
	max-width: calc(820px + 2 * var(--mt-pad));
}

.section {
	padding: 88px 0;
}

.section--tight {
	padding: 56px 0 80px;
}

.section--white {
	background: var(--mt-surface);
	border-top: 1px solid var(--mt-line);
	border-bottom: 1px solid var(--mt-line);
}

.section--cta {
	padding-top: 0;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 40px;
}

.section-title {
	font-size: 36px;
}

.section-title--sm {
	font-size: 28px;
}

.section-title--space {
	margin-bottom: 32px;
}

.section-lead {
	margin: 12px 0 0;
	max-width: 620px;
	font-size: 18px;
	color: var(--mt-muted);
}

.btn {
	display: inline-block;
	padding: 16px 28px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: var(--mt-font-text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.btn:hover {
	filter: brightness(1.08);
}

.btn--sm {
	padding: 11px 22px;
	font-size: 15px;
}

.btn--green {
	background: var(--mt-green);
	color: #fff;
}

.btn--amber {
	background: var(--mt-amber);
	color: var(--mt-deep);
}

.btn--outline {
	border-color: #5e8a80;
	color: #fff;
	font-weight: 500;
	padding: 14px 26px;
}

.btn--outline-dark {
	border-color: var(--mt-green);
	color: var(--mt-green);
	background: transparent;
}

.link-arrow {
	font-weight: 700;
	color: var(--mt-green);
	text-decoration: none;
}

.link-arrow:hover {
	text-decoration: underline;
}

.card {
	background: var(--mt-surface);
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius);
	transition: border-color 0.15s ease;
}

a.card:hover,
.card:hover {
	border-color: var(--mt-green);
}


/* =========================================================================
   5. CABEÇALHO E MENU
   ========================================================================= */

.site-header {
	position: relative;
	z-index: 20;
	background: var(--mt-surface);
	border-bottom: 1px solid var(--mt-line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	min-height: 96px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.site-brand {
	display: flex;
	line-height: 0;
}

.site-brand .site-logo {
	display: block;
	height: 64px;
	width: auto;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 8px 28px;
}

.site-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav .menu a {
	display: inline-block;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	color: var(--mt-ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.site-nav .menu a:hover {
	border-bottom-color: var(--mt-line);
}

.site-nav .menu a[aria-current='page'],
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	border-bottom-color: var(--mt-amber);
	color: var(--mt-green);
	font-weight: 700;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 16px;
	border: 1.5px solid var(--mt-line);
	border-radius: 999px;
	background: var(--mt-surface);
	color: var(--mt-ink);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: '';
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -6px;
}

.nav-toggle__bars::after {
	top: 6px;
}


/* =========================================================================
   6. RODAPÉ
   ========================================================================= */

.site-footer {
	margin-top: 0;
	padding: 64px 0 28px;
	background: var(--mt-deep);
	color: #c9d8d2;
	font-size: 15px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1.3fr 1.3fr;
	gap: 48px;
}

.site-footer__logo {
	display: inline-block;
	padding: 14px 18px;
	border-radius: 16px;
	background: #fff;
	line-height: 0;
}

.site-footer__logo .site-logo {
	display: block;
	height: 96px;
	width: auto;
}

.site-footer__brand p {
	max-width: 380px;
	margin: 16px 0 0;
	line-height: 1.6;
}

.site-footer h2 {
	margin: 0 0 16px;
	font-family: var(--mt-font-text);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mt-amber);
}

.site-footer .menu {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	line-height: 1.5;
}

.site-footer a {
	color: #eaf2ee;
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a.underline {
	text-decoration: underline;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid #1f4a43;
	font-size: 13px;
	color: #8fb0a6;
}


/* =========================================================================
   7. PÁGINA INICIAL
   ========================================================================= */

.hero {
	background: var(--mt-deep);
	color: #fff;
	padding: 96px 0 104px;
}

.hero__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px;
}

.hero__text {
	flex: 1 1 520px;
	min-width: 0;
}

.hero h1 {
	font-size: clamp(2.25rem, 4.6vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: #fff;
}

.hero__lead {
	max-width: 600px;
	margin: 24px 0 0;
	font-size: 20px;
	line-height: 1.55;
	color: #c9d8d2;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 40px;
}

.hero__note {
	margin: 40px 0 0;
	font-size: 14px;
	color: #8fb0a6;
}

.hero__art {
	flex: 1 1 340px;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.hero__art svg {
	width: 100%;
	max-width: 460px;
	height: auto;
}

.intro {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
}

.intro__title {
	flex: 1 1 380px;
	min-width: 0;
	font-size: 40px;
}

.intro__text {
	flex: 1 1 440px;
	min-width: 0;
	font-size: 19px;
	line-height: 1.65;
	color: #33504a;
}

.section--intro {
	padding-bottom: 24px;
}

.section--lines {
	padding-top: 72px;
}

.line-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.line-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
	color: inherit;
	text-decoration: none;
}

.line-card__n {
	font-family: var(--mt-font-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--mt-amber-ink);
}

.line-card h3 {
	font-size: 22px;
	line-height: 1.2;
}

.line-card p {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--mt-muted);
}

.band {
	background: var(--mt-green);
	padding: 72px 0;
}

.band .matis-stats {
	background: transparent;
	border-radius: 0;
	padding: 0;
}


/* =========================================================================
   8. FAIXA DE TÍTULO DAS PÁGINAS INTERNAS E CHAMADAS (CTA)
   ========================================================================= */

.page-hero {
	padding: 64px 0 56px;
	background: var(--mt-mint);
	border-bottom: 1px solid var(--mt-line);
}

.page-hero h1 {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
}

.page-hero__lead {
	max-width: 700px;
	margin: 16px 0 0;
	font-size: 19px;
	line-height: 1.55;
	color: #33504a;
}

.breadcrumb {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--mt-muted);
}

.breadcrumb a {
	color: inherit;
	text-decoration: underline;
}

.cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 48px 56px;
	border-radius: var(--mt-radius-lg);
}

.cta h2 {
	flex: 1 1 380px;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.cta--cream {
	background: var(--mt-cream);
}

.cta--green {
	background: var(--mt-green);
}

.cta--green h2 {
	color: #fff;
}


/* =========================================================================
   9. SOBRE
   ========================================================================= */

.split {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
}

.split > h2 {
	flex: 1 1 280px;
	min-width: 0;
}

.split > div {
	flex: 2 1 520px;
	min-width: 0;
}

.lead-text {
	font-size: 18px;
	line-height: 1.7;
	color: #33504a;
}

.timeline {
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 40px 0 0;
	padding: 0 0 0 28px;
	border-left: 2px solid #c4d2cb;
	list-style: none;
}

.timeline li {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.timeline__year {
	flex: 0 0 72px;
	font-family: var(--mt-font-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--mt-amber-ink);
}

.timeline li > span:last-child {
	flex: 1 1 280px;
	line-height: 1.5;
}

.trio {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.trio__item {
	padding: 32px;
	border-radius: var(--mt-radius);
	background: var(--mt-bg);
}

.trio__item h2 {
	margin-bottom: 12px;
	font-size: 24px;
}

.trio__item p {
	margin: 0;
	line-height: 1.65;
	color: #33504a;
}

.info-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
	gap: 24px;
}

.info-card {
	padding: 32px;
}

.info-card h3 {
	font-size: 22px;
	line-height: 1.25;
}

.info-card .muted {
	margin: 12px 0 0;
	line-height: 1.7;
}

.info-card .link-arrow {
	display: inline-block;
	margin-top: 16px;
}

.info-card--logo {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-start;
}

.info-card--logo > div:last-child {
	flex: 1 1 240px;
	min-width: 0;
}

.info-card__logo {
	display: flex;
	flex: 0 0 96px;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	border-radius: 12px;
	background: var(--mt-soft);
	font-size: 12px;
	text-align: center;
	color: var(--mt-muted);
}

.partners {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.partners__item {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	border: 1px dashed #afc2b9;
	border-radius: 12px;
	background: var(--mt-surface);
	font-size: 14px;
	color: var(--mt-muted);
}


/* =========================================================================
   10. LINHAS DE PESQUISA (ACORDEÃO)
   ========================================================================= */

.accordion {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.line {
	overflow: hidden;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius);
	background: var(--mt-surface);
}

.line__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	padding: 28px 32px;
	cursor: pointer;
	list-style: none;
}

.line__summary::-webkit-details-marker {
	display: none;
}

.line__summary:hover {
	background: var(--mt-bg);
}

.line__n {
	flex: 0 0 40px;
	font-family: var(--mt-font-display);
	font-size: 18px;
	font-weight: 700;
	color: var(--mt-amber-ink);
}

.line__head {
	flex: 1 1 420px;
	min-width: 0;
}

.line__title {
	display: block;
	font-family: var(--mt-font-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--mt-deep);
}

.line__text {
	display: block;
	margin-top: 6px;
	color: var(--mt-muted);
}

.line__icon {
	position: relative;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border: 1.5px solid #b7c8bf;
	border-radius: 999px;
}

.line__icon::before,
.line__icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	margin: -1px 0 0 -7px;
	background: var(--mt-green);
}

.line__icon::after {
	transform: rotate(90deg);
	transition: transform 0.15s ease;
}

.line[open] .line__icon::after {
	transform: rotate(0deg);
}

.line__body {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 48px;
	padding: 32px 32px 36px;
	border-top: 1px solid var(--mt-line);
	background: #fbfcfb;
}

.line__col {
	flex: 1 1 260px;
	min-width: 0;
}

.line__col--wide {
	flex: 2 1 420px;
}

.line__col p {
	margin: 0;
	line-height: 1.7;
	color: #33504a;
}

.line__col ul {
	padding-left: 20px;
	line-height: 1.8;
	color: #33504a;
}

.line__col ul.plain {
	padding-left: 0;
	list-style: none;
}

.line__links {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 20px !important;
	font-size: 15px;
}


/* =========================================================================
   11. NOTÍCIAS
   ========================================================================= */

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.news-grid--spaced {
	margin-top: 24px;
}

.news-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--mt-surface);
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius);
	transition: border-color 0.15s ease;
}

.news-card:hover {
	border-color: var(--mt-green);
}

.news-card__media {
	display: block;
	height: 200px;
	background: var(--mt-soft);
}

.news-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-card__ph {
	display: block;
	width: 100%;
	height: 100%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpolygon points='18,2 31.9,10 31.9,26 18,34 4.1,26 4.1,10' fill='none' stroke='%230b4f4a' stroke-opacity='.28' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpolygon points='18,11 24,14.5 24,21.5 18,25 12,21.5 12,14.5' fill='%23e3a32b' fill-opacity='.55'/%3E%3C/svg%3E") center / 64px 64px no-repeat,
		var(--mt-soft);
}

.news-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
}

.news-card__date {
	font-size: 13px;
	font-weight: 700;
	color: var(--mt-amber-ink);
}

.news-card__title {
	font-size: 21px;
	line-height: 1.25;
}

.news-card__title a {
	color: inherit;
	text-decoration: none;
}

.news-card__title a:hover {
	text-decoration: underline;
}

.news-card__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--mt-muted);
}

.news-feature {
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	border-radius: 20px;
}

.news-feature__media {
	flex: 1 1 440px;
	min-height: 320px;
	background: var(--mt-soft);
}

.news-feature__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-feature__body {
	display: flex;
	flex: 1 1 440px;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	min-width: 0;
	padding: 44px;
}

.news-feature__body > * {
	margin: 0;
}

.news-feature__body h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.2;
}

.news-feature__body h2 a {
	color: inherit;
	text-decoration: none;
}

.news-feature__body h2 a:hover {
	text-decoration: underline;
}

.news-feature__body p:not(.label) {
	font-size: 17px;
	line-height: 1.65;
	color: var(--mt-muted);
}

.newsletter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px 56px;
	padding: 56px;
	border-radius: var(--mt-radius-lg);
	background: var(--mt-deep);
	color: #c9d8d2;
}

.newsletter__text {
	flex: 1 1 360px;
	min-width: 0;
}

.newsletter h2 {
	font-size: 32px;
	color: #fff;
}

.newsletter p {
	margin: 12px 0 0;
	font-size: 17px;
	line-height: 1.6;
}

.newsletter__form {
	flex: 1 1 380px;
	min-width: 0;
}

.newsletter__form label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
	color: #eaf2ee;
}

.newsletter__form input[type='email'],
.newsletter__form input[type='text'] {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #5e8a80;
	border-radius: 12px;
	font-family: inherit;
	font-size: 16px;
}

.newsletter__form button,
.newsletter__form input[type='submit'] {
	margin-top: 12px;
	padding: 15px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--mt-amber);
	color: var(--mt-deep);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.post-meta {
	margin: 16px 0 0;
	font-size: 15px;
	color: var(--mt-muted);
}

.post-meta a {
	color: inherit;
}

.post-cover {
	margin: 0 0 40px;
}

.post-cover img {
	display: block;
	width: 100%;
	border-radius: var(--mt-radius);
}

.post-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	margin: 56px 0 24px;
	padding-top: 24px;
	border-top: 1px solid var(--mt-line);
}

.post-nav__next {
	margin-left: auto;
	text-align: right;
}


/* =========================================================================
   12. CONTATO
   ========================================================================= */

.contact {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

.contact__form {
	display: flex;
	flex: 1 1 520px;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
	padding: 40px;
	border-radius: 20px;
}

.contact__form h2,
.contact__info h2 {
	font-size: 28px;
	line-height: 1.2;
}

.contact__side {
	display: flex;
	flex: 1 1 380px;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.contact__info {
	padding: 32px;
	border-radius: 20px;
}

.contact__info h2 {
	margin-bottom: 18px;
	font-size: 24px;
}

.contact__info p {
	margin: 0 0 18px;
	line-height: 1.6;
	color: #33504a;
}

.contact__info p:last-child {
	margin-bottom: 0;
}

.contact__info strong {
	color: var(--mt-ink);
}

.form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.form-field {
	flex: 1 1 220px;
	min-width: 0;
}

.form-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid #afc2b9;
	border-radius: 10px;
	background: var(--mt-surface);
	color: var(--mt-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
}

.form-field textarea {
	resize: vertical;
}

.form-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.form-check input {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 4px;
}

.form-check label {
	font-size: 14px;
	line-height: 1.5;
	color: var(--mt-muted);
}

.form-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-notice {
	margin: 0;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
}

.form-notice--ok {
	background: #ddf1e6;
	color: #0b5a33;
}

.form-notice--erro,
.form-notice--limite {
	background: #fbe3df;
	color: #8a1c10;
}

.map {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 300px;
	overflow: hidden;
	border-radius: 20px;
	background: var(--mt-soft);
}

.map__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.map__art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.map__pin,
.map__label {
	position: relative;
}

.map__label {
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	color: var(--mt-deep);
}


/* =========================================================================
   13. TEXTO CORRIDO (EDITOR DE BLOCOS)
   ========================================================================= */

.prose {
	max-width: 760px;
	margin: 0 auto;
	font-size: 18px;
	line-height: 1.75;
}

.prose--left {
	margin-left: 0;
}

.prose > * + * {
	margin-top: 1.2em;
}

.prose h2 {
	margin-top: 2em;
	font-size: 32px;
}

.prose h3 {
	margin-top: 1.8em;
	font-size: 24px;
}

.prose h4 {
	margin-top: 1.6em;
	font-size: 20px;
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 4px 0 4px 24px;
	border-left: 4px solid var(--mt-amber);
	font-size: 20px;
	color: #33504a;
}

.prose img,
.prose figure {
	max-width: 100%;
	height: auto;
}

.prose figure {
	margin-left: 0;
	margin-right: 0;
}

.prose img {
	border-radius: 12px;
}

.prose figcaption {
	margin-top: 8px;
	font-size: 14px;
	color: var(--mt-muted);
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.prose th,
.prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--mt-line);
	text-align: left;
}

.prose th {
	font-family: var(--mt-font-display);
	color: var(--mt-deep);
}

.prose .wp-block-button__link {
	padding: 14px 26px;
	border-radius: 999px;
	background: var(--mt-green);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.prose .wp-block-details {
	padding: 16px 20px;
	border: 1px solid var(--mt-line);
	border-radius: 12px;
	background: var(--mt-surface);
}

.prose .wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--mt-deep);
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--mt-line);
}


/* =========================================================================
   14. PAGINAÇÃO, 404 E AVISOS
   ========================================================================= */

.pagination {
	margin-top: 40px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 44px;
	padding: 10px 14px;
	border: 1px solid #c4d2cb;
	border-radius: 999px;
	color: var(--mt-ink);
	font-weight: 500;
	text-align: center;
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--mt-green);
}

.pagination .page-numbers.current {
	border-color: var(--mt-green);
	background: var(--mt-green);
	color: #fff;
}

.not-found {
	padding: 24px 0;
}

.not-found h1 {
	font-size: clamp(2rem, 4vw, 3rem);
}

.not-found__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 32px;
}

.notice-inline {
	padding: 12px 16px;
	border: 1px dashed var(--mt-amber);
	border-radius: 10px;
	background: var(--mt-cream);
	font-size: 15px;
}


/* =========================================================================
   15. AJUSTES PARA TELAS PEQUENAS
   ========================================================================= */

@media (max-width: 1120px) {
	/* Menu em forma de botão (só quando o JavaScript está ativo) */
	.js .nav-toggle {
		display: inline-flex;
	}

	.js .site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		padding: 16px var(--mt-pad) 28px;
		background: var(--mt-surface);
		border-bottom: 1px solid var(--mt-line);
		box-shadow: 0 12px 24px rgba(11, 43, 39, 0.08);
	}

	.js .site-nav.is-open {
		display: flex;
	}

	.js .site-nav .menu {
		flex-direction: column;
		gap: 0;
		width: 100%;
	}

	.js .site-nav .menu a {
		display: block;
		padding: 12px 0;
		font-size: 17px;
	}

	/* Sem JavaScript o menu simplesmente quebra em várias linhas */
	.site-nav {
		flex-wrap: wrap;
	}
}

@media (max-width: 900px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 700px) {
	:root {
		--mt-pad: 20px;
	}

	.section {
		padding: 64px 0;
	}

	.section--tight {
		padding: 40px 0 56px;
	}

	.hero {
		padding: 64px 0 72px;
	}

	.hero__lead {
		font-size: 18px;
	}

	.intro__title {
		font-size: 32px;
	}

	.page-hero {
		padding: 44px 0 40px;
	}

	.cta,
	.newsletter {
		padding: 32px 24px;
	}

	.band {
		padding: 48px 0;
	}

	.line__summary {
		padding: 22px 20px;
		gap: 16px;
	}

	.line__title {
		font-size: 22px;
	}

	.line__body {
		padding: 24px 20px 28px;
	}

	.news-feature__body {
		padding: 28px 24px;
	}

	.contact__form {
		padding: 28px 22px;
	}

	.info-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-footer__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.prose {
		font-size: 17px;
	}
}
