Francesca Schiavone played a key role as Italy came from behind to defeat Germany 2-1 in the Hopman Cup in Perth.