Ranieri is the product of ACF Fiorentina youth teams and started playing for their Under-19 squad in the 2015–16 season. Late in the 2017–18 Serie A season he made several bench appearances for Fiorentina's senior squad, but did not see any time on the field.