/* Esconde completamente o menu lateral criado pelo scripts.min.js */
#offcanvas-menu {
    display: none !important;
    visibility: hidden !important;
    position: fixed !important;
    right: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    z-index: -1 !important;
}

/* Remove o efeito de escurecimento e bloqueio do body */
body.fh5co-offcanvas {
    overflow: auto !important;
    position: static !important;
}

/* Estilo fixo para o header */
#fh5co-header-section {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    font-family: "Open Sans", Arial, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    color: #848484;
    font-weight: 300;
    box-sizing: border-box;
    display: block;
    padding: 0;
    position: relative;
    left: 0;
    width: 100%;
    z-index: 1022;
    background: #fff;
}

/* Estilo fixo para o logo */
#fh5co-logo {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
    line-height: 1.1;
    color: #5a5a5a;
    font-family: "Montez", cursive;
    font-size: 30px;
    font-weight: 700;
    position: relative;
    z-index: 2;
    width: 100%;
    float: none;
    text-align: center;
    margin: 35px 0 30px 0;
}

#fh5co-logo a {
    text-decoration: none;
    color: inherit;
    transition: 0.5s ease;
}

/* Menu principal como dropdown compacto */
#fh5co-menu-wrap {
    position: absolute;
    top: 100%;
    right: 10;
    background: white;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    width: auto;
    min-width: 0px;
    border-radius: 6px;
    margin-top: 0;
}

/* Quando o menu está ativado */
.nav-open #fh5co-menu-wrap {
    max-height: 500px;
    opacity: 1;
}

/* Estilo vertical e compacto para os links no mobile */
#fh5co-menu-wrap ul {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    margin: 0;
}

#fh5co-menu-wrap ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#fh5co-menu-wrap ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    color: #333;
    background: white;
    border-bottom: 1px solid #eee;
    text-align: left;
    white-space: nowrap;
}

.js-fh5co-nav-toggle {
  display: block !important;
  position: absolute;
  top: 35px;
  right: 20px;
  z-index: 1000;
  margin: 0px 0 30px 0;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

/* DESKTOP: mostra o menu horizontal e impede quebra */
@media screen and (min-width: 1200px) {
    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 0 30px;
    }

    #fh5co-logo {
        flex-shrink: 0;
        text-align: left;
        margin: 35px 0 30px 0;
        font-size: 30px;
    }

    #fh5co-menu-wrap {
        position: static !important;
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible;
        box-shadow: none;
        flex-grow: 1;
    }

    #fh5co-menu-wrap ul {
        display: flex;
        flex-direction: row;
        gap: 20px;
        margin: 0;
        padding: 0;
    }

    #fh5co-menu-wrap ul li {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #fh5co-menu-wrap ul li a {
        font-family: "Open Sans", Arial, sans-serif;
        font-size: 16px;
        color: rgba(0, 0, 0, 0.5);
        text-decoration: none;
        padding: 0.75em 1em;
        background: transparent;
        transition: color 0.3s ease;
        display: block;
        white-space: nowrap;
    }

    #fh5co-menu-wrap ul li a:hover {
        color: #a1afa0;
    }

    #fh5co-menu-wrap ul li.active>a {
        color: #a1afa0;
    }

    .js-fh5co-nav-toggle {
        display: none !important;
    }
}



/* MOBILE: ativa o hamburguer e mantém altura do header e logo */
@media screen and (max-width: 1199px) {
    .nav-header {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        padding: 0 20px;
        height: auto;
    }

    #fh5co-logo {
        font-size: 30px;
        margin: 35px 0 30px 0;
        text-align: center;
        flex-grow: 1;
    }

    #fh5co-menu-wrap {
        display: none;
    }

    .js-fh5co-nav-toggle {
        display: block !important;
        position: absolute;
        top: 35px;
        right: 20px;
        z-index: 1000;
    }

    .nav-open #fh5co-menu-wrap {
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        z-index: 999;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        max-height: 500px;
        opacity: 1;
        transition: max-height 0.4s ease, opacity 0.4s ease;
        border-radius: 6px;
    }
}

/* Padrão: abre para baixo */
.nav-open #fh5co-menu-wrap {
  top: 100%;
}

/* Quando não cabe: abre para cima */
.nav-open #fh5co-menu-wrap.open-up {
  bottom: 100%;
  top: auto;
}