Real Madrid were in trouble at Napoli until their captain, Sergio Ramos, inspired a 3-1 win that took the holders into the Champions League quarter-finals