You must pay any purchase tax (IMT) at least 3 days before you complete the sale and proof of payment must be shown to the notary.
There are 2 different scales for IMT, one applies to permanent residences and one for second homes, see below:
IMT for land only (prédio rustico) is 5%.
IMT for construction & urban [...]