At least a day is needed to look round this lovely town. It's steeped in history. The town has two centres, the upper city, a hilltop medieval town, surrounded by 17th C. walls, and the lower city. To see them both use the funicular. It also has an attractive piazza and interesting churches.
The only downside is that it's a popular place and therefore is very busy with plenty of tourists.