/* Estilos compartilhados do blog (blog.html e artigo.html), no mesmo visual do protótipo */
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-semibold.otf') format('opentype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/manrope-extrabold.otf') format('opentype'); font-weight: 800; font-display: swap; }

:root {
  --marinho: #06213d; --marinho-2: #0b2f55; --laranja: #f47b0a; --laranja-escuro: #c25f04;
  --tinta: #0e1c2b; --suave: #5a6878; --papel: #f4f6f8; --linha: #dfe5eb;
  --gutter: clamp(20px, 5vw, 64px); --max: 1180px; --topo: 72px;
}
* { box-sizing: border-box; }
html { font-size: 93.75%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', system-ui, sans-serif; color: var(--tinta); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--laranja); outline-offset: 4px; }
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.traco { display: block; width: 56px; height: 2px; background: var(--laranja); }
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; padding: 14px 26px; border-radius: 2px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .25s, color .25s; }
.btn-laranja { background: var(--laranja); color: #fff; }
.btn-laranja:hover { background: var(--marinho); color: #fff; }
.link { display: inline-block; font-weight: 600; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid currentColor; color: var(--marinho); transition: color .2s; }
.link:hover { color: var(--laranja); }

/* Cabeçalho (sempre sólido nas páginas internas) */
.topo { position: sticky; top: 0; z-index: 40; background: rgba(6,33,61,.97); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.topo-in { display: flex; align-items: center; gap: 32px; min-height: var(--topo); }
.topo-logo img { height: 48px; width: auto; margin-left: -18px; }
.menu { display: flex; gap: 30px; margin-left: auto; }
.menu a { text-decoration: none; font-size: .92rem; font-weight: 500; white-space: nowrap; color: rgba(255,255,255,.82); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.menu a:hover, .menu a.atual { color: #fff; border-bottom-color: var(--laranja); }
.topo .btn { padding: 10px 20px; font-size: .88rem; white-space: nowrap; }
@media (max-width: 1100px) { .menu { display: none; } .topo .btn { margin-left: auto; } }

/* Cabeçalho da página */
.pagina-cab { position: relative; overflow: hidden; background: var(--marinho); color: #fff; padding-block: clamp(56px, 7vw, 96px) clamp(44px, 5vw, 72px); }
.pagina-cab .simbolo { position: absolute; right: -4%; top: -30%; width: min(520px, 50%); fill: none; stroke: rgba(255,255,255,.08); stroke-width: .35; pointer-events: none; }
.pagina-cab .wrap { position: relative; }
.trilha { display: flex; gap: 8px; font-size: .86rem; color: rgba(255,255,255,.6); }
.trilha a { color: rgba(255,255,255,.85); text-decoration: none; }
.trilha a:hover { color: var(--laranja); }
.pagina-cab h1 { margin-top: 22px; font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.045em; max-width: 18ch; }
.pagina-cab h1 b { font-weight: 700; }
.pagina-cab p { margin-top: 18px; color: rgba(255,255,255,.75); max-width: 56ch; }

/* Rodapé */
.rodape { background: var(--marinho); color: rgba(255,255,255,.68); padding-block: 64px 28px; font-size: .93rem; }
.rodape-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .rodape-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.rodape img { height: 50px; width: auto; margin-left: -19px; margin-bottom: 8px; }
.rodape h3 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 12px; }
.rodape p + p { margin-top: 6px; }
.rodape a { color: #fff; text-decoration: none; }
.rodape a:hover { text-decoration: underline; text-decoration-color: var(--laranja); text-underline-offset: 5px; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rodape-fim { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; color: rgba(255,255,255,.45); }

/* Etiquetas de tema */
.tema { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--laranja-escuro); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .84rem; color: var(--suave); }
.meta .tema::after { content: ""; display: inline-block; width: 4px; height: 4px; margin-left: 14px; border-radius: 50%; background: var(--linha); vertical-align: middle; }

/* Chamada de diagnóstico (usada nas duas páginas) */
.cta-diag { background: var(--laranja); color: #fff; }
.cta-diag .wrap { display: grid; gap: 22px; align-items: center; padding-block: clamp(48px, 5vw, 72px); }
@media (min-width: 900px) { .cta-diag .wrap { grid-template-columns: 1fr auto; gap: 56px; } }
.cta-diag p { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 300; line-height: 1.2; letter-spacing: -0.035em; max-width: 30ch; }
.cta-diag p b { font-weight: 700; }
.cta-diag .btn { background: var(--marinho); color: #fff; }
.cta-diag .btn:hover { background: #fff; color: var(--marinho); }

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

/* Corpo da matéria (artigo.html e pré-visualização do painel do blog) */
.texto-art { max-width: 70ch; }
.texto-art .lead { font-size: 1.2rem; line-height: 1.6; color: var(--marinho); font-weight: 500; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--linha); }
.texto-art p, .texto-art li { font-size: 1.05rem; line-height: 1.8; color: #33414f; }
.texto-art p + p, .texto-art ul + p, .texto-art p + ul { margin-top: 18px; }
.texto-art h2 { margin: 40px 0 12px; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--marinho); }
.texto-art h2::before { content: ""; display: block; width: 32px; height: 2px; margin-bottom: 14px; background: var(--laranja); }
.texto-art ul { margin: 0; padding-left: 22px; }
.texto-art li + li { margin-top: 6px; }
.texto-art li::marker { color: var(--laranja); }
