Legnago, Republic of Venice