Stellar evolution and variability in the pre-ZAHB phase