You are only allowed to work part-time in Italy if you have a student visa. That is, up to 20 hours per week and 1,040 hours per year
You can also seek to change your student residence permit to a work permit once your studies are completed. You can only do this once the “decreto flussi,” Italy’s non-EU immigration system, is opened.