A stunning 18th-century site where pilgrims ascend by a series of punishing stairs only to return via funicular