body {
  margin: 0;
  font-family: 'Lato', Arial, sans-serif;
  background: linear-gradient(135deg, #FFFFFF 0%, #BEE4E0 40%, #F9E5EA 100%);
  min-height: 100vh;
}

header {
  background: #373942;
  border-bottom: 2px solid #BEE4E0;
  box-shadow: 0 2px 10px #0001;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
}
.logo-titolo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1.5px solid #BEE4E0;
  background: linear-gradient(to right, #ffffff, #d1d1d1);
}
.titolo {
  font-size: 1.22rem;
  font-weight: 700;
  color: #F2F2F2;
  letter-spacing: 1px;
}
.menu {
  display: flex;
  gap: 12px;
}
.nav-btn {
  font-size: 1rem;
  font-family: inherit;
  color: #373942;
  background: #BEE4E0;
  border: none;
  border-radius: 4px;
  padding: 8px 20px;
  transition: all 0.22s;
  cursor: pointer;
  box-shadow: 0 1px 3px #bee4e01a;
  outline: none;
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.nav-btn:hover {
  background: #F0E4F3;
  box-shadow: 0 2px 8px #D3B4DA55;
}
.nav-btn.active,
.nav-btn:focus,
.nav-btn:active {
  background: #F9E5EA;
  color: #A16A8F;
  box-shadow: 0 2px 10px #f9e5ea77;
}
.nav-btn::after {
  content: "";
  display: block;
  position: absolute;
  left: 30%;
  bottom: 3px;
  width: 0;
  height: 2.5px;
  background: #A16A8F;
  border-radius: 1px;
  transition: width 0.28s;
}
.nav-btn.active::after,
.nav-btn:focus::after {
  width: 40%;
}

.hero {
  width: 100%;
  min-height: 32vh;
  background: linear-gradient(to right, #ffffff, #d1d1d1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  box-shadow: 0 8px 32px #b6b6c51c;
}
.hero-content {
  width: 100%;
  text-align: center;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: #373942;
  font-weight: 700;
  letter-spacing: 1.3px;
  margin: 0;
  padding: 40px 0;
  background: linear-gradient(to right, #ffffff, #d1d1d1);
  text-align: center;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 20px #0000000f;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

@media (max-width: 700px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 7px;
  }
  .menu {
    gap: 7px;
    width: 100%;
    margin-top: 8px;
  }
  .logo {
    width: 32px;
    height: 32px;
    border-radius: 4px;
  }
  .titolo {
    font-size: 1rem;
  }
  .hero-content h1 {
    font-size: 1.3rem;
    padding: 30px 0;
  }
}


/* CHI SONO */
.chi-sono {
  background: #ffffff;
  padding: 60px 20px;
}
.chi-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.foto-profilo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #BEE4E0;
}
.chi-testo {
  flex: 1;
  font-size: 1.05rem;
  color: #373942;
  line-height: 1.6;
}
.chi-testo h3 {
  margin-top: 1.2em;
  font-size: 1.3rem;
  color: #A16A8F;
}
.chi-testo ul {
  padding-left: 0;
  list-style: none;
}
.chi-testo li {
  margin-bottom: 1.5em;
}


/* CALL TO ACTION */
.call-to-action {
  text-align: center;
  padding: 60px 20px 80px;
  background: #ffffff;
}
.cta-button {
  background-color: #E0F0EC;
  color: #373942;
  font-size: 1.3rem;
  padding: 18px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 18px #a16a8f55;
  transition: all 0.3s ease;
  display: inline-block;
}
.cta-button:hover {
  background-color: #8e547c;
  box-shadow: 0 0 18px 4px #BEE4E077;
}


.call-to-action.tighter {
  padding-top: 20px;
  padding-bottom: 40px;
}


.titolo,
.hero-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}


.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: #373942;
  margin-bottom: 30px;
}


.site-footer {
  background-color: #F9F9F9;
  padding: 40px 20px;
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: #373942;
  border-top: 1px solid #ddd;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-column {
  flex: 1;
  min-width: 280px;
}
.footer-column h3 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: 0.5em;
}
.footer-column a {
  color: #8e547c;
  text-decoration: none;
}
.footer-column a:hover {
  text-decoration: underline;
}

/* Footer semplice coerente con entrambe le pagine */
footer {
  background-color: #4b4b4b;
  color: white;
  padding: 2rem;
  text-align: center;
  font-family: 'Lora', serif;
}

footer a {
  color: #dcdcdc;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer iframe {
  margin-top: 20px;
  border: 0;
  max-width: 100%;
}

/* Ottimizzazione Mobile */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-section h1 {
    font-size: 1.5rem;
    padding: 1rem;
  }

  .chi-sonosection,
  .progetto-slide {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .chi-sonosection img,
  .progetto-slide img {
    width: 80%;
    margin: 0 auto;
  }

  .footer iframe {
    height: 200px;
  }
}

@media (max-width: 480px) {
  h1, h2 {
    font-size: 1.3rem;
  }

  nav a {
    font-size: 0.9rem;
    padding: 6px 8px;
  }

  .hero-section h1 {
    font-size: 1.2rem;
  }
}


/* Stili importati da progetti.html */
body {
      margin: 0;
      font-family: 'Lora', serif;
      background: linear-gradient(to bottom, #ffffff, #f5f5f5);
      color: #373942;
    }
    .site-header {
      background-color: #4b4b4b;
      color: white;
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .logo-titolo {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .logo {
      width: 40px;
      height: 40px;
    }
    nav a {
      color: white;
      text-decoration: none;
      margin-left: 20px;
      font-weight: bold;
    }
    .hero-title {
      text-align: center;
      font-size: 2rem;
      margin: 40px 0 20px;
    }
    .slide {
      display: none;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      padding: 40px 60px;
      gap: 30px;
    }
    .slide.active {
      display: flex;
    }
    .hero-image {
      max-width: 35%;
      border-radius: 10px;
      box-shadow: 0 0 12px rgba(0,0,0,0.1);
    }
    .hero-text {
      flex: 1;
      font-size: 1rem;
      line-height: 1.6;
    }
    .arrow {
      font-size: 4rem;
      color: #8e547c;
      cursor: pointer;
      margin-left: 20px;
      transition: transform 0.3s;
    }
    .arrow:hover {
      transform: scale(1.1);
    }
    footer {
      background-color: #4b4b4b;
      color: white;
      padding: 2rem;
      text-align: center;
    }
    footer a {
      color: #dcdcdc;
      text-decoration: none;
    }
  
    .site-header {
      background-color: #4b4b4b;
      color: white;
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .logo-titolo {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .logo {
      width: 40px;
      height: 40px;
    }
    nav {
      display: flex;
      gap: 20px;
    }
    nav a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      transition: color 0.3s, background-color 0.3s;
      padding: 5px 10px;
      border-radius: 4px;
    }
    nav a:hover {
      background-color: #8e547c;
      color: white;
    }

/* Layout mobile aggiornato per il menu */

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-titolo {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }

  nav {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  nav a {
    margin: 0;
  }
}


/* Correzione layout mobile menu affiancato */

@media (max-width: 768px) {
  .site-header, header, .header-container {
    flex-direction: column;
    align-items: center;
  }

  .logo-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
  }

  nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav-btn {
    margin: 0;
    padding: 10px 16px;
    font-size: 1rem;
  }
}


/* Miglioramento visualizzazione mobile progetti */

@media (max-width: 768px) {
  .slide {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .hero-image {
    max-width: 90%;
    margin-bottom: 1rem;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.5;
  }
}


.bottone {
  display: block;
  width: fit-content;
  margin: 40px auto 20px auto;
  padding: 20px 40px;
  background-color: #e6f7f1;
  color: #4CAF50;
  font-weight: bold;
  font-size: 1.3rem;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(255, 192, 203, 0.5);
  transition: all 0.3s ease;
  text-align: center;
}

.bottone:hover {
  background-color: #d0f0e2;
  box-shadow: 0 8px 18px rgba(255, 192, 203, 0.7);
}

.chi-sono {
  background: linear-gradient(rgba(255,255,255,0.3), rgba(255,255,255,0.3)),
              url("sfondo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

.chi-sono h2,
.chi-sono h3,
.chi-sono p,
.chi-sono li {
  color: #f8f8ff; /* bianco brillante */
}

.chi-sono strong {
  color: #ffecb3; /* giallo chiaro per enfasi */
}



.chi-container-split {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  padding: 40px 20px;
  gap: 40px;
}

.chi-sinistra, .chi-destra {
  flex: 1 1 400px;
  max-width: 600px;
}

.immagine-sinistra {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.foto-profilo {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
}

.chi-destra {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.chi-testo {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}


.foto-profilo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #BEE4E0;
}


body {
  color: #222; /* colore testo principale */
}

.chi-testo p,
.chi-testo li {
  color: #333;
}


.hero {
  background: #F5F5F5;
  padding: 60px 20px;
  text-align: center;
}

.hero-quote {
  max-width: 800px;
  margin: 0 auto;
  font-family: 'Playfair Display', serif;
}

.emoji {
  font-size: 60px;
  color: #BEE4E0;
  margin-bottom: 20px;
}

.citazione {
  font-size: 1.4rem;
  font-style: italic;
  color: #444;
  margin-bottom: 20px;
}

.nota {
  font-size: 0.95rem;
  color: #666;
}


.chi-destra,
.chi-destra p,
.chi-destra li,
.chi-destra h2,
.chi-destra h3 {
  color: white;
}


.chi-sono {
  background-color: #373942;
  padding: 60px 20px;
}


.chi-destra p,
.chi-destra li,
.chi-destra h2,
.chi-destra h3 {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.chi-destra h2,
.chi-destra h3 {
  font-weight: bold;
}

.chi-destra li {
  margin-bottom: 15px;
  line-height: 1.6;
}




/* Pulsante contattami personalizzato */
.nav-btn, .btn-contattami {
  background-color: #7D5BA6; /* viola */
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(125, 91, 166, 0.4);
  cursor: pointer;
}

.nav-btn:hover, .btn-contattami:hover {
  background-color: #9966cc;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(125, 91, 166, 0.6);
}


/* Stile aggiornato per il pulsante Contattami */
.btn-contattami,
input[type="submit"] {
  background-color: #7D5BA6 !important; /* viola */
  color: #fff !important;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 20px 36px;
  border: none;
  border-radius: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(125, 91, 166, 0.4);
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-contattami:hover,
input[type="submit"]:hover {
  background-color: #9966cc !important;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(125, 91, 166, 0.6);
}


.bottone {
  background-color: #7D5BA6 !important;
  color: #fff !important;
  font-size: 1.4rem;
  font-weight: bold;
  padding: 20px 36px;
  border: none;
  border-radius: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(125, 91, 166, 0.4);
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.bottone:hover {
  background-color: #9966cc !important;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(125, 91, 166, 0.6);
}


.bottone {
  display: inline-block;
  margin: 40px auto;
}

.pulsante-container {
  display: flex;
  justify-content: center;
  align-items: center;
}


.bottone {
  background-color: #A892C5 !important; /* viola tenue */
  color: #fff !important;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(168, 146, 197, 0.3);
  display: inline-block;
  text-align: center;
  margin: 40px auto;
}

.bottone:hover {
  background-color: #BCA3D6 !important;
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(168, 146, 197, 0.5);
}


/* Responsive layout per dispositivi mobili e tablet */
@media screen and (max-width: 768px) {

  .chi-container-split {
    flex-direction: column;
    padding: 20px;
  }

  .chi-sinistra,
  .chi-destra {
    max-width: 100%;
    flex: 1 1 100%;
    text-align: center;
  }

  .foto-profilo {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px auto;
  }

  .immagine-sinistra {
    border-radius: 10px;
    width: 100%;
    max-height: 300px;
    object-fit: cover;
  }

  .chi-testo {
    padding: 0 10px;
  }

  .bottone {
    font-size: 1.1rem;
    padding: 14px 28px;
    margin: 30px auto;
    display: block;
    width: fit-content;
  }

  .hero {
    padding: 40px 15px;
  }

  .citazione {
    font-size: 1.1rem;
  }

  .nota {
    font-size: 0.85rem;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }

  .site-header {
    flex-direction: column;
    gap: 10px;
    padding: 1rem;
  }
}


/* Ottimizzazioni estetiche avanzate per mobile/tablet */

body {
  font-size: 16px;
  line-height: 1.6;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

.chi-destra h3 {
  font-size: 1.2rem;
  margin-top: 20px;
}

ul {
  padding-left: 0;
  list-style-position: inside;
}

ul li {
  margin-bottom: 12px;
}

/* Hero section migliorata */
.hero {
  padding: 60px 15px;
  background: #f9f9fb;
}

.hero .emoji {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero .citazione {
  font-size: 1.2rem;
  line-height: 1.6;
  font-style: italic;
  color: #333;
}

.hero .nota {
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
}

/* Miglioramenti pulsante */
.bottone {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 26px;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(125, 91, 166, 0.2);
  transition: all 0.25s ease-in-out;
  display: inline-block;
  width: auto;
  max-width: 90%;
}

.bottone:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Navigazione migliorata */
nav a {
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}


.hero,
.hero * {
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero {
  padding: 40px 20px;
  margin: 0 auto;
}


@media screen and (max-width: 768px) {

  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1rem;
  }

  .logo-titolo {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  nav a {
    padding: 10px 14px;
    font-size: 1rem;
    background-color: #BEE4E0;
    color: #373942;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  nav a:hover {
    background-color: #A892C5;
    color: white;
  }
}
