/* Centro Sócio-Pastoral Nossa Senhora da Conceição — Mãe Luiza
   Telas que deslizam umas sobre as outras e conteúdo revelado ao rolar (inspirado no site do Visão 360). */

:root {
  --navy: #0f1d33;
  --navy-2: #172a47;
  --navy-3: #22385c;
  --ink: #1b2433;
  --muted: #5b6676;
  --paper: #fbf8f2;
  --paper-2: #f3eee4;
  --card: #ffffff;
  --line: #e6dfd1;
  --sun: #f6c81e;
  --sun-2: #ffd84d;
  --sun-soft: #fff3c4;
  --green: #2e8b57;
  --orange: #e8742a;
  --sky: #2f7fd1;
  --rose: #d2456b;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 29, 51, .10);
  --shadow-lg: 0 24px 60px rgba(15, 29, 51, .22);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --top: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
h1, h2, h3, h4, .h1, .h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; color: inherit; letter-spacing: -.01em; }
h1, .h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3, .h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 40px); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--sun); color: var(--navy); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- botões, chips, rótulos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: .95rem; text-decoration: none; line-height: 1.2; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }
.btn-lg { padding: 1em 1.8em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-sun { background: var(--sun); color: var(--navy); box-shadow: 0 8px 22px rgba(246, 200, 30, .35); }
.btn-sun:hover { background: var(--sun-2); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.kicker { display: inline-block; font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: .8em; }
.kicker-sun { color: var(--sun); }
.pill { display: inline-block; padding: .45em 1em; border-radius: 999px; background: rgba(246, 200, 30, .16); border: 1px solid rgba(246, 200, 30, .55); color: var(--sun-2); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.2rem; }
.chip { display: inline-block; padding: .2em .7em; border-radius: 999px; background: var(--sun-soft); color: #6b4e00; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.chip-sun { background: var(--sun); color: var(--navy); }
.chip-warn { background: #ffe1d6; color: #9a3412; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); }
.f-muted { color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy-3); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-light, .link-btn.link-light { color: var(--sun-2); }
.more { font-weight: 700; text-decoration: none; color: var(--navy-3); }
.more:hover { color: var(--orange); }

/* ---------- topo ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--top); color: #fff; transition: background .3s ease, box-shadow .3s ease, height .3s ease; }
.topbar.is-solid, .inner .topbar { background: rgba(15, 29, 51, .94); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.topbar-in { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand img { width: 46px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-size: 1.08rem; }
.brand small { font-size: .74rem; opacity: .75; letter-spacing: .04em; }
.brand:hover { color: var(--sun-2); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, .88); text-decoration: none; font-weight: 600; font-size: .9rem; padding: .5em .7em; border-radius: 10px; }
.nav a:hover, .nav a.is-here { color: var(--navy); background: var(--sun); }
.top-cta { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #fff; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn:hover { background: #fff; color: var(--navy); }
.menu-btn { display: none; }

/* ---------- telas empilhadas ---------- */
.stack { position: relative; background: var(--navy); }
.stack-panel { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; display: flex; align-items: center; color: #fff; transform-origin: 50% 20%; will-change: transform, filter; background: var(--navy); }
.stack-panel:not(:first-child) { box-shadow: 0 -30px 60px rgba(0, 0, 0, .35); border-radius: 28px 28px 0 0; }
.panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.panel-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 38, .92) 0%, rgba(10, 20, 38, .72) 42%, rgba(10, 20, 38, .18) 100%), linear-gradient(0deg, rgba(10, 20, 38, .55), transparent 40%); }
.panel-copy { position: relative; z-index: 2; padding-top: var(--top); }
.panel-copy h1, .panel-copy .h1 { max-width: 13ch; color: #fff; }
.panel-copy h1 em, .panel-copy .h1 em { display: block; font-style: italic; font-weight: 500; color: var(--sun); }
.panel-copy .lead { color: rgba(255, 255, 255, .86); max-width: 52ch; margin: 1.2rem 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.panel-count { position: absolute; right: 28px; bottom: 26px; z-index: 2; font-weight: 700; letter-spacing: .12em; font-size: .8rem; color: rgba(255, 255, 255, .7); }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; z-index: 2; width: 30px; height: 50px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 20px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--sun); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- seções ---------- */
main > section, .section { position: relative; z-index: 2; }
.section { padding: clamp(70px, 9vw, 120px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 56px); }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 34px; }
.row-head h2 { margin: 0; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

.sec-help { background: var(--paper); border-radius: 28px 28px 0 0; margin-top: -28px; }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.area:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.area h3 { font-size: 1.3rem; margin: 18px 0 8px; }
.area p { color: var(--muted); font-size: .97rem; }
.area-ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--sun-soft); color: #8a6400; }
.area-ic svg { width: 30px; height: 30px; }
.ic-esporte { background: #e3f3ea; color: var(--green); }
.ic-educacao { background: #e2eefb; color: var(--sky); }
.ic-protecao, .ic-coracao { background: #fde7dc; color: var(--orange); }
.ic-musica { background: #f9e1e8; color: var(--rose); }
.help-cta { margin-top: 46px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 30px 34px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.big-quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); font-style: italic; margin: 0; }
.help-cta .btn-navy { background: var(--sun); color: var(--navy); }

.stats-band { background: var(--sun); color: var(--navy); padding: 54px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(3rem, 7vw, 5rem); line-height: 1; }
.stat > span { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.about-media { position: relative; margin: 0; position: sticky; top: calc(var(--top) + 30px); }
.about-img { width: 100%; border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.since-badge { position: absolute; left: -18px; bottom: 28px; background: var(--sun); color: var(--navy); font-family: var(--serif); font-weight: 700; font-size: 1.3rem; padding: 14px 22px; border-radius: 16px; box-shadow: var(--shadow); }
.clamp { position: relative; max-height: 22em; overflow: hidden; transition: max-height .5s ease; }
.clamp-sm { max-height: 12.5em; }
.clamp-xs { max-height: 7.5em; }
.clamp::after { content: ''; position: absolute; inset: auto 0 0 0; height: 5em; background: linear-gradient(transparent, var(--fade, var(--paper))); pointer-events: none; transition: opacity .3s; }
.clamp.is-open { max-height: none; }
.clamp.is-open::after, .clamp.no-clamp::after { opacity: 0; }
.clamp.no-clamp + .link-btn { display: none; }

.mission { margin-top: clamp(60px, 8vw, 110px); background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 70px); position: relative; overflow: hidden; }
.mission::before { content: '“'; position: absolute; right: 30px; top: -40px; font-family: var(--serif); font-size: 18rem; color: rgba(246, 200, 30, .12); line-height: 1; }
.mission h2 { max-width: 24ch; color: #fff; }
.mission blockquote { margin: 26px 0 0; padding-left: 22px; border-left: 4px solid var(--sun); }
.mission blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.mission blockquote footer { color: rgba(255, 255, 255, .75); display: flex; flex-direction: column; }
.mission blockquote footer strong { color: var(--sun); }

.board { margin-top: clamp(60px, 8vw, 100px); }
.board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.person { display: grid; grid-template-columns: 130px 1fr; gap: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.person img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; border: 4px solid var(--sun-soft); }
.person h4 { font-size: 1.25rem; margin-bottom: .4em; }
.person p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- atividades: cartões empilhados ---------- */
.sec-acts { background: var(--paper-2); --fade: #fff; }
.act-stack { display: grid; gap: 34px; }
.act-card { position: sticky; top: calc(var(--top) + 18px); display: grid; grid-template-columns: 1fr 1.08fr; min-height: min(78vh, 640px); background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transform-origin: 50% 0; will-change: transform; }
.act-media { position: relative; background: var(--navy); }
.act-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.act-num { position: absolute; left: 22px; top: 18px; font-family: var(--serif); font-size: 4.2rem; font-weight: 700; color: #fff; text-shadow: 0 4px 20px rgba(0, 0, 0, .45); line-height: 1; }
.act-body { padding: clamp(24px, 3.5vw, 44px); overflow: auto; }
.act-body header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.act-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; background: #fff; border: 1px solid var(--line); padding: 4px; flex-shrink: 0; }
.act-body h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.tag { margin: 4px 0 0; color: var(--orange); font-weight: 700; font-size: .92rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 18px; }
.g-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--paper-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.g-item:hover img { transform: scale(1.08); }
.g-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15, 29, 51, .62); color: #fff; font-weight: 800; font-size: 1.2rem; }

/* ---------- destaques (carrossel) ---------- */
.sec-banners { padding-bottom: 60px; }
.car-nav { display: flex; gap: 8px; }
.car-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-size: 1.5rem; line-height: 1; }
.car-btn:hover { background: var(--navy); color: #fff; }
.carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(20px, calc((100vw - 1180px) / 2)) 24px; scrollbar-width: thin; }
.banner { flex: 0 0 min(760px, 86vw); scroll-snap-align: center; margin: 0; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.banner img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.banner figcaption { padding: 14px 20px; font-weight: 600; color: var(--muted); font-size: .95rem; }
.banner a { display: block; }

/* ---------- notícias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.nc-media { display: block; aspect-ratio: 4 / 3; background: var(--paper-2) url('../img/icon-192.png') center / 64px no-repeat; overflow: hidden; }
.nc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .nc-media img { transform: scale(1.05); }
.nc-body { padding: 20px 22px 24px; }
.nc-body time { font-size: .82rem; color: var(--muted); margin-left: 6px; }
.nc-body h3, .nc-body .h3 { font-size: 1.22rem; margin: 10px 0 8px; }
.nc-body h3 a, .nc-body .h3 a { color: var(--ink); text-decoration: none; }
.nc-body h3 a:hover, .nc-body .h3 a:hover { color: var(--orange); }
.nc-body p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- faixa ---------- */
.cta-band { background: var(--navy); color: #fff; padding: clamp(60px, 8vw, 100px) 0; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255, 255, 255, .8); }
.cta-img { width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .4)); }

/* ---------- 40 anos ---------- */
.sec-40 { background: linear-gradient(180deg, #0c1729 0%, var(--navy) 35%, #1a3154 100%); color: #fff; --fade: #142846; border-top: 1px solid rgba(255,255,255,.06); }
.sec-40 h2, .sec-40 h3 { color: #fff; }
.y40-head { display: flex; align-items: center; gap: clamp(18px, 4vw, 40px); margin-bottom: 40px; }
.y40-num { font-family: var(--serif); font-weight: 700; font-size: clamp(6rem, 16vw, 12rem); line-height: .8; color: var(--sun); }
.y40-date { color: var(--sun-2); font-weight: 700; font-size: 1.1rem; margin: 0; }
.y40-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.prose-dark { color: rgba(255, 255, 255, .86); }
.prose-dark a { color: var(--sun-2); }
.prose-dark strong { color: #fff; }
.video { margin: 0; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow-lg); }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s; }
.yt:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; background: var(--sun); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.yt-play::after { content: ''; position: absolute; left: 31px; top: 23px; border: 16px solid transparent; border-left: 24px solid var(--navy); border-right: 0; }
.yt iframe, .video iframe { width: 100%; height: 100%; border: 0; aspect-ratio: 16 / 9; }
.video-cap { margin-top: 12px; color: rgba(255, 255, 255, .7); font-weight: 600; }
.prog-title { margin-top: 56px; }
.program { display: grid; gap: 12px; }
.prog { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 0 22px; }
.prog summary { display: flex; gap: 20px; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; }
.prog summary::-webkit-details-marker { display: none; }
.prog summary::after { content: '+'; margin-left: auto; font-size: 1.6rem; color: var(--sun); transition: transform .3s; }
.prog[open] summary::after { transform: rotate(45deg); }
.prog-date { flex-shrink: 0; background: var(--sun); color: var(--navy); font-weight: 800; padding: 6px 12px; border-radius: 10px; font-size: .9rem; }
.prog-name { font-weight: 700; display: flex; flex-direction: column; }
.prog-name small { font-weight: 500; color: rgba(255, 255, 255, .65); }
.prog .prose { padding-bottom: 18px; }
.y40-after { margin-top: 30px; max-width: 820px; }
.book { margin-top: 70px; display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 26px; padding: clamp(24px, 4vw, 44px); }
.book-cover { width: 100%; border-radius: 10px; box-shadow: 0 30px 50px rgba(0, 0, 0, .5); transform: rotate(-3deg); }
.author { display: grid; grid-template-columns: 88px 1fr; gap: 18px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.author-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.author strong { color: var(--sun); font-size: 1.15rem; }
.y40-logo { margin-top: 40px; display: flex; justify-content: center; }
.cv-logo { max-width: 360px; background: #fff; border-radius: 18px; padding: 16px; }

/* ---------- repositório ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button, .filters a { border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: .45em 1.1em; font-weight: 700; font-size: .88rem; text-decoration: none; }
.filters .is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.filters-light a { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.filters-light a.is-on { background: var(--sun); border-color: var(--sun); color: var(--navy); }
.repo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.repo { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.repo-cover { background: linear-gradient(135deg, var(--paper-2), #fff); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; }
.repo-cover img { max-height: 100%; width: auto; border-radius: 6px; box-shadow: 0 14px 30px rgba(15, 29, 51, .2); }
.repo-cover video { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; background: #000; }
.repo-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.repo-body h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.repo-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.repo-body .btn { align-self: flex-start; }

/* ---------- parceiros ---------- */
.sec-partners { background: var(--paper-2); --fade: var(--paper-2); }
.partners { display: grid; gap: 40px; }
.partner { display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 4vw, 50px); align-items: start; }
.partner:nth-child(even) { grid-template-columns: 1fr 340px; }
.partner:nth-child(even) .partner-media { order: 2; }
.partner-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); }
.partner-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* ---------- doação ---------- */
.donate-banner img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); }
.donate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.don-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.don-card h3 { margin: 16px 0 6px; }
.don-pix { background: var(--navy); color: #fff; border-color: var(--navy); }
.don-pix h3 { color: #fff; }
.don-pix .f-muted { color: rgba(255, 255, 255, .7); }
.pix-badge { display: inline-block; background: #32bcad; color: #fff; font-weight: 800; letter-spacing: .1em; padding: 8px 14px; border-radius: 12px; }
.pix-key { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; }
.pix-key code { font-size: 1.15rem; font-weight: 700; color: var(--sun); letter-spacing: .04em; }
.pix-key .btn-navy { background: var(--sun); color: var(--navy); }
.help-form { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }

/* ---------- formulários ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form label, .login-form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=url], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .75em .95em; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(34, 56, 92, .12); }
.form .btn { justify-self: start; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #b42318; }

/* ---------- contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.ci { width: 28px; flex-shrink: 0; }
.map { position: sticky; top: calc(var(--top) + 24px); }
.map-load, .map iframe { width: 100%; aspect-ratio: 4 / 3.4; border: 0; border-radius: 24px; box-shadow: var(--shadow-lg); }
.map-load { display: grid; place-content: center; gap: 6px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; text-align: center; padding: 20px; }
.map-load span { font-size: 1.3rem; font-weight: 800; }
.map-load small { opacity: .8; }

/* ---------- rodapé ---------- */
.footer { background: #0a1424; color: rgba(255, 255, 255, .8); padding: 70px 0 0; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr .8fr; gap: 36px; }
.footer h3 { font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.footer a { color: #fff; }
.f-brand img { width: 120px; margin-bottom: 14px; }
.f-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.f-news { display: grid; gap: 10px; }
.f-news .btn { justify-self: start; }
.footer .f-muted { color: rgba(255, 255, 255, .6); }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.social a { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; }
.social a:hover { background: var(--sun); color: var(--navy); }
.social svg { width: 22px; height: 22px; }
.f-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 26px 0; margin-top: 50px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* ---------- páginas internas ---------- */
.inner-main { padding-top: var(--top); }
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, #1d3a62 100%); color: #fff; padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 6vw, 70px); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 22ch; }
.page-hero .lead { color: rgba(255, 255, 255, .8); }
.search { display: flex; gap: 10px; max-width: 620px; margin: 22px 0 18px; }
.search input { border-color: transparent; }
.pager { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 46px; font-weight: 700; }
.empty { text-align: center; color: var(--muted); font-size: 1.1rem; }
.article-hero .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 18px 0 14px; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.back { color: var(--sun-2); font-weight: 700; text-decoration: none; }
.article-body { padding: 40px 0 70px; }
.article-cover { margin: -10px 0 30px; }
.article-cover img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--paper-2); border-radius: 22px; box-shadow: var(--shadow); }
.prose { font-size: 1.06rem; }
.prose img { border-radius: 14px; margin: 1em auto; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
.prose blockquote { margin: 1.4em 0; padding: .4em 0 .4em 1.2em; border-left: 4px solid var(--sun); font-family: var(--serif); font-style: italic; font-size: 1.2em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose > div { margin-bottom: 1em; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 1.4em 0; }
.img-grid .g-item img { margin: 0; border-radius: 0; }
.share { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 40px 0 26px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 700; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prevnext a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.prevnext a small { color: var(--orange); font-weight: 800; }
.pn-next { text-align: right; }
.sec-related { background: var(--paper-2); padding-top: 60px; }

/* ---------- visualizador de fotos e janelas ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 10, 20, .94); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; }
.lightbox figure { margin: 0; display: grid; place-items: center; height: 100vh; padding: 50px 0; }
.lightbox img { max-height: calc(100vh - 120px); max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { margin-top: 10px; color: rgba(255, 255, 255, .7); font-size: .9rem; }
.lightbox button { background: rgba(255, 255, 255, .1); border: 0; color: #fff; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; justify-self: center; }
.lightbox button:hover { background: var(--sun); color: var(--navy); }
.lb-close { position: absolute; right: 18px; top: 18px; }
.lightbox::backdrop, .dlg::backdrop { background: rgba(5, 10, 20, .7); backdrop-filter: blur(3px); }
.dlg { border: 0; border-radius: 22px; padding: 0; width: min(420px, 100% - 32px); box-shadow: var(--shadow-lg); color: var(--ink); }
.dlg-x { position: absolute; right: 10px; top: 8px; margin: 0; }
.dlg-x button { border: 0; background: none; font-size: 1.8rem; color: var(--muted); width: 40px; height: 40px; border-radius: 50%; }
.dlg-x button:hover { background: var(--paper-2); }
.login-form { display: grid; gap: 14px; padding: 34px 30px 28px; text-align: left; }
.login-form img { justify-self: center; background: var(--navy); border-radius: 16px; padding: 6px; width: 64px; }
.login-form h2 { text-align: center; font-size: 1.6rem; margin: 0; }
.login-form > p.f-muted { text-align: center; margin: 0 0 4px; font-size: .92rem; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .nav { display: none; position: fixed; inset: var(--top) 0 auto 0; flex-direction: column; background: rgba(15, 29, 51, .98); padding: 12px 20px 24px; gap: 2px; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.05rem; padding: .8em .6em; }
  .menu-btn { display: inline-grid; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .stack-panel { position: relative; height: auto; min-height: 100svh; border-radius: 0 !important; }
  .about-grid, .cta-grid, .y40-grid, .contact-grid, .book { grid-template-columns: 1fr; }
  .about-media, .map { position: relative; top: 0; }
  .act-card { grid-template-columns: 1fr; position: relative; top: 0; min-height: 0; }
  .act-media { aspect-ratio: 16 / 10; }
  .partner, .partner:nth-child(even) { grid-template-columns: 1fr; }
  .partner:nth-child(even) .partner-media { order: 0; }
  .partner-media img { aspect-ratio: 16 / 10; }
  .news-grid, .repo-grid, .donate-grid, .board-grid { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: 1fr; text-align: center; }
  .person img { margin: 0 auto; }
  .book-cover { max-width: 240px; margin: 0 auto; }
  .stats { grid-template-columns: 1fr; gap: 30px; }
  .since-badge { left: 12px; }
  .brand small { display: none; }
}
@media (max-width: 600px) {
  .wrap, .wrap-narrow { width: calc(100% - 32px); }
  .areas, .news-grid, .repo-grid, .donate-grid, .board-grid, .footer-grid, .prevnext { grid-template-columns: 1fr; }
  .top-cta .btn-sun { display: none; }
  .brand strong { font-size: .98rem; }
  .panel-count { display: none; }
  .help-cta { padding: 24px; }
  .search { flex-direction: column; }
  .lightbox[open] { grid-template-columns: 46px 1fr 46px; }
  .lightbox button { width: 40px; height: 40px; font-size: 1.5rem; }
  .pn-next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .stack-panel, .act-card { transform: none !important; filter: none !important; }
  .scroll-hint span { animation: none; }
}

/* ---------- modo edição: tudo estático ---------- */
body.cms .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
body.cms .stack-panel { position: relative; transform: none !important; filter: none !important; height: auto; min-height: 640px; border-radius: 0; }
body.cms .act-card { position: relative; top: 0; transform: none !important; }
body.cms .about-media, body.cms .map { position: relative; top: 0; }
body.cms .scroll-hint span { animation: none; }
body.cms .clamp { max-height: none; }
body.cms .clamp::after { display: none; }
body.cms [data-clamp-toggle] { display: none; }
body.cms .gallery [hidden] { display: block !important; }
body.cms .g-more { display: none; }
