I know that the Italian states was occupied with the unification wars for a while, but with their close proximity to Africa it seems strange that they (and Italy after the unification) did not establish a colony or protectorate in Africa before 1866 when Italy annexed Massawa, especially considering that smaller countries such as, Portugal, Sweden and Denmark all had colonies in Africa before Italy and the Italian states.
The most important reason is that from the beginning of the European colonial period until unification Italy was made up of small states that were under foreign domination. Just as the age of discovery was getting started Italy was invaded by France, Spain and other countries in the Italian wars (1494 - 1559). These ended with Spain dominating Italy from 1559 - 1713, and subsequently Austria dominating it 1713 - 1796, ending with Napoleon's occupation. So during this period Italy was more like a colony of outside powers itself than an independent power able to establish its own colonies. During the 19th century prior to the date of 1866 that you give, Italian states were too preoccupied with overthrowing the Austrian domination that had been restored with the congress of Vienna 1815 and with the unification struggle to give a thought to foreign colonies.
It's an interesting question whether Italian states would have established colonies in Africa during the period that other European states were in the absence of foreign domination. I can't give an answer but there are several factors that would mitigate against it. Some relevant factors are the following:
So Italian states had weaker motivations than other European countries to establish colonies, even in the absence of foreign domination, prior to the national-prestige driven colonialisation of Africa in the late 19th century.