/* =========================================================
   Pontes & Araújo — Advogadas · Braga
   Sistema de design derivado do logótipo entregue (vinho, rosa, papel)
   ========================================================= */

/* ---- Fontes auto-alojadas (guia §7.2 — sem chamadas a CDN) ---- */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --papel-50: #F8F1F0;
  --papel-200: #E9D9D9;
  --tinta-900: #2B2125;
  --vinho-700: #813545;
  --vinho-800: #6D2C3A;   /* hover do vinho-700 */
  --rosa-300: #D9AEB0;
  --rosa-500: #BE8A8C;    /* SÓ para "a linha" (regra de contenção do guia §4.2) */
  --nota: #6F5A60;   /* notas pendentes — AA sobre papel-50 */
  --rosa-claro: #EFD3D6;  /* texto secundário sobre vinho-700 */

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  /* Escala tipográfica 13/17/22/32/48/68 (§4.3) */
  --t13: 0.8125rem;
  --t17: 1.0625rem;
  --t22: 1.375rem;
  --t32: 2rem;
  --t48: 3rem;
  --t68: 4.25rem;

  --pad-sec: clamp(72px, 10vw, 120px);   /* respiração das secções (§4.4) */
  --rail-left: max(calc((100vw - 1200px) / 2), 6vw);
}

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

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

body {
  margin: 0;
  background: var(--papel-50);
  color: var(--tinta-900);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;             /* 16px móvel */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

@media (min-width: 768px) {
  body { font-size: var(--t17); }   /* 17px desktop */
}

img { max-width: 100%; height: auto; display: block; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.5rem, 1.1rem + 4.6vw, var(--t68)); }
.h1-interior { font-size: clamp(2.125rem, 1.3rem + 2.8vw, var(--t48)); }
h2 { font-size: clamp(1.75rem, 1.45rem + 1vw, var(--t32)); }
h1, h2 { text-wrap: balance; }

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: var(--t22);
  line-height: 1.3;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { padding-left: 1.25em; }
main li::marker { color: var(--rosa-300); }

code {
  font-size: 0.9em;
  background: #F2E6E6;
  padding: 0 0.35em;
  border-radius: 2px;
}

a {
  color: var(--vinho-700);
  text-decoration: underline;
  text-decoration-color: var(--rosa-300);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease, color 150ms ease;
  touch-action: manipulation;
}
a:hover { text-decoration-color: var(--vinho-700); }

:focus-visible {
  outline: 2px solid var(--vinho-700);
  outline-offset: 2px;
}

::selection { background: var(--rosa-300); color: var(--tinta-900); }

.wrap {
  width: min(1200px, 100% - 12vw);
  margin-inline: auto;
}

/* No desktop o conteúdo principal afasta-se da linha de latão */
@media (min-width: 1000px) {
  main .wrap { padding-left: 56px; }
}

/* ---- Utilidades ---- */
.rotulo {
  display: block;
  font-size: var(--t13);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vinho-700);
  margin-bottom: 16px;
}

.pendente {
  font-style: italic;
  color: var(--nota);
}
.pendente-claro { color: var(--rosa-claro); }

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  background: var(--vinho-700);
  color: var(--papel-50);
  font-family: var(--sans);
  font-size: var(--t17);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 150ms ease;
  touch-action: manipulation;
}
.botao:hover { background: var(--vinho-800); }
.botao:active { background: #5A2430; }

.saltar {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--vinho-700);
  color: var(--papel-50);
  padding: 12px 20px;
  z-index: 200;
  text-decoration: none;
}
.saltar:focus { left: 16px; top: 16px; }

/* ---- Intro (§4.5) — só se o <html> tiver .com-intro ---- */
#intro { display: none; }
.com-intro #intro {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--papel-50);
  opacity: 1;
  transition: opacity 250ms ease;
}
#intro.some { opacity: 0; pointer-events: none; }
#intro img {
  width: min(200px, 44vw);
  height: auto;
  opacity: 0;
  transform: scale(0.96);
}
@media (prefers-reduced-motion: no-preference) {
  #intro img { transition: opacity 500ms ease, transform 900ms cubic-bezier(0.2, 0.6, 0.3, 1); }
}
#intro.mostra img { opacity: 1; transform: none; }

/* ---- "A linha" — assinatura (§4.4) ---- */
.linha {
  position: absolute;
  top: 77px;                 /* recalculado por JS a partir do cabeçalho */
  left: var(--rail-left);
  width: 1px;
  height: 0;
  background: var(--rosa-500);
  pointer-events: none;
  z-index: 1;
  display: none;
}
@media (min-width: 1000px) {
  .linha { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .linha { transition: height 300ms ease-out; }
}

/* ---- Cabeçalho ---- */
.cabecalho {
  padding: 20px 0;
  border-bottom: 1px solid var(--papel-200);
  background: var(--papel-50);
  position: relative;
  z-index: 10;
}
.cabecalho-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.marca {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--tinta-900);
}
.marca-mono { height: 48px; width: auto; flex: none; }
.marca-nome {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: var(--vinho-700);
}

/* ---- Seletor de idioma ---- */
.idiomas {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: var(--t13);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: none;
}
.idiomas span,
.idiomas a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}
.idiomas span { color: var(--tinta-900); font-weight: 600; }
.idiomas a { color: var(--nota); text-decoration: none; }
.idiomas a:hover { color: var(--vinho-700); text-decoration: underline; }
/* Globo: diz que aquilo é o controlo de idioma. A etiqueta ao lado (PT/EN)
   diz qual é o idioma — com dois idiomas, um toque basta e não há menu. */
.idiomas::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background-color: var(--nota);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.25%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%226.35%22%2F%3E%3Cellipse%20cx%3D%228%22%20cy%3D%228%22%20rx%3D%222.65%22%20ry%3D%226.35%22%2F%3E%3Cpath%20d%3D%22M1.65%208h12.7%22%2F%3E%3Cpath%20d%3D%22M3%204.5h10M3%2011.5h10%22%2F%3E%3C%2Fsvg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.25%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%226.35%22%2F%3E%3Cellipse%20cx%3D%228%22%20cy%3D%228%22%20rx%3D%222.65%22%20ry%3D%226.35%22%2F%3E%3Cpath%20d%3D%22M1.65%208h12.7%22%2F%3E%3Cpath%20d%3D%22M3%204.5h10M3%2011.5h10%22%2F%3E%3C%2Fsvg%3E") center / 16px 16px no-repeat;
}
.idiomas span + a::before {
  content: "";
  border-left: 1px solid var(--papel-200);
  align-self: center;
  height: 14px;
  margin-right: 8px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav ul a {
  display: inline-block;
  padding: 10px 0;
  font-weight: 500;
  font-size: 1rem;
  color: var(--tinta-900);
  text-decoration: none;
}
.nav ul a:hover { color: var(--vinho-700); }
.nav ul a[aria-current="page"] {
  color: var(--vinho-700);
  text-decoration: underline;
  text-decoration-color: var(--vinho-700);
  text-underline-offset: 8px;
}
.botao-nav { min-height: 44px; padding: 0.6rem 1.4rem; font-size: 1rem; }

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--papel-200);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: var(--t13);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta-900);
  cursor: pointer;
  touch-action: manipulation;
}

@media (max-width: 999px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: var(--papel-50);
    border-bottom: 1px solid var(--papel-200);
    padding: 16px 6vw 32px;
  }
  .nav.aberta {
    display: flex;
    box-shadow: 0 28px 32px -24px rgba(43, 33, 37, 0.25);
  }
  .nav ul { flex-direction: column; gap: 0; width: 100%; }
  .nav ul a { display: block; padding: 12px 0; font-size: var(--t17); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* Em ecrãs estreitos o cabeçalho não tem espaço para marca + PT/EN + menu:
   mostra-se só a ligação para o outro idioma, que é o que serve de alternador. */
@media (max-width: 460px) {
  .cabecalho-inner { gap: 12px; }
  /* O nome sobrepunha-se ao seletor (19px a 360, 47px a 320): fica o monograma,
     que já é a marca e continua a ligar à página inicial. */
  .cabecalho .marca-nome { display: none; }
  .idiomas span[aria-current] { display: none; }
  .idiomas span + a::before { content: none; }
}

/* ---- Secções ---- */
.sec { padding-block: var(--pad-sec); }
.sec-hairline { border-top: 1px solid var(--papel-200); }

/* ---- Herói (home) ---- */
.hero {
  position: relative;
  isolation: isolate;
  background: #F0E1E1 center right / cover no-repeat;
  border-bottom: 1px solid var(--papel-200);
  padding-block: clamp(96px, 14vw, 176px);
}
/* Media queries mutuamente exclusivas: o browser descarrega só um dos ficheiros */
@media (max-width: 899.98px) {
  .hero {
    background-image: url("/assets/img/hero-escritorio-1200.webp");
    /* No retrato, "center right" cortaria só uma manga — 52% mantém as mãos e os documentos */
    background-position: 52% 50%;
  }
}
@media (min-width: 900px) {
  .hero { background-image: url("/assets/img/hero-escritorio.webp"); }
}
/* Véu de papel sobre a fotografia — o texto assenta em papel, a imagem respira à direita */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(248, 241, 240, 0.92) 0%,
    rgba(248, 241, 240, 0.86) 62%,
    rgba(248, 241, 240, 0.62) 100%
  );
}
@media (min-width: 900px) {
  .hero::before {
    background: linear-gradient(
      100deg,
      rgba(248, 241, 240, 0.94) 0%,
      rgba(248, 241, 240, 0.88) 36%,
      rgba(248, 241, 240, 0.5) 60%,
      rgba(248, 241, 240, 0.1) 100%
    );
  }
}
.hero .rotulo { margin-bottom: 20px; }
/* o rótulo vive dentro do h1 (palavras-chave no título principal) mas mantém o aspeto de rótulo */
.hero h1 .rotulo { font-family: var(--sans); line-height: 1.4; letter-spacing: 0.08em; text-wrap: wrap; }
.hero h1 { margin-bottom: 0.4em; }
.hero-lede {
  font-size: clamp(1.125rem, 1rem + 0.7vw, var(--t22));
  line-height: 1.5;
  max-width: 44ch;
  margin-bottom: 40px;
}

/* ---- Faixa com fotografia por trás do texto (intro do Sobre) ----
   Mesmo princípio do herói: a fotografia sangra, o véu de papel garante
   que o texto assenta em superfície legível. */
.faixa-foto {
  position: relative;
  isolation: isolate;
  background: #F0E1E1 center / cover no-repeat;
  background-image: url("/assets/img/braga-jardim-1200.webp");
  border-bottom: 1px solid var(--papel-200);
}
@media (min-width: 900px) {
  .faixa-foto { background-image: url("/assets/img/braga-jardim.webp"); }
}
.faixa-foto::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(248, 241, 240, 0.93) 0%,
    rgba(248, 241, 240, 0.9) 70%,
    rgba(248, 241, 240, 0.78) 100%
  );
}
@media (min-width: 900px) {
  .faixa-foto::before {
    background: linear-gradient(
      100deg,
      rgba(248, 241, 240, 0.95) 0%,
      rgba(248, 241, 240, 0.93) 46%,
      rgba(248, 241, 240, 0.55) 72%,
      rgba(248, 241, 240, 0.06) 100%
    );
  }
}
/* O texto ocupa a coluna da esquerda; a fotografia respira à direita */
.faixa-foto-texto { max-width: 60ch; }

/* ---- Grelhas ---- */
.grelha-2 { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) {
  .grelha-2 { grid-template-columns: 5fr 7fr; gap: 72px; }
}

.grelha-perfil { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) {
  .grelha-perfil { grid-template-columns: 4fr 7fr; gap: 72px; }
}
/* Nos perfis, os subtítulos são etiquetas editoriais — não competem com o nome */
.grelha-perfil h3 {
  font-size: var(--t13);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vinho-700);
  margin: 2.25em 0 0.5em;
}
.grelha-perfil h2 { margin-bottom: 0.15em; }

/* ---- Fotografias pendentes ---- */
.foto-pendente {
  margin: 0;
  background: #F2E6E6;
  border: 1px dashed #DCC6C7;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}
.foto-pendente figcaption {
  font-size: var(--t13);
  max-width: 34ch;
  line-height: 1.5;
}
/* Retratos entregues pelas clientes — mesmo duotone do herói */
.retrato { margin: 0; }
.retrato img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--papel-200);
}

.r4x5 { aspect-ratio: 4 / 5; }
.r16x9 { aspect-ratio: 16 / 9; }
.r3x2 { aspect-ratio: 3 / 2; }

/* ---- Lista de áreas (hairlines, sem grelha de ícones — §4.1) ---- */
.lista-areas { list-style: none; margin: 0; padding: 0; }
.lista-areas li {
  border-top: 1px solid var(--papel-200);
  padding: 28px 0;
  display: grid;
  gap: 6px;
}
.lista-areas li:last-child { border-bottom: 1px solid var(--papel-200); }
@media (min-width: 768px) {
  .lista-areas li { grid-template-columns: minmax(220px, 1fr) 2fr; gap: 32px; }
}
.lista-areas h3 { margin: 0; font-size: var(--t17); }
.lista-areas p { margin: 0; }

/* ---- Blocos de área (página áreas de prática) ---- */
.area {
  border-top: 1px solid var(--papel-200);
  padding: 56px 0;
  display: grid;
  gap: 16px;
}
.area:last-of-type { border-bottom: 1px solid var(--papel-200); }
@media (min-width: 900px) {
  .area { grid-template-columns: minmax(200px, 1fr) 2fr; gap: 64px; }
}
.area .rotulo { margin-bottom: 0; color: var(--nota); }
.area h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, var(--t32)); margin-bottom: 0.4em; }

/* ---- Equipa (home) ---- */
.equipa { display: grid; gap: 48px; }
@media (min-width: 768px) {
  .equipa { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.equipa h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t22); margin: 20px 0 2px; }
.equipa .cargo { color: var(--nota); font-size: 0.9375rem; margin-bottom: 8px; }

/* ---- Contactos ---- */
.grelha-contactos { display: grid; gap: 56px; align-items: start; }
@media (min-width: 900px) {
  .grelha-contactos { grid-template-columns: 5fr 6fr; gap: 88px; }
}
.dado-contacto { margin-bottom: 28px; }
.dado-contacto .rotulo { margin-bottom: 6px; }

/* ---- Mapa (carregado ao clique — guia §7.2/§7.5) ----
   O convite e o mapa partilham a mesma proporção: trocar um pelo outro
   não desloca o que está por baixo. */
.mapa { margin-top: 40px; }
.mapa-convite,
.mapa-frame {
  aspect-ratio: 16 / 9;
  min-height: 240px;
  border: 1px solid var(--papel-200);
}
.mapa-convite {
  background: #F2E6E6;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}
.mapa-morada {
  font-family: var(--serif);
  font-size: var(--t17);
  margin: 0;
}
.mapa-nota {
  font-size: var(--t13);
  color: var(--nota);
  max-width: 42ch;
  line-height: 1.5;
  margin: 0;
}
.mapa-externo { font-size: var(--t13); margin: 0; }
.mapa-frame { display: block; background: #F2E6E6; }
.mapa-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.mapa-frame:focus-visible { outline: 2px solid var(--vinho-700); outline-offset: 2px; }

/* ---- Aviso de cookies (primeira visita) ---- */
.cookies-aviso {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 680px;
  margin-inline: auto;
  padding: 24px;
  background: var(--papel-50);
  border: 1px solid var(--papel-200);
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(43, 33, 37, 0.16);
}
.cookies-aviso p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0 0 18px;
}
.cookies-aviso-accoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.cookies-aviso-accoes a { font-size: var(--t13); }

/* Recusar tem de ser tão visível como aceitar (Lei 41/2004, guia §7.2):
   mesmo tamanho e mesmo peso, muda só o preenchimento. */
.botao-secundario {
  background: transparent;
  color: var(--vinho-700);
  border: 1px solid var(--vinho-700);
}
.botao-secundario:hover { background: rgba(129, 53, 69, 0.08); }
.botao-secundario:active { background: rgba(129, 53, 69, 0.16); }

/* ---- Painel de cookies (aberto pelo rodapé) ---- */
.cookies {
  width: min(560px, calc(100% - 32px));
  padding: 32px;
  background: var(--papel-50);
  color: var(--tinta-900);
  border: 1px solid var(--papel-200);
  border-radius: 2px;
}
.cookies::backdrop { background: rgba(43, 33, 37, 0.5); }
.cookies h2 {
  font-size: var(--t22);
  margin: 0 0 12px;
}
.cookies h3 {
  font-family: var(--sans);
  font-size: var(--t17);
  font-weight: 600;
  margin: 24px 0 6px;
}
.cookies p { font-size: 0.9375rem; line-height: 1.6; margin: 0 0 8px; }
.cookies .cookies-opcao { margin-top: 14px; }
.cookies .cookies-opcao label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  cursor: pointer;
}
.cookies .cookies-opcao input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--vinho-700);
}
.cookies .cookies-nota { color: var(--nota); font-size: var(--t13); margin-top: 20px; }
.cookies .botao { margin-top: 24px; }

/* Utilitário: texto só para leitores de ecrã */
.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Formulário ---- */
.campo { margin-bottom: 24px; }
.campo label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}
.campo input,
.campo textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--tinta-900);
  background: #FFFFFF;
  border: 1px solid #DCC6C7;
  border-radius: 2px;
}
.campo textarea { min-height: 140px; resize: vertical; }
.campo input:focus-visible,
.campo textarea:focus-visible { border-color: var(--vinho-700); }
.ajuda {
  font-size: var(--t13);
  color: var(--nota);
  margin-top: 6px;
  display: block;
}
.consentimento {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
  margin-bottom: 28px;
}
.consentimento input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--vinho-700);
  flex: none;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.aviso-form {
  display: none;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--papel-200);
  background: #F2E6E6;
  font-size: 0.9375rem;
}
.aviso-form.visivel { display: block; }

/* ---- Faixa CTA ---- */
.faixa-cta { text-align: left; }
.faixa-cta p { font-size: var(--t22); font-family: var(--serif); max-width: 40ch; }

/* ---- Rubrica (artigos) ---- */
.lista-artigos { list-style: none; margin: 48px 0 0; padding: 0; }
.lista-artigos li { border-top: 1px solid var(--papel-200); padding: 36px 0; }
.lista-artigos li:last-child { border-bottom: 1px solid var(--papel-200); }
.artigo-data {
  display: block;
  font-size: var(--t13);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nota);
  margin-bottom: 10px;
}
.lista-artigos h2 { font-size: var(--t22); margin-bottom: 0.35em; }
.lista-artigos h2 a { color: var(--tinta-900); text-decoration: none; }
.lista-artigos h2 a:hover { color: var(--vinho-700); }
.lista-artigos p { margin-bottom: 0.5em; }

/* Artigo: alinhado com a grelha do cabeçalho (mesma margem esquerda da home),
   coluna de leitura larga e letra maior que o resto do site — é texto para ler de seguida */
.artigo .wrap > * { max-width: 800px; }
.artigo .wrap > h1 { max-width: 1000px; }
.artigo :where(p, li, dd) {
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem);   /* 17px móvel → 20px desktop */
  line-height: 1.75;
  max-width: none;
}
.artigo :where(p) { margin-bottom: 1.15em; }
.artigo :where(li) { margin-bottom: 0.35em; }
.artigo h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, var(--t32)); margin-top: 2.2em; }
.artigo-rodape { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--papel-200); }

/* ---- Rubrica: componentes do artigo ---- */
/* Citações: filete de 1px em --rosa-500, o mesmo de «a linha» */
.artigo blockquote {
  margin: 0;
  padding-left: 24px;
  border-left: 1px solid var(--rosa-500);
}
.artigo blockquote p {
  font-family: var(--serif);
  font-size: var(--t22);
  line-height: 1.45;
  color: var(--vinho-800);
}
.artigo-citacao { margin: 2em 0; }
.artigo-citacao figcaption {
  margin-top: 12px;
  padding-left: 25px;
  font-size: var(--t13);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nota);
}

/* Mito de abertura (série «Ipsis mitos», artigos da Bruna) */
.artigo-mito { margin: 2em 0 2.5em; }   /* afasta-o da linha da data */
.artigo-mito blockquote p {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, var(--t32));
  line-height: 1.25;
}
.artigo-mito > p {                       /* «Será assim?…», alinhado com o texto da citação */
  margin-top: 16px;
  padding-left: 25px;
  font-family: var(--serif);
  color: var(--vinho-700);
}

/* Frase-chave; com <mark> imita o realce rosa dos carrosséis */
.artigo-destaque {
  margin: 1.5em 0;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);   /* acima do texto corrido (20px) */
  line-height: 1.4;
  color: var(--vinho-800);
}
.artigo-destaque mark {
  padding: 0.05em 0.25em;
  background: var(--rosa-claro);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Caixa «Traduzindo o juridiquês»: papel rosado, sem sombra */
.artigo-caixa {
  margin: 2.5em 0;
  padding: clamp(20px, 4vw, 32px);
  background: #F2E6E6;            /* o mesmo tom do <code> */
  border-radius: 2px;
}
.artigo-caixa .artigo-destaque { margin-top: 0; }
.artigo-caixa > :last-child { margin-bottom: 0; }

/* Ficha do caso */
.artigo-ficha {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 28px;
  margin: 1.5em 0 2em;
  padding: 20px 0;
  border-top: 1px solid var(--papel-200);
  border-bottom: 1px solid var(--papel-200);
}
.artigo-ficha dt {
  padding-top: 0.3em;
  font-size: var(--t13);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vinho-700);
}
.artigo-ficha dd { margin: 0; max-width: 62ch; }
@media (max-width: 560px) {
  .artigo-ficha { grid-template-columns: 1fr; gap: 4px; }
  .artigo-ficha dd { margin-bottom: 12px; }
}

/* Rodapé do artigo: base legal e aviso em tom de nota */
.artigo-nota { color: var(--nota); }
.artigo-assinatura { margin: 1.5em 0; }
.artigo-data a { color: inherit; }

/* ---- Páginas legais ---- */
.legal .wrap { max-width: 880px; }
@media (min-width: 1000px) { .legal .wrap { padding-left: 56px; } }
.legal h2 { font-family: var(--sans); font-weight: 600; font-size: var(--t22); margin-top: 2.5em; }
.legal ul { margin-bottom: 1em; }

/* ---- 404 ---- */
.pagina-404,
.pagina-simples {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--pad-sec);
}
.pagina-404 p,
.pagina-simples p { margin-inline: auto; }
/* Páginas centradas não têm "a linha" — sem o recuo do rail */
@media (min-width: 1000px) {
  .pagina-404 .wrap,
  .pagina-simples .wrap { padding-left: 0; }
}
.pagina-404 img,
.pagina-simples img { width: 96px; height: auto; margin-inline: auto; margin-bottom: 28px; }

/* ---- Rodapé ---- */
.rodape {
  background: var(--vinho-700);
  color: var(--papel-50);
  padding: 72px 0 32px;
  position: relative;
  z-index: 2;
}
.rodape a { color: var(--papel-50); text-decoration-color: var(--rosa-300); }
.rodape a:hover { text-decoration-color: var(--papel-50); }
.rodape :focus-visible { outline-color: var(--papel-50); }
.rodape .rotulo { color: var(--rosa-300); }
.rodape-grelha { display: grid; gap: 48px; }
@media (min-width: 900px) {
  .rodape-grelha { grid-template-columns: 5fr 3fr 4fr; gap: 64px; }
}
.rodape .marca { color: var(--papel-50); margin-bottom: 16px; }
.rodape .marca-nome { color: var(--papel-50); }
.rodape-lede { color: var(--rosa-claro); max-width: 34ch; }
.rodape nav ul { list-style: none; margin: 0 0 28px; padding: 0; }
.rodape nav li { margin-bottom: 4px; }
.rodape nav a { display: inline-block; padding: 6px 0; text-decoration: none; }
.rodape nav a:hover { text-decoration: underline; }
.rodape-contactos p { margin-bottom: 4px; }
.rodape-legal {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 241, 240, 0.18);
  font-size: var(--t13);
  color: var(--rosa-claro);
}
.rodape-legal p { max-width: none; margin-bottom: 6px; }
.rodape-legal a { color: var(--papel-50); }

/* ---- Movimento reduzido (§4.5 / §4.7) ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
