Two places/regions around Bari of note:
Matera and Alberobello. Worth at least a night in each. Puglia region towards the "heel" (~Lecce) said to be quite nice too.
If the ferry arrives in Bari in the evening, worth spending a night for the food. Warm antepastos for one.