This will remove the top and bottom padding from all pages, which might not be ideal if some pages rely on that space for design balance.
If you want to apply it to a specific home page only, you can find the option in the Design tab for the WP bakery page builder and the Advanced tab for Elementor to remove the white space: https://xtemos.com/docs-topic/top-and-bottom-paddings/
Actually, the top and bottom spacing you’re seeing seems to be coming from the padding applied to the Elementor container/section, not the header or footer layouts themselves.
You can adjust or remove the padding directly within the container settings at the home page. If you have faced the issue on all pages you need to use custom css code.