/* =========================================================
   Edilene Nunes — folha de estilos do site público
   Mobile first · WCAG 2.2 AA · cores configuráveis (/theme.css)
   ========================================================= */

@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-next-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-next-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --primary: #14365f;
  --secondary: #0e6b6b;
  --accent: #e0a526;
  --bg: #f4f7f7;
  --text: #16202c;
  --muted: #4a5868;
  --surface: #ffffff;
  --mist: color-mix(in srgb, var(--text) 3.5%, #ffffff);
  --line: color-mix(in srgb, var(--text) 11%, #ffffff);
  --primary-soft: color-mix(in srgb, var(--primary) 9%, #ffffff);
  --on-primary: #ffffff;
  --focus: var(--accent);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Atkinson", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-arch: 999px 999px 24px 24px;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --step--1: clamp(.875rem, .85rem + .1vw, .94rem);
  --step-0: clamp(1.0625rem, 1rem + .25vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.15rem + .45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 4rem);
  --header-h: 68px;
  --shadow: none;
  font-size: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--sans); font-size: var(--step-0); line-height: 1.65; color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.2em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--primary); margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--secondary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary); text-decoration-thickness: 2px; }
strong { font-weight: 700; }
ul, ol { padding-left: 1.25em; }

/* Foco sempre visível (WCAG 2.4.7 / 2.4.11) */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 85%, transparent); }
.on-dark :focus-visible { box-shadow: none; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--primary); color: #fff; padding: .85rem 1.2rem; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section + .section:not(.section--mist):not(.section--ink) { border-top: 1px solid var(--line); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--primary); color: #e9eef5; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink a:not(.btn) { color: #fff; }

.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-head h2 { margin-bottom: .35em; }
.section-head__eyebrow { color: var(--muted); font-weight: 400; font-size: var(--step--1); margin-bottom: .5rem; }

.section--ink .section-head__eyebrow { color: #9fd6d2; }
.section-head p { color: var(--muted); font-size: var(--step-0); }
.section--ink .section-head p { color: #c9d4e2; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.section-head--row > div { max-width: 46rem; }

/* ---------- Botões (alvos de toque ≥ 48px) ---------- */
.btn { --btn-bg: var(--primary); --btn-fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px; border: 2px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg); font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { --btn-bg: color-mix(in srgb, var(--primary) 85%, #000); color: var(--btn-fg); text-decoration: none; }
.btn--secondary { --btn-bg: var(--secondary); }
.btn--secondary:hover { --btn-bg: color-mix(in srgb, var(--secondary) 82%, #000); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn--ghost:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--primary); }
.btn--light:hover { --btn-bg: #e6edf5; --btn-fg: var(--primary); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--whatsapp { --btn-bg: #157a46; }
.btn--whatsapp:hover { --btn-bg: #0f5f36; }
.btn--sm { min-height: 44px; padding: .5rem 1rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--secondary); text-decoration: none; min-height: 44px; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--primary); min-height: 48px; }
.brand:hover { color: var(--primary); text-decoration: none; }
.brand__mark { width: 42px; height: 42px; border-radius: 12px 12px 12px 4px; background: linear-gradient(140deg, var(--primary), var(--secondary)); color: #fff; display: grid; place-items: center; font: 600 1.05rem/1 var(--serif); letter-spacing: .02em; flex: none; }
.brand__logo { height: var(--logo-h, 46px); max-height: 80px; width: auto; }
.site-footer .brand__logo { height: calc(var(--logo-h, 46px) * 1.1); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font: 600 1.2rem/1.1 var(--serif); }
.brand__role { font-size: .78rem; color: var(--muted); }
.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav__link { display: inline-flex; align-items: center; white-space: nowrap; min-height: 44px; padding: .4rem .65rem; color: var(--text); text-decoration: none; font-weight: 400; font-size: .98rem; }
.nav__link:hover { color: var(--primary); text-decoration: underline; text-underline-offset: .35em; }
.nav__link[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--secondary); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-social { display: none; gap: .1rem; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--primary); background: transparent; border: 0; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.menu-toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--primary); font: 700 1rem var(--sans); cursor: pointer; }
.header-cta { display: none; white-space: nowrap; }
.brand { min-width: 0; }
.brand__text { min-width: 0; }
.brand__role { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) { .brand__role { display: none; } .menu-toggle { padding-inline: .85rem; } }
@media (min-width: 1100px) and (max-width: 1279px) { .brand__role { display: none; } .nav__link { padding-inline: .55rem; } }

/* Menu móvel em painel */
.mobile-nav { position: fixed; inset: 0; z-index: 200; display: none; }
.mobile-nav.is-open { display: block; }
.mobile-nav__backdrop { position: absolute; inset: 0; background: rgba(9, 20, 36, .55); }
.mobile-nav__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(88vw, 380px); background: var(--surface); padding: 1rem 1.25rem 2rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; box-shadow: -20px 0 50px rgba(0,0,0,.2); }
@media (prefers-reduced-motion: no-preference) { .mobile-nav.is-open .mobile-nav__panel { animation: slideIn .28s ease-out; } }
@keyframes slideIn { from { transform: translateX(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.mobile-nav__list a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: .5rem .25rem; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font: 600 1.2rem var(--serif); }
.mobile-nav__list a[aria-current="page"] { color: var(--secondary); }
.mobile-nav .social-list { margin-top: auto; }

@media (min-width: 1100px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1280px) { .header-social { display: flex; } }

/* ---------- Barra de acessibilidade ---------- */
.a11y { position: relative; }
.a11y__panel { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 150; width: min(88vw, 320px); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; box-shadow: 0 16px 40px -18px rgba(0,0,0,.35); display: grid; gap: .5rem; }
.a11y__panel[hidden] { display: none; }
.a11y__panel h2 { font: 700 1rem var(--sans); color: var(--text); margin: 0 0 .25rem; }
.a11y__row { display: flex; gap: .4rem; }
.a11y__panel button, .a11y__panel a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--text); font: 400 .95rem var(--sans); cursor: pointer; text-decoration: none; }
.a11y__row button { justify-content: center; font-weight: 700; }
.a11y__panel button:hover, .a11y__panel a:hover { border-color: var(--primary); color: var(--primary); }
.a11y__panel button[aria-pressed="true"] { border-color: var(--secondary); background: var(--mist); font-weight: 700; }
.a11y__panel button[aria-pressed="true"]::after { content: "Ativado"; font-size: .8rem; color: var(--secondary); }

/* Modos ativados pela barra */
html.a11y-contrast { --bg: #ffffff; --text: #000; --muted: #1d1d1d; --line: #000; --mist: #fff; --primary: #002a5c; --secondary: #00494d; }
html.a11y-contrast .section--ink, html.a11y-contrast .hero { background: #000 !important; }
html.a11y-contrast .card, html.a11y-contrast .service-card { border: 2px solid #000 !important; }
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html.a11y-spacing body { letter-spacing: .06em; word-spacing: .14em; line-height: 1.9; }
html.a11y-spacing p { margin-bottom: 1.6em; }
html.a11y-nomotion *, html.a11y-nomotion *::before, html.a11y-nomotion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--hero-bg, var(--primary)); color: #e7eef7; overflow: hidden; isolation: isolate; }

.hero__grid { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); align-items: center; }
.hero__eyebrow { color: #b9c7d8; font-weight: 400; font-size: var(--step--1); margin-bottom: 1.1rem; max-width: 40ch; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.35rem + 2.3vw, 3.1rem); font-weight: 600; max-width: 24ch; margin-bottom: 1.1rem; line-height: 1.12; }
.hero__lead { font-size: var(--step-1); line-height: 1.55; color: #d3dde9; max-width: 38rem; margin-bottom: 2rem; }
.hero__name { font: 400 1rem var(--sans); color: #b9c7d8; margin-bottom: 1rem; letter-spacing: .01em; }
.hero__media { position: relative; justify-self: center; width: min(78%, 380px); }
@media (max-width: 899px) { .hero__media { margin-left: 0; justify-self: start; width: min(62%, 300px); } .portrait { max-width: 460px; aspect-ratio: 1; } }
.hero__frame { position: relative; border-radius: var(--r-arch); overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(160deg, color-mix(in srgb, var(--secondary) 70%, #fff 0%), color-mix(in srgb, var(--primary) 60%, #000)); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font: 600 clamp(4rem, 14vw, 7rem)/1 var(--serif); color: rgba(255,255,255,.92); }
.hero__tags { position: absolute; left: -.5rem; bottom: 1.75rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.hero__tag { background: #fff; color: var(--primary); font-weight: 700; font-size: .9rem; padding: .45rem .85rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem; }
.hero__tag .icon { color: var(--secondary); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.45fr .8fr; gap: 4rem; }
  .hero__media { justify-self: end; }
  .hero__tags { left: -2.5rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero__copy > *:nth-child(2) { animation-delay: .06s; }
  .hero__copy > *:nth-child(3) { animation-delay: .12s; }
  .hero__copy > *:nth-child(4) { animation-delay: .18s; }
  .hero__copy > *:nth-child(5) { animation-delay: .24s; }
  .hero__frame { animation: rise .9s .1s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Faixa de estatísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 2rem; }
.stat__value { font: 600 var(--step-3)/1 var(--serif); color: var(--primary); }
.stat__label { color: var(--muted); font-size: var(--step--1); }

/* ---------- Sobre (home) ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: .9fr 1.1fr; } .split--reverse { grid-template-columns: 1.1fr .9fr; } .split--reverse > :first-child { order: 2; } }
.portrait { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--primary-soft); position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font: 600 5rem var(--serif); color: var(--primary); background: linear-gradient(160deg, var(--mist), var(--primary-soft)); }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6em; }
.prose img { border-radius: var(--r-md); margin: 1.5rem 0; }
.prose blockquote { margin: 1.75rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 4px solid var(--secondary); font: 400 var(--step-1)/1.5 var(--serif); color: var(--primary); }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; }
.prose li { margin-bottom: .35em; }
.prose > :first-child { margin-top: 0; }

/* ---------- Serviços ---------- */
.services-grid { display: grid; column-gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.service-card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem 0 1.25rem; border-top: 1px solid var(--line); }
.service-card__icon { color: var(--secondary); display: inline-flex; }
.service-card__icon .icon { width: 24px; height: 24px; stroke-width: 1.6; }
.service-card h3, .service-card h2 { margin: .25rem 0 0; font-size: 1.25rem; }
.service-card h3 a, .service-card h2 a { color: var(--primary); text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; }
.service-card:hover h3 a, .service-card:hover h2 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.service-card p { color: var(--muted); margin: 0; flex: 1; }
.service-card .link-arrow, .service-card .btn-row { position: relative; z-index: 1; }

/* ---------- Cards genéricos ---------- */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.card:hover { border-color: color-mix(in srgb, var(--text) 28%, #fff); }
.card__media { aspect-ratio: 16 / 10; background: var(--primary-soft); overflow: hidden; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }

.card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--secondary); background: linear-gradient(150deg, var(--mist), var(--primary-soft)); }
.card__placeholder .icon { width: 42px; height: 42px; opacity: .7; }
.card__body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: var(--step--1); color: var(--muted); }
.card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.card h3 { font-size: 1.25rem; margin: 0; }
.card h3 a { color: var(--primary); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: none; box-shadow: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.card p { color: var(--muted); margin: 0; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .65rem; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--mist); color: var(--secondary); }
.badge--primary { background: var(--primary-soft); color: var(--primary); }
.badge--onmedia { position: absolute; top: .8rem; left: .8rem; background: rgba(255,255,255,.95); color: var(--primary); z-index: 1; }

/* Feature (primeiro item maior) */
.content-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .content-grid { grid-template-columns: 1.3fr 1fr; } .content-grid > .card:first-child { grid-row: span 2; } .content-grid > .card:first-child .card__media { aspect-ratio: 16/11; } .content-grid > .card:first-child h3 { font-size: var(--step-2); } }
.content-grid > .card:not(:first-child) { flex-direction: row; }
.content-grid > .card:not(:first-child) .card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 140px; }
@media (max-width: 560px) { .content-grid > .card:not(:first-child) { flex-direction: column; } .content-grid > .card:not(:first-child) .card__media { aspect-ratio: 16/10; } }

/* ---------- Palestras / temas ---------- */
.topic-list { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.topic { display: grid; gap: .5rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.18); position: relative; }
@media (min-width: 800px) { .topic { grid-template-columns: 9rem 1fr auto; align-items: start; } }
.topic__kind { font-weight: 400; color: #9fd6d2; font-size: var(--step--1); }
.topic h3 { margin: 0 0 .35rem; font-size: var(--step-1); }
.topic h3 a { color: #fff; text-decoration: none; }
.topic h3 a::after { content: ""; position: absolute; inset: 0; }
.topic p { margin: 0; color: #c9d4e2; }
.topic__meta { color: #c9d4e2; font-size: var(--step--1); display: flex; flex-direction: column; gap: .2rem; }
.section:not(.section--ink) .topic-list { border-color: var(--line); }
.section:not(.section--ink) .topic { border-color: var(--line); }
.section:not(.section--ink) .topic__kind { color: var(--secondary); }
.section:not(.section--ink) .topic h3 a { color: var(--primary); }
.section:not(.section--ink) .topic p, .section:not(.section--ink) .topic__meta { color: var(--muted); }

.event-date { display: inline-grid; place-items: center; min-width: 4.5rem; padding: .5rem; border-radius: var(--r-sm); background: var(--primary); color: #fff; text-align: center; line-height: 1.1; }
.event-date strong { font: 600 1.6rem var(--serif); }
.event-date span { font-size: .8rem; }

/* ---------- Galeria ---------- */
.gallery-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.gallery-item { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--primary-soft); border: 0; padding: 0; cursor: zoom-in; width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery-item:hover img { opacity: .9; }
.album-card .card__media { aspect-ratio: 4/3; }
.album-card__count { position: absolute; right: .75rem; bottom: .75rem; background: rgba(9,20,36,.75); color: #fff; padding: .25rem .6rem; border-radius: 999px; font-size: .85rem; display: inline-flex; gap: .3rem; align-items: center; }

/* Lightbox acessível */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(6, 14, 26, .95); color: #fff; }
.lightbox::backdrop { background: rgba(6, 14, 26, .9); }
.lightbox__inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; gap: 1rem; }
.lightbox__stage { display: grid; place-items: center; padding: 0 3.5rem; min-height: 0; }
.lightbox__stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; }
.lightbox__caption { padding: 1rem 1.25rem 1.5rem; text-align: center; color: #d5dde8; max-width: 70ch; margin: 0 auto; }
.lightbox button { background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: .5rem; } .lightbox__next { right: .5rem; }

/* ---------- Vídeo (carregamento sob demanda) ---------- */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #0b1526; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__btn { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: #0b1526; cursor: pointer; display: grid; place-items: center; color: #fff; }
.video-embed__btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-embed__btn:hover img { opacity: 1; }
.video-embed__play { position: relative; z-index: 1; width: 76px; height: 76px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--primary); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.video-embed__play .icon { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.video-embed__label { position: absolute; z-index: 1; left: 1rem; bottom: 1rem; right: 1rem; text-align: left; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.video-card .card__media .video-embed__play { width: 56px; height: 56px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.video-note { font-size: var(--step--1); color: var(--muted); margin-top: .75rem; }

/* ---------- Depoimentos ---------- */
.testimonials { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.testimonial { margin: 0; padding: 1.75rem; background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.25rem; }
.testimonial blockquote { margin: 0; font: 400 1.12rem/1.6 var(--serif); color: var(--text); }
.testimonial blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--secondary); margin-bottom: .5rem; }
.testimonial figcaption { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.testimonial__avatar { width: 48px; height: 48px; border-radius: 999px; object-fit: cover; background: var(--primary-soft); display: grid; place-items: center; color: var(--primary); font-weight: 700; flex: none; }
.testimonial cite { font-style: normal; font-weight: 700; display: block; }
.testimonial small { color: var(--muted); display: block; }

/* ---------- Chamada de contato ---------- */
.cta-panel { display: grid; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--r-lg); background: var(--mist); border: 1px solid var(--line); }
.cta-panel h2 { margin-bottom: .3em; font-size: var(--step-2); }
.cta-panel p { color: var(--muted); max-width: 52ch; margin: 0; }
@media (min-width: 900px) { .cta-panel { grid-template-columns: 1.4fr auto; align-items: center; } }

/* ---------- Cabeçalho de página interna ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3rem); }
.page-head h1 { font-size: var(--step-4); margin-bottom: .35em; max-width: 22ch; }
.page-head__lead { font-size: var(--step-1); color: var(--muted); max-width: 46rem; margin: 0; }
.page-head--ink { background: var(--primary); border: 0; color: #dfe7f1; }
.page-head--ink h1 { color: #fff; }
.page-head--ink .page-head__lead { color: #d3dde9; }
.page-head--ink .breadcrumbs a, .page-head--ink .breadcrumbs { color: #c9d4e2; }
.breadcrumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem .4rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .4rem; }
.breadcrumbs li + li::before { content: "/"; opacity: .55; }
.breadcrumbs a { color: inherit; }
.breadcrumbs [aria-current] { font-weight: 700; color: inherit; }

/* ---------- Sobre (página) ---------- */
.about-layout { display: grid; gap: 3rem; }
@media (min-width: 960px) { .about-layout { grid-template-columns: 340px 1fr; align-items: start; } .about-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.about-aside .portrait { margin-bottom: 1.25rem; }
.fact-list { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .6rem; }
.fact-list li { display: flex; gap: .6rem; align-items: flex-start; }
.fact-list .icon { color: var(--secondary); margin-top: .25rem; }
.block { margin-top: 3.5rem; }
.block > h2 { font-size: var(--step-2); padding-bottom: .5rem; border-bottom: 2px solid var(--line); margin-bottom: 1.5rem; }
.item-list { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.item { display: grid; gap: .2rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.item__title { font-weight: 700; color: var(--primary); font-size: 1.08rem; }
.item__meta { color: var(--secondary); font-size: var(--step--1); font-weight: 700; }
.item__desc { color: var(--muted); margin: .25rem 0 0; }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chip-list li { padding: .45rem .9rem; border-radius: 999px; background: var(--mist); color: var(--secondary); font-weight: 700; font-size: .95rem; }

/* Linha do tempo (sequência real → marcadores fazem sentido) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 1.75rem 2.25rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .45rem; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--secondary); }
.timeline__year { font: 600 1.05rem var(--serif); color: var(--secondary); }
.timeline__title { font-weight: 700; color: var(--primary); display: block; }
.timeline p { color: var(--muted); margin: .25rem 0 0; }

/* ---------- Detalhe de serviço / evento ---------- */
.detail { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .detail { grid-template-columns: 1fr 340px; align-items: start; } .detail__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.detail__cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 2rem; aspect-ratio: 16/8; background: var(--primary-soft); }
.detail__cover img { width: 100%; height: 100%; object-fit: cover; }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; display: grid; gap: 1rem; }
.aside-card h2 { font-size: 1.25rem; margin: 0; }
.dl { display: grid; gap: .9rem; margin: 0; }
.dl div { display: grid; gap: .1rem; }
.dl dt { font-size: var(--step--1); color: var(--muted); font-weight: 700; display: flex; gap: .35rem; align-items: center; }
.dl dt .icon { color: var(--secondary); }
.dl dd { margin: 0; }

/* ---------- Artigo ---------- */
.article-head { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.article-head h1 { font-size: var(--step-4); max-width: 22ch; }
.article-head__subtitle { font-size: var(--step-1); color: var(--muted); max-width: 42rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-size: var(--step--1); margin-top: 1.25rem; }
.article-meta span { display: inline-flex; gap: .35rem; align-items: center; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 2.5rem; background: var(--primary-soft); }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.article-body { font-size: 1.12rem; line-height: 1.75; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-block: 2.5rem; padding-block: 1.25rem; border-block: 1px solid var(--line); }
.share__label { font-weight: 700; margin-right: .5rem; }
.share a, .share button { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--primary); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.tag-list a { display: inline-flex; align-items: center; min-height: 36px; padding: .25rem .8rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); text-decoration: none; font-size: .92rem; font-weight: 700; }
.tag-list a:hover { background: var(--primary); color: #fff; }

/* ---------- Filtros / busca / paginação ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; }
.tabs a:hover { border-color: var(--primary); color: var(--primary); }
.tabs a[aria-current="page"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.search-form { display: flex; gap: .5rem; flex: 1 1 280px; max-width: 420px; }
.search-form input { flex: 1; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 700; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination [aria-current="page"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty { text-align: center; padding: 3rem 1rem; border: 2px dashed var(--line); border-radius: var(--r-md); color: var(--muted); background: var(--surface); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto 1rem; color: var(--secondary); }

/* ---------- Formulários ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 4vw, 2.5rem); }
.form-grid { display: grid; gap: 1.15rem; }
@media (min-width: 720px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 700; font-size: 1rem; }
.field .req { color: #a3271d; }
.field .hint { font-size: var(--step--1); color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="date"], input[type="url"], input[type="password"], select, textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem; font: 400 1.05rem/1.4 var(--sans); color: var(--text); background: #fff; border: 1.5px solid color-mix(in srgb, var(--primary) 30%, #9aa6b2); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--primary); }
[aria-invalid="true"] { border-color: #b3261e !important; background: #fff8f7; }
.field-error { color: #a3271d; font-weight: 700; font-size: .95rem; display: flex; gap: .35rem; align-items: flex-start; }
.radio-group { display: flex; flex-wrap: wrap; gap: .6rem; border: 0; padding: 0; margin: 0; }
.radio-group legend { margin-bottom: .4rem; padding: 0; }
.choice { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .5rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice input { width: 20px; height: 20px; accent-color: var(--primary); margin: 0; }
.consent { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; border-radius: var(--r-sm); background: var(--mist); }
.consent input { width: 24px; height: 24px; margin-top: .15rem; accent-color: var(--primary); flex: none; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--r-sm); margin-bottom: 1.5rem; border: 1px solid; }
.alert--success { background: #ecf7f0; border-color: #9fd2b3; color: #11532e; }
.alert--error { background: #fdf0ef; border-color: #eab0aa; color: #8a1f17; }
.alert--info { background: var(--primary-soft); border-color: var(--line); color: var(--primary); }
.alert .icon { margin-top: .15rem; }

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .contact-list__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--mist); color: var(--secondary); display: grid; place-items: center; flex: none; }
.contact-list strong { display: block; }

/* ---------- Redes sociais ---------- */
.social-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.social-list a { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; color: inherit; border: 1px solid currentColor; opacity: .9; }
.social-list a:hover { opacity: 1; background: rgba(127,127,127,.15); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--footer-bg, color-mix(in srgb, var(--primary) 92%, #000)); color: #c9d4e2; padding-block: 3.5rem 1.75rem; font-size: .96rem; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr; } }
.site-footer h2 { font: 700 1rem var(--sans); color: #fff; margin-bottom: 1rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand__role { color: #b8c5d6; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.footer-links a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; color: #dfe7f1; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .92rem; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #157a46; color: #fff; text-decoration: none; box-shadow: 0 6px 18px -6px rgba(0,0,0,.35); }
.wa-float:hover { background: #0f5f36; color: #fff; text-decoration: none; }
.wa-float .icon { width: 24px; height: 24px; }
.wa-float__text { display: none; }


/* Banner de consentimento */
.consent-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300; max-width: 560px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,.4); }
.consent-banner p { margin-bottom: 1rem; font-size: .98rem; }
.consent-banner[hidden] { display: none; }

/* Aviso de instalação PWA / offline */
.install-hint { display: none; }
.install-hint.is-visible { display: inline-flex; }
.offline-badge { position: fixed; top: calc(var(--header-h) + .5rem); left: 50%; transform: translateX(-50%); z-index: 150; background: #3d2a00; color: #fff; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; display: none; gap: .4rem; align-items: center; }
html.is-offline .offline-badge { display: inline-flex; }

.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; } .center { text-align: center; }
.muted { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .a11y-bar, .wa-float, .share, .consent-banner { display: none !important; }
  body { background: #fff; color: #000; }
}
.card .card-title a::after { content: ""; position: absolute; inset: 0; }
.card:has(.card-title a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Variações do topo (hero) */
.hero__frame--arredondado { border-radius: var(--r-lg); }
.hero__frame--circulo { border-radius: 50%; aspect-ratio: 1; }
.hero--no-photo .hero__grid { grid-template-columns: 1fr; }
.hero--no-photo .hero__copy { max-width: 52rem; }
.hero--no-photo h1 { max-width: 24ch; }
@media (min-width: 900px) {
  .hero--photo-left .hero__grid { grid-template-columns: .85fr 1.25fr; }
  .hero--photo-left .hero__media { order: -1; justify-self: start; }
  .hero--photo-left .hero__tags { left: auto; right: -2.5rem; align-items: flex-end; }
}
.view-count { display: inline-flex; align-items: center; gap: .3rem; }
.site-counter { display: inline-flex; align-items: center; gap: .4rem; }

/* Versão limpa: detalhes */
.brand--header .brand__role { display: none; }
.brand--header .brand__mark { width: 38px; height: 38px; font-size: .95rem; }
.list-title { font: 700 1rem var(--sans); color: var(--text); margin: 0 0 .5rem; }
.event-date { background: transparent; color: var(--primary); border: 1px solid var(--line); }
.service-card__meta { flex: 0 !important; font-size: var(--step--1); }
.service-card__links { flex: 0 !important; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; position: relative; z-index: 1; margin-top: .25rem !important; }
.service-card__links a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.card__meta span + span::before { content: none; }
.testimonial { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 1.5rem 0 0; background: transparent; }
.page-head { background: transparent; }
.service-card__links a { text-decoration: none; }
.service-card__links a:hover, .service-card__links a:focus-visible { text-decoration: underline; }
html.a11y-links .service-card__links a { text-decoration: underline !important; }
.about-solo > div { max-width: 46rem; }
