Hi Davide,
From startup of the supply (0v) till about 1.8v the MCU is in an undefined state, above 1.8v the I/O pins will be in the default configuration which is input with pull-up enabled. The default state can’t be controlled trough software, but you could add a stronger external pull down to override that state.
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer