Greece and Italy aren’t adjoining, at least not in terms of the land. You could travel to Greece by ferry from the south of the Apeninne (Italian) Peninsula or… you could go from Croatia to Greece, although I’m not sure if there’s a complete railroad network from Croatia to Greece (considering you have to travel through Bosnia & Herzegovina, Serbia and Macedonia).