Your roof ceiling structure might be 1 inch thick. Those slats/frame members run side to side. Get some 1 inch thick wood and bolt them the entire length of the trailer, front to back, to the metal slats. This give you 2 inches of structure to place two layers of 1 inch foam board insulation. 1 inch will not be enough insulation! Add 2 inches.
You will add the top layer, then bolt in the wood with self-tapping screws of the right length (1 5/8ths) , then add the second layer, then add some thin venire or 1/8 plywood or paneling for the ceiling. Mark on the walls where the metal slats are and measure out to the center of the wood boards and take notes so after the ceiling goes up you know where the framework is, this helps to know where to screw in the ceiling board too.
And, yes, the panels will keep it cooler a little. The panels just physically cannot transfer al that heat across the air gap.