body {
    margin: 0;
    background: url("../imagens/Fundosite.jpg") repeat;
    background-position: top left;
}

.principal {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    background: transparent;
}

/* ============================= */
/*            TOPO               */
/* ============================= */

.topo {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.logo img {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    display: block;
}

.banner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================= */
/*             MENU              */
/* ============================= */

#menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 0;

    max-width: 1000px;
    margin: 0 auto;

    background: transparent;
}

#menu a {
    display: flex;
    justify-content: center;
    align-items: center;
}

#menu a img {
    height: 55px;
    width: auto;
    display: block;
}

/* ============================= */
/*            MOBILE             */
/* ============================= */

/* 📱 até 768px → 2 linhas (4 + 4) */
@media (max-width: 768px) {

    #menu {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 🔥 NÃO auto */
        justify-items: center;
        align-items: center;
        gap: 14px;

        width: 100%;
        padding: 15px 10px;
        background: transparent;
    }

    #menu a img {
        max-width: 100%;
        height: 46px;
    }

    .topo {
        flex-direction: column;
        text-align: center;
    }
}


/* 📱 até 600px → 3 linhas (3 + 3 + 2) */
@media (max-width: 600px) {

    #menu {
        grid-template-columns: repeat(3, 1fr); /* 🔥 3 colunas */
        gap: 12px;
    }

    #menu a img {
        height: 42px;
    }
}

/* ============================= */
/*           CONTEÚDO            */
/* ============================= */

.conteudo iframe {
    width: 100%;
    height: 70vh;
    border: none;
}

/* ============================= */
/*            RODAPÉ             */
/* ============================= */

.rodape {
    background: #000;
    color: #ff0;
    text-align: center;
    padding: 10px;
}
