Lost Soul wrote: <snip> ...so I bought a 350 scrambler one which has the right length, but even without an exhaust gasket it only has about 1 mm clearance from the frame downtube.
The Road part number and the Scrambler part number are not the same: 0719.84.020 for the Road, 0608/9.84.023/025 for the Scrambler.
This means the pipes are not the same (and most likely explains why you're struggling)

Btw, under the Ducati system, the first 4 digits indicate which model of bike any particular part was first used on. Even if the part was later used on other bikes, these 4 digits do not change.
So the fact that the exhaust pipe for your bike does NOT use the Scrambler code, tells me that the Scrambler pipe wasn't used on the Road ...