thank you for using our platform and sharing your situation with us.
As for your question:
You can apply in Italy for a visa to work in Germany or study but you cannot apply for a permanent visa from outside Germany.
So the best way would be either to get a job in Germany or continue your further studies in Germany.
I hope this helps you, if you need further assistance please feel free to use our community.