/* Aurélio Pedroso Advogados — design "Pampa em nanquim" */
:root {
  --paper: #f6f1e7;
  --paper-2: #ede4d3;
  --ink: #1f1e1b;
  --ink-soft: #4b4842;
  --ink-mute: #6f6a61;
  --ocre: #b47a2a;
  --ocre-escuro: #8a5b1b;
  --sol: #f2b84b;
  --ceu: #cfe3e4;
  --campo: #6e9a5b;
  --campo-claro: #a9c78a;
  --campo-escuro: #3f6b45;
  --line: rgba(31, 30, 27, .14);
  --radius: 22px;
  --shadow: 6px 6px 0 var(--ink);
  --wrap: 1180px;
  --serif: "Fraunces", "Georgia", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; font-variation-settings: "SOFT" 50, "WONK" 0; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.35rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ocre); outline-offset: 3px; border-radius: 6px; }

/* ---------- topo ---------- */
.topbar { background: var(--ink); color: var(--paper); font-size: 13.5px; }
.topbar .wrap { display: flex; gap: 22px; align-items: center; justify-content: space-between; padding: 7px 0; flex-wrap: wrap; }
.topbar a { text-decoration: none; opacity: .88; }
.topbar a:hover { opacity: 1; }
.topbar .tb-info { display: flex; gap: 20px; flex-wrap: wrap; }

.header { position: sticky; top: 0; z-index: 50; border-bottom: 1.5px solid var(--line); }
/* o desfoque fica num pseudo-elemento: backdrop-filter no próprio header prenderia o menu mobile (position: fixed) dentro dele */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.logo img { height: 72px; width: auto; margin: -6px 0 -6px -10px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 8px 12px; border-radius: 999px; transition: background .2s; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); }
.menu-btn { display: none; background: none; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: transform .25s, opacity .25s; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 16px/1 var(--sans); padding: 15px 22px; border-radius: 999px; border: 2px solid var(--ink); text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s, background .2s; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--ocre); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ocre); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ocre-escuro); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 em, h2 em { font-style: italic; color: var(--ocre-escuro); font-weight: 500; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 36em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }
.selos { display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.selos li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; background: var(--paper); }
.selos strong { font-family: var(--serif); }
.hero-art { position: relative; }
.hero-art .ilu-hero { filter: drop-shadow(8px 8px 0 var(--ink)); }
.hero-tag { position: absolute; left: -28px; bottom: -22px; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 14px; max-width: 230px; animation: bob 5s ease-in-out infinite; }
.hero-tag b { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1; }

/* ---------- faixa rolante ---------- */
.ticker { border-block: 2px solid var(--ink); background: var(--sol); overflow: hidden; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font: 600 italic clamp(1.1rem, 2vw, 1.5rem)/1 var(--serif); padding: 16px 26px; white-space: nowrap; }
.ticker span::after { content: "✦"; margin-left: 52px; font-style: normal; }

/* ---------- seções ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec-alt { background: var(--paper-2); }
.sec-dark { background: var(--ink); color: var(--paper); }
.sec-dark .eyebrow { color: var(--sol); }
.sec-dark .lead { color: #d8d2c4; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head > div { max-width: 640px; }
.sec-head p { color: var(--ink-soft); margin: 0; }

/* resposta direta (pensada para Google e IAs) */
.resposta { border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px 26px; background: var(--paper); box-shadow: var(--shadow); margin: 0 0 34px; position: relative; }
.resposta-tit { font: 700 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ocre-escuro); margin: 0 0 10px; }
.resposta p:last-child { margin: 0; }

/* cards de área */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area-card { display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 14px 22px; background: var(--paper); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.area-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.area-card .ilu { margin-bottom: 16px; }
.area-card h3 { margin: 0 6px 8px; }
.area-card p { margin: 0 6px 14px; font-size: 15px; color: var(--ink-soft); flex: 1; }
.area-card .mais { margin: 0 6px; font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 6px; }
.area-card:hover .mais span { transform: translateX(4px); }
.mais span { transition: transform .2s; }
.area-card.wide { grid-column: span 2; flex-direction: row; gap: 20px; align-items: center; }
.area-card.wide .ilu { width: 48%; flex: none; margin: 0; }
.area-card.wide h3 { font-size: 1.8rem; }

/* números / história */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.foto-moldura { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.foto-moldura img { width: 100%; height: 100%; object-fit: cover; }
.timeline { list-style: none; padding: 0; margin: 30px 0 0; border-left: 2px dashed var(--ink); }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--sol); border: 2px solid var(--ink); }
.timeline b { font: 600 1.3rem/1.2 var(--serif); display: block; }
.timeline span { color: var(--ink-soft); font-size: 15.5px; }

/* equipe */
.equipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pessoa { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.pessoa img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 2px solid var(--ink); filter: saturate(.9); transition: filter .3s; }
.pessoa:hover img { filter: saturate(1.1); }
.pessoa div { padding: 20px 22px 24px; }
.pessoa h3 { margin-bottom: 4px; }
.pessoa .oab { font-size: 14px; font-weight: 600; color: var(--ocre-escuro); margin-bottom: 12px; display: block; }
.pessoa p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* CPR */
.cpr { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }
.cpr .ilu { filter: drop-shadow(6px 6px 0 var(--sol)); }
.cpr .b3 { background: var(--paper); border-radius: 14px; padding: 10px 16px; display: inline-block; margin-top: 8px; }
.cpr .b3 img { height: 34px; width: auto; }
.sec-dark .btn-primary { background: var(--sol); color: var(--ink); border-color: var(--sol); box-shadow: 4px 4px 0 var(--paper); }

/* mapa */
.mapa-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.mapa { background: var(--ceu); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.mapa .rota { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 3; opacity: .45; }
.mapa .rota-ativa { stroke: var(--ocre); stroke-width: 5; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 1; animation: drawline 2.4s 0.4s ease forwards; }
.mapa .pt circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; transition: r .2s, fill .2s; }
.mapa .pt text { font: 600 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--ceu); stroke-width: 4px; }
.mapa .pt:hover circle { fill: var(--sol); }
.mapa .pt-ativo circle { fill: var(--sol); }
.mapa .pt-sede circle { fill: var(--ocre); }
.mapa .pt-sede text, .mapa .pt-ativo text { font-size: 15px; font-weight: 700; }
.mapa .a-ping { fill: var(--ocre); stroke: none; opacity: .4; transform-box: fill-box; transform-origin: center; animation: ping 2.2s ease-out infinite; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips a { display: inline-block; text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 13px; font-size: 14.5px; font-weight: 500; background: var(--paper); transition: background .2s; }
.chips a:hover { background: var(--sol); }

/* blog */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--paper); text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/10; background: var(--ceu); border-bottom: 2px solid var(--ink); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb .ilu rect:first-child { stroke: none; }
.post-card div.txt { padding: 18px 20px 22px; }
.post-card time { font-size: 13px; color: var(--ink-mute); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.post-card h3 { font-size: 1.18rem; margin: 6px 0 0; }

/* instagram */
.ig-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ig-strip a { border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; aspect-ratio: 1; position: relative; }
.ig-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ig-strip a:hover img { transform: scale(1.06); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 2px solid var(--ink); border-radius: 18px; background: var(--paper); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font: 600 1.12rem/1.35 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font: 600 18px/1 var(--sans); transition: transform .25s, background .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--sol); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-soft); }

/* contato */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.card { border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; background: var(--paper); }
.nap { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.nap li { display: flex; gap: 14px; align-items: flex-start; }
.nap svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.nap a { font-weight: 600; }
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: 14.5px; display: grid; gap: 6px; }
.form input, .form select, .form textarea { font: inherit; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; }
.form textarea { min-height: 110px; resize: vertical; }
.form .aviso { font-size: 13px; color: var(--ink-mute); margin: 0; }
.mapa-google { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; min-height: 300px; height: 100%; }
.mapa-google iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }

/* páginas internas */
.page-hero { padding: 40px 0 56px; border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.page-hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.page-hero.sem-arte .wrap { grid-template-columns: 1fr; }
.page-hero.com-mapa .wrap { grid-template-columns: .9fr 1.1fr; }
.page-hero.com-mapa h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); }
.page-hero .ilu { filter: drop-shadow(6px 6px 0 var(--ink)); }
.bread { font-size: 14px; color: var(--ink-mute); margin-bottom: 22px; }
.bread ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bread li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.bread a { text-decoration: none; }
.bread a:hover { text-decoration: underline; }
.conteudo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.prosa { max-width: 720px; }
.prosa h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.6em; }
.prosa h3 { margin-top: 1.4em; }
.prosa ul, .prosa ol { padding-left: 1.2em; }
.prosa li { margin-bottom: .45em; }
.prosa li::marker { color: var(--ocre); }
.prosa blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sol); font-family: var(--serif); font-size: 1.2rem; }
.lista-check { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.lista-check li { padding-left: 34px; position: relative; }
.lista-check li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 7px; background: var(--sol) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f1e1b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.aside .card h3 { font-size: 1.3rem; }
.aside .card p { font-size: 15px; color: var(--ink-soft); }
.aside .btn { width: 100%; justify-content: center; }
.aside-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.aside-links a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.aside-links a:hover { background: var(--paper-2); }
.post-capa { border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; margin: 0 0 30px; box-shadow: var(--shadow); max-width: 560px; }
.meta-post { color: var(--ink-mute); font-size: 14.5px; margin-bottom: 0; }
.ig-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cidade-dados { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0; }
.cidade-dados div { border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px; background: var(--paper); }
.cidade-dados b { font: 600 1.5rem/1.1 var(--serif); display: block; }
.cidade-dados span { font-size: 13.5px; color: var(--ink-soft); }

/* CTA final */
.cta-final { text-align: center; }
.cta-final h2 { max-width: 18ch; margin-inline: auto; }
.cta-final .cta-row { justify-content: center; }

/* rodapé */
.footer { background: var(--ink); color: #d8d2c4; padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer h4 { color: var(--paper); font-size: 1.1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--sol); }
.footer .logo-rodape { height: 64px; width: auto; filter: brightness(0) invert(.93); margin-bottom: 16px; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: #a7a093; }

/* botão flutuante */
.wpp { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; background: #25d366; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); display: grid; place-items: center; transition: transform .2s; }
.wpp:hover { transform: scale(1.07) rotate(-6deg); }
.wpp svg { width: 32px; height: 32px; }
.wpp::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s ease-out infinite; }

/* revelação ao rolar */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.vis { opacity: 1; transform: none; }

/* ---------- animações das ilustrações ---------- */
.ilu .a-spin { transform-box: fill-box; transform-origin: center; animation: spin var(--d, 6s) linear infinite; }
.ilu .a-rev { animation-direction: reverse; }
.ilu .a-sway { animation: sway var(--d, 4s) ease-in-out infinite alternate; }
.ilu .a-bob { animation: bob var(--d, 2.4s) ease-in-out infinite; }
.ilu .a-float { animation: float 6s ease-in-out infinite; }
.ilu .a-tilt { animation: tilt 5s ease-in-out infinite; }
.ilu .a-drift { animation: drift var(--d, 40s) linear infinite; animation-delay: var(--o, 0s); }
.ilu .a-fly { animation: fly var(--d, 16s) linear infinite; }
.ilu .a-flap { animation: flap .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.ilu .a-pulse { animation: pulse 4s ease-in-out infinite; }
.ilu .a-blink { animation: blink var(--d, 3s) ease-in-out infinite; }
.ilu .a-pop { animation: pop 4s ease-in-out infinite; animation-delay: var(--o, 0s); }
.ilu .a-beat { animation: beat 1.4s ease-in-out infinite; }
.ilu .a-turn { animation: turn 4s ease-in-out infinite; }
.ilu .a-draw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 4s ease-in-out infinite; }
.ilu .a-write { animation: write 4s ease-in-out infinite; }
.ilu .a-flip { animation: flip 5s ease-in-out infinite; }
.ilu .a-sand { animation: sand .6s linear infinite; }
.ilu .a-stamp { animation: stamp 4s ease-in-out infinite; }
.ilu .a-grain { animation: grain 1.6s ease-in infinite; animation-delay: var(--o, 0s); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes tilt { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes drift { from { transform: translateX(-220px); } to { transform: translateX(700px); } }
@keyframes fly { from { transform: translate(0, 0); } 50% { transform: translate(380px, -30px); } to { transform: translate(780px, 10px); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.6); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.18); opacity: .4; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes pop { 0%, 10% { transform: scale(0); } 25%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }
@keyframes turn { 0%, 30% { transform: rotate(0); } 50%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
@keyframes draw { 0% { stroke-dashoffset: 100; } 60%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
@keyframes write { 0% { transform: translate(-90px, 34px); } 60% { transform: translate(-12px, 36px); } 85% { transform: translate(-12px, 36px); } 100% { transform: translate(-90px, 34px); } }
@keyframes flip { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes sand { to { stroke-dashoffset: -7; } }
@keyframes stamp { 0%, 40% { transform: scale(1.8); opacity: 0; } 50% { transform: scale(.9); opacity: 1; } 55%, 90% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
@keyframes grain { from { transform: translateY(0); opacity: 1; } to { transform: translateY(28px); opacity: 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes drawline { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .mapa .rota-ativa { stroke-dashoffset: 0; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .conteudo { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: var(--paper); border-left: 2px solid var(--ink); flex-direction: column; align-items: stretch; padding: 90px 22px 22px; transform: translateX(100%); transition: transform .3s ease; z-index: 70; }
  .nav a { font-size: 18px; padding: 12px 14px; }
  .nav-open .nav { transform: none; }
  .nav-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  .nav-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .menu-btn { position: relative; z-index: 80; }
  .header .btn-cta { display: none; }
  .hero .wrap, .split, .cpr, .mapa-wrap, .contato-grid, .page-hero .wrap, .page-hero.com-mapa .wrap { grid-template-columns: 1fr; }
  .page-hero .ilu { max-width: 300px; }
  .equipe-grid, .posts-grid { grid-template-columns: 1fr 1fr; }
  .ig-strip { grid-template-columns: repeat(3, 1fr); }
  .hero-tag { left: 10px; bottom: -14px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar .tb-hide { display: none; }
  .logo img { height: 58px; }
  .areas-grid, .equipe-grid, .posts-grid, .footer-grid, .cidade-dados { grid-template-columns: 1fr; }
  .area-card.wide { grid-column: auto; flex-direction: column; }
  .area-card.wide .ilu { width: 100%; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .resposta { padding: 18px 18px; }
  .mapa .pt text { font-size: 17px; }
}

/* evita estouro horizontal em telas estreitas */
.contato-grid > *, .conteudo > *, .split > *, .mapa-wrap > *, .hero .wrap > *, .page-hero .wrap > *, .cpr > * { min-width: 0; }
.nap a, .footer a, .prosa a { overflow-wrap: anywhere; }
.selos strong { font-family: inherit; font-weight: 700; }
html { overflow-x: clip; }
