I heard Italian law permits the purchase of real estate by foreigners with a few exceptions. Which ones?

I am from Egypt and am considering buying a historical property in northern Italy for investment immigration.

Answers

On Alessia Ajelli answered:

There is no specific resident permit that can be directly obtained through a real estate investment.

On Marco Mazzeschi answered:

There is no specific resident permit that can be directly obtained through a real estate investment.

On Andrea Parisi answered:

There is no specific resident permit that can be directly obtained through a real estate investment.