Pagani was born in Valsolda, now a municipality in the Province of Como in the Italian region Lombardy, located about 60 kilometres (37 mi) north of Milan and bordering Switzerland.
In 1696 he returned to Valsolda where he frescoed what is considered his masterwork: the nave of the parish church of San Martino.
Michela Catalano, in an entry about Pagani on the Lombardia Beni Culturali website, states:[2]The result is an extraordinary invention of illusionistic perspective, consisting of two quadratura domes connected by transverse arches, framing a complex composition, in which different iconographic themes, in turn, connect the (painted narratives) of lives of the saints to their respective side chapels.
(In the center of the second dome) is depicted the Assumption of the Virgin... (To its side, is depicted) .. the Preaching of (John) the Baptist; on the opposite side of the vault, and above the chapel dedicated to Saint Apollonia, Catherine and Lucy, (the space is) decorated with frescoes the death sentence of the three martyrs, carried to glory by angels on the ceiling of the first span.
The fantastic, dizzying rush of the vault ... is a veritable compendium of the experiences drawn from the figurative painters in Venice and Central Europe, from research on chiaroscuro and naturalistic styles of the Venetian tenebrosi artists, and impacted by the Baroque of Rubens, a reflection on models of Michelangelo, Tintoretto and other mannerists, supplemented by a precocious adoption of the illusionistic perspective methods of Andrea Pozzo.Pagani died in Milan on 5 May 1716.