Ecuador’s Jhonatan Narváez edged out the Spaniard Enric Mas at the end of Wednesday’s stage 11 to win his third stage of this year’s Giro d’Italia as Afonso Eulálio retained the leader’s pink jersey.