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: 10px 30px;   /* Fix: aggiunto padding verticale, testo non tocca più i bordi */
    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;
    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%;
    max-width: 812px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    line-height: 0;
    font-size: 0;
}

#logo img
{
    width: 100%;       /* Fix: banner responsivo, si adatta a qualsiasi larghezza */
    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 ------------------------------------ */

.content
{
    width: 840px; 
    margin-top: 0px;
    margin-left: 30px;
    margin-right: 30px; 
    clear: both;
    float: none;
    display: block;
}

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

.content ul li {
    margin-bottom: 5px;
}

#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 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;
}

.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;
}

/*---------------------- COMPONENTI RIUTILIZZABILI ---------------------------*/

/* Bottone download stile macOS — usato su index.html, factory.html, ecc. */
.download-btn {
    display: block;
    background-image: linear-gradient(to bottom, #54a6ff, #007aff);
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #005bb7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    margin: 8px auto;
    box-sizing: border-box;
}

.download-btn:hover {
    background-image: linear-gradient(to bottom, #4796ef, #0069db);
    color: white;
}

/* Citazioni in evidenza — usate su index.html e altre pagine */
.home-quote {
    border-left: 3px solid #007aff;
    padding: 8px 8px 8px 16px;
    margin: 12px 0;
    color: #444;
    font-style: italic;
    background-color: #f0f7ff;
    border-radius: 0 4px 4px 0;
}

.home-quote i {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-size: 12px;
    color: #666;
    text-align: right;
}

.home-quote a:hover {
    color: red;
}

/* Testo in evidenza negli elenchi (factory.html) */
.highlight {
    font-weight: bold;
    color: #0055aa;
}

/* Immagine affiancata al testo, con fallback mobile */
.img-text-wrap {
    overflow: hidden;
    margin-top: 20px;
}

.img-text-wrap img {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    max-width: 200px;
    height: auto;
}

/* --- TABLET: tra 600px e 900px --------------------------------- */
@media screen and (max-width: 900px) {
    #holder {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .content {
        width: auto;
        margin: 10px;
    }
}

/* --- SMARTPHONE: sotto 600px ----------------------------------- */
@media screen and (max-width: 600px) {

    #main, #sidebar, #left_half, #right_half {
        width: 100%;
        float: none;
        margin-left: 0;
        padding: 0;
        border: none;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    #navigator li {
        display: block;
        float: none;
        margin-bottom: 4px;
    }

    #navigator a {
        display: block;
        padding: 6px 12px;
    }

    #youtube-frame {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .download-btn {
        width: 100%;
    }

    .img-text-wrap img {
        float: none;
        display: block;
        margin: 0 auto 16px auto;
        max-width: 100%;
    }
}
