Lionel Messi produced a virtuoso show with two goals as Barcelona moved up to third place in La Liga with a 3-2 win at Athletic Bilbao.
Barca went behind inside three minutes when Inaki Williams fired home from inside the box.
But Pedri quickly levelled and Messi, finding arguably his best form of the campaign, struck either side of the interval to ensure Iker Muniain's last-minute effort was no more than a consolation.
Bilbao were under the command of new head coach Marcelino for the first time after Gaizka Garitano's dismissal last weekend.
Marcelino had the perfect start when Raul Garcia freed Williams, who was inside his own half when the ball was played and advanced into the Barcelona box.
Williams easily cut inside Clement Lenglet's half-hearted challenge and finished with a firm right-footed shot.
Barcelona levelled on 14 minutes and it was the signal for them to take control.
Messi's deep cross was allowed to travel unchecked by goalkeeper Unai Simon and Frenkie De Jong hooked the ball back for Pedri to head into a gaping net.
The visitors took the lead after 38 minutes when Messi found Pedri and followed his pass to stride onto a cute back heel from the Spaniard.
Simon had strayed out of position and Messi slipped the ball inside the near post.
At the age of 18 years and 42 days, Pedri became the youngest player to score and assist in a La Liga game.
Messi was really in the mood and struck the frame of the goal from 20 yards before he extending the lead on 61 minutes.
Jordi Alba found Griezmann and Messi, having superbly timed his run to the near post, swept home his square pass off the underside of the crossbar.
Messi was denied a hat-trick again as he hit the post for a second time as Barcelona sought to kill off the contest.
Muniain pounced on a Messi error to give Bilbao hope with a crisp finish, but Barcelona survived to reduce the gap on league leaders Atletico Madrid - who have two games in hand - to seven points.