body { 
  font-family: 'Roboto', sans-serif;
  color:#333;  
}
.hero {
  position: relative;
  background: url('img/hero-bg.jpg') center/cover no-repeat;
  min-height: 80vh;
  color: #fff;
  overflow: visible;
}
.subheadline {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.2rem!important;
  font-weight:bold;
  margin-bottom: 0.5rem;
  margin-top: 3rem;
}
.hero h1 {
  font-size: 3rem!important;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  color: #FFF;
}
span, a {
  color: #FF5722!important;
  text-decoration: none!important;
}    
.hero h2 {
  font-size: 2rem!important;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1.65rem!important;
}
p {
  font-size: 1.4rem!important;	
  line-height: normal;
  line-height: 1.8rem;
}
.nascosto ul li {
  font-size: 1.2rem!important;	
  line-height: normal;
  line-height: 1.8rem;
}	
p.checkbox {
  font-size: 1rem!important;
  line-height:normal;	
  color: #212529;
  padding-top:1rem;	
}	
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: visible;
  line-height: 0;
  z-index: 1;
}
.wave svg {
  display: block;
  width: 100%;
  height: 120px;
}
.wave .shape-fill {
  fill: #ffffff;
}
.clients-logos img {
  max-width: 100%;
  padding: 0 10px;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.clients-logos img:hover {
  opacity: 1;
}
.rounded {
  border-radius: 1rem!important;
}
button.btn-primary {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-weight: bold;
}
#scrollHeader .btn-primary {
    background: #FF5722;
    border: none;
    color: #fff!important;
    font-weight: bold;
}
input[type=checkbox] {    
  margin-right: 20px;
}
.flexy {
  display: flex;	
}	
.expertise-title {
  font-size: 2.75rem;
  font-weight: 500;
}
.expertise-item {
  display: flex;
  flex-direction: column;
}
.expertise-icon img {
  width: 60px;
}
#expertise p {
  font-size: 1.25rem!important;
  line-height: 1.5;
  color: #333;
}
#expertise h3 {
  font-size: 1.75rem!important;
}
#expertise h4 {
  font-size: 1.75rem!important;
  font-style: italic!important;
}
/* Mission Section */
  #adaptability {
    background-color: rgb(239 119 40 / 5%);
  }
  #adaptability .adapt-title {
    font-size: 2rem;
    font-weight: 500;
    color: #212529;
  }
  #adaptability .adapt-img-wrapper {
    overflow: hidden;
  }
  #adaptability .adapt-img {
    --cp: path('M0,0 H100% V100% C75% 50% 75% 50% 0 0 Z');
    clip-path: path('M0,0 H100% V100% C75% 50% 75% 50% 0 0 Z');
    width: 100%;
    display: block;
    vertical-align: middle;
    max-width: 450px;
  }
  #adaptability .adapt-icon img {
    width: 40px;
    height: auto;
  }
  #adaptability a.btn-success, #meet a.btn-success {
    background: #FF5722;
    border: none;
    color: #fff!important;
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-weight: bold;
  }
#adaptability p {
  font-size: 1.25rem!important;
  line-height: 1.5;
  color: #495057;
}
#adaptability h3 {
  font-size: 1.75rem!important;
}
#adaptability h4 {
  font-size: 1.75rem!important;
  font-style: italic!important;
}
#adaptability ul.adapt-list{
  margin-top: 40px;
}  
  #meet h2 {
    font-size: 2.75rem!important;
    font-weight: 500;
  }
  #meet h3 {
  font-size: 1.75rem!important;
}
  #meet p {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
  }
  .meet-img {
    width: 100%;
    display: block;
    vertical-align: middle;
    /* custom clip-path for stylized shape */
    clip-path: path('M0,0 C0,50 50,100 100,100 L100,0 Z');
    /* fallback for browsers without path(): */
    /* clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%); */
  }
  /* wrapper: serve per ritagliare davvero l’immagine */
.meet-img-wrapper {
  max-width: 450px;
  position: relative;
  margin: 0 auto;
  overflow: hidden;     /* abilita il ritaglio */
}

/* immagine: usa polygon invece di path(), con prefisso webkit */
.meet-img {
  width: 100%;
  display: block;
  -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 50% 100%, 0% 75%);
          clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 50% 100%, 0% 75%);
}
  .award-img {
    max-height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s;
  }
  .award-img:hover {
    opacity: 1;
  }
.mato40 {
   margin-top: 40px;
}
  /* Testimonials Section */
  #testimonials .testimonials-title {
    font-size: 2.75rem;
    font-weight: 500;
  }
  #testimonials .card {
    border: none;
    border-radius: 0.5rem;
  }
  #testimonials .card-body {
    background-color: #fff;
    color: #212529;
    padding: 1.75rem;
    border-radius: 0.5rem;
  }
  #testimonials .card-text {
    font-size: 1rem;
    line-height: 1.6;
  }
  #testimonials h6 {
    font-weight: 600;
    color: #FF5722;
    margin-bottom: 0.25rem;
  }
  #testimonials small {
    font-size: 0.85rem;
  }
.award-item {
  flex: 0 0 100px;      /* fissa la larghezza di ogni box */
  text-align: center;   /* mantiene icona e testo centrati nel box */
}

.award-img {
  display: block;
  margin: 0 auto;       /* centra sempre l’icona nel box */
}

.award-caption {
  font-size: 0.9rem!important;   /* scritte più piccole */
  color: #fff;
  line-height: 1.2;
}
/* Position the award-item relative so the tooltip can be absolutely positioned */
.award-item {
  position: relative;
}

/* Hide the caption by default and style it as a tooltip */
.award-item .award-caption {
  position: absolute;
  bottom: calc(100% + 8px);  /* place it just above the icon */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff!important;
  padding: 7px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.7rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
}

/* On hover, show the tooltip */
.award-item:hover .award-caption {
  opacity: 1;
  visibility: visible;
}
  #process {
    background-color: #ffffff;
  }
  #process .expertise-title {
  font-size: 2.75rem;
  font-weight: 500;
  }
  #process h3 {
  font-size: 1.75rem!important;
}
#process p {
color: #495057!important;
}

#process img.mepa, #meppa img.mepa {
	max-width: 250px;
}
#meppa {
    background-color: rgb(239 119 40 / 5%);
}
.deppa{
  position: relative; /* crea il contesto di posizionamento */
}

.deppa .centered-text {
  position: absolute;
  top: 50%;
  left: 0; right: 0;    /* si estende per tutta la larghezza */
  transform: translateY(-50%);
}

  #meppa p {
  font-size: 1.75rem!important;
  font-weight: 500;
    line-height: 1.2;
}
 /* CTA Section */
  #cta {
    background-color: #0d0d0d;
  }
  #cta .cta-title {
    font-size: 2.75rem;
    font-weight: 500;
    color: #ffffff;
  }
  #cta .cta-title span {
    color: #FF5722!important;
  }
  #cta .btn-success {
    background: #FF5722;
    border: none;
    color: #fff !important;
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-weight: bold;
  }
  #cta img.confindustria {
	max-width: 300px;
	margin: 20px;
}

  /* Footer Section */
  #site-footer {
    background-color: grey;
  }
  .footer-link {
    color: #ffffff!important;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 1rem;
  }
  .footer-link:last-child {
    margin-right: 0;
  }
  .footer-info {
    color: #fff!important;
    font-size: 0.9rem;
  }
  .footer-logo {
    height: 40px;
  }
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  z-index: 1050;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  max-width: 500px;
  width: 90%;
}

.modal-close {
  position: absolute;
  top: -10px; right: -10px;
  background: #fff;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
/* Se non usi bootstrap, sostituisci d-none / d-lg-block con questo: */
@media (max-width: 991.98px) {
  #hero .hero-form {
    display: none;
  }
  img.mepa {
    display: none;
  }
  #hero .hero-mobile-cta {
    display: block;
  }
  .nascosto  {
    display: block;
  }  
  #visto  {
    display: none!important;
  }
}
@media (min-width: 992px) {
  #hero .hero-form {
    display: block;
  }
  #hero .hero-mobile-cta {
    display: none;
  }
  .nascosto  {
    display: none;
  }  
  #visto  {
    display: block;
  }
}
@media (max-width: 991.98px) {
  .deppa {
    position: static !important;      /* torna al flow normale */
  }
  .deppa .centered-text {
    position: static !important;      /* non più assoluto */
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;       /* niente più translateY */
  }
}
/* Styling del link-mobile */
.hero-mobile-cta {
    background: #FF5722;
    border: none;
    color: #fff !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-weight: bold;
    text-align: center;
}
/* 2. CSS (nel tuo file o in <style>) */
#scrollHeader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

/* quando aggiungi .visible, l’header scorre in vista */
#scrollHeader.visible {
  transform: translateY(0);
}
a.green {
  background: #13af13!important;
}
a.nero {
  background: #333!important;
}
img.top {
  margin-bottom: 1rem;
  max-height: 60px;
  max-width: 100%;
  display: block;
}
.btn {font-size: 1.2rem !important;}    
/* ========================================
   RIDUZIONE FONT SU MOBILE
   breakpoint: smartphone fino a 767px
   ======================================== */
@media only screen and (max-width: 767.98px) {
  /* riduci la grandezza base dei rem */
  html {
    font-size: 14px;
  }

  /* Titoli principali */
  h1 {
    font-size: 2rem !important;    /* circa 28px */
  }
  h2 {
    font-size: 1.8rem !important;  /* circa 21px */
  }
  h3 {
    font-size: 1.5rem !important; /* circa 17.5px */
  }

  /* Sottotitoli e paragrafi */
  .subheadline,
  p,
  a,
  .nascosto ul li,
  #meet ul li {
    font-size: 1.2rem !important;    /* circa 14px */
    line-height: 1.4 !important;
  }

  /* Checkbox label */
  p.checkbox {
    font-size: 1.2rem !important; /* circa 12px */
    line-height: 1.4 !important;
  }

  /* Eventuali paragrafi specifici nel blocco expertise */
  #expertise p {
    font-size: 1.2rem !important;   /* circa 12.6px */
  }
  .btn {font-size: 1.2rem !important;} 
}
