The heat is only partially resultant from how close it is to the sun.  Venus is about twice as hot as it would be if it didn’t have its atmosphere holding it in.