Magalhães, Carlos Pires, Portugal