Although both sides of the pass are in the same country, Italy, you are required to pass through customs at the top.
Even though both sides of the border are located within Italy, you are obligated to go through customs at the top.