\documentclass[11pt,a4paper]{article}
\usepackage[margin=2.2cm]{geometry}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{fontspec}
\usepackage{polyglossia}
\usepackage[none]{hyphenat}
\usepackage{microtype}
\usepackage{hyperref}
\usepackage{enumitem}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{array}
\usepackage{calc}
\usepackage{etoolbox}
\makeatletter
\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{}
\makeatother
\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}}
\makesavenoteenv{longtable}
\newcounter{none}
\definecolor{tesisquareblue}{HTML}{003A70}
\definecolor{tesisquareaccent}{HTML}{7A9A01}
\hypersetup{colorlinks=true, linkcolor=tesisquareblue, urlcolor=tesisquareblue}
\setdefaultlanguage{italian}
\setmainfont{Arial}
\setlength{\parindent}{0pt}
\setlength{\parskip}{0.7em}
\setlength{\emergencystretch}{3em}
\setcounter{secnumdepth}{0}
\setlist{itemsep=0.2em, topsep=0.3em}
\providecommand{\tightlist}{\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\providecommand{\pandocbounded}[1]{#1}
$highlighting-macros$

\begin{document}
\sloppy
$if(title)$
{\color{tesisquareblue}\LARGE\bfseries $title$ \par}
$endif$
$if(subtitle)$
{\color{tesisquareaccent}\large $subtitle$ \par}
$endif$
\vspace{1em}
$body$
\end{document}
