The Italian term "capriccio" matches the English term "whimsy"

other italian words that include "capriccio" : english :
capriccio caprice
bisbètico, capriccio, atmosfera, ànimo mood
capriccio sulkiness
capriccio whim