Infante's 2 homers lifts Marlins over Pirates