/* Configurações Globais */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f9f6f2;
    color: #333;
}

/* Cabeçalho */
header {
    background-color: #b33939;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    margin-bottom: 5px;
}

header p {
    font-size: 1.1em;
    font-style: italic;
}

/* Conteúdo Principal */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Seções (Categorias) */
section {
    background-color: #ffffff;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

section h2 {
    background-color: #f4f4f4;
    color: #b33939;
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

/* Itens do Cardápio */
.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px dashed #ccc;
    
    /* ****** ATUALIZADO: Efeito Hover ****** */
    transition: all 0.2s ease-in-out;
}

.menu-item:hover {
    background-color: #fdfdfd;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px); /* Efeito de "levantar" */
}

.menu-item:last-child {
    border-bottom: none;
}

.item-details {
    flex: 1;
    margin-right: 20px;
}

.item-details h3 {
    font-size: 1.3em;
    color: #444;
    margin-bottom: 5px;
    display: flex; /* Para alinhar o selo */
    align-items: center; /* Para alinhar o selo */
}

.ingredients {
    font-size: 0.95em;
    color: #666;
    font-style: italic;
}

/* Preço (para itens únicos) */
.price {
    font-size: 1.2em;
    font-weight: 700;
    color: #2a8a2a;
    white-space: nowrap;
    padding-top: 5px;
}

/* Container para preços de pizza (G, M, P) */
.price-container {
    display: flex;
    flex-direction: column; 
    align-items: flex-end;
    white-space: nowrap;
    min-width: 95px;
}

.price-size {
    font-size: 1.1em;
    font-weight: 700;
    color: #2a8a2a;
    line-height: 1.4;
    text-align: right;
}

.price-size span { 
    font-weight: 400;
    color: #666;
    font-size: 0.9em;
    margin-right: 5px;
}

/* ****** NOVO: Selo "Mais Pedida" ****** */
.badge {
    background-color: #ffd700; /* Cor dourada/amarela */
    color: #333;
    font-size: 0.6em; /* Pequeno */
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 10px;
    margin-left: 10px; /* Espaço entre o nome da pizza e o selo */
    white-space: nowrap;
}

/* ****** NOVO: Seção Contato ****** */
.contact-details {
    padding: 20px;
}

.contact-details p {
    font-size: 1.1em;
    line-height: 1.8; /* Mais espaçamento entre as linhas */
    color: #333;
}

.contact-details strong {
    color: #000;
}


/* ****** NOVO: Botão Flutuante WhatsApp ****** */
.whatsapp-float {
    position: fixed; /* Fica fixo na tela */
    bottom: 25px;
    right: 25px;
    background-color: #25D366; /* Cor oficial do WhatsApp */
    color: #FFF;
    border-radius: 50px;
    padding: 12px 18px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Garante que fique acima de tudo */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1EBE57;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px); /* Leve pulo ao passar o mouse */
}

/* Estilo do ícone SVG dentro do botão */
.whatsapp-float svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Rodapé */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    background-color: #333;
    color: #aaa;
    font-size: 0.9em;
}

footer p {
    margin-bottom: 5px;
}

/* Responsividade */
@media (max-width: 600px) {
    header h1 {
        font-size: 2.2em;
    }

    .menu-item {
        flex-direction: column;
        align-items: stretch;
    }

    .price {
        margin-top: 10px; 
        text-align: right;
        font-size: 1.3em;
    }

    .price-container {
        margin-top: 15px;
        align-items: flex-end;
    }

    .price-size {
        font-size: 1.2em;
    }

    .item-details {
        margin-right: 0;
    }

    /* Ajusta o selo no celular */
    .item-details h3 {
        flex-wrap: wrap; /* Permite que o selo quebre a linha se precisar */
    }
    .badge {
        margin-left: 0;
        margin-top: 5px; /* Joga o selo para baixo do nome */
        font-size: 0.7em;
    }

    /* Oculta o texto do botão de WhatsApp, deixa só o ícone */
    .whatsapp-float span {
        display: none;
    }
    .whatsapp-float {
        padding: 14px; /* Faz um círculo perfeito */
        border-radius: 50%;
    }
    .whatsapp-float svg {
        margin-right: 0;
        width: 24px;
        height: 24px;
    }
}

/* ****** NOVO: Estilos do Menu de Navegação ****** */

#navbar {
    background-color: #f4f4f4;
    border-bottom: 2px solid #ddd;
    padding: 10px 0;
    text-align: center;
    
    /* Mágica para "grudar" no topo */
    position: sticky;
    top: 0;
    z-index: 900; /* Abaixo do WhatsApp (1000), mas acima do resto */
}

#navbar a {
    color: #b33939; /* Cor principal */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    padding: 10px 20px;
    transition: background-color 0.2s ease;
}

#navbar a:hover {
    background-color: #e9e9e9;
    border-radius: 5px;
}

/* Ajuste de responsividade para o menu */
@media (max-width: 600px) {
    #navbar {
        /* Permite rolar os links horizontalmente se não couberem */
        overflow-x: auto; 
        white-space: nowrap; 
        justify-content: flex-start;
    }
    #navbar a {
        font-size: 1em;
        padding: 10px 15px;
    }
}