/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fdfaf6;
    position: relative;
    min-height: 100vh;
  }
  
  /* Sfondo con immagine sfocata */
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/sfondo.jpg') center/cover no-repeat;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: -2;
  }
  
  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.5);
    z-index: -1;
  }
  
  /* CONTAINER */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* HEADER */
  header {
    background: rgba(255,255,255,0.8);
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    text-align: center; /* Centratura dell'header */
  }
  
  /* DIVISIONE DELL'HEADER IN DUE RIGHE */
  .header-title {
    text-align: center;
    margin-bottom: 5px;
  }
  
  .header-title h1 {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #3e2723;
    margin: 0;
    text-align: center;
  }
  
  .header-nav nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
  }
  
  .header-nav nav ul li {
    margin: 0 10px;
  }
  
  .header-nav nav ul li a {
    text-decoration: none;
    color: #5d4037;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .header-nav nav ul li a:hover {
    color: #3e2723;
  }
  
  /* HERO SECTION */
  .hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 20px;
  }
  
  .hero-content {
    background: rgba(255,255,255,0.85);
    padding: 40px 60px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    max-width: 800px;
    margin: auto;
  }
  
  .hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 10px;
    color: #3e2723;
    white-space: nowrap;
  }
  
  .hero small {
    display: block;
    font-size: 1em;
    color: #666;
    margin-bottom: 10px;
  }
  
  .hero .tagline {
    font-size: 22px;
    margin-bottom: 30px;
    color: #5d4037;
  }
  
  .btn {
    display: inline-block;
    padding: 15px 30px;
    background: #5d4037;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
  }
  
  .btn:hover {
    background: #3e2723;
  }
  
  /* Sezioni generali */
  section {
    padding: 60px 0;
    text-align: center;
  }
  
  section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 30px;
    color: #3e2723;
  }
  
  section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 20px;
    color: #444;
  }
  
  /* SERVIZI */
  .services-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
  }
  
  .services-list li {
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1 1 300px;
    max-width: 300px;
    transition: transform 0.3s ease;
  }
  
  .services-list li:hover {
    transform: translateY(-5px);
  }
  
  .services-list h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: #3e2723;
  }
  
  .services-list p {
    color: #5d4037;
  }
  
  /* GALLERIA */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }
  
  .gallery-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    cursor: pointer;
  }
  
  .gallery-grid img:hover {
    transform: scale(1.03);
  }
  
  /* Lightbox Modal */
  .lightbox-modal {
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
  }
  
  .lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
  }
  
  .lightbox-close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
  }
  
  .lightbox-close:hover,
  .lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
  }
  
  .lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #fff;
    font-size: 40px;
    user-select: none;
    padding: 0 20px;
  }
  
  .lightbox-nav .prev,
  .lightbox-nav .next {
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .lightbox-nav .prev:hover,
  .lightbox-nav .next:hover {
    color: #bbb;
  }
  
  /* CONTATTI */
  #contact a {
    color: #5d4037;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
  }
  
  #contact a:hover {
    border-bottom: 1px solid #5d4037;
  }
  
  /* FOOTER */
  footer {
    background: rgba(255,255,255,0.8);
    padding: 20px 0;
    border-top: 1px solid #ddd;
    text-align: center;
  }
  
  footer p {
    font-size: 14px;
    color: #5d4037;
  }
  
  /* MEDIA QUERIES PER DISPOSITIVI MOBILI */
  @media (max-width: 768px) {
    .container {
      width: 100%;
      padding: 0 10px;
    }
    
    .header-title h1 {
      font-size: 24px;
    }
    
    .header-nav nav ul li {
      margin: 5px 8px;
    }
    
    .hero-content {
      padding: 20px 15px;
      max-width: 100%;
      margin: auto;
    }
    
    .hero h2 {
      font-size: 28px;
      white-space: normal;
    }
    
    .hero small {
      font-size: 0.9em;
    }
    
    .hero .tagline {
      font-size: 16px;
      margin-bottom: 20px;
    }
    
    .btn {
      padding: 8px 16px;
      font-size: 14px;
    }
    
    section {
      padding: 30px 0;
    }
    
    section h2 {
      font-size: 24px;
      margin-bottom: 15px;
    }
    
    section p {
      font-size: 14px;
      margin-bottom: 15px;
      line-height: 1.4;
    }
    
    .services-list {
      flex-direction: column;
    }
    
    .services-list li {
      flex: 1 1 100%;
      max-width: 100%;
      margin-bottom: 15px;
    }
    
    .gallery-grid {
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 10px;
      margin-top: 20px;
    }
  }
  
  /* MEDIA QUERIES PER DISPOSITIVI MOLTO PICCOLI */
  @media (max-width: 480px) {
    .header-title h1 {
      font-size: 20px;
    }
    
    .hero h2 {
      font-size: 24px;
    }
    
    .hero small {
      font-size: 0.8em;
    }
    
    .hero .tagline {
      font-size: 14px;
    }
    
    .btn {
      padding: 6px 12px;
      font-size: 12px;
    }
    
    section h2 {
      font-size: 20px;
    }
    
    section p {
      font-size: 13px;
    }
    
    .gallery-grid {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
  }
  