To long to be a comment:
Your code is just fine. Invisible part of line is consequence of pdf viewer artifact. For example with your code I obtain the following result in Sumatra pdf viewer:

Anyway, I suggest you the following small changes of your code (marked by % <---):
\documentclass[a4paper,12pt]{article}
\usepackage[demo]{graphicx}
\usepackage{array}
\usepackage{lastpage}
\usepackage{lipsum}
\usepackage[table]{xcolor}% http://ctan.org/pkg/xcolor
\usepackage{fancyhdr}
\usepackage[hmargin=2cm,top=4cm,headheight=65pt,footskip=65pt]{geometry}
\usepackage[hidelinks]{hyperref} % <--- moved to last place in preamble
\setlength{\parindent}{0.95cm}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[CE,CO,LE,LO,RE,RO]{} %% clear out all headers
\fancyhead[C]{%
\begin{tabular}{|m{3.0cm}|>{\centering}m{10.0cm}|>{\centering}m{2.5cm}|} % <---
\hline
codice di riparto
& \cellcolor{yellow}{TITLE \\ % <---
vediamo cosa c'è\\ ma poi cosa succede} % <---
& \tiny % <---
Pag. \thepage\ di \pageref{LastPage}\\
Data: 17/05/2013\\
Rev. 0 \tabularnewline
\hline
\end{tabular}
}
\thispagestyle{fancy}
\begin{document}
%\chapter{Chapter title}
%% add this if you want the fancy style also on the first page of a chapter:
\section{Section title}
\subsection{non lo so}
\lipsum[1-10]
\end{document}
Edit:
In comment you claim, that your problem gas source in size of page header. Let me add showframe package, which show your actual page layout. With it and small change of table width (that it will has width of text), the result is:

(red lines indicate page layout)
From above image clearly seen, that the height of page header much bigger than height of table. Above image is produced by the following MWE:
\documentclass[a4paper,12pt]{article}
\usepackage[demo]{graphicx}
\usepackage{array}
\usepackage{lastpage}
\usepackage{lipsum}
\usepackage[table]{xcolor}% http://ctan.org/pkg/xcolor
\usepackage{fancyhdr}
\usepackage[hmargin=2cm,top=4cm,
headheight=65pt,footskip=65pt]{geometry}
\usepackage[hidelinks]{hyperref} % <--- moved to last place in preamble
%---------------- show page layoutdon't use in a real document!
\usepackage{showframe}
\renewcommand\ShowFrameLinethickness{0.15pt}
\renewcommand*\ShowFrameColor{\color{red}}
%---------------------------------------------------------------%
\setlength{\parindent}{0.95cm}
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}
\fancyhead[CE,CO,LE,LO,RE,RO]{} %% clear out all headers
\fancyhead[C]{\setlength\arrayrulewidth{0.5pt}%
\begin{tabular}{|m{3cm}|
>{\centering}m{\dimexpr\linewidth-5.5cm-6\tabcolsep-4\arrayrulewidth}|
>{\centering}m{2.5cm}|} % <---
\hline
codice di riparto
& \cellcolor{yellow}{TITLE \\ % <---
vediamo cosa c'è\\ ma poi cosa succede} % <---
& \tiny % <---
Pag. \thepage\ di \pageref{LastPage}\\
Data: 17/05/2013\\
Rev. 0 \tabularnewline
\hline
\end{tabular}
}
\thispagestyle{fancy}
\begin{document}
\section{Section title}
\subsection{non lo so}
\lipsum[1-10]
\end{document}
\setlength{\headheight}{90pt}, but I'd like to find a more universally automatic way to do... – Memmo Oct 22 '19 at 08:57fancyhead(moreover, not easy!) – Memmo Oct 22 '19 at 10:42