Over time, in Italian, it came to denote a pie with a savoury filling with a top and bottom pie crust. Pasta is often even put inside the pie.
Language Notes
Derived from the word “pasta”, which means “dough”.
Painters used the word “pasticcio” to describe works of art that were a hodge-podge of blatantly imitative styles.