﻿
/* === STILE BASE === */
body {
  margin: 0;
  font-family: Arial, "Segoe UI", Roboto, sans-serif; 
  background-color: #fff;
  background-attachment: fixed;
  background-position: center;
  line-height: 1.4;
  color: #333;
}
/* inizio ultimo inserimento */
<style>
.testimonials h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #234e70;
}
.testimonial {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #f3f7fa;
  border: 1px solid #ddd;
  padding: 15px;
  margin: 15px auto;
  border-radius: 6px;
  max-width: 800px;
  font-family: Arial, sans-serif;
}
.testimonial-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-content {
  flex: 1;
}
.testimonial-author {
  font-size: 1.1em;
  color: #234e70;
  margin-bottom: 5px;
}
.testimonial-excerpt {
  font-style: italic;
  color: #555;
  margin-bottom: 10px;
}
details summary {
  color: #234e70;
  cursor: pointer;
  font-weight: bold;
  margin-top: 8px;
}
details[open] summary::after {
  content: " ▲";
}
details summary::after {
  content: " ▼";
}
</style>
/* fine ultimo inserimento */

img {
  border: none;
}

a img {
  border: none;
}

a:link {
  color: blue;
  text-decoration: underline;
}

a:visited {
  color: navy;
  text-decoration: none;
}

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

a.cta-bottone {
  display: block;       /* cambia inline-block in block */
  margin: 0.5em auto;   /* auto centra orizzontalmente */
  padding: 10px 20px;
  background-color: #234e70;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  width: max-content;   /* mantiene la larghezza del testo */
}

/*a.cta-bottone {
  display: inline-block;
  margin-top: 0.5em;
  padding: 10px 20px;
  background-color: #234e70;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}*/
a.cta-bottone:hover {
  background-color: #1a3a5a;
}
#pagina {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  /*box-shadow: 0 0 8px rgba(0,0,0,0.3);*/
}
/* test */
.highlight-box {
  background: #234e70;
  color: #fff;
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 700px;
  font-size: 120%;
  line-height: 1.4em;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.highlight-box strong {
  font-size: 130%;
}

/*.highlight-box span {
  background: #fff;
  color: #234e70;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}*/
/* test 
@media (max-width: 600px) {
  .highlight-box {
    font-size: 100%;
    padding: 15px;
  }

  .highlight-box strong {
    font-size: 115%;
  }
} */

/* test */
.testimonianza-box {
  border: 1px solid #ccc;
  border-left: 5px solid #234e70;
  background: #f9f9f9;
  padding: 15px 20px;
  margin: 20px 0;
  font-size: 95%;
  font-family: arial, serif;
}

.testimonianza-box p {
  margin: 0 0 10px;
  line-height: 1.5;
}

.testimonianza-box cite {
  display: block;
  text-align: right;
  font-style: normal;
  color: #234e70;
  font-weight: bold;
}

.testimonianza-box a {
  font-size: 90%;
  color: #234e70;
  text-decoration: none;
}

.testimonianza-box a:hover {
  text-decoration: underline;
}

.box-avviso {
  background-color: #fff4e5;
  border: 1px solid #f5a623;
  padding: 12px 18px;
  margin: 1em 0;
  color: #994c00;
  font-size: 95%;
}
.box-evidenza {
  background-color: #f2f2f2;
  border-left: 5px solid red;
  padding: 15px 20px;
  margin: 2em 0;
  font-size: 105%;
}
h1 {
  font-size: 1.8em;
  font-weight: 400;
  border-bottom: 4px solid #234e70; /* colore blu brand */
  padding-bottom: 10px;
  text-align: center;
  line-height: 1.3em;
  margin-bottom: 20px;
  margin-top:2px;
  color: #333;
}
h1 .highlight {
  color:green; /*  #234e7 keyword in blu */
}
  h2 {
    font-size: 22px;
    color: #33498d;
  }
    h3 {
    font-size: 20px;
    color: #33498d;
  }


/* Sezione download libro */
.download-book {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f9f9f9;
}

.download-book h2 {
  font-size: 1.6em;
  color: #234e70;
  margin-bottom: 10px;
}

.download-book p {
  margin-bottom: 15px;
  color: #555;
  font-size: 1em;
}

/* Form */
.download-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.download-form input[type=email] {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s;
}

.download-form input[type=email]:focus {
  border-color: #234e70;
}

/* Pulsante coerente con CTA */
.download-form button {
  background-color: #234e70;
  color: #fff;
  font-size: 1.1em;
  font-weight: 600;
  padding: 12px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.download-form button:hover {
  background-color: #1a3b5c;
}

/* Nota privacy */
.privacy-note {
  font-size: 0.9em;
  color: #666;
  max-width: 400px;
  margin-top: 10px;
}

.privacy-note a {
  color: #234e70;
  text-decoration: underline;
}

/* Accessibilità */
.visually-hidden {
  position: absolute;
  left: -9999px;
}



/* === INDENTAZIONE RIGHE SUCCESSIVE === */
ul[class^="elenco-"] li {
  padding-left: 8px;
  text-indent: -32px;
  list-style:none;
}
ul.elenco-cuore li::before {
  content: "❤️";
  margin-right: 8px;
  color: red;
}
ul.elenco-trofeo li::before {
  content: "🏆";
  margin-right: 8px;
}
ul.elenco-desideri li::before { 
  content: "★ ";
  margin-right: 8px;
 }
ul.elenco-check li::before {
  content: "✅";
  margin-right: 8px;
  color: green;
}
ul.elenco-no li::before {
  content: "❌";
  margin-right: 8px;
  color: red;
} 
ul.elenco-note li::before {
  content: "📌";
  margin-right: 8px;
  color: red;
} 
ul.elenco-desideri li::before {
  content: "👉";
  margin-right: 8px;
  color: red;
}
ul.elenco-rombo li::before {
  content: "🔹";
  margin-right: 8px;
  color: red;
}
#contenuto p.centra {
  font-size: 130%;
  font-family: "arial";
  font-weight: bold;
  text-align: center;
}

#footer {
  text-align: center;
  font-size: 12px;
  padding: 10px;
}
.cookie-avviso {
  text-align: center;
  font-size: 14px;
  padding: 10px;
  background-color:#CCCCCC;
  }
  
/* === SEZIONI COLORATE === */
.sezione {
  padding: 20px;
}

.bg-chiaro {
  background-color: #f9f9f9;
}

.bg-scuro {
  background-color: #e4e4e4;
}

.contenuto {
  max-width: 700px;
  margin: 0 auto;
}

/* === TOPBAR (HEADER FISSO) === */
.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 10px 20px;
  border-bottom: 1px solid #ccc;
  z-index: 1000;
  max-width: 760px;
  margin: 0 auto;
}

.logo {
  max-height: 100px; /* era 80*/
}

.menu-icon {
  font-size: 38px;
  cursor: pointer;
  display: none;
  padding-left:25px;
}

#menu-toggle {
  display: none;
}

/* Icona menu â‰¡ (hamburger) */
.menu-icon::before {
  content: "\2630";
  color: #234e70;
}

/* Menu visibile su desktop */
nav.menu {
  display: flex;
}

nav.menu ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav.menu a {
  text-decoration: none;
  color: #234e70;
  font-weight: bold;
}

/* === MEDIA QUERY === */

@media (max-width: 768px) {
  .topbar {
    flex-direction: row;
    padding: 10px;
  }

  .menu-icon {
    display: block;
  }

  nav.menu {
    display: none;
    position: absolute;
    top: 85px;
    right: 10px;
    background: white;
    flex-direction: column;
    width: 220px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 10px 0;
  }

  #menu-toggle:checked + .menu-icon + nav.menu {
    display: flex;
  }

  nav.menu ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    margin: 0;
  }

  nav.menu li {
    padding: 10px 20px;
  }

  body, p, a {
    font-size: 18px;
  }

  h1 {
    font-size: 1.6em;
    color: #33498d;
  }
  h2 {
    font-size: 22px;
    color: #33498d;
  }
    h3 {
    font-size: 21px;
    color: #33498d;
  }

  #footer {
    font-size: 12px;
    padding: 10px;
  }
}
