Hi again Ludmilla,
No worries, I wasn't really clear enough. But that's pretty good to hear. I got a bit scared at first haha.
3wishes, thanks for your answer. I had the same situation once in Geneva while I was renewing my permit and I had to travel. At that time, I went to OCPM and they gave me a return visa on the same day (I had to pay, of course :P). I assume it's a standard thing but just wanted to make sure it's the same in Ticino. I guess I'll ask them directly then.
Thanks a million, everyone