Resilience in the mediterranean cities: an example of adaptation and risk reduction working on building types