Foreigners can buy property in Italy, subject to reciprocity (condizione di reciprocità), ie if Italian citizens can buy in their country of origin, the citizens of this country can purchase property in Italy. This provision is also contained in intergovernmental agreements between countries on the mutual protection of investments. You can see whether your country is a condition of reciprocity on the following link http://www.esteri.it/MAE/IT/Ministero/Servizi/Stranieri/Elenco_Paesi.htm
For example, citizens of Russia and Ukraine are free to buy property in Italy, Belarusian citizens to buy property in Italy must first obtain a residence permit in Italy.