/* ============================================================
   Páginas de artigo — identidade do site principal
   (preto + prata, Playfair Display + Inter), otimizada para
   leitura longa. Usada pelas 4 páginas em artigos/.
   ============================================================ */

:root {
  --bg: #060607;
  --bg-soft: #0c0c0e;
  --ink: #f4f2ee;
  --muted: #a3a099;
  --silver: #cfcbc2;
  --line: rgba(244, 242, 238, 0.10);
  --line-strong: rgba(244, 242, 238, 0.22);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --wa: #22c05b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--silver); color: var(--bg); }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 5%;
  background: rgba(6, 6, 7, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topo__logo img { height: 52px; width: auto; }
.topo__voltar {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); transition: color 0.3s;
}
.topo__voltar:hover { color: var(--ink); }

/* ---------- Cabeçalho do artigo ---------- */
.cabecalho { max-width: 780px; margin-inline: auto; padding: clamp(2.4rem, 6vw, 4rem) 5% 0; }
.cabecalho__tag {
  display: inline-block;
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--silver); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 0.3rem 0.85rem; margin-bottom: 1.2rem;
}
.cabecalho h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.13; margin-bottom: 1.1rem;
}
.cabecalho__autor {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem;
  color: var(--muted); font-size: 0.85rem;
  padding-bottom: 1.8rem; border-bottom: 1px solid var(--line);
}
.cabecalho__autor strong { color: var(--ink); font-weight: 500; }
.cabecalho__autor i { font-style: normal; opacity: 0.45; }

.capa { max-width: 980px; margin: clamp(1.8rem, 5vw, 2.8rem) auto 0; padding-inline: 5%; }
.capa img { width: 100%; border: 1px solid var(--line); }

/* ---------- Corpo do texto ---------- */
.corpo { max-width: 720px; margin-inline: auto; padding: clamp(2.2rem, 6vw, 3.4rem) 5% 0; }
.corpo > p, .corpo > ul, .corpo > ol { margin-bottom: 1.35rem; color: #ddd9d2; }
.corpo h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2;
  margin: 2.6rem 0 1rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.corpo h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.22rem; margin: 1.9rem 0 0.6rem; color: var(--silver);
}
.corpo strong { color: var(--ink); font-weight: 500; }
.corpo em { font-style: italic; color: var(--silver); }
.corpo ul, .corpo ol { padding-left: 1.4rem; }
.corpo li { margin-bottom: 0.6rem; color: #ddd9d2; }
.corpo li::marker { color: var(--silver); }
.corpo a { color: var(--silver); text-decoration: underline; text-underline-offset: 3px; }
.corpo a:hover { color: var(--ink); }

/* citação de destaque */
.destaque-lei {
  border-left: 2px solid var(--silver);
  padding: 0.2rem 0 0.2rem 1.3rem;
  margin: 1.9rem 0;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.12rem; line-height: 1.55; color: var(--ink);
}

/* fonte citada */
.fonte { font-size: 0.8rem; color: var(--muted); margin-top: -0.6rem; margin-bottom: 1.6rem; }

/* quadro comparativo (insalubridade × periculosidade) */
.comparativo {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin: 1.9rem 0 2.2rem;
}
.comparativo__col { background: var(--bg-soft); padding: 1.4rem 1.4rem 1.5rem; }
.comparativo__rot {
  display: block; font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--silver); margin-bottom: 0.7rem;
}
.comparativo__num {
  font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1;
  color: var(--ink); margin-bottom: 0.6rem;
}
.comparativo__leg { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.comparativo__leg strong { color: var(--ink); font-weight: 500; }

/* lista de percentuais / frações (progressão, livramento) */
.corpo ul.percentuais {
  list-style: none; padding-left: 0;
  margin: 1.7rem 0 2.1rem;
  border-top: 1px solid var(--line);
}
.percentuais li {
  display: flex; gap: 1.1rem; align-items: baseline;
  margin: 0; padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.percentuais b {
  flex: 0 0 3.6rem;
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.2rem; color: var(--ink); line-height: 1.3;
}
.percentuais span { font-size: 0.93rem; color: #ddd9d2; line-height: 1.6; }

/* ---------- Chamada no meio do texto ---------- */
.chamada {
  max-width: 720px; margin: 2.6rem auto; padding: 1.7rem 1.6rem;
  border: 1px solid var(--line-strong);
  background: linear-gradient(115deg, rgba(207, 203, 194, 0.06), transparent);
  text-align: center;
}
.chamada h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.4rem; }
.chamada p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.9rem 1.8rem; border-radius: 999px;
  transition: transform 0.4s var(--ease-premium), box-shadow 0.4s, background 0.3s;
}
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { transform: scale(1.02) translateY(-1px); box-shadow: 0 10px 34px -12px rgba(34, 192, 91, 0.7); }
.btn--solid { background: linear-gradient(120deg, #f6f4f0, #cfcbc2); color: #0a0a0b; }
.btn--solid:hover { transform: scale(1.02) translateY(-1px); box-shadow: 0 8px 40px -8px rgba(246, 244, 240, 0.35); }

/* ---------- Assinatura ---------- */
.assinatura {
  max-width: 720px; margin: 3rem auto 0; padding: 1.8rem 5% 0;
  border-top: 1px solid var(--line); text-align: center;
}
.assinatura img { height: 84px; width: auto; margin: 0 auto 1rem; }
.assinatura__nome { font-family: var(--font-display); font-size: 1.35rem; }
.assinatura__oab { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); margin-bottom: 0.9rem; }
.assinatura p { color: var(--muted); font-size: 0.9rem; max-width: 52ch; margin-inline: auto; }

/* ---------- Outros artigos ---------- */
.outros { max-width: 980px; margin: clamp(3rem, 8vw, 5rem) auto 0; padding: 0 5%; }
.outros h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.6rem;
  text-align: center; margin-bottom: 1.8rem;
}
.outros__lista { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.outros__item {
  border: 1px solid var(--line); padding: 1.3rem 1.4rem;
  transition: border-color 0.4s, transform 0.4s var(--ease-premium);
}
.outros__item:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.outros__item span {
  display: block; font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--silver); margin-bottom: 0.5rem;
}
.outros__item h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; line-height: 1.25; }

/* ---------- Rodapé ---------- */
.rodape {
  margin-top: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--line);
  background: #0a0a0c;
  padding: 2.6rem 5% 3rem;
  text-align: center; color: var(--muted); font-size: 0.85rem;
}
.rodape a { color: var(--muted); transition: color 0.3s; }
.rodape a:hover { color: var(--ink); }
.rodape__nome { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.rodape__oab { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver); margin-bottom: 0.6rem; }
.rodape__nota { font-size: 0.72rem; opacity: 0.78; max-width: 60ch; margin: 0.9rem auto 0; }

/* ---------- WhatsApp fixo ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 8px 26px -6px rgba(34, 192, 91, 0.7);
}

@media (min-width: 620px) {
  .comparativo { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .outros__lista { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .outros__item:hover, .btn:hover { transform: none; }
}

.rodape .foot__ico { display: inline-flex; align-items: center; gap: 0.42rem; }
.rodape .foot__ico svg { flex: none; }
