Sofia Vergara and Joe Manganiello got a surprise home visit from a guy pretending to be a family friend – except he was an uninvited stranger, so he was arrested for trespassing … Our sources say the man managed to make his way into the gated community around noon last week where the Hollywood couple live, and was approached by security guards who roasted him. We are told the guy said he was looking for Sofia’s house and pretended to be friends with his son, Manolo. Our sources say security felt the man’s story was shady, so they reached out to Joe … who told them he didn’t know the guy and was not a friend of family. We were told that security asked the man to leave the community, but he allegedly refused, so cops were called to the scene. Our sources say the officers gave him one last chance to leave peacefully but he refused again … so he was eventually arrested and sentenced for trespassing. It’s unclear how close he got to Sofia and Joe’s house, but clearly… too close for comfort.