Ferrari is preparing to enter the electric vehicle segment, building on its legacy of high-powered gasoline vehicles.