\documentclass{scrbook}
\KOMAoptions{paper=a4, fontsize=12pt, chapterprefix=true, twoside=semi, DIV=classic, parskip=half}
\usepackage[svgnames, dvipsnames, table]{xcolor}

\usepackage{CJKutf8}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{microtype}
\usepackage{tcolorbox}
\usepackage{graphics}
\usepackage{booktabs}
\usepackage{tabularx}

\tcbuselibrary{skins,breakable}
% 3
\sffamily
\linespread{1.25}
\setfootnoterule{0.8\textwidth}
%
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\automark[section]{chapter}
\ofoot*{}
\cfoot*{\pagemark}
%
\setkomafont{pagehead}{\color{RoyalBlue}\slshape\bfseries}
\setkomafont{caption}{\itshape}

% Index Page
\usepackage{imakeidx}
\begin{filecontents}[overwrite]{myindexstyle.ist}
headings_flag 1
heading_prefix
 "\\bigskip\\par\\penalty-50\\textbf{"
heading_suffix
 "}\\\\[\\medskipamount]"
symhead_positive "Symbols"
symhead_negative "symbols"
numhead_positive "Numbers"
numhead_negative "numbers"
delim_0 ",\~"
\end{filecontents}
\makeindex[intoc, options=-s myindexstyle]

% PDF Links, Bookmark, and Importing Pages
\usepackage{hyperref}
\hypersetup{
    colorlinks,
    linkcolor = black,
    urlcolor = blue!90!Green,
    citecolor = blue!90!Green,
    pdfauthor = Benjamin Loi,
    pdftitle = How to Reproduce this Book Exactly with LATEX,
    pdfsubject = v1.0.2,
    pdfkeywords = {Mathematics, LATEX}
}
\usepackage[open,openlevel=1,atend,numbered]{bookmark}
\usepackage{pdfpages}


% Chapter Heading (and related)
\renewcommand*{\chaptermarkformat}{\chapapp~\thechapter~--~}
\addtokomafont{chapterprefix}{\itshape\color{white}}
\renewcommand*{\chapterformat}{\raggedleft\colorbox{RoyalBlue}{\parbox[b][2.8em]{2.8em}{\vfill\centering{\large\chapapp}\\[-0.4em]\thechapter\vfill}}}
\renewcommand*{\chapterheadstartvskip}{\addvspace{2em}}
\usepackage{pgfornament}
\renewcommand*{\chapterheadendvskip}{\pgfornament[width=\textwidth]{88}\par}
% Section Heading
\renewcommand*{\sectionformat}{\colorbox{black}{\textcolor{white}{\thesection\autodot}}\enskip}
\renewcommand*{\sectionlinesformat}[4]{\makebox[0pt][l]{\rule[-\fboxsep-\fboxrule]{\textwidth}{\fboxrule}}#3\parbox[b]{0.85\textwidth}{\linespread{1}\selectfont#4}}


%%
\newcommand{\jp}[1]{\begin{CJK*}{UTF8}{min}#1\end{CJK*}}
\newcommand{\bul}[1]{\underline{\textbf{#1}}}
\newcommand{\rarr}{$\rightarrow$}
\definecolor{ForestPrimary}{HTML}{2E5339}
\definecolor{ForestLight}{HTML}{EAF2EB}
\newtcolorbox{ricorda}[1][]{
  colback=Green!20, 
  colbacktitle=Green!10,
  coltitle=black,
  colframe=Green,
  fonttitle=\bfseries,
  title=Ricorda,
  boxrule=0pt,
  leftrule=1ex,
  left=0pt,
  right=0pt,
  before=0pt,
  after=0pt,
  boxsep=1ex,
  toptitle=1ex,
  bottomtitle=1ex,
  top=0pt,
  left=1ex,
  right=1ex,
  bottom=0.5ex,
  pad after break=1.5ex,
  sharp corners,
  breakable,
  before skip=\topsep,
  after skip=\topsep, #1} 

%% Dictum
\renewcommand*{\dictumwidth}{0.8\textwidth}
\renewcommand*{\raggeddictumtext}{\centering}
\renewcommand*{\raggeddictum}{\centering}
\setkomafont{dictumtext}{\itshape\scriptsize}
\setkomafont{dictumauthor}{\itshape\scriptsize}

\title{Letteratura Giapponese I}
\author{Marianna}

\begin{document}

\begin{titlepage}
\maketitle
\end{titlepage}

\cleardoublepage
\tableofcontents

\chapter{Lezione 1}
\input{./chapt/lezione1.tex}
\end{document}