Welcome to our community and thank you for your question.
As far as I can see, it is possible for you to get married in Italy as long as you can provide the required documents. I assume that you already read the other threads about this topic here on Wefugees, didn't you?
It can be risky for asylum seekers to get married because they have to give their documents (like the passport) to authorities. In case their asylum application gets rejected they can get deported more easily (because authorities need to have a valid proof of identity like the passport).
Since I'm not that familiar with the Italian asylum system and other legal framework, I would recommend you to get in touch with a lawyer. It's always a good idea to have an expert take a close look at your case especially if there is a lot at stake like in your case. But keep in mind that it's not mandatory to have a lawyer in order to marry.