Cagliari, Prati is official: long contract for the Azzurrino