/*
 Theme Name:   LPX Starter Kit 2026
 Theme URI:    https://lpx.com.br/
 Description:  Base de infraestrutura: Tradução, Performance e Acessibilidade Global.
 Author:       LPX Development / Kairos Flow
 Author URI:   https://lpx.com.br/
 Template:     hello-elementor
 Version:      4.0.0
 Text Domain:  lpx
*/

/*
   ÍNDICE
   ------
    1. PERFORMANCE & RENDERIZAÇÃO
    2. BLINDAGEM GOOGLE TRANSLATE
    3. ACESSIBILIDADE GLOBAL
    4. TRADUTOR UI (CONTAINER)
    5. TRADUTOR CUSTOMIZADO (DROPDOWN) — UI COMPLETA
    6. EFEITOS VISUAIS LPX
    7. SCROLL REVEAL
    8. SKELETON LOADING
    9. BARRA DE AVISO (TOP ALERT)
   10. BOTÃO WHATSAPP FLUTUANTE
   11. ACESSIBILIDADE: TAMANHO DE FONTE
   12. COOKIE BANNER LGPD
   13. BREADCRUMB
   14. BOTÃO WHATSAPP INLINE [lpx_btn_wa]
   15. HORÁRIO DE FUNCIONAMENTO [lpx_horario]
   16. REDUCED MOTION (PREFERÊNCIA DO SISTEMA)
   17. DARK MODE (COMENTADO — ATIVAR POR PROJETO)
   18. SCREEN READER / ACESSIBILIDADE UTILITÁRIOS
*/


/* ========================================================
   1. PERFORMANCE & RENDERIZAÇÃO
   ======================================================== */

html {
    scroll-behavior: smooth;
    /* Offset para sticky header — JS atualiza --lpx-scroll-offset dinamicamente
       (seção 30 do functions.php). Default 80px se JS não rodar. */
    scroll-padding-top: var(--lpx-scroll-offset, 80px);
    margin-top: 0 !important;
    padding-top: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    top: 0 !important;
    position: static !important;
}


::selection {
    background: var( --e-global-color-primary );
    color: #fff;
}
/* Font Awesome removido em v3.7 — todos os ícones agora são SVG inline. */

/* ========================================================
   2. BLINDAGEM GOOGLE TRANSLATE
   FIX v3.2: .skiptranslate usa height:0 em vez de display:none
   para não esconder o .goog-te-combo necessário para a tradução.
   ======================================================== */

iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.skiptranslate > iframe,
.goog-te-balloon-frame,
#goog-gt-tt {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
}

/* NÃO usar display:none em .skiptranslate — contém o combo interno */
.skiptranslate {
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


/* ========================================================
   3. ACESSIBILIDADE GLOBAL
   ======================================================== */

:focus-visible {
    outline: 3px solid var( --e-global-color-primary ) !important;
    outline-offset: 3px !important;
}

body.lpx-high-contrast:not(.elementor-editor-active) {
    filter: invert(1) hue-rotate(180deg) !important;
    background-color: #000 !important;
}

body.lpx-high-contrast:not(.elementor-editor-active) img,
body.lpx-high-contrast:not(.elementor-editor-active) video,
body.lpx-high-contrast:not(.elementor-editor-active) svg,
body.lpx-high-contrast:not(.elementor-editor-active) iframe,
body.lpx-high-contrast:not(.elementor-editor-active) .elementor-background-overlay,
body.lpx-high-contrast:not(.elementor-editor-active) [style*="background-image"] {
    filter: invert(1) hue-rotate(180deg) !important;
}

.lpx-contrast-toggle {
    background-color: var( --e-global-color-primary );
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.lpx-contrast-toggle:hover {
    opacity: 0.85;
}


/* ========================================================
   4. TRADUTOR UI (CONTAINER)
   ======================================================== */

.lpx-translate-container {
    z-index: 99999 !important;
    position: relative;
}

/* Inline — siglas separadas por · */
.lpx-lang-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lpx-lang-sigla {
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: currentColor;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s;
    cursor: pointer;
}

.lpx-lang-sigla:hover {
    opacity: 1;
}

.lpx-lang-sep {
    font-size: 30px;
    color: currentColor;
    opacity: 0.4;
    user-select: none;
}


/* ========================================================
   5. TRADUTOR CUSTOMIZADO (DROPDOWN) — UI COMPLETA
   ======================================================== */

.lpx-custom-dropdown {
    position: relative;
    cursor: pointer;
    display: inline-flex;
}

.lpx-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    transition: color 0.2s;
}

.lpx-dropdown-trigger:hover { color: #ED3566; }

.lpx-dropdown-menu {
    position: absolute;
    top: 130%;
    right: 0;
    background: #fff;
    color: #333;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 160px;
    z-index: 9999;
    overflow: hidden;
}

.lpx-dropdown-menu.active {
    display: block;
    animation: lpxFadeInUp 0.3s ease;
}

@keyframes lpxFadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lpx-lang-option {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
    cursor: pointer;
}

.lpx-lang-option:last-child { border-bottom: none; }

.lpx-lang-code {
    font-weight: 800;
    padding: 12px;
    border-right: 1px solid #f1f5f9;
    min-width: 50px;
    text-align: center;
    color: #64748b;
    transition: color 0.2s;
}

.lpx-lang-name {
    padding: 12px;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.lpx-lang-option:hover { background: #f8fafc; }
.lpx-lang-option:hover .lpx-lang-code { color: var( --e-global-color-primary ); }


/* ========================================================
   6. EFEITOS VISUAIS LPX
   ======================================================== */

/* Grain noise — adicione a classe "lpx-noise" no body via Elementor:
   Elementor → Site Settings → Custom CSS → body { ... }
   OU em Elementor → Body class no campo de classe da página */
body.lpx-noise::before {
    content: '';
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* --------------------------------------------------------
   Light Sweep — classe: lpx-light-sweep
   Adicione no campo "Classe CSS" da seção no Elementor.
   Defina o background da seção como #04071a no Elementor.
   --------------------------------------------------------
   Técnica: blobs encadeados ao longo de um caminho sinusoidal.
   Elemento 200% largo → translateX(-50% a +50%) = passa de
   lado a lado sem reflow de layout.
   -------------------------------------------------------- */

.lpx-light-sweep {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
}

/* Núcleo brilhante — blobs no caminho da onda */
.lpx-light-sweep::before {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 200%;
    height: 100%;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    opacity: 0;
    will-change: transform, opacity;

    /* 10 blobs posicionados ao longo de uma curva sinusoidal
       x: 5% → 95% (distribuídos), y: sobe e desce criando a onda */
    background:
        radial-gradient(ellipse 130px 110px at  5% 58%, rgba(23,124,141,1)    0%, transparent 100%),
        radial-gradient(ellipse 120px 100px at 13% 44%, rgba(23,124,141,0.95) 0%, transparent 100%),
        radial-gradient(ellipse 130px 110px at 22% 33%, rgba(23,124,141,1)    0%, transparent 100%),
        radial-gradient(ellipse 120px 100px at 31% 40%, rgba(23,124,141,0.95) 0%, transparent 100%),
        radial-gradient(ellipse 130px 110px at 40% 54%, rgba(23,124,141,1)    0%, transparent 100%),
        radial-gradient(ellipse 120px 100px at 51% 52%, rgba(23,124,141,0.95) 0%, transparent 100%),
        radial-gradient(ellipse 130px 110px at 62% 38%, rgba(23,124,141,1)    0%, transparent 100%),
        radial-gradient(ellipse 120px 100px at 73% 34%, rgba(23,124,141,0.95) 0%, transparent 100%),
        radial-gradient(ellipse 130px 110px at 84% 44%, rgba(23,124,141,1)    0%, transparent 100%),
        radial-gradient(ellipse 120px 100px at 95% 52%, rgba(23,124,141,0.95) 0%, transparent 100%);

    filter: blur(20px);
    animation: lpxWavePass 12s ease-in-out infinite;
}

/* Halo externo — mesmos pontos mas muito mais difusos */
.lpx-light-sweep::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 200%;
    height: 100%;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    opacity: 0;
    will-change: transform, opacity;

    background:
        radial-gradient(ellipse 220px 200px at  5% 58%, rgba(19,106,120,0.65) 0%, transparent 100%),
        radial-gradient(ellipse 220px 200px at 22% 33%, rgba(19,106,120,0.65) 0%, transparent 100%),
        radial-gradient(ellipse 220px 200px at 40% 54%, rgba(19,106,120,0.65) 0%, transparent 100%),
        radial-gradient(ellipse 220px 200px at 62% 38%, rgba(19,106,120,0.65) 0%, transparent 100%),
        radial-gradient(ellipse 220px 200px at 84% 44%, rgba(19,106,120,0.65) 0%, transparent 100%);

    filter: blur(55px);
    animation: lpxWavePass 12s ease-in-out infinite 0.3s;
}

@keyframes lpxWavePass {
    0%   { transform: translateX(-50%); opacity: 0; }
    8%   { opacity: 1; }
    92%  { opacity: 1; }
    100% { transform: translateX(50%);  opacity: 0; }
}

/* Conteúdo da seção acima do efeito */
.lpx-light-sweep > .elementor-container,
.lpx-light-sweep > .e-con-inner,
.lpx-light-sweep > .e-con {
    position: relative;
    z-index: 1;
}

/* Preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .lpx-light-sweep::before {
        animation: none;
        opacity: 0.7;
        transform: translateX(-25%);
    }
    .lpx-light-sweep::after {
        animation: none;
        opacity: 0.4;
        transform: translateX(-25%);
    }
}

/* No editor Elementor: estático para não distrair durante a edição */
.elementor-editor-active .lpx-light-sweep::before,
.elementor-editor-active .lpx-light-sweep::after {
    animation: none !important;
    opacity: 0.5 !important;
    transform: translateX(-25%) !important;
}

/* Contador animado — no editor do Elementor mostra o valor final sem animação */
.elementor-editor-active .lpx-counter {
    display: inline-block;
    color: var( --e-global-color-primary );
}

.card-premium {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.card-premium:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 35px rgba(51, 105, 158, 0.15) !important;
}


/* ========================================================
   7. SCROLL REVEAL
   ======================================================== */

body:not(.elementor-editor-active) .revelar-suave {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    visibility: hidden !important;
    transition:
        opacity    0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform  0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0s   linear 0.8s !important;
}

body:not(.elementor-editor-active) .revelar-suave.revelar-ativo {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    transition:
        opacity    0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform  0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        visibility 0s   linear 0s !important;
}


/* ========================================================
   8. SKELETON LOADING — classe: lpx-loading
   ======================================================== */

.lpx-loading {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 936px 104px;
    background-repeat: no-repeat;
    animation: lpxSkeletonShimmer 1.5s linear infinite forwards;
}

@keyframes lpxSkeletonShimmer {
    0%   { background-position: -468px 0; }
    100% { background-position:  468px 0; }
}


/* ========================================================
   9. BARRA DE AVISO (TOP ALERT)
   ======================================================== */

.lpx-top-alert {
    background: #ED3566;
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    font-weight: bold;
    position: relative;
    z-index: 9999;
    font-size: 14px;
    line-height: 1.5;
}


/* ========================================================
   10. BOTÃO WHATSAPP FLUTUANTE
   ======================================================== */

.lpx-wa-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.lpx-wa-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
}

.lpx-wa-float svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

@media (max-width: 768px) {
    .lpx-wa-float     { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .lpx-wa-float svg { width: 26px; height: 26px; }
}


/* ========================================================
   11. ACESSIBILIDADE: TAMANHO DE FONTE
   FIX v3.1: 4 níveis em cada direção, steps ~12% por clique.
   Shortcode: [lpx_info id="fonte"]

   O dimensionamento é aplicado via JS (functions.php seção 17)
   diretamente em h1-h6/p para preservar a tipografia do Elementor.
   Aqui ficam apenas os controles visuais (A- / A / A+).
   ======================================================== */

.lpx-font-controls {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.lpx-font-btn {
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px 11px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lpx-font-btn:hover {
    background: #ED3566;
    color: #fff;
    border-color: #ED3566;
}

.lpx-font-reset {
    font-size: 1em;
    padding: 5px 14px;
}


/* ========================================================
   12. COOKIE BANNER LGPD
   ======================================================== */

.lpx-lgpd-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 999999;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

/* Garante que [hidden] funcione mesmo se algum tema/plugin sobrescrever display */
.lpx-lgpd-banner[hidden] {
    display: none !important;
}

.lpx-lgpd-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
    min-width: 200px;
}

.lpx-lgpd-text a { color: #ED3566; text-decoration: underline; }

.lpx-lgpd-actions { display: flex; gap: 10px; flex-shrink: 0; }

.lpx-lgpd-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap;
}

.lpx-lgpd-accept            { background: #ED3566; color: #fff; }
.lpx-lgpd-accept:hover      { background: #c81e52; }
.lpx-lgpd-decline           { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.lpx-lgpd-decline:hover     { background: rgba(255,255,255,0.1); }

@media (max-width: 600px) {
    .lpx-lgpd-banner         { flex-direction: column; text-align: center; }
    .lpx-lgpd-actions        { width: 100%; justify-content: center; }
    .lpx-lgpd-btn            { flex: 1; }
}


/* ========================================================
   13. BREADCRUMB
   ======================================================== */

.lpx-breadcrumb             { font-size: 14px; }
.lpx-breadcrumb ol          { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lpx-breadcrumb .lpx-crumb a { color: inherit; text-decoration: none; opacity: 0.65; transition: opacity 0.2s; }
.lpx-breadcrumb .lpx-crumb a:hover { opacity: 1; text-decoration: underline; }
.lpx-breadcrumb .lpx-crumb-sep { opacity: 0.35; font-size: 12px; user-select: none; }


/* ========================================================
   14. BOTÃO WHATSAPP INLINE [lpx_btn_wa]
   Personalize cores e tamanho por projeto.
   ======================================================== */

.lpx-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    line-height: 1.2;
}

.lpx-btn-wa:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
    color: #fff !important;
}

.lpx-btn-wa:active {
    transform: translateY(0);
}

.lpx-btn-wa .lpx-icon-wa,
.lpx-btn-wa svg {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}

/* Variante full-width (adicione classe "lpx-btn-wa-full" no shortcode) */
.lpx-btn-wa-full {
    display: flex;
    width: 100%;
    justify-content: center;
}

@media (max-width: 480px) {
    .lpx-btn-wa {
        width: 100%;
        justify-content: center;
        font-size: 15px;
        padding: 13px 20px;
    }
}


/* ========================================================
   15. HORÁRIO DE FUNCIONAMENTO [lpx_horario]
   ======================================================== */

.lpx-horario {
    display: inline;
    font-size: inherit;
    color: inherit;
}

.lpx-horario-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lpx-horario-lista li {
    font-size: 14px;
    color: inherit;
    line-height: 1.6;
}

.lpx-horario-lista strong {
    font-weight: 700;
    margin-right: 4px;
}


/* ========================================================
   16. REDUCED MOTION (PREFERÊNCIA DO SISTEMA)
   ======================================================== */

@media (prefers-reduced-motion: reduce) {

    *[class*="lpx-"] {
        transition: none !important;
        animation: none !important;
    }

    .card-premium:hover { transform: none !important; }

    body:not(.elementor-editor-active) .revelar-suave {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        transition: none !important;
    }

    body:not(.elementor-editor-active) .revelar-suave.revelar-ativo {
        transition: none !important;
    }

    .lpx-wa-float:hover { transform: none !important; }

    .lpx-btn-wa:hover   { transform: none !important; }

    .lpx-loading {
        animation: none !important;
        background-image: none !important;
        background-color: #edeef1 !important;
    }
}


/* ========================================================
   17. DARK MODE (COMENTADO — ATIVAR POR PROJETO)
   ======================================================== */

/*
@media (prefers-color-scheme: dark) {
    :root {
        --lpx-bg:      #121212;
        --lpx-surface: #1e1e1e;
        --lpx-text:    #e0e0e0;
        --lpx-muted:   #a0a0a0;
        --lpx-accent:  #ED3566;
        --lpx-border:  rgba(255,255,255,0.1);
    }

    body {
        background-color: var(--lpx-bg);
        color: var(--lpx-text);
    }

    a { color: var(--lpx-accent); }

    .lpx-lgpd-banner { background: #0d0d1a; }
}
*/


/* ========================================================
   18. SCREEN READER / ACESSIBILIDADE UTILITÁRIOS
   ======================================================== */

.lpx-sr-only {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
    white-space: nowrap;
}


/* ========================================================
   19. VIDEO FACADE (YouTube / Vimeo)
   ======================================================== */

.lpx-video-ratio {
    position: relative;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: #111 center / cover no-repeat;
}

.lpx-video-ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.lpx-video-facade {
    display: block;
    cursor: pointer;
    outline-offset: 3px;
}

.lpx-video-facade:focus-visible {
    outline: 3px solid var(--e-global-color-primary, #33699E);
}

.lpx-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.lpx-video-facade:hover .lpx-play-btn,
.lpx-video-facade:focus-visible .lpx-play-btn {
    transform: scale(1.1);
}

.lpx-facade-gate {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    text-align: center;
    padding: 24px;
}

.lpx-facade-gate p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    max-width: 280px;
}


/* ========================================================
   20. IFRAME GATE (mapas e outros embeds — LGPD)
   ======================================================== */

.lpx-iframe-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 48px 24px;
    background: #f4f6f9;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 8px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.lpx-iframe-gate p {
    margin: 0;
}

.lpx-iframe-gate svg {
    opacity: 0.45;
}


/* ========================================================
   21. BOTÃO VOLTAR AO TOPO
   ======================================================== */

.lpx-back-top {
    position: fixed;
    bottom: 100px; /* acima do botão WhatsApp (60px + 30px + 10px gap) */
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--e-global-color-primary, #33699E);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: opacity 0.25s, transform 0.25s;
    z-index: 9998;
    text-decoration: none;
}

.lpx-back-top[hidden] {
    display: none;
}

.lpx-back-top:hover {
    opacity: 0.85;
    transform: translateY(-3px);
}

.lpx-back-top:focus-visible {
    outline: 3px solid var(--e-global-color-primary, #33699E);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .lpx-back-top {
        bottom: 82px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}


/* ========================================================
   22. STICKY HEADER
   Estilize .lpx-sticky conforme o projeto.
   O slide-down é desativado em prefers-reduced-motion.
   ======================================================== */

.lpx-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
    animation: lpxSlideDown 0.3s ease both;
}

@keyframes lpxSlideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}


/* ========================================================
   REDUCED MOTION — novos componentes
   ======================================================== */

@media (prefers-reduced-motion: reduce) {
    .lpx-back-top            { transition: none !important; }
    .lpx-back-top:hover      { transform: none !important; }
    .lpx-play-btn            { transition: none !important; }
    .lpx-video-facade:hover .lpx-play-btn,
    .lpx-video-facade:focus-visible .lpx-play-btn { transform: none !important; }
    .lpx-sticky              { animation: none !important; }
}


/* ========================================================
   23. LAZY BACKGROUND IMAGES (data-lpx-bg)
   ======================================================== */

[data-lpx-bg] {
    background-color: #e8eaed; /* placeholder neutro enquanto carrega */
}

.lpx-bg-loaded {
    transition: background-image 0s;
}


/* ========================================================
   LOGO WALL — grayscale por padrão, cor no hover
   ======================================================== */

.lpx-logo-grayscale img {
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease;
}

.lpx-logo-grayscale:hover img,
.lpx-logo-grayscale:focus-visible img {
    filter: grayscale(0%) opacity(1);
}

@media (prefers-reduced-motion: reduce) {
    .lpx-logo-grayscale img { transition: none !important; }
}


/* ========================================================
   24. FLOATING CONTACT MULTI-CANAL (lpx_float_style="multi")
   ======================================================== */

.lpx-float-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lpx-float-options {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.lpx-float-options[hidden] {
    display: none !important;
}

.lpx-float-options li {
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    animation: lpxFloatIn 0.25s ease forwards;
}

.lpx-float-options li:nth-child(1) { animation-delay: 0s; }
.lpx-float-options li:nth-child(2) { animation-delay: 0.05s; }
.lpx-float-options li:nth-child(3) { animation-delay: 0.10s; }

@keyframes lpxFloatIn {
    to { opacity: 1; transform: translateY(0); }
}

.lpx-float-opt,
.lpx-float-trigger {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lpx-float-opt:hover,
.lpx-float-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    color: #fff;
}

.lpx-float-wa      { background-color: #25d366; }
.lpx-float-wa:hover{ background-color: #128c7e; }
.lpx-float-tel     { background-color: var(--e-global-color-primary, #33699E); }
.lpx-float-tel:hover { opacity: 0.9; }
.lpx-float-email   { background-color: #4b5563; }
.lpx-float-email:hover { background-color: #1f2937; }

/* Botão principal: WA verde, gira 45° quando aberto (X-like) */
.lpx-float-trigger {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    transition: transform 0.3s ease, background-color 0.2s ease;
}
.lpx-float-trigger:hover {
    background-color: #128c7e;
}
.lpx-float-contact[data-open="true"] .lpx-float-trigger {
    transform: rotate(45deg);
    background-color: #555;
}

.lpx-float-trigger svg,
.lpx-float-opt svg {
    pointer-events: none;
}

.lpx-float-trigger svg { width: 28px; height: 28px; }
.lpx-float-opt svg     { width: 22px; height: 22px; }

@media (max-width: 768px) {
    .lpx-float-contact   { bottom: 20px; right: 20px; gap: 10px; }
    .lpx-float-trigger   { width: 50px; height: 50px; }
    .lpx-float-trigger svg { width: 24px; height: 24px; }
    .lpx-float-opt       { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .lpx-float-options li,
    .lpx-float-trigger { transition: none !important; animation: none !important; }
    .lpx-float-contact[data-open="true"] .lpx-float-trigger { transform: none !important; }
}
