What is the Italian translation of 'chestnut'?

A chestnut / the chestnut = un castagno (or: una castagna) / il castagno (or: la castagna). They have both masculine and feminine words, with no exact difference.