A controversial penalty in the dying seconds has handed Italy a place in the quarter finals as Franceso Totti converted from the spot to give his 10 man side victory.