In Italy, how do people greet each other when they meet for the first time (e.g., on the street)? What's a good response to that greeting if you're not from Italy or don't speak Italian fluently yet?

Italian greetings are split into formal and informal ones. So if you are in a formal context people...