        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: #f6eee0;
            color: #333;
            line-height: 1.6;
        }
      /* INIZIO Stile MENU */
       @keyframes slideDown {
            from {
                transform: translateY(-100%);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .nav-wrapper {
          position: sticky;
          top: 0;
          z-index: 1000;
          animation: slideDown 0.7s ease-in-out;
          backdrop-filter: blur(5px);
          transition: background-color 0.3s ease;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);        
          max-width: 1200px;
          margin: 0 auto;
          padding: 0 15px;
          background: #f9ebcf;          
        }

        nav {
          position: sticky;
          top: 0;
          z-index: 1000;
          background-color: #fdecc8;
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 10px 20px;
        }

        /* logo sempre in alto a sinistra */
        .logo {
          flex-shrink: 0;
        }

        .logo img {
          max-height: 50px;
        }

        .menu {
            list-style: none;
            display: flex;
            gap: 0px;
        }

        .menu > li {
            position: relative;
        }

        .menu > li > a {
            text-decoration: none;
            color: #333;
            padding: 10px 15px;
            display: block;
            border-radius: 5px;
        }

        .menu > li > a:hover {
            background-color: #127BD5;
            color: #fff;
        }

        .submenu {
            list-style: none;
            position: absolute;
            left: 0;
            top: 100%;
            background-color: #f9ebcf;
            display: none;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            z-index: 10;
        }

        .submenu > li {
            font-size: 11px;
        }

        .submenu li a {
            text-decoration: none;
            color: #333;
            padding: 10px 15px;
            display: block;
        }

        .submenu li a:hover {
            background-color: #127BD5;
            color: #fff;
        }

        .menu > li:hover .submenu {
            display: block;
        }

        .menu-toggle {
          display: none; /* sarà visibile solo in mobile */
          flex-direction: column;
          justify-content: center;
          align-items: center;
          gap: 4px;
          width: 32px;
          height: 32px;
          background: none;
          border: none;
          cursor: pointer;
          position: absolute;
          top: 15px;
          right: 20px;
          z-index: 1100;
        }

        .menu-toggle .bar {
          width: 20px;
          height: 3px;
          background-color: #333;
          transition: all 0.3s ease;
        }

        .menu-toggle.active {
            color: #CF0000;
            transform: rotate(90deg);
            transition: transform 0.3s ease, color 0.3s ease;
        }
    /* FINE Stile MENU */   
      
        header {
            background-color: #f8f9fa;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .header-banner {
            position: relative;
            background: url('../images/sfondo-intestazione.webp') no-repeat center center/cover;
            height: 400px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: #fff;
        }

        .banner-title {
            position: relative;
            z-index: 2;
            font-size: 28px;
            font-weight: bold;
            text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
            margin-bottom: 20px;
        }
      
        .banner-title H1{
          text-align: center;
          font-size: 2.8rem;
          color: #FFFFFF;
          margin-bottom: 1.5rem;
        }      

        .banner-text {
            position: relative;
            z-index: 1;
            font-size: 18px;
            font-style: italic;
            opacity: 1;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
            transition: opacity 1s ease-in-out;
        }

        .hidden {
            opacity: 0;
            pointer-events: none;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            background: #e7c88f; /*#f9ebcf;*/
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            background-image: url('../images/sfondo-corpo.jpg');
            background-repeat: repeat-y;          /* Ripete verticalmente */
            background-size: 100% auto;           /* Adatta la larghezza, lascia l’altezza automatica */
            background-position: top center;      /* Centra l’immagine in alto */
            background-color: #f9ebcf;            /* Colore di fallback simile alla pergamena */          
        }

         main {
            padding: 20px;
        }

        footer {
            background-color: #f9ebcf;
            text-align: center;
            padding: 10px;
            margin-top: 20px;
            box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
        }      


/* INIZIO STILE PAGINE */

      h1 {
        text-align: center;
        font-size: 2rem;
        color: #0a3d62;
        margin-bottom: 1.5rem;
      }

      h2 {
        text-align: center;
        font-size: 1.5rem;
        color: #0a3d62;
        margin-bottom: 1.0rem;
      }


      p {
        margin-bottom: 1.2rem;
        text-align: justify;
      }

      strong {
        font-weight: 600;
        color: #0a3d62;
      }

      a {
        color: #0a3d62;
        text-decoration: none;
      }

      a:hover {
        text-decoration: underline;
      }
      .container ol,
      .container ul {
      padding-left: 1.5rem;
      margin-left: 0;
        margin-bottom: 1.5rem;
      }

      .container li {
        margin-bottom: 0.8rem;
      }

      .container h1 {
        text-align: center;
        font-size: 2rem;
        color: #0a3d62;
        margin-bottom: 1.5rem;
      }

      .container h2 {
        font-size: 1.2rem;
        color: #333;
        margin-top: 1.5rem;
      }

      .contact {
        margin-top: 2rem;
        font-size: 1.1rem;
      }

      .contact a {
        display: inline-block;
        margin-top: 0.5rem;
      }

      .photo-wrapper {
        max-width: 300px;
        margin: 20px auto;
        overflow: hidden;
        border-radius: 12px;
        animation: fadeSlideUp 0.8s ease-out forwards;
        opacity: 0;
      }

      .photo-wrapper img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      }

      /* Animazione */
      @keyframes fadeSlideUp {
        from {
          opacity: 0;
          transform: translateY(30px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* Attivazione animazione al caricamento */
      .photo-wrapper {
        opacity: 1;
      }

  /* INIZIO CSS LIBRI */
      .book {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 60px; /* più spazio tra i blocchi */
      }

      .book-cover {
        max-height: 250px;
        height: auto;
        margin-top: 20px; /* spazio dall’hr precedente */
        margin-bottom: 15px; /* spazio sotto l'immagine */
      }

      .book-info h2 {
        font-size: 20px;
        margin: 0;
        line-height: 1.4;
      }

      .book-info .subtitle {
        display: block;
        font-size: 18px;
        font-weight: 600;
        color: #444;
        margin-top: 8px;
        margin-bottom: 15px; /* aumenta la distanza dalla descrizione */
      }

      .book-info p {
        margin: 0 auto;
        font-size: 16px;
        line-height: 1.6;
      }

      .book-info ul {
        text-align: left;
        margin-left: 20px;
        padding-left: 1.5rem; /* Regola la spaziatura secondo le tue esigenze */
      }
    /* INIZIO Effetto entrata libri uno alla volta */
      .book {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
      }

      .book.visible {
        opacity: 1;
        transform: translateY(0);
      }
    /* FINE Effetto entrata libri uno alla volta */
  /* fine CSS LIBRI */
  
  /* INIZIO CSS articoli */

    .articolo-lista {
      padding: 2rem 0;
    }

    .articolo {
      margin-bottom: 2rem;
      border-bottom: 1px solid #ccc;
      padding-bottom: 1rem;
    }

    .articolo h2 {
      margin: 0 0 0.4rem 0;
      font-size: 1.3rem;
    }

    .articolo h2 a {
      text-decoration: none;
      color: #333;
      transition: color 0.3s;
    }

    .articolo h2 a:hover {
      color: #b46400;
    }

    .articolo .autore {
      font-style: italic;
      color: #666;
      font-size: 0.95rem;
    }

  /* per pagina di dettaglio articolo */
    .article-image {
      text-align: center;
      margin: 20px 0 40px 0; /* top: 20px, bottom: 40px */
    }

    .article-image img {
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }
  /* INIZIO CSS articoli */

    .home-banner-box {
      max-width: 1200px;
      height: 330px;
      margin: 20px auto;
      padding: 20px 30px;
      background-image: url('../images/sfondo-pergamena.jpg');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      border-radius: 12px;
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
    }

    .home-banner-text {
      font-family: 'Dancing Script', cursive;
      font-style: normal;
      font-size: 1.5em;
      color: #3a2f1d;
      line-height: 1.4;
      text-align: center;
      white-space: pre-wrap;
      opacity: 1;
      transition: opacity 1s ease;
    }

/* INIZIO STILE MODULO DI CONTATTO */
    .contact-wrapper {
      max-width: 800px;
      margin: 60px auto;
      padding: 20px;
      background: transparent;
      text-align: center;
    }

    .contact-wrapper h2 {
      color: #003366;
      font-size: 2.2rem;
      margin-bottom: 10px;
    }

    .contact-subtitle {
      font-style: italic;
      font-size: 1.1rem;
      margin-bottom: 40px;
      color: #222;
    }

    .contact-subtitle a {
      color: #0056b3;
      text-decoration: none;
      font-weight: bold;
    }

    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .form-group {
      position: relative;
    }

    .form-group i {
      position: absolute;
      top: 16px;
      left: 15px;
      font-size: 1.2em;
      color: #555;
      pointer-events: none;
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 12px 12px 12px 45px;
      border: 2px solid #ccc;
      border-radius: 8px;
      font-size: 1.1rem;
      font-family: inherit;
      box-sizing: border-box;
    }

    .form-group textarea {
      resize: vertical;
      min-height: 140px;
    }

    .btn-invia {
      background-color: #074BAC;
      color: white;
      padding: 14px 28px;
      font-size: 1.1rem;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .btn-invia:hover {
      background-color: #053f88;
    }

    /* Responsive */
    @media screen and (max-width: 600px) {
      .contact-wrapper {
        padding: 15px;
      }
      footer { 
        font-size: 0.7rem;
      }
    }

/* FINE STILE MODULO DI CONTATTO */

/* FINE STILE PAGINE */

       @media (max-width: 915px) {
          .nav-wrapper {
              backdrop-filter: none;
          }
         
          nav {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
          }

          .menu-toggle {
            display: flex;
          }
         
          .menu-toggle.open .bar {
            background-color: red;
            width: 3px;
            height: 20px;
          }  
         
          .menu-toggle.open {
            flex-direction: row;
            gap: 6px;
          }         

          .menu {
            display: none;
            position: absolute;
            top: 65px;
            left: 0;
            right: 0;
            background-color: #fdecc8;
            flex-direction: column;
            padding: 20px;
            z-index: 1000;
          }
         
          .menu.active {
            display: flex;
          }         

          .logo {
              font-size: 18px;
          }
         
          .logo img {
            max-height: 50px;
          }         

          .menu > li {
              width: 100%;            
              padding: 5px 20px;            
              font-size: 18px;
          }
         
          .menu > li a::before {
            content: "✧";
            margin-right: 10px;
            color: #074BAC;
          }         

          .submenu > li {
              font-size: 15px;
          }

          .menu {
              flex-direction: column;
              width: 100%;
              display: none;
          }

          .menu > li > a {
              width: 100%;
          }

          .menu.active {
              display: flex;
          }

          .menu > li:hover .submenu,
          .menu.active > li:hover .submenu {
              display: block;
              position: static;
          }

          .submenu {
              position: relative;
              top: auto;
              left: auto;
              box-shadow: none;
          }

          .banner-title h1 {
              font-size: 20px;
          }

          .banner-text {
              font-size: 13px;
          }
          .home-banner-text {
            font-size: 1em;
          }   
          .home-banner-box {
            height: 280px;
            padding: 10px 15px;
          }         
      }

