@import url('https://fonts.googleapis.com/css2?family=Berkshire+Swash&display=swap');

.logo_mobile {
    font-family: 'Berkshire Swash', cursive;
}

.smart-scroll {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
}

main {
    margin-top: 0;
}

.scrolled-down {
    transform: translateY(-100%);
    transition: all 0.3s ease-in-out;
}

.scrolled-up {
    transform: translateY(0);
    transition: all 0.3s ease-in-out;
}

/* NavBar 1 */

.navbar1 {
    background-image: linear-gradient(to right, #1a1563, #4a207a);
}

.navbar1 .nav-link {
    color: #6c757d !important;
}

.navbar1 .nav-link:hover {
    color: white !important;
}

/* NavBar 2 */

.navbar2 {
    top: auto;
}

.logo:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar2 a:hover,
.navbar2 svg:hover {
    text-decoration: none;
    fill: #d1afee;
}


@media (max-width: 767px) {}

@media (min-width: 768px) {
    #pesquisa {
        width: 10em;
        transition: 0.5s;
    }

    #pesquisa:hover {
        width: 20em;
    }
}

.navbar2 .btn-conta {
    border-radius: 25px;
    background-color: #250f55;
    transition: 0.1s;
    color: white;
}

.btn-conta:hover {
    color: #250f55 !important;
    background-color: #d1afee;
}

.navbar2 input {
    border-radius: 25px;
}


/* NavBar 3 */

.navbar3 {
    margin-top: 55px;
    /* Clear fixed headers on mobile */
    background-image: linear-gradient(to right, #1a1563, #4a207a);
    width: 100%;
}

@media (min-width: 992px) {

    /* LG/XL */
    .navbar3 {
        margin-top: 80px;
        /* Adjust for desktop header height */
    }
}

@media (max-width: 991px) {
    .navbar3 .navbar-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .navbar3 li {
        flex: 0 0 50%;
        max-width: 50%;
        display: block;
        padding: 5px 0;
        margin: 0 !important;
        /* Override inline margin adjustments */
        text-align: center;
    }

    .navbar3 li a {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        /* Optional: Stack icon and text for better mobile fit */
        font-size: 0.9rem;
    }

    .navbar3 li svg {
        margin-right: 0 !important;
        margin-bottom: 5px;
        width: 1.5em;
        height: 1.5em;
    }
}

@media (min-width: 992px) {
    .navbar3 li {
        display: inline-block;
        padding: 0 0 0 20px;
        margin: 0;
    }
}

.navbar3 a {
    text-align: center;
    color: rgba(255, 255, 255, .5);
}

.navbar3 a:hover {
    color: white;
}

.navfaixa {
    background-image: linear-gradient(to right, #1a1563, #4a207a);
    height: 1px;
}

.logo_mobile {
    color: white;
    font-weight: 400;
    transition: 0.1s;
}

.navbar-brand:hover .logo_mobile {
    color: white;
}

.logo_div {
    margin-top: 0.3em;
}

/* SEÇÃO DE SETORES PREMIUM (GLOBAL) */
.navbar-premium-sectors {
    display: block !important;
    background: white !important;
    margin-top: 48px; /* Ajuste fino para colar na busca */
    padding-top: 5px;
    padding-bottom: 5px;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

@media (min-width: 992px) {
    .navbar-premium-sectors {
        margin-top: 85px; 
    }
}

.sector-nav-container {
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap; /* Permite duas ou mais fileiras */
    justify-content: center; /* Centraliza os ícones */
    gap: 15px 10px; /* Espaçamento entre as fileiras e colunas */
}

.sector-nav-container::-webkit-scrollbar {
    display: none;
}

.sector-card {
    flex: 0 0 92px; /* Largura para desktop */
    text-align: center;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 767px) {
    .sector-card {
        flex: 0 0 82px; /* Reduzido para caber melhor no mobile */
    }
    
    .sector-icon-wrapper {
        width: 60px !important; /* Ícones um pouco menores no mobile */
        height: 60px !important;
    }
    
    .sector-name {
        font-size: 0.78rem !important; /* Fonte menor para mobile */
    }

    .navbar-premium-sectors {
        margin-top: 45px; /* Ajuste fino na margem mobile */
    }
}

.sector-icon-wrapper {
    width: 72px; /* Super Ícones Desktop */
    height: 72px;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #250f55;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.sector-card:hover .sector-icon-wrapper {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #250f55 0%, #6b2278 100%);
    color: white;
}

.sector-name {
    font-size: 0.9rem; /* Texto robusto */
    font-weight: 800;
    color: #250f55;
    line-height: 1.1;
    white-space: normal;
    text-align: center;
}

/* SEÇÃO DE SETORES PREMIUM (CENTRALIZADO NO DESKTOP) */
@media (min-width: 992px) {
    .sector-nav-container {
        justify-content: center !important;
        gap: 30px !important;
        padding: 20px 0 !important;
    }
    
    .sector-icon-wrapper {
        width: 85px !important;
        height: 85px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }
    
    .sector-card {
        flex: 0 0 115px !important;
    }
    
    .sector-name {
        font-size: 1rem !important;
        margin-top: 5px;
    }
}
