Cagliari returns to victory: who goes up and who goes down