The old town, safeguarded by the sea, is situated on a hilly peninsula