The Italian New Year's Eve celebration traditionally associated with eating lentils at midnight is called Capodanno.
Capodanno means “head of the year” and is the Italian name for the New Year celebration. Lentils are eaten because their small, round shape resembles coins, making them a symbol of wealth and prosperity for the coming year. They are commonly served with cotechino or zampone, kinds of Italian sausage.
The meal is a food tradition rather than a single officially prescribed national ceremony. Families and regions use different menus, and the timing may vary between New Year's Eve dinner and the meal after midnight. The prosperity symbolism is the important common thread.
Capodanno should not be confused with Ferragosto, the August holiday, or Pasquetta, the day after Easter. Another familiar Italian New Year custom is wearing red clothing or underwear for luck, but lentils are the specific food most strongly linked with financial fortune.