How to combine Accordion and Dropdown menu?

I would like to use an Accordion menu with the submenu already open following the current page (it’s okay), but I would also like to use the drop down menu (the automatic hover submenu opening) on all other submenu menu branches that are not inside the path run.
How can I do this?
Here is an example:

Thank you.