Two quick goals midway through the first half were enough for Italy, who now meet Brazil in the quarter-finals.