The production of elements heavier than Iron takes place by adding neutrons to the atomic nuclei. These neutral particles do not feel any electrical repulsion from the charged nuclei. They can therefore easily approach them and thereby create heavier nuclei. This is indeed the way the heaviest chemical elements are built up.
There are actually two different stellar environments where this process of "neutron capture" can happen.
The ultimate source of energy that lifts and transports the atmospheric water (vapor and cloud) to its highest elevations is solar energy. It is the sun that gives enough energy to water for its evaporation.