Catching spiral - S0 transition in groups. Insights from SPH simulations with chemo-photometric implementation