Enzo Maresca’s side led through Joao Pedro’s near-post finish but were stunned after the break to damage their hopes of automatic qualification