Lorenzo Musetti inspired Italy to a historic fourth consecutive Davis Cup title, defeating Carlos Alcaraz and Spain in a thrilling deciding doubles clash in Bologna.