/* =============================================
   GW Elementos Maxíme Oro - Premium Ribbon
   Desenvolvido por Gerencie Web
   https://gerencieweb.com.br/
   v1.4.1 - Correção de overflow e adição de título/descrição
   ============================================= */

/* =============================================
   WRAPPER BASE
   O ribbon é posicionado absolute dentro do
   container pai (seção/coluna do Elementor)
   ============================================= */
.gw-emor-ribbon-wrapper {
    position: absolute;
    pointer-events: auto;
    line-height: 1;
    box-sizing: border-box;
}

.gw-emor-ribbon-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

/* =============================================
   INNER (a faixa em si)
   ============================================= */
.gw-emor-ribbon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* Quando multiline, permitir quebra */
.gw-emor-multiline .gw-emor-ribbon-inner {
    white-space: normal;
}

.gw-emor-ribbon-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* =============================================
   TEXTOS: TÍTULO, SUBTÍTULO, DESCRIÇÃO
   ============================================= */
.gw-emor-ribbon-texts {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.gw-emor-ribbon-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    display: block;
}

.gw-emor-ribbon-text {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    display: block;
}

.gw-emor-ribbon-desc {
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
    display: block;
    opacity: 0.85;
}

/* =============================================
   ÍCONE
   ============================================= */
.gw-emor-ribbon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.gw-emor-ribbon-icon img {
    display: block;
    object-fit: contain;
}

.gw-emor-ribbon-icon svg {
    display: block;
}

/* =============================================
   ESTILO: CORNER (Diagonal)
   CORREÇÃO: usar tamanho dinâmico via CSS var
   e overflow: visible para não cortar
   ============================================= */
.gw-emor-style-corner {
    overflow: visible;
    width: var(--gw-ribbon-corner-size, 200px);
    height: var(--gw-ribbon-corner-size, 200px);
    pointer-events: none;
}

.gw-emor-style-corner .gw-emor-ribbon-inner {
    width: var(--gw-ribbon-width, 250px);
    transform: rotate(var(--gw-ribbon-angle, -45deg));
    pointer-events: auto;
}

.gw-emor-style-corner .gw-emor-ribbon-link {
    pointer-events: auto;
}

/* Corner: Top Left */
.gw-emor-style-corner.gw-emor-pos-top-left {
    top: 0;
    left: 0;
}

.gw-emor-style-corner.gw-emor-pos-top-left .gw-emor-ribbon-inner {
    position: absolute;
    top: var(--gw-ribbon-distance, 30px);
    left: 50%;
    transform: translateX(-50%) rotate(var(--gw-ribbon-angle, -45deg));
    transform-origin: center;
}

/* Corner: Top Right */
.gw-emor-style-corner.gw-emor-pos-top-right {
    top: 0;
    right: 0;
}

.gw-emor-style-corner.gw-emor-pos-top-right .gw-emor-ribbon-inner {
    position: absolute;
    top: var(--gw-ribbon-distance, 30px);
    right: 50%;
    transform: translateX(50%) rotate(calc(var(--gw-ribbon-angle, -45deg) * -1));
    transform-origin: center;
}

/* Corner: Bottom Left */
.gw-emor-style-corner.gw-emor-pos-bottom-left {
    bottom: 0;
    left: 0;
}

.gw-emor-style-corner.gw-emor-pos-bottom-left .gw-emor-ribbon-inner {
    position: absolute;
    bottom: var(--gw-ribbon-distance, 30px);
    left: 50%;
    transform: translateX(-50%) rotate(calc(var(--gw-ribbon-angle, -45deg) * -1));
    transform-origin: center;
}

/* Corner: Bottom Right */
.gw-emor-style-corner.gw-emor-pos-bottom-right {
    bottom: 0;
    right: 0;
}

.gw-emor-style-corner.gw-emor-pos-bottom-right .gw-emor-ribbon-inner {
    position: absolute;
    bottom: var(--gw-ribbon-distance, 30px);
    right: 50%;
    transform: translateX(50%) rotate(var(--gw-ribbon-angle, -45deg));
    transform-origin: center;
}

/* =============================================
   ESTILO: HORIZONTAL (Faixa)
   ============================================= */
.gw-emor-style-horizontal.gw-emor-pos-top-left {
    top: calc(10px + var(--gw-ribbon-offset-y, 0px));
    left: var(--gw-ribbon-offset-x, 0px);
}

.gw-emor-style-horizontal.gw-emor-pos-top-right {
    top: calc(10px + var(--gw-ribbon-offset-y, 0px));
    right: var(--gw-ribbon-offset-x, 0px);
}

.gw-emor-style-horizontal.gw-emor-pos-bottom-left {
    bottom: calc(10px + var(--gw-ribbon-offset-y, 0px));
    left: var(--gw-ribbon-offset-x, 0px);
}

.gw-emor-style-horizontal.gw-emor-pos-bottom-right {
    bottom: calc(10px + var(--gw-ribbon-offset-y, 0px));
    right: var(--gw-ribbon-offset-x, 0px);
}

/* =============================================
   ESTILO: FLAG (Bandeira)
   ============================================= */
.gw-emor-style-flag .gw-emor-ribbon-inner {
    position: relative;
}

/* Flag: posições à esquerda - triângulo no lado direito */
.gw-emor-style-flag.gw-emor-pos-top-left,
.gw-emor-style-flag.gw-emor-pos-bottom-left {
    left: 0;
}

.gw-emor-style-flag.gw-emor-pos-top-left {
    top: calc(15px + var(--gw-ribbon-offset-y, 0px));
}

.gw-emor-style-flag.gw-emor-pos-bottom-left {
    bottom: calc(15px + var(--gw-ribbon-offset-y, 0px));
}

.gw-emor-style-flag.gw-emor-pos-top-left .gw-emor-ribbon-inner::after,
.gw-emor-style-flag.gw-emor-pos-bottom-left .gw-emor-ribbon-inner::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50% 12px 50% 0;
    border-color: transparent transparent transparent;
}

/* Flag: posições à direita - triângulo no lado esquerdo */
.gw-emor-style-flag.gw-emor-pos-top-right,
.gw-emor-style-flag.gw-emor-pos-bottom-right {
    right: 0;
}

.gw-emor-style-flag.gw-emor-pos-top-right {
    top: calc(15px + var(--gw-ribbon-offset-y, 0px));
}

.gw-emor-style-flag.gw-emor-pos-bottom-right {
    bottom: calc(15px + var(--gw-ribbon-offset-y, 0px));
}

.gw-emor-style-flag.gw-emor-pos-top-right .gw-emor-ribbon-inner::after,
.gw-emor-style-flag.gw-emor-pos-bottom-right .gw-emor-ribbon-inner::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50% 0 50% 12px;
    border-color: transparent transparent transparent transparent;
}

/* =============================================
   ESTILO: BOOKMARK (Marcador)
   ============================================= */
.gw-emor-style-bookmark .gw-emor-ribbon-inner {
    position: relative;
    padding-bottom: 16px;
}

.gw-emor-style-bookmark .gw-emor-ribbon-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: inherit;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.gw-emor-style-bookmark.gw-emor-pos-top-left {
    top: 0;
    left: calc(20px + var(--gw-ribbon-offset-x, 0px));
}

.gw-emor-style-bookmark.gw-emor-pos-top-right {
    top: 0;
    right: calc(20px + var(--gw-ribbon-offset-x, 0px));
}

.gw-emor-style-bookmark.gw-emor-pos-bottom-left {
    bottom: 0;
    left: calc(20px + var(--gw-ribbon-offset-x, 0px));
}

.gw-emor-style-bookmark.gw-emor-pos-bottom-right {
    bottom: 0;
    right: calc(20px + var(--gw-ribbon-offset-x, 0px));
}

/* Bookmark bottom: invertido */
.gw-emor-style-bookmark.gw-emor-pos-bottom-left .gw-emor-ribbon-inner,
.gw-emor-style-bookmark.gw-emor-pos-bottom-right .gw-emor-ribbon-inner {
    padding-bottom: 8px;
    padding-top: 16px;
}

.gw-emor-style-bookmark.gw-emor-pos-bottom-left .gw-emor-ribbon-inner::after,
.gw-emor-style-bookmark.gw-emor-pos-bottom-right .gw-emor-ribbon-inner::after {
    top: 0;
    bottom: auto;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

/* =============================================
   FOLD (Efeito de Dobra)
   ============================================= */
.gw-emor-fold {
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Fold para posição esquerda */
.gw-emor-pos-top-left .gw-emor-fold-1,
.gw-emor-pos-bottom-left .gw-emor-fold-1 {
    display: none;
}

.gw-emor-style-horizontal.gw-emor-pos-top-left .gw-emor-fold-2,
.gw-emor-style-flag.gw-emor-pos-top-left .gw-emor-fold-2 {
    display: none;
}

.gw-emor-style-horizontal.gw-emor-pos-top-right .gw-emor-fold-2,
.gw-emor-style-flag.gw-emor-pos-top-right .gw-emor-fold-2 {
    display: none;
}

/* Fold genérico - triângulo escuro */
.gw-emor-fold-1 {
    border-width: 5px;
    border-color: var(--gw-ribbon-fold-color, #8b1a1a) transparent transparent var(--gw-ribbon-fold-color, #8b1a1a);
}

.gw-emor-fold-2 {
    border-width: 5px;
    border-color: var(--gw-ribbon-fold-color, #8b1a1a) var(--gw-ribbon-fold-color, #8b1a1a) transparent transparent;
}

/* =============================================
   DEGRADÊ DOURADO ANIMADO
   ============================================= */
.gw-emor-bg-animated_gold {
    background: linear-gradient(90deg,
        #8A7E56,
        #A29666,
        #C4BA90,
        #D6CCA6,
        #C4BA90,
        #A29666,
        #8A7E56
    ) !important;
    background-size: 300% 100% !important;
    animation: gw-emor-shimmer-gold 2.5s linear infinite !important;
}

.gw-emor-bg-animated_gold.gw-emor-anim-slow {
    animation-duration: 4s !important;
}

.gw-emor-bg-animated_gold.gw-emor-anim-normal {
    animation-duration: 2.5s !important;
}

.gw-emor-bg-animated_gold.gw-emor-anim-fast {
    animation-duration: 1.5s !important;
}

@keyframes gw-emor-shimmer-gold {
    0% { background-position: -300% 0; }
    100% { background-position: 300% 0; }
}

/* =============================================
   DEGRADÊ PRATEADO ANIMADO
   ============================================= */
.gw-emor-bg-animated_silver {
    background: linear-gradient(90deg,
        #7a7a7a,
        #a0a0a0,
        #d4d4d4,
        #e8e8e8,
        #d4d4d4,
        #a0a0a0,
        #7a7a7a
    ) !important;
    background-size: 300% 100% !important;
    animation: gw-emor-shimmer-silver 2.5s linear infinite !important;
}

.gw-emor-bg-animated_silver.gw-emor-anim-slow {
    animation-duration: 4s !important;
}

.gw-emor-bg-animated_silver.gw-emor-anim-normal {
    animation-duration: 2.5s !important;
}

.gw-emor-bg-animated_silver.gw-emor-anim-fast {
    animation-duration: 1.5s !important;
}

@keyframes gw-emor-shimmer-silver {
    0% { background-position: -300% 0; }
    100% { background-position: 300% 0; }
}

/* =============================================
   DEGRADÊ ANIMADO PERSONALIZADO
   ============================================= */
.gw-emor-bg-animated_custom {
    background: linear-gradient(
        var(--gw-ribbon-anim-dir, 90deg),
        var(--gw-ribbon-anim-c1, #c62828),
        var(--gw-ribbon-anim-c2, #e53935),
        var(--gw-ribbon-anim-c3, #ff5252),
        var(--gw-ribbon-anim-c2, #e53935),
        var(--gw-ribbon-anim-c1, #c62828)
    ) !important;
    background-size: 300% 100% !important;
    animation: gw-emor-shimmer-custom 2.5s linear infinite !important;
}

.gw-emor-bg-animated_custom.gw-emor-anim-slow {
    animation-duration: 4s !important;
}

.gw-emor-bg-animated_custom.gw-emor-anim-normal {
    animation-duration: 2.5s !important;
}

.gw-emor-bg-animated_custom.gw-emor-anim-fast {
    animation-duration: 1.5s !important;
}

@keyframes gw-emor-shimmer-custom {
    0% { background-position: -300% 0; }
    100% { background-position: 300% 0; }
}

/* =============================================
   EFEITO SHINE (Brilho Passando)
   ============================================= */
.gw-emor-shine .gw-emor-ribbon-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    z-index: 3;
    pointer-events: none;
    animation: gw-emor-ribbon-shine 2.5s ease-in-out infinite;
}

.gw-emor-shine-slow .gw-emor-ribbon-inner::before {
    animation-duration: 4s;
}

.gw-emor-shine-normal .gw-emor-ribbon-inner::before {
    animation-duration: 2.5s;
}

.gw-emor-shine-fast .gw-emor-ribbon-inner::before {
    animation-duration: 1.5s;
}

@keyframes gw-emor-ribbon-shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* =============================================
   EFEITOS DE HOVER
   ============================================= */

/* Pulse */
.gw-emor-hover-pulse:hover .gw-emor-ribbon-inner {
    animation: gw-emor-ribbon-pulse 1s ease infinite;
}

@keyframes gw-emor-ribbon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Glow */
.gw-emor-hover-glow:hover .gw-emor-ribbon-inner {
    box-shadow: 0 0 15px rgba(162, 150, 102, 0.6), 0 0 30px rgba(162, 150, 102, 0.3);
}

/* Scale */
.gw-emor-hover-scale:hover .gw-emor-ribbon-inner {
    transform: scale(1.1);
}

/* Shake */
.gw-emor-hover-shake:hover .gw-emor-ribbon-inner {
    animation: gw-emor-ribbon-shake 0.5s ease;
}

@keyframes gw-emor-ribbon-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* Bounce */
.gw-emor-hover-bounce:hover .gw-emor-ribbon-inner {
    animation: gw-emor-ribbon-bounce 0.6s ease;
}

@keyframes gw-emor-ribbon-bounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
    50% { transform: translateY(0); }
    70% { transform: translateY(-4px); }
}

/* Swing */
.gw-emor-hover-swing:hover .gw-emor-ribbon-inner {
    animation: gw-emor-ribbon-swing 0.6s ease;
    transform-origin: top center;
}

@keyframes gw-emor-ribbon-swing {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(8deg); }
    40% { transform: rotate(-6deg); }
    60% { transform: rotate(4deg); }
    80% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

/* =============================================
   ANIMAÇÕES DE ENTRADA
   ============================================= */

/* Fade In */
.gw-emor-entrance-fade-in {
    animation: gw-emor-fade-in 0.8s ease forwards;
}

@keyframes gw-emor-fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Slide In */
.gw-emor-entrance-slide-in.gw-emor-pos-top-left,
.gw-emor-entrance-slide-in.gw-emor-pos-bottom-left {
    animation: gw-emor-slide-in-left 0.6s ease forwards;
}

.gw-emor-entrance-slide-in.gw-emor-pos-top-right,
.gw-emor-entrance-slide-in.gw-emor-pos-bottom-right {
    animation: gw-emor-slide-in-right 0.6s ease forwards;
}

@keyframes gw-emor-slide-in-left {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes gw-emor-slide-in-right {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Zoom In */
.gw-emor-entrance-zoom-in {
    animation: gw-emor-zoom-in 0.5s ease forwards;
}

@keyframes gw-emor-zoom-in {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Rotate In */
.gw-emor-entrance-rotate-in {
    animation: gw-emor-rotate-in 0.6s ease forwards;
}

@keyframes gw-emor-rotate-in {
    0% { transform: rotate(-180deg) scale(0); opacity: 0; }
    100% { transform: rotate(0deg) scale(1); opacity: 1; }
}

/* =============================================
   POSIÇÃO FIXA NA TELA
   Quando ativado, o ribbon sai do fluxo do
   container e fica fixo na viewport
   ============================================= */
.gw-emor-fixed {
    position: fixed !important;
}

/* Posições fixas */
.gw-emor-fixed.gw-emor-fixed-top-left {
    top: var(--gw-fixed-offset-y, 0px) !important;
    left: var(--gw-fixed-offset-x, 0px) !important;
    right: auto !important;
    bottom: auto !important;
}

.gw-emor-fixed.gw-emor-fixed-top-right {
    top: var(--gw-fixed-offset-y, 0px) !important;
    right: var(--gw-fixed-offset-x, 0px) !important;
    left: auto !important;
    bottom: auto !important;
}

.gw-emor-fixed.gw-emor-fixed-top-center {
    top: var(--gw-fixed-offset-y, 0px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    bottom: auto !important;
}

.gw-emor-fixed.gw-emor-fixed-bottom-left {
    bottom: var(--gw-fixed-offset-y, 0px) !important;
    left: var(--gw-fixed-offset-x, 0px) !important;
    right: auto !important;
    top: auto !important;
}

.gw-emor-fixed.gw-emor-fixed-bottom-right {
    bottom: var(--gw-fixed-offset-y, 0px) !important;
    right: var(--gw-fixed-offset-x, 0px) !important;
    left: auto !important;
    top: auto !important;
}

.gw-emor-fixed.gw-emor-fixed-bottom-center {
    bottom: var(--gw-fixed-offset-y, 0px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    top: auto !important;
}

.gw-emor-fixed.gw-emor-fixed-middle-left {
    top: 50% !important;
    left: var(--gw-fixed-offset-x, 0px) !important;
    transform: translateY(-50%) !important;
    right: auto !important;
    bottom: auto !important;
}

.gw-emor-fixed.gw-emor-fixed-middle-right {
    top: 50% !important;
    right: var(--gw-fixed-offset-x, 0px) !important;
    transform: translateY(-50%) !important;
    left: auto !important;
    bottom: auto !important;
}

/* Corner fixo: resetar overflow e dimensões para funcionar com fixed */
.gw-emor-fixed.gw-emor-style-corner {
    overflow: visible;
}

/* =============================================
   RESPONSIVIDADE
   ============================================= */

/* Ocultar no Mobile */
@media (max-width: 480px) {
    .gw-emor-hide-mobile[style*="--gw-ribbon-mobile-bp:480px"] {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .gw-emor-hide-mobile[style*="--gw-ribbon-mobile-bp:576px"] {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .gw-emor-hide-mobile[style*="--gw-ribbon-mobile-bp:640px"] {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .gw-emor-hide-mobile {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .gw-emor-hide-mobile[style*="--gw-ribbon-mobile-bp:1024px"] {
        display: none !important;
    }

    .gw-emor-hide-tablet {
        display: none !important;
    }
}

/* Escala no mobile (quando visível e NÃO fixo) */
@media (max-width: 768px) {
    .gw-emor-ribbon-wrapper:not(.gw-emor-hide-mobile):not(.gw-emor-fixed) {
        transform: scale(var(--gw-ribbon-mobile-scale, 0.75));
    }

    .gw-emor-style-corner:not(.gw-emor-hide-mobile):not(.gw-emor-fixed) {
        width: calc(var(--gw-ribbon-corner-size, 200px) * var(--gw-ribbon-mobile-scale, 0.75));
        height: calc(var(--gw-ribbon-corner-size, 200px) * var(--gw-ribbon-mobile-scale, 0.75));
    }
}

/* =============================================
   DESABILITAR FIXO NO MOBILE
   Volta para position: absolute no mobile
   ============================================= */
@media (max-width: 480px) {
    .gw-emor-fixed.gw-emor-fixed-no-mobile[style*="--gw-fixed-mobile-bp:480px"] {
        position: absolute !important;
    }
}

@media (max-width: 576px) {
    .gw-emor-fixed.gw-emor-fixed-no-mobile[style*="--gw-fixed-mobile-bp:576px"] {
        position: absolute !important;
    }
}

@media (max-width: 640px) {
    .gw-emor-fixed.gw-emor-fixed-no-mobile[style*="--gw-fixed-mobile-bp:640px"] {
        position: absolute !important;
    }
}

@media (max-width: 768px) {
    .gw-emor-fixed.gw-emor-fixed-no-mobile {
        position: absolute !important;
    }
}

@media (max-width: 1024px) {
    .gw-emor-fixed.gw-emor-fixed-no-mobile[style*="--gw-fixed-mobile-bp:1024px"] {
        position: absolute !important;
    }

    .gw-emor-fixed.gw-emor-fixed-no-tablet {
        position: absolute !important;
    }
}

/* =============================================
   GARANTIR CONTAINER PAI COM POSITION RELATIVE
   E OVERFLOW VISIBLE (CORREÇÃO PRINCIPAL)
   ============================================= */
.elementor-widget-gw_maxime_oro_ribbon {
    position: static !important;
}

.elementor-widget-gw_maxime_oro_ribbon > .elementor-widget-container {
    position: static !important;
    overflow: visible !important;
}

/* Quando fixo, o widget e container precisam permitir o fixed funcionar */
.elementor-widget-gw_maxime_oro_ribbon:has(.gw-emor-fixed) {
    position: static !important;
    overflow: visible !important;
    z-index: auto !important;
}

.elementor-widget-gw_maxime_oro_ribbon:has(.gw-emor-fixed) > .elementor-widget-container {
    position: static !important;
    overflow: visible !important;
    z-index: auto !important;
}

/* Forçar o container pai (seção/coluna) a ter position relative
   E overflow: visible para NÃO cortar o ribbon */
.elementor-section:has(.gw-emor-ribbon-wrapper),
.elementor-column:has(.gw-emor-ribbon-wrapper),
.e-con:has(.gw-emor-ribbon-wrapper) {
    position: relative !important;
    overflow: visible !important;
}

/* Quando fixo, todos os pais precisam de overflow visible */
.elementor-section:has(.gw-emor-fixed),
.elementor-column:has(.gw-emor-fixed),
.e-con:has(.gw-emor-fixed),
.elementor-element:has(.gw-emor-fixed) {
    overflow: visible !important;
}

/* =============================================
   EDITOR DO ELEMENTOR
   ============================================= */
.elementor-editor-active .gw-emor-ribbon-wrapper {
    min-width: 50px;
    min-height: 20px;
}

/* No editor, mostrar mesmo se hide-mobile */
.elementor-editor-active .gw-emor-hide-mobile,
.elementor-editor-active .gw-emor-hide-tablet {
    display: block !important;
    opacity: 0.5;
}

/* No editor, não usar position fixed (fica confuso no iframe) */
.elementor-editor-active .gw-emor-fixed {
    position: absolute !important;
}

/* Indicador visual de que o ribbon é fixo (no editor) */
.elementor-editor-active .gw-emor-fixed::after {
    content: '📌 Fixo na Tela';
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: #A29666;
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    font-weight: 600;
}
