Born in Gazzaniga, the Province of Bergamo, Foglio started his career at Atalanta Bergamo. After farmed to Serie C1 club Fiorenzuola for 2 seasons, he was included in Atalanta squad in 1996–97 Serie A season. Foglio played his first Serie A match on 15 September 1996, a 2–2 draw with A.C. Fiorentina. He replaced Gianluca Luppi in the 16th minutes. He played 44 league matches overall for the Lombardy side in 2 seasons. Atalanta relegated in 1998, and he was swapped with Sebastiano Siviglia of Hellas Verona. He won Serie B champion with the Veneto club, but then bought back by Atalanta and re-sold him to Reggina in co-ownership deal, which the team also won promotion to Serie A by finished 3rd in the Italian second division. He just played 15 league matches for the south Italy side. At the end of season, Atalanta bought him back again and sent him to A.C. Venezia in another co-ownership deal, which the team recently relegated from Serie A. Again he was the regular starter for the Venice side, and won promotion to Serie A again by finished 4th. In June 2001, Atalanta bought him back and sent back to Verona for Chievo, another promoted team.