Elevator with Arduino Mega

Hi everyone,
I'm here trying to compile this code. It has to do with the final exam for the school I attend so it's really important to me. Can anyone help me solving the errors found? If you have any problems with the italian words in the code just ask me. Thank you.
Attachements: Schematic, PCB, code.ino

Ascensore.ino (20.3 KB)

What compiler errors have you got?

...R

  void funzione_piano2()

No one else is able to define a function inside another function. You are not special. It won't work for you, either.

Tool + Auto Format would have made that a lot more obvious.

How can I be that stupid?!
Thank you guys for your help.