/* Fernanda Meira — Advocacia Criminal Federal
   Mesma identidade do site original: Obsidian & Wine, Cormorant Garamond + DM Sans. */

:root {
  color-scheme: dark;
  --obsidian: #0D0D0F;
  --onyx: #1A1A1E;
  --onyx-light: #222226;
  --wine: #8B3A3A;
  --wine-light: #A64B4B;
  --wine-dark: #6E2E2E;
  --ivory: #E8E0D8;
  --ivory-warm: #DDD5CC;
  --taupe: #4A4045;
  --taupe-light: #5A5055;
  --text-primary: #E8E0D8;
  --text-secondary: #A09892;
  --text-muted: #7A7275;
  --rule: rgba(139, 58, 58, 0.25);
  --rule-soft: rgba(255, 255, 255, 0.06);
  --serif: 'Cormorant Garamond', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 44rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  background: var(--obsidian);
  color: var(--text-primary);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--obsidian); }
::-webkit-scrollbar-thumb { background: var(--taupe); border-radius: 3px; }
::selection { background: var(--wine); color: var(--ivory); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--wine-light); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; background: var(--wine); color: var(--ivory); padding: 0.6rem 1rem; z-index: 300; font-size: 0.85rem; }
.skip:focus { left: 0; }

/* ---------- Tipos ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ivory); text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.25; }
h3 { font-weight: 500; font-size: 1.3rem; line-height: 1.3; }
h1 em, h2 em { font-style: italic; color: var(--wine); font-weight: inherit; }

.eyebrow {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--wine); font-weight: 400; margin-bottom: 2rem;
}
.ref { font-size: 0.74rem; color: var(--text-muted); letter-spacing: 0.04em; line-height: 1.6; }
.lede { color: var(--text-secondary); font-size: 0.98rem; line-height: 1.85; max-width: 40rem; }
.lede a, .text a, .faq a, .panel a:not(.more), .prose a, .sheet dd a, .author a, .rules a {
  color: var(--ivory); text-decoration: underline; text-decoration-color: var(--wine); text-underline-offset: 0.2em;
}
.lede a:hover, .text a:hover, .faq a:hover, .panel a:not(.more):hover, .prose a:hover, .sheet dd a:hover, .author a:hover { text-decoration-color: var(--wine-light); color: #fff; }

/* ---------- Estrutura ---------- */
.wrap { max-width: 84rem; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section--alt { background: var(--onyx); }
.section--alt::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(139, 58, 58, 0.04) 0%, transparent 50%); pointer-events: none; }
.section > * { position: relative; }
.head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; }
.head h2 + .lede { margin-top: 1.4rem; }
.head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; max-width: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 2rem;
  background: var(--wine); color: var(--ivory);
  text-decoration: none; border: 1px solid var(--wine);
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500;
  transition: all 0.3s ease; cursor: pointer;
}
.btn:hover { background: var(--wine-light); border-color: var(--wine-light); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(139, 58, 58, 0.3); }
.btn svg { width: 15px; height: 15px; transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { background: transparent; border-color: var(--wine); color: var(--wine-light); box-shadow: none; }
.btn--ghost:hover { background: var(--wine); color: var(--ivory); box-shadow: none; }
.more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.74rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400;
  color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease;
}
.more::after { content: '→'; transition: transform 0.3s ease; }
.more:hover, a:hover > .more { color: var(--ivory); }
a:hover > .more::after, a.more:hover::after { transform: translateX(3px); }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: calc(1.5rem + env(safe-area-inset-top, 0px)) var(--gutter) 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  transition: all 0.5s ease; border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.solid {
  background: rgba(13, 13, 15, 0.94);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding-top: calc(1rem + env(safe-area-inset-top, 0px)); padding-bottom: 1rem;
  border-bottom-color: rgba(139, 58, 58, 0.12);
}
.brand {
  font-family: var(--serif); font-weight: 500; font-size: 1.1rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--text-primary); text-decoration: none; white-space: nowrap;
}
.brand em { font-style: normal; color: var(--wine); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 400;
  transition: color 0.3s ease; position: relative; padding: 0.3rem 0;
}
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--wine); transition: width 0.3s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { padding: 0.6rem 1.6rem; font-size: 0.72rem; background: transparent; color: var(--wine-light); box-shadow: none; }
.nav-cta:hover { background: var(--wine); color: var(--ivory); transform: none; box-shadow: none; }

.menu-btn { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; margin-right: -10px; }
.menu-btn span { display: block; width: 22px; height: 1px; background: var(--text-primary); margin: 6px auto; transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-panel {
  position: fixed; inset: 0; z-index: 200; background: var(--obsidian);
  padding: calc(6.5rem + env(safe-area-inset-top, 0px)) var(--gutter) 3rem;
  display: none; flex-direction: column; overflow-y: auto;
}
.menu-open .menu-panel { display: flex; }
.menu-open { overflow: hidden; }
.menu-open .nav { z-index: 220; background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-panel a.item {
  font-family: var(--serif); font-size: 1.85rem; font-weight: 400; color: var(--text-primary);
  text-decoration: none; padding: 0.85rem 0; border-bottom: 1px solid var(--rule-soft);
}
.menu-panel a.item[aria-current="page"] { color: var(--wine-light); }
.menu-panel .btn { margin-top: 2rem; justify-content: center; }
.menu-panel .ref { margin-top: auto; padding-top: 2rem; }
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Hero (início), como no site original ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto;
  align-items: end; position: relative; overflow: hidden;
}
.hero-text { grid-column: 1; grid-row: 1; padding: 9rem 2rem 5rem var(--gutter); position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.8rem, 5vw, 5rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 2rem; }
.hero-sub { font-size: 1rem; color: var(--text-secondary); max-width: 28rem; line-height: 1.8; margin-bottom: 2.5rem; }
.hero-sub strong { color: var(--ivory); font-weight: 400; }
.hero-actions { display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.hero-photo { grid-column: 2; grid-row: 1 / span 2; position: relative; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; filter: brightness(0.85) contrast(1.05); }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--obsidian) 0%, rgba(13,13,15,0.7) 15%, rgba(13,13,15,0.1) 50%, transparent 100%); }
.hero-photo::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 30%; background: linear-gradient(to top, var(--obsidian), transparent); z-index: 1; }
.hero-facts {
  grid-column: 1; grid-row: 2; list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem;
  padding: 1.4rem 2rem 1.4rem var(--gutter);
  border-top: 1px solid var(--rule);
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-muted);
}
.hero-facts li { display: flex; align-items: center; gap: 0.6rem; }
.hero-facts li::before { content: ''; width: 18px; height: 1px; background: var(--wine); }
@media (max-width: 1024px) {
  .hero { display: block; min-height: 0; }
  .hero-photo { position: absolute; top: 0; left: 0; right: 0; height: 74svh; max-height: 46rem; }
  .hero-photo::before { display: none; }
  .hero-photo img { object-position: center 18%; }
  .hero-photo::after { background: linear-gradient(to top, var(--obsidian) 0%, rgba(13,13,15,0.9) 18%, rgba(13,13,15,0.25) 48%, rgba(13,13,15,0.2) 100%); }
  .hero-text { padding: min(56svh, 30rem) var(--gutter) 3rem; }
  .hero-facts { position: relative; z-index: 2; background: var(--obsidian); padding: 1.4rem var(--gutter); flex-direction: column; gap: 0.7rem; }
}
@media (max-width: 600px) { .hero h1 { font-size: clamp(2.1rem, 9.5vw, 3rem); } .hero-actions .btn { flex: 1 1 auto; justify-content: center; } }

/* ---------- Cabeçalho das páginas internas ---------- */
.page-hero {
  padding: calc(clamp(8.5rem, 16vw, 11rem) + env(safe-area-inset-top, 0px)) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--rule-soft);
  background: linear-gradient(160deg, rgba(139, 58, 58, 0.09) 0%, transparent 46%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.1; letter-spacing: -0.012em; max-width: 22ch; margin-bottom: 1.5rem; }
.page-hero--article h1 { max-width: 26ch; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.page-hero .lede { font-size: 1.05rem; max-width: 42rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin-bottom: 2rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.crumbs a { color: var(--text-secondary); text-decoration: none; }
.crumbs a:hover { color: var(--wine-light); }
.crumbs li + li::before { content: '/'; margin-right: 0.6rem; color: var(--taupe-light); }
.byline { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.06em; }
.byline a { color: var(--text-secondary); }

/* ---------- Abas (situações e fases) ---------- */
.tabs { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.tablist { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.tab {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--rule-soft); cursor: pointer; text-align: left;
  padding: 1.1rem 0.4rem 1.1rem 1rem; position: relative;
  font-family: var(--serif); font-size: 1.22rem; font-weight: 500; line-height: 1.3; color: var(--text-secondary);
  transition: color 0.3s ease, background 0.3s ease, padding 0.3s ease;
}
.tab::before { content: ''; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px; background: var(--wine); transform: scaleY(0); transition: transform 0.3s ease; }
.tab::after { content: '→'; font-family: var(--sans); font-size: 0.85rem; color: var(--wine-light); opacity: 0; transition: opacity 0.3s ease; }
.tab .n { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.2em; color: var(--text-muted); margin-right: 0.8rem; }
.tab:hover { color: var(--text-primary); }
.tab[aria-selected="true"] { color: var(--ivory); background: var(--onyx); padding-left: 1.4rem; }
.tab[aria-selected="true"]::before { transform: scaleY(1); }
.tab[aria-selected="true"]::after { opacity: 1; }
.section--alt .tab[aria-selected="true"] { background: var(--obsidian); }

.panel { border-top: 1px solid var(--rule); padding-top: 1.8rem; }
.panel + .panel { margin-top: 3rem; }
.js .panel + .panel { margin-top: 0; }
.js .panel:not([hidden]) { animation: rise 0.5s ease both; }
.panel h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 400; margin-bottom: 1rem; }
.panel > p { max-width: 42rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.85; }
.panel .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem 2.5rem; margin-top: 1.8rem; max-width: 46rem; }
.panel h4 { font-family: var(--sans); font-weight: 400; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--wine); margin-bottom: 1rem; }
.panel ol, .panel ul { list-style: none; counter-reset: step; }
.panel ol li { counter-increment: step; position: relative; padding: 0 0 0.9rem 2.4rem; font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); }
.panel ol li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: var(--serif); font-size: 1.1rem; color: var(--wine-light); }
.panel ul li { position: relative; padding: 0 0 0.8rem 1.4rem; font-size: 0.9rem; line-height: 1.7; color: var(--text-secondary); }
.panel ul li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 14px; height: 1px; background: var(--wine); }
.panel .foot { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--rule-soft); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.8rem 2rem; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.tabs--line { grid-template-columns: minmax(0, 1fr); gap: 0; }
.tabs--line .tablist { flex-direction: row; border-top: 0; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.tabs--line .tablist::-webkit-scrollbar { display: none; }
.tabs--line .tab { flex: 1 0 auto; width: auto; flex-direction: column; align-items: flex-start; gap: 0.5rem; border-bottom: 0; padding: 1rem 1.8rem 1.1rem 0; background: none !important; white-space: nowrap; font-size: 1.15rem; }
.tabs--line .tab::after { display: none; }
.tabs--line .tab::before { left: 0; right: 1.8rem; top: auto; bottom: -1px; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
.tabs--line .tab[aria-selected="true"] { padding-left: 0; }
.tabs--line .tab[aria-selected="true"]::before { transform: scaleX(1); }
.tabs--line .tab .n { display: block; margin: 0; }
.tabs--line .panel { border-top: 0; padding-top: 2.2rem; }
@media (max-width: 900px) {
  .tabs { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .tabs:not(.tabs--line) .tablist { flex-direction: row; border-top: 0; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tabs:not(.tabs--line) .tablist::-webkit-scrollbar { display: none; }
  .tabs:not(.tabs--line) .tab { flex: 0 0 auto; width: auto; border: 1px solid var(--rule); padding: 0.65rem 1rem; font-size: 1.02rem; white-space: nowrap; }
  .tabs:not(.tabs--line) .tab::before, .tabs:not(.tabs--line) .tab::after { display: none; }
  .tabs:not(.tabs--line) .tab[aria-selected="true"] { background: var(--wine); border-color: var(--wine); color: var(--ivory); padding-left: 1rem; }
}

/* ---------- Índice de matérias ---------- */
.index { list-style: none; border-top: 1px solid var(--rule); }
.index a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 0.4rem 2rem;
  padding: 1.3rem 0.3rem; border-bottom: 1px solid var(--rule-soft); text-decoration: none;
  transition: padding 0.3s ease, background 0.3s ease;
}
.index .t { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.2; color: var(--ivory); }
.index .arrow { color: var(--wine-light); transition: transform 0.3s ease; }
.index a:hover { padding-left: 1rem; background: linear-gradient(to right, rgba(139, 58, 58, 0.12), transparent 70%); }
.index a:hover .arrow { transform: translateX(5px); }
@media (max-width: 700px) {
  .index a { grid-template-columns: minmax(0, 1fr) auto; }
  .index .ref { grid-column: 1; grid-row: 2; }
  .index .arrow { grid-row: 1 / span 2; align-self: center; }
}

/* ---------- Faixa (área específica) ---------- */
.band {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center;
  padding: clamp(1.8rem, 3.5vw, 2.8rem); background: var(--onyx); border-left: 2px solid var(--wine);
  text-decoration: none; transition: background 0.3s ease;
}
.section--alt .band { background: var(--obsidian); }
.band:hover { background: var(--onyx-light); }
.band h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.6rem; }
.band p { max-width: 46rem; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.8; }
@media (max-width: 760px) { .band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Método (regras de trabalho) ---------- */
.method { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.method .head { position: sticky; top: 7rem; margin-bottom: 0; }
.rules { border-top: 1px solid var(--rule); }
.rules details { border-bottom: 1px solid var(--rule-soft); }
.rules summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 3rem minmax(0, 1fr) 1.5rem; align-items: baseline; gap: 0.5rem; padding: 1.4rem 0; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary .n { font-family: var(--serif); font-size: 1.2rem; color: rgba(139, 58, 58, 0.6); }
.rules summary .t { font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.25; color: var(--ivory); }
.rules summary .x, .faq summary .x { position: relative; width: 13px; height: 13px; align-self: center; justify-self: end; }
.rules summary .x::before, .rules summary .x::after, .faq summary .x::before, .faq summary .x::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--wine-light); transition: transform 0.3s ease; }
.rules summary .x::after, .faq summary .x::after { transform: rotate(90deg); }
.rules details[open] summary .x::after, .faq details[open] summary .x::after { transform: rotate(0deg); }
.rules .body { padding: 0 1.5rem 1.6rem 3.5rem; max-width: 42rem; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.85; }
.rules .body p + p { margin-top: 0.8rem; }
.rules .body .ref { display: block; margin-top: 1rem; }
.rules details[open] .body { animation: rise 0.4s ease both; }
@media (max-width: 900px) {
  .method { grid-template-columns: minmax(0, 1fr); }
  .method .head { position: static; }
  .rules summary { grid-template-columns: 2.2rem minmax(0, 1fr) 1.5rem; }
  .rules .body { padding: 0 0 1.5rem 2.7rem; }
}

/* ---------- Perguntas ---------- */
.faq { border-top: 1px solid var(--rule); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 1.5rem; gap: 1rem; align-items: baseline;
  padding: 1.4rem 0; font-family: var(--serif); font-size: clamp(1.18rem, 2.2vw, 1.4rem); line-height: 1.35; color: var(--ivory);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .answer { padding: 0 2.6rem 1.7rem 0; color: var(--text-secondary); font-size: 0.97rem; line-height: 1.9; max-width: 46rem; }
.faq .answer p + p { margin-top: 1rem; }
.faq details[open] .answer { animation: rise 0.4s ease both; }
.faq-group + .faq-group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.faq-group > h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 1.4rem; }

.faq-tools { display: none; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 52rem; }
.js .faq-tools { display: grid; }
.faq-search { position: relative; }
.faq-search input { width: 100%; background: var(--onyx); border: 1px solid var(--rule); color: var(--ivory); font: inherit; font-size: 1rem; padding: 1rem 1rem 1rem 3rem; border-radius: 0; }
.faq-search input::placeholder { color: var(--text-muted); }
.faq-search input:focus { border-color: var(--wine-light); outline: none; }
.faq-search svg { position: absolute; left: 1rem; top: 50%; width: 1.1rem; height: 1.1rem; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { background: none; border: 1px solid var(--rule); cursor: pointer; padding: 0.5rem 1rem; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-secondary); transition: all 0.3s ease; }
.chip:hover { color: var(--ivory); border-color: var(--wine-light); }
.chip[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
.faq-empty { padding: 2rem 0; color: var(--text-muted); }

/* ---------- Cartões de artigo ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(139, 58, 58, 0.14); }
.posts--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post {
  background: var(--obsidian); padding: clamp(1.7rem, 3vw, 2.4rem); text-decoration: none;
  display: flex; flex-direction: column; gap: 0.9rem; position: relative; overflow: hidden; transition: background 0.4s ease;
}
.section--alt .post { background: var(--onyx); }
.post::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.post:hover { background: var(--onyx-light); }
.post:hover::before { transform: scaleX(1); }
.post .cat { font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--wine-light); }
.post h3 { font-size: 1.42rem; line-height: 1.25; }
.post p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.8; }
.post .more { margin-top: auto; padding-top: 0.6rem; }
@media (max-width: 960px) { .posts, .posts--two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Grade de matérias ---------- */
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(139, 58, 58, 0.14); }
.topic { background: var(--obsidian); padding: clamp(1.8rem, 3vw, 2.8rem); position: relative; overflow: hidden; scroll-margin-top: 6rem; display: flex; flex-direction: column; gap: 0.8rem; transition: background 0.4s ease; }
.section--alt .topic { background: var(--onyx); }
.topic::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.topic:hover::before, .topic:target::before { transform: scaleX(1); }
.topic:hover { background: var(--onyx-light); }
.topic h3 { font-size: 1.32rem; }
.topic p { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.8; }
.topic .ref { margin-top: auto; padding-top: 0.4rem; }
@media (max-width: 820px) { .topics { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Duas colunas ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split .text h2 { margin-bottom: 2rem; }
.split .text p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.9; max-width: 38rem; }
.split .text p + p { margin-top: 1.5rem; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.quote { padding: 2.5rem; border-left: 2px solid var(--wine); background: rgba(139, 58, 58, 0.05); }
.quote p { font-family: var(--serif); font-size: 1.3rem; font-style: italic; line-height: 1.6; color: var(--ivory); }
.quote .ref { display: block; margin-top: 1rem; }

.sheet { border-top: 1px solid var(--rule); }
.sheet div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--rule-soft); }
.sheet dt { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); padding-top: 0.25rem; }
.sheet dd { color: var(--ivory-warm); font-size: 0.95rem; line-height: 1.7; }
@media (max-width: 600px) { .sheet div { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; } }

.portrait img { width: 100%; height: auto; filter: brightness(0.92) contrast(1.04); }

/* ---------- Artigo ---------- */

.article { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, var(--measure)) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem); }
.toc { position: sticky; top: 6.5rem; align-self: start; max-height: calc(100svh - 8rem); overflow-y: auto; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc summary { list-style: none; font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--wine); margin-bottom: 1rem; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; border-left: 1px solid var(--rule-soft); }
.toc a { display: block; padding: 0.45rem 0 0.45rem 1rem; margin-left: -1px; border-left: 1px solid transparent; font-size: 0.84rem; line-height: 1.4; color: var(--text-muted); text-decoration: none; transition: color 0.3s ease, border-color 0.3s ease; }
.toc a:hover { color: var(--ivory); }
.toc a.on { color: var(--ivory); border-left-color: var(--wine-light); }

.answer-box { border: 1px solid var(--rule); border-left: 2px solid var(--wine); background: rgba(139, 58, 58, 0.06); padding: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 3rem; }
.answer-box .eyebrow { margin-bottom: 0.9rem; }
.answer-box p { color: var(--ivory); font-size: 1.04rem; line-height: 1.85; font-weight: 400; }
.answer-box p + p { margin-top: 0.9rem; }

.prose { color: var(--ivory-warm); font-size: 1.04rem; line-height: 1.9; font-weight: 300; }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin: 3rem 0 1.1rem; scroll-margin-top: 6rem; }
.prose h3 { font-size: 1.3rem; margin: 2.2rem 0 0.8rem; }
.prose p + p { margin-top: 1.25rem; }
.prose ul, .prose ol { margin: 1.25rem 0 1.25rem 1.3rem; }
.prose li { margin-bottom: 0.7rem; padding-left: 0.3rem; }
.prose li::marker { color: var(--wine-light); }
.prose strong { font-weight: 500; color: var(--ivory); }
.prose blockquote { margin: 1.6rem 0; padding: 1.2rem 1.5rem; border-left: 2px solid var(--wine); background: rgba(255, 255, 255, 0.025); font-family: var(--serif); font-size: 1.15rem; color: var(--ivory); font-style: italic; }
.prose blockquote cite { display: block; margin-top: 0.7rem; font-family: var(--sans); font-style: normal; font-size: 0.76rem; color: var(--text-muted); letter-spacing: 0.04em; }

.legal-base { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.legal-base h2 { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--wine); margin-bottom: 1rem; }
.legal-base ul { list-style: none; }
.legal-base li { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.7; padding: 0.5rem 0; border-bottom: 1px solid var(--rule-soft); }

.author { margin-top: 3rem; padding: 1.6rem; background: var(--onyx); display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1.4rem; align-items: center; }
.author img { width: 84px; height: 84px; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.author .name { font-family: var(--serif); font-size: 1.25rem; color: var(--ivory); line-height: 1.2; }
.author p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.7; margin-top: 0.3rem; }
.disclaimer { margin-top: 1.6rem; font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 1000px) {
  .article { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article > .col { max-width: var(--measure); margin-inline: auto; width: 100%; }
  .toc { position: static; max-height: none; max-width: var(--measure); margin: 0 auto 2rem; width: 100%; border: 1px solid var(--rule); padding: 0 1.1rem; }
  .toc summary { margin: 0; padding: 1rem 0; cursor: pointer; display: flex; justify-content: space-between; }
  .toc summary::after { content: '+'; font-size: 1rem; }
  .toc[open] summary::after { content: '–'; }
  .toc ol { margin-bottom: 1rem; }
}

/* ---------- Contato, como no site original ---------- */
.cta .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cta h2 { margin-bottom: 2rem; }
.cta p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.9; margin-bottom: 2.5rem; max-width: 34rem; }
.cta .card { background: var(--onyx); padding: 2.8rem; position: relative; }
.section--alt .cta .card, .cta.section--alt .card { background: var(--obsidian); }
.cta .card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(to right, var(--wine), transparent); }
.cta dl div { margin-bottom: 1.5rem; }
.cta dt { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.cta dd, .cta dd a { color: var(--text-primary); text-decoration: none; font-size: 0.95rem; overflow-wrap: anywhere; transition: color 0.3s ease; }
.cta dd a:hover { color: var(--wine-light); }
.cta .privacy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule-soft); font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0; }
@media (max-width: 900px) { .cta .grid { grid-template-columns: minmax(0, 1fr); } .cta .card { padding: 2rem; } }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--rule-soft); padding: 2.8rem 0 calc(2.2rem + env(safe-area-inset-bottom, 0px)); }
.footer .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.footer .brand { font-size: 0.82rem; letter-spacing: 0.2em; }
.footer .ref { display: block; margin-top: 0.6rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; list-style: none; }
.footer-nav a { color: var(--text-secondary); text-decoration: none; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--wine-light); }
.footer .legal { font-size: 0.72rem; color: var(--text-muted); line-height: 1.7; max-width: 60rem; }
.footer .legal p + p { margin-top: 0.4rem; }

/* ---------- WhatsApp flutuante, como no site original ---------- */
.wa { position: fixed; bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); right: 2rem; z-index: 99; }
.wa a { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; background: var(--wine); border-radius: 50%; box-shadow: 0 4px 20px rgba(139, 58, 58, 0.3); position: relative; transition: all 0.3s ease; }
.wa a:hover { background: var(--wine-light); transform: scale(1.08); }
.wa a::after { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--wine); animation: pulse 3s ease infinite; }
.wa svg { width: 26px; height: 26px; fill: var(--ivory); }
.menu-open .wa { display: none; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.25); opacity: 0; } }
@media (max-width: 768px) { .wa { bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); right: 1.2rem; } }

.preview-flag { position: fixed; left: 0; bottom: 0; z-index: 89; background: #2a2420; color: var(--ivory-warm); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.4rem 0.8rem; border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); }

/* ---------- Entrada ao rolar, como no site original ---------- */
.js .reveal.pre { opacity: 0; transform: translateY(25px); }
.js .reveal { transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal.pre { opacity: 1; transform: none; }
}
@media print {
  .nav, .wa, .menu-panel, .preview-flag, .progress, .toc, .cta { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  h1, h2, h3, .prose, .answer-box p { color: #000; }
}

/* ---------- Credenciais e divisor, como no site original ---------- */
.divider { padding: 0 var(--gutter); }
.divider div { height: 1px; background: linear-gradient(to right, transparent, var(--rule), transparent); }
.credentials { padding: 3rem var(--gutter); display: flex; justify-content: center; gap: 2rem 5rem; flex-wrap: wrap; }
.credentials div { text-align: center; }
.credentials dt { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; color: var(--wine); line-height: 1; }
.credentials dd { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); margin-top: 0.5rem; }
@media (max-width: 768px) { .credentials { flex-direction: column; align-items: center; gap: 1.5rem; padding: 2.5rem var(--gutter); } }
.topic .num { font-family: var(--serif); font-size: 2.8rem; color: rgba(139, 58, 58, 0.18); line-height: 1; transition: color 0.4s ease; }
.topic:hover .num { color: rgba(139, 58, 58, 0.4); }
a.topic { text-decoration: none; }
.quote + .lede { font-size: 0.92rem; }

/* ======================================================================
   Nível avançado: coreografia de abertura, profundidade, contadores,
   transições entre páginas e interação fina. Tudo desativado quando o
   visitante prefere menos movimento.
   ====================================================================== */

/* ---------- Transição entre páginas ---------- */
@view-transition { navigation: auto; }
.brand { view-transition-name: brand; }
::view-transition-old(root) { animation: 0.28s ease-out both vt-out; }
::view-transition-new(root) { animation: 0.38s ease-out both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Abertura cinematográfica (só na página inicial) ---------- */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero h1 .line > span { display: inline-block; }
.js.intro .hero .eyebrow,
.js.intro .hero .hero-sub,
.js.intro .hero .hero-actions,
.js.intro .hero-facts { opacity: 0; transform: translateY(18px); animation: intro-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.js.intro .hero h1 .line > span { transform: translateY(110%); animation: intro-line 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.js.intro .hero .eyebrow { animation-delay: 0.35s; }
.js.intro .hero h1 .line:nth-child(1) > span { animation-delay: 0.5s; }
.js.intro .hero h1 .line:nth-child(2) > span { animation-delay: 0.62s; }
.js.intro .hero .hero-sub { animation-delay: 0.95s; }
.js.intro .hero .hero-actions { animation-delay: 1.15s; }
.js.intro .hero-facts { animation-delay: 1.3s; }
.js.intro .hero-photo { clip-path: inset(0 0 0 100%); animation: intro-photo 1.4s cubic-bezier(0.77, 0, 0.18, 1) forwards 0.15s; }
.js.intro .hero-photo img { transform: scale(1.08); animation: intro-zoom 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.15s; }
.js.intro .nav { opacity: 0; animation: intro-fade 0.8s ease forwards 1.1s; }
@keyframes intro-up { to { opacity: 1; transform: none; } }
@keyframes intro-line { to { transform: none; } }
@keyframes intro-photo { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-zoom { to { transform: none; } }
@keyframes intro-fade { to { opacity: 1; } }
@media (max-width: 1024px) {
  .js.intro .hero-photo { clip-path: inset(0 0 100% 0); }
}

/* ---------- Profundidade ao rolar ---------- */
.hero-photo picture, .portrait picture { display: block; height: 100%; will-change: transform; }
.js [data-parallax] { transform: translate3d(0, var(--py, 0), 0); }

/* ---------- Linhas que se desenham e títulos que sobem ---------- */
.js .divider div { transform: scaleX(0); transform-origin: center; transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.js .divider.drawn div { transform: scaleX(1); }
.js .section .head h2 .w, .js .split h2 .w, .js .cta h2 .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .section .head h2 .w > i, .js .split h2 .w > i, .js .cta h2 .w > i { display: inline-block; font-style: inherit; transform: translateY(105%); transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(var(--i) * 45ms); }
.js h2.words-in .w > i { transform: none !important; }
.js .reveal.pre { transform: translateY(32px); }
.js .posts .post, .js .topics .topic { transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease; }
.js .posts .post.pre, .js .topics .topic.pre { opacity: 0; transform: translateY(24px); }

/* ---------- Contadores ---------- */
.credentials dt { font-variant-numeric: tabular-nums; }

/* ---------- Interação fina ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(232, 224, 216, 0.14) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.7s ease; pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.js .btn.magnet { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.post::after, .topic::after { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; background: radial-gradient(24rem circle at var(--mx, 50%) var(--my, 50%), rgba(139, 58, 58, 0.22), transparent 70%); }
.post:hover::after, .topic:hover::after { opacity: 1; }
.post > *, .topic > * { position: relative; z-index: 1; }
.index a { position: relative; }
.index a::before { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.index a:hover::before { transform: scaleX(1); }
.wa a { transition: all 0.3s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.js .wa.hidden a { transform: translateY(6rem); }

/* ---------- Barra de progresso em todas as páginas longas ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: linear-gradient(to right, var(--wine), var(--wine-light)); transform: scaleX(var(--p, 0)); transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .js.intro .hero *, .js.intro .hero-photo, .js.intro .hero-facts, .js.intro .nav { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .hero h1 .line > span, .js .divider div, .js .w > i, .js .post.pre, .js .topic.pre, .js .hero-photo img, .js .portrait img { transform: none !important; opacity: 1 !important; }
}
