Having previously been a gymnast in his early years, Ercolani soon turned his attentions to football.[2] He started his youth career with USD Classe, before moving to Ravenna until 2012.[3] After a stint with Rimini, Ercolani moved to Forlì.[3] He was later signed on loan by Cesena, though I Bianconeri would choose not to sign the player.[4] In July 2016, having been scouted by David Williams a year prior, Ercolani completed a transfer to Premier League club Manchester United.[2][3] He remained with the English club until the start of 2021, appearing at U18, U19, U21 and U23 level; notably featuring in the EFL Trophy and UEFA Youth League.[5] Ercolani did train with the first-team squad on numerous occasions under both José Mourinho and Ole Gunnar Solskjær.[3]
During the 2019–20 season, having spent time out with an injury, Ercolani - on the advice of some of the club's coaches - completed his UEFA B coaching qualification.[6][7][8]
Carpi
On 8 January 2021, having previously extended his Manchester United contract until June 2021 in May 2020, Ercolani returned to Italy with Serie C side Carpi; penning terms until June 2022.[9][10][11] He made his senior debut on 20 January during an away match against Matelica, as he featured for the full duration of a 1–0 loss at Stadio Helvia Recina.[5] Further appearances arrived that month versus Sambenedettese and Feralpisalò.[5] Ercolani was sent off for the first time in senior football on 7 February against Imolese.[5] Following the 2020–21 season, Carpi was excluded from the Italian leagues due to debts, making him a free agent.
Catania
On 13 August 2021, he signed a contract with Catania for the term of one season with an optional second year.[12]
On 9 April 2022, he was released together with all of his Catania teammates following the club's exclusion from Italian football due to its inability to overcome a number of financial issues.[13]