ROME—Italy’s effort to fight the worst coronavirus epidemic outside China by quarantining 17 million people began in confusion on Sunday, as transport services continued, enforcement wasn’t yet evident and Italians wondered how it was meant to work.

A government decree that took effect on Sunday bans people from entering or leaving large swaths of northern Italy, including the cities of Milan, Venice and Parma and much of Italy’s industrial heartland.