First spectroscopy of the 1S0 →3P0 transition in Lamb-Dicke confined magnesium atoms