Although both sides of the pass are in the same country, Italy, you are required to pass through customs at the top.
Both sides of the passage are in Italy, but you must pass through customs at the top.