I agree with what was posted above. I would not wear shorts to dinner in Milan or Rome, but would in Como or Garda.
I think it is basically the same thing in the US -- you wouldn't go to dinner in shorts in Manhattan but it would be okay in Fort Lauderdale.