Venice, A Maritime Republic