.corpo, .corpo-se, .corpo-ep {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    box-sizing: border-box;
}

.corpo    { background: linear-gradient(rgba(19, 18, 18, 0.6), rgba(19, 18, 18, 0.6)), url('/2bim/img/fundo.jpg') center/cover no-repeat; }
.corpo-se { background: linear-gradient(rgba(19, 19, 19, 0.6), rgba(19, 18, 18, 0.6)), url('/2bim/img/psel.jpg') center/cover no-repeat; }
.corpo-ep { background: linear-gradient(rgba(19, 19, 19, 0.6), rgba(19, 18, 18, 0.6)), url('/2bim/img/ppep.jpg') center/cover no-repeat; }
.corpo-form   { background: linear-gradient(rgba(19, 19, 19, 0.6), rgba(19, 18, 18, 0.6)), url('/2bim/img/fundo.jpg') center/cover no-repeat; }

.card {
    width: 300px;
    height: 400px;
    position: relative;
    perspective: 1000px;
    display: flex;
}

.ep, .se, .verso {
    width: 100%;
    height: 100%;
    background-color: #2C0F10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
    font-size: 15px;
    color: #eaceaa;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease;
}

.ep, .se { transform: rotateY(0deg); }
.verso   { transform: rotateY(180deg); }

.card:hover .ep, .card:hover .se { transform: rotateY(-180deg); }
.card:hover .verso               { transform: rotateY(0deg); }

.bloco {
    width: 300px;
    height: 400px;
    background-color: #2C0F10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box;
    font-size: 15px;
    color: #eaceaa;
}

.meio {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
    box-sizing: border-box;
}

.texto {
    width: 100%;
    max-width: 930px;
    min-height: 200px;
    background-color: #2C0F10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    padding: 30px 20px;
    box-sizing: border-box;
    font-size: 14px;
    color: #eaceaa;
    margin: 0 auto 50px auto;
    text-align: center;
}

img {
    display: flex;
    width: 110px;
    height: 110px;
    border: 3px solid #1d0c0e;
    border-radius: 50%;
    margin: 10px auto;
    align-items: center;
    justify-content: center;
}


h2 {
    font-size: 25px;
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    margin: 20px;
    text-align: center;
}

.tt {
    font-size: 25px;
    font-weight: bold;
    text-align: center;
}

.pg {
    text-align: center;
    color: #eaceaa;
    font-size: 15px;
    margin-bottom: 30px;
}

footer {
    background-color: #2C0F10;
    width: 100%;
    height: 160px;
    color: #eaceaa;
    font-size: 16px;
    font-style: italic;
    text-align: center;
    padding-top: 40px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .meio, .texto {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .texto {
        height: auto;
        font-size: 13px;
    }

    .card, .bloco, .imagens {
        max-width: 300px;
    }
}
