McLaren's Lando Norris almost qualified third at Imola but just exceeded the track limit as he finished seventh.