/**
 * LEDS Tema Luz: botão global claro/escuro
 * - Mesmo visual e comportamento aprovados na galeria: círculo vidro escuro, empilha
 *   sobre o .leds-back-to-top do tema (espelha as medidas dele por faixa de tela)
 * - Sobe quando o voltar-ao-topo aparece (classe .p1-tema-sobe via JS)
 * - Oculta os botões antigos das famílias pra não duplicar interruptor
 */

.p1-tema-btn{--p1-sobe:62px;position:fixed;right:30px;bottom:100px;z-index:9000;width:50px;height:50px;border-radius:50%;border:1.5px solid rgba(255,255,255,.35);background:rgba(13,18,28,.7);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#FFF;cursor:pointer;transition:all .3s;box-shadow:0 10px 30px rgba(0,0,0,.3);display:flex;align-items:center;justify-content:center;padding:0}
.p1-tema-btn[hidden]{display:none}
.p1-tema-btn svg{width:19px;height:19px;display:block}
.p1-tema-btn:hover{border-color:#00AEEF}
.p1-tema-btn.p1-tema-sobe{transform:translateY(calc(-1*var(--p1-sobe)))}
html.p1-claro .p1-tema-btn{border-color:rgba(13,25,38,.3);background:rgba(255,255,255,.85);color:#121926}

@media(max-width:768px){.p1-tema-btn{--p1-sobe:60px;right:20px;bottom:100px;width:48px;height:48px}}
@media(max-width:576px){.p1-tema-btn{--p1-sobe:56px;right:16px;bottom:100px;width:44px;height:44px}}

/* Interruptores antigos das famílias saem de cena (o global assume) */
.alegal-tg,.aleprojetos-theme-tg{display:none !important}

/* ============================================================
   COBERTURA CLARA — só em páginas marcadas (body.p1-tem-luz)
   Paleta: fundo #F5F8FB / superfície #FFF / texto #121926 / apoio #5B6B7C / azul mantém
   ============================================================ */

/* Design system leds-* (footer, news e demais widgets com var) */
html.p1-claro body.p1-tem-luz{
  --color-surface-base-950:#F5F8FB;
  --color-surface-base-900:#FFFFFF;
  --color-text-base-major-alt:#121926;
  --color-text-base-minor-alt:#5B6B7C;
}

/* Header glass */
html.p1-claro body.p1-tem-luz .leds-header{background:transparent !important}
html.p1-claro body.p1-tem-luz .leds-header-container{background:rgba(255,255,255,.82) !important;border-bottom:1px solid rgba(13,18,28,.08)}
html.p1-claro body.p1-tem-luz .leds-header.is-scrolled .leds-header-container{background:rgba(255,255,255,.95) !important}
html.p1-claro body.p1-tem-luz .leds-header a{color:#121926 !important}
html.p1-claro body.p1-tem-luz .leds-header img,
html.p1-claro body.p1-tem-luz .leds-header svg{filter:invert(1) hue-rotate(180deg)}

/* Faixas fotograficas ficam escuras nos dois temas (fundo atras das fotos tambem) */
html.p1-claro body.p1-tem-luz .ale-banner,
html.p1-claro body.p1-tem-luz .ale-banner__backgrounds,
html.p1-claro body.p1-tem-luz section.ale-apex,
html.p1-claro body.p1-tem-luz section.ale-p1play{background-color:#0D121C !important}

/* ale-branding (hero da home) */
html.p1-claro body.p1-tem-luz .ale-branding{background-color:#F5F8FB !important}
html.p1-claro body.p1-tem-luz .ale-branding__title{color:#121926 !important}
html.p1-claro body.p1-tem-luz .ale-branding__subtitle{color:#5B6B7C !important}
html.p1-claro body.p1-tem-luz .ale-branding__logo img{filter:invert(1) hue-rotate(180deg) opacity(.75)}

/* leds-footer: fundo cravado pelo Elementor precisa de override direto */
html.p1-claro body.p1-tem-luz footer.leds-footer,
html.p1-claro body.p1-tem-luz .leds-footer{background:#F5F8FB !important}

/* leds-footer: textos cravados (vars nao chegam em tudo) */
html.p1-claro body.p1-tem-luz .leds-footer p,
html.p1-claro body.p1-tem-luz .leds-footer a,
html.p1-claro body.p1-tem-luz .leds-footer li,
html.p1-claro body.p1-tem-luz .leds-footer span,
html.p1-claro body.p1-tem-luz .leds-footer-link,
html.p1-claro body.p1-tem-luz .leds-copyright p{color:#5B6B7C !important}
html.p1-claro body.p1-tem-luz .leds-footer a:hover{color:#0099D6 !important}
html.p1-claro body.p1-tem-luz .leds-footer strong,
html.p1-claro body.p1-tem-luz .leds-footer-title,
html.p1-claro body.p1-tem-luz .leds-footer-column-title{color:#121926 !important}
html.p1-claro body.p1-tem-luz .leds-footer-social-link{color:#5B6B7C !important}
html.p1-claro body.p1-tem-luz .leds-footer-top-tagline{color:#5B6B7C !important}
html.p1-claro body.p1-tem-luz .leds-footer-copyright,
html.p1-claro body.p1-tem-luz .leds-footer-copyright *{color:#5B6B7C !important}

/* leds-footer: bordas que eram brancas translucidas */
html.p1-claro body.p1-tem-luz .leds-footer-social-link{border-color:rgba(18,25,38,.15) !important}
html.p1-claro body.p1-tem-luz .leds-footer-toggle-btn{border-top-color:rgba(18,25,38,.1) !important;border-left-color:rgba(18,25,38,.1) !important}
html.p1-claro body.p1-tem-luz .leds-footer-info-text{border-bottom-color:rgba(18,25,38,.1) !important}
html.p1-claro body.p1-tem-luz .leds-footer-bottom{border-top-color:rgba(18,25,38,.1) !important}

/* ale-cases (home): miolo claro, cards seguem fotograficos */
html.p1-claro body.p1-tem-luz section.ale-cases{background-color:#FFFFFF !important}
html.p1-claro body.p1-tem-luz .ale-cases__title{color:#121926 !important}
html.p1-claro body.p1-tem-luz .ale-cases__subtitle{color:#5B6B7C !important}
html.p1-claro body.p1-tem-luz .ale-cases__cta-btn{border-color:rgba(18,25,38,.25) !important;color:#5B6B7C !important}
html.p1-claro body.p1-tem-luz .ale-cases__cta-btn:hover{border-color:#0099D6 !important;color:#0099D6 !important}

/* leds-sales-center (central de vendas): cores cravadas no widget pedem override direto */
html.p1-claro body.p1-tem-luz .leds-sales-center .leds-container,
html.p1-claro body.p1-tem-luz .leds-sales-center .sales-center{background:#F5F8FB !important}
html.p1-claro body.p1-tem-luz .leds-sales-center .sales-center-title{color:#121926 !important}
html.p1-claro body.p1-tem-luz .leds-sales-center .sales-center-subtitle{color:#5B6B7C !important}
html.p1-claro body.p1-tem-luz .leds-sales-center .sales-card{background:#FFFFFF !important;border:1px solid rgba(18,25,38,.08)}
html.p1-claro body.p1-tem-luz .leds-sales-center .card-title{color:#121926 !important}
html.p1-claro body.p1-tem-luz .leds-sales-center .card-description{color:#5B6B7C !important}
