You can relax and wear whatever is familiar and comfortable on the street at home. Morocco is very tolerant and welcoming to visitors, you’re not expected to act or look like a Moroccan. Longer shorts and shirts are fine for men. For women, it’s a good idea to bring a scarf to cover bare shoulders and arms in rural villages.