Claudio Ranieri’s club football career ended in style as his Cagliari side battled it out in a thrilling encounter with Fiorentina