FR 5711 then FR 4084 at Barcelona
Napoli → Barcelona → Warsaw Modlin
Timetable, Barcelona time
19:50FR 5711 from Napoli at the gate
19:45FR 4084 to Warsaw Modlin leaves the gate
23 h 55 apart on the timetable, overnight
FR 4084 leaves 23 h 55 after FR 5711 arrives on the timetable: more than half a day, so not a connection we count.