In Portugal, if people trespass property, what are the legal implications?
Example 1: If a person opens my gate and enters my yard to knock on my door, is he trespassing?
Example 2: If a person enters my office building, passes by security without problem and wanders around the halls, is he trespassing?
Example 3: If a person enters an abandoned factory and passes through a door saying "Restricted Area", is he trespassing?
If any of the examples (or all 3) is considered trespassing, what might happen to the person, according to the Portuguese law?