The classical Korteweg capillarity system: geometry and invariant transformations