Fred grabbed his first international double to help Brazil overcome Italy in Salvador. Dante had opened the scoring for the hosts with Emanuele Giaccherini levelling matters for Gli Azzurri.
Neymar's fantastic free-kick and a powerful Fred effort restored and increased the hosts' advantage before Giorgio Chiellini pulled a goal back late on. Fred wrapped up the match, and the group, with a goal moments before the final whistle.
Brazil dominated proceedings in the first half with a large majority of the ball, but they failed to convert their possession into meaningful opportunities. The only notable action in the first half saw Brazil take the lead in first-half stoppage time.
Neymar whipped in a free-kick which was headed goalwards by Fred. Buffon pushed the ball out as far as Dante, who had the simple task of applying the finish. It was the Bayern Munich defender’s first international goal and hit Gli Azzurri with a sucker punch just before the half-time whistle.
After the break, Brazil continued to dominate possession but it was a bolt from the Italian blue that saw Cesare Prandelli’s side draw level. Mario Balotelli brilliantly flicked on to the advancing Giaccherini and the substitute galloped clear of the Brazil defence before driving an arrowed shot past Julio Cesar.
Italy were not level for long, thanks to Brazil’s No10. Neymar was felled by Christian Maggio in a dangerous position on the edge of the Italian box and the former Santos man stepped up to power a magnificent effort past a helpless Gianluigi Buffon.
Fred then extended the hosts’ advantage. He used his strength to shrug off a challenge by Giorgio Chiellini before composing himself and slamming a left-footed shot past Buffon.
Chiellini made amends by pulling a goal back following an Antonio Candreva corner, but Brazil's No9 rubberstamped the victory as he followed up a Buffon parry from a Marcelo shot.
Italy had applied some pressure in the closing stages but Fred's double helped his side secure top spot in Group A, meaning they will play Group B’s runners up on Wednesday in Belo Horizonte.