I solved it by changing is_single to is_page in the last code I shared
Hi, I managed to solve the problem by going into the wordpress editor for each page and checking Hide title on the Neve menu on the right side.
For some reason the CSS code i used seem to work only with parent pages but there is this (annoying) workaround to hide titles in children pages.
If anyone is interested i solved by adding the following custom css
img {
image-rendering: -webkit-optimize-contrast;
}