One day: São Bento down to the Ribeira, then Gaia for sunset
Cathedral terrace at 10.30am, Clérigos Tower at 11.30am
Two days: the old city on one, Gaia's port lodges on the other
Spare evening? Tram 1 to Foz, €5 a ride, for sunset on the Atlantic
Day 4: the Douro valley by train, two hours; sit on the right
Day 5: Guimarães or Braga, each about an hour by train
Plus a tile route and a port route, in the full itinerary