FR 4584 then LA 5786 at Barcelona
Porto → Barcelona → Torino
Timetable, Barcelona time
18:35FR 4584 from Porto at the gate
17:00LA 5786 to Torino leaves the gate
22 h 25 apart on the timetable, overnight
LA 5786 leaves 22 h 25 after FR 4584 arrives on the timetable: more than half a day, so not a connection we count.