I just learned you can't increase the value of an attribute from an item with materia beyond a certain limit. Example - helmet gives +4 strength, I add a +1 strength materia but after melding the bonus is a red +0. The materia is wasted.

So, my question is as follows:
How can I learn what is the attribute limit for each gear piece?