There are no ferries from Italy to Egypt. The only ferry service from Europe which was operating was run by Salamis Lines out of Greece, but they have suspended operations until further notice, presumably because of concerns about the situation in the region.
You can reach Egypt via Turkey, Syria and Jordan, then by ferry from Jordan to the Sinai. Or, you can take a ferry to Tunis from Italy or France, then across Libya and into Egypt.
What is your intended destination after Egypt? That may determine which route is preferable.
BTW, your post should be in the Trip Transport forum, rather than this one, which is specifically for travellers who want to meet up with other travellers on the road. You would have gotten a response sooner in the other forum, as I see all the posts.
Good luck with your trip, tell us more about your plans and we may be able to give you more assistance.
"It matters not what goal you seek
Its secret here reposes:
You've got to dig from week to week
To get Results or Roses."
'One world, two wheels'