Probably from Latin pedis, pēs (“foot”).
Practice speaking and memorizing "pedante" and many other words and sentences in Italian.