﻿
/* === STILE BASE === */
body {
  margin: 0;
  font-family: Arial, sans-serif; 
  background-color: #fff;
  background-attachment: fixed;
  background-position: center;
  line-height: 1.4;
  color: #333;
}
/* inizio stile per contatto whatsapp, tel, email, ecc.. */
.contatti-iconici img {
  width: 50px;
  margin: 0 8px;
  vertical-align: middle;
  transition: opacity 0.2s;
}
.contatti-iconici img:hover {
  opacity: 0.7;
}
/* fine stile per icona contatti */
/* === BLOCCO "DIFFERENZA CLIENTI" === */
.diff-clienti { margin: 1.5em auto; max-width: 800px; }
.diff-clienti h2 { margin-bottom: .75em; font-size: 1.35rem; line-height: 1.2; }
.diff-griglia { display: grid; gap: 12px; }
@media (min-width: 700px) { .diff-griglia { grid-template-columns: 1fr 1fr; } }

.diff-col { padding: 14px; border: 1px solid #e3e3e3; border-radius: 8px; background: #fafafa; }
.diff-loro { background: #f9f3f3; border-color: #f0d9d9; }
.diff-noi  { background: #f2f8f5; border-color: #d5e9df; }

.diff-etichetta { margin: 0 0 .5em 0; font-size: .95rem; letter-spacing: .5px; }
.diff-loro .diff-etichetta { color: #b3261e; }    /* rosso sobrio */
.diff-noi  .diff-etichetta { color: #234e70; }    /* tuo blu primario */

.diff-col ul { list-style: none; padding: 0; margin: 0; }
.diff-col li { margin: .45em 0; padding-left: 1.4em; position: relative; }
.diff-loro li::before { content: "✖"; position: absolute; left: 0; top: 0; }
.diff-noi  li::before { content: "✔"; position: absolute; left: 0; top: 0; }

.diff-claim { margin-top: .9em; font-weight: bold; text-align: center; }
/* inizio ultimo inserimento */
<style>
/* fine stile per noi e loro */
.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: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);*/
}
.testimonianza-box {
  border: 1px solid #ccc;
  border-radius:10px;
  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;
}
.psi-badges{
  display:flex; gap:28px; align-items:flex-start; flex-wrap:wrap;
}
.psi-badges .badge{
  margin:0; text-align:center; color:#006600; /* verde "Lighthouse-like" */
  font-family: Arial, sans-serif;
}
.psi-badges .ring{
  width:64px; height:64px; border-radius:50%;
  border:3px solid currentColor;
  display:grid; place-items:center;
  font-weight:700; font-size:18px; line-height:1;
  margin:0 auto 8px;
}
.psi-badges figcaption{
  font-size:.92rem; color:#333;
}
@media (max-width:480px){
  .psi-badges{ gap:18px; }
  .psi-badges .ring{ width:58px; height:58px; font-size:17px; }
  .psi-badges figcaption{ font-size:.9rem; }
}

/* Elenchi con icone personalizzate: struttura solida e allineamento perfetto */
ul[class^="elenco-"]{
  list-style: none;
  margin: 0 0 1em 0;
  padding: 0;
}
ul[class^="elenco-"] li{
  position: relative;
  padding-left: 1.8em;   /* spazio per l'icona */
  margin: .4em 0;
  line-height: 1.6;
  text-indent: 0;        /* niente hack con indent negativo */
}

/* Variante "check" */
ul.elenco-check li::before{
  content: "✔";          /* usa un simbolo, non un'emoji */
  position: absolute;
  left: 0;
  top: .2em;
  font-weight: 700;
  font-size: 1.05em;
  color: green;          /* qui il colore funziona (con ✔), con l’emoji non funziona */
}
ul.elenco-cuore li::before {
  content: "❤️";
  position: absolute;
  left: 0;
  top: .2em;
  font-weight: 700;
  font-size: 1.05em;
  color: green;
  }
  ul.elenco-dito li::before {
  content: "👉";
  position: absolute;
  left: 0;
  top: .2em;
  font-weight: 700;
  font-size: 1.05em;
  }
ul.elenco-trofeo li::before {
  content: "🏆";
  position: absolute;
  left: 0;
  top: .2em;
  font-weight: 700;
  font-size: 1.05em;
  color: red;
  }
ul.elenco-desideri li::before { 
  content: "★";
  position: absolute;
  left: 0;
  top: .2em;
  font-weight: 700;
  font-size: 0.8em;
 }
ul.elenco-no li::before {
  content: "❌";
  position: absolute;
  left: 0;
  top: .2em;
  font-weight: 700;
  font-size: 0.8em;
} 
ul.elenco-note li::before {
  content: "📌";
  position: absolute;
  left: 0;
  top: .2em;
  font-weight: 700;
  font-size: 0.8em;
  } 
ul.elenco-rombo li::before {
  content: "🔹";
  position: absolute;
  left: 0;
  top: .2em;
  font-weight: 700;
  font-size: 0.8em;
}
#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: 32px;
  cursor: pointer;
  display: none;
  padding-left:40px;
  padding-bottom:0px;
}

#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;
}
/* ===== GRIGLIA ===== */
.griglia { display: grid; gap: 16px; }
.cards-4 { grid-template-columns: 1fr; }
@media (min-width: 640px){ .cards-4 { grid-template-columns: repeat(2, 1fr); } }

.griglia.cards-4 > .testimonianza-box{
  margin:0; background:#fff; border:1px solid #ddd;
  border-left:5px solid #234e70; border-radius:10px;
  box-shadow:0 2px 4px rgba(0,0,0,.06); padding:15px 20px;
}
.griglia.cards-4 > .testimonianza-box h3{ margin:0 0 8px; font-size:1.05rem; }
.griglia.cards-4 > .testimonianza-box p{ margin:0; line-height:1.5; }
/* === 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;
  }
}
