Juventus progressed to the Champions League last 16 after a Cristiano Ronaldo goal and a late header from substitute Alvaro Morata gave them a comeback 2-1 home win over Hungarians Ferencvaros on Tuesday.
The Italian champions made heavy weather of the clash against Ferencvaros after beating them 4-1 in the reverse fixture, and they often looked lethargic against a packed visiting defence.
Paolo Dybala missed their best chance in the first half when goalkeeper Denes Dibusz blocked his close-range shot in the 15th minute and the home side were punished four minutes later by a quality goal.
Myrto Uzuni fired Ferencvaros ahead with a delightful touch which beat home keeper Wojciech Szczesny after Tokmac Nguen had shaken off two markers and clipped a perfectly weighed cross into the heart of the penalty area.
Ronaldo, who barely featured in the opening half-hour, had a goal correctly ruled out for offside before he equalised in the 35th minute with a sweet, left-foot shot from 20 metres which fizzed into the back of the net inside the near post.
Juventus pressed in the second half but it looked like they would have to settle for a draw and leave themselves with work to do in order to qualify after Federico Bernardeschi and Morata hit the woodwork.
However, a valiant performance by the visitors was undone in stoppage time as Morata’s downward header from eight metres squeezed under Dibusz’s body and over the line after a fine cross from the right by Juan Cuadrado.
With two games remaining, the result left Juve second in Group G on nine points from four matches, three behind leaders Barcelona who also booked a knockout-stage berth with a 4-0 win at Dynamo Kyiv.