Official: Pinilla joins Cagliari