/*
Theme Name: Casa da Infância Institucional
Author: JC Creator
Description: Tema inicial WordPress para o site institucional da Casa da Infância.
Version: 0.5.0
Requires PHP: 7.4
Text Domain: casa-infancia
*/
:root{--green:#08794e;--deep:#063e2c;--mint:#e9f5ed;--ink:#18392e;--muted:#60786d;--line:#e1eae3}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:Arial,Helvetica,sans-serif;line-height:1.6}a{color:inherit}.top{background:#07583a;color:#fff;font-size:11px;font-weight:700;letter-spacing:1.3px;padding:9px max(5vw,calc((100vw - 1200px)/2))}.top span{float:right;font-weight:400;letter-spacing:.2px}header{position:sticky;top:0;z-index:4;background:#fff;box-shadow:0 2px 20px #18392e0d}nav{max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 22px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-size:19px;font-weight:800;color:var(--deep);line-height:1.1}.brand img{width:62px;height:62px;object-fit:contain}.brand small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:6px}.links{display:flex;gap:22px;flex-wrap:wrap}.links a{font-size:13px;text-decoration:none;font-weight:600}.links a:hover,.links a.active{color:var(--green)}main{max-width:1200px;margin:auto;padding:26px 22px 45px}.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:36px;align-items:center;padding:60px 55px;border-radius:26px;background:linear-gradient(120deg,#e9f7ed,#f9fcfa);min-height:525px}.tag{font-size:11px;font-weight:800;color:var(--green);letter-spacing:2px}.tag.light{color:#bdf1d3}h1{font-size:clamp(36px,4.1vw,59px);line-height:1.09;letter-spacing:-1.6px;margin:17px 0 20px;color:var(--deep)}h1 em{font-style:normal;color:var(--green)}p{color:var(--muted);font-size:15px}.hero p{max-width:540px;font-size:16px}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}.btn{display:inline-block;background:var(--green);color:white;text-decoration:none;font-weight:700;font-size:13px;padding:14px 18px;border-radius:9px}.btn.ghost{background:white;color:var(--green);border:1px solid #bcd9c6}.btn.white{background:white;color:var(--deep)}.hero-note{margin-top:30px;color:#54766a;font-size:12px}.hero-visual{min-height:350px;display:grid;place-items:center}.visual-bg{background:#fff;border:1px solid #d5e7d9;box-shadow:0 25px 55px #0d51321c;border-radius:24px;padding:24px;max-width:380px;text-align:center;transform:rotate(2deg)}.visual-bg img{display:block;width:210px;max-width:80%;margin:auto}.photo-placeholder{background:#f3f8f4;border:1px dashed #b7d5c3;padding:12px;border-radius:10px;color:#668474;font-size:11px;margin-top:12px}.intro{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;padding:64px 20px}.intro h2,.section h2,.banner h2{font-size:clamp(26px,3vw,36px);line-height:1.2;color:var(--deep);margin:12px 0}.text-link{color:var(--green);font-weight:700;font-size:14px;text-decoration:none}.section{padding:58px 20px}.section.soft{background:#f6faf7;border-radius:22px;padding:50px 35px}.section-heading{margin-bottom:24px}.cards,.doc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card,.doc{background:#fff;border:1px solid var(--line);border-radius:15px;padding:25px;text-decoration:none;box-shadow:0 5px 15px #103e1c05}.card:hover{border-color:#98c9ad}.card h3,.doc h3{color:var(--deep);margin:10px 0 6px;font-size:18px}.card p,.doc p{font-size:13px}.symbol{font-size:34px;color:var(--green)}.more{font-size:12px;color:var(--green);font-weight:700}.banner{display:flex;align-items:center;justify-content:space-between;gap:25px;background:var(--deep);color:white;padding:40px 50px;border-radius:20px;margin:30px 0}.banner h2{color:white}.banner p{color:#cce6d7}.warning{margin-top:28px;padding:18px;background:#fff8e8;color:#745923;border-radius:12px;font-size:12px}.page-hero{padding:55px 48px;background:#eef7f1;border-radius:20px}.page-hero h1{font-size:clamp(30px,4vw,48px)}.page-hero p{max-width:800px}.doc-grid{grid-template-columns:repeat(3,1fr)}.doc small{color:#9b752e;background:#fff8e7;padding:7px 9px;border-radius:6px;display:inline-block}footer{background:#f3f8f4;padding:30px max(5vw,calc((100vw - 1200px)/2));display:flex;justify-content:space-between;gap:15px;color:#597466;font-size:12px}@media(max-width:900px){.hero{grid-template-columns:1fr;padding:38px 28px}.hero-visual{min-height:250px}.cards,.doc-grid{grid-template-columns:repeat(2,1fr)}.links{gap:12px}}@media(max-width:600px){.top span{display:none}nav{align-items:flex-start;flex-direction:column}.links{gap:13px}.hero{padding:30px 22px}.intro{grid-template-columns:1fr;gap:10px;padding:35px 10px}.cards,.doc-grid{grid-template-columns:1fr}.section.soft{padding:32px 20px}.banner{flex-direction:column;align-items:flex-start;padding:28px}.page-hero{padding:32px 24px}footer{flex-direction:column}.visual-bg img{width:150px}}

.admin-bar header{top:32px}
@media(max-width:782px){.admin-bar header{top:46px}}

/* v0.3 – Identidade visual e acessibilidade */
:root{--green:#08794e;--deep:#063e2c;--mint:#e9f5ed;--ink:#18392e;--muted:#60786d;--line:#e1eae3}
body{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:#fff;color:var(--ink)}
.top{padding:0 22px}.top-inner{max-width:1200px;margin:auto;display:flex;justify-content:space-between;gap:16px;padding:10px 0;font-size:10px;letter-spacing:1px}.top-inner span:last-child{font-weight:400;letter-spacing:0}
.site-header{box-shadow:0 4px 25px #103d2510}.main-nav{padding:13px 22px;gap:16px}.brand{flex-shrink:0}.brand img{width:58px;height:58px}.brand small{font-size:12px}.links{gap:15px;align-items:center}.links a{font-size:12px}.links .nav-feature{color:var(--green);font-weight:800}.links a:focus-visible,.btn:focus-visible,.card:focus-visible,.doc:focus-visible{outline:3px solid #d99f38;outline-offset:3px}
.menu-toggle{display:none;border:1px solid var(--line);background:#fff;color:var(--deep);padding:9px 12px;border-radius:10px;font:inherit;font-weight:700;cursor:pointer}
.site-main{max-width:1200px;margin:auto;padding:26px 22px 45px}.hero{background:linear-gradient(120deg,#e8f6eb 0%,#f7fcf8 65%,#fff 100%);min-height:520px;position:relative;overflow:hidden}.hero:before{content:"";position:absolute;width:280px;height:280px;border:1px solid #cbe9d2;border-radius:50%;right:-90px;top:-120px}.hero-copy{position:relative;z-index:1}.tag-dot{display:inline-block;width:8px;height:8px;background:#25a468;border-radius:50%;margin-right:5px}.hero h1{font-weight:850;letter-spacing:-2px}.hero-visual{position:relative}.visual-bg{transform:rotate(1.5deg);width:100%;padding:34px 25px;max-width:365px}.visual-bg img{width:230px}.visual-label{font-size:11px;letter-spacing:2px;font-weight:800;color:var(--green);margin-bottom:20px}.visual-quote{font-weight:750;color:var(--deep);font-size:20px;margin-top:20px}.visual-corner{position:absolute;right:5%;bottom:8%;color:#d9a738;font-size:40px}.hero-note{font-size:13px}.hero-note span{color:var(--green);font-weight:900}.btn{border-radius:11px;padding:15px 20px;transition:transform .15s,box-shadow .15s}.btn:hover{transform:translateY(-2px);box-shadow:0 7px 20px #103d2520}.card,.doc{transition:transform .2s,border-color .2s,box-shadow .2s}.card:hover,.doc:hover{transform:translateY(-3px);box-shadow:0 15px 35px #103d2512}.card .symbol,.doc .symbol{display:inline-flex;width:52px;height:52px;border-radius:14px;background:#eaf6ee;align-items:center;justify-content:center;font-size:28px}.intro{padding:80px 20px}.section.soft{background:#f5faf7}.section-heading p{margin-top:0}.contact-section{display:flex;justify-content:space-between;align-items:center;gap:25px}.contact-section>div{max-width:680px}.page-hero{background:linear-gradient(110deg,#e9f6ed,#f8fcf9);padding:56px 52px}.page-body,.page-editor-content{max-width:1000px;margin:40px auto;line-height:1.8}.page-body h2,.page-editor-content h2{font-family:inherit;font-size:26px;color:var(--deep);margin:28px 0 12px}.page-body p,.page-editor-content p{font-size:16px}.page-body a,.page-editor-content a{color:var(--green)}
.ci-categories{grid-template-columns:repeat(4,minmax(0,1fr))}.category-card{display:block}.category-card .symbol{font-size:24px}.category-card h3{font-size:17px}.category-card p{min-height:62px}.portal-sections{scroll-margin-top:120px}.portal-section{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;border-bottom:1px solid var(--line);scroll-margin-top:120px}.portal-section:last-child{border-bottom:0}.portal-section>div{max-width:650px}.portal-section .symbol{float:left;margin:0 15px 10px 0}.portal-section h3{margin:0 0 4px;font-size:18px}.portal-section p{margin:0;font-size:13px}.status{flex-shrink:0;font-size:12px;color:#805f22;background:#fff3d8;border-radius:20px;padding:7px 12px}footer{line-height:1.7}
@media(max-width:1050px){.links{gap:10px}.links a{font-size:11px}.ci-categories{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.top-inner span:last-child{display:none}.main-nav{flex-wrap:wrap;align-items:center;flex-direction:row}.menu-toggle{display:block;margin-left:auto}.links{display:none;flex-direction:column;align-items:stretch;width:100%;gap:0;padding:8px 0}.links.is-open{display:flex}.links a{font-size:14px;padding:11px 8px;border-top:1px solid var(--line)}.hero{min-height:0;grid-template-columns:1fr;padding:40px 25px}.hero h1{letter-spacing:-1.5px}.hero-visual{min-height:270px}.visual-bg{max-width:310px}.visual-bg img{width:160px}.intro{grid-template-columns:1fr;gap:5px;padding:48px 10px}.cards,.ci-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.contact-section{flex-direction:column;align-items:flex-start}.portal-section{align-items:flex-start;flex-direction:column;gap:10px}}
@media(max-width:520px){.site-main{padding:18px 14px 35px}.brand{font-size:16px}.brand img{width:47px;height:47px}.hero h1{font-size:36px}.hero-visual{min-height:245px}.cards,.ci-categories{grid-template-columns:1fr}.category-card p{min-height:0}.page-hero{padding:35px 23px}.banner{padding:28px 22px}.status{align-self:flex-start}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* v0.4 — Fotografias reais e um vídeo institucional */
.ci-hero-photo{align-items:center;gap:clamp(24px,4vw,70px)}
.ci-hero-photo .hero-copy{min-width:0}
.ci-hero-image{position:relative;min-width:0;align-self:stretch;min-height:440px;border-radius:28px;overflow:hidden;box-shadow:0 20px 50px rgba(5,63,42,.13)}
.ci-hero-image>img{width:100%;height:100%;min-height:440px;object-fit:cover;object-position:center 62%;display:block}
.ci-hero-image-caption{position:absolute;bottom:18px;left:18px;right:18px;display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.94);border-radius:16px;padding:10px 14px;font-weight:700;color:#075138}
.ci-hero-image-caption img{width:52px;height:52px;object-fit:contain}
.ci-gallery-section{padding-top:68px;padding-bottom:70px}
.ci-gallery{display:grid;grid-template-columns:1.15fr 1fr 1fr;grid-template-rows:235px 235px;gap:16px;margin-top:26px}
.ci-gallery figure{position:relative;margin:0;border-radius:20px;overflow:hidden;background:#edf6ef}
.ci-gallery .ci-gallery-main{grid-row:span 2}
.ci-gallery img{width:100%;height:100%;object-fit:cover;display:block}
.ci-gallery figcaption{position:absolute;bottom:0;left:0;right:0;color:white;font-weight:700;padding:35px 15px 15px;background:linear-gradient(transparent,rgba(0,42,28,.75));font-size:15px}
.ci-video-section{display:grid;grid-template-columns:1fr 0.8fr;gap:40px;align-items:center;background:#eaf5ef;border-radius:28px;padding:clamp(24px,4vw,60px);margin-top:20px;margin-bottom:65px}
.ci-video-copy h2{font-size:clamp(29px,3.4vw,46px);line-height:1.12;color:#07432f;margin:15px 0}
.ci-video-copy p{font-size:17px;line-height:1.7;color:#496b5d}
.ci-video-copy .ci-video-note{font-size:13px}
.ci-video-frame{display:flex;justify-content:center;align-items:center}
.ci-video-frame video{display:block;width:min(100%,320px);max-height:510px;border-radius:20px;background:#092e22;box-shadow:0 20px 45px rgba(0,0,0,.18)}
@media(max-width:900px){.ci-hero-photo{grid-template-columns:1fr}.ci-hero-image{min-height:340px}.ci-hero-image>img{max-height:430px;min-height:340px}.ci-gallery{grid-template-columns:1fr 1fr;grid-template-rows:240px 220px 220px}.ci-gallery .ci-gallery-main{grid-column:span 2;grid-row:auto}.ci-video-section{grid-template-columns:1fr}}
@media(max-width:600px){.ci-gallery{grid-template-columns:1fr 1fr;grid-template-rows:250px 170px 170px;gap:10px}.ci-gallery figcaption{font-size:12px;padding:25px 8px 9px}.ci-video-section{margin-left:12px;margin-right:12px}.ci-hero-image-caption{font-size:13px}}

/* v0.5 — Página Institucional: preserva as páginas e funcionalidades anteriores */
.ci-inst-hero{display:grid;grid-template-columns:1.04fr .96fr;align-items:center;gap:clamp(24px,4vw,65px);padding:clamp(30px,5vw,66px);border-radius:27px;background:linear-gradient(120deg,#eaf6ed,#f9fcfa);overflow:hidden}
.ci-inst-hero h1{font-size:clamp(36px,4.2vw,60px);line-height:1.1;letter-spacing:-1.8px}.ci-inst-hero h1 em{font-style:normal;color:var(--green)}.ci-inst-hero-copy>p{font-size:17px;max-width:540px}
.ci-inst-hero-photo{position:relative;margin:0;height:430px;border-radius:23px;overflow:hidden;box-shadow:0 20px 45px #083d2d20}.ci-inst-hero-photo img{width:100%;height:100%;object-fit:cover;display:block}.ci-inst-hero-photo figcaption{position:absolute;bottom:0;left:0;right:0;padding:40px 20px 20px;color:#fff;font-weight:800;background:linear-gradient(transparent,#063e2cbb)}
.ci-inst-intro{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center;padding:68px 20px 40px}.ci-inst-intro h2,.ci-inst-resources h2,.ci-inst-editor h2{font-size:clamp(27px,3vw,38px);line-height:1.2;color:var(--deep);margin:12px 0}.ci-inst-intro p{font-size:16px}
.ci-inst-photos{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:16px;padding:0 20px 65px}.ci-inst-photos figure{position:relative;margin:0;height:280px;border-radius:18px;overflow:hidden;background:#e9f5ed}.ci-inst-photos img{width:100%;height:100%;object-fit:cover;display:block}.ci-inst-photos figcaption{position:absolute;bottom:0;left:0;right:0;padding:30px 14px 13px;color:white;font-size:13px;font-weight:750;background:linear-gradient(transparent,#063e2cdb)}
.ci-inst-resources{padding:50px 36px 60px;background:#f4faf6;border-radius:24px}.ci-inst-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ci-inst-tile{background:#fff;border:1px solid var(--line);border-radius:17px;padding:28px;text-decoration:none;transition:transform .2s,box-shadow .2s}.ci-inst-tile:hover{transform:translateY(-3px);box-shadow:0 16px 35px #063e2c13}.ci-inst-icon{display:grid;place-items:center;width:55px;height:55px;background:#e7f5ec;color:var(--green);border-radius:14px;font-size:29px}.ci-inst-tile h3{font-size:19px;color:var(--deep);margin:17px 0 5px}.ci-inst-tile p{font-size:14px;min-height:65px}.ci-inst-editor{padding:60px 20px}.ci-inst-editor .page-body{margin:22px 0;max-width:none}.ci-inst-end{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:42px;border-radius:22px;background:var(--deep);color:#fff;margin:20px 0 30px}.ci-inst-end h2{font-size:clamp(25px,3vw,35px);color:#fff;margin:10px 0}.ci-inst-end p{color:#cbe8d7}
@media(max-width:900px){.ci-inst-hero{grid-template-columns:1fr}.ci-inst-hero-photo{height:370px}.ci-inst-photos{grid-template-columns:1fr 1fr}.ci-inst-photos figure:first-child{grid-column:span 2}.ci-inst-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.ci-inst-hero{padding:27px 22px}.ci-inst-hero-photo{height:290px}.ci-inst-intro{grid-template-columns:1fr;gap:8px;padding:42px 6px 25px}.ci-inst-photos{padding:0 4px 40px;gap:10px}.ci-inst-photos figure{height:190px}.ci-inst-photos figure:first-child{height:240px}.ci-inst-resources{padding:35px 20px}.ci-inst-grid{grid-template-columns:1fr}.ci-inst-tile p{min-height:0}.ci-inst-end{flex-direction:column;align-items:flex-start;padding:28px 22px}}
