Eleven hundred years in one building — an emir’s fortress, a Norman king’s palace, and a chapel where Byzantine gold meets a Fatimid ceiling.