The problem has nothing to do with the IT industry. It's true that we get fewer women applying for roles, but it's certainly not the case anywhere I've worked that it's a male environment or misogynistic in any way (UK based). Perhaps it's different in your locale, but here the problem lies squarely with the 20 or so years leading up to entering the workforce. There is still far too much gender bias while growing up. Why do women wear dresses and men don't? It's because parents dress up little girls because they look pretty and then reinforce that by telling them how pretty they are. This and many, many examples like it lead to girls having different preferences than boys. Disney is a prime offender here, telling the little princess that her job is to find a prince. Fast forward to working age and it's no wonder that women don't fancy the lifestyle that goes with IT. Long hours in the deepest darkest corner of a building for low pay. Women have been brainwashed from birth to prefer caring work such as teaching and nursing while men were brainwashed to prefer power, challenge, difficult. There is no natural preference, so if your little girl decides not to get a job in IT it's your own fault, not the fault of the industry.
For the record, I know more women in IT than I do female lawyers, and I worked in the legal industry for many years.