Text this: A topological analysis of p(x)-harmonic functionals in one-dimensional nonlocal elliptic equations