Perhaps from capanna (“hut”), a toponymic habitational surname for someone who lived in a hut.
Capanna m or f by sense