My pronouns are "He", "Him" and "buggerlugs"
The RN in the Med was mainly comprised of second rate, tired, overworked ships. The best were kept at Scapa for use against the Germans.Not sure about outclassing the royal navy in the med - Mussolini liked to push the idea of the Med being Mare Nostrum (our sea) but he couldn't control it. Had trouble keeping supplies to North Africa open. Yes they did stay in port a hell of a lot so not a lot of use. A large part of the reason for this a lot of the time was, incredible as it seems, shortage of fuel.
i don't really understand what you mean about italian ships outclassing the royal navy if, as you say, they tended to get thumped by the royal navy whenever they came out.
The Italian ship Roma came to a particularly sad end - in the chaos after September 8, when Italian forces were all over the place thanks to less than decisive leadership it got sank by the germans. It was supposed to deliver itself to the allies.
A good piece about Matapan here - https://warfarehistorynetwork.com/2016/09/09/mussolinis-navy-foiled-the-battle-of-cape-matapan/