The two options are not mutually exclusive. Think of Germany: each Länder has a great degree of autonomy (similar to what this referendum is asking for Lombardy and Veneto) and still the country as a whole is one of pillars of Europe.
I think letting in a few million of net consuming random people from outside of EU played its part.