/*
Theme Name: Rafael Pontes
Theme URI: https://rafaelpontes.com
Author: Rafael Pontes
Description: Tema pessoal de rafaelpontes.com — Direito, negócios, capital e inovação. Funciona em conjunto com o plugin “Rafael Pontes — Núcleo do Site”.
Version: 1.4.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: rafaelpontes
License: GPL-2.0-or-later
*/

/* ---------- Fontes (hospedadas no próprio site) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/Inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/SourceSerif4-latin.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--ink: #141a22;
	--muted: #5a6472;
	--line: #d3d9df;
	--bg: #e9edf0;
	--alt: #f2f4f6;
	--panel: #dde3e8;
	--card: #f4f6f8;
	--ghost: #d3dae1;
	--accent: #1d3d63;
	--accent2: #9a7440;
	--gold-light: #d9c39a;
	--dark: #121821;
	--dark-card: #1b232d;
	--dark-line: #2e3744;
	--dark-muted: #b7bac2;
	--radius: 12px;
	--wrap: 1200px;
	--gutter: 24px;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--serif: "Source Serif 4", Charter, "Bitstream Charter", Georgia, serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* Tipografia utilitária */
.kicker { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); font-weight: 600; }
.quote { font-family: var(--serif); font-style: italic; color: var(--accent); }
.muted { color: var(--muted); }
.qbar { width: 56px; height: 3px; background: var(--accent2); margin-bottom: 20px; }

/* Botões e links */
.rp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 1px solid var(--ink); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.rp-btn:hover { background: var(--ink); color: #fff; }
.rp-btn-fill { background: var(--ink); color: #fff; }
.rp-btn-fill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.rp-btn-light { border-color: #fff; color: #fff; }
.rp-btn-light:hover { background: #fff; color: var(--ink); }
.lnk { font-size: 14px; border-bottom: 1px solid var(--accent2); padding-bottom: 3px; letter-spacing: .02em; }
.lnk::after { content: "→"; color: var(--accent2); margin-left: 8px; }
.lnk-plain { font-size: 13px; color: var(--accent); letter-spacing: .04em; white-space: nowrap; }

/* ---------- Cabeçalho ---------- */
.site-header { position: relative; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 12px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.brand small { font-size: 11px; letter-spacing: .08em; color: var(--muted); font-weight: 500; text-transform: uppercase; }
.brand img { max-height: 40px; width: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.primary-nav a { font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_parent > a { border-bottom-color: var(--accent); }
.primary-nav .sub-menu { display: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Abertura da página inicial ---------- */
.hero { position: relative; height: 860px; max-height: calc(100vh - 80px); min-height: 680px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-ghost { position: absolute; top: 70px; left: 0; right: 0; text-align: center; font-weight: 600; font-size: clamp(64px, 12vw, 172px); line-height: .85; color: var(--ghost); letter-spacing: -0.05em; white-space: nowrap; text-transform: uppercase; user-select: none; pointer-events: none; margin: 0; }
.hero-ghost span { display: inline; }
.hero-figure { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 420px; height: min(660px, 78%); z-index: 2; display: flex; align-items: flex-end; justify-content: center; }
.hero-figure.has-arch::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #7d91a5, #34475b); border-radius: 210px 210px 0 0; }
.hero-figure img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.hero-figure.has-arch { border-radius: 210px 210px 0 0; overflow: hidden; }
.hero-figure.has-arch img { width: 100%; height: 100%; object-fit: cover; object-position: bottom center; }
.hero-figure .ph { position: relative; align-self: center; text-align: center; color: rgba(255,255,255,.85); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; line-height: 2; }
.hero-left { position: absolute; left: max(var(--gutter), calc((100% - var(--wrap)) / 2)); bottom: 110px; width: 340px; z-index: 3; }
.hero-right { position: absolute; right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); bottom: 110px; width: 380px; z-index: 3; }
.hero-roles { list-style: none; margin: 18px 0 30px; padding: 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; line-height: 2.1; }
.hero-quote { font-size: 28px; line-height: 1.25; margin: 0; }
.hero-intro { font-size: 15px; color: var(--muted); margin: 18px 0 0; }

/* ---------- Seções ---------- */
.sec { padding: 100px 0; border-bottom: 1px solid var(--line); }
.sec-alt { background: var(--alt); }
.sec-dark { background: var(--dark); color: #f3f1ec; border-bottom: 0; }
.sec-dark .sec-title { color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.sec-title { font-size: 44px; margin-top: 10px; }
.sec-title-sm { font-size: 44px; margin: 10px 0 22px; line-height: 1.1; }
.lead { font-size: 18px; color: var(--muted); }

/* Dimensões */
.dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.dim { padding: 34px 30px; background: var(--card); border-radius: 10px; }
.dim-n { font-size: 13px; color: var(--accent2); margin-bottom: 28px; display: block; }
.dim h3 { font-size: 23px; line-height: 1.2; margin-bottom: 14px; }
.dim p { color: var(--muted); font-size: 14px; margin: 0; }
.dims-close { text-align: center; margin: 46px 0 0; color: var(--muted); font-size: 17px; }

/* Trajetória em destaque (home) */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.tl-mini { position: relative; padding-left: 30px; border-left: 1px solid var(--line); list-style: none; margin: 0; }
.tl-mini li { position: relative; padding: 0 0 26px; }
.tl-mini li:last-child { padding-bottom: 0; }
.tl-mini li::before { content: ""; position: absolute; left: -35px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.sec-alt .tl-mini li::before { background: var(--alt); }
.tl-mini .kicker { font-size: 11px; }
.tl-mini h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.tl-mini span.inst { color: var(--muted); font-size: 14px; }

/* Organizações */
.orgs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.org { border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--dark-card); padding: 46px 44px; min-height: 290px; display: flex; flex-direction: column; }
.org-mark { height: 44px; display: flex; align-items: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8d929c; border-bottom: 1px solid var(--dark-line); margin-bottom: 28px; padding-bottom: 14px; box-sizing: content-box; }
.org-mark img { max-height: 40px; width: auto; }
.org h3 { font-size: 30px; color: #fff; margin-bottom: 14px; line-height: 1.25; }
.org p { color: var(--dark-muted); flex: 1; }
.org a.org-link { color: var(--gold-light); font-size: 14px; margin-top: 24px; }
.org a.org-link::after { content: " ↗"; }
.org-note { color: #8d929c; font-size: 12px; margin-top: 26px; }

/* Cartões de Insights */
.cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.cards-grid { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; padding-bottom: 26px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20,26,34,.08); }
.card-img { aspect-ratio: 16 / 10; background: var(--panel); margin-bottom: 22px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-lg .card-img { background: linear-gradient(135deg, #dfe4ea, #c9d2dc); }
.card .meta, .card h2, .card h3, .card p { padding: 0 24px; }
.meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.meta .cat { color: var(--accent2); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.card h2, .card h3 { font-size: 22px; line-height: 1.25; margin-bottom: 10px; }
.card-lg h2, .card-lg h3 { font-size: 30px; }
.card p { color: var(--muted); font-size: 14px; margin: 0; }
.card a.stretched::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }

/* Atividade (home e página) */
.act { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.sync-info { margin-top: 24px; font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; padding: 0; list-style: none; }
.chip { display: inline-block; padding: 7px 15px; font-size: 12px; border-radius: 20px; color: var(--muted); background: var(--card); white-space: nowrap; }
.chip:hover { color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; }
.act-list { list-style: none; margin: 0; padding: 0; }
.act-row { display: grid; grid-template-columns: 110px 150px 1fr 80px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; }
.act-row:first-child { border-top: 1px solid var(--ink); }
.act-date { font-size: 13px; color: var(--muted); }
.pf { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.pf i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.act-row h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.act-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.act-row a.stretched::after { content: ""; position: absolute; inset: 0; }
.thumb { width: 80px; height: 50px; background: var(--panel); border-radius: 6px; overflow: hidden; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-video::after { content: "▶"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; background: rgba(0,0,0,.35); }
/* Imagem substituta: cor da plataforma + logotipo, ícone ou iniciais */
.media.is-fallback, .thumb.is-fallback { background: var(--pf, #6b7280); background-image: linear-gradient(135deg, rgba(255,255,255,.14), rgba(0,0,0,.18)); color: #fff; display: flex; align-items: center; justify-content: center; }
.is-fallback svg { width: 30%; max-width: 64px; height: auto; }
.is-fallback .fb-logo { width: auto; height: auto; max-width: 55%; max-height: 45%; object-fit: contain; }
.is-fallback .fb-ini { font-weight: 600; letter-spacing: .04em; font-size: clamp(16px, 4vw, 34px); }
.thumb.is-fallback svg { width: 22px; }
.thumb.is-fallback .fb-ini { font-size: 13px; }
.thumb.is-fallback .fb-logo { max-width: 70%; max-height: 60%; }
.empty-note { color: var(--muted); padding: 26px 28px; border: 1.5px dashed #b9c3cd; border-radius: var(--radius); }

/* Convite ao contato */
.cta { text-align: center; padding: 120px 0; }
.cta h2 { font-size: 58px; line-height: 1.12; max-width: 900px; margin: 18px auto 24px; }
.cta p { color: var(--muted); max-width: 620px; margin: 0 auto 36px; font-size: 17px; }
.cta .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--panel); padding: 50px 0; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--ink); }
.footer-left a { margin-left: 4px; }

/* ---------- Cabeçalho das páginas internas ---------- */
.page-head { position: relative; min-height: 520px; overflow: hidden; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; }
.page-ghost { position: absolute; top: 40px; left: 0; right: 0; text-align: center; font-weight: 600; font-size: clamp(72px, 15vw, 220px); line-height: .85; color: var(--ghost); letter-spacing: -0.05em; white-space: nowrap; text-transform: uppercase; pointer-events: none; user-select: none; margin: 0; }
.page-head.is-right .page-ghost { text-align: right; right: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.page-head .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; padding-bottom: 80px; padding-top: 200px; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { font-size: 64px; line-height: 1.02; letter-spacing: -0.03em; }
.page-head .sub { font-size: 19px; color: var(--muted); margin: 0; }
.page-head .lnk { display: inline-block; margin-top: 22px; }

/* ---------- Sobre ---------- */
.story { display: grid; grid-template-columns: 300px 1fr; gap: 90px; align-items: start; }
.story-side { position: sticky; top: 24px; }
.story-photo { aspect-ratio: 300 / 380; border-radius: 190px 190px 12px 12px; background: linear-gradient(180deg, #7d91a5, #34475b); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.toc { margin: 34px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: toc; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { padding: 12px 0; font-size: 14px; color: var(--muted); display: flex; gap: 14px; }
.toc a b { color: var(--accent2); font-weight: 500; font-size: 12px; }
.toc a.is-on, .toc a:hover { color: var(--ink); font-weight: 500; }
.chap { margin-bottom: 64px; scroll-margin-top: 24px; }
.chap h2 { font-size: 36px; margin: 8px 0 18px; }
.chap .txt p, .story-extra p { font-size: 18px; line-height: 1.75; color: #2c3440; max-width: 720px; margin-bottom: 16px; }
.pull { font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.3; color: var(--accent); border-left: 3px solid var(--accent2); padding: 6px 0 6px 30px; margin: -20px 0 64px; max-width: 740px; }
.princ { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.pr { background: var(--dark-card); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 30px 24px; min-height: 250px; }
.pr-n { font-size: 13px; color: var(--gold-light); margin-bottom: 46px; display: block; }
.pr h3 { font-size: 22px; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.pr p { font-size: 13.5px; color: var(--dark-muted); margin: 0; }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nx { background: var(--card); border-radius: 14px; padding: 44px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; transition: transform .2s; }
.nx:hover { transform: translateY(-3px); color: var(--ink); }
.nx span { font-size: 13px; color: var(--muted); }
.nx h3 { font-size: 32px; }
.nx .ar { font-size: 30px; color: var(--accent2); }

/* ---------- Trajetória ---------- */
.filterbar { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); z-index: 20; }
.filterbar .wrap { display: flex; gap: 8px; padding-top: 18px; padding-bottom: 18px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.filterbar .wrap::-webkit-scrollbar { display: none; }
.filterbar .lab { font-size: 12px; color: var(--muted); margin-right: 10px; }
.filterbar .chip { border: 0; cursor: pointer; }
.tgroup { display: grid; grid-template-columns: 260px 1fr; gap: 70px; }
.tgroup-head h2 { font-size: 34px; line-height: 1.1; }
.tgroup-head p { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.tline { position: relative; padding-left: 44px; list-style: none; margin: 0; }
.tline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.ev { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 0 0 30px; }
.ev:last-child { padding-bottom: 0; }
.ev::before { content: ""; position: absolute; left: -40px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.sec-alt .ev::before { background: var(--alt); }
.ev.is-dark::before { background: var(--accent2); border-color: var(--accent2); }
.ev-year { font-size: 13px; color: var(--muted); padding-top: 2px; }
.box { background: var(--card); border-radius: var(--radius); padding: 24px 28px; }
.box h3 { font-size: 19px; margin: 4px 0 2px; letter-spacing: -0.01em; }
.box .inst { font-size: 14px; color: var(--muted); display: block; }
.box p { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.box a { font-size: 13px; color: var(--accent); display: inline-block; margin-top: 10px; }
.ev.is-dark .box { background: var(--dark-card); color: #fff; }
.ev.is-dark .box h3 { color: #fff; }
.ev.is-dark .box .inst, .ev.is-dark .box p { color: var(--dark-muted); }
.ev.is-dark .box a { color: var(--gold-light); }
.proj { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.proj .box { height: 100%; }
.cvb { background: var(--dark-card); border-radius: 16px; padding: 54px 60px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: #fff; }
.cvb h2 { font-size: 34px; color: #fff; }
.cvb p { color: var(--dark-muted); margin: 6px 0 0; }

/* ---------- Atividade Digital (página) ---------- */
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 40px; }
.filters .row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.filters .lab { font-size: 12px; color: var(--muted); width: 90px; flex: none; }
.filters .chips { margin: 0; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 70px; list-style: none; padding: 0; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: grid; grid-template-columns: 120px 1fr 260px; gap: 34px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; }
.feed-item:first-child { border-top: 1px solid var(--ink); }
.feed-item .when { font-size: 13px; color: var(--muted); }
.feed-item .when .pf { margin-top: 8px; }
.feed-item h3 { font-size: 22px; line-height: 1.25; margin: 4px 0 10px; }
.feed-item p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.feed-item .type { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent2); font-weight: 600; }
.feed-item .badge { display: inline-block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--accent2); color: #fff; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: middle; }
.media { aspect-ratio: 16 / 9; background: var(--panel); border-radius: 10px; overflow: hidden; position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; border: 0; padding: 0; background: transparent; cursor: pointer; display: block; width: 100%; }
.yt-play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(20,26,34,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat; transition: background-color .2s; }
.yt-play:hover::after { background-color: #c4302b; }
.fcard { background: var(--card); border-radius: var(--radius); overflow: hidden; position: relative; display: flex; flex-direction: column; }
.fcard .media { border-radius: 0; }
.fcard .in { padding: 20px 22px 24px; }
.fcard h3 { font-size: 19px; line-height: 1.3; margin: 8px 0 0; }
.pagination, .pagination .nav-links { margin-top: 50px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .nav-links { margin-top: 0; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 20px; background: var(--card); font-size: 14px; padding: 0 14px; }
.pagination .current { background: var(--ink); color: #fff; }
.external-note { font-size: 12px; color: var(--muted); margin-top: 40px; }

/* ---------- Insights (listagem) ---------- */
.toolbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 44px; flex-wrap: wrap; }
.toolbar .chips { margin: 0; }
.search-form { display: flex; align-items: center; background: var(--card); border-radius: 999px; padding: 4px 4px 4px 18px; min-width: 280px; }
.search-form input { border: 0; background: transparent; font: inherit; font-size: 14px; flex: 1; outline: none; padding: 8px 0; color: var(--ink); min-width: 0; }
.search-form button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 16px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; background: var(--card); border-radius: 16px; overflow: hidden; margin-bottom: 50px; position: relative; }
.featured .card-img { aspect-ratio: 4 / 3; margin: 0; height: 100%; }
.featured .in { padding: 40px 50px 40px 0; }
.featured h2 { font-size: 38px; margin: 10px 0 16px; }
.featured p { color: var(--muted); }
.featured .badge { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--accent2); padding: 3px 9px; border-radius: 4px; }
.no-results { padding: 40px 0; color: var(--muted); }

/* ---------- Artigo ---------- */
.article-head { padding: 90px 0 50px; }
.article-head .wrap { max-width: calc(860px + var(--gutter) * 2); }
.article-head h1 { font-size: 56px; line-height: 1.05; margin: 14px 0 22px; letter-spacing: -0.03em; }
.article-head .excerpt { font-size: 21px; color: var(--muted); line-height: 1.5; margin-bottom: 26px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.article-meta strong { color: var(--ink); font-weight: 500; }
.article-hero { max-width: 1200px; margin: 0 auto 60px; padding: 0 var(--gutter); }
.article-hero img { width: 100%; border-radius: 16px; }
.article-hero figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.prose { max-width: calc(720px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); font-size: 19px; line-height: 1.75; color: #232a35; }
.prose > * { margin-top: 0; margin-bottom: 1.2em; }
.prose h2 { font-size: 32px; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 24px; margin: 1.6em 0 .5em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent2); text-underline-offset: 3px; }
.prose blockquote, .prose .wp-block-quote, .prose .wp-block-pullquote { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.4; color: var(--accent); border-left: 3px solid var(--accent2); padding: 4px 0 4px 28px; margin: 1.6em 0; }
.prose blockquote cite, .prose .wp-block-quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 10px; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: 10px; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose code { background: var(--card); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.prose .wp-block-footnotes, .prose .referencias { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.4em; margin-top: 2.4em; }
.prose sup a { text-decoration: none; }
.prose .alignwide { max-width: 1000px; margin-left: 50%; transform: translateX(-50%); width: calc(100vw - var(--gutter) * 2); }
.article-foot { max-width: calc(720px + var(--gutter) * 2); margin: 50px auto 0; padding: 0 var(--gutter); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 30px; padding: 0; }
.tags a { display: inline-block; padding: 6px 13px; font-size: 12px; border-radius: 20px; background: var(--card); color: var(--muted); }
.tags a::before { content: "#"; }
.share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.share .lab { font-size: 12px; color: var(--muted); margin-right: 6px; letter-spacing: .08em; text-transform: uppercase; }
.share a, .share button { font-size: 13px; padding: 7px 14px; border-radius: 20px; background: var(--card); border: 0; color: var(--ink); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--ink); color: #fff; }
.author-box { display: flex; gap: 20px; align-items: center; margin: 34px 0 0; }
.author-box .av { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(180deg, #7d91a5, #34475b); overflow: hidden; flex: none; }
.author-box .av img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.author-box strong { display: block; }
.author-box span { font-size: 14px; color: var(--muted); }
.disclaimer { font-size: 13px; color: var(--muted); margin-top: 26px; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: start; }
.contact-intro { font-size: 18px; color: var(--muted); margin-bottom: 34px; }
.rp-form { display: grid; gap: 18px; scroll-margin-top: 40px; }
.rp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rp-form label > span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.rp-form input[type=text], .rp-form input[type=email], .rp-form select, .rp-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; border: 1px solid transparent; border-radius: 10px; background: var(--card); color: var(--ink); }
.rp-form input:focus, .rp-form select:focus, .rp-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.rp-form .rp-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.rp-form .rp-check input { margin-top: 4px; }
.rp-form .rp-check span { text-transform: none; letter-spacing: 0; font-size: 14px; margin: 0; font-weight: 400; }
.rp-form .rp-check a { text-decoration: underline; }
.rp-form-privacy { font-size: 13px; color: var(--muted); margin: 0; }
.rp-form button { justify-self: start; }
.rp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rp-form-msg { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-size: 15px; }
.rp-form-msg.is-ok { background: #e3efe5; color: #1f5130; }
.rp-form-msg.is-error { background: #f6e2e0; color: #7b2a22; }
.contact-aside { background: var(--dark-card); color: #fff; border-radius: 16px; padding: 40px 36px; }
.contact-aside h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 12px; font-weight: 600; }
.contact-aside ul { list-style: none; margin: 0 0 30px; padding: 0; }
.contact-aside li { border-bottom: 1px solid var(--dark-line); }
.contact-aside li a { display: flex; justify-content: space-between; padding: 12px 0; font-size: 15px; color: #fff; }
.contact-aside li a::after { content: "↗"; color: var(--gold-light); }
.contact-aside .mail { font-size: 18px; color: #fff; word-break: break-all; display: block; margin-bottom: 30px; }
.contact-aside p { color: var(--dark-muted); font-size: 13px; margin: 0; }

/* Página genérica */
.page-body { padding: 80px 0 100px; }

/* Aviso de cookies */
.rp-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--dark-card); color: #fff; border-radius: 14px; padding: 18px 20px; z-index: 200; display: flex; gap: 16px; align-items: center; box-shadow: 0 20px 50px rgba(0,0,0,.25); font-size: 14px; }
.rp-cookies[hidden] { display: none; }
.rp-cookies p { margin: 0; flex: 1; }
.rp-cookies a { text-decoration: underline; }
.rp-cookies div { display: flex; gap: 8px; }
.rp-cookies button { border: 1px solid #fff; background: transparent; color: #fff; border-radius: 20px; padding: 7px 14px; cursor: pointer; font-size: 13px; }
.rp-cookies button.is-primary { background: #fff; color: var(--ink); }

/* 404 */
.notfound { padding: 140px 0; text-align: center; }
.notfound h1 { font-size: 56px; margin-bottom: 16px; }

/* ================= Responsivo ================= */
@media (max-width: 1180px) {
	.hero-left { width: 280px; }
	.hero-right { width: 300px; }
	.hero-quote { font-size: 24px; }
	.hero-figure { width: 360px; }
	.princ { grid-template-columns: repeat(3, 1fr); }
	.act-row { grid-template-columns: 96px 130px 1fr 72px; }
}

@media (max-width: 960px) {
	:root { --gutter: 20px; }
	.nav-toggle { display: block; }
	.primary-nav { position: fixed; inset: 0; background: var(--bg); padding: 100px var(--gutter) 40px; transform: translateY(-100%); transition: transform .35s ease; z-index: 40; overflow-y: auto; }
	.nav-open .primary-nav { transform: none; }
	.primary-nav ul { flex-direction: column; gap: 0; }
	.primary-nav li { border-bottom: 1px solid var(--line); }
	.primary-nav a { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; padding: 16px 0; border: 0; }
	.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a, .primary-nav .current_page_parent > a { color: var(--accent); }
	.nav-open { overflow: hidden; }
	.nav-open .site-header .brand, .nav-open .nav-toggle { position: relative; z-index: 60; }

	/* Abertura em coluna: nome em duas linhas, foto, textos abaixo */
	.hero { height: auto; max-height: none; min-height: 0; display: flex; flex-direction: column; padding-top: 10px; }
	.hero-ghost { position: relative; top: 0; font-size: 22.5vw; line-height: .82; text-align: left; padding: 0 var(--gutter); white-space: normal; }
	.hero-ghost span { display: block; }
	.hero-figure { position: relative; left: auto; transform: none; margin: -4vw auto 0; width: min(72vw, 360px); border-radius: 50vw 50vw 0 0; height: auto; aspect-ratio: 420 / 560; }
	.hero-left, .hero-right { position: static; width: auto; padding: 0 var(--gutter); }
	.hero-right { order: 3; padding-top: 40px; }
	.hero-left { order: 4; padding-top: 28px; padding-bottom: 60px; }
	.hero-quote { font-size: 26px; }
	.hero-roles { margin: 14px 0 26px; }

	.sec { padding: 72px 0; }
	.sec-title, .sec-title-sm { font-size: 34px; }
	.sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
	.dims { grid-template-columns: 1fr 1fr; }
	.split, .act, .story, .contact, .tgroup { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.split > *, .act > *, .story > *, .contact > *, .tgroup > *, .toolbar > *, .filters .row > * { min-width: 0; max-width: 100%; }
	.orgs { grid-template-columns: 1fr; }
	.cards, .cards-grid, .feat { grid-template-columns: 1fr 1fr; }
	.cards .card-lg { grid-column: 1 / -1; }
	.cta { padding: 90px 0; }
	.cta h2 { font-size: 40px; }

	.page-head { min-height: 0; }
	.page-head .wrap { grid-template-columns: 1fr; gap: 22px; padding-top: 120px; padding-bottom: 56px; }
	.page-ghost, .page-head.is-right .page-ghost { top: 30px; text-align: left; left: var(--gutter); right: auto; font-size: 22vw; }
	.page-head h1 { font-size: 44px; }

	.story-side { position: static; display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; }
	.toc { margin-top: 0; }
	.princ { grid-template-columns: 1fr 1fr; }
	.pr { min-height: 0; }
	.pr-n { margin-bottom: 24px; }
	.next { grid-template-columns: 1fr; }

	.feed-item { grid-template-columns: 1fr; gap: 14px; }
	.feed-item .when { display: flex; gap: 14px; align-items: center; }
	.feed-item .when .pf { margin: 0; }
	.featured { grid-template-columns: 1fr; gap: 0; }
	.featured .in { padding: 28px; }
	.featured h2 { font-size: 30px; }
	.cvb { flex-direction: column; align-items: flex-start; padding: 40px 32px; }
	.article-head { padding: 60px 0 36px; }
	.article-head h1 { font-size: 40px; }
	.prose { font-size: 18px; }
}

@media (max-width: 640px) {
	.brand small { display: none; }
	.dims, .cards, .cards-grid, .feat, .princ, .proj { grid-template-columns: 1fr; }
	.dim { padding: 26px 24px; }
	.dim-n { margin-bottom: 16px; }
	.org { padding: 32px 26px; min-height: 0; }
	.org h3 { font-size: 24px; }
	.card-lg h3, .card h2, .card h3 { font-size: 22px; }
	.act-row { grid-template-columns: 1fr 64px; grid-template-areas: "meta thumb" "title thumb"; gap: 6px 16px; }
	.act-row .act-date, .act-row .pf { grid-area: meta; }
	.act-row .act-date { display: none; }
	.act-row .act-body { grid-area: title; }
	.act-row .thumb { grid-area: thumb; width: 64px; height: 44px; }
	.chips { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
	.chips::-webkit-scrollbar { display: none; }
	.filters .row { flex-direction: column; align-items: flex-start; gap: 8px; }
	.filters .chips { width: calc(100% + var(--gutter) * 2); max-width: none; margin: 0 calc(var(--gutter) * -1); }
	.cta h2 { font-size: 32px; }
	.page-head h1 { font-size: 36px; }
	.page-head .sub { font-size: 17px; }
	.story-side { grid-template-columns: 1fr; }
	.story-photo { max-width: 240px; }
	.chap h2 { font-size: 28px; }
	.chap .txt p { font-size: 17px; }
	.pull { font-size: 24px; padding-left: 20px; }
	.tline { padding-left: 34px; }
	.tline::before { left: 6px; }
	.ev { grid-template-columns: 1fr; gap: 8px; }
	.ev::before { left: -34px; top: 4px; }
	.tgroup-head h2 { font-size: 28px; }
	.box { padding: 20px 22px; }
	.nx { padding: 30px; }
	.nx h3 { font-size: 26px; }
	.rp-form-row { grid-template-columns: 1fr; }
	.contact-aside { padding: 30px 24px; }
	.search-form { min-width: 0; width: 100%; }
	.toolbar { flex-direction: column; align-items: stretch; }
	.article-head h1 { font-size: 32px; }
	.article-head .excerpt { font-size: 18px; }
	.prose blockquote, .prose .wp-block-quote { font-size: 22px; }
	.site-footer .wrap { flex-direction: column; }
	.rp-cookies { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .share, .related, .rp-cookies, .cta { display: none !important; }
	body { background: #fff; }
}
