São João da Madeira Small, densely built city in Aveiro district, historically known for hat and shoe manufacturing.