From street elegance to track dominance: the cars that turned Ferrari’s racing dreams into a profitable empire.