I’m from central Italy, in my city temperatures regularly reach 40 degrees in August. With the recent heatwave we reached it in mid July, I cope by being indoors and locking myself in with AC on and drinking ice cold water, and when I can (and I fortunately can afford so) going on vacation in colder, still close, places, something like Abruzzo or Molise if you know central Italy.