Cagliari beat Ravanelli's Ajaccio