@import url('https://fonts.googleapis.com/css2?family=Alice&family=Bebas+Neue&family=Ribeye+Marrow&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

.alice-regular {
    font-family: "Alice", serif;
    font-weight: 400;
}

.rubik {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.bebas-neue-regular {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
}

.ribeye-marrow-regular {
    font-family: "Ribeye Marrow", serif;
    font-weight: 400;
}

.logo {
    font-size: 24px;
    color: white;
    font-weight: 400;
    font-family: "Ribeye Marrow";
    text-decoration: none;
    text-align: center;
    width: auto;
}

/* Cabeçalho fixo */
header {
    background: linear-gradient(135deg, #45568E, #849DC1);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-desktop ul li {
    margin-left: 25px;
}

.nav-desktop ul li a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Alice', serif;
}

.nav-desktop ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger {
    /* border: solid red 1px; */
    margin-left: auto;
    display: none;
    width: 100px;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    line-height: 1;
}

/* Painel mobile (abre da direita para a esquerda) */
.navBox {
    position: fixed;
    right: 0;
    /* top será ajustado via JS para ficar logo abaixo do header */
    width: 70%;
    height: calc(100vh - var(--nav-top, 0px));
    background: linear-gradient(135deg, #45568E, #849DC1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
    z-index: 998;
    /* abaixo do header (1000), acima do conteúdo */
}

.navBox ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.navBox ul li {
    margin: 14px 0;
}

.navBox ul li a {
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-family: 'Alice', serif;
}

.navBox ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.navBox.active {
    transform: translateX(0);
}

/* Botão "X" dentro do painel */
.close-nav {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

/* Backdrop para clicar fora e fechar (não cobre o header) */
.navBackdrop {
    position: fixed;
    left: 0;
    /* top será ajustado via JS para ficar abaixo do header */
    width: 100%;
    height: calc(100vh - var(--nav-top, 0px));
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 997;
}

.navBackdrop.show {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: block;
    }
}