﻿
/* === 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;
}*/

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: 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: 23px;
    color: #33498d;
  }

  h2 {
    font-size: 22px;
    color: #33498d;
  }
    h3 {
    font-size: 20px;
    color: #33498d;
  }

/* === 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: 22px;
    color: #33498d;
  }

  h2 {
    font-size: 21px;
    color: #33498d;
  }
    h3 {
    font-size: 20px;
    color: #33498d;
  }

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