:root{--navy:#08294e;--navy2:#123e72;--gold:#e5b743;--light:#f4f7fb;--ink:#14243a;--muted:#617187;--line:#dbe3ee;--red:#a52734;--ok:#13634a}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--light);color:var(--ink);font:16px/1.55 system-ui,-apple-system,Segoe UI,Arial,sans-serif}a{color:#174f9a}.wrap{width:min(1110px,94vw);margin:0 auto}.site-header{background:linear-gradient(130deg,#051a32,var(--navy2));color:white;border-bottom:4px solid var(--gold)}.head{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:12px 0}.brand{display:flex;align-items:center;gap:12px;color:white;text-decoration:none}.brand img{object-fit:contain;border-radius:6px}.brand span{display:grid;line-height:1.25}.brand strong{font-size:21px;letter-spacing:.5px}.brand small{font-size:12px;color:#e3e9f0}.nav{display:flex;align-items:center;gap:17px;flex-wrap:wrap}.nav a{color:#fff;text-decoration:none;font-weight:600;font-size:14px}.nav a:hover{text-decoration:underline}.hero{background:linear-gradient(125deg,#082b55 30%,#174774);padding:40px 36px 45px;border-radius:0 0 22px 22px;color:#fff;position:relative;overflow:hidden}.hero:after{content:'';position:absolute;right:-10%;top:-20%;width:38%;height:140%;border-radius:50%;border:28px solid rgba(229,183,67,.35);transform:rotate(-20deg)}.hero .eyebrow{letter-spacing:1.8px;font-size:12px;font-weight:800;color:#ffe09a}.hero h1{font-size:clamp(27px,4vw,47px);line-height:1.1;margin:10px 0;max-width:750px}.hero p{max-width:760px;font-size:16px;color:#f0f4fa}.progress-box,.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:25px;box-shadow:0 12px 32px rgba(13,44,79,.07);margin:24px 0}.progress-box{margin-top:-13px;position:relative}.progress-numbers{display:flex;justify-content:space-between;flex-wrap:wrap;gap:18px}.progress-numbers>div,.summary>div{display:grid;gap:4px}.progress-numbers span,.summary span,.beneficiary span{font-size:13px;color:var(--muted)}.progress-numbers strong{font-size:clamp(19px,2.8vw,28px);color:var(--navy)}.progress-track{height:19px;margin-top:18px;overflow:hidden;border-radius:30px;background:#e5ecf5}.progress-track>div{height:100%;background:linear-gradient(90deg,#eaa825,#fbd66b);border-radius:30px;min-width:0}.progress-box p{color:var(--muted);margin-bottom:0;font-size:13px}.card h2{margin:0 0 12px;color:var(--navy);font-size:27px}.card h3{color:var(--navy);margin:25px 0 8px}.card.center{text-align:center}.buttons{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 20px;background:var(--gold);color:#13243d;text-decoration:none;border:0;border-radius:9px;font-weight:800;cursor:pointer;line-height:1.2}.btn:hover{filter:brightness(.96)}.btn.secondary{background:white;color:var(--navy);border:2px solid #274f81}.form-card{max-width:590px;margin:24px auto}.card form{display:grid;gap:14px}label{display:grid;gap:6px;font-size:14px;font-weight:700;color:var(--ink)}input,textarea{font:inherit;width:100%;border:1px solid #bac9dc;border-radius:8px;padding:11px;color:var(--ink);background:white}input:focus,textarea:focus{outline:3px solid #d9ebff;border-color:#1859a0}textarea{overflow-wrap:anywhere}.muted{font-size:13px;color:var(--muted)}.notice{background:#e8f8f1;border:1px solid #abddc8;border-radius:9px;margin:16px 0;padding:14px;color:#124931}.notice.error{background:#fff0f1;border-color:#ecb2b7;color:#9d2634}.summary{display:flex;flex-wrap:wrap;gap:32px;background:#f2f6fc;padding:18px;border-radius:12px;margin:16px 0}.summary strong{font-size:23px;color:var(--navy)}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px;min-width:720px}th,td{padding:12px 9px;text-align:left;border-bottom:1px solid var(--line)}th{background:#f0f5fb;color:#253a54}td{vertical-align:top}.state{font-weight:700;font-size:12px}.state.confirmado{color:var(--ok)}.state.aguardando,.state.informado{color:#806018}.state.cancelado{color:var(--red)}.pix-box{display:flex;gap:20px;align-items:center;flex-wrap:wrap;border:1px solid var(--line);padding:17px;border-radius:12px;margin:20px 0}#qr-code{min-width:220px;min-height:220px;display:grid;place-items:center;background:#fff;border:1px dashed var(--line);padding:12px}.copy-zone{flex:1;min-width:250px}.copy-zone textarea{height:100px}.copy-zone button{margin-top:10px}.beneficiary{display:grid;background:#f4f7fb;padding:14px;border-radius:8px;margin:15px 0}.subcard{padding:18px;background:#f4f8fd;border-radius:12px;border:1px solid var(--line)}.footer{padding:28px 0;margin-top:35px;background:#071c33;color:white}.footer small{font-size:12px;color:#c3d0e0}.footer .wrap{line-height:1.8}@media(max-width:720px){.head{flex-direction:column;align-items:flex-start}.nav{gap:13px}.hero{padding:32px 20px}.progress-numbers{flex-direction:column;gap:9px}.progress-box,.card{padding:19px}.progress-numbers strong{font-size:22px}}

/* PROGRESSO VISUAL DO TEMPLO — avanço simbólico da arrecadação */
.building-section{border-radius:20px;background:#071d38;color:#fff;padding:22px;margin:24px 0;border:1px solid #26456e;box-shadow:0 14px 36px rgba(8,29,56,.18)}
.building-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.building-heading .eyebrow{font-weight:800;color:#f5c661;letter-spacing:.12em;font-size:12px}
.building-heading h2{margin:5px 0 7px;font-size:clamp(22px,3vw,32px);line-height:1.17}
.building-heading p{margin:0;font-size:13px;color:#c9d7e6;max-width:680px}
.building-percent{text-align:right;min-width:140px}
.building-percent>span{display:block;font-size:clamp(32px,4vw,46px);font-weight:900;color:#fdd56e;line-height:1}
.building-percent small{font-size:11px;color:#d7e4f2}
.temple-shell{aspect-ratio:3/2;position:relative;overflow:hidden;border-radius:15px;background:#123454;border:1px solid #42638a;isolation:isolate}
.temple-shell img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.temple-draft{filter:grayscale(1) brightness(.42) contrast(1.1) sepia(.15);opacity:.9}
.temple-complete{clip-path:inset(calc(100% - var(--reveal,0%)) 0 0 0);transition:clip-path 1.4s cubic-bezier(.25,.8,.25,1)}
.temple-grid{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,transparent 99.5%,#b6e0ff1e 100%),linear-gradient(transparent 99.5%,#b6e0ff1e 100%);background-size:50px 50px;mask-image:linear-gradient(to bottom,#0007,transparent 80%)}
.temple-bottom{position:absolute;left:0;bottom:0;right:0;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 22px;color:#fff;font-size:clamp(11px,1.5vw,17px);background:linear-gradient(to top,rgba(3,14,30,.90),rgba(3,14,30,.14));font-weight:700}
.temple-bottom strong{color:#fbd06c;font-size:clamp(14px,2vw,23px);white-space:nowrap}
.building-footer{display:flex;justify-content:space-between;gap:8px;margin-top:12px;color:#ccdef3;font-size:11px}
.building-note{color:#b7cce4;margin:12px 0 0}
.state.aprovado{color:var(--ok)}.state.em_aberto,.state.pendente{color:#806018}
@media(max-width:670px){.building-heading{align-items:flex-start;flex-direction:column}.building-percent{text-align:left}.building-footer{font-size:9px;flex-wrap:wrap}.temple-bottom{padding:10px}.temple-shell{aspect-ratio:1.4}}
@media(prefers-reduced-motion:reduce){.temple-complete{transition:none}}

.temple-shell.payment-pulse{animation:temple-pulse 1.6s ease-out}
@keyframes temple-pulse{0%{box-shadow:0 0 0 rgba(255,214,100,0)}30%{box-shadow:0 0 0 5px rgba(255,214,100,.85),0 0 40px #ffd46a66}100%{box-shadow:0 0 0 8px rgba(255,214,100,0)}}
@media(prefers-reduced-motion:reduce){.temple-shell.payment-pulse{animation:none}}


/* Galeria do projeto — exibida somente no painel autenticado do contribuinte */
.temple-photos{margin:26px 0 20px;border-top:1px solid var(--line);padding-top:25px}
.temple-photos-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:17px}
.temple-photos-kicker{color:#ad7a0d;letter-spacing:.13em;font-size:12px;font-weight:850}
.temple-photos-heading h3{font-size:clamp(19px,2.5vw,25px);margin:6px 0;color:var(--navy)}
.temple-photos-heading p{margin:0;max-width:340px;color:var(--muted);font-size:13px}
.temple-photos-grid{display:grid;grid-template-columns:minmax(0,1.23fr) minmax(0,1fr);gap:17px}
.temple-photo{margin:0;border:1px solid #d9e3ef;border-radius:14px;overflow:hidden;background:#f9fbfe;box-shadow:0 9px 22px rgba(6,29,62,.07)}
.temple-photo>a{display:block;color:inherit;outline-offset:3px}
.temple-photo-media{height:340px;background:#061d3a;display:grid;place-items:center;overflow:hidden}
.temple-photo-media img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .3s ease}
.temple-photo>a:hover img{transform:scale(1.02)}
.temple-photo figcaption{display:grid;gap:5px;padding:14px 16px 16px}
.temple-photo figcaption strong{font-size:17px;color:var(--navy)}
.temple-photo figcaption span{font-size:13px;color:var(--muted)}
.temple-photo figcaption .temple-photo-view{color:#925f05;font-weight:700;margin-top:5px}
.temple-photos-footnote{font-size:12px;color:var(--muted);margin:15px 0 0}
@media(max-width:720px){.temple-photos-heading{display:block}.temple-photos-heading p{margin-top:4px}.temple-photos-grid{grid-template-columns:1fr}.temple-photo-media{height:auto;max-height:500px;aspect-ratio:4/3}}
@media(prefers-reduced-motion:reduce){.temple-photo-media img{transition:none}}
/* CAMPANHA TEMPLO — checkout integrado Mercado Pago */
.ct-checkout-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.ct-checkout-summary>div{padding:17px;background:#eff6ff;border:1px solid #d1e5fb;border-radius:12px}
.ct-checkout-summary span,.ct-checkout-summary strong{display:block}
.ct-checkout-summary span{font-size:12px;color:#516a84;margin-bottom:7px}
.ct-checkout-summary strong{font-size:20px;color:#072c57;overflow-wrap:anywhere}
.ct-payment-info{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.ct-payment-info span{padding:9px 13px;background:#fdf6dc;color:#263f5b;border:1px solid #f1d16e;border-radius:99px;font-size:13px;font-weight:750}
#ct-paymentBrick_container{background:#fff;border:1px solid #d7e2ef;border-radius:15px;padding:20px 10px;margin:18px 0;min-height:80px}
#ct-payment-result{margin-top:16px;padding:8px 0;overflow-wrap:anywhere}
#ct-payment-result:empty{display:none}
.ct-pix-qr{width:min(100%,320px);height:auto;display:block;margin:16px auto;padding:10px;background:#fff;border:2px solid #dce7f7;border-radius:12px}
.ct-copy-label{display:block;font-weight:750;margin:14px 0;color:#082b54}
.ct-copy-label textarea{font-weight:500;width:100%;margin-top:6px;resize:vertical}
.ct-success{background:#ecfff2;padding:16px;border:1px solid #8fd3aa;border-radius:12px;font-weight:800;color:#13622e}
.ct-payment-links{margin-top:23px}
@media(max-width:630px){.ct-checkout-summary{grid-template-columns:1fr}.ct-checkout-summary strong{font-size:18px}}
