Electromagnetic form factors in the hypercentral constituent quark model