Part of the Sintra Parish extends into the foothills