#home {
    display: flex;
    min-height: calc(100vh - 80px);
}

#cta {
    width: 35%;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-top: 5%;
}

#cta .tittle {
    font-size: 2.4rem;
    padding-left: 35px;
}

.cta_buttons {
    display: flex;
    padding-left: 35px;
    gap: 20px;
}

.cta_buttons a {
    text-decoration: none;
}

#banner {
    display: flex;
    align-items: start;
    justify-content: flex-end;
    width: 90%;
}

#banner img{
    width: 50%;
    height: fit-content;
}

@media screen and (max-width: 1170px) {
    #home {
        flex-direction: column;     /* Texto em cima, imagem em baixo */
        align-items: center;
        text-align: center;
        gap: 30px;
        padding-top: 40px;
    }

    #cta {
        width: 100%;
        margin-top: 0;
        align-items: center;
        gap: 20px;
    }

    #cta .tittle {
        font-size: 2rem;          /* Título grande e centralizado */
        padding-left: 0;
        max-width: 90%;
    }

     .cta_buttons {
        padding-left: 0;       /* remove o deslocamento */
        justify-content: center; /* garante centralização */
        width: 100%;           /* opcional mas deixa mais estável */
    }

    .btn-default {
        font-size: 1.1rem;        /* Botão proporcional */
        padding: 14px 20px;
        border-radius: 25px;
        
    }

    #banner {
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    #banner img {
        width: 80%;               /* Foto maior em mobile */
        max-width: 400px;
    }
}
