/*Paleta de cores -Modo Escuro*/
:root {
    --red: #ec0e09;
    --black: #181818;
    --letraBranca: #ffffff;
    --letraPreta: #000000;
    --letra: var(--letraBranca);
    --corDeFundo: #000000;
    --detalhes: #a81313;
    
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;

    color: var(--letra);
}
body {
    background: var(--corDeFundo);
    margin: 0;
}
    
/* Splash */
#splash {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#splash img {
    max-width: 300px;
}

#body {
    display: none;
    width: 100%;
}

h1 {
    color: var(--red);
    text-align: left;
    margin: 20px;
}

h1#marcador {
    text-align: center;
}

p {
    color: white;
    text-align: left;
}

.linkmenu {
    color: var(--letra);
    text-decoration: none;
}

header {
    width: 100%;
    background-color: var(--black);
    color: var(--letra);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#header {
    width: 100%;
    height: 300px;
    margin-bottom: 60px;
    height: 20vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


}

#header img {
    height: 300px;
}

menu {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    border-top: solid 2px var(--red);
    background-color: var(--black);
    z-index: 100;
}

menu button {
    width: 100%;
    height: 100%;
    background-color: var(--black);
    color: var(--letra);
    border: 0;
    cursor: pointer;
}

menu button:hover {
    background-color: var(--red);
}

#corpo {
    width: 100%;
    text-align: center;
}

#map {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-around;
}

#faixada {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 20px;
    background-color: var(--red);
    color: white;
}

#faixada h1 {
    color: white;
}

#faixadaH1 {
    color: white;
}

footer {
    margin-top: 60px;
    background-color: #353535;
    height: 400px;
    width: 100%;
    color: white;
}

section {
    display: grid;
    /* Cria colunas responsivas: mínimo de 280px por card */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

/* Estilização dos Cards gerados pelo JavaScript */
section article {
    background-color: var(--black);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: 4px solid transparent;
}

section article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(229, 45, 39, 0.15);
    border-bottom: 4px solid #e52d27;
}

section article img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #181818;
}

section article h4 {
    font-size: 1.1rem;
    color: #ffffff;
    padding: 20px;
    font-weight: 600;
    flex-grow: 1;
    /* Garante alinhamento caso os textos tenham tamanhos diferentes */
}
#menu-toggle{
    width: 50px;
    height: 50px;
    background-color: var(--black);
    font-size: 30px;
    color: var(--red);
    cursor: pointer;
    border: 0;
    margin: 0;
    padding: 0;

}

/* Esconde a versão resumida no computador */
.mobile {
    display: none;
}
a{
    text-decoration: none;
}
.produto-imagem{
    width: 288px;
    height: 288px;
}

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

    /* Esconde a foto da fachada */
    .foto-frente {
        display: none;
    }

    .mobile {
        display: block;
    }

    /* Empilha mapa e informações */
    #faixada {
        flex-direction: column;
        width: 95%;
    }

    iframe {
        width: 100%;
        height: 300px;
    }

    #horario {
        width: 100%;
        text-align: center;
    }

    #horario p {
        text-align: center;
    }

    header img {
        width: 50px;
        height: 50px;
    }
    #header{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 200px;
        margin: 10px;
    }

    #header img{
        display: block;
        width: 200px;
        height: 200px;

    }

    #barra-navegacao {
        display: none;
    }

    #barra-navegacao button {
        width: 50%;
        height: 45px;
    }

    .catalogo-container {
        display: flex;
        flex-direction: column;
        align-items: center;        
    }

    .catalogo-container article {
        padding: 20px;
        width: 250px;
        height: 300px;
    }

    .catalogo-container article img {
        width: 200px;
        height: 200px;
        object-fit: cover;
        background-color: #181818;
    }
    
    .produto-container {
        flex-direction: column;
        padding: 15px;
    }

    .produto-col-esquerda,
    .produto-col-direita {
        width: 100%;
    }

    .produto-col-esquerda img {
        max-height: 320px;
        object-fit: cover;
    }

    .produto-col-direita h1 {
        font-size: 28px;
        text-align: center;
    }

    .produto-preco {
        text-align: center;
    }

    .btn-orcamento {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .btn-voltar {
        display: block;
        margin: 15px;
    }
    h1#marcador{
        font-size: 20px;
    }
    h1{
        
        font-size: 20px;
    }
    

}