The base , near the St. Gotthard Pass on the route between northern Europe and Italy , was a result of two world wars that prompted neutral Switzerland to construct bunkers , storerooms and barracks inside the granite mountains to serve as an ultimate refuge in case of an invasion .