Probably borrowed from Latin vānitātem.
Practice speaking and memorizing "vanità" and many other words and sentences in Italian.