/* Fontes servidas pelo próprio site (cópia exata do Google Fonts: Source Sans 3 e Source Serif 4, mesmas faixas de caracteres). */
/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-italic-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-italic-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-italic-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-italic-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-italic-latin.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-normal-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-normal-greek-ext.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-normal-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-normal-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-sans-3-normal-latin.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-serif-4-italic-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-serif-4-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-serif-4-italic-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-serif-4-italic-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-serif-4-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-serif-4-italic-latin.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-serif-4-normal-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-serif-4-normal-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-serif-4-normal-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-serif-4-normal-vietnamese.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-serif-4-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fontes/source-serif-4-normal-latin.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;
}

/* ==========================================================
   Estilo do site Raul Dias | Advogado
   Identidade: azul (#191970), fundo claro (#f5f5f5), Source Serif 4 nos títulos e Source Sans 3 no texto.
   Base: o index.html aprovado. Escala tipográfica, espaçamentos e navegação revistos em 02/10/2026.
   ========================================================== */

:root {
  --navy: #191970;
  --paper: #f5f5f5;
  --azulado: #e6e6ef;           /* fundo discretamente azulado: o próprio azul a ~7% sobre o fundo claro */
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
  --gutter: clamp(20px, 4.4vw, 56px);
  --secao: clamp(48px, 5.5vw, 72px);   /* espaço vertical entre seções */

  /* Escala tipográfica: valores de desktop à direita; o mínimo vale para o celular */
  --t-h1: clamp(34px, 4.4vw, 58px);
  --t-h2: clamp(28px, 2.7vw, 37px);
  --t-area: clamp(22px, 2vw, 27px);
  --t-apresentacao: clamp(19px, 1.6vw, 22px);
  --t-artigo: clamp(20px, 1.85vw, 25px);
  --t-lead: clamp(18px, 1.4vw, 20px);
  --t-texto: clamp(18px, 1.3vw, 19px);
}

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

html { scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-variant-numeric: lining-nums;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.hero-side :focus-visible,
.site-footer :focus-visible,
.chat-head :focus-visible { outline-color: var(--paper); }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: var(--navy);
  font-weight: 600;
}
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; }

/* Logo */
.logo {
  display: block;
  flex: none;
  height: 26px;
  aspect-ratio: 2000 / 1235;
  fill: currentColor;
}
.logo-sm { height: 22px; }
.logo-md { height: 28px; }
.logo-lg { height: 36px; }

/* ---------- Cabeçalho fixo e navegação ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  transition: transform 0.25s;
  background: var(--paper);
  border-bottom: 1px solid var(--navy);
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 28px;
  padding: 10px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-right: auto; }
.brand-name { font-size: 17px; font-weight: 600; }
.brand-name span { font-weight: 400; opacity: 0.72; }
.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 26px;
  font-size: 16px;
  font-weight: 500;
}
.nav > a, .menu-areas > summary { display: inline-flex; align-items: center; min-height: 44px; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

/* Menu "Áreas de atuação" (details/summary: funciona por clique, teclado e toque, mesmo sem JavaScript) */
.menu-areas { position: relative; }
.menu-areas > summary { gap: 8px; list-style: none; cursor: pointer; }
.menu-areas > summary::-webkit-details-marker { display: none; }
.menu-areas > summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.menu-areas[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.menu-areas[open] > summary { text-decoration: underline; text-underline-offset: 5px; }
.menu-areas-lista {
  position: absolute;
  top: calc(100% + 6px);
  left: -18px;
  z-index: 35;
  width: max-content;
  min-width: 260px;
  max-width: calc(100vw - 2 * var(--gutter));
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--navy);
  box-shadow: 0 12px 32px rgba(25, 25, 112, 0.18);
}
.menu-areas-lista a { display: flex; align-items: center; min-height: 44px; padding: 0 18px; font-size: 16px; }
.menu-areas-lista a:hover { background: #fff; }
.menu-areas-lista a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.menu-areas-lista .menu-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(25, 25, 112, 0.25); }

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 30px;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.btn svg { flex: none; }
.btn:hover { background: #10104f; }
.btn-sm { min-height: 44px; padding: 0 20px; gap: 10px; font-size: 16px; }
.btn-light { background: var(--paper); color: var(--navy); }
.btn-light:hover { background: #fff; }
.link-underline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---------- Títulos ---------- */
.h1, .h2, .artigo-t, .footer-big, .area-card h3, .metodo h3 {
  margin: 0;
  font-family: var(--serif);
  text-wrap: balance;
}
.h1 {
  font-weight: 600;
  font-size: var(--t-h1);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h1 em, .footer-big em { font-weight: 400; font-style: italic; }
.h2 {
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.lead { margin: 0; max-width: 620px; font-size: var(--t-lead); line-height: 1.6; text-wrap: pretty; }
.lead a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Abertura (hero): a altura é a do conteúdo ---------- */
/* O conteúdo fica no mesmo contêiner das seções (bordas alinhadas); só o fundo azul vai até a borda da tela */
.hero { overflow: hidden; overflow: clip; }
.hero-inner { display: flex; flex-wrap: wrap; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; }
.hero-copy {
  flex: 1 1 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: clamp(40px, 5vw, 64px) var(--gutter);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-side {
  position: relative;
  flex: 0 1 clamp(340px, 33vw, 480px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 32px clamp(20px, 3vw, 40px);
  background: var(--navy);
  color: var(--paper);
}
.hero-side::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 100vw; background: var(--navy); }
.hero-side .logo { align-self: flex-start; }
/* A foto aparece sempre inteira, na proporção original (928 x 1038) */
.foto {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 928 / 1038;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 245, 245, 0.4);
}
.foto img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-side p { margin: 0; font-size: 16px; line-height: 1.55; }

/* Tablet: painel azul ocupa a largura, com foto e legenda lado a lado; o logo já está no cabeçalho */
@media (max-width: 899px) {
  .hero-side {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: end;
    gap: 16px 28px;
    padding: 32px var(--gutter);
  }
  .hero-side::after, .hero-side .logo { display: none; }
  .hero-side .foto { grid-column: 1; }
  .hero-side p { grid-column: 2; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
}
/* Celular: uma coluna */
@media (max-width: 599px) {
  .hero-side { display: flex; align-items: stretch; }
  .hero-side p { align-self: auto; font-family: var(--sans); font-size: 16px; line-height: 1.55; }
}

/* ---------- Áreas de atuação: blocos clicáveis ---------- */
.atuacao { padding: var(--secao) var(--gutter); }
.atuacao .wrap { display: flex; flex-direction: column; gap: 28px; }
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.area-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 22px;
  border: 1px solid var(--navy);
  transition: background-color 0.15s;
}
.area-card:hover { background: #fff; }
.area-card h3 { font-weight: 600; font-size: var(--t-area); line-height: 1.15; letter-spacing: -0.01em; }
.area-card p { flex: 1; margin: 0; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.area-mais { font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
.area-card:hover .area-mais, .area-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
/* Atuação complementar: blocos mais baixos */
.areas-compl { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px 20px; }
.areas-compl .area-card { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 18px 26px; }
.areas-compl .area-card h3 { font-size: clamp(20px, 1.6vw, 22px); }
.areas-compl .area-card p { flex: 1 1 240px; font-size: 17px; }
.areas-compl .area-mais { flex: none; }
.mais-areas { padding-top: 0; }
.mais-areas .areas .area-card h3 { font-size: clamp(20px, 1.6vw, 22px); }
.mais-areas .areas .area-card p { font-size: 17px; }

/* ---------- Apresentação ---------- */
.apresentacao { padding: 0 var(--gutter) var(--secao); }
.apresentacao .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px 48px;
  align-items: baseline;
  padding-top: 28px;
  border-top: 1px solid var(--navy);
}
.apresentacao-texto {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: var(--t-apresentacao);
  line-height: 1.5;
  text-wrap: pretty;
}
@media (max-width: 760px) {
  .apresentacao .wrap { grid-template-columns: 1fr; }
}

/* ---------- Como trabalhamos: fundo discretamente azulado, etapas em grade 2 x 2 ---------- */
.como-trabalhamos { padding: var(--secao) var(--gutter); background: var(--azulado); }
.como-trabalhamos .wrap { display: flex; flex-direction: column; gap: 32px; }
.metodo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: passo;
}
.metodo li {
  counter-increment: passo;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px 0;
  padding-top: 20px;
  border-top: 1px solid var(--navy);
}
.metodo li::before { content: counter(passo, decimal-leading-zero); grid-row: 1 / span 2; font-size: 16px; font-weight: 600; line-height: 1.8; }
.metodo h3 { font-weight: 600; font-size: clamp(20px, 1.7vw, 23px); line-height: 1.25; letter-spacing: -0.01em; }
.metodo p { margin: 0; font-size: 18px; line-height: 1.6; text-wrap: pretty; }
@media (max-width: 760px) {
  .metodo { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Listas de artigos (tratamento editorial) ---------- */
.artigos { padding: 0 var(--gutter) var(--secao); }
.artigos-home { padding-top: var(--secao); }
.artigos-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.artigos-top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.artigos-lista { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--navy); }
.artigo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 32px;
  padding: 24px 0;
  border-top: 1px solid var(--navy);
}
.artigo-n { flex: 0 0 48px; font-size: 16px; font-weight: 600; }
.artigo-t {
  flex: 1 1 420px;
  font-weight: 600;
  font-size: var(--t-artigo);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.artigo-ler { flex: none; font-size: 16px; font-weight: 500; }
.artigo:hover .artigo-t { text-decoration: underline; text-underline-offset: 6px; }
/* /blog: data e tema, título e descrição */
.artigo-data { flex: 0 0 190px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; font-weight: 600; }
.artigo-tema { font-weight: 400; }
.artigo-texto { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.artigo-texto .artigo-t { flex: none; }
.artigo-desc { max-width: 720px; font-size: 17px; line-height: 1.55; }

/* Filtros por tema no /blog */
.filtros { margin: 0 0 32px; }
.filtros ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.filtros a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--navy);
  font-size: 16px;
  font-weight: 500;
}
.filtros a:hover { background: #fff; }
.filtros a[aria-current="page"] { background: var(--navy); color: var(--paper); }
.filtros a span { font-weight: 400; }

/* ---------- Páginas internas ---------- */
.pagina { padding: clamp(40px, 5vw, 64px) var(--gutter) var(--secao); }
.pagina-topo {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 880px;
  margin-bottom: 36px;
}
.pagina-titulo {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.pagina-meta { margin: 0; font-size: 16px; }
.pagina-meta a { display: inline-block; min-height: 24px; text-decoration: underline; text-underline-offset: 3px; }

/* Imagem de abertura do artigo: faixa baixa (21:9) */
.capa { max-width: 880px; margin: 0 0 44px; }
.capa img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

/* Corpo do artigo: texto + sumário (ao lado, em telas largas) */
.artigo-corpo { display: grid; grid-template-columns: minmax(0, 720px); }
.sumario {
  max-width: 720px;
  margin: 0 0 40px;
  padding: 18px 0 6px;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}
.sumario-titulo { margin: 0 0 6px; font-family: var(--sans); font-size: 16px; font-weight: 600; }
.sumario ol { margin: 0; padding: 0 0 12px 1.4em; font-size: 17px; line-height: 1.45; }
.sumario li { margin: 8px 0; }
.sumario a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1180px) {
  .artigo-corpo.com-sumario { grid-template-columns: minmax(0, 720px) minmax(220px, 300px); column-gap: 64px; }
  .com-sumario .sumario {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    margin: 0;
  }
  .com-sumario .texto { grid-column: 1; grid-row: 1; }
  .com-sumario .chamada { grid-column: 1; grid-row: 2; }
}

/* Texto corrido (artigos, áreas e política de privacidade) */
.texto {
  max-width: 720px;
  font-size: var(--t-texto);
  line-height: 1.7;
  overflow-wrap: break-word;
}
.texto > :first-child { margin-top: 0; }
.texto p, .texto ul, .texto ol, .texto .tabela { margin: 0 0 1.1em; }
.texto h2, .texto h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.texto h2 { margin: 1.8em 0 0.6em; font-size: clamp(24px, 2.3vw, 30px); line-height: 1.2; }
.texto h3 { margin: 1.6em 0 0.5em; font-size: clamp(21px, 1.8vw, 23px); line-height: 1.25; }
.texto a { text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.texto ul, .texto ol { padding-left: 1.4em; }
.texto li { margin: 0.35em 0; }
.texto img { display: block; max-width: 100%; height: auto; margin: 8px auto; }
.figura { margin: 1.6em 0; }
.figura figcaption { margin-bottom: 10px; font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.35; }
.figura a { display: block; }
.figura img { margin: 0 auto; border: 1px solid rgba(25, 25, 112, 0.2); }
.texto-area > p:first-child { font-size: var(--t-lead); line-height: 1.6; }

/* Tabelas: rolam na horizontal em telas estreitas */
.tabela {
  max-width: 100%;
  overflow-x: auto;
  background:
    linear-gradient(to right, var(--paper) 30%, rgba(245, 245, 245, 0)) left / 40px 100% no-repeat local,
    linear-gradient(to left, var(--paper) 30%, rgba(245, 245, 245, 0)) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(25, 25, 112, 0.22), transparent) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(25, 25, 112, 0.22), transparent) right / 14px 100% no-repeat scroll;
}
.tabela-dica { margin: 0 0 6px; font-size: 15px; font-style: italic; }
.tabela table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.5; }
.tabela th, .tabela td { padding: 10px 12px; border: 1px solid var(--navy); vertical-align: top; }
.tabela th { background: #fff; font-weight: 600; }
.tabela th:not([align]) { text-align: left; }
.tabela td p { margin: 0 0 0.4em; }
.tabela td p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .tabela .quadro td { display: block; border-top-width: 0; }
  .tabela .quadro tr td:first-child { border-top-width: 1px; }
}

/* Chamada para o WhatsApp ao final do texto */
.chamada {
  max-width: 720px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--navy);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.chamada p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ---------- Rodapé (compacto) ---------- */
.site-footer { background: var(--navy); color: var(--paper); }
.footer-main {
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 4.5vw, 56px) var(--gutter) 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
}
.footer-cta { flex: 2 1 480px; display: flex; flex-direction: column; gap: 20px; }
.footer-cta .logo { align-self: flex-start; }
.footer-cta .btn { align-self: flex-start; }
.footer-big {
  font-weight: 600;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.footer-info a { display: inline-flex; align-items: center; min-height: 24px; align-self: flex-start; }
.footer-info {
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 17px;
  line-height: 1.5;
}
.footer-redes { margin: 0; }
.footer-legal { max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 24px; }
.footer-legal p {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(245, 245, 245, 0.3);
  font-size: 14px;
  line-height: 1.5;
}
.footer-legal .footer-links { padding-top: 8px; border-top: 0; }
.footer-links a, .footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Painel de contato ---------- */
.chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.chat-toggle { transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
.chat.chat-recolhido .chat-toggle { opacity: 0; visibility: hidden; transform: translateY(16px); }
.chat-panel {
  width: min(360px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--navy);
  border: 1px solid var(--navy);
  box-shadow: 0 12px 32px rgba(25, 25, 112, 0.22);
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--navy);
  color: var(--paper);
}
.chat-id { display: flex; align-items: center; gap: 12px; }
.chat-id strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; }
.chat-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--paper);
  border: 0;
  cursor: pointer;
}
.chat-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 16px; }
.chat-pergunta {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.chat-opts { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chat-opts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--navy);
  font-size: 16px;
  font-weight: 500;
}
.chat-opts a:hover { background: #fff; }
.chat-note { margin: 0; font-size: 13px; line-height: 1.5; }
.chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  background: var(--navy);
  color: var(--paper);
  border: 1px solid var(--paper);
  font: 600 17px var(--sans);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(25, 25, 112, 0.28);
}
.chat-toggle:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; box-shadow: 0 0 0 6px var(--navy); }

/* ---------- Aviso de cookies ---------- */
.aviso-cookies {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--paper);
  border-top: 1px solid var(--navy);
  box-shadow: 0 -8px 24px rgba(25, 25, 112, 0.12);
}
.aviso-cookies[hidden] { display: none; }
.aviso-inner {
  max-width: calc(1200px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.aviso-inner p { flex: 1 1 420px; margin: 0; font-size: 15px; line-height: 1.5; }
.aviso-inner p a { text-decoration: underline; text-underline-offset: 3px; }
.aviso-botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.aviso-botoes .btn { border: 0; font-family: var(--sans); cursor: pointer; }
.com-aviso .chat { bottom: calc(var(--altura-aviso, 0px) + 16px); }

/* ---------- Tablet e celular ---------- */
@media (max-width: 899px) {
  /* Cabeçalho em duas linhas: marca + WhatsApp em cima, navegação embaixo */
  .header-inner { gap: 0 16px; padding: 8px var(--gutter); }
  .header-whatsapp { padding: 0 14px; }
  .nav { order: 3; width: 100%; gap: 0 22px; }
  .menu-areas-lista { left: 0; }
  /* Os links internos (#...) param abaixo do cabeçalho, que ocupa duas linhas */
  html { scroll-padding-top: 132px; }
  /* Ao rolar para baixo, o cabeçalho sai de cena; ao rolar para cima, volta */
  .site-header.cabecalho-oculto { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .chat-toggle { transition: none; }
}
@media (max-width: 599px) {
  .artigo { padding: 20px 0; gap: 8px 20px; }
  .artigo-n { flex-basis: 32px; }
  .area-card { padding: 22px 20px 18px; }
  .areas-compl .area-card { padding: 16px 20px; }
  .area-card p, .metodo p { font-size: 17px; }
  .chamada { margin-top: 40px; }
}
@media (max-width: 380px) {
  /* Telas muito estreitas: textos mais curtos no cabeçalho (o nome completo continua para leitores de tela) */
  .brand-name span,
  .rotulo-longo {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media print {
  .skip, .site-header, .chat, .site-footer, .chamada, .artigos, .mais-areas, .sumario, .filtros, .aviso-cookies { display: none !important; }
  body { background: #fff; }
}
