you are forgetting the most important point: human-oriented architecture...
Most traditional buildings in southern Europe are well built to resist heat: heavy walls with cantilevered rims (which the high summer sun angle can cast just enough shadow on the wall), stone floors, small deep receding windows with shutters, high ceiling heights (hot air doesn't make physical contact with you that fast), the ability to cross ventilate or use of the brilliant sash windows, especially at night when the (often sea) air is usually much cooler (this cold is then stored in the thermal mass and slowy released during the day) and lest not forget the narrow streets.
The problem comes with the so-called "modern" architecture. Most of which is incredibly stupidly designed with the sole purpose of realing in huge real estate profits at the detriment of the quality of life of its inhabitant. That is why all capitalistic economies without exception need mechanical solutions, whereas all traditional human-oriented architecture did not.
Perhaps it is time to change our priorities and learn to live with each other instead of only with money?