What would you call track and rail in Italian? Track is the whole thing while rail is a piece of metal e.g. on the right.
Is it binario for both?
You can use the word rotaia to refer to the single piece
from Wikipedia (page Binario ferroviario):
Il binario ferroviario è l'infrastruttura basilare nella costruzione di linee ferroviarie e tranviarie. Esso è una struttura composta da due profilati metallici in acciaio, detti rotaie...
Binario is referred to the whole track instead. In stations, binario also means "platform"
One more curious thing: you can use rotaie to refer to railroads in general (but ferrovie is more common).