.sobre {
    position: relative;
    width: 100%;
    /* Mantem a altura de referencia, mas permite crescer quando o conteudo aumenta */
    min-height: 2100px;
    height: auto;
    display: flex;
    /* Ajuste para alinhar o conteúdo no topo */
    align-items: flex-start;
    padding-top: 120px;
    background-color: #1a1a1a;
    /* OTIMIZAÇÃO: Usa WebP se o navegador suportar, senão usa o PNG original. Melhora a performance. */
    background-image: image-set(
        url('../../assets/images/img-sobre-bg.png') type('image/webp'),
        url('../../assets/images/img-sobre-bg.png') type('image/png')
    );
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover; /* CORREÇÃO: Usa 'cover' para preencher sem distorcer a imagem */
    overflow: visible;
}

.sobre-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 8%;
}

.sobre-content {
    /* Reestruturado para centralizar o header e manter o conteúdo à esquerda */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza o .sobre-header por padrão */
    gap: 112px; /* Espaçamento solicitado entre os blocos de conteúdo */
}

/* Mantém o restante do conteúdo à esquerda e com largura limitada */
.sobre-content > *:not(.sobre-header):not(.sobre-testimonials):not(.btn-cta-light) {
    max-width: 600px;
    align-self: flex-start;
}

.sobre-header {
    position: relative;
    font-family: var(--font-title);
    width: 100%; /* Ocupa toda a largura para permitir a centralização do texto */
}

.sobre-header h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    color: #fff;
    font-weight: 400;
    text-align: center; /* Centraliza o texto do título */
}

.sobre-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    width: 410px;
}

/* Ajuste do Selo conforme imagem */
.small-msg-decor {
    position: absolute;
    top: 45%;
    right: 260px;
    width: 210px;
    pointer-events: none;
}

/* Badge de Prova Social */
/* Aumentamos a especificidade do seletor para sobrescrever o alinhamento à esquerda padrão */
.sobre-content .clients-badge {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    margin-left: auto !important; /* Força à direita */
    align-self: flex-end !important;
    /* Adiciona um grande espaço acima para "empurrar" o badge para baixo e revelar mais da foto de fundo */
    margin-top: 880px;
    margin-bottom: 64px;
    animation: flutuarBadge 4s ease-in-out infinite;
}

/* Animação de flutuação */
@keyframes flutuarBadge {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

.clients-badge p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    margin-left: -10px;
}

.avatars img:first-child { margin-left: 0; }

/* Botao da secao Sobre */
.sobre .btn-cta-light {
    background-color: #D4A389; 
    color: #fff;
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
    align-self: center !important;
    margin-bottom: 250px;
}

.sobre .btn-cta-light:hover {
    transform: scale(1.02);
}

/* Exceção: Carrossel deve estar centralizado */
.sobre-testimonials {
    width: 100% !important;
    max-width: 100% !important;
    align-self: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 60px;
    margin-bottom: 40px;
}

/* Tablet */
@media (max-width: 1024px) {
    .sobre {
        min-height: 100vh;
        padding-top: 88px;
        background-position: 65% top;
        background-size: cover;
    }

    .sobre-container {
        padding: 0 6%;
    }

    .sobre-content {
        gap: 72px;
    }

    .sobre-content > *:not(.sobre-header):not(.sobre-testimonials):not(.btn-cta-light) {
        max-width: 100%;
        width: 100%;
    }

    .sobre-description {
        width: 100%;
        max-width: 560px;
        font-size: 1.05rem;
    }

    .small-msg-decor {
        top: 54%;
        right: 8%;
        width: 150px;
    }

    .sobre-content .clients-badge {
        margin-top: 320px;
        margin-bottom: 40px;
    }

    .sobre-testimonials {
        margin-top: 36px;
        margin-bottom: 28px;
    }

    .sobre .btn-cta-light {
        margin-bottom: 96px;
    }

    .sobre-overlay {
        background: rgba(0, 0, 0, 0.45);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .sobre {
        padding-top: 72px;
        background-position: center top;
    }

    .sobre-container {
        padding: 0 5%;
    }

    .sobre-content {
        gap: 44px;
    }

    .sobre-header h2 {
        font-size: clamp(2.2rem, 10vw, 3rem);
        line-height: 1.05;
    }

    .small-msg-decor {
        top: 100%;
        right: 50%;
        transform: translateX(50%);
        width: 120px;
        opacity: 0.92;
    }

    .sobre-description {
        max-width: 100%;
        font-size: 1rem;
        line-height: 1.7;
    }

    .sobre-content .clients-badge {
        align-self: center !important;
        margin-left: 0 !important;
        margin-top: 100px;
        margin-bottom: 24px;
        padding: 10px 14px;
        gap: 10px;
        border-radius: 999px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .clients-badge p {
        text-align: center;
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .sobre-testimonials {
        margin-top: 22px;
        margin-bottom: 16px;
    }

    .sobre .btn-cta-light {
        width: min(100%, 340px);
        justify-content: center;
        padding: 16px 24px;
        margin-bottom: 64px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .sobre {
        padding-top: 64px;
    }

    .sobre-content {
        gap: 36px;
    }

    .small-msg-decor {
        width: 104px;
    }

    .sobre-content .clients-badge {
        margin-top: 86px;
        margin-bottom: 18px;
        padding: 9px 12px;
    }

    .avatars img {
        width: 28px;
        height: 28px;
    }

    .sobre .btn-cta-light {
        font-size: 0.92rem;
        margin-bottom: 52px;
    }
}