Nicolò Tresoldi, from Cagliari to the Champions League