Coming from Europe, can I work while doing a Master Thesis in USA? I understand this question is not strictly academic, but what I hope to find here is some feedback from someone who already had similar experience.

I live and study Electronics Engineering in Parma, a small town in northern Italy. I'm considering to move in order to get my Master Thesis done.
Now, as far as I understand, in USA the masters are somewhat different from what we have here in Europe. To the point that "Master Thesis" is not even a thing there, in fact I'm not able to find proposals online.

That said, I have friends who have done "gradated level" work there and validated it as a thesis back in Europe. So let's just assume I can get a place somewhere and be able to go there.

I immediately understand I will have to pay for my staying and the chances to get a salary are really narrow.

So, as per the title: can I work there (like weekend jobs) while studying?

Any help would be appreciated.
Most often, visitors to the US study under an F1 visa.

F1 visas do not permit off-campus work during the first year, and after the first year off-campus work is limited to work related to the degree; on-campus work is allowed but limited to 20 hours per week.

Schools you apply to will be familiar with having international students attending; you should direct questions about employment opportunities to the programs and schools you may apply for; any larger institution likely has a dedicated office for international student needs and questions.