/* =========================================================
   RESET + BASE
   ========================================================= */
* { margin: 0; padding: 0; }

html, body { height: 100%; }

a { color: #00acef; text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }

input, textarea, select { font-size: 12px; font-family: arial, sans-serif; }
textarea { overflow: auto; }

/* =========================================================
   TYPOGRAPHY — GLOBAL
   ========================================================= */

body{
  font-family: verdana, arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0,0,0,0.72);
  background: #fff;
}

h1, h2, h3{
  font-family: 'Raleway', sans-serif;
  color: rgba(0,0,0,0.88);
  letter-spacing: -0.005em;
}

h1{
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
  text-align: center;
}

h2{
  font-size: 18px;
  margin: 26px 0 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

h3{
  font-size: 16px;
  line-height: 1.35;
  margin: 16px 0 6px;
}

p{
  margin: 0 0 10px;
}


/* =========================================================
   LAYOUT
   ========================================================= */
:root{
  --page-pad: clamp(14px, 4vw, 90px);       /* bordo globale */
  --header-line: rgba(0,0,0,0.12);
}

:root{
  --scroll-offset: 140px;                  /* altezza header sticky */
}


#wrapper{ width: 100%; }
.shell{
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  box-sizing: border-box;
}

.container{
  background: transparent;
  box-shadow: none;
}

.innerContainer,
#navigation,
#navigation ul,
.main{
  padding-left: 0;
  padding-right: 0;
}

.innerContainer{
  margin-bottom: 56px;
  margin-top: 34px;
}

.featured{
  padding-bottom: 10px;
}

/* =========================================================
   HEADER
   ========================================================= */
#header{
  position: sticky;      
  top: 0;                
  z-index: 9999; 
  height: auto;
  margin: 0;
  background: #f6f7f9;
  margin-left: calc(-1 * var(--page-pad));
  margin-right: calc(-1 * var(--page-pad));
  padding: 10px 0 12px;
}

#header::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom:0;
  height:1px;
  background: var(--header-line);
  pointer-events:none;
}

#header .header-inner{
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  box-sizing: border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 20px;
  width: 100%;
  min-height: 52px;
}

#header .brand{
  display:flex;
  align-items:center;
  gap: 16px;
}

#logo{
  float:none;
  width:auto;
  margin:0;
  padding:0;
  font-size:0;
  line-height:0;
}

#header #logo img{
  display:block;
  width:auto;
  max-height:50px;
}

#header .header-tools{
  display:flex;
  align-items:center;
  gap: 14px;
}

#header .languages img{
  display:block;
  height:18px;
  width:auto;
}

/* =========================================================
   HEADER — SEARCH + LINGUE
   ========================================================= */

#header .search{
  width: auto;
  margin-left: 0;
}

#header .search form{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 999px;
  border-color: rgba(0,0,0,0.14);
  background: #fff;
}


#header .search input.field{
  float: none;
  width: 220px;
  height: auto;
  line-height: normal;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: #222;
}

#header .search input.field::placeholder{
  color: rgba(0,0,0,0.45);
}

#header .search input.search-btn{
  float: none;
  width: 18px;
  height: 18px;
  background-position: center;
  background-size: 18px 18px;
  opacity: 0.75;
}

#header .search input.search-btn:hover{
  opacity: 1;
}

#header .search .search-btn{
  background: url(../images/search-ico.png) no-repeat center;
  background-size: 18px 18px;
  width: 18px;
  height: 18px;
  border: 0;
  padding: 0;
  cursor: pointer;
}

#header .languages{
  display:flex;
  align-items:center;
  gap: 10px;
}

#header .languages a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

#header .languages a:hover{
  border-color: rgba(0,0,0,0.28);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

#header .languages a.active{
  border-color: rgba(0,0,0,0.45);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

#header .languages img{
  height: 16px;
  width: auto;
  display:block;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

#navigation{
  position: sticky;      
  top: 74px;             /* altezza header */
  z-index: 9998;        
  margin: 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  background: #ffffff;
  margin-left: calc(-1 * var(--page-pad));
  margin-right: calc(-1 * var(--page-pad));
}

#navigation .nav{
  display:flex;
  align-items:center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 16px 0;
  padding-top: 12px;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

#navigation .nav > li{
  float: none;
  padding: 0;
}

#navigation .nav > li > a{
  position: relative;
  display:inline-block;
  padding: 4px 0;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(0,0,0,0.65);
  text-decoration: none;
  border: 0;
}

#navigation .nav > li > a:hover{
  color: rgba(0,0,0,0.85);
}

#navigation .nav > li > a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:100%;
  height:1.5px;
  background:#75A5CD;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}

#navigation .nav > li > a:hover::after{
  transform: scaleX(1);
}

#navigation .nav > li.active > a{
  color: rgba(0,0,0,0.9);
  font-weight: 500;
}

#navigation .nav > li.active > a::after{
  transform: scaleX(1);
}

/* =========================================================
   HOME — HERO BRAND
   ========================================================= */
 
.home-hero-brand{
  background: #ffffff;
  color: #111;
  padding: 46px 0 22px;
}

.home-hero-brand-inner{
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left; 
}

.home-hero-brand-text{
  max-width: 60ch;
}

.home-hero-brand-logo{
  max-width: 550px;
  width: 100%;
  height: auto;
  display: block;
}

.home-hero-brand-text{
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: #333;
  max-width: 56ch;
  font-weight: 350;
}

.home-hero-brand-text strong{
  font-weight: 600;

}

/* =========================================================
   HOME — FEATURES
   ========================================================= */
.home-features{
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  padding-top: 20px;
  padding-bottom: 20px;
  background: #f6f7f9;
}

.home-features-grid{
  max-width: calc(100% - (2 * var(--page-pad)));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}   

.feature-card{
  text-align: center;
  padding: 24px 18px;
}

.feature-icon{
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto 18px;
}

.feature-title{
  margin: 0 0 14px;
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #4C97E7;
}

.feature-text{
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.7;
}

.feature-text strong{
  font-weight: 600;
  color: #222;
}

/* =========================================================
   HOME — PILLARS
   ========================================================= */
.home-pillars{
  background: #FFFFFF;
  padding: 56px 0;
}

.home-pillars-inner{
  max-width: none;
  margin: 0;
  padding: 0;
}

.hp-head{
  text-align: center;
  margin-bottom: 32px;
}

.hp-title{
  font-size: 30px;
  font-weight: 800;
  color: #1b2a3a;
  margin: 0 0 8px 0;
}

.hp-subtitle{
  font-size: 18px;
  color: #4a4a4a;
  margin: 0;
}

.hp-rows{
  display: grid;
  gap: 34px;
}

.hp-row{
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px);
  gap: 130px;
  align-items: center;
  max-width: 1100px;   
  margin: 0 auto;      
  padding-bottom: 26px;
  border-bottom: 1px solid #eef2f7;
}

.hp-row:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}

.hp-item-content{
  max-width: 60ch;
}

.hp-item-title{
  font-size: 19px;
  font-weight: 700;
  color: #0c83f2;
  margin: 0 0 6px 0;
}

.hp-item-text{
  font-size: 16px;
  line-height: 1.65;
  color: #4a4a4a;
  margin: 0;
}

.hp-item-icon-wide{
  width: 100%;
  max-width: 320px;  
  height: auto;
  display: block;
  margin-left: auto;
}


/* =========================
   FOOTER
   ========================= */
.site-footer{
  background: #f6f7f9;
  border-top: 1px solid #e2e8f0;
  margin-left: calc(-1 * var(--page-pad));
  margin-right: calc(-1 * var(--page-pad));
  padding: 36px 0 20px;
}

.site-footer .footer-inner{
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  box-sizing: border-box;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: start;
}

.footer-grid > :last-child{
  justify-self: end;
}

.footer-title{
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #1f5fa8;
}

.footer-text{
  font-size: 14px;
  line-height: 1.7;
  color: #4a4a4a;
  max-width: 60ch;
}

.footer-links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links li{
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a{
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #4a4a4a;
  text-decoration: none;
}

.footer-links a:hover{
  color: #1f5fa8;
}

.footer-divider{
  height: 1px;
  background: #e6eef5;
  margin: 24px 0 14px;
}

.footer-bottom{
  text-align: center;
}

.footer-legal{
  font-size: 13px;
  font-weight: 600;
  color: #6a6a6a;
}


/* =========================================================
   MOBILE PACK
   ========================================================= */

@media (max-width: 820px){
    
  .innerContainer{
    margin-bottom: 34px;
    margin-top: 18px;
  }

  #header{
    padding: 8px 0;
  }

  #header .header-inner{
    min-height: 0;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }

  #header #logo img{
    max-height: 30px;
  }

  #header .header-tools{
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  #header .search form{
    padding: 6px 10px;
  }

  #header .search input.field{
    width: 150px;
    font-size: 13px;
  }

  #header .languages{
    gap: 8px;
  }
  #header .languages a{
    width: 30px;
    height: 30px;
  }
  #header .languages img{
    height: 14px;
  }

  #navigation .nav{
    overflow: visible;        
    flex-wrap: wrap;          
    gap: 10px 18px;          
    justify-content: center;  
    padding: 10px var(--page-pad) 12px;
  }

  #navigation .nav > li{
    flex: 0 0 auto;
  }

  #navigation .nav > li > a{
    white-space: nowrap;      
    font-size: 13px;
    padding: 6px 0;
  }

  #navigation .nav > li > a::after{
    bottom: -4px;
  }


  /* ---- HERO ---- */
  .home-hero-brand{
    padding: 18px 0 10px;
  }

  .home-hero-brand-inner{
    flex-direction: column;
    gap: 12px;
    max-width: none;
    margin: 0;
    padding: 0 var(--page-pad);
    text-align: center;            
    align-items: center;
  }

  .home-hero-brand-logo{
    max-width: 260px;
    width: 100%;
    height: auto;     
    display: block;
    margin-left: auto;
    margin-right: auto;  
  }

  .home-hero-brand-text{
    font-size: 14px;
    line-height: 1.6;
    max-width: 48ch;             
    margin: 0;
  }


  /* ---- Features ---- */
  .home-features-grid{
    grid-template-columns: 1fr;
    gap: 34px;
    max-width: 680px;     
    padding: 0 20px;
  }

  .feature-card{
    text-align: center;
    padding: 18px 0;
  }

  .feature-title{
    margin: 0 0 14px;
    font-size: 18px;
  }

  .feature-icon{
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
  }

  .feature-text{
    max-width: 62ch;
    margin: 0 auto;
    font-size: 13px;
  }

  .feature-card + .feature-card{
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 28px;
  }

  /* ---- Pillars ---- */
  .hp-head{
    padding: 0 var(--page-pad);
    text-align: center;
  }
  
  .hp-title{
      font-size: 28px;
    }
    
    .hp-subtitle{
      font-size: 16px;
    }

  .hp-row{
    grid-template-columns: 1fr;   
    gap: 12px;
    text-align: center;
    padding-bottom: 28px;
  }

  .hp-item-content{
    max-width: 100%;
  }

  .hp-item-title{
    order: 1;
    margin-bottom: 8px;
    font-size: 17px;
  }

  .hp-item-text{
    order: 2;
    max-width: 62ch;
    margin: 0 auto;
    font-size: 15px;
  }

  .hp-item-icon-wide{
    order: 3;
    margin: 16px auto 0;
    max-width: 220px;  
  }

  /* ---- Footer ---- */
  .site-footer .footer-inner{
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
  }
  
  .footer-links{
    flex-direction: column; 
    flex-wrap: nowrap;        
    gap: 10px;                
    align-items: flex-start;
  }

  .footer-links li{
    width: 100%;              
  }
}