Rotate hinge

Good evening, I should make button covers, but I can’t create the hinge, when I rotate the sections they end up fitting into each other instead of rotating freely. how can I do it? thanks to all. Mirco . I attach the file,
thank you
10 nov 025 per rhino.3dm (10.8 MB)

You should then change your design so that this collision does not happen. For example, cut away this vertical part of the grey part.

ok thank you, I do it again, Mirco