You show the portfolio and product URLs. The path would be different. The path for products is generated by Woocommerce, the path for the portfolio is generated by WordPress as per post type way.
If you have any questions please feel free to contact us.
I know the last subcategory is different and it’s the right one.
The problem are the other sub-categories (Soft> Infanzia>), that are the same for the two products but they don’t appear as I’ve just shown you in the screenshots.
It’s a very important problem, I need to fix this as soon as possible.
Please make the full backup of your site as well as the Theme settings export and check the issue on the Storefront theme to detect if our theme causes the problem. Storefront is a free theme developed by WooСommerce.