Cagliari also bids farewell to Prati, who is joining Racing in Spain.