Global periodicity conditions for maps and recurrences via Normal Forms