Who told you that whose is only used for living things? I'd like to know the name of that person who is responsible for speeding this misconception about the English language because I hear people refer to it as fact all the time on this forum. The statement that whose can only be used for people and animals is just not true. You can definitely use it for nonliving objects. Period!
The relative pronoun whose is used to indicate that something belongs to or is owned by someone or something else. So, the "thing" something belongs to can be a living thing as well as a nonliving one. Whose has a very strong notion of possession which which, also a relative pronoun, does not have. That's why your second sentence sounds wrong. Take a look at these examples:
Do you remember the company whose managers were all from the UK? Well, it went bankrupt last year. (this sentence sounds absolutely normal)
Do you remember the company which had managers who were all from the UK? Well, it went bankrupt last year. (which mangers were would be grammatically incorrect English)