Gaglioffo
ɡaʊnɜ vɪtsbɔlt ʃpasfoːɡəl
In German Gauner / Witzbold / Spaßvogel
A playful but somewhat pejorative term for a person who is a bit rough around the edges, a bit of a rascal or a buffoon, often with a mischievous or ironic undertone.
Example
"È un gaglioffo, ma gli voglio bene."