Upvote:3
There is a difference between the EU and the Schengen area. Both Hungary and Italy are Schengen members.
With a residence permit from one Schengen member you can enter the other Schengen states as if you had a short-stay visa, that is you can stay up to 90 out of 180 days, you cannot work there, etc.