SMS dit: Medieval Lucca and the evolution of the Renaissance state