The piston is not a perfect cylinder, but has a slightly truncated cone shape, with the narrowest part at the top. In fact, this is the area that reaches the highest temperature during operation and, therefore, expands the most. It is the same reason why the piston is also slightly elliptical, with a minor axis along the piston rod where, inside the piston, there is more material and, therefore, greater expansion when the temperature rises.
To ensure consistent performance that does not vary excessively with the rise in temperature, which in the combustion chamber, depending on the engine rpm, timing advance, load on the engine and external temperature, varies from 350° C to 400° C, the piston is made of aluminium alloy with high silicon content (18%, usually) which reduces expansion.