SANT LLORENÇ DE LA MUGA, Santa Maria del Palau, S-XII-XIII