Khouma Babacar's scrambled late winner earned Fiorentina a 2-1 victory over Inter to take control in the race for Serie A's final Champions League qualification place.
Substitute Babacar turned in a rebound after Samir Handanovic fumbled a shot by former Inter striker Mauro Zarate, with Borja Valero having headed in La Viola's leveller in a match that saw three red cards produced by referee Paolo Mazzoleni late on at Stadio Artemio Franchi.
After Alex Telles made an early goalline clearance, Inter, who ended the game with nine men, took an undeserved lead in the 26th minute through Brozovic, the Croatian neatly finishing off a precise pullback by Rodrigo Palacio.
Fiorentina's equaliser arrived on the hour mark, Valero marginally beating the offside trap to head in a deflected cross from Josip Ilicic.
Telles, Zarate and Geoffrey Kondogbia were all shown late red cards, with the result ensuring Paulo Sousa's men climb to third in the table, with Inter remaining in fifth as a result of their defeat.
Former Fiorentina coach Roberto Mancini recalled Miranda after the defender served a one-game ban, while the hosts were without the injured Tino Costa and the suspended Matias Fernandez.
La Viola had won their last three meetings with Inter and they almost got off to the perfect start when Ilicic strode forward and hit a firm drive, with Slovenia international goalkeeper Samir Handanovic saving smartly with his legs from his compatriot's effort.
Fiorentina were dominating the early exchanges and almost took the lead after 14 minutes when Ilicic beat Handanovic with a low strike, but Telles got back to clear the effort off the line.
Jeison Murillo then had a terrific chance for Inter, but his diving header flew well wide of the post.
Fiorentina could have had a penalty in the 21st minute, but when Federico Bernardeschi got clear and fell under a challenge by Miranda after a smart one-two with Nikola Kalinic, Mazzoleni awarded a foul against the attacker.
That decision proved key as Inter soon took the lead against the run of play. Kondogbia freed Palacio in the box and Brozovic ran on to the cutback to slam a shot high into the net.
Fiorentina came close to an equaliser on the stroke of half-time, Handanovic clawing away a looping header by Matias Vecino from underneath the crossbar.
The hosts, unbeaten in their last four matches, scored the goal their excellent play deserved just before the hour-mark, Valero nodding home a deflected Ilicic cross at the back post.
Fiorentina then had another big penalty appeal when Telles handled a cross in the box, but again referee Mazzoleni was unmoved.
Inter had won just one of their previous six league games and Mancini's men rarely threatened in this one. After Telles was received a second yellow card for bringing down Bernardeschi, Fiorentina found a deserved winner.
Handanovic spilled Zarate's shot at the feet of Babacar and the striker bundled the ball home with the aid of a deflection, Zarate later sent off for clashing with Murillo.
Kondogbia was also shown a red card after the final whistle for sarcastically applauding the referee to compound a miserable match for Mancini's men.
Get the best features, fun and footballing frolics straight to your inbox every week.
Thank you for signing up to Four Four Two. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.