Nel frattempo avevo trovato pure io una soluzione simile a quella che hai proposto tu.
Grazie davvero!