It appears in
these photos from the private audience at Castel Gandolfo, that Queen Sofia was wearing white, but no head covering. However, during and after the Inauguration Mass, Queen Sofia was wearing a very beautiful mantilla:
Wow! What gorgeous, gorgeous lace!
Since the meeting at Castel Gandolfo was private, I could see the head covering being optional.