Defending world champion Sebastian Ogier has cut the gap on team-mate Jari-Matti Latvala on the third day of the Rally Italia in Sardinia.