Cagliari sign Farias and Capuano