Eventi: Strutture, funzioni, complessità