Diamanti saves Pioli's job