I would like to have the following systems horizontally aligned (the misalignment is due to some of the equations having a fraction, others not). Basically, I want (for example) all the $q_1$ on the same line. Thanks in advance for your help!
Here it is the code
\begin{tcolorbox}[title={2. Calcolo $0+X\cdot a=b$}, colback=white,colframe=black!20,coltitle=black]
\eqal{&\hs{1}0&+X\cdot &\hs{1}a&=&\hs{1}b&\hs{.2}\implies&\hs{1}\delta\mathcal{L}^{ab}_{p/c,i}\\
&\left\{
\begin{aligned}
q_1^0&=0\\
q_2^0&=0\\
q_3^0&=0\\
q_4^0&=-\frac{T}{h}\\
P_1^0&=-\frac{TL}{h}\\
P_2^0&=0\\
P_3^0&=0\\
P_4^0&=\frac{TL}{h}
\end{aligned}
\right.&+X\cdot\hs{.2}
&\left\{
\begin{aligned}
q_1^a&=-\frac{1}{2L}\\
q_2^a&=\frac{1}{2L}\\
q_3^a&=-\frac{1}{2L}\\
q_4^a&=\frac{1}{2L}\\
P_1^a&=1\\
P_2^a&=-1\\
P_3^a&=1\\
P_4^a&=-1
\end{aligned}
\right.&=\hs{.2}
&\left\{
\begin{aligned}
q_1^b&=-\frac{X}{2L}\\
q_2^b&=\frac{X}{2L}\\
q_3^b&=-\frac{X}{2L}\\
q_4^b&=-\frac{T}{h}+\frac{X}{2L}\\
P_1^b&=-\frac{TL}{h}+X\\
P_2^b&=-X\\
P_3^b&=X\\
P_4^b&=\frac{TL}{h}-X
\end{aligned}
\right.\notag
&\hs{.2}&\hs{.2}\left\{
\begin{aligned}
\delta\mathcal{L}_{c1}^{ab}&=\frac{Lb}{Gs}\left(-\frac{1}{2L}\right)\left(-\frac{X}{2L}\right)\\
\delta\mathcal{L}_{c2}^{ab}&=\frac{Lh}{Gs}\left(\frac{1}{2L}\frac{X}{2L}\right)\\
\delta\mathcal{L}_{c3}^{ab}&=\frac{Lb}{Gs}\left(-\frac{1}{2L}\right)\left(-\frac{X}{2L}\right)\\
\delta\mathcal{L}_{c4}^{ab}&=\frac{Lh}{Gs}\left(\frac{1}{2L}\right)\left(-\frac{T}{h}+\frac{X}{2L}\right)\\
\delta\mathcal{L}_{p1}^{ab}&=\frac{L}{3EA}\left[1\left(-\frac{TL}{h}+X\right)\right]\\
\delta\mathcal{L}_{p2}^{ab}&=\frac{L}{3EA}\left(-1\right)\left(-X\right)\\
\delta\mathcal{L}_{p3}^{ab}&=\frac{L}{3EA}\left(1\cdot X\right)\\
\delta\mathcal{L}_{p4}^{ab}&=\frac{L}{3EA}\left[-1\left(\frac{TL}{h}-X\right)\right]\\
\end{aligned}
\right.
}
\end{tcolorbox}
Please note \hs{X} is \hspace{Xcm} (a newcommand*) and \eqal{X} is \begin{eqnarray} \left{ \begin{aligned} X \end{aligned} \right. \end{eqnarray}
\documentclass ...
and ending with\end{document}
with preamble loaded with only necessary package for compiling your code snippet. it seems that it contain errors, please check again.