Context. The structure of protoplanetary disks is thought to be linked to the temperature and chemistry of their dust and gas. Whether the disk is flat or flaring depends on the amount of radiation that it absorbs at a given radius and on the efficiency with which this is converted into thermal energy. The understanding of these heating and cooling processes is crucial for providing a reliable disk structure for interpreting dust continuum emission and gas line fluxes. Especially in the upper layers of the disk, where gas and dust are thermally decoupled, the infrared line emission is strictly related to the gas heating/cooling processes. Aims. We aim to study the thermal properties of the disk in the oxygen line emission region and...