TORRELLES DE FOIX, Santa Maria, S-XII-XIII