Spain secured their place in the round of 16 with a 1-0 win over Italy, thanks to a Riccardo Calafiori own goal in the 55th minute.