Periodic problems with double resonance