\documentclass [11pt, a4paper]{article}

\usepackage[main= italian, english]{babel}
\usepackage{enumitem}
\usepackage{forest}
\usepackage{graphicx}
\usepackage[hidelinks]{hyperref}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\usepackage{pxfonts}
\usepackage{textcomp}
\usepackage[normalem]{ulem}
\usepackage{geometry}

\geometry{
a4paper,
top=30mm,
}

\forestset{qtree/.style={for tree={parent anchor=south,
           child anchor=north,align=center,inner sep=0pt}}}
\lstset{
    upquote=true,
    inputencoding=utf8,
    extendedchars=true,
    literate={à}{{\`a}}1,  % Accept à in `lstlisting` environments
    showstringspaces=false
}
\lstdefinestyle{SQLu}{
    language=SQL,
    basicstyle=\small\ttfamily,
    keywordstyle=\bfseries,
    moredelim=[is][\underbar]{_}{_},
    keepspaces=true
}
\selectlanguage{italian}

\setcounter{section}{-1}
%\newcommand{\folder}{primo_compitino}
\newcommand{\folder}{secondo_compitino}


% First page information
\title{\textbf{Basi di dati prof. Ghelli}\linebreak\textit{``Una cervecita fresca"}}
\author{Davide Testa 613565}
\date{2020-06-01}

\begin{document}
    \maketitle % Insert the title, author and date
    \section{Descrizione di massima del dominio (testo)}\label{sec:testo}
        \input{\folder/testo.tex}
    \clearpage
    \section{Descrizione del dominio}\label{sec:dominio}
        \input{\folder/dominio.tex}
%    \clearpage
    \section{Schema concettuale}\label{sec:schema-concettuale}
        \begin{figure}[hb]
          \centering
          \includegraphics[width=\linewidth]{\folder/schema_concettuale.pdf}
          \caption{Schema concettuale in formato grafico}
          \label{fig:schema-concettuale}
        \end{figure}
        \input{\folder/schema_concettuale.tex}
    \clearpage
    \section{Schema logico}\label{sec:schema-logico}
        \begin{figure}[htb]
          \centering
          \includegraphics[width=\linewidth]{\folder/schema_logico.pdf}
          \caption{Schema logico in formato grafico}
          \label{fig:schema-logico}
        \end{figure}
        \input{\folder/schema_logico.tex}
    \clearpage
    \section{Interrogazioni}\label{sec:queries}
        \input{\folder/queries.tex}
    \vskip2pc
    \section{Piani di accesso}\label{sec:piani}
        \input{\folder/piani_di_accesso.tex}
\end{document}
