Upvote:-1
The difference between EU national ID and Italian passport is that you can freely travel within EEU/CH with your Italian/EU National ID, but that ID is not a valid document for Moroccan government (they need a proof that you are leaving to Italy legally) or anywhere outside EEU/CH. Your Italian passport, on the other end, is. Thus, the Moroccan government will need to see your Italian passport on departure.
For reference: https://en.wikipedia.org/wiki/National_identity_cards_in_the_European_Economic_Area