text widgets output a <p> paragraph element which will attract the themes bottom margin ( for paragraph breaks ).
I can provide you with some CSS – but that may cause you problems when you want there to be a space.
Instead i believe you can use the Elementor Heading Block, change it to a Paragraph element and remove the margin in the elementor settings.
But you may need to check Elementor support for that.