At what point was Northern Italy no longer part of the Holy Roman Empire?

by Phantasm_Agoric

Looking at maps of the Holy Roman Empire, the states of Northern Italy like Savoy, Milan, Genoa, Florence, Siena, etc. are almost always included, but by the time of the Treaty of Westphalia, the only part that's ever included is Savoy Proper. I can find very little on this. Did the duchies and city-states of Italy ever declare independence, like the United Provinces and the Swiss Confederacy? Or was there just a gradual acceptance that Imperial jurisdiction no longer applied?

Siegbert

I don't think the emperors ever officially let go of Northern Italy. But yes, in Early Modern times the HRE gradually became synonymous with Germany.