/* =========================================================
   PROJETOS — lista (/projetos), página do projeto e bloco
   ========================================================= */
.pj-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 40px; }
.pj-intro { max-width: 640px; margin: 0; font-size: 16.5px; line-height: 1.9; color: var(--text); }
.pj-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-filters a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--input-border, var(--border)); color: var(--heading) !important; font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transition: all .2s; }
.pj-filters a span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); font-size: 11.5px; }
.pj-filters a:hover { border-color: var(--accent); color: var(--accent) !important; }
.pj-filters a.active { background: var(--accent); border-color: var(--accent); color: #fff !important; }
.pj-filters a.active span { background: rgba(255, 255, 255, .2); color: #fff; }

/* Estado (bolinha + texto) */
.pc-status { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #1b1d21; font-family: var(--font-head); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.pc-status.inline { position: static; box-shadow: none; }
.pc-status i { width: 8px; height: 8px; border-radius: 50%; background: #9aa1a6; }
.pc-status.status-ongoing i { background: #1fae5b; box-shadow: 0 0 0 0 rgba(31, 174, 91, .6); animation: pjPulse 2s infinite; }
.pc-status.status-completed i { background: var(--accent); }
.pc-status.status-planned i { background: var(--accent-2); }
@keyframes pjPulse { 0% { box-shadow: 0 0 0 0 rgba(31, 174, 91, .55); } 70% { box-shadow: 0 0 0 7px rgba(31, 174, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 174, 91, 0); } }

/* Projeto em destaque */
.pj-featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-bottom: 34px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.pjf-media { position: relative; min-height: 380px; background: var(--bg-alt); overflow: hidden; }
.pjf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease, ease); }
.pj-featured:hover .pjf-media img { transform: scale(1.04); }
.pjf-body { padding: 40px 40px 38px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pjf-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.pjf-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); font-family: var(--font-head); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pjf-tags .pc-status { background: var(--bg-alt); color: var(--heading); }
.pjf-body h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; margin: 0 0 12px; }
.pjf-body h2 a { color: var(--heading) !important; }
.pjf-body h2 a:hover { color: var(--accent) !important; }
.pjf-body > p { font-size: 15.5px; line-height: 1.85; margin: 0 0 20px; }
.pjf-facts { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 26px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.pjf-facts div { flex: 1 1 120px; padding: 12px 16px; border-right: 1px solid var(--border); }
.pjf-facts div:last-child { border-right: 0; }
.pjf-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pjf-facts dd { margin: 0; font-weight: 600; color: var(--heading); font-size: 14px; line-height: 1.4; }
.pjf-facts dd.big { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--accent); }
.pjf-body .btn { align-self: flex-start; }

/* Grelha de cartões */
.pj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.project-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: transform .35s var(--ease, ease), box-shadow .35s, border-color .35s; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
.pc-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease, ease); }
.project-card:hover .pc-media img { transform: scale(1.06); }
.pc-ph { display: grid; place-items: center; height: 100%; color: var(--muted); }
.pc-body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.pc-area { align-self: flex-start; margin-bottom: 10px; padding: 4px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
html[data-theme="dark"] .pc-area { color: color-mix(in srgb, var(--accent) 45%, #9fe0b9); }
.pc-body h3 { font-size: 17.5px; line-height: 1.35; margin: 0 0 10px; }
.pc-body h3 a { color: var(--heading) !important; }
.pc-body h3 a:hover { color: var(--accent) !important; }
.pc-body > p { font-size: 14.5px; line-height: 1.8; margin: 0 0 16px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { list-style: none; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px dashed var(--border); display: grid; gap: 7px; font-size: 13px; color: var(--muted); }
.pc-meta li { display: flex; align-items: center; gap: 8px; }
.pc-meta .ico { color: var(--accent-2); }
.pc-link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent) !important; }
.pc-link .ico { transition: transform .25s; }
.project-card:hover .pc-link .ico { transform: translateX(4px); }

/* Faixa final */
.pj-cta { background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 92%, #000), var(--accent)); color: #fff; padding: 56px 0; }
.pj-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.pj-cta h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 6px; }
.pj-cta p { margin: 0; opacity: .9; }

/* Página do projeto */
.pj-hero { position: relative; isolation: isolate; color: #fff; padding: 90px 0 70px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 95%, #000), var(--accent)); overflow: hidden; }
.pj-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.pj-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 14, 9, .9) 0%, rgba(5, 14, 9, .7) 50%, rgba(5, 14, 9, .45) 100%), linear-gradient(0deg, rgba(5, 14, 9, .5), transparent 50%); }
.pj-hero.no-image::before { background: none; }
.pj-hero .breadcrumb { margin-bottom: 26px; }
.pj-hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pj-hero-area { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pj-hero h1 { color: #fff; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.15; max-width: 860px; margin: 0 0 16px; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.pj-hero-sum { max-width: 720px; font-size: 17px; line-height: 1.8; opacity: .92; margin: 0; }
.pj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; align-items: start; }
.pj-aside { position: sticky; top: 90px; display: grid; gap: 20px; }
.pj-facts-card { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.pj-facts-card h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.pj-logo { max-height: 70px; width: auto; margin: 0 0 18px; }
.pj-big { padding: 16px 18px; border-radius: 10px; background: var(--accent-soft); margin-bottom: 18px; }
.pj-big strong { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1; color: var(--accent); }
html[data-theme="dark"] .pj-big strong { color: color-mix(in srgb, var(--accent) 45%, #9fe0b9); }
.pj-big span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--text); }
.pj-facts-card dl { margin: 0; display: grid; }
.pj-facts-card dl div { display: grid; gap: 4px; padding: 12px 0; border-top: 1px dashed var(--border); }
.pj-facts-card dt { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pj-facts-card dt .ico { color: var(--accent-2); }
.pj-facts-card dd { margin: 0; color: var(--heading); font-weight: 600; font-size: 14.5px; }
.pj-partners { display: flex; flex-wrap: wrap; gap: 6px; }
.pj-partners span { padding: 4px 10px; border-radius: 6px; background: var(--bg-alt); font-size: 12.5px; font-weight: 600; }
.pj-donate-card { padding: 26px; border-radius: 14px; color: #fff; background: radial-gradient(240px 160px at 100% 0%, color-mix(in srgb, var(--accent-2) 50%, transparent), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--accent) 88%, #000), color-mix(in srgb, var(--accent) 62%, #000)); }
.pj-donate-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .15); margin-bottom: 14px; }
.pj-donate-card h3 { color: #fff; font-size: 18px; margin: 0 0 8px; }
.pj-donate-card p { font-size: 14px; line-height: 1.7; opacity: .9; margin: 0 0 18px; }
.pj-block { margin-top: 50px; }
.pj-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.pj-block-head h2 { font-size: 22px; margin: 0; }
.pj-block-head a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pj-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pj-photos a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--bg-alt); }
.pj-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pj-photos a:hover img { transform: scale(1.06); }
.pj-content .post-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1100px) {
    .pj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pj-layout { grid-template-columns: 1fr; gap: 36px; }
    .pj-aside { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .pj-featured { grid-template-columns: 1fr; }
    .pjf-media { min-height: 0; aspect-ratio: 16 / 9; }
    .pjf-body { padding: 26px 24px 28px; }
}
@media (max-width: 680px) {
    .pj-grid, .pj-aside { grid-template-columns: 1fr; }
    .pj-photos { grid-template-columns: repeat(2, 1fr); }
    .pj-hero { padding: 60px 0 48px; }
    .pj-content .post-grid.cols-3 { grid-template-columns: 1fr; }
    .pj-filters { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .pc-status.status-ongoing i { animation: none; }
}

.pj-grid.count-1, .pj-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pj-grid.count-1 { max-width: 640px; grid-template-columns: 1fr; }
@media (max-width: 680px) { .pj-grid.count-2 { grid-template-columns: 1fr; } }

/* =========================================================
   PÁGINA DO PROJETO — versão 2
   ========================================================= */
.pj-hero-lg { padding: 100px 0 140px; min-height: 560px; display: flex; align-items: center; }
.pj-hero-lg .pj-hero-inner { width: 100%; }
.pj-hero-lg h1 { font-size: clamp(30px, 4.6vw, 54px); letter-spacing: -.015em; }
.pj-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pj-hero-actions .btn { min-height: 48px; border-radius: var(--radius-btn, 4px); }
.pj-hero .pc-status.inline { background: rgba(255, 255, 255, .95); color: #1b1d21; }

/* Barra de números sobreposta ao cabeçalho */
.pj-statbar { position: relative; z-index: 3; display: grid; margin-top: -64px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 50px rgba(10, 20, 15, .14); overflow: hidden; }
.pj-statbar.cols-2 { grid-template-columns: repeat(2, 1fr); }
.pj-statbar.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pj-statbar.cols-4 { grid-template-columns: repeat(4, 1fr); }
.pj-stat { display: flex; align-items: center; gap: 14px; padding: 22px 24px; border-right: 1px solid var(--border); }
.pj-stat:last-child { border-right: 0; }
.pj-stat .pj-stat-ico { width: 52px; height: 52px; margin: 0; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent); }
.pj-stat .pj-stat-ico .ico { width: 24px; height: 24px; }
html[data-theme="dark"] .pj-stat .pj-stat-ico { color: color-mix(in srgb, var(--accent) 45%, #9fe0b9); }
.pj-stat strong { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--heading); line-height: 1.3; }
.pj-stat.big strong { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.pj-stat > div > span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.pj-stat.st-ongoing strong::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #1fae5b; margin-right: 8px; vertical-align: 2px; animation: pjPulse 2s infinite; }

/* Menu de secções (fica fixo ao rolar) */
.pj-subnav { position: sticky; top: 58px; z-index: 20; margin-top: 34px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.pj-subnav .container { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pj-subnav .container::-webkit-scrollbar { display: none; }
.pj-subnav a { flex-shrink: 0; padding: 16px 16px; font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted) !important; border-bottom: 2px solid transparent; }
.pj-subnav a:hover { color: var(--accent) !important; border-bottom-color: var(--accent); }
.pj-subnav .pj-subnav-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: var(--accent-2); color: #fff !important; border: 0; }
.pj-subnav .pj-subnav-cta:hover { color: #fff !important; background: color-mix(in srgb, var(--accent-2) 88%, #000); }
@media (max-width: 991px) { .pj-subnav { top: 0; } }
.pj-detail, .pj-photos-section, .pj-partners-section, #news { scroll-margin-top: 130px; }

/* Texto do projeto */
.pj-detail { padding-top: 56px; }
.pj-content .eyebrow { margin-bottom: 18px; }
.pj-prose { font-size: 16.5px; line-height: 1.95; }
.pj-prose > p:first-of-type { font-size: 18.5px; line-height: 1.8; color: var(--heading); }
/* Parágrafos que são só um negrito (títulos importados do WordPress) passam a títulos */
.pj-prose h2, .pj-prose h3 { display: block; position: relative; font-family: var(--font-head); font-size: 19px; font-weight: 800; color: var(--heading); line-height: 1.35; margin: 1.6em 0 .5em; padding-left: 16px; }
.pj-prose h2::before, .pj-prose h3::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: linear-gradient(var(--accent), var(--accent-2)); }
.pj-prose ul { list-style: none; padding-left: 0; display: grid; gap: 8px; margin: 1em 0 1.4em; }
.pj-prose ul li { position: relative; padding: 10px 14px 10px 44px; background: var(--bg-alt); border-radius: 10px; margin: 0; line-height: 1.6; }
.pj-prose ul li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat; }
.pj-prose blockquote { border-left-color: var(--accent-2); border-radius: 0 10px 10px 0; }
.pj-prose img { border-radius: 12px; }
.pj-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.pj-share strong { font-family: var(--font-head); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--heading); margin-right: 6px; }
.pj-share a, .pj-share button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--input-border, var(--border)); background: transparent; color: var(--text) !important; cursor: pointer; transition: all .2s; }
.pj-share a:hover, .pj-share button:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }

/* Ficha lateral */
.pj-logo-wrap { display: grid; place-items: center; padding: 16px; margin-bottom: 16px; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.pj-logo-wrap .pj-logo { max-height: 70px; margin: 0; }
.pc-status.flat { padding: 0; background: none !important; box-shadow: none; color: var(--heading); font-size: 13px; }

/* Mosaico de fotografias */
.pj-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 10px; }
.pj-mosaic a { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--bg-alt); cursor: zoom-in; }
.pj-mosaic a.m-big { grid-column: span 2; grid-row: span 2; }
.pj-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease, ease), filter .3s; }
.pj-mosaic a:hover img { transform: scale(1.06); filter: brightness(.9); }
.m-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 20, 13, .62); color: #fff; font-family: var(--font-head); font-size: 26px; font-weight: 800; }
.pj-block-head.center { justify-content: center; text-align: center; }
.pj-block-head .eyebrow { margin-bottom: 6px; }

/* Parceiros com logótipos */
.pj-partner-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.pj-partner { display: grid; place-items: center; width: 200px; height: 120px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: transform .3s, box-shadow .3s; }
.pj-partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.pj-partner img { max-height: 80px; width: auto; object-fit: contain; }
.pj-partner.text-only { background: var(--surface); }
.pj-partner.text-only span { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--heading); text-align: center; line-height: 1.35; }

/* Anterior / seguinte */
.pj-pager { border-top: 1px solid var(--border); background: var(--bg); }
.pj-pager-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.pj-pager-link { display: flex; align-items: center; gap: 14px; color: var(--heading) !important; min-width: 0; }
.pj-pager-link.next { justify-content: flex-end; text-align: right; }
.pj-pager-link img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.pj-pager-link small { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pj-pager-link.next small { justify-content: flex-end; }
.pj-pager-link strong { display: block; font-family: var(--font-head); font-size: 15px; line-height: 1.35; margin-top: 3px; }
.pj-pager-link:hover strong { color: var(--accent); }
.pj-pager-all { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--input-border, var(--border)); color: var(--heading) !important; }
.pj-pager-all:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }

@media (max-width: 1100px) {
    .pj-statbar.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .pj-statbar.cols-4 .pj-stat:nth-child(2) { border-right: 0; }
    .pj-statbar.cols-4 .pj-stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .pj-mosaic { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
    .pj-hero-lg { padding: 70px 0 110px; min-height: 0; }
    .pj-statbar.cols-2, .pj-statbar.cols-3, .pj-statbar.cols-4 { grid-template-columns: 1fr 1fr; margin-top: -50px; }
    .pj-stat { padding: 16px; gap: 10px; flex-direction: column; align-items: flex-start; border-bottom: 1px solid var(--border); }
    .pj-stat:nth-child(2n) { border-right: 0; }
    .pj-stat .pj-stat-ico { width: 44px; height: 44px; border-radius: 12px; }
    .pj-stat .pj-stat-ico .ico { width: 21px; height: 21px; }
    .pj-stat.big strong { font-size: 21px; }
    .pj-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
    .pj-pager-inner { grid-template-columns: 1fr 1fr; }
    .pj-pager-all { display: none; }
    .pj-pager-link img { display: none; }
    .pj-partner { width: calc(50% - 9px); height: 100px; }
    .pj-prose { font-size: 15.5px; }
    .pj-prose > p:first-of-type { font-size: 17px; }
}

/* =========================================================
   LISTA DE PROJETOS — resumo em números e apelo final
   ========================================================= */
.pj-stats { list-style: none; padding: 0; margin: -10px 0 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); overflow: hidden; }
.pj-stats li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 20px 22px; border-right: 1px solid var(--border); }
.pj-stats li:last-child { border-right: 0; }
.pj-stats-ico { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
html[data-theme="dark"] .pj-stats-ico { color: color-mix(in srgb, var(--accent) 45%, #9fe0b9); }
.pj-stats strong { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--heading); letter-spacing: -.01em; }
.pj-stats small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.pj-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pj-cta-list { position: relative; overflow: hidden; }
.pj-cta-list::after { content: ""; position: absolute; right: -90px; top: -110px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(255, 255, 255, .05); pointer-events: none; }
.pj-cta-list .pj-cta-inner { position: relative; z-index: 1; }
@media (max-width: 900px) {
    .pj-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pj-stats li:nth-child(2) { border-right: 0; }
    .pj-stats li:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 520px) {
    .pj-stats li { padding: 16px; gap: 10px; }
    .pj-stats strong { font-size: 22px; }
    .pj-cta-actions, .pj-cta-actions .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   PÁGINA DO PROJETO — versão 3
   ========================================================= */
/* Cabeçalho dividido: texto sobre fundo verde-escuro sólido, fotografia inteira à direita */
.pj-hero-split { background: linear-gradient(120deg, #0b2015, #123522); }
.pj-hero-split .pj-hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: -2; overflow: hidden; }
.pj-hero-split .pj-hero-media .pj-hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.pj-hero-split::before { background:
    linear-gradient(90deg, #0b2015 0%, #0b2015 38%, rgba(11, 32, 21, .82) 46%, rgba(11, 32, 21, .35) 64%, rgba(11, 32, 21, .08) 100%),
    linear-gradient(0deg, rgba(11, 32, 21, .55) 0%, rgba(11, 32, 21, 0) 34%); }
.pj-hero-split.no-image::before { background: radial-gradient(600px 300px at 85% 20%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%); }
.pj-hero-split .pj-hero-text { max-width: 600px; }
.pj-hero-split h1 { font-size: clamp(30px, 4vw, 50px); }
.pj-hero-split .pj-hero-sum { font-size: 17px; }
.pj-hero-partners { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 560px; }
.pj-hero-partners span { display: block; margin-bottom: 2px; font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }

/* Texto: frase de abertura em destaque, listas e títulos com âncora */
.pj-lead-title { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; letter-spacing: -.01em; margin: 0 0 22px; color: var(--heading); text-transform: none; }
.pj-prose > h2:first-child, .pj-prose > h3:first-child { margin-top: 0; }
.pj-prose li > p { margin: 0; }
.pj-prose h2[id], .pj-prose h3[id] { scroll-margin-top: 130px; }
.pj-prose h2 { font-size: 21px; margin-top: 1.9em; }
.pj-prose h4 { font-size: 15px; margin: 1.4em 0 .5em; color: var(--heading); }
.pj-prose blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--accent-soft); border-left: 4px solid var(--accent-2); font-style: normal; }
.pj-prose blockquote p { margin: 0; }
.pj-facts-big { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--accent); margin-right: 4px; }
html[data-theme="dark"] .pj-facts-big { color: color-mix(in srgb, var(--accent) 45%, #9fe0b9); }

/* Coluna lateral: a ficha e o apoio passam; o índice fica fixo ao rolar */
.pj-detail .pj-aside { position: static; align-self: stretch; align-content: start; }
.pj-toc { position: sticky; top: 130px; padding: 22px 22px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.pj-toc h3 { margin: 0 0 12px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pj-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: grid; gap: 2px; }
.pj-toc li { counter-increment: toc; margin: 0; }
.pj-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 4px; padding: 8px 10px; border-radius: 8px; font-size: 14px; line-height: 1.4; color: var(--text) !important; transition: background .2s, color .2s; }
.pj-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-head); font-size: 11.5px; font-weight: 800; color: var(--accent-2); padding-top: 2px; }
.pj-toc a:hover { background: var(--accent-soft); color: var(--heading) !important; }

/* Fotografias: abrem o álbum no visualizador da galeria */
.pj-photos-all { display: inline-flex; align-items: center; gap: 8px; }
.pj-mosaic a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }

/* Apelo final do projeto: doar ou ser parceiro */
.pj-cta-project { position: relative; overflow: hidden; }
.pj-cta-project::after { content: ""; position: absolute; right: -90px; top: -110px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(255, 255, 255, .05); pointer-events: none; }
.pj-cta-project .pj-cta-inner { position: relative; z-index: 1; }
.pj-cta-kicker { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.pj-cta-project .pj-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 991px) {
    .pj-toc { position: static; }
}
@media (max-width: 900px) {
    .pj-hero-split .pj-hero-media { width: 100%; }
    .pj-hero-split::before { background: linear-gradient(0deg, rgba(11, 32, 21, .9) 0%, rgba(11, 32, 21, .72) 60%, rgba(11, 32, 21, .55) 100%); }
    .pj-hero-split .pj-hero-text { max-width: none; }
}
@media (max-width: 520px) {
    .pj-cta-project .pj-cta-actions, .pj-cta-project .pj-cta-actions .btn { width: 100%; justify-content: center; }
    .pj-lead-title { font-size: 21px; }
}
