html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    /* padding-top: 80px; */
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}


/* ==========================================================================
   MENU / NAVBAR (VERSÃO DESKTOP & GERAL)
   ========================================================================== */

.navbar {
    width: 100%;
    padding: 1rem 0;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 1030;
}

/* Estado da Navbar ao rolar a página (Scrolled) */
.navbar.scrolled {
    background-color: #ffffff;
    padding: 0.5rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-link {
    color: #19274E !important;
}

.navbar.scrolled .nav-link:hover {
    color: #ffffff !important;
    background-color: #74B9DB;
}

/* Ícone do menu hambúrguer - branco quando transparente, escuro quando rolado */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2825,39,78,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ==========================================================================
   MENU SEMPRE SÓLIDO (páginas sem banner, ex: Blog)
   ========================================================================== */

body.menu-solido .navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

body.menu-solido .nav-link {
    color: #19274E !important;
}

body.menu-solido .nav-link:hover {
    color: #ffffff !important;
    background-color: #74B9DB;
}

body.menu-solido .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2825,39,78,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-limiter {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.navbar > .container,
.navbar > .container-fluid {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
}

.nav-link {
    color: #FFFFFF !important;
    margin-left: 20px;
    font-weight: 400;
    font-size: 18px;
}

.nav-link:hover {
    color: #ffffff !important;
    background-color: #74B9DB;
    border-radius: 4px;
}

/* Botões Principais */
.button-principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 270px;
    height: 55px;
    padding: 0 5px;
    background: linear-gradient(45deg, #19274E, #74B9DB);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(25, 39, 78, 0.3);
    border: none;
}

.button-principal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    z-index: 2;
}

.button-principal:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(25, 39, 78, 0.5);
}

.button-principal:hover::before {
    left: 150%;
    transition: all 0.7s ease;
}

/* Rodapé */

.bg-rodape {
    background-color: #fff;
}

.fundo-rodape  {
border-top: 1px solid #74b9db;
}


.text-rodape {
    color: #536D88;
}

.social-rodape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #19274E;
    color: #fff;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.social-rodape:hover {
    background-color: #536D88;
    color: #fff;
}


.slide-atuacao .slick-list {
    overflow: hidden;
}


/* ==========================================================================
   REGRAS EXCLUSIVAS PARA MOBILE (DISPOSITIVOS ATÉ 768px)
   ========================================================================== */



@media (max-width: 768px) {

    .navbar {
        width: 100%;
        padding: 10px 20px;
    }

    .nav-limiter {
        padding: 0 15px;
    }

    .navbar-brand img {
        max-width: 180px;
        height: auto;
    }

    /* --- CORREÇÃO DO MENU OFFCANVAS (PAINEL MOBILE) --- */
    
    .offcanvas {
        width: 300px !important;
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        height: 100dvh !important; /* dvh evita o corte da barra do navegador */
        z-index: 1050 !important;  /* Fica acima do cabeçalho fixo */
    }

  .navbar.scrolled {
    background-color: #ffffff;  
    padding: 10px 20px;
}
  
    /* Permite o scroll interno completo do menu */ 
    .offcanvas-body {
        background-image: url(assets/fundo-menu.png);
        background-size: cover;
        background-repeat: no-repeat;
        overflow-y: auto !important; /* Habilita a rolagem caso os itens passem da altura */
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .offcanvas-body .nav-link {
        font-size: 24px;
        font-weight: 500;
        color: #74b9db !important;
        margin-left: 0;
        padding: 14px 12px;
        border-radius: 8px;
        transition: all 0.3s ease;
        text-align: center;
    }

    .offcanvas-body .nav-link:hover {
        background-color: #74B9DB;
        color: #fff !important;
    }

    .offcanvas-body .button-principal {
        margin-top: 30px;
    }

  .navbar.scrolled .nav-link {
    color: #74b9db !important; 
}
  
  
    .nav-link {
        margin-left: 0;
        margin-bottom: 10px;
        padding: 10px;
    }

    section[id] {
        scroll-margin-top: 90px;
    }

    .navbar-toggler {
        transition: transform 0.3s ease;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler:active {
        transform: scale(0.9);
    }

    .bnt-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 500;
        width: 270px;
        height: 55px;
        background-color: #EAC195;
        color: #19274E;
        border-radius: 10px;
        margin: auto;
        text-decoration: none;
        white-space: nowrap;
    }
  
  .text-rodape {
    color: #536D88;
    font-size: 14px;
}
  
}