avere la testa sulle spalle

Etymology
lit. 'to have the head on the shoulders'.

Verb

 * 1) to have a head on one's shoulders