Pizza oven flues get incredibly hot, as they act as an exhaust for the heat from the oven. Manufacturers typically have rules about clearance above and around the flue.