On the screenshots that you attached, I saw that you use the Elementor plugin.
The header has a standard indentation from below, to compensate for that indentation, you need to add to the first section a negative value, in order to do it, select your first section and click “Edit Section”-> in the Advanced settings select the “Margin” field, and give a negative value like “-20px” or more.