Here's the answer:
“sei uscito di senno?”
Watch a real native speaker say it:
Here's how it sounds in a textbook:
You could also say:
- siete usciti di senno?
Fun fact: the hundreds of thousands of people learning Italian with Memrise get this phrase correct 97.26% of the time!