Soldato
Nowadays peanuts are frowned upon so don’t take those.
Yeah to be on a safe side better not bring any nuts just in case there's someone with nut allergy on board. Generally there's no issue with bringing your own food on board though you may get asked a few question when going through security. Once I was asked about a banana in my bag and once my gf's bag was send to the side 3 times! because of an apple. Even the guy checking her bag was annoyed at the guy at the scanner for sending to the side after he told him twice it was just an apple!
Food is fine aslong as it's consumed before you depart the aircraft as some countries have strick rules on what can be brought in. Any left overs we leave on the plane.
Just bin it when they go with the bin bag before landing or when you get into the terminal building. Hate when people leave their crap on their seats.