Max Verstappen pulled a lap out of the bag to claim pole position for the Emilia Romagna Grand Prix, beating the McLarens and Ferraris to top spot with a remarkable recovery.