/* === RESET BÁSICO === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === BODY COM FUNDO ESCURO E SOBREPOSIÇÃO === */
body.fundo-pagina {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../assets/img/Fundo_Gestão%20Escolar.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #fff;
}

body.fundo-pagina::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

body.fundo-pagina > * {
    position: relative;
    z-index: 1;
}

/* === CABEÇALHO COM MENU HAMBURGUER === */
header {
    background-color: #1976d2;
    color: white;
    padding: 18px;
    position: relative;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    text-align: center;
}

/* BOTÃO MENU TOGGLE */
#menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
}

/* === MENU DE NAVEGAÇÃO COM ANIMAÇÃO === */
nav#menu {
  max-height: 0;
  overflow: hidden;
  background-color: #1565c0;
  padding: 0 20px;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

nav#menu.menu-aberto {
  height: 100vh; 
  max-height: 100vh;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: #cccccc #1565c0;
}

/* Ajustar o ul com a imagem */
nav#menu.menu-aberto ul {

  height:100%;
  background-image: url('../assets/img/Fund_Gestão_Escolar.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

/* Estilo opcional para scroll no Chrome */
nav#menu.menu-aberto::-webkit-scrollbar {
  width: 6px;
}

nav#menu.menu-aberto::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

nav#menu.menu-aberto::-webkit-scrollbar-track {
  background-color: #1565c0;
}

nav#menu.menu-aberto ul {
    background-image: url('../assets/img/Fund_Gestão_Escolar.jpg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

nav#menu[hidden] {
  display: block !important;
  max-height: 0 !important;
  padding: 0 10px !important;
  overflow: hidden !important;
}

nav#menu ul li {
  background-color: rgba(0, 0, 0, 0.5); 
  color: white;
  padding: 8px;
  margin: 20px 0;
    border-radius: 25px;
    transition: background-color 0.3s, transform 0.3s;
}

nav#menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 10px;
  transition: background-color 0.3s;
}

nav#menu a:hover {
  background-color: #0d47a1;
}

/* Lista do menu */

nav#menu ul li {
    background: url('../assets/img/Fund_Gestão_Escolar.jpg') no-repeat left center;
    background-size: 16px 16px;
    padding-left: 24px; 
    
}

nav#menu ul {
    list-style: none;
    padding-left: 20px;
    margin: 0;
    text-align: left;
}

nav#menu ul li {
    margin-bottom: 10px;
}

@keyframes flutuar {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

nav#menu ul li a {
    display: inline-block;
    background-color: rgba(0, 123, 255, 1);
    padding: 5px 10px;
    border-radius: 15px;
    color: #ffffff;
    font-weight: 500;
    box-shadow: 1px 1px 8px rgba(0,0,0,0.2);
    width: 120px;
    text-align: center;
    animation: flutuar 3s ease-in-out infinite;
    clip-path: polygon(
        0% 5%, 10% 0%, 20% 8%, 30% 0%, 40% 6%, 
        50% 0%, 60% 5%, 70% 0%, 80% 8%, 90% 0%, 100% 5%, 
        100% 95%, 90% 100%, 80% 92%, 70% 100%, 60% 94%, 
        50% 100%, 40% 95%, 30% 100%, 20% 92%, 10% 100%, 0% 95%
    );
}

/* === BOTÃO LOBBY FLUTUANTE === */
.botao-lobby-redondo {
    background-color: rgba(0, 123, 255, 1);
    border: 3px solid rgba(102, 99, 99, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    position: fixed;
    top: 10px;
    right: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 1000;
    backdrop-filter: blur(1px);
}

.botao-lobby-redondo:hover {
    background-color: rgba(0, 123, 255, 1);
    transform: scale(1.05);
}

.icone-lobby {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 0 2px #151414);
}

/* === CONTEÚDO PRINCIPAL === */
main {
    flex: 1;
    padding: 60px 25px;
    text-align: center;
}

main h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 20px;
}

/* === RODAPÉ FIXO === */
footer {
    background-color: #1565c0;
    color: white;
    text-align: center;
    padding: 5px;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 999;
    font-family: 'Playfair Display', serif;
}


/* === RESPONSIVO === */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

    #menu-toggle {
        top: 10px;
        left: 10px;
    }

    .botao-lobby-redondo {
        width: 50px;
        height: 50px;
    }

    .icone-lobby {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2rem;
    }

    #menu-toggle {
        font-size: 1.5rem;
        top: 5px;
        left: 5px;
    }

    .botao-lobby-redondo {
        width: 40px;
        height: 40px;
    }

    .icone-lobby {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1rem;
    }

    #menu-toggle {
        font-size: 1.2rem;
        top: 5px;
        left: 5px;
    }

    .botao-lobby-redondo {
        width: 35px;
        height: 35px;
    }

    .icone-lobby {
        width: 18px;
        height: 18px;
    }

    main {
        padding: 40px 15px;
    }
}
/* === ANIMAÇÃO DE TRANSIÇÃO PARA O MENU === */
nav#menu {
    transition: max-height 0.4s ease, padding 0.4s ease;
}
nav#menu.menu-aberto {
    max-height: 500px; /* ajuste se precisar mais */
    padding: 10px 10px;
}