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