Hello,
1/ You can delete the custom code, go to Theme Options > Header Builder > Multiple headers > Create a custom header and set it for the Front page, then edit it and change Main header color and Main menu settings depends on your needs for the Home Page only.
2/ Add !important
to your code – https://prnt.sc/n0vLnJDWK0wv
Regards