/* Página inicial — versão limpa. Estilos escopados em body.home (não afetam as demais páginas). */
.home{--ink:#142638;--navy:#052e57;--navy-d:#031f3d;--teal:#01aaa2;--teal-d:#007d77;--sun:#ffc807;--sun-d:#e8b300;--mist:#f3f8fc;--rule:#dbe6ee;--soft:#546a7e;background:#fff;color:var(--ink)}
.home :focus-visible{outline:3px solid var(--teal);outline-offset:3px;border-radius:6px}
.home h1,.home h2,.home h3{font-family:'Outfit',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;color:var(--navy);margin:0;letter-spacing:-.02em}
.home .w{width:min(1180px,100% - 40px);margin-inline:auto}
.home .sec{padding:112px 0}
.home .h2{font-size:clamp(1.9rem,3.6vw,2.8rem);font-weight:700;line-height:1.12}
.home .p{font-size:1.14rem;line-height:1.7;color:var(--soft);margin:0}
.home .btn-sun{background:var(--sun);color:var(--navy-d)}
.home .btn-sun:hover{background:var(--sun-d);color:var(--navy-d);transform:translateY(-2px)}
.home .ico{width:28px;height:28px;color:var(--teal-d);flex:none}

/* ---------- Hero: foto de lado a lado com o texto sobre ela ---------- */
.home .hero{position:relative;display:flex;align-items:flex-start;min-height:clamp(580px,84vh,800px);color:#fff;isolation:isolate;background:var(--navy-d) url(img/cidade-hero.jpg) 50% 72%/cover no-repeat}
.home .hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(3,31,61,.82) 0%,rgba(3,31,61,.58) 36%,rgba(3,31,61,0) 70%),linear-gradient(0deg,rgba(3,31,61,.25),transparent 35%)}
.home .hero .w{padding:20px 0 90px}
.home .hero h1{color:#fff;font-size:clamp(2.4rem,5.2vw,4.4rem);font-weight:800;line-height:1.05;max-width:15ch;margin-bottom:24px}
.home .hero .p{color:#e3eff8;font-size:1.22rem;max-width:48ch;margin-bottom:36px}
.home .hero .cta{display:flex;flex-wrap:wrap;gap:14px 16px}
.home .hero .btn-line{border-color:rgba(255,255,255,.7);color:#fff}
.home .hero .btn-line:hover{background:#fff;color:var(--navy)}
@media (prefers-reduced-motion:no-preference){
 .home .hero .w>*{animation:h-in .8s cubic-bezier(.2,.7,.2,1) both}
 .home .hero .w>:nth-child(2){animation-delay:.1s}.home .hero .w>:nth-child(3){animation-delay:.2s}
 @keyframes h-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
}

/* ---------- Desafios ---------- */
.home .intro{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:end;margin-bottom:64px}
.home .four{display:grid;grid-template-columns:repeat(4,1fr);gap:40px}
.home .four div{border-top:1px solid var(--rule);padding-top:28px}
.home .four .ico{margin-bottom:18px}
.home .four h3{font-size:1.2rem;font-weight:600;margin-bottom:8px}
.home .four p{margin:0;color:var(--soft);line-height:1.6;font-size:1rem}

/* ---------- Soluções ---------- */
.home .sol{background:var(--mist)}
.home .sol-head{max-width:640px;margin-bottom:56px}
.home .sol-head .p{margin-top:14px}
.home .grid3{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid var(--rule);border-radius:20px;overflow:hidden}
.home .it{display:flex;flex-direction:column;gap:10px;padding:36px 32px;color:var(--ink);border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);transition:background .2s}
.home .it:nth-child(3n){border-right:0}
.home .it:nth-last-child(-n+3){border-bottom:0}
.home .it:hover{background:var(--mist);color:var(--ink)}
.home .it .ico{margin-bottom:10px}
.home .it h3{font-size:1.2rem;font-weight:600;line-height:1.3}
.home .it p{margin:0;color:var(--soft);line-height:1.6;font-size:.98rem}
.home .it .go{margin-top:auto;padding-top:14px;display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--navy)}
.home .it .go svg{width:18px;height:18px;transition:transform .2s}
.home .it:hover .go svg{transform:translateX(4px)}
.home .it.all{background:var(--navy);justify-content:center}
.home .it.all h3{color:#fff}
.home .it.all p{color:#cfe4f3}
.home .it.all .go{color:var(--sun)}
.home .it.all:hover{background:var(--navy-d)}

/* ---------- Quem somos ---------- */
.home .about{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}
.home .about img{display:block;width:100%;aspect-ratio:6/5;object-fit:cover;object-position:50% 85%;border-radius:20px}
.home .about .p{margin:20px 0 28px;max-width:52ch}
.home .hchecks{list-style:none;margin:0 0 34px;padding:0;display:grid;gap:12px}
.home .hchecks li{display:flex;gap:12px;align-items:center;font-weight:500;color:var(--navy)}
.home .hchecks .ico{width:22px;height:22px}

/* ---------- Por que ---------- */
.home .hwhy{background:var(--navy);color:#cfe4f3}
.home .hwhy .h2{color:#fff;max-width:20ch;margin-bottom:56px}
.home .hwhy-list{display:grid;grid-template-columns:repeat(3,1fr);gap:44px 40px}
.home .hwhy-list div{border-top:1px solid rgba(255,255,255,.2);padding-top:22px}
.home .hwhy-list h3{color:#fff;font-size:1.12rem;font-weight:600;margin-bottom:8px;line-height:1.3}
.home .hwhy-list p{margin:0;font-size:.98rem;line-height:1.6;color:#b9d3e6}

/* ---------- Chamada final ---------- */
.home .final{text-align:center;padding:104px 0}
.home .final .h2{max-width:20ch;margin:0 auto 16px}
.home .final .p{max-width:46ch;margin:0 auto 32px}

/* ---------- Responsivo ---------- */
@media (max-width:1000px){
 .home .sec{padding:76px 0}
 .home .intro,.home .about{grid-template-columns:1fr;gap:36px}
 .home .four{grid-template-columns:1fr 1fr}
 .home .grid3{grid-template-columns:1fr 1fr}
 .home .it:nth-child(3n){border-right:1px solid var(--rule)}
 .home .it:nth-child(2n){border-right:0}
 .home .it:nth-last-child(-n+3){border-bottom:1px solid var(--rule)}
 .home .it:nth-last-child(-n+2){border-bottom:0}
 .home .hwhy-list{grid-template-columns:1fr 1fr}
 .home .hero::before{background:linear-gradient(90deg,rgba(3,31,61,.88),rgba(3,31,61,.5)),linear-gradient(0deg,rgba(3,31,61,.35),transparent 40%)}
}
@media (max-width:620px){
 .home .four,.home .grid3,.home .hwhy-list{grid-template-columns:1fr}
 .home .it,.home .it:nth-child(n){border-right:0;border-bottom:1px solid var(--rule)}
 .home .it:last-child{border-bottom:0}
 .home .hero{min-height:620px;background-position:62% 72%}
 .home .hero .w{padding:16px 0 64px}
 .home .hero .btn{width:100%;justify-content:center}
}
