Seasonal dynamics in an SIR epidemic system