Funnily enough, in Italy (where I grew up) there was next to no association in the public mind between HIV/AIDS and homosexuality. It was linked to drug use and sexual promiscuity, but it was drilled into us that any kind of unprotected sex (and for most people, that was automatically construed as heterosexual sex) was a risky behaviour.
I was honestly very surprised when, towards the end of the nineties and early 2000s, it gradually dawned upon me that elsewhere there was a connotation of HIV/AIDS as having been somehow associated with homosexuality ‘abroad’.
For us, in Italy, it was very much perceived as an activity-related risk, not an identity-related one. (As I dare say it should be, methinks.)