Welcome to our community and thank you for your question!
In general it is possible for asylum seekers to marry if you can provide the required documents.
To get some more information about the procedure, please check out these threads here on Wefugees:
If you manage to get married to an EU-citizen, you can apply for a residence permit at the Italian aliens department afterwards. As soon as you received the residence permit you can withdraw your asylum application. I would advise you to stay in the asylum procedure until then because otherwise your stay in Italy would be "illegal". If you withdraw the asylum application before receiving a residence permit you might get deported in the meantime.