Cristiano Ronaldo came off the bench to drag Juventus back into the match, as he equalised for the away side despite an earlier red card.