Advanced trapping of light in resonant dielectric metastructures for nonlinear optics