Italian nationality.
My company accountant told me that social security is to be paid where the company is, so i'd be paying that to Switzerland providence even if I reside abroad because I'd still be working remotely for a Swiss company. What I can get is just the bare bone taxes, but i will need to pay them in the residence country.
Anyway living out of Switzerland with Swiss social security isn't that bad, I may consider the option.
So the conclusion is that taxes are paid where you reside and social security contribution are paid where the company is, it doesn't sound complicate in the end, indeed it sounds rather logic and convenient. Another valuable information to record in this forum

.
Thanks.