/* Fontes hospedadas no próprio site (sem chamadas ao Google: melhor privacidade/LGPD e CSP mais restrita). Licença: SIL OFL 1.1 */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cinzel-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }

/* Layout: faixa de abertura azul-marinho com o brasão; seções claras em coluna única de leitura, com grades que viram uma coluna no celular. */
:root {
  --navy: #13254a;
  --navy-deep: #0c1a38;
  --gold: #b8913a;
  --gold-soft: #d9bf7f;
  --gold-text: #8a6a1f;
  --paper: #f7f8fb;
  --surface: #ffffff;
  --ink: #18223a;
  --muted: #56607a;
  --line: #dde2ec;
  --on-navy: #f1ede2;
  --font-mark: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-display: "Cormorant Garamond", Garamond, Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1628; --surface: #15203a; --ink: #e9ecf3; --muted: #a4adc4; --line: #27344f;
    --gold: #d2ad5c; --gold-text: #d2ad5c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1628; --surface: #15203a; --ink: #e9ecf3; --muted: #a4adc4; --line: #27344f;
  --gold: #d2ad5c; --gold-text: #d2ad5c; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--navy-deep); }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Cabeçalho */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--navy-deep); color: var(--on-navy); border-bottom: 1px solid rgba(217,191,127,.25); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.mark, .brand { font-family: var(--font-mark); font-weight: 600; letter-spacing: .08em; font-size: 15px; text-decoration: none; color: var(--gold-soft); }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--on-navy); opacity: .85; }
.top nav a:hover { opacity: 1; color: var(--gold-soft); }
.menu-btn { display: none; font: inherit; font-size: 14px; color: var(--on-navy); background: transparent; border: 1px solid rgba(217,191,127,.45); border-radius: 4px; padding: 6px 12px; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  .top nav#menu { display: none; width: 100%; flex-direction: column; gap: 0; padding-top: 6px; }
  .top nav#menu.open { display: flex; }
  .top nav#menu a { padding: 10px 0; border-top: 1px solid rgba(217,191,127,.15); font-size: 15px; }
}

/* Abertura */
.hero { background: radial-gradient(120% 90% at 70% 10%, #1c3466 0%, var(--navy) 45%, var(--navy-deep) 100%); color: var(--on-navy); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 56px 64px; }
.hero .eyebrow { font-family: var(--font-mark); letter-spacing: .22em; font-size: 12.5px; color: var(--gold-soft); text-transform: uppercase; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin-top: 14px; }
.hero .lema { font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--gold-soft); margin-top: 10px; }
.hero .intro { margin-top: 22px; max-width: 34em; color: #d8dbe6; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 3px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--gold); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-line { color: var(--gold-soft); }
.btn-line:hover { background: rgba(217,191,127,.1); }
form .btn-line { color: var(--gold-text); border-color: var(--gold); justify-self: start; }
.crest { justify-self: center; display: block; width: 100%; max-width: 440px; height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.oab { margin-top: 26px; font-size: 13px; letter-spacing: .06em; color: #aab2c8; }

/* Seções */
section.block { padding-block: 72px; }
section.block + section.block { border-top: 1px solid var(--line); }
.kicker { font-family: var(--font-mark); letter-spacing: .2em; font-size: 12px; color: var(--gold-text); text-transform: uppercase; }
.block h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.2vw, 44px); line-height: 1.1; margin-top: 8px; }
.lead { margin-top: 14px; color: var(--muted); max-width: 40em; }

/* Áreas */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px; }
.area { background: var(--surface); padding: 26px 24px 28px; min-width: 0; }
.area h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.area p { margin-top: 10px; font-size: 15.5px; color: var(--muted); }
.area .tag { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; font-weight: 600; }

/* Método */
.practice-note { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-style: italic; max-width: 46em; }
#atuacao { padding-block: 56px; }
.practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.step { min-width: 0; border-top: 2px solid var(--gold); padding-top: 18px; }
.step .letter { font-family: var(--font-mark); font-size: 38px; color: var(--gold-text); line-height: 1; }
.step h3 { font-family: var(--font-display); font-size: 25px; font-weight: 600; line-height: 1.2; margin-top: 8px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* Advogado */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; margin-top: 32px; align-items: start; }
.about .card { background: var(--navy); color: var(--on-navy); padding: 30px; border-radius: 3px; }
.about .card .name { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.15; }
.about .card dl { margin: 20px 0 0; display: grid; gap: 12px; font-size: 15px; }
.about .card dt { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); }
.about .card dd { margin: 2px 0 0; }
.about .photo { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; margin: -30px -30px 24px; width: calc(100% + 60px); max-width: none; }
@media (max-width: 860px) { .about .card { max-width: 420px; } }
@media (max-width: 1100px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about .text { display: grid; gap: 16px; min-width: 0; }

/* Artigos */
.posts { display: grid; gap: 16px; margin-top: 36px; }
.post details { margin-top: 4px; }
.post summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--gold-text); list-style: none; }
.post summary::-webkit-details-marker { display: none; }
.post summary::after { content: " +"; }
.post details[open] summary::after { content: " –"; }
.post .full { margin-top: 14px; display: grid; gap: 12px; max-width: 46em; }
.post .full p, .post .full li { color: var(--ink); font-size: 16px; }
.post .full ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.post .full h4 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 8px 0 0; }
.post .full .alerta { border-left: 3px solid var(--gold); background: rgba(184,145,58,.08); padding: 12px 16px; }
.post .meta { font-size: 12.5px; color: var(--muted); }
.post .fonte { font-size: 13.5px; color: var(--muted); font-style: italic; }
.post { background: var(--surface); border: 1px solid var(--line); padding: 24px 28px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.post .tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.post h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.2; }
.post p { color: var(--muted); font-size: 15px; }
.post .soon { margin-top: auto; font-size: 13px; color: var(--muted); font-style: italic; }

.qas { display: grid; gap: 10px; margin-top: 32px; max-width: 54em; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.qa summary { cursor: pointer; list-style: none; padding: 18px 22px; display: grid; gap: 6px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.qa summary .q { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.25; padding-right: 28px; position: relative; }
.qa summary .q::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--gold-text); font-family: var(--font-body); }
.qa[open] summary .q::after { content: "–"; }
.qa .a { padding: 0 22px 20px; display: grid; gap: 10px; }
.qa .a p { font-size: 16px; }
.qa .a .meta { font-size: 12.5px; color: var(--muted); }
.ask { margin-top: 36px; max-width: 54em; border-left: 3px solid var(--gold); padding: 4px 0 4px 22px; display: grid; gap: 10px; }
.ask h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.ask p { color: var(--muted); font-size: 15.5px; }
.ask .btn { justify-self: start; color: var(--gold-text); border-color: var(--gold); }
.post .autor { font-size: 13px; color: var(--ink); font-weight: 600; }
.editorial { margin-top: 18px; font-size: 14px; color: var(--muted); font-style: italic; max-width: 54em; }
/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }
.info { display: grid; gap: 18px; min-width: 0; align-content: start; }
.info .row { display: grid; gap: 2px; }
.info .label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.info .value { font-size: 17px; user-select: all; overflow-wrap: anywhere; }
.copy { justify-self: start; margin-top: 4px; font: inherit; font-size: 13px; background: none; border: 1px solid var(--line); color: var(--muted); padding: 4px 10px; border-radius: 3px; cursor: pointer; }
.copy:hover { border-color: var(--gold); color: var(--ink); }
form { background: var(--surface); border: 1px solid var(--line); padding: 26px; display: grid; gap: 14px; min-width: 0; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
input, textarea, select { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); width: 100%; }
textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.consent input { width: auto; margin-top: 4px; }
.formnote { font-size: 13.5px; color: var(--muted); }
.formnote.ok { color: var(--ink); font-weight: 500; }
form .btn { justify-self: start; cursor: pointer; }

/* Rodapé */
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: 8px 14px; z-index: 20; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); top: calc(8px + env(safe-area-inset-top, 0px)); }
.wa { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 6; display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: var(--on-navy); border: 1px solid var(--gold); padding: 11px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 24px -12px rgba(0,0,0,.55); }
.wa:hover { background: var(--navy-deep); }
.wa svg { width: 18px; height: 18px; fill: var(--gold-soft); }
.priv { display: grid; gap: 10px; max-width: 46em; margin-top: 20px; }
.priv p, .priv li { color: var(--muted); font-size: 15.5px; }
.priv h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: 14px; }
.priv .maillink { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.priv .upd { font-style: italic; margin-top: 10px; }
.priv ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer nav a { color: #d9dde8; text-decoration: none; }
footer nav a:hover { color: var(--gold-soft); }
footer { background: var(--navy-deep); color: #b9c0d3; font-size: 13.5px; }
footer .wrap { padding-block: 36px 96px; display: grid; gap: 14px; }
footer .mark { font-size: 14px; }
footer .legal { max-width: 60em; }

@media (max-width: 860px) {
  .hero .wrap, .about, .contact { grid-template-columns: 1fr; }
  .hero .wrap > picture { max-width: 320px; order: -1; }
  .areas { grid-template-columns: 1fr 1fr; }
  .practice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .areas { grid-template-columns: 1fr; }
  .top nav { gap: 14px; font-size: 13px; }
  section.block { padding-block: 52px; }
}

/* Utilitários usados no lugar de atributos style="" (permite CSP sem 'unsafe-inline') */
.self-start { justify-self: start; }
picture { display: block; }
.hero picture { justify-self: center; width: 100%; max-width: 440px; }

/* Blog: listagem de artigos */
.hero--page .wrap { display: block; padding-block: 48px 52px; }
.hero--page p:not(.eyebrow) { margin-top: 14px; max-width: 40em; color: #d8dbe6; }
.blog-intro { padding-block: 48px 8px; display: grid; gap: 14px; }
.blog-intro h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; }
.blog-intro p { color: var(--muted); max-width: 46em; }
.search-label { font-size: 14px; font-weight: 500; margin-top: 10px; }
.search { max-width: 34em; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-block: 24px 72px; }
.tile { background: var(--surface); border: 1px solid var(--line); padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile .tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.tile h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.2; }
.tile p { color: var(--muted); font-size: 15px; }
.tile .link { margin-top: auto; color: var(--gold-text); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.tile .link:hover { text-decoration: underline; }
.empty { color: var(--muted); font-style: italic; padding-bottom: 48px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

/* Página 404 */
.notfound { padding-block: 96px; display: grid; gap: 16px; justify-items: start; }
.notfound h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5vw, 52px); }
.notfound p { color: var(--muted); }
.post .btn-line { color: var(--gold-text); }
.post .btn-line:hover { background: rgba(184,145,58,.1); }
