17.3.5 Sleep Mode Operation
With the exception of interrupts and input synchronization, all pin configurations are independent of the Sleep mode. Peripherals connected to the ports can be affected by Sleep modes, described in the respective peripherals' documentation.
The port peripheral will always use the main clock. Input synchronization will halt when this clock stops.