FR 853 then FR 4024 at Lisbon
Treviso → Lisbon → Krakow
Timetable, Lisbon time
17:35FR 853 from Treviso at the gate
17:05FR 4024 to Krakow leaves the gate
23 h 30 apart on the timetable, overnight
FR 4024 leaves 23 h 30 after FR 853 arrives on the timetable: more than half a day, so not a connection we count.