I’ve tried to fix this before by simply making that main category link a normal link
https://github.com/discourse/discourse/pull/7598
…but we didn’t end up going through with that change because nested anchor tags aren’t valid HTML and cause issues in some browsers.
There is a different technique I’ll try though, it’s described here in detail: Nested Links Without Nesting Links
That fix involves putting an empty link to the parent category within the box, then expanding that link to fit the entire box. Any sublinks would then be in a layer on top of that link, instead of nested within.