VLT/X-shooter spectroscopy of the GRB 120327A afterglow