header {
    background-color: #472d30 !important;
}

main {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 60px 80px;
    overflow: hidden;
}

.container-principal {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background-color: #fcf1dd;
    border: 2px solid #472d30;
    border-radius: 16px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    margin: 60px auto;
    box-sizing: border-box;
}

.coluna-esquerda {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 200px;
    flex-shrink: 0;
}

.principal-img img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px dashed #472d30;
}

.textos-sobre {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.container-principal h1, 
.container-principal p, 
.container-principal h2, 
.container-principal h3 {
    color: #723d46;
}

.textos-sobre h1 {
    font-weight: bold;
    font-size: 1.8rem;
}

.tres-imagenszinhas {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.tres-imagenszinhas img {
    flex: 1;
    width: 0;
    height: 100px;
    object-fit: cover;
    border: 2px solid #472d309f;
    border-radius: 8px;
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.tres-imagenszinhas img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.textos-sobre span {
    color: #af5515;
}
.coluna-esquerda span {
    color: #af5515;
}

.container-principal h3 {
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.3rem;
}

b{
    font-weight: bold;
}

u{
    color: #af5515;
}

@media (max-width: 425px) {
    main {
        padding: 20px 12px;
        gap: 20px;
    }

    .container-principal {
        display: flex;
        flex-direction: column; /* Organiza em formato de lista vertical */
        align-items: center;
        margin-top: 140px; /* Garante distância segura abaixo do header */
        padding: 30px 15px 20px 15px;
        gap: 20px;
        width: 100%;
    }

    /* COLUNA ESQUERDA: Agora funciona como container flex interno */
    .coluna-esquerda {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
        order: 1; /* Força toda essa área a vir antes dos textos adicionais */
    }

    /* FOTO REDONDA: Vem antes de tudo na ordem visual */
    .principal-img {
        order: -1; 
        margin-top: -80px; /* Faz a foto flutuar na borda superior do card */
        margin-bottom: 10px;
    }

    .principal-img img {
        width: 140px;
        height: 140px;
        display: block;
    }

    /* TEXTOS SOBRE E GALERIA: Entram logo abaixo da foto redonda */
    .textos-sobre {
        margin-top: 0;
        width: 100%;
        text-align: center;
        order: 2; /* Fica no meio do bloco, após a foto e antes dos spans adicionais */
    }

    .textos-sobre h1 {
        font-size: 1.4rem;
    }

    .container-principal h3 {
        font-size: 1.1rem;
    }

    .container-principal p {
        font-size: 15px;
        line-height: 1.4;
    }

    .tres-imagenszinhas {
        gap: 8px;
        margin-top: 15px;
    }

    .tres-imagenszinhas img {
        height: 65px;
        border-radius: 6px;
    }
}

@media (min-width: 426px) and (max-width: 768px) {
    main {
        padding: 40px 30px;
    }

    .container-principal {
        flex-direction: row;
        align-items: flex-start;
        margin-top: 100px;
        padding: 30px;
        gap: 30px;
        width: 100%;
    }

    .coluna-esquerda {
        width: 160px;
    }

    .principal-img img {
        width: 160px;
        height: 160px;
    }

    .textos-sobre {
        margin-top: 0;
        text-align: left;
    }

    .textos-sobre h1 {
        font-size: 1.6rem;
    }

    .tres-imagenszinhas {
        gap: 12px;
    }

    .tres-imagenszinhas img {
        height: 85px;
    }
}

@media (min-width: 769px) {
    main {
        padding: 60px 80px;
    }

    .container-principal {
        flex-direction: row;
        align-items: flex-start;
        margin: 80px auto;
        padding: 40px;
        gap: 40px;
        max-width: 900px;
        width: 100%;
    }

    .coluna-esquerda {
        width: 200px;
    }

    .principal-img img {
        width: 200px;
        height: 200px;
    }

    .textos-sobre {
        margin-top: 20px;
        text-align: left;
    }

    .textos-sobre h1 {
        font-size: 1.8rem;
    }

    .tres-imagenszinhas {
        gap: 15px;
    }

    .tres-imagenszinhas img {
        height: 100px;
    }
}
