Upvote:1
You are fine as long as your main destination is Italy.
If the applicant is planning to visit two or more Schengen countries, it is highly recommended to be applying for the visa at the embassy/consulate of the country you will be residing in for most of the travelling days, referred to as the main destination.
Since you are staying for the majority of the time in Italy, your first port of entry need not necessarily have to be Italy and arriving in Germany is totally fine.