Rule reminder
With 'mentre', both actions are usually ongoing → both in imperfetto. If one action interrupts the other, the ongoing one uses imperfetto and the interrupting one uses passato remoto.
Mentre i bambini _____, le mamme chiacchieravano nel cortile.