SANT’AGATA BOLOGNESE, Italy — The boys spilling out of a grade faculty in an Italian village went silent because the Lamborghini approached, its throaty 12-cylinder engine trumpeting its presence. Then, because the wedge-shaped beast rumbled by the schoolyard, they broke into cheers, pumping their fists and leaping into the air.

It was a spontaneous expression of the emotion that the Italian sports activities automotive maker evokes and that motivates those that can afford it to shell out a whole lot of 1000’s of {dollars}, in some circumstances tens of millions, to get one.

However Lamborghini, Ferrari and a handful of different corporations that make so-called supercars — a loosely outlined class of automobiles that value a whole lot of 1000’s of {dollars} and supply race-car-level efficiency — face an existential risk. The auto trade is shifting inexorably towards battery energy, a development that these carmakers can’t escape. They’re now wrestling with how one can design electrical sports activities vehicles that can encourage the identical ardour and command the identical costs.

Tesla has already challenged Ferrari’s and Lamborghini’s claims of being on the slicing fringe of automotive design. Tesla pioneered electrical automobiles, and its Mannequin S Plaid can speed up to 60 miles per hour in simply over two seconds, sooner than any Ferrari or Lamborghini, in accordance with testers at Motor Pattern.

“For the supercar makers, the query is will they be capable to even be tremendous in main the world in electrification?” mentioned Karl-Thomas Neumann, a former chief govt of the German carmaker Opel who’s on the board of OneD Battery Sciences, a California provider of expertise for electrical vehicles.

“In case you are simply constructing a supercar and placing a Ferrari emblem on it, that’s not sufficient,” Mr. Neumann mentioned. And the corporate is “very late” to the electrical automotive recreation, he added.

Ferrari has supplied a plug-in hybrid, the Stradale, since 2019 however received’t unveil a totally electrical automotive till 2025. The corporate, primarily based in Maranello, Italy, elaborated on its plans in an occasion for buyers this month, saying it’ll construct electrical motors and different key parts itself, in line with its custom of workmanship and exclusivity.

“An electrical Ferrari will probably be a real Ferrari,” Benedetto Vigna, the chief govt, mentioned in an interview forward of the presentation.

Ferrari additionally mentioned that, according to custom, it might borrow expertise from its formidable racing crew. However the firm doesn’t compete in Formulation E, the reply to Formulation 1 for electrical vehicles. Mr. Vigna declined to say whether or not there are any plans to take action.

Lamborghini, which is owned by Volkswagen and primarily based within the village of Sant’Agata Bolognese, will supply its first plug-in hybrid in 2023 and a totally electrical automotive someday within the second half of the last decade.

The mystique of the Italian supercars is deeply intertwined with the sound and the facility of inner combustion engines. The famend Austrian conductor Herbert von Karajan was thought to have as soon as mentioned a Ferrari 12-cylinder engine achieved “a concord no maestro may play.”

Electrical motors are inherently sotto voce.

“Sound is a crucial asset to those automobiles,” mentioned Andy Palmer, a former chief govt of Aston Martin who’s now the chief govt of Change Mobility, a maker of electrical buses. “Does the sports activities automotive as we all know it live on in case you’re not in a position to differentiate primarily based on sound?”

The query is of curiosity to greater than only a rich few. Italian pleasure and status are at stake.

Whereas a lot of the remainder of the Italian auto trade has change into practically irrelevant — Fiat’s market share in Europe has fallen to only 4 % — supercar devotees routinely shell out a whole lot of 1000’s of {dollars} for Ferraris and Lamborghinis and sometimes wait a yr for supply. Essentially the most unique fashions have value tags within the tens of millions.

The 2 manufacturers signify Italy’s industrial prowess, which is commonly overshadowed by its political dysfunction.

Ferrari and Lamborghini are additionally very worthwhile. Ferrari, which is traded on the inventory alternate however managed by Italy’s highly effective Agnelli household, reported a internet revenue of 240 million euros, or $250 million, within the first three months of 2022 on gross sales of $1.2 billion.

Lamborghini contributed €180 million in pretax revenue to Volkswagen’s backside line through the first quarter on gross sales of €592 million. Final yr Ferrari offered 11,000 vehicles, whereas Lamborghini offered 8,300. The 2 corporations’ double-digit returns on gross sales are unusually excessive for the auto trade, which has notoriously slim revenue margins.

Change is clear within the area close to Bologna, rolling countryside generally known as the Motor Valley. Ferrari and Lamborghini are a half-hour drive aside.

Final yr Ferrari broke with custom when it named Mr. Vigna chief govt. Although he’s a automotive buff who, at age 14, sneaked away from residence for a number of days to attend a Formulation 1 race, Mr. Vigna had by no means labored at a automotive firm. He was beforehand a high-ranking govt at STMicroelectronics, a maker of semiconductors. His appointment signaled the significance of electronics to Ferrari’s future.

“We would have liked a C.E.O. with a deep understanding of the applied sciences which might be altering not solely the auto trade however the wider world,” John Elkann, the Agnelli household scion and Ferrari chairman, advised buyers this month.

Mr. Vigna, whose prospects at STM included Apple and Tesla, brings to Ferrari deep connections from the tech world. “If I would like some contacts with a possible companion or provider, it’s simple for me to succeed in the appropriate degree of individuals,” he mentioned.

The shift to batteries presents Ferrari and Lamborghini with a number of challenges. One attribute of supercars is their extraordinarily low profile, which reduces wind resistance. The automotive’s roof is barely waist-high. The identical silhouette is a problem to attain with batteries, which generally sit below the passenger compartment.

One other attribute is exclusivity. Patrons might simply wait a yr for supply. The vehicles are collectors’ gadgets that always enhance in worth with time. Classic Ferraris have offered for greater than $20 million.

However does a Ferrari nonetheless really feel unique when a Tesla is quicker? Mr. Vigna argued that a couple of hundredths of a second’s distinction in 0-to-60 acceleration was not the be-all and end-all. He likened driving a Ferrari to driving a curler coaster. It’s not a lot the pace as the feeling.

“Ferrari is expertise,” he mentioned.

Electrical vehicles are recognized for his or her easy acceleration and their silent trip. That’s not what consumers of a Lamborghini Aventador or Ferrari SF90 Spider pay upward of $500,000 for. They need a sense of uncooked energy.

A Lamborghini driver sits inches from the street within the low-slung cockpit, conscious of each imperfection within the pavement. The huge engine is simply behind the seats, thundering within the passengers’ ears. The steering is exact however stiff, demanding intense focus. It’s a complete sensory expertise that makes a site visitors circle in an Italian village really feel like a decent curve on the Monaco Grand Prix.

“The automotive provides you the sensation that you’re, as a driver, a hero,” mentioned Rouven Mohr, the chief expertise officer of Lamborghini. Recreating that feeling in an electrical automotive, he mentioned, “is our fundamental job.”

Batteries supply some benefits to supercar designers. Electrical vehicles don’t want lengthy drive shafts and hulking transmissions. Electrical motors are a lot smaller than inner combustion engines. The parts could be organized to optimize weight distribution and dealing with.

Every wheel can have its personal electrical motor and be programmed to function at barely totally different speeds to maximise dealing with round a curve. Lamborghini is taking a look at equipping vehicles with synthetic intelligence that might be taught a driver’s preferences and driving type, and regulate dealing with and efficiency accordingly.

“The automotive understands what you need,” Mr. Mohr mentioned.

Up to now, the unique clientele for supercars shouldn’t be clamoring for an electrical automotive. “Nobody has supplied them one thing the place they are saying, ‘Oh, that is even cooler than my present combustion engine automotive,’” Mr. Mohr mentioned.

Different corporations are attempting, although to date they’re producing electrical supercars in very small numbers. Rimac Automobili, a Croatian agency whose buyers embody Porsche, Hyundai and Goldman Sachs’s private-equity unit, has unveiled the Nevera, an electrical sports activities automotive that the corporate claims can speed up from 0 to 60 m.p.h. in lower than two seconds.

Lotus Automobiles, a British producer managed by Zhejiang Geely Holding Group of China, sells an electrical mannequin, the Evija. That and the Nevera have value tags nicely above $2 million. Lotus, whose different fashions value a lot lower than Ferraris or Lamborghinis, has mentioned it’ll promote solely electrical vehicles starting in 2028. (Enjoyable truth: Lotus equipped key parts for Tesla’s first manufacturing mannequin, the Roadster.)

Different shut rivals are shifting at about the identical pace. In Britain, Aston Martin plans to supply its first all-electric automobile in 2025. McLaren, additionally British, isn’t anticipated to supply a mannequin powered solely by batteries till 2028.

Ferrari and Lamborghini usually are not planning to cease making vehicles with inner combustion engines. However they’re below rising stress from regulators to chop gasoline consumption, particularly in Europe. A two-seat Lamborghini Aventador coupe will get a mean of 11 miles to the gallon, or half the gasoline financial system of a full-size pickup truck, in accordance with the Environmental Safety Company. (Aficionados argue that most individuals drive their supercars just a few thousand miles a yr, so gasoline consumption is low.)

Rich youthful consumers might not wish to be seen in a automotive that’s so extravagant.

“We’re getting youthful prospects on daily basis,” mentioned Stephan Winkelmann, the chief govt of Lamborghini. They need efficiency, he mentioned, but in addition “peace of thoughts.”