/* ====== FONT ====== */
@font-face{
  font-family: "Roboto Condensed Local";
  src: url("assets/fonts/RobotoCondensed-VariableFont_wght.woff2") format("woff2"),
       url("assets/fonts/RobotoCondensed-VariableFont_wght.woff") format("woff"),
       url("assets/fonts/RobotoCondensed-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "Roboto Condensed Local";
  src: url("assets/fonts/RobotoCondensed-Italic-VariableFont_wght.woff2") format("woff2"),
       url("assets/fonts/RobotoCondensed-Italic-VariableFont_wght.woff") format("woff"),
       url("assets/fonts/RobotoCondensed-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
:root{
  --aesse-blue:#0b3f8a;
  --aesse-dark:#0a2f66;
}

html, body{ height:100%; }
body{
  margin:0;
  font-family: "Roboto Condensed Local", Arial, sans-serif;
  
  font-optical-sizing: auto;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  font-synthesis: none;
-webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* HEAD */
.head-bar
{ 
    /*background: url("assets/img/HOME/Barra_bianca_head.jpg") center/cover no-repeat; */
    height: 79px;
    margin-top: 20px;
}
.head-inner{ min-height: 12px; display:flex; align-items:center; justify-content:center; }
.head-logo{ height: 73px; width:auto; }

/* TOP LINE */
.topline{ 
    background:#ffffff; padding: 6px 0; 
    padding-top: 12px;
    padding-bottom: 12px;

}
.topline-text{ color:#7a7f87; font-size: 28px; font-weight: 400; line-height: 1.2; }

/* MENU */
.menu-bar{
  background: url("assets/img/HOME/Barra_grigia_menu.jpg") center/cover no-repeat;
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

/* MENU spacing + overlay on hero (desktop) */
.menu-bar .navbar-nav{
  column-gap: 3.2rem; 
}
.menu-bar .nav-link{
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

@media (min-width: 992px){
  .menu-bar{
    position: relative;
    z-index: 20;
    margin-bottom: -56px; /* altezza approssimativa della barra */
  }
}

.menu-bar .nav-link{
  color: var(--aesse-blue);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;

  position: relative;
  text-decoration: none;
  transition: color 0.25s ease;
}

/* linea sotto animata */
.menu-bar .nav-link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background-color: var(--aesse-blue);
  transition: width 0.25s ease;
}

/* hover */
.menu-bar .nav-link:hover{
  color: var(--aesse-dark);
}

.menu-bar .nav-link:hover::after{
  width: 100%;
}

/* HERO */
/* HERO wrapper */
.hero{
  position: relative;
  height: auto;      /* <-- lascia che l'immagine decida l'altezza */
  overflow: visible; /* <-- non tagliare nulla */
}

/* carousel come "sfondo" */
.hero #heroCarousel{
  position: relative; /* <-- non più assoluto */
  z-index: 0;
}

.hero #heroCarousel .carousel-inner,
.hero #heroCarousel .carousel-item{
  height: 100%;
}

.hero-img{
  width: 100%;
  height: auto;     
  display: block;   
}

/* contenuto sopra le immagini */
.hero-container{
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-container .login-box,
.hero-container input,
.hero-container button{
  pointer-events: auto; /* opzionale: cliccabili */
}

.hero .carousel-control-prev,
.hero .carousel-control-next{
  z-index: 3;
  width: auto;
  opacity: 1;
}

.hero .carousel-control-prev{
  left: clamp(18px, 6vw, 50px);
}

.hero .carousel-control-next{
  right: clamp(18px, 6vw, 50px);
}

.hero .carousel-control-prev img,
.hero .carousel-control-next img{
  width: 34px;
  height: auto;
  filter: none;
  opacity: 1;
}

.hero-boxes{ position:absolute; left: 0; right: 0; bottom: 120px; }
.login-strip{
  margin-top: -35px;   /* aumenta/diminuisci: -20 / -50 */
  position: relative;
  z-index: 5;          /* così sta sopra eventuali ombre */
}
.login-box{
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
  padding: 20px 20px 22px 20px;
}
.login-title{
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.78rem;
  letter-spacing: .02em;
  margin-bottom: 10px;
  color:#0b0f14;
}
.btn-aesse{
  background: var(--aesse-blue);
  border-color: var(--aesse-blue);
  font-weight: 800;
  letter-spacing: .03em;
  color: white;
}
.btn-aesse:hover{ background: var(--aesse-dark); border-color: var(--aesse-dark); color: gray; }

@media (max-width: 991.98px){
  .hero{
    height: auto;               
  }

  .hero #heroCarousel{
    position: relative;
    inset: auto;
  }

  /* altezza immagini in mobile */
  /*
  .hero #heroCarousel,
  .hero #heroCarousel .carousel-inner,
  .hero #heroCarousel .carousel-item{
    height: 56vw;
    min-height: 260px;
    max-height: 520px;
  }
  */

  /* contenuto sotto le immagini */
  .hero-container{
    height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hero-boxes{
    position: static;
    margin-top: 10px;
  }

  /* (opzionale) nascondi lo sticker in mobile oppure sopra i box */
  .hero-sticker{
    position: static;
    transform: none;
    width: min(460px, 80%);
    margin: 10px auto 0 auto;
    display: block;
  }
}

/* 3 COLS */
.home-icon{ height: 117px; width:auto; }
.home-title{ color: var(--aesse-blue); font-weight: 400; letter-spacing: .04em; font-size: 5.00rem; padding: 40px 40px; }
.home-text{ color: #000000; max-width: 340px; font-weight: 300; margin: 0 auto; line-height: 1.65; font-size: 1.40rem; }

@media (min-width: 992px){

  /* Il box Mission deve essere il "contenitore" delle due righe */
  #mission.home-col-divider{
    position: relative;
  }

  /* LINEA SINISTRA (tra Business e Mission) */
  #mission.home-col-divider::before{
    content:"";
    position:absolute;
    top:100px;
    bottom:0;
    width:2px;

    /* centro del gutter a sinistra */
    left: calc(-1 * var(--bs-gutter-x) / 2);

    background: rgba(0,0,0,.18);
    transform: translateX(4px); /* tua correzione: +4px a destra */
    pointer-events:none;
  }

  /* LINEA DESTRA (tra Mission e La Rete) */
  #mission.home-col-divider::after{
    content:"";
    position:absolute;
    top:100px;
    bottom:0;
    width:2px;

    /* centro del gutter a destra */
    right: calc(-1 * var(--bs-gutter-x) / 2);

    background: rgba(0,0,0,.18);
    transform: translateX(-5px); /* tua correzione: +10px a destra */
    pointer-events:none;
  }

  /* Sicurezza: se per sbaglio #rete ha ancora home-col-divider, spengo la sua linea */
  #rete.home-col-divider::before{
    content:none !important;
  }
}


/* LOGISTICA */

.logistica{
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* immagine full-width con altezza proporzionata */
.logistica-img{
  width: 100%;
  height: auto;
  display: block;
}

/* overlay blu con diagonale (stile esempio) */
.logistica-overlay{
  position: absolute;
  inset: 0;
  background: rgba(13, 59, 120, 0.88);
  clip-path: polygon(0 0, 65% 0, 30% 100%, 0 100%);
  pointer-events: none;
}

/* il contenuto deve stare sopra immagine/overlay */
.logistica .container{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
}

@media (max-width: 575.98px){

  .logistica{ }


  .logistica-content{
    padding: 24px 18px;
    max-width: 100%;
  }

  .logistica-title{
    font-size: 1.4rem;
  }

  .logistica-text{
    font-size: 0.95rem;
  }

  .logistica-icon{
    height: 42px;
    width: auto;
  }

}

/* contenuto sopra le immagini */
.logistica-content{
  position: relative;
  z-index: 2;

  padding: 52px 40px;
  max-width: 560px;

  margin-top: 0px;
}
.logistica-icon{ height: 161px; width:auto; }
.logistica-title{ font-weight: 400; letter-spacing: .04em; font-size: 5.00rem; }
.logistica-text{ font-size: 1.60rem; font-weight: 300; margin: 0 auto; line-height: 1.15;  opacity: .95; padding: 40px 0px; padding: 44px 0; }

/* QUALITA */
.qualita-wrap{ background: url("assets/img/HOME/Sfondo_grigio.jpg") center/cover no-repeat; height: auto; }
.qualita-icon{ height: 169px; width:auto; }
.qualita-title{ color: var(--aesse-blue); font-size: 5.00rem; font-weight: 400; letter-spacing: .04em; }
.qualita-text{ font-size: 1.60rem; font-weight: 700; margin: 0 auto; line-height: 1.15; }

@media (max-width: 991.98px){
  .qualita-title{ font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .qualita-icon{ height: 90px; }
  .qualita-text{ font-size: 1.05rem; line-height: 1.25; }

  /* immagini certificati: non devono esplodere */
  .qualita-wrap img.img-fluid{
    max-width: 100%;
    height: auto;
  }
}

/* RISORSE */

.risorse{
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* immagine full-width con altezza proporzionata */
.risorse-img{
  width: 100%;
  height: auto;
  display: block;
}

/* contenuto sopra l'immagine */
.risorse .container{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
}

/* contenuto sopra le immagini */
.risorse-content{
  position: relative;
  z-index: 2;

  padding: 52px 40px;
  max-width: 1000px;

  margin-top: 0px;
}
.risorse-icon{ height: 175px; width:auto; flex: 0 0 auto; object-fit: contain; display: block; }
.risorse-title{ color: var(--aesse-blue); font-weight: 400; letter-spacing: .04em; font-size: 5.00rem; }
.risorse-text{ color: #000000; max-width: 1000px; font-size: 1.60rem; font-weight: 300; margin: 0 auto; line-height: 1.65;  opacity: .95; padding: 40px 0px; }

@media (max-width: 575.98px){

  .risorse{ }


  .risorse-content{
    padding: 24px 18px;
    max-width: 100%;
  }

  .risorse-title{
    font-size: 1.4rem;
  }

  .risorse-text{
    font-size: 0.95rem;
  }

  .risorse-icon{
    height: 42px;
    width: auto;
  }

}

/* ====== LOGISTICA + RISORSE: responsive anche tablet ====== */
@media (max-width: 991.98px){

  /* LOGISTICA */
  .logistica{
    min-height: 0;
    padding: 18px 0;
    background-size: 120% 100%, cover;   /* overlay blu più “adatto” su mobile */
    background-position: right, center;
  }
  .logistica-icon{ height: 90px; }
  .logistica-title{ font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .logistica-text{ font-size: 1.05rem; line-height: 1.25; padding: 14px 0; }
  .logistica-content{ padding: 22px 18px; max-width: 100%; }

  /* RISORSE */
  .risorse{
    min-height: 0;
    padding: 18px 0;
    background-position: right center;
  }
  .risorse-icon{ height: 90px; }
  .risorse-title{ font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .risorse-text{ font-size: 1.05rem; line-height: 1.35; padding: 14px 0; }
  .risorse-content{ padding: 22px 18px; max-width: 100%; }
}

/* CONTATTI + FOOTER */

/* sezioni a sfondo pieno (escono dal max-width della page-shell) */
.full-bleed{
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ============================= */
/* CONTATTI */
/* ============================= */

.contatti-section {
    background-color: #8d8d8d;   /* stesso grigio */
    padding: 30px 0 ;
    color: #fff;
}

.contatti-section .container {
    max-width: 1200px;  /* oppure quello che usi nelle altre sezioni */
    margin: 0 auto;
}

.contatti{
  background: url("assets/img/HOME/Sfondo_Grigio_scuro.jpg") center/cover no-repeat;
}

.contatti-container{
  padding-top: 56px;
  padding-bottom: 26px;
}

.contatti-head{
  display:flex;
  align-items:center;
  gap: 24px;
  margin-bottom: 22px;
  margin-left: 20px;
}

.contatti-icon{ height: 120px; width:auto; }

.contatti-title{
  color:#fff;
  font-weight: 400;
  letter-spacing: .04em;
  font-size: 4.6rem;
  line-height: 1;
  margin: 0;
}

.contatti-text{
  color:#fff;
  font-size: 1.20rem;
  font-weight: 300;
  line-height: 1.25;
  margin: 0 0 12px 0;
}

.contatti-strong{ font-weight: 700; }

.contatti-grid{ row-gap: 18px; margin-left: 10px; }

.contatti-spacer{ height: 22px; }
.contatti-spacer-sm{ height: 14px; }

.contatti-mail{
  color:#fff;
  text-decoration: underline;
}

.contatti-divider{
  background: url("assets/img/HOME/Linea_Orizzontale.jpg") center/cover repeat;
  height: 2px;
  margin: 22px 0 14px 0;
  opacity: .9;
}

.contatti-bottom{ text-align:center; }
.contatti-bottom-text{
  font-size: 1.00rem;
  font-weight: 300;
  margin: 0;
  margin-bottom: -20px;
}

/* responsive */
@media (max-width: 991.98px){
  .contatti-container{ padding-top: 40px; padding-bottom: 20px; }
  .contatti-icon{ height: 86px; }
  .contatti-title{ font-size: clamp(2.6rem, 8.5vw, 3.6rem); }
  .contatti-text{ font-size: 1.05rem; margin-bottom: 10px; }
  .contatti-bottom-text{ font-size: .95rem; }
}


/* =========================
   FOOTER (unica barra + privacy dentro la barra in basso)
   ========================= */

footer.site-footer{
  background: transparent;
  padding: 0;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bar{
  width: 100%;
  margin-left: 0;
  background: url("assets/img/HOME/Barra_grigia_footer.jpg") center/cover repeat;
  position: relative;
  display: block;
  padding: 14px 0 10px 0;
}
.footer-inner{
  position: relative;
  display:flex;
  align-items:center;
  gap: 48px;
  padding-bottom: 26px; /* spazio per privacy */
}


.footer-logo{ height: 50px; width:auto; }

/* menu distribuito */
.footer-nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  width: 100%;
}

.footer-nav a{
  color: #bcbcbc;
  font-size: 1.30rem;
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
  white-space: nowrap;
}

.footer-nav a:hover{
  color: #ffffff;
  text-decoration: underline;
}

/* PRIVACY dentro la stessa barra, appoggiata in basso */
.footer-privacy-link{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  color: #dcdcdc;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: .02em;
}

.footer-copyright{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: #dcdcdc;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: .02em;
  height: 20px;
  line-height: 18px;
}

.footer-privacy-link:hover{
  color: #ffffff;
  text-decoration: underline;
}
.footer-privacy-link:hover{
  color: #ffffff;
  text-decoration: underline;
}

.footer-privacy{
  color:#dcdcdc;
  text-decoration: underline;
  transition: color 0.25s ease;
}

.footer-privacy:hover{
  color:#ffffff;
}

/* su schermi piccoli vanno a capo in modo ordinato */
@media (max-width: 992px){
  .footer-inner{ flex-direction: column; gap: 18px; }
  .footer-nav{
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    width: auto;
  }
}


/* RESPONSIVE */
@media (max-width: 991.98px){
  .hero-right{ position: static; text-align: left !important; margin-top: 12px; }
  .hero-sticker{ position: static; display:block; margin: 10px 0 0 0; 
  transform: translateX(-50%);
}
  .hero-boxes{ position: static; margin-top: 18px; }
}


/* ===== HERO BOX SIZE (desktop) ===== */

.login-box-compact{ width:100%; max-width: 520px; }

.topline, .menu-bar{
  transform: none;
  filter: none;
}

.topline-nowrap{
  white-space: nowrap;
}
@media (max-width: 1100px){
  /* su schermi stretti, riduci leggermente invece di andare a capo */
  .topline-text{ font-size: 22px; }
}
@media (max-width: 768px){
  .topline-text{ font-size: 18px; }
}

/* rende tutte le immagini background responsive */
.logistica,
.risorse,
.contatti{
  background-repeat: no-repeat;
  background-size: cover;
}

.scrivici-modal .modal-content{ border-radius: 12px; }
.contatti-scrivici{ color:#fff; text-decoration:underline; font-weight: 700; }
.contatti-scrivici:hover{ text-decoration:underline; }


/* =========================
   BUSINESS PAGE
   ========================= */

.menu-bar .nav-link.active{
  color: var(--aesse-dark);
}
.menu-bar .nav-link.active::after{
  width: 100%;
}

/* HERO statico (1 immagine) */
.hero{
  position: relative;
}

.hero-static-img{
  width: 100%;
  height: auto;       /* 🔥 altezza proporzionata */
  display: block;
}

/* specifico per business */
.hero-business .hero-static-bg{
  background-image: url("assets/img/BUSINESS/Img_Business.jpg");
}

/* Titolo grande centrato in basso */
.hero-static-title{
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(18px, 4.2vw, 10px);
  text-align: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: clamp(2.6rem, 6.2vw, 3.5rem);
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

/* Corpo pagina */
.business-wrap{
  background: #ffffff;
  padding: 70px 0 80px 0;
}

.business-container{
  max-width: 980px;
}

.business-icon{
  height: 90px;
  width: auto;
  margin: 10px auto 26px auto;
  display: block;
}

.business-text{
  max-width: 980px;
  margin: 0 auto;
  /*color: #000;*/
  font-size: 1rem;
  /*font-weight: 300;*/
  line-height: 1.65;
}

.business-graph{
  margin: 54px auto 52px auto;
  max-width: 720px; /* mantiene proporzioni simili allo screenshot */
  display: block;
  height: 500px;
}

.business-bottom{
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 300;
  color: #000;
}

/* responsive */
@media (max-width: 991.98px){
  .business-wrap{ padding: 46px 0 54px 0; }
  .business-icon{ height: 90px; }
  .business-text{ font-size: 1.05rem; line-height: 1.5; }
  .business-bottom{ font-size: 1.05rem; line-height: 1.4; }
  .business-graph{ margin: 34px auto 34px auto; max-width: 92%; }
}

/* =========================
   MISSION PAGE
   ========================= */

/* sfondo hero mission */
.hero-mission .hero-static-bg{
  background-image: url("assets/img/MISSION/Img_Mission.jpg");
}

/* Corpo pagina */
.mission-wrap{
  background: #ffffff;
  padding: 70px 0 80px 0;
}

.mission-container{
  max-width: 980px;
}

.mission-icon{
  height: 120px;
  width: auto;
  margin: 10px auto 26px auto;
  display: block;
}

.mission-text{
  max-width: 980px;
  margin: 0 auto;
  /*color: #000;*/
  font-size: 1rem;
  /*font-weight: 300;*/
  line-height: 1.65;
}

.mission-graph{
  /* VECCHIA VERSIONE
  margin: 54px auto 52px auto;
  max-width: 760px;
  display: block;
  */
  margin: 40px auto 44px auto;
  max-width: 560px;     
  width: 100%;
  display: block;
  /* versione vecchia modificata
  margin: 36px auto 40px auto;
  max-width: 520px;
  width: 100%;
  display: block;
  opacity: 0.95;
  */
}

.mission-bottom{
  margin-top: 16px;
  font-size: 1rem;
  /*font-weight: 300;*/
  /*color: #000;*/
  line-height: 1.65;
}

/* responsive */
@media (max-width: 991.98px){
  .mission-wrap{ padding: 46px 0 54px 0; }
  .mission-icon{ height: 90px; }
  .mission-text{ font-size: 1.05rem; line-height: 1.5; }
  .mission-bottom{ font-size: 1.05rem; line-height: 1.4; }
  .mission-graph{ margin: 34px auto 34px auto; max-width: 92%; }
}

/* =========================
   RETE PAGE
   ========================= */

.hero-rete .hero-static-bg{
  background-image: url("assets/img/LA_RETE/Img_La_rete.jpg");
}

.rete-wrap{
  background:#ffffff;
  padding:70px 0 80px 0;
}

.rete-container{
  max-width:1000px;
}

.rete-icon{
  height:120px;
  margin:10px auto 26px auto;
  display:block;
}

.rete-text{
  max-width:980px;
  margin:0 auto;
  font-size: 1rem;
  /*font-weight:300;*/
  line-height:1.65;
}

.rete-graph{
  margin:60px auto;
  max-width:640px;
  display:block;
}

.rete-bottom{
  max-width: 980px;
  margin: 0 auto;
  /*color: #000;*/
  font-size: 1rem;
  /*font-weight:300;*/
  line-height: 1.65;
}


/* responsive */

.rete-graph{
  display: block;
  margin: 60px auto;
  width: clamp(320px, 55vw, 480px); /* <-- cambia 480px come vuoi */
  max-width: 100%;
  height: auto;
}

@media (max-width:991px){

  .rete-wrap{
    padding:46px 0;
  }

  .rete-icon{
    height:90px;
  }

  .rete-text,
  .rete-bottom{
    font-size:1.05rem;
  }

    /*
  .rete-graph{
      margin:40px auto;
      width:520px;
      max-width:100%;
      height:auto;
      display:block;
  }
    */

}

/* =========================
   SERVIZI PAGE (responsive + grande come originale)
   ========================= */

.hero-servizi .hero-static-bg{
  background-image: url("assets/img/SERVIZI/Img_Servizi.png");
}

/* area bianca sotto hero */
.servizi-wrap{
  background:#fff;
  padding: clamp(32px, 4.5vw, 64px) 0 clamp(44px, 5vw, 78px) 0;
}

/* container più largo (nell’originale i blocchi non sono “stretti”) */
.servizi-container{
  max-width: 1180px;      /* più grande */
}

.servizi-intro{
  max-width: 980px;
  margin: 0 auto clamp(18px, 2.6vw, 32px) auto;
  text-align: center;
  /*color:#111;*/
  font-size: 1rem;
  line-height: 1.65;
}
.servizi-intro p{ margin: 6px 0; }

/* GRIGLIA RESPONSIVA: 3 colonne quando c’è spazio, poi 2, poi 1 */
.servizi-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}

/* CARD: più grandi, bordo/ombra “soft” come screenshot */
.servizio-card{
  background:#fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  height: 100%;
}

.servizio-title{
  padding: 14px 16px;
  font-size: clamp(16px, 1.25vw, 22px);
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--aesse-blue);
  background:#fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* immagine: più alta e responsiva */
.servizio-img{
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* corpo testo: più leggibile e coerente */
.servizio-body{
  padding: 14px 16px 16px 16px;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.45;
  color:#222;
}

.servizio-bold{
  font-weight: 800;
  margin-bottom: 8px;
}

@media (min-width: 1400px){
  .servizi-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* =========================
   BRT-LIKE LAYOUT (contenuto centrato + bande laterali bianche)
   ========================= */

body{
  background:#ffffff;                 /* bande laterali */
}

/* “pagina” centrata, come brt.it */
.page-shell{
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
}

/* quando si superano i 1200px, il contenuto resta centrato e non “esplode” */
@media (min-width: 1400px){
  .page-shell{ max-width: 1240px; }
}

/* riduci i controlli “lg” di Bootstrap (in pagina erano enormi) */
.page-shell .form-control-lg{
  font-size: 1rem;
  padding: .55rem .75rem;
}
.page-shell .btn-lg{
  font-size: 1rem;
  padding: .55rem 1.05rem;
}

/* =========================
   RIDUZIONE SCALE TIPOGRAFICA (desktop)
   ========================= */

/* topline */
.topline-text{
  font-size: 18px;
  line-height: 1.25;
}

/* menu */
.menu-bar .navbar-nav{ column-gap: 1.6rem; }
.menu-bar .nav-link{
  font-size: 20px;
  padding-left: .65rem;
  padding-right: .65rem;
}
@media (min-width: 992px){
  .menu-bar{ margin-bottom: -46px; } /* leggermente meno “invadente” sull’hero */
}

/* login box */
.login-box{ padding: 14px 14px 16px 14px; }
.login-title{
  font-size: 1.05rem;
  margin-bottom: 8px;
}

/* 3 colonne home */
.home-icon-box{
  height: 70px;              /* altezza area icone */
  display:flex;
  align-items:flex-end;      /* allineamento bottom */
  justify-content:center;
  margin-bottom: 10px;
}
.home-icon{ height: 64px; width: auto; }
.home-icon-business{
  height: 52px;   /* circa 2/3 di 64px */
}
.home-title{
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
  padding: 10px 0 8px 0;
}
.home-text{
  font-size: 1rem;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* logistica */
.logistica-icon{ height: 84px; }
.logistica-title{
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
}
.logistica-text{
  font-size: 1rem;
  line-height: 1.35;
  padding: 14px 0;
}

/* qualità */
.qualita-icon{ height: 84px; }
.qualita-title{
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
}
.qualita-text{
  font-size: 1rem;
  line-height: 1.35;
}

/* risorse */
.risorse-icon{ height: 84px; }
.risorse-title{
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
}
.risorse-text{
  font-size: 1rem;
  line-height: 1.55;
  padding: 14px 0;
}

/* contatti */
.contatti-icon{ height: 76px; }
.contatti-title{
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
}
.contatti-text{
  font-size: 1rem;
  line-height: 1.35;
}

/* footer: menu un filo più “web” */
.footer-nav a{ font-size: .95rem; }

/* =========================
   MOBILE: resta com’è, ma evita testi troppo grandi
   ========================= */
@media (max-width: 768px){
  .topline-text{ font-size: 13px; }
  .menu-bar .nav-link{ font-size: 14px; }
}



/* ===== HERO LOGIN BOXES: più su e più vicini tra loro (desktop) ===== */
@media (min-width: 992px){
  .hero-container{ padding-top: 18px; padding-bottom: 18px; }

  /* alza i box */
  .hero-boxes{ bottom: 30px; }

  /* avvicina i due box tra loro */
  .hero-boxes{ gap: 130px; }
  .hero-boxes > [class*="col-"]{ display:flex; }

  /* dimensione box */
  .hero-boxes .login-box{ width: 460px; max-width: 460px; }

  /* campi un filo più compatti */
  .login-box .form-control-lg{
    font-size: 0.98rem;
    padding: .50rem .70rem;
  }
  .login-box .btn-lg{
    font-size: 0.98rem;
    padding: .50rem 1.00rem;
  }
}





/* =========================================================
   CONTATTI: riduzione altezza (come screenshot) + spostamento colonna dx
   ========================================================= */
.contatti .container.py-5{
  padding-top: 28px !important;
  padding-bottom: 18px !important;
}

/* i <br> nella sezione contatti erano usati come spaziatori: li sostituiamo con margin via CSS */
.contatti br{ display:none; }

.contatti .contatti-text{
  display:block;
  margin: 0 0 14px 0;
  line-height: 1.55;
}

/* separazione più ampia tra blocco "gestioni" e blocco telefono/mail */
@media (min-width: 992px){
  .contatti .row > .col-lg-6:first-child{
    padding-right: 30px;
  }
  .contatti .row > .col-lg-6:last-child{
    padding-left: 90px; /* <-- spostamento a destra (freccia) */
  }
}

/* barra e riga fiscale: margini compatti */
.contatti .contatti-bar{
  margin: 18px 0 14px 0;
}

/* HERO static proporzionato (img reale) */
.hero{
  position: relative;
}

.hero-static-img{
  width: 100%;
  height: auto;     /* altezza proporzionata */
  display: block;
}

/* non serve più la hero-static con altezza fissa */
.hero-static,
.hero-static-bg{
  display: none !important;
}

/* =========================
   FIX HERO BUSINESS: evita che il menu "entri" sopra l'immagine
   ========================= */
@media (min-width: 992px){
  .hero.hero-business{
    margin-top: 46px; /* deve compensare il -46px della .menu-bar */
  }
}

/* =========================
   FIX HERO MISSION: evita che il menu "entri" sopra l'immagine
   ========================= */
@media (min-width: 992px){
  .hero.hero-mission{
    margin-top: 46px; /* deve compensare il -46px della .menu-bar */
  }
}

/* =========================
   FIX HERO SERVIZI: evita che il menu "entri" sopra l'immagine
   ========================= */
@media (min-width: 992px){
  .hero.hero-servizi{
    margin-top: 46px; /* deve compensare il -46px della .menu-bar */
  }
}

/* =========================
   FIX HERO RETE: evita che il menu "entri" sopra l'immagine
   ========================= */
@media (min-width: 992px){
  .hero.hero-rete{
    margin-top: 46px; /* deve compensare il -46px della .menu-bar */
  }
}

/* CAPTCHA interno */
.captcha-box{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 14px;
  background: #f8f9fa;
}

.captcha-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.captcha-label{
  font-weight: 700;
}

.captcha-question-wrap{
  margin-bottom: 10px;
}

.captcha-question{
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .03em;
  background: #ffffff;
  border: 1px dashed #adb5bd;
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 120px;
  text-align: center;
}

#captchaAnswer[aria-invalid="true"]{
  border-color: #dc3545;
  box-shadow: 0 0 0 .2rem rgba(220,53,69,.15);
}

/* =========================================================
   FIX RESPONSIVE SMARTPHONE - AESSE
   ========================================================= */

/* 1) Topline: su schermi piccoli il testo deve andare a capo */
@media (max-width: 991.98px){
  .topline-nowrap{
    white-space: normal !important;
  }

  .topline{
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topline-text{
    font-size: clamp(14px, 3.7vw, 18px);
    line-height: 1.35;
    text-wrap: pretty;
  }
}

/* 2) Home hero: in mobile i box login devono stare sotto le immagini,
      e le immagini del carousel devono restare interamente visibili */
@media (max-width: 991.98px){
  .hero{
    overflow: visible;
  }

  .hero #heroCarousel,
  .hero #heroCarousel .carousel-inner,
  .hero #heroCarousel .carousel-item{
    height: auto !important;
  }

  .hero-img{
    width: 100%;
    height: auto !important;
    display: block;
    object-fit: contain;
    object-position: center center;
  }

  .hero-container{
    position: static;
    inset: auto;
    padding-top: 18px;
    padding-bottom: 0;
  }

  .hero-boxes{
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 0;
    row-gap: 18px;
  }

  .login-box,
  .login-box-compact{
    max-width: 100%;
    width: 100%;
  }

  .login-box{
    background: rgba(255,255,255,.94);
    backdrop-filter: none;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
    padding: 18px 16px 18px 16px;
  }

  .login-title{
    font-size: 1.15rem;
    margin-bottom: 12px;
  }

  .hero-container .row.g-2,
  .hero-container .row.g-1{
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
  }

  .hero-container .form-control-lg,
  .hero-container .btn-lg{
    font-size: 1rem;
    min-height: 48px;
  }

  .hero .carousel-control-prev,
  .hero .carousel-control-next{
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .hero .carousel-control-prev img,
  .hero .carousel-control-next img{
    width: 24px;
  }
}

/* 3) Risorse Umane: su smartphone l'immagine deve essere più presente,
      il testo non deve essere tagliato e la sezione deve crescere in altezza */
@media (max-width: 991.98px){
  .risorse{
    position: relative;
    overflow: hidden;
    min-height: 0;
    padding: 0;
  }

  .risorse-img{
    width: 100%;
    min-height: 520px;
    height: 100%;
    object-fit: cover;
    object-position: 72% center;
    display: block;
  }

  .risorse .container{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
  }

  .risorse-content{
    width: 100%;
    padding: 20px 18px 26px 18px;
    max-width: min(92%, 680px);
  }

  .risorse-content .d-flex{
    align-items: flex-start !important;
  }

  .risorse-icon{
    height: 58px;
    width: auto;
    flex: 0 0 auto;
  }

  .risorse-title{
    font-size: clamp(1.9rem, 7.2vw, 3rem);
    line-height: 1.05;
    letter-spacing: .03em;
  }

  .risorse-text{
    max-width: 100%;
    font-size: clamp(1rem, 3.6vw, 1.15rem);
    line-height: 1.35;
    padding: 10px 0 0 0;
    text-shadow: 0 1px 2px rgba(255,255,255,.2);
  }
}

/* taratura più stretta per smartphone piccoli */
@media (max-width: 575.98px){
  .risorse-img{
    min-height: 640px;
    object-position: 74% center;
  }

  .risorse-content{
    max-width: 94%;
    padding: 16px 16px 22px 16px;
  }

  .risorse-icon{
    height: 50px;
  }

  .risorse-title{
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .risorse-text{
    font-size: 0.98rem;
    line-height: 1.32;
  }
}

/* =========================================================
   LOGISTICA - FIX MOBILE
   stessa altezza immagine + overlay
   + micro-ottimizzazione grafica smartphone/tablet
   ========================================================= */

@media (max-width: 768px){

  .logistica{
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 !important;
    min-height: 260px;
  }

  /* immagine di sfondo: stessa altezza del contenitore */
  .logistica-img{
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
  }

  /* overlay blu: stessa altezza identica dell'immagine */
  .logistica-overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 260px;
    background: rgba(13, 59, 120, 0.90);
    clip-path: polygon(0 0, 66% 0, 38% 100%, 0 100%);
    pointer-events: none;
  }

  /* contenuto sopra tutto */
  .logistica .container{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
  }

  .logistica-content{
    position: relative;
    z-index: 2;
    max-width: 78%;
    padding: 18px 14px 14px 14px;
    margin-top: 0;
  }

  .logistica-icon{
    height: 58px !important;
    width: auto;
  }

  .logistica-title{
    font-size: 1.85rem !important;
    line-height: 1.05;
    letter-spacing: .02em;
  }

  .logistica-text{
    font-size: 0.95rem !important;
    line-height: 1.28;
    padding: 10px 0 0 0 !important;
    max-width: 100%;
  }
}

/* =========================================================
   AESSE - ULTERIORI FIX RESPONSIVE SMARTPHONE/TABLET
   logo + icone + immagini centrali + back to top
   ========================================================= */

/* 1) Logo header più bilanciato su smartphone/tablet */
@media (max-width: 991.98px){
  .head-bar{
    height: auto;
    margin-top: 10px;
    padding: 6px 0 4px 0;
  }

  .head-inner{
    min-height: auto;
  }

  .head-logo{
    height: clamp(42px, 11vw, 58px);
    max-width: 78vw;
    width: auto;
    display: block;
  }
}

/* 2) Icone pagine Business / Mission / Rete più bilanciate */
@media (max-width: 991.98px){
  .business-icon,
  .mission-icon,
  .rete-icon{
    height: clamp(56px, 14vw, 82px) !important;
    width: auto;
    max-width: 38vw;
    margin: 6px auto 18px auto;
    display: block;
  }
}

/* 3) Immagine cerchi colorati Business: togli effetto stirato
   4) Immagini centrali più bilanciate nelle 3 pagine */
.business-graph,
.mission-graph,
.rete-graph{
  width: 100%;
  height: auto !important;
  display: block;
}

/* Business */
.business-graph{
  margin: 30px auto 30px auto;
  max-width: 420px;
}

/* Mission */
.mission-graph{
  margin: 30px auto 30px auto;
  max-width: 360px;
}

/* Rete */
.rete-graph{
  margin: 34px auto 34px auto;
  max-width: 390px !important;
}

/* tablet / smartphone */
@media (max-width: 991.98px){
  .business-wrap,
  .mission-wrap,
  .rete-wrap{
    padding-top: 34px !important;
    padding-bottom: 40px !important;
  }

  .business-graph{
    max-width: min(78vw, 340px);
    margin: 24px auto 24px auto;
  }

  .mission-graph{
    max-width: min(72vw, 300px);
    margin: 24px auto 24px auto;
  }

  .rete-graph{
    max-width: min(76vw, 320px) !important;
    margin: 24px auto 24px auto;
  }

  .business-text,
  .mission-text,
  .rete-text,
  .business-bottom,
  .mission-bottom,
  .rete-bottom{
    max-width: 92%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================================================
   IMMAGINI CENTRALI MOLTO PIÙ PICCOLE SU SMARTPHONE
   ========================================================= */

@media (max-width: 575.98px){

  /* BUSINESS */
  .business-graph{
    max-width: 46vw !important;
    margin: 18px auto 20px auto;
  }

  /* MISSION */
  .mission-graph{
    max-width: 42vw !important;
    margin: 18px auto 20px auto;
  }

  /* RETE */
  .rete-graph{
    max-width: 44vw !important;
    margin: 18px auto 20px auto;
  }

}

/* 5) Pulsante "torna su" fisso in basso a destra */
.back-to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: rgba(11, 63, 138, 0.95);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .25s ease;
}

.back-to-top.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover{
  background: rgba(10, 47, 102, 0.98);
}

.back-to-top:focus{
  outline: 2px solid rgba(255,255,255,.8);
  outline-offset: 2px;
}

@media (max-width: 575.98px){
  .back-to-top{
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }
}

/* =========================================================
   FIX FINALI
   footer mobile + hover menu mobile + home desktop più compatta
   ========================================================= */

/* 1) FOOTER MOBILE:
   mostra anche la riga "Hosting & web design: QTrade" */
@media (max-width: 991.98px){

  .footer-bar{
    padding-bottom: 18px;
  }

  .footer-inner{
    padding-bottom: 0;
  }

  .footer-copyright{
    position: static;
    display: block;
    height: auto;
    line-height: 1.45;
    margin-top: 14px;
    padding: 0 14px;
    text-align: center;
    white-space: normal;
  }
}

/* 2) MENU MOBILE:
   sottolineatura più vicina alla voce e lunga quanto il testo */
@media (max-width: 991.98px){

  .menu-bar .navbar-nav{
    align-items: flex-start;
    gap: 0;
  }

  .menu-bar .nav-item{
    width: 100%;
  }

  .menu-bar .nav-link{
    display: inline-block;
    padding-top: .42rem;
    padding-bottom: .42rem;
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .menu-bar .nav-link::after{
    left: .75rem;
    right: .75rem;
    width: auto;
    bottom: 2px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
  }

  .menu-bar .nav-link:hover::after,
  .menu-bar .nav-link:focus::after,
  .menu-bar .nav-link.active::after{
    transform: scaleX(1);
  }
}

/* =========================================================
   HOME DESKTOP:
   distanze verticali più compatte e uniformi
   ========================================================= */
@media (min-width: 992px){

  /* riduce la distanza tra immagini superiori e blocchi icona/titolo */
  .home-wrap{
    padding-top: 18px !important;
  }

  .home-icon-box{
    height: 44px;
    margin-bottom: 2px;
  }

  .home-icon{
    height: 42px;
  }

  .home-icon-business{
    height: 36px;
  }

  /* distanza icona -> titolo molto ridotta */
  .home-title{
    padding: 0;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1;
  }

  /* distanza titolo -> testo leggermente più aperta,
     ma armonizzata con la prima */
  .home-text{
    margin-top: 0;
    line-height: 1.45;
  }

  /* accorcia anche le linee verticali rosse */
  #business.home-col-divider::before,
  #mission.home-col-divider::before,
  #mission.home-col-divider::after,
  #rete.home-col-divider::after{
    top: 14px;
  }
}

/* =========================================================
   HOME SMARTPHONE:
   distanze verticali uniformi tra immagine, icona, titolo e testo
   ========================================================= */

@media (max-width: 575.98px){

  /* distanza immagine -> icona */
  .home-wrap{
    padding-top: 16px !important;
  }

  /* icona */
  .home-icon-box{
    height: auto;
    margin-bottom: 16px;
  }

  .home-icon{
    height: 40px;
  }

  .home-icon-business{
    height: 34px;
  }

  /* titolo BUSINESS / MISSION / LA RETE */
  .home-title{
    margin-top: 0;
    margin-bottom: 16px;
    padding: 0;
    line-height: 1.05;
  }

  /* testo paragrafo */
  .home-text{
    margin-top: 0;
    line-height: 1.45;
  }

  /* accorcia anche le linee verticali rosse */
  #business.home-col-divider::before,
  #mission.home-col-divider::before,
  #mission.home-col-divider::after,
  #rete.home-col-divider::after{
    top: 18px;
  }

}