Nick Pivetta rebounds from rough first inning as Phillies rally to defeat Cardinals