/* AQUI ESTÁ TODA A PARTE RESPONSIVA DO MENU, RODAPÉ E DOS BOTÕES FIXOS DO SITE (WHATSAPP E BOTÃO DO TOPO) */

:root {
    --font-color-menu: #f0e9cd;
    --font-color-titulo-inicio: #e6e0d3;
    --bg-color-menu: #010c1b;
    --font-rodape: #212d3d;
    --highlight-color: #d4af37;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  transition: color 0.5s, background-color 0.5s, transform 0.3s;
}

header {
    padding: 20px 0;
}

.container-header {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(10px, 5vw, 80px);
}

.logo {
    width: 250px;
    filter: drop-shadow(0 0 0.1px #fff);
}

.nav-area {
    display: flex;
    align-items: center;
    margin-right: 110px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 21px;
    margin-top: 1px;
    font-size: 14px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

header nav a {
    color: var(--font-color-titulo-inicio);
    text-decoration: none;
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    cursor: pointer;
}

nav a:hover {
    color: #d4af37;
    filter: drop-shadow(0 0 7px #fff);
}

ul {
    margin: 0;
    padding: 0;
}

nav hr {
    height: 35px;
    border: none;
    border-left: 1px solid #d4af37;
}

.seta-menu {
    font-size: 0.6rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.menu-item:hover>a .seta-menu {
    transform: rotate(180deg);
}

.menu-item {
    position: relative;
    display: inline-block;
}

.menu-item>a {
    display: inline-block;
    position: relative;
    padding: 10px 5px;
}

.submenu {
    position: absolute;
    top: 100%;
    justify-content: center;
    background-color: #111827;
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    display: block;
}

.menu-item:hover .submenu,
.menu-item .submenu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.submenu li {
    list-style: none;
    padding: 8px 15px;
}

.submenu li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 6px 10px;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

.submenu li a:hover {
    background-color: #d4af37;
    color: #111827;
    padding-left: 25px;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    position: fixed;
    right: 0;
    color: var(--cor-primaria);
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin-right: 20px;
}

.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    right: 0;
    position: fixed;
    font-size: 2rem;
    color: var(--highlight-color);
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    margin-right: 20px;
}

.nav-mobile-hidden {
    display: none;
}

.nav-area {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.nav-area.nav-mobile-hidden {
    display: none;
}

.nav-area.nav-mobile-visible {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 41, 59, 0.9);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    padding: 80px 0 20px;
    align-items: center;
    border-top: 1px solid var(--cor-primaria);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
}

.nav-area.nav-mobile-visible nav ul {
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.nav-area.nav-mobile-visible nav ul li {
    width: 90%;
    text-align: center;
    margin: 8px 0;
}

.nav-area.nav-mobile-visible nav ul li a {
    padding: 12px 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 1.3rem;
}

.nav-area.nav-mobile-visible hr {
    display: none;
}

.nav-area.nav-mobile-visible .submenu {
    position: static;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    background-color: #1a2233;
    border: none;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
}

.nav-area.nav-mobile-visible .submenu.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    max-height: 800px;
    padding: 10px 0;
}

.nav-area.nav-mobile-visible .submenu li a {
    font-size: 1.1rem;
    padding: 10px 20px;
    text-align: center;
    justify-content: center;
}

.nav-area.nav-mobile-visible .submenu li a:hover {
    background-color: var(--cor-primaria);
    color: var(--cor-secundaria);
    padding-left: 20px;
}

.whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    font-size: 35px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4);
}

.whatsapp:hover {
    background-color: #ffffff;
    color: #25d366;
}

.btn-topo {
    position: fixed;
    bottom: 120px;
    right: 30px;
    background-color: #7b7b7b;
    color: #fff;
    font-size: 35px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
}

.btn-topo:hover {
    background-color: #fff;
    color: #010c1b;
}

@media (hover: none) and (pointer: coarse) {

    .menu-item:hover .submenu,
    .menu-item .submenu:hover {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@media (min-width: 1940px) {
    .container-header {
       max-width: fit-content;
    }
}

@media screen and (min-width: 1440px) {

    .container-header {
        justify-content: space-around;
    }

    header nav ul {
        font-size: 1.01vw;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1279px) {

    .container-header {
        max-width: 100%;
        justify-content: space-between;
        margin-left: 40px;
        gap: 6%;
    }

    header nav ul {
        font-size: 0.85rem;
        gap: 20px;
    }

    nav ul li {
        white-space: nowrap;
    }

    .logo {
        width: 180px;
    }
}

@media (max-width: 1024px) {
    .container-header {
        margin-left: 20px;
        margin-right: 20px;
        gap: 20px;
    }

    .logo {
        width: 180px;
    }

    header nav ul {
        gap: 20px;
        font-size: 16px;
    }

    nav hr {
        height: 30px;
    }
}

@media (max-width: 1023px) {
    .container-header {
        margin-left: 20px;
        margin-right: 20px;
        justify-content: space-between;
    }

    .nav-area {
        margin-right: 0;
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-mobile-visible {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background-color: var(--bg-color-menu);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        z-index: 1000;
        padding: 20px 0;
        align-items: center;
        border-top: 1px solid var(--highlight-color);
    }

    .nav-mobile-visible .submenu.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        max-height: 700px;
        padding: 10px 0;
    }

    .logo {
        width: 180px;
    }

    .whatsapp {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 15px;
        right: 15px;
    }

    .btn-topo {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 80px;
        right: 15px;
    }
}

footer {
  text-align: center;
}

.rodape {
  background: var(--font-rodape);
  color: white;
  padding: 20px 20px;
}

.rodape .redes a {
  margin: 0 10px;
  color: #fff;
  font-size: 1.5rem;
}

.rodape p {
  margin-bottom: 15px;
}

.rodape .redes a:hover {
  filter: drop-shadow(0 0 8px #fff);
}
