header {
    background-color: white;
    padding: 20px 50px;
}
nav a:not(:last-child)::after {
    content: " |";
    margin: 0 5px; /* Spaziatura tra link e barra */
}
.menu-top-bar {
  display: none !important;
}
.text-container-service {
    width: 60%;
  height: auto;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  
  padding: 0;
}
nav a:not(:last-child)::after {
    content: " |";
    margin: 0 5px;
}
.text-container-service h2 {
height:auto;
  align-self: stretch;
  flex-grow: 0;
  font-family: EniTab;
  font-size: 32px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.25;
  letter-spacing: normal;
  text-align: left;
  color: #040832;
  margin-bottom: 10px;
}

.text-container-service p {
    height: 112px;
  align-self: stretch;
  flex-grow: 0;
  font-family: OpenSans;
  font-size: 16px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.75;
  letter-spacing: normal;
  text-align: left;
  color: #222;
}

.main-content-service {
    height: 550px;
  align-self: stretch;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 32px;
  padding: 20px 84px 40px;
}

.card-wrapper-service {
    height: 300px;
  align-self: stretch;
  flex-grow: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  padding: 0;
}
.eni-card-service {
align-self: stretch;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 50%;

  border-radius: 16px;
  border: solid 1px #d4d4d4;
  background-color: #fff;
    padding:20px;
}
.icon-placeholder-service {
width: 64px;
  height: 64px;
  margin: 0 10px 10px 0;
  
}

.eni-card-service h3{
  height: 2px;
  align-self: stretch;
  flex-grow: 0;
  font-family: EniTab;
  font-size: 20px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: normal;
  text-align: left;
  color: #040832;
}

.eni-card-service p {
height: 104px;
  align-self: stretch;
  flex-grow: 0;
  font-family: OpenSans;
  font-size: 14px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.43;
  letter-spacing: 0.4px;
  text-align: left;
  color: #666;
}
.learn-more {
    font-family: EniTab;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.13;
    letter-spacing: 0.48px;
    color: #0958a5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;              /* invece di 136px */
    height: auto;             /* invece di 18px */
    text-align: left;
}

.learn-more::after {
    content: "";
    width: 18px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
    background-color: #0958a5;
    -webkit-mask: url("../../images/images tot/Right_Icon.svg") no-repeat center;
    mask: url("../../images/images tot/Right_Icon.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
}
a {
    text-decoration: none;
}



.customer-area {
    display: flex;
    background-color: white;
    max-width: 92%;
    max-height: 600px;
    height: auto;
    margin-left: 80px;
    margin-right: 80px;
    margin-bottom: 20px;
    overflow: hidden; /* Importante per la forma dell'immagine */
    margin-top: 40px;
}

/* Stili per l'immagine */
.image-container-customer {
    width: 40%; /* Regola in base alla proporzione desiderata */
    position: relative;
}

.background-image-customer {
    width: 100%;
    height: 100%;
    border-radius: 0 20px 20px 0;
    object-fit: cover; /* Assicura che l'immagine copra tutto lo spazio */
}

/* Stili per la forma dell'immagine con clip-path (per la curva) */
.image-container-customer::after {
    content: '';
    top: 0;
    right: 0;
    width: 20%;
    height: 100%;
    background-color: white; /* Stesso colore dello sfondo del contenitore di testo */
    /* Crea una curva usando un clip-path */
    
}

/* Stili per il testo a destra */
.text-container-customer {
    width: 60%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color:  #05344c;
    border-radius: 20px 0 0 20px;
}

.text-container-customer h2 {
    height: 48px;
    align-self: stretch;
    flex-grow: 0;
    font-family: EniTab;
    font-size: 40px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: left;
    color: #fff;
}

.text-container-customer p {
    height: 168px;
    align-self: stretch;
    flex-grow: 0;
    font-family: OpenSans;
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.75;
    letter-spacing: normal;
    text-align: left;
    color: #fff;
}
.Button-label {
  width: 55px;
  height: 18px;
  flex-grow: 0;
  font-family: EniTab;
  font-size: 16px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.13;
  letter-spacing: 0.48px;
  text-align: center;
  color: #040832;
}
.button-customer {
  width: 119px;
  height: 56px;
  flex-grow: 0;
  margin-top: 30px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  background-color: #fff;
    border: none;         /* rimuove il bordo */
    outline: none;        /* rimuove bordo blu al click */
}
.card-wrapper-report {
  align-self: stretch;
  flex-grow: 0;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  padding: 0;
  margin-left: 80px;
  margin-right: 80px;
  margin-top: 40px;
  margin-bottom: 40px;
}


.carousel-indicators6 {
  display: none;
}
.carousel-indicators7 {
  display: none;
}
@media screen and (max-width: 767px) {
  .menu-top-bar {
    display: flex !important;
 background-color: #0d1e3c !important;
  justify-content: space-between;
  align-items: center;
  
  padding: 5px 15px;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.menu-top-bar .menu-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.menu-top-bar img {
  height: 30px !important;  /* forza altezza */
  width: auto !important;    /* mantiene le proporzioni */
  object-fit: contain;        /* evita tagli */
}
  
    .hamburger {
    display: block;
    cursor: pointer;
    font-size: 28px;
    color: white;
    margin-left: 0;
  }

  /* Header */
  .intestazione {
    width: 100%;
    margin: 0;
    
  }

  .intestazione-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    
  }

  .logo-container {
    width: auto;
    justify-content: flex-start;
  }

  .intestazione-links {
    display: none;
  }

  .intestazione-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .intestazione-nav.active {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    padding: 0;
    margin: 0;
  }

  .nav-menu li {
    margin: 8px 0;
  }

  header {
    padding: 8px 15px;
  }

  nav a:not(:last-child)::after {
    content: ""; /* tolgo la barra verticale */
  }

  /* Testo introduttivo */
  .text-container-service {
    width: 100%;
    height: auto;
    padding: 0 10px;
  }

  .text-container-service h2 {
    font-size: 20px;
    line-height: 1.3;
    margin-right: 20px;
  }

  .text-container-service p {
    font-size: 13px;
    line-height: 1.5;
    height: auto;
    margin-right: 20px;
  }

  .main-content-service {
    height: 650px;
  align-self: stretch;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 32px;
  padding: 0px 0px 0px !important;
 
}
  /* Cards servizi */
  .card-wrapper-service {
    flex-direction: row !important;
    justify-content: flex-start !important;
    display: flex;
    overflow-x: auto; /* scroll solo orizzontale */
    scroll-behavior: smooth;
    width: 100% !important;
    gap: 10px !important;
    transition: transform 0.5s ease !important;
    height: auto; /* <-- cambiare da 500px a auto */
    background-color: hwb(0 91% 7%) ;
  
  }

   .carousel-indicators6 {
    display: flex !important;
    justify-content: center;
   
    gap: 0.5rem;
    
  }

  .carousel-indicators6 button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
  }

  .carousel-indicators6 button.active {
    background: #080849; /* colore evidenziato */
  }

  .carousel-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px ;
  background-color: hwb(0 91% 7%) ;
}

.carousel-indicators7 {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 8px;
  z-index: 10; /* per sicurezza */
}

  .carousel-indicators7 button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
  }

  .carousel-indicators7 button.active {
    background: #080849; /* colore evidenziato */
  }

  .eni-card-service {
    flex: 0 0 100%; /* Le card crescono tutte equamente */

      max-width: 250px !important;
      
      background-color: #ffffff; 
      border: 1px solid var(--eni-border-gray); 
      border-radius: 10px; 
      padding: 10px 25px; 
      min-height: 280px !important; 
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
      display: flex; 
      flex-direction: column; 
      align-items: flex-start; 
      text-align: left; 
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      overflow-y: visible;
  }

  .eni-card-service h3 {
    font-size: 16px;
    line-height: 1.4;
  }

  .eni-card-service p {
    font-size: 12px;
    line-height: 1.4;
    height: auto;
  }

  .learn-more {
    font-size: 14px;
    margin: 10px 0 0 0;
  }

  /* Area Clienti Riservata */
  .customer-area {
    flex-direction: column-reverse;
    width: 100%;
    margin: 15px 0;
    height: auto;
    max-width: 100%;
  }

  
  .text-container-customer {
    width: 90%;
    padding: 18px;
    text-align: center;
    margin-top: 40px !important;
    border-radius: 0px !important;
    
    
  }

  .text-container-customer h2 {
    font-size: 18px;
  }

  .text-container-customer p {
    font-size: 13px;
  }
  nav a:not(:last-child)::after {
    content: " |";
    margin: 0 5px;
}
    .button-customer {
        margin-top: 72px !important;
        margin-left: 0px !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;

        width: 100px;
        height: 44px;
        padding: 0;

        align-self: flex-start !important;
    }
  .image-container-customer {
    display: none;
  }
  .Button-label {
    font-size: 14px;
  }

  /* Report */
  .card-wrapper-report {
    flex-direction: row !important;
    justify-content: flex-start !important;
    display: flex;
    overflow-x: auto; /* non scroll manuale */
    scroll-behavior: smooth;
    width: 100%;
    gap: 10px !important;
    transition: transform 0.5s ease !important;
    margin-top: 20px !important;
    margin-left: 0px !important;
    margin-right: 0px !important;
    height: 200px !important;
  
  }
.scroll-top-btn {
    
    bottom: 10px;
    right: 30px;
    z-index: 9999; 
  }
   .footer-areas {
    margin-left: 0;
    text-align: left;
    margin-right: 25px;
    flex: 1.5 1 0px !important;
  }
  .footer-logo::after {
        position: relative;   /* ora segue il flusso del contenitore */
        width: 100% !important;          /* occupa tutta la larghezza del container */
        margin-top: 10px;     /* spazio sotto il logo */
    }
    .footer-info {

  max-width: 500px;          /* stessa larghezza della descrizione */
  width: 100%;               /* occupa tutta la larghezza disponibile */
  display:  block ;
  grid-template-columns: 1fr 1fr; /* due colonne uguali */
  column-gap: 20px;           /* distanza tra le colonne */
  text-align: left;           /* testo allineato a sinistra */
}
    
   .footer-info::after {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background-color: #ffffff; /* bianca */
        margin-top: 20px;          /* spazio sopra la linea */
    }
  .footer-top { flex-direction: column; gap: 10px; }
  .footer-logo::after { width: 140px; }
  .footer-policies { flex: 1; }
  .footer-policies ul { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .footer-description p {
  margin: 18px 0 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #fff;
  text-align: justify;
  max-width: 320px;
  margin-top: 60px;
}
.footer-areas ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* ora 3 colonne */
  gap: 20px 20px;
}

}
/* === OVERRIDE MOBILE (≤375px): padding 16px/32px, spaziature coerenti, scroll laterale === */
@media screen and (max-width: 767px) {

    /* Riga di card: scorre solo orizzontale, no tagli verticali */
    .card-wrapper-service {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important; /* una sola riga → scorrimento laterale */
        justify-content: flex-start !important;
        align-items: stretch !important;

        overflow-x: auto !important; /* scroll orizzontale */
        overflow-y: visible !important; /* evita tagli verticali */

        width: 100% !important;
        height: auto !important;
        gap: 12px !important;
        padding: 0 8px !important; /* piccolo gutter ai lati del wrapper */
        background-color: transparent !important;

        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    /* Scheda: dimensione compatta e padding come da reference */
    .eni-card-service {
        flex: 0 0 auto !important;
        /* larghezza card a vista: regola 82–88vw in base a quanta porzione vuoi mostrare */
        width: 84vw !important;
        max-width: none !important;

        /* >>> MISURE DI RIFERIMENTO <<< */
        padding: 20px 32px 40px 16px !important; /* top 20, right 32, bottom 40, left 16 */

        border: 1px solid #e6e6e6 !important;
        border-radius: 16px !important;
        background-color: #fff !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;

        min-height: auto !important; /* nessun taglio del contenuto */
        height: auto !important;

        scroll-snap-align: start;
    }

    /* Icona: dimensione e spazio verso il titolo */
    .icon-placeholder-service {
        width: 48px !important; /* in linea con la reference (puoi variare 44–52) */
        height: 48px !important;
        margin: 0 0 16px 0 !important; /* distanza icona → titolo = 16px */
        display: inline-block !important;
    }

    /* Titolo: bold, compatto */
    .eni-card-service h3 {
        font-family: EniTab;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
        color: #040832 !important;

        margin: 0 0 8px 0 !important; /* spazio titolo → paragrafo */
        height: auto !important;
    }

    /* Testo: leggibile, no tagli, ampiezza visiva simile alla reference */
    .eni-card-service p {
        font-family: OpenSans;
        font-size: 13px !important;
        line-height: 1.6 !important;
        color: #666 !important;

        /* limita la lunghezza di riga per somigliare alla prima immagine */
        max-width: 36ch !important; /* regola 34–38ch se serve */
        margin: 0 0 16px 0 !important; /* spazio paragrafo → link */
        height: auto !important;
    }

    /* Link azione: stile blu + freccia, allineato alla tipografia */
    .learn-more {
        font-family: EniTab;
    }
}

/* =========================================
   MOBILE - allineamento preciso Indietro | Offerta
   ========================================= */
@media screen and (max-width: 767px) {

    .mobile-offer-header {
        height: 44px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
    }

    .mobile-offer-nav {
        position: relative !important;
        height: 44px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-offer-nav a::after {
        content: none !important;
        display: none !important;
    }

    .btn-indietro {
        position: static !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        text-decoration: none !important;
    }

    .back-arrow {
        position: absolute !important;
        left: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: #0958a5 !important;
        font-size: 14px !important;
    }

    .back-label {
        position: absolute !important;
        left: 44px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: #0958a5 !important;
        font-family: EniTab, Arial, sans-serif !important;
        font-size: 14px !important;
    }

    .separator {
        position: absolute !important;
        left: 106px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        color: #0958a5 !important;
        font-size: 14px !important;
    }

    .link-return {
        position: absolute !important;
        left: 119px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #0958a5 !important;
        text-decoration: none !important;
        font-family: EniTab, Arial, sans-serif !important;
        font-size: 14px !important;
    }
}

@media screen and (max-width: 767px) {
    .eni-card-service::after {
        content: none !important;
        display: none !important;
    }
    .eni-card-service > a:last-child {
        margin-bottom: 20px !important;
    }
    .eni-card-service > p:last-child {
        margin-bottom: 20px !important;
    }
}