Fiorentinas Gaetano Castrovilli havde et grimt sammenstød med målets stolpe, da holdet vandt med 2-1 over Genoa og dermed gik i top fire i Serie A.