The Old Town of Kotor lay in the shadows of the fearsome St. John’s Hill.