Use of “it” and “its” for people and animals
I’m an Italian working in an English-speaking company. In school here they usually teach us to refer to animals using the it pronoun. Something like (i.e. talking about a dog):
It’s really nice.
I see many people using he or she also for animals. What’s the correct way to use it? Should I use it only for inanimate things?