Little-known constitutional court judge Sergio Mattarella was elected Italy's new president on Saturday after four rounds of voting by lawmakers and regional representatives.