﻿/**
 * GW Elementos MaxÃ­me Oro - Features Bar CSS
 * v1.6.23 - Alinhamento vertical dos icones
 * Desenvolvido por Gerencie Web
 * https://gerencieweb.com.br/
 * Paleta: #A29666 (base), #B8A87A (clara), #C4BA90 (highlight), #8A7E56 (escura)
 */

/* =============================================
   WRAPPER PRINCIPAL
   ============================================= */
.gw-emofb-wrapper {
    position: relative;
    width: 100%;
    font-family: inherit;
}

/* =============================================
   BARRA PRINCIPAL
   ============================================= */
.gw-emofb-bar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    transition: all 0.3s ease;
    background-color: #f5f5f0;
}

.gw-emofb-bar:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* =============================================
   OVERLAY DE FUNDO (IMAGEM)
   ============================================= */
.gw-emofb-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    border-radius: inherit;
}

/* =============================================
   DIVISÃ“RIA HORIZONTAL
   ============================================= */
.gw-emofb-horizontal-divider {
    width: 100%;
    border: none;
    margin: 0;
    transition: opacity 0.3s ease;
}

.gw-emofb-divider-top {
    margin-bottom: 0;
    border-radius: 2px 2px 0 0;
}

.gw-emofb-divider-bottom {
    margin-top: 0;
    border-radius: 0 0 2px 2px;
}

/* =============================================
   TÃTULO SOBREPOSTO
   ============================================= */
.gw-emofb-overlay-title-wrapper {
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

.gw-emofb-overlay-title-wrapper.gw-emofb-overlay-pos-center {
    left: 50%;
    transform: translateX(-50%);
}

.gw-emofb-overlay-title-wrapper.gw-emofb-overlay-pos-left {
    left: 30px;
}

.gw-emofb-overlay-title-wrapper.gw-emofb-overlay-pos-right {
    right: 30px;
}

.gw-emofb-overlay-title {
    display: inline-block;
    margin: 0;
    padding: 5px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: auto;
    background-color: #f5f5f0;
    color: #1a1a1a;
    border-style: solid;
    border-color: rgba(162, 150, 102, 0.3);
    border-width: 1px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.gw-emofb-bar:hover .gw-emofb-overlay-title {
    box-shadow: 0 3px 12px rgba(162, 150, 102, 0.15);
}

/* =============================================
   CONTAINER DE FEATURES - GRID DE COLUNAS FIXAS
   ============================================= */
.gw-emofb-features-container {
    display: grid;
    grid-template-columns: repeat(var(--gw-emofb-columns, 4), 1fr);
    align-items: stretch;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* =============================================
   ITEM DE FEATURE
   ============================================= */
.gw-emofb-feature-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px 20px;
    transition: all 0.3s ease;
    min-width: 0;
    box-sizing: border-box;
}

/* Alinhamento do conteÃºdo dentro do item */
.gw-emofb-align-left .gw-emofb-feature-item {
    justify-content: flex-start;
}

.gw-emofb-align-center .gw-emofb-feature-item {
    justify-content: center;
}

.gw-emofb-align-right .gw-emofb-feature-item {
    justify-content: flex-end;
}

.gw-emofb-feature-item:hover {
    transform: translateY(-1px);
}

/* =============================================
   LINK DA FEATURE
   ============================================= */
.gw-emofb-feature-link {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    min-width: 0;
}

.gw-emofb-feature-link:hover {
    text-decoration: none;
    color: inherit;
}

/* =============================================
   CONTEÃšDO DA FEATURE (ÃCONE + TEXTO)
   ============================================= */
.gw-emofb-feature-content {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0;
    min-width: 0;
    max-width: 100%;
}

.gw-emofb-feature-content.gw-dir-row {
    flex-direction: row;
    align-items: center;
}

.gw-emofb-feature-content.gw-dir-column {
    width: 100%;
    flex-direction: column;
    justify-content: center;
}

/* =============================================
   ÃCONE DA FEATURE
   ============================================= */
.gw-emofb-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.gw-emofb-feature-icon i {
    font-size: 24px;
    color: #A29666;
    transition: all 0.3s ease;
}

.gw-emofb-feature-icon svg {
    width: 24px;
    height: 24px;
    fill: #A29666;
    transition: all 0.3s ease;
}

.gw-emofb-feature-icon img.gw-emofb-icon-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.gw-emofb-feature-item:hover .gw-emofb-feature-icon i {
    color: #B8A87A;
    transform: scale(1.1);
}

.gw-emofb-feature-item:hover .gw-emofb-feature-icon svg {
    fill: #B8A87A;
    transform: scale(1.1);
}

.gw-emofb-feature-item:hover .gw-emofb-feature-icon img {
    transform: scale(1.1);
}

/* =============================================
   TEXTO DA FEATURE
   ============================================= */
.gw-emofb-feature-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: 100%;
}

/* Alinhamento do texto */
.gw-emofb-align-center .gw-emofb-feature-text {
    align-items: center;
    text-align: center;
}

.gw-emofb-align-right .gw-emofb-feature-text {
    align-items: flex-end;
    text-align: right;
}

.gw-emofb-feature-title {
    display: block;
    max-width: 100%;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.gw-emofb-feature-desc {
    display: block;
    max-width: 100%;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    line-height: 1.4;
    margin-top: 2px;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* =============================================
   DIVISÃ“RIA VERTICAL (pseudo-element)
   ============================================= */
.gw-emofb-has-dividers .gw-emofb-feature-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background-color: rgba(162, 150, 102, 0.3);
    pointer-events: none;
}

/* Ãšltimo item de cada linha no grid - sem divisÃ³ria */
.gw-emofb-has-dividers .gw-emofb-feature-item:last-child::after {
    display: none;
}

/* Remover divisÃ³ria do Ãºltimo item de cada linha baseado no nÃºmero de colunas */
.gw-emofb-has-dividers[data-columns="1"] .gw-emofb-feature-item::after,
.gw-emofb-has-dividers[data-columns="2"] .gw-emofb-feature-item:nth-child(2n)::after,
.gw-emofb-has-dividers[data-columns="3"] .gw-emofb-feature-item:nth-child(3n)::after,
.gw-emofb-has-dividers[data-columns="4"] .gw-emofb-feature-item:nth-child(4n)::after,
.gw-emofb-has-dividers[data-columns="5"] .gw-emofb-feature-item:nth-child(5n)::after,
.gw-emofb-has-dividers[data-columns="6"] .gw-emofb-feature-item:nth-child(6n)::after {
    display: none;
}

/* DivisÃ³ria tracejada */
.gw-emofb-has-dividers.gw-emofb-divider-dashed .gw-emofb-feature-item::after {
    background: repeating-linear-gradient(
        to bottom,
        rgba(162, 150, 102, 0.3) 0px,
        rgba(162, 150, 102, 0.3) 4px,
        transparent 4px,
        transparent 8px
    );
}

/* DivisÃ³ria pontilhada */
.gw-emofb-has-dividers.gw-emofb-divider-dotted .gw-emofb-feature-item::after {
    background: repeating-linear-gradient(
        to bottom,
        rgba(162, 150, 102, 0.3) 0px,
        rgba(162, 150, 102, 0.3) 2px,
        transparent 2px,
        transparent 6px
    );
}

/* =============================================
   DIREÃ‡ÃƒO VERTICAL (EMPILHADO)
   ============================================= */
.gw-emofb-feature-content[style*="column"] .gw-emofb-feature-icon,
.gw-emofb-feature-content.gw-dir-column .gw-emofb-feature-icon {
    margin-right: 0;
    margin-bottom: 8px;
}

.gw-emofb-feature-content[style*="column"] .gw-emofb-feature-text,
.gw-emofb-feature-content.gw-dir-column .gw-emofb-feature-text {
    width: 100%;
    align-items: center;
    text-align: center;
}

.gw-emofb-feature-content[style*="column"] .gw-emofb-feature-title,
.gw-emofb-feature-content[style*="column"] .gw-emofb-feature-desc,
.gw-emofb-feature-content.gw-dir-column .gw-emofb-feature-title,
.gw-emofb-feature-content.gw-dir-column .gw-emofb-feature-desc {
    width: 100%;
    text-align: inherit;
}

/* =============================================
   CARROSSEL
   ============================================= */
.gw-emofb-carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    z-index: 2;
}

.gw-emofb-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
}

.gw-emofb-carousel-track .gw-emofb-feature-item {
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Setas do carrossel */
.gw-emofb-carousel-arrows {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    pointer-events: none;
}

.gw-emofb-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 2px solid #A29666;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #A29666;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    pointer-events: auto;
}

.gw-emofb-carousel-arrow:hover {
    background: #A29666;
    color: #fff;
}

.gw-emofb-arrow-prev {
    left: -18px;
}

.gw-emofb-arrow-next {
    right: -18px;
}

/* Dots do carrossel */
.gw-emofb-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px 0 0;
    z-index: 5;
    position: relative;
}

.gw-emofb-carousel-dot {
    width: 10px;
    height: 10px;
    border: 2px solid #A29666;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gw-emofb-carousel-dot.active,
.gw-emofb-carousel-dot:hover {
    background-color: #A29666;
}

/* =============================================
   ANIMAÃ‡ÃƒO DE ENTRADA
   ============================================= */
.gw-emofb-wrapper {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gw-emofb-wrapper.gw-emofb-visible {
    opacity: 1;
    transform: translateY(0);
}

/* AnimaÃ§Ã£o sequencial dos itens (somente grid, nÃ£o carrossel) */
.gw-emofb-features-container .gw-emofb-feature-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gw-emofb-visible .gw-emofb-features-container .gw-emofb-feature-item {
    opacity: 1;
    transform: translateY(0);
}

.gw-emofb-visible .gw-emofb-features-container .gw-emofb-feature-item:nth-child(1) { transition-delay: 0.1s; }
.gw-emofb-visible .gw-emofb-features-container .gw-emofb-feature-item:nth-child(2) { transition-delay: 0.2s; }
.gw-emofb-visible .gw-emofb-features-container .gw-emofb-feature-item:nth-child(3) { transition-delay: 0.3s; }
.gw-emofb-visible .gw-emofb-features-container .gw-emofb-feature-item:nth-child(4) { transition-delay: 0.4s; }
.gw-emofb-visible .gw-emofb-features-container .gw-emofb-feature-item:nth-child(5) { transition-delay: 0.5s; }
.gw-emofb-visible .gw-emofb-features-container .gw-emofb-feature-item:nth-child(6) { transition-delay: 0.6s; }
.gw-emofb-visible .gw-emofb-features-container .gw-emofb-feature-item:nth-child(7) { transition-delay: 0.7s; }
.gw-emofb-visible .gw-emofb-features-container .gw-emofb-feature-item:nth-child(8) { transition-delay: 0.8s; }

/* Carrossel itens sempre visÃ­veis */
.gw-emofb-carousel-track .gw-emofb-feature-item {
    opacity: 1 !important;
    transform: none !important;
    transition-delay: 0s !important;
}

/* =============================================
   EFEITO SHIMMER NA DIVISÃ“RIA HORIZONTAL
   ============================================= */
@keyframes gw-emofb-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.gw-emofb-horizontal-divider {
    background-size: 200% 100%;
    animation: gw-emofb-shimmer 4s linear infinite;
}

/* =============================================
   RESPONSIVO - DEFAULTS (Elementor cuida via inline)
   ============================================= */
@media (max-width: 767px) {
    .gw-emofb-overlay-title-wrapper.gw-emofb-overlay-pos-left {
        left: 15px;
    }
    .gw-emofb-overlay-title-wrapper.gw-emofb-overlay-pos-right {
        right: 15px;
    }
    .gw-emofb-arrow-prev {
        left: -10px;
    }
    .gw-emofb-arrow-next {
        right: -10px;
    }
    .gw-emofb-carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* =============================================
   EDITOR DO ELEMENTOR
   ============================================= */
.elementor-editor-active .gw-emofb-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.elementor-editor-active .gw-emofb-feature-item {
    opacity: 1;
    transform: translateY(0);
}
