Italy dramatically sealed second place in Group B at Euro 2024 with a last-gasp 1-1 draw against Croatia.