/* ! Base Style */
/* ----------------------------------------------------------------------------------- */
body{ font-size: 16px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;}
a{text-decoration: none;color: #09335c;}
p{line-height: 1.3}


/* ! Title System */
/* ----------------------------------------------------------------------------------- */
.text-0{font-size: 5rem;}
h1, .text-1{font-size: 3.4rem;}
h2, .text-2{font-size: 2.2rem;}
h3, .text-3{font-size: 1.5rem;}
h4, p, .text-4{font-size: 1rem;}

h1, h2, h3, h4, p, ol, ul{margin-bottom: 1rem;}

@media (max-width: 768px) {
  .text-0{font-size: 4rem}
  h1, .text-1{font-size: 2rem;}
}


/* ! Titoli personalizzati */
/* ----------------------------------------------------------------------------------- */
.unita-black {
  color: #000; /* O un colore nero specifico, es. #000000 */
}

.chirurgia-blue {
  color: #09335c; /* O un blu specifico per l'accessibilità, es. #0000CC */
}

.uni-text {
  color: #09335c;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1px;
text-transform: uppercase;
}

.uni-text {
  color: #0c8eff;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 1px;
text-transform: uppercase;
}

.uni-desc{font-size:clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.531), 1.2rem);line-height:1.53}

/* Tricolore e sottotitolo */

/* Stili per il contenitore del tricolore per centrarlo */
.tricolore-container {
  text-align: center; /* Centra gli elementi inline o inline-block al suo interno */
  margin-top: 10px; /* Spazio sopra il tricolore, se vuoi */
  margin-bottom: 10px; /* Spazio sotto il tricolore */
}

/* Stili per il tricolore */
.tricolore  {
  /* Rimosso 'content: ""' perché non è un pseudo-elemento */
  width: 190px;
  height: 12px;
  display: inline-block; /* Mantienilo inline-block per essere centrato da text-align: center */
  /* margin: 4px 10px; -> Rimosso per usare il margin del contenitore o per settarlo diversamente */
  background: rgb(27,133,65);
  background: -moz-linear-gradient(90deg, rgba(27,133,65,1) 0%, rgba(27,133,65,1) 33%, rgba(255,255,255,1) 33%, rgba(255,255,255,1) 66%, rgba(238,31,39,1) 66%, rgba(238,31,39,1) 100%);
  background: -webkit-linear-gradient(90deg, rgba(27,133,65,1) 0%, rgba(27,133,65,1) 33%, rgba(255,255,255,1) 33%, rgba(255,255,255,1) 66%, rgba(238,31,39,1) 66%, rgba(238,31,39,1) 100%);
  background: linear-gradient(90deg, rgba(27,133,65,1) 0%, rgba(27,133,65,1) 33%, rgba(255,255,255,1) 33%, rgba(255,255,255,1) 66%, rgba(238,31,39,1) 66%, rgba(238,31,39,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#1b8541",endColorstr="#ee1f27",GradientType=1);
}

/* Stili per il sottotitolo */
.sottotitolo {
  font-size: 1.2em; /* Dimensione del font leggermente più grande di un paragrafo normale */
  color: #09335c;
  margin-top: 12px; /* Spazio tra il tricolore e il sottotitolo */
  text-transform: uppercase;
}


/* ! Button system */
/* ----------------------------------------------------------------------------------- */
.btn-green,
.wp-block-button__link{font-size: 1.2rem;text-transform: uppercase;font-weight: bold;background: #0a8eff; color: #ffffff;padding: 14px 25px;display: inline-block;border-radius: 4px;transition: all 1s cubic-bezier(.215, .61, .355, 1);}

.btn-green:hover,
.wp-block-button__link:hover{background: #002d59; transition: all 1s cubic-bezier(.215, .61, .355, 1);}

.btn-blue,
.wp-block-button__link{font-size: 1.2rem;text-transform: uppercase;font-weight: bold;background: #002d59; color: #ffffff;padding: 14px 25px;display: inline-block;border-radius: 4px;transition: all 1s cubic-bezier(.215, .61, .355, 1);}

.btn-blue:hover,
.wp-block-button__link:hover{background: #0a8eff; transition: all 1s cubic-bezier(.215, .61, .355, 1);}


.button-box-progetti .wp-block-button__link{border: 3px solid #fff; font-size: 1.2rem;text-transform: uppercase;font-weight: bold;background: #09335c; color: #ffffff;padding: 14px 25px;display: inline-block;border-radius: 4px;transition: all 1s cubic-bezier(.215, .61, .355, 1);}
  
.button-box-progetti .wp-block-button__link:hover{
  background: #002d59; transition: all 1s cubic-bezier(.215, .61, .355, 1); 
}


.button {
  margin-right: 1rem; /* spazio a destra */
}

.button:last-child {
  margin-right: 0; /* niente margine sull’ultimo */
}

.btn-cta {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #7ebd66;
  color: #000!important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
}
.btn-cta:hover,
.btn-cta:focus {
  background-color:  #bcf8a4;
  outline: none;
}

.lista-puntata{margin: 40px 0; text-align: left;}
.lista-puntata li{position: relative;padding-left: 30px;list-style-type: none; margin-bottom: 20px;}
.lista-puntata li:after{content: ' '; position: absolute; left:3px; top:1px; width: 20px; height: 20px; background: url(../icons/check.svg); background-size: 100%} 


/* Dettagli Home */

.statistics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* allineate a sinistra */
  gap: 0.5rem; /* piccolo spazio tra statistiche su desktop */
  margin: 0;
  max-width: 100%;
}

.statistics > div {
  flex: 0 0 auto;  /* larghezza automatica in base al contenuto */
  margin-right: 0.5rem; /* spazio minimo tra le statistiche */
}

@media (max-width: 768px) {
  .statistics > div {
    flex: 0 0 48%; /* su mobile due colonne affiancate */
    margin-right: 0;
    margin-bottom: 0.5rem; /* piccolo spazio tra righe */
  }
}

.stat {
  text-align: left;
  font-weight: bold;
  border-left: 10px solid transparent;
  border-image: linear-gradient(174deg, #09335c 0%, #09335c 100%) 1;
  padding-left: 10px;
}

@media (max-width: 768px) {
  .stat {
    padding-left: 30px;
  }
}

.stat .number {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

.stat .label {
  font-size: 1rem;
  margin: 0;
}


.progetto{
  background-color: rgb(232 232 232 / 50%); /* Bianco semitrasparente */
  backdrop-filter: blur(10px); /* Effetto satinatura */
  -webkit-backdrop-filter: blur(10px); /* Supporto per Safari */
  box-shadow: 0 5px 30px rgb(0 0 0 / 37%); transition: all 1s cubic-bezier(.215, .61, .355, 1)!important;
  border-radius: 30px; padding: 23px;  
  color: #09335c;  
  }

  .evi a {
    background: #0c8eff!important;
    color: #fff!important;
    border-radius: 6px;
    font-weight: bold;
    padding: 4px 16px!important;
    margin-top: 8px;
    margin-left: 10px;
    transition: all 1s cubic-bezier(.215,.61,.355,1);
}

.evi a:hover {
    background: rgb(1 45 89)!important;
    transition: all 1s cubic-bezier(.215,.61,.355,1);
}

@media (max-width: 768px) {
  .evi a {
   background: #0c8eff!important;
    color: #ffffff!important;
    font-weight: bold!important;
    padding: 16px 16px!important;
    margin-top: 8px;
    margin-left: 0px;
    transition: all 1s cubic-bezier(.215,.61,.355,1);
  }
}

/* =========================
   TEMPLATE FAGA
   ========================= */

   .faga-main {
    position: relative;
  }
  
  /* Spazio sotto la testata/menu */
  .faga-header {
    padding-top: clamp(7rem, 14vh, 11rem);
    padding-bottom: 2.5rem;
  }
  
  /* Titolo pagina */
  .faga-title {
    margin: 0;
    line-height: 1.15;
  }
  
  /* Corpo contenuti */
  .faga-body {
    padding-bottom: 4rem;
  }
  
  .faga-article {
    max-width: 100%;
  }
  


/* ! Blocks */
/* ----------------------------------------------------------------------------------- */

.cover__bg{position: absolute;top: 0;left: 0;width: 100%;height: 100%; background-position: right center; background-size:cover; z-index:0; border: 1px solid #fff}
.cover__bg:after{ content: ' ';position: absolute;top: 0;left: 0;width: 100%;height: 100%; /*background: linear-gradient(0deg, rgba(138, 216, 255, 0) 0%, rgba(255, 255, 255, 0.7) 100%); */background-size:cover;}


.cover{
  background: #ffffff;padding: 20px;min-height: 100vh;
  display: flex; flex-flow: column;
  justify-content: center;
  align-items: center;
  position:relative;
}


.cover__content{max-width: 1200px; margin: 0 auto; position:relative; z-index: 1;width: 100%;}


  .ombra-white {
    /* Quattro ombre per creare il contorno */
    text-shadow: 
      -1px -1px 0 #FFFFFF,  /* In alto a sinistra */
       1px -1px 0 #FFFFFF,  /* In alto a destra */
      -1px  1px 0 #FFFFFF,  /* In basso a sinistra */
       1px  1px 0 #FFFFFF;  /* In basso a destra */
  }

  .ombra-white-2 {
    /* Quattro ombre per creare il contorno */
    text-shadow: 
      -1px -1px 0 #FFFFFF,  /* In alto a sinistra */
       1px -1px 0 #FFFFFF,  /* In alto a destra */
      -1px  1px 0 #FFFFFF,  /* In basso a sinistra */
       1px  1px 0 #FFFFFF;  /* In basso a destra */
  }
  @media (max-width: 768px) {
  .ombra-white-2 {
    /* Quattro ombre per creare il contorno */
    text-shadow: 
      -1px -1px 0 #000,  /* In alto a sinistra */
       1px -1px 0 #000,  /* In alto a destra */
      -1px  1px 0 #000,  /* In basso a sinistra */
       1px  1px 0 #000;  /* In basso a destra */
  }
}

.ombra-green {
  /* Quattro ombre per creare il contorno */
  text-shadow: 
  -1px -1px 0 #000,  /* In alto a sinistra */
  1px -1px 0 #000,  /* In alto a destra */
 -1px  1px 0 #000,  /* In basso a sinistra */
  1px  1px 0 #000;  /* In basso a destra */
}

/* Immagini box news in home */
.wp-block-latest-posts__featured-image img {
  height: auto;
  max-width: 100%;
  width: auto;
  border-radius: 30px;
}

/* ! HERO PAGINA
/*----------------------------------------------------------------------------------- */

/* Contenitore principale della sezione di copertina */
.page-hero {
  position: relative;
  width: 100%;
  height: 50vh; /* altezza desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Immagine di sfondo */
.page-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* riempie senza deformare */
  object-position: center;
}

/* Overlay scuro semitrasparente sopra l'immagine 
.page-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 1;
}
*/
/* Contenuto testuale (titolo e sottotitolo) */
.page-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
}

.page-hero__subtitle {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff; 
  margin-bottom: 0.5rem;
}

.page-hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
}

.bk-title{background: rgb(0, 65, 119); margin: 55px;}

/* RESPONSIVE ADATTAMENTO */
@media (max-width: 1024px) {
  .page-hero {
    height: 50vh;
  }

  .page-hero__title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: 40vh;
  }

  .page-hero__subtitle {
    font-size: 0.8rem;
  }

  .page-hero__title {
    font-size: 1.8rem;
  }
}


/* ! FINE PAGINA
/*----------------------------------------------------------------------------------- */

/* ! BLOCCHI HOME PAGE
/*----------------------------------------------------------------------------------- */

.home-aree, .home-metodo, .home-percorso, .home-location {
  padding: 80px 0;
}

.container-box {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.aree-grid, .metodo-grid, .percorso-steps {
  display: grid;
  gap: 30px;
}

.aree-grid, .metodo-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.percorso-steps {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  text-align: center;
}

.area-card, .metodo-item, .step {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s ease;
  text-align: center;
}

.area-card:hover {
  transform: translateY(-5px);
}

.area-card h3, .metodo-item h3, .step h3 {
  color: #0A4D8C;
  margin-bottom: 15px;
  text-align: center;
}

.area-card a {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  color: #0A4D8C;
  text-decoration: none;
}

.step span {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: #0A4D8C;
  color: #fff;
  border-radius: 50%;
  margin-bottom: 15px;
  font-weight: bold;
}

.home-location {
  background: #eaf5ff;
  text-align: center;
}

/* ! FINE PAGINA
/*----------------------------------------------------------------------------------- */

/* ! Animation */
/* --------------------------------------------------------- */

.fade-in{opacity: 0; transform: translateY(1rem);}
.text-reveal{transform: translateY(1rem);clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);}
.fade-up{opacity: 0; transform: translateY(5rem);}


/* Animation on load */
@keyframes fade-load {
  from {opacity: 0; top:20px}
  to {opacity: 1; top:0;}
}
.load {
  opacity: 0;
  animation: fade-load cubic-bezier(0.385, 0.135, 0.15, 0.86) 0.5s forwards;
}
