/* Estilos Gerais */
body {
    background: url(../img/fundo.jpg) no-repeat;
    background-attachment: fixed;
    background-size: cover;
    font-family: "Nunito Sans", sans-serif; /* Fonte padrão para todo o site */
}

/* Cabeçalho */
header#cabecalho {
    height: 200px;
    background: url(img/dhdpng.png) no-repeat;
    position: relative; /* Necessário para posicionamento absoluto dos filhos */
}

#titmenu {
    margin-left: 30rem;
    padding-top: 0.1rem;
    font-size: 2rem;
}

#titmenu h1 {
    margin-top: 60px;
    font-weight: bold;
    font-variation-settings: "wdth" 100, "YTLC" 500;
}

#icone {
    position: absolute;
    right: 240px; /* Ajuste para melhor responsividade */
    top: 70px;
    width: 100px;
}

/* Menu de Navegação */
nav#menu ul {
    list-style: none;
    text-transform: uppercase;
    position: absolute;
    top: 1rem;
    left: 25rem;
}

nav#menu li {
    display: inline-block;
    background-color: #faa019;
    border-radius: 0.3rem;
    padding: 0.3rem;
    margin: 0.1rem;
    transition: background-color 1s; /* Shorthand para transition-duration */
    font-size: 0.9em;
}

nav#menu li:hover {
    background-color: #f57a08;
}

nav#menu a {
    color: hsl(0, 1%, 37%);
    text-decoration: none;
}

nav#menu a:hover {
    color: hsla(0, 0%, 0%, 0.274);
}
#menu-toggle {
    display: none;
}

/* Rodapé */
footer {
    font-size: 10px;
}

#rodape {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center; /* Adicionado para centralizar o texto dentro da div#rodape */
}

#rodape p {
    margin: 0;
}

/* Imagem Fixa do WhatsApp */
.imagem-fixa {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.imagem-fixa img {
    width: 100px;
    height: auto;
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
    body {
        background: url(../img/fundoc.jpg) no-repeat;
        background-size: cover; /* Preenche toda a tela, mantendo a proporção */
        background-position: left top; /* Centraliza horizontalmente e alinha ao topo verticalmente */
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    header#cabecalho {
        height: auto; /* Ajuste automático da altura */
        text-align: center; /* Centraliza o conteúdo */
    }

    #titmenu {
        margin-left: 0; /* Remove a margem esquerda */
    }

    #icone {
        position: static; /* Remove o posicionamento absoluto */
        margin: 1rem auto; /* Centraliza horizontalmente */
    }

    nav#menu ul {
        position: static; /* Remove o posicionamento absoluto */
        text-align: center;
        flex-direction: column; /* Empilha os links verticalmente em telas menores */
    }

    nav#menu li {
        display: block; /* Itens do menu em bloco */
        margin: 0.5rem 0;
    }

    #rodape {
        align-items: flex-start; /* Alinha os itens à esquerda em telas menores */
        text-align: center; /* Centraliza o texto dentro do rodapé em telas menores */
    }

    #rodape p {
        line-height: 1.5; /* Aumenta a altura da linha para evitar sobreposição */
        margin-bottom: 0.5em; /* Adiciona um pouco de espaço abaixo de cada parágrafo */
        align-self: center; /* Centraliza os parágrafos horizontalmente dentro do #rodape */
    }
}