E.B.
I would refocus your concerns if I were you. Gay, not gay, celibate, bisexual, monogamous, heterosexual, whatever. Those should not be your main focus right now.
What your son is, is unsupervised and undisciplined and dishonest. Whatever he will grow up to be, he will need to be honest and principled and truthful and respectful of others. And those qualities are what you should be helping him to develop right now as he approaches his teen years. Forget about what sex he will or will not be interested in later on in life.
Your son needs to know that he has lost all electronic privileges except for using a computer in the kitchen for homework when you or his dad is present, and his screen will be visible at all times. Most likely, some of the sites he visited were age-restricted and a boy who just turned 12 may have lied about his birthday to access them.
He disobeyed school rules, I'm sure. No school would tolerate sexual contact in the public bathrooms. So there's another loss of privileges. He should lose some freedom and independence and not be allowed to visit friends until he understands privacy and respect and modesty.
He lied to you. Another loss of privileges. He has lost your trust and will have to earn it back. He now is supervised like a 6 year old until he proves his word can be trusted.
Completely take "gay" off your list of concerns. Instead of telling your son "if you're gay it's ok", tell him "you showed us that you are not honest, trustworthy, reliable, or respectful". Teach him that as a responsible adult (driver, employee, member of a family, friend, student, etc), the qualities of respect, honesty and reliability are of utmost importance. If he can't find it within himself to value those qualities, he won't have friends, he won't be able to drive a car in just a few years, he won't be able to have a job. Remind him that he's almost a teen, and he can start working on his personal development right now. Teach him in no uncertain terms. And make sure that you're not trying to turn him into anything in particular: gay, straight, whatever. You're trying to help him become a decent human being. What path he takes later on (career, choice of partner, job, school, etc) will always require that he is a decent human being.