A huge fire has ripped through one of Scotland’s architectural gems for the second time in four years.