\documentclass{memoir}
\captionnamefont{\small}
\captiontitlefont{\small}
\captionnamefont{\bfseries}
%\usepackage{epsdice}
\usepackage{randomwalk}
\usepackage[many]{tcolorbox}
\usepackage[polutonikogreek,italian]{babel}
\usepackage{refcount}
\usepackage{fontspec}
\usepackage{amsmath}
\usepackage[colorinlistoftodos]{todonotes}
\usepackage{pifont}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{amscd}
\usepackage{geometry}
\usepackage{float}
\usepackage{tikz}
\usepackage[colorlinks,linkcolor=black]{hyperref}
%\usepackage{adforn}
\usepackage{exercise}
\usepackage[framemethod=tikz]{mdframed}
\usepackage{enumitem}
\setitemize{noitemsep,topsep=2pt,parsep=0pt,partopsep=0pt}
\input{page_style}
\usetikzlibrary{calc}
\newtheorem{defi}{Definizione}
\newtheorem{teo}{Teorema}
\addto\captionsdutch{%
\renewcommand{\appendixname}%
{Appendice}%
}
\renewcommand{\appendixpagename}{Appendici}%
\renewcommand\appendixtocname{Appendici}
\renewcommand*\cftappendixname{\appendixname}
\newcounter{tip}
\input{indice}
\input{title3}
\input{boxes1}
\begin{document}
\titleTMB
\pagebreak
\pagenumbering{roman}
\newgeometry{top=0cm}
\tableofcontents*
\newpage
%\StartMark
\restoregeometry
\pagenumbering{arabic}
%bibliografia
\include{contenuti}
\include{bibliografia}
\end{document}