body
{
	margin: 0px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px; 
    line-height: 1.4; 
    color: #333;
    background-color: #f5f6f7; 
}

#holder {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
    margin-top: 12px;
    width: 900px; 
    text-align: left; 
    background: white;
	box-shadow: 10px 10px 20px rgba(0,0,0,0.4);
    border-radius: 12px;
    overflow: hidden;
}

hr
{
    clear: both;
    border: 0;
    border-top: 1px solid #567;
    margin: 20px 0;
}
	
h1
{
background-color: #007aff;
background-image: linear-gradient(to bottom, #54a6ff, #007aff);
border-bottom: 1px solid #005bb7;
    text-shadow: 0px 1px 2px rgba(0,0,0,0.2);
	color: white;
	padding-left: 30px;
  font-weight: bold;
  font-size: 24px;
  margin-top: 0px;
}

h2
{ 
  font-size: 24px;
  margin-top: 10px; 
  font-weight: bold;
}

h3
{ 
  font-size: 20px;
  color: #039;
  font-weight: bold;
}

h4
{ 
  font-size: 16px;
  margin-top: 12px; 
  margin-bottom: 10px; 
  font-weight: bold;
}

p
{
  margin-top: 6px; 
  margin-bottom: 6px; 
}

pre
{
  padding:8px;
  background-color:#e6edff;
  border:1px solid #bfbfbf; 
}

a {
    text-decoration: none;
    color: #0066cc; /* Blu link classico ma pulito */
    transition: color 0.2s ease;
}

a img
{ 
  border: none;
}

a:hover
{ 
  text-decoration: none;
  color: red;
}

.icon_link img:hover
{ 
  border: 2px solid #13b; 
  max-height: 44px; 
  max-width: 44px; 
}

.left
{
  float: left;
}

.right
{
  float: right;
}

p.right
{
  margin-top: 4px; 
  text-align: center;
}

/* --------------- FORMS ------------------------------ */
form
{ 
  margin-top: 1px; 
  margin-bottom: 10px; 
}


/* --------------- LOGO, NAVIGATOR ------------------------------ */

#logo
{ 
   width: 100% !important;
    max-width: 812px;
    overflow: hidden;
  	margin-left: auto;
  	margin-right: auto;
	line-height: 0;   /* Azzera lo spazio per il testo sotto l'immagine */
    font-size: 0;      /* Elimina eventuali spazi vuoti fantasma */
}

#logo img
{
    width: 100%;
    height: auto;
    display: block;
}

#navigator
{
  width: 100%;
  max-width: 860px;
  margin-bottom: 10px;
  display: inline-block;
}

.topline
{
  clear: both;
}

#navigator ul
{ 
  font-size: 18px;
  flex-wrap: wrap; 
  list-style: none;
}

#navigator img
{ 
  padding-top: 2px;
}

#navigator a
{ 
  text-decoration: none;
  color: grey;
  padding-left: 8px;
  padding-right: 8px;
}

#navigator a:hover
{ 
  text-decoration: none;
  color: black;
}

/* ------------------------- main areas ------------width: 800px;---------------------- */

.content
{
    width: 840px; 
   margin-top: 0px;
  margin-left: 30px;
  margin-right: 30px; 
clear: both;      /* Impedisce ai blocchi di stare affiancati */
    float: none;      /* Rimuove eventuali allineamenti laterali */
    display: block;   /* Si assicura che si comporti come un blocco intero */
}

.content table {
    margin-left: auto;
    margin-right: auto;
}

.content ul li {
    margin-bottom: 5px; /* Crea un piccolo respiro tra un punto e l'altro */
}

#left_half
{
  width: 400px;
  padding-right: 20px;
  border-right: 1px solid #aaa; 
  float: left;
}

#right_half 
{
  width: 400px;
  margin-left: 420px;
  padding-left: 20px;
  border-left: 1px solid #aaa; 
}

#left_half2
{
  width: 400px;
  padding-right: 18px;
  border-right: 1px solid #aaa; 
  float: left;
}

#right_half2
{
  width: 400px;
  margin-left: 418px;
  padding-left: 18px;
  border-left: 1px solid #aaa; 
}

#main 
{ 
  float: left;
  width: 600px;
  padding: 0px;
}

#sidebar 
{
  word-wrap: normal;
  margin-right: 0px;
  margin-left: 610px;
  width: 230px;
  list-style-type: circle;
}

#sidebar p, #sidebar form, #sidebar hr
{
  margin-left: 24px;
}

#sidebar li
{
	margin-top: 8px;
	list-style-type: circle;
}

#sidebar hr
{
	clear: none;
	width: 170px;
}

/*---------------------- FOOTER ---------------------------*/

#closepage
{
 	clear: both;
	height: 8px;
	margin-right: auto;
	margin-left: auto;
/*	background: url(bottom.png) no-repeat center bottom; */
}

.extra
{
	text-align: center;
	font-size: 10px;
	text-decoration: none;
	color: #8C8C8C;
}
	

/*---------------------- SPECIAL CASES ---------------------------*/

table.Grand
{
	border: 2px none silver;
	border-collapse: separate;
}

table.Small
{
	border: 2px none silver;
	border-collapse: separate;
}

.toTop
{
	 font-size: 10px;
	 text-align: center;
}

#main > h4:before
{
	content: url(pearl.png);
	position: relative;
	top: 3px;
}

#main > p
{
	text-indent: 13px;
}

/* --- REGOLE PER SMARTPHONE --- */
@media screen and (max-width: 600px) {
    #holder {
        width: 100%;      /* Il sito occupa tutto lo schermo */
        margin: 0;
        background: white; /* Rimuoviamo immagini di sfondo pesanti */
    }

    .content {
        width: auto;      /* Il testo si adatta alla larghezza del telefono */
        margin: 10px;
        float: none;      /* Eliminiamo le colonne */
    }

    #main, #sidebar, #left_half, #right_half {
        width: 100%;      /* Tutto diventa una colonna singola */
        float: none;
        margin-left: 0;
        padding: 0;
        border: none;
    }

    img {
        max-width: 100%;  /* Le immagini non "escono" dallo schermo */
        height: auto;
    }

    #navigator ul {
        padding: 0;
    }

    #navigator li {
        display: block;   /* Il menu diventa una lista verticale */
        margin-bottom: 5px;
    }
    
	#youtube-frame {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }    
}
