This question already has an answer here:
I am a Canadian Erasmus student in Italy and my permesso di soggiorno expires June 30th 2017, but my multi-entry student visa (D) does not expire until October of 2017. I want to stay in Italy for July and August to do some traveling within the country, but I am worried that this may be a problem.
Am I allowed to remain in Italy for these months with an expired permesso but a valid student visa? Would I have to leave when my permesso expires and re-enter as a tourist (being that I am allowed to be here for 90 days without a visa as a Canadian)?