these should really be solved with cs:substitute (and the addition of a label to autori-note and autoribibliografia. It's not just more elegant and much shorter, it will also make the style work better when you're e.g. looking to add support for books with an author and an editor.
http://citationstyles.org/downloads/specification.html#substitute
Let us know if you need help.