on one's mind
Tu prendila per i piedi, io per la testa.
You take her by the feet, I'll take her by the head.
— Kill Bill: The Whole Bloody Affair (2011)
Si può sapere che diavolo ti è passato per la testa, per Dio?
What the hell were you thinking, for God’s sake?
— Il paziente inglese (1996)
Gli stavano passando per la testa un milione di pensieri.
A million thoughts were running through his head.
Ho altri pensieri per la testa!
I have other things on my mind!
— Les choristes - I ragazzi del coro (2004)
Chissà che gli passa per la testa.
Who knows what's going through his mind.
— I sette samurai (1954)
Mi sono passati per la testa milioni di pensieri.
Millions of thoughts went through my mind.
— Senna (2010)