FR 789 then FR 1768 at Lisbon
Bologna → Lisbon → Valencia
Timetable, Lisbon time
15:00FR 789 from Bologna at the gate
14:45FR 1768 to Valencia leaves the gate
23 h 45 apart on the timetable, overnight
FR 1768 leaves 23 h 45 after FR 789 arrives on the timetable: more than half a day, so not a connection we count.