/* Muñdji — landing corporativa. Tema claro, tipografia Inter, uma só cor de acento.
 * Sem estilos inline (CSP style-src 'self'). Movimento: reveal ao rolar, contadores, transições curtas;
 * tudo desligado com prefers-reduced-motion. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5b6678;
  --line: #e4e8f0;
  --line-strong: var(--line-strong);
  --line-strong-hover: var(--line-strong-hover);
  --line-hover: var(--line-hover);
  --bg: #ffffff;
  --soft: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f6f4ff;
  --hero-top: #fbfaff;
  --brand: #5a3de0;
  --brand-btn: #5a3de0;
  --brand-btn-600: #4a2fc4;
  --brand-600: #4a2fc4;
  --brand-50: #f1eefe;
  --ring: #5a3de01f;
  --navy: #0b1020;
  --ok: #0f9d58;
  --placeholder: var(--placeholder);
  --err-bg: #fef2f2;
  --err-line: #fecaca;
  --err-ink: #b91c1c;
  --header-bg: rgba(255, 255, 255, 0.78);
  --header-bg-solid: var(--header-bg-solid);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 12px;
  --shadow-s: 0 1px 2px #0f172a0d, 0 1px 3px #0f172a14;
  --shadow-m: 0 10px 30px -12px #0f172a29;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 72px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef1fb;
  --ink-2: #c3cae4;
  --muted: #9aa5c8;
  --line: #232c4d;
  --line-strong: #2f3a66;
  --line-strong-hover: #4a5690;
  --line-hover: #4b3fb0;
  --bg: #080c1a;
  --soft: #0d1326;
  --surface: #111936;
  --surface-2: #161f44;
  --hero-top: #0f1433;
  --brand: #a994ff;
  --brand-btn: #6a4df0;
  --brand-btn-600: #7c63f5;
  --brand-600: #c3b5ff;
  --brand-50: rgba(139, 115, 255, 0.16);
  --ring: #8b73ff40;
  --navy: #050812;
  --ok: #34d399;
  --placeholder: #6f7ba3;
  --err-bg: #2a1217;
  --err-line: #7f1d1d;
  --err-ink: #fca5a5;
  --header-bg: rgba(8, 12, 26, 0.72);
  --header-bg-solid: rgba(8, 12, 26, 0.92);
  --shadow-s: 0 1px 2px #0006, 0 1px 3px #0005;
  --shadow-m: 0 14px 36px -14px #000a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--brand-btn); color: #fff; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.skip-link { position: fixed; left: 12px; top: -64px; z-index: 5000; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top 0.15s var(--ease); }
.skip-link:focus { top: 12px; color: var(--bg); }
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 1100; background: var(--brand-btn); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 0.95rem; line-height: 1; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-btn); color: #fff; box-shadow: 0 1px 2px #0f172a29; }
.btn-primary:hover { background: var(--brand-btn-600); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px -8px #5a3de099; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--brand-50); color: var(--navy); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); transition: border-color 0.2s, color 0.2s; }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cabeçalho ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header); display: flex; align-items: center; background: var(--header-bg); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; }
.site-header.scrolled { background: var(--header-bg-solid); border-bottom-color: var(--line); box-shadow: 0 6px 24px -16px #0f172a40; }
.header-in { display: flex; align-items: center; gap: 28px; }
.brand img { height: 40px; width: auto; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a { display: block; padding: 8px 14px; border-radius: 8px; color: var(--ink-2); font-size: 0.94rem; font-weight: 500; transition: color 0.2s, background 0.2s; }
.primary-nav a:hover { color: var(--ink); background: var(--soft); }
.primary-nav a.active { color: var(--brand); background: var(--brand-50); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; place-items: center; }
.menu-btn span[hidden] { display: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 1200; background: var(--surface); padding: 88px 24px 32px; display: flex; flex-direction: column; gap: 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s; }
.mobile-menu.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.mobile-menu a:not(.btn) { display: block; padding: 14px 4px; font-size: 1.35rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.menu-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; display: grid; place-items: center; }

/* ---------- Tipografia de secção ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-soft { background: var(--soft); border-block: 1px solid var(--line); }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem); text-wrap: balance; }
.accent { color: var(--brand); }
.body-lg { font-size: 1.1rem; line-height: 1.75; color: var(--muted); max-width: 64ch; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 16px; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 6vw, 72px); background: radial-gradient(900px 480px at 82% 8%, #5a3de01f, transparent 70%), linear-gradient(180deg, var(--hero-top), var(--bg) 70%); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-2); box-shadow: var(--shadow-s); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px #0f9d5826; flex: none; }
.hero h1 { margin: 22px 0 20px; font-size: clamp(2.5rem, 5vw + 0.5rem, 5rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.h1-brand, .h1-sub { display: block; }
.h1-sub { color: var(--brand); }
.lead { font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.3rem); line-height: 1.7; color: var(--muted); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { display: grid; place-items: center; }
.art-card { position: relative; width: min(100%, 380px); padding: 44px 32px 28px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow-m); display: grid; justify-items: center; gap: 24px; overflow: hidden; }
.art-card img { position: relative; width: 112px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 18px 24px #5a3de055); }
.art-glow { position: absolute; width: 280px; height: 280px; top: -40px; left: 50%; margin-left: -140px; border-radius: 50%; background: radial-gradient(closest-side, #5a3de033, transparent); }
.art-list { position: relative; width: 100%; display: grid; gap: 10px; }
.art-list li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.art-list svg { color: var(--brand); flex: none; }
@keyframes float { 50% { transform: translateY(-8px); } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(48px, 7vw, 88px) 0 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-s); overflow: hidden; }
.stat { padding: 24px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 4px; min-width: 0; }
.stat:first-child { border-left: 0; }
.stat dd { margin: 0; font-size: clamp(1.7rem, 1.6vw + 1.1rem, 2.4rem); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat dt { font-size: 0.9rem; color: var(--muted); }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-text h2 { margin-bottom: 22px; }
.about-text .body-lg + .body-lg { margin-top: 16px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 28px; }
.checks li, .ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; font-weight: 500; color: var(--ink); line-height: 1.45; }
.checks svg, .ticks svg { color: var(--brand); flex: none; margin-top: 1px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line-hover); }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--brand-50); color: var(--brand); flex: none; }
.pillar h3 { margin: 16px 0 6px; font-size: 1.1rem; }
.pillar p { font-size: 0.94rem; color: var(--muted); line-height: 1.6; }

/* ---------- Serviços ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.svc-tabs { display: grid; gap: 8px; }
.svc-tab { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); }
.svc-tab:hover { border-color: var(--line-hover); }
.svc-tab.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.svc-tab-text { display: grid; min-width: 0; flex: 1; }
.svc-tab-text strong { color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.svc-tab-text small { color: var(--muted); font-size: 0.8rem; }
.pill { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); padding: 4px 8px; border-radius: 999px; }
.svc-panels { min-width: 0; }
.svc-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-s); }
.svc-panel:not([hidden]) { animation: panel-in 0.4s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.svc-panel[hidden] { display: none; }
.svc-main h3 { font-size: clamp(1.4rem, 1.2vw + 1.1rem, 1.9rem); margin-bottom: 8px; }
.svc-sub { color: var(--brand); font-weight: 600; margin-bottom: 14px; }
.svc-desc { color: var(--muted); line-height: 1.75; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.svc-side { padding: 22px; background: var(--soft); border-radius: var(--r); align-self: start; }
.svc-side h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 650; margin-bottom: 16px; }
.ticks { display: grid; gap: 12px; }
.svc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; font-size: 0.92rem; }

/* ---------- Equipa ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.person { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line-hover); }
.person-photo, .dialog-photo { position: relative; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.person-photo img, .dialog-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.6s var(--ease); }
.person:hover .person-photo img { transform: scale(1.03); }
.person-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #5a3de0, #8b6cf0); }
.person-fallback.tone-2 { background: linear-gradient(135deg, #1d4ed8, #4f8cf6); }
.person-fallback.tone-3 { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.person-fallback span { font-size: clamp(2.2rem, 3vw, 3rem); font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.person-fallback[hidden] { display: none; }
.person-body { display: flex; flex-direction: column; gap: 6px; padding: 22px; flex: 1; }
.person-dept { font-size: 0.74rem; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.person h3 { font-size: 1.25rem; }
.person-role { color: var(--ink-2); font-weight: 500; font-size: 0.95rem; }
.person-bio { color: var(--muted); font-size: 0.93rem; line-height: 1.6; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 0.78rem; font-weight: 500; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.chip-more { color: var(--brand); background: var(--brand-50); border-color: transparent; }
.person-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; }

/* ---------- Diálogos ---------- */
.overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(11, 16, 32, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); overflow-y: auto; }
.overlay[hidden] { display: none; }
.overlay:not([hidden]) { animation: fade 0.2s ease-out; }
.dialog { position: relative; width: min(560px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; background: var(--surface); border-radius: 18px; padding: clamp(24px, 4vw, 36px); box-shadow: 0 30px 80px -20px #0b102099; }
.overlay:not([hidden]) .dialog { animation: pop 0.3s var(--ease); }
.dialog-wide { width: min(720px, 100%); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; color: var(--ink); }
.dialog-close:hover { border-color: var(--ink); }
.dialog-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; padding-right: 36px; }
.dialog-photo { width: 96px; height: 96px; aspect-ratio: 1; border-radius: 16px; flex: none; }
.dialog-bio { color: var(--muted); line-height: 1.75; }
.dialog-sub { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 650; margin: 24px 0 12px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.dialog-title { font-size: 1.6rem; padding-right: 40px; }
.dialog-lead { color: var(--muted); margin-top: 6px; }
.steps { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 20px 0 4px; font-size: 0.86rem; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.steps span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); font-size: 0.75rem; font-weight: 700; color: var(--ink); }
.steps li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.pentest-success, .form-success { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 24px 8px; color: var(--ok); }
.pentest-success[hidden], .form-success[hidden] { display: none; }
.pentest-success h3, .form-success h3 { color: var(--ink); }
.pentest-success p, .form-success p { color: var(--muted); max-width: 46ch; }

/* ---------- Contacto & formulários ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.info { display: grid; gap: 14px; }
.info li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.info small { display: block; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
.info span:not(.ico), .info a { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.info a { color: var(--brand); }
.promo { margin-top: 16px; padding: 28px; border-radius: 16px; background: var(--navy); color: #c5cbe0; display: grid; gap: 10px; justify-items: start; background-image: radial-gradient(400px 200px at 100% 0%, #5a3de055, transparent 70%); }
.promo svg { color: #a99bff; }
.promo h3 { color: #fff; font-size: 1.25rem; }
.promo p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 8px; }
.form-card { padding: clamp(24px, 3.4vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-m); }
.form-title { font-size: 1.35rem; margin-bottom: 20px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; transition: border-color 0.2s, box-shadow 0.2s; }
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong-hover); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 16px; border-radius: 10px; background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err-ink); font-size: 0.92rem; }
.form-error[hidden] { display: none; }
.fine { font-size: 0.82rem; color: var(--muted); margin: 14px 0; text-align: center; }
#contact-form[hidden], #pentest-form[hidden] { display: none; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy); color: #aab2c8; padding-top: clamp(56px, 7vw, 88px); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); }
.foot-brand img { height: 44px; width: auto; margin-bottom: 18px; }
.foot-brand p { font-size: 0.94rem; line-height: 1.7; max-width: 38ch; }
.status { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: #d6dbea; font-weight: 500; }
.site-footer h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; font-weight: 650; }
.site-footer ul { display: grid; gap: 10px; font-size: 0.94rem; }
.site-footer a { color: #aab2c8; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.foot-contact li { overflow-wrap: anywhere; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 64px); padding: 24px 0; border-top: 1px solid #ffffff1a; font-size: 0.88rem; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-m); transition: transform 0.2s var(--ease), border-color 0.2s; }
.to-top[hidden] { display: none; }
.to-top:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }

/* ---------- Movimento: reveal ao rolar (só com JS activo) ---------- */
@media (scripting: enabled) {
  [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
  [data-rv].in { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
  .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc-tab { flex-direction: column; align-items: flex-start; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .primary-nav, .header-cta { display: none; }
  .menu-btn { display: grid; }
  .svc-panel { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .svc-tabs, .team-grid, .pillars, .checks, .row, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-cta .btn { flex: 1 1 100%; }
  .stat { padding: 18px; }
  .dialog-head { flex-direction: column; align-items: flex-start; }
  .svc-tab { flex-direction: row; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  [data-rv] { opacity: 1; transform: none; }
}

/* ---------- Barra de pré-visualização (painel) ---------- */
.preview-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3000; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; background: var(--navy); color: #d6dbea; border-radius: 999px; box-shadow: 0 12px 40px -10px #0b1020aa; font-size: 0.9rem; max-width: calc(100% - 24px); }
.preview-bar strong { color: #fff; }
.preview-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-bar button { border: 0; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; padding: 6px 14px; }
body:has(.preview-bar) .to-top { bottom: 76px; }

/* ---------- Notícias e eventos ---------- */
.sub-title { font-size: 1.25rem; margin: 0 0 20px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--line-hover); }
.post-cover { display: block; aspect-ratio: 16 / 9; background: var(--soft); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-cover-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--brand); background: linear-gradient(135deg, var(--brand-50), var(--surface)); }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.post-meta { font-size: 0.82rem; font-weight: 600; color: var(--brand); letter-spacing: 0.02em; }
.post-body h3 { font-size: 1.15rem; line-height: 1.3; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--brand); }
.post-sum { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.post-more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 0.92rem; }
.more { margin: -8px 0 32px; font-weight: 600; }
.empty { padding: 48px 0; color: var(--muted); font-size: 1.1rem; }
.pager-pub { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-weight: 600; }

.page-head { padding: calc(var(--header) + clamp(32px, 6vw, 72px)) 0 clamp(24px, 4vw, 40px); background: linear-gradient(180deg, var(--hero-top), var(--bg)); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); margin: 10px 0 14px; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: anywhere; }
.crumbs { display: flex; gap: 8px; font-size: 0.88rem; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); font-weight: 500; }
.crumbs a:hover { color: var(--brand); }
.list-section { padding-top: clamp(32px, 5vw, 56px); }
.narrow { width: min(760px, 100% - 48px); }
.event-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 22px 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.event-meta dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 650; }
.event-meta dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; }
.entry-cover { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 16px; margin-top: 32px; border: 1px solid var(--line); }
.prose { padding: clamp(28px, 4vw, 48px) 0 24px; font-size: 1.1rem; line-height: 1.8; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.7rem; margin: 2em 0 0.6em; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 0.5em; }
.prose h4, .prose h5, .prose h6 { font-size: 1.1rem; margin: 1.6em 0 0.4em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.3em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--muted); font-size: 1.05rem; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); font-size: 0.92em; }
.prose pre { padding: 16px 18px; background: var(--navy); color: #e5e9f5; border-radius: var(--r); overflow-x: auto; font-size: 0.92rem; line-height: 1.6; }
.prose pre code { padding: 0; background: none; border: 0; color: inherit; }
.prose img { max-width: 100%; height: auto; border-radius: var(--r); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.98rem; }
.prose th, .prose td { padding: 8px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--soft); color: var(--ink); }
.back { padding: 0 0 clamp(40px, 6vw, 72px); font-weight: 600; }

@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0, 1fr); } .narrow { width: calc(100% - 32px); } .prose { font-size: 1.05rem; } }

/* ---------- Tema: alternador (claro / escuro / sistema) e logótipo ---------- */
.theme-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.theme-toggle button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); transition: background 0.2s, color 0.2s; }
.theme-toggle button:hover { color: var(--ink); background: var(--soft); }
.theme-toggle button[aria-checked="true"] { background: var(--brand-btn); color: #fff; }
.theme-toggle button:focus-visible { outline-offset: 1px; }
.header-in .theme-toggle { margin-left: 4px; }
.mobile-theme { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px; color: var(--muted); font-weight: 600; }
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s !important; }
:root[data-theme="dark"] .art-card img { filter: drop-shadow(0 18px 28px #8b73ff66); }
:root[data-theme="dark"] .person-photo img, :root[data-theme="dark"] .post-cover img, :root[data-theme="dark"] .entry-cover { filter: brightness(0.92); }
:root[data-theme="dark"] .site-footer { border-top: 1px solid var(--line); }
@media (max-width: 860px) { .header-in > .theme-toggle { display: none; } }
@media (min-width: 861px) { .mobile-theme { display: none; } }
