Salt is not a mixture of (elemental) sodium and chlorine. It is a compound, with completely different properties. It consists of Na+ and Cl- ions, not Na atoms and Cl2 molecules, and its crystal structure has no relation at all to those of elemental sodium and chlorine.