/* Overlay comune */
.sezione::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-size: 200% 200%;
}

/* SEZIONE SINISTRA */
.sezione-sinistra::before {
  background-image: repeating-linear-gradient(
    -60deg,
    transparent 0px,
    transparent 35px,
    rgba(255, 255, 255, 0.15) 35px,
    rgba(255, 255, 255, 0.10) 37px
  );

  animation: diagonali-sinistra 12s linear infinite;
}

/* SEZIONE DESTRA */
.sezione-destra::before {    
  background-image: repeating-linear-gradient(
    60deg,
    transparent 0px,
    transparent 45px,
    rgba(173, 163, 121, 0.05) 105px,
    rgba(173, 163, 121, 0.03) 148px
  );

  animation: diagonali-destra 9s linear infinite;
}

/* Titoli sopra gli overlay */
.sezione h2 {
  position: relative;
  z-index: 2;
    
}

/* Animazioni indipendenti */
@keyframes diagonali-sinistra {
  from { background-position: 0% 100%; }
  to   { background-position: 100% 0%; }
}

@keyframes diagonali-destra {
  from { background-position: 100% 100%; }
  to   { background-position: 0% 0%; }
}

@media (hover: hover) and (pointer: fine) {
  * {
    cursor: none !important;
  }
}






.glass-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  font-family: Times, serif;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: -4px;
  white-space: nowrap;
  user-select: none;
}

.cursor-l {
  color: #c3a055;
}

.cursor-r {
  color: #111111;
}

@media (hover: none), (pointer: coarse) {
  .glass-cursor {
    display: none;
  }

  * {
    cursor: auto !important;
  }
}







/* Reset generale */
    * {
      margin: 0; padding: 0; box-sizing: border-box;
    }

    html,
    body {
      width: 100%; min-height: 100%; font-family: serif;
    }

    body {
      overflow-x: hidden;
    }

    /* Fascia superiore con logo */
    .header {
      width: 100%; height: 250px; display: flex; align-items: center; justify-content: center; background-color: #ffffff;
      padding: 15px 15px;
    }

    .logo {
      display: block; max-height: 250px; width: auto; height: auto; object-fit: contain;
    }

    /* Contenitore delle due sezioni */
    .prehome {
      display: flex; width: 100%; min-height: calc(100vh - 300px); min-height: calc(100svh - 300px);  padding-left: 7%;
  padding-right: 7%;
    }

    /* Singole sezioni: 50% ciascuna */
    .sezione {
      position: relative; flex: 1 1 50%; min-width: 0; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; color: #ada379; overflow: hidden;
      transition: filter 0.3s ease;
    }

    .sezione:hover {
      filter: brightness(0.88);
        filter: sepia(0.48);
    }

    .sezione h2 {
      font-size: clamp(22px, 3vw, 42px); font-weight: 400; letter-spacing: 2px; padding: 20px;
        text-shadow: 1px 1px 2px rgba(235, 255, 0, 0.31);
    }

    /* Personalizzazione colori */
    .sezione-sinistra {
  background: url("../images/distribuzione.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

    .sezione-destra {
  background: url("../images/ristorazione.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

    /* Smartphone: sezioni una sotto l'altra */
    @media (max-width: 600px) {
      .header {
        height: 250px;
      }

      .logo {
        max-height: 250px;
      }

      .prehome {
        min-height: calc(100vh - 300px); min-height: calc(100svh - 300px); flex-direction: column;
      }

      .sezione {
        flex: 1 1 50%; min-height: 240px; 
      }

      .sezione h2 {
        font-size: clamp(16px, 6vw, 22px);
      }
    }
      
      
      /* FOOTER A UNA SOLA RIGA */
.footer {
  width: 100%;
  min-height: 50px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #777777;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
}

.footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
  .footer {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 10px;
  }
}
      
      
      .bandiera {
  height: 26px;
  border-radius: 50%;
  vertical-align: -2px;
}
      
      .lingua,
.lingua:visited,
.lingua:hover,
.lingua:active {
  color: #ada379;
  text-decoration: none;
}
      
      .lingua:hover {
  opacity: 0.8;
  text-decoration:underline;
}
      
      