/* ============================================================
   ALE PROJETOS: hub de cases /projetos/ (família ale-projetos-*)
   Réplica 1:1 do aprovado em _APROVACAO/cases (07/07/2026)
   Escopo: tudo prefixado .aleprojetos- pra zero colisão
   (família NOVA; o widget antigo ale-cases de jun/2026 segue intocado)
   Tema claro: body.aleprojetos-light (toggle via js/ale-projetos.js)
   ============================================================ */

.aleprojetos{
  --ap-blue:#00AEEF;--ap-blue-strong:#0099D6;--ap-blue-hover:#0098D1;
  --ap-s950:#0D121C;--ap-s900:#121926;--ap-w:#FCFCFD;
  --ap-tx:#121926;--ap-tx2:#697586;--ap-tx2d:#CDD5DF;
  --ap-line:#E3E8EF;--ap-lined:rgba(255,255,255,.08);
  --ap-disp:'Mont','Montserrat',sans-serif;--ap-ui:'Poppins',sans-serif;--ap-body:'Inter',sans-serif;
  --ap-glow:0 8px 25px rgba(0,174,239,.4);--ap-max:1356px;--ap-narrow:880px;
  font-family:var(--ap-body);
}

/* base */
.aleprojetos-wrap{max-width:var(--ap-max);margin:0 auto;padding:0 24px}
.aleprojetos-narrow{max-width:var(--ap-narrow);margin:0 auto;padding:0 24px}
.aleprojetos h1,.aleprojetos h2,.aleprojetos h3{font-family:var(--ap-disp);letter-spacing:-.015em;color:var(--ap-w)}
.aleprojetos-h1{font-size:clamp(2rem,4.5vw,3.5rem);font-weight:900;line-height:1.08}
.aleprojetos-h2{font-size:clamp(1.5rem,2.6vw,2.25rem);font-weight:900;line-height:1.12}
.aleprojetos-kicker{font-family:var(--ap-ui);font-weight:600;font-size:13.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ap-blue);display:block;margin-bottom:16px}
.aleprojetos-lead{font-size:clamp(1.05rem,1.5vw,1.3rem);line-height:1.55;color:var(--ap-tx2d)}
.aleprojetos-hl{color:var(--ap-blue)}
.aleprojetos img{max-width:100%;display:block}
:where(.aleprojetos a){text-decoration:none;color:inherit}
/* Botões BLINDADOS contra CSS do tema: cores críticas com !important */
.aleprojetos-btn{display:inline-flex!important;align-items:center;gap:10px;padding:16px 32px;border-radius:999px;font-family:var(--ap-ui)!important;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease;border:none;white-space:nowrap;text-decoration:none!important}
.aleprojetos-btn-blue{background:#00AEEF!important;color:#121926!important}
.aleprojetos-btn-blue:hover{background:#0098D1!important;color:#121926!important;transform:translateY(-2px);box-shadow:var(--ap-glow)}
.aleprojetos-btn-glass{background:rgba(255,255,255,.08)!important;border:1.5px solid rgba(255,255,255,.4)!important;color:#FFF!important;backdrop-filter:blur(10px)}
.aleprojetos-btn-glass:hover{background:rgba(255,255,255,.16)!important;border-color:#FFF!important;color:#FFF!important;transform:translateY(-2px)}
body.aleprojetos-light .aleprojetos-btn-glass{background:rgba(13,25,38,.04)!important;border-color:rgba(13,25,38,.3)!important;color:#121926!important;backdrop-filter:none}
body.aleprojetos-light .aleprojetos-btn-glass:hover{background:rgba(13,25,38,.09)!important;border-color:#121926!important}
.aleprojetos-case-cta{color:#00AEEF!important}
.aleprojetos-rv{opacity:0;transform:translateY(26px);transition:opacity .8s cubic-bezier(.2,.6,.2,1),transform .8s cubic-bezier(.2,.6,.2,1)}
.aleprojetos-rv.in{opacity:1;transform:none}

/* ============ LISTA: hero + filtros + grade blog ============ */
.aleprojetos-hero{padding:96px 0 36px;text-align:center;position:relative;overflow:hidden;background:var(--ap-s950)}
.aleprojetos-hero::before{content:'';position:absolute;left:25%;right:25%;top:-30%;height:70%;background:radial-gradient(ellipse,rgba(0,174,239,.2),transparent 70%);filter:blur(60px)}
.aleprojetos-hero .aleprojetos-wrap{position:relative}
.aleprojetos-hero .aleprojetos-kicker{font-size:14px;margin-bottom:18px}
.aleprojetos-hero h1{max-width:760px;margin:0 auto}
.aleprojetos-hero .aleprojetos-lead{max-width:600px;margin:22px auto 0}

.aleprojetos-filters{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;padding:24px 24px 40px;position:relative;z-index:2;background:var(--ap-s950)}
.aleprojetos-filter{padding:12px 26px;border-radius:999px;border:1.5px solid var(--ap-lined);background:rgba(255,255,255,.04);font-family:var(--ap-ui);font-size:15px;font-weight:600;color:var(--ap-tx2d);cursor:pointer;transition:all .3s}
.aleprojetos-filter:hover{border-color:var(--ap-blue);color:#fff}
.aleprojetos-filter.on{background:var(--ap-blue);border-color:var(--ap-blue);color:var(--ap-s900)}

.aleprojetos-grid-sec{padding:8px 0 96px;background:var(--ap-s950)}
.aleprojetos-cases-list{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;max-width:var(--ap-max);margin:0 auto;padding:0 24px}
.aleprojetos-case{display:flex;flex-direction:column;background:var(--ap-s900);border:1px solid var(--ap-lined);border-radius:20px;overflow:hidden;transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease}
.aleprojetos-case:hover{transform:translateY(-5px);box-shadow:0 24px 55px rgba(0,0,0,.5);border-color:rgba(0,174,239,.4)}
.aleprojetos-case-media{position:relative;overflow:hidden;aspect-ratio:16/10}
.aleprojetos-case-media img:not(.aleprojetos-case-logo){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important;transition:transform .6s ease}
.aleprojetos-case:hover .aleprojetos-case-media img:not(.aleprojetos-case-logo){transform:scale(1.05)}
.aleprojetos-case-logo{position:absolute;top:16px;left:18px;z-index:2;height:20px;width:auto;opacity:.92;filter:drop-shadow(0 2px 8px rgba(0,0,0,.6))}
.aleprojetos-case-txt{padding:20px 22px 24px;display:flex;flex-direction:column;align-items:flex-start;flex:1}
.aleprojetos-case-txt small{display:block;font-family:var(--ap-ui);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ap-blue);margin-bottom:8px}
.aleprojetos-case-txt strong{display:block;font-family:var(--ap-disp);font-weight:900;font-size:1.15rem;line-height:1.2;color:#fff;margin-bottom:8px}
.aleprojetos-case-txt p{font-size:14.5px;line-height:1.55;color:var(--ap-tx2d);margin:0 0 16px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.aleprojetos-case-cta{display:inline-flex;align-items:center;gap:8px;font-family:var(--ap-ui);font-weight:600;font-size:14px;color:var(--ap-blue);transition:gap .3s ease;margin-top:auto}
.aleprojetos-case:hover .aleprojetos-case-cta{gap:14px}
.aleprojetos-case.hide{display:none}
@media(max-width:1100px){.aleprojetos-cases-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.aleprojetos-cases-list{grid-template-columns:1fr}}

/* ============ JOB: hero ============ */
.aleprojetos-jhero{position:relative;min-height:78vh;display:flex;align-items:flex-end;overflow:hidden;background:var(--ap-s950)}
.aleprojetos-jhero-bg{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:none!important;object-fit:cover!important}
.aleprojetos-jhero::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(13,18,28,.35) 0%,rgba(13,18,28,.15) 40%,var(--ap-s950) 100%)}
.aleprojetos-jhero .aleprojetos-wrap{position:relative;z-index:2;padding-bottom:64px;width:100%}
.aleprojetos-logo-cliente{height:34px;width:auto;margin-bottom:22px;filter:drop-shadow(0 2px 10px rgba(0,0,0,.6))}
.aleprojetos-jhero h1{max-width:820px;color:var(--ap-w)}
.aleprojetos-badge{display:inline-block;background:var(--ap-blue);color:var(--ap-s900);font-family:var(--ap-ui);font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:6px 16px;border-radius:999px;margin-bottom:18px}

/* ============ JOB: ficha ============ */
.aleprojetos-ficha{border-top:1px solid var(--ap-lined);border-bottom:1px solid var(--ap-lined);background:var(--ap-s900)}
.aleprojetos-ficha-grid{display:grid;grid-template-columns:repeat(var(--aleprojetos-ficha-cols,5),1fr);max-width:var(--ap-max);margin:0 auto;padding:0 24px}
.aleprojetos-ficha-item{padding:26px 20px;border-right:1px solid var(--ap-lined)}
.aleprojetos-ficha-item:last-child{border-right:none}
.aleprojetos-ficha-item small{display:block;font-family:var(--ap-ui);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ap-blue);margin-bottom:6px}
.aleprojetos-ficha-item strong{font-family:var(--ap-ui);font-weight:600;font-size:15.5px;color:var(--ap-w)}
@media(max-width:920px){.aleprojetos-ficha-grid{grid-template-columns:1fr 1fr}.aleprojetos-ficha-item{border-right:none;border-bottom:1px solid var(--ap-lined)}}

/* ============ JOB: galeria (vem ANTES da narrativa) ============ */
.aleprojetos-galsec{background:var(--ap-s950);padding-top:96px}
.aleprojetos-gal-video{max-width:var(--ap-max);margin:0 auto;padding:0 24px}
.aleprojetos-gal-video iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:20px;display:block;background:#000}
.aleprojetos-gal{max-width:var(--ap-max);margin:0 auto;padding:0 24px;display:grid;grid-template-columns:2fr 1fr;gap:20px}
.aleprojetos-gal.aleprojetos-gal-apos-video{margin-top:20px}
.aleprojetos-gal-video + .aleprojetos-gal{margin-top:20px}
.aleprojetos-gal img{width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important;border-radius:20px;min-height:280px}
.aleprojetos-tall{grid-row:span 2}
@media(max-width:760px){.aleprojetos-gal{grid-template-columns:1fr}}

/* ============ JOB: narrativa ============ */
.aleprojetos-story{padding:96px 0;background:var(--ap-s950)}
.aleprojetos-story-block{margin-bottom:72px}
.aleprojetos-story-block:last-child{margin-bottom:0}
.aleprojetos-story-block p,.aleprojetos-story-rich p{margin-top:18px;font-size:18px;line-height:1.7;color:var(--ap-tx2d)}
.aleprojetos-story-rich strong,.aleprojetos-story-rich b{color:var(--ap-w)}
.aleprojetos-pull{border-left:3px solid var(--ap-blue);padding:8px 0 8px 28px;margin:64px 0;font-family:var(--ap-disp);font-weight:700;font-size:clamp(1.3rem,2.4vw,1.8rem);line-height:1.3;color:var(--ap-w)}

/* ============ JOB: produto ============ */
.aleprojetos-produto{background:var(--ap-s900);border-top:1px solid var(--ap-lined);border-bottom:1px solid var(--ap-lined);padding:80px 0}
.aleprojetos-produto-in{max-width:var(--ap-max);margin:0 auto;padding:0 24px;display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.aleprojetos-produto ul{list-style:none;display:flex;flex-direction:column;gap:12px;margin:24px 0 0;padding:0}
.aleprojetos-produto li{display:flex;gap:10px;font-size:16px;color:var(--ap-tx2d)}
.aleprojetos-produto li::before{content:'✓';color:var(--ap-blue);font-weight:700}
.aleprojetos-produto-p{margin-top:16px;color:var(--ap-tx2d)}
@media(max-width:860px){.aleprojetos-produto-in{grid-template-columns:1fr}}

/* ============ JOB: CTA final ============ */
.aleprojetos-next{padding:110px 0;text-align:center;position:relative;overflow:hidden;background:var(--ap-s950)}
.aleprojetos-next::before{content:'';position:absolute;left:30%;right:30%;top:-20%;height:60%;background:radial-gradient(ellipse,rgba(0,174,239,.25),transparent 70%);filter:blur(60px)}
.aleprojetos-next .aleprojetos-wrap{position:relative}
.aleprojetos-next .aleprojetos-lead{max-width:560px;margin:18px auto 40px}
.aleprojetos-next-btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* ============ TOGGLE DE TEMA (flutuante) ============ */
.aleprojetos-theme-tg{position:fixed;left:22px;bottom:22px;z-index:9000;width:46px;height:46px;border-radius:50%;border:1.5px solid rgba(255,255,255,.35);background:rgba(13,18,28,.7);backdrop-filter:blur(10px);color:#FFF;font-size:18px;line-height:1;cursor:pointer;transition:all .3s;box-shadow:0 10px 30px rgba(0,0,0,.3)}
.aleprojetos-theme-tg:hover{border-color:var(--ap-blue);transform:translateY(-2px)}

/* ============ TEMA CLARO (heros seguem escuros: são foto) ============ */
body.aleprojetos-light .aleprojetos-theme-tg{border-color:rgba(13,25,38,.3);background:rgba(255,255,255,.85);color:#121926}
body.aleprojetos-light .aleprojetos-hero,body.aleprojetos-light .aleprojetos-filters,body.aleprojetos-light .aleprojetos-grid-sec,body.aleprojetos-light .aleprojetos-next{background:#FFF}
body.aleprojetos-light .aleprojetos-hero::before{background:radial-gradient(ellipse,rgba(0,174,239,.14),transparent 70%)}
body.aleprojetos-light .aleprojetos-hero h1,body.aleprojetos-light .aleprojetos-next h2{color:#121926}
body.aleprojetos-light .aleprojetos-hero .aleprojetos-lead,body.aleprojetos-light .aleprojetos-next .aleprojetos-lead{color:#697586}
body.aleprojetos-light .aleprojetos-filter{border-color:#E3E8EF;background:#FFF;color:#697586}
body.aleprojetos-light .aleprojetos-filter:hover{border-color:#00AEEF;color:#121926}
body.aleprojetos-light .aleprojetos-filter.on{background:#00AEEF;border-color:#00AEEF;color:#FFF}
body.aleprojetos-light .aleprojetos-case{background:#FFF;border-color:#E3E8EF;box-shadow:0 4px 18px rgba(13,25,38,.05)}
body.aleprojetos-light .aleprojetos-case:hover{box-shadow:0 24px 55px rgba(13,25,38,.13);border-color:rgba(0,174,239,.5)}
body.aleprojetos-light .aleprojetos-case-txt strong{color:#121926}
body.aleprojetos-light .aleprojetos-case-txt p{color:#697586}
body.aleprojetos-light .aleprojetos-ficha{background:#F8F9FA;border-color:#E3E8EF}
body.aleprojetos-light .aleprojetos-ficha-item{border-color:#E3E8EF}
body.aleprojetos-light .aleprojetos-ficha-item strong{color:#121926}
body.aleprojetos-light .aleprojetos-story{background:#FFF}
body.aleprojetos-light .aleprojetos-galsec{background:#FFF}
body.aleprojetos-light .aleprojetos-story .aleprojetos-h2{color:#121926}
body.aleprojetos-light .aleprojetos-story-block p,body.aleprojetos-light .aleprojetos-story-rich p{color:#697586}
body.aleprojetos-light .aleprojetos-story-rich strong,body.aleprojetos-light .aleprojetos-story-rich b{color:#121926}
body.aleprojetos-light .aleprojetos-pull{color:#121926}
body.aleprojetos-light .aleprojetos-produto{background:#F8F9FA;border-color:#E3E8EF}
body.aleprojetos-light .aleprojetos-produto .aleprojetos-h2{color:#121926}
body.aleprojetos-light .aleprojetos-produto li,body.aleprojetos-light .aleprojetos-produto-p{color:#697586}
body.aleprojetos-light .aleprojetos-next::before{background:radial-gradient(ellipse,rgba(0,174,239,.16),transparent 70%)}
@media(max-width:920px){body.aleprojetos-light .aleprojetos-ficha-item{border-bottom:1px solid #E3E8EF}}
