Rule reminder
'Per non + infinitive' (same subject) is the most common negative purpose structure. 'Affinché non / perché non + congiuntivo' is used when subjects differ.
Ho preso un taxi _____ perdere il treno.