/* ============ Centra titoli di tutte le sezioni ============ */
section > h2,
.hero-text h1 {
  text-align: center;
}
/* ============ Reset & Base ============ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Verdana', sans-serif;
  }
  body {
    line-height: 1.6;
    color: #000;
    background: #fff;
  }
  
 /* HEADER */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #791d3a;
    z-index: 1000;
  }
  
  .header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
  }
  
  /* LOGO */
  .logo img {
    height: 60px;
  }
  
  /* NAV DESKTOP */
  .nav-links {
    display: flex;
    gap: 62px;
  }
  
  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 22px;
  }
  
  /* HAMBURGER BUTTON */
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #fff;
    cursor: pointer;
  }
  
  /* RESPONSIVE */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
  
    .nav-links {
      display: none;
      position: absolute;
      top: 90px;
      right: 0;
      left: 0;
      background: #791d3a;
      flex-direction: column;
      gap: 12px;
      padding: 20px;
    }
  
    .nav-links.open {
      display: flex;
      align-items: center;
    }
  }
  
  /* ============ Sezioni ============ */
  section {
    padding: 60px 0 40px; /* paddings top/bottom, lateral via .container */
  }
  section .container {
    text-align: center;
  }
  
  /* ====== Hero ====== */
  
  .hero-desc {
    text-align: center;
    padding: 120px 20px;
  }
  .hero-desc h1 {
    font-size: 42px;
    margin-bottom: 20px;
  }
  
  .hero-desc p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 24px;
    line-height: 1.5;
  }
  /* Tablet */
@media (max-width: 1024px) {
    .hero-overlay-title h1 {
      font-size: 2.8rem;
    }
  
    .hero-overlay-title span {
      font-size: 2.2rem;
    }
  
    .hero-desc {
      padding: 80px 20px;
    }
  
    .hero-desc p {
      font-size: 20px;
    }
  }
  
  /* Smartphone */
  @media (max-width: 768px) {
    .hero-overlay-title {
        top: 40%;
    }
    .hero-overlay-title h1 {
      font-size: 2rem;
    }
  
    .hero-overlay-title span {
      font-size: 1.5rem;
    }
  
    .hero-overlay-title {
      transform: translate(-50%, -10%);
      padding: 0 5px;
    }
  
    .hero-desc {
      padding: 60px 15px;
    }
    .hero-desc h1 {
      font-size: 32px;
    }
  
    .hero-desc p {
      font-size: 18px;
      line-height: 1.4;
    }
  }
  .hero-image-wrap {
    min-height: auto;
  }

  /* ============ Marchi Responsive ============ */
.marchi h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 42px;
}
/* Marchi: 4 box per riga */
.brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* spazio tra i box */
  justify-content: space-between;
  padding: 80px 20px;
}


/* Desktop: 5 box per riga */
.brand-item {
  flex: 0 0 calc((100% - (4 - 1) * 20px) / 4);
  /* (100% - 4*gap)/5 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 16px;
}
.brand-item img {
  max-width: 100%;
  max-height: 60px;
}

/* Mobile breakpoint: 3 box per riga */
@media (max-width: 768px) {
  .brand-item {
    flex: 0 0 calc((100% - (2 - 1) * 20px) / 2);
    /* (100% - 2*gap)/3 */
  }
}
  
  
  

/* ========== Griglia Contattologia ========== */
.griglia-contatto {
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.griglia-contatto .img-top img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* RIGA SOTTO: 2 immagini */
.griglia-contatto .img-row {
  display: flex;
  flex-wrap: nowrap;
}

.griglia-contatto .img-row img {
  width: 50%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Mobile: tutte in colonna */
@media (max-width: 768px) {
  .griglia-contatto .img-row {
    flex-direction: column;
  }

  .griglia-contatto .img-row img {
    width: 100%;
  }
}
  
  /* =====================================
     FOOTER
     ===================================== */
  footer {
    background: #791d3a;
    color: #fff;
    padding: 60px 60px 20px;
  }
  .footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
    margin-bottom: 30px;
  }
  .footer-col {
    flex: 1 1 200px;
    min-width: 150px;
  }
  .footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  .footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    margin: 6px 0;
    font-size: 0.95rem;
  }
  .footer-col img {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }
  .footer-bottom {
    text-align: center;
  }
  .footer-bottom hr {
    border-color: rgba(255,255,255,0.3);
    margin-bottom: 20px;
  }
  .payments {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  .payments img {
    height: 24px;
    object-fit: contain;
  }