Messaggio di errore 'OUTPUT' was not declared in this scope

Try changing

#include "Arduino.h"

to

#include <Arduino.h>

and see if it makes a difference.

"" is for local include files, <> is for library files