
/*L'altezza è stata fissata perchè i box devono avere sempre i bordi, sia su desktop che su mobile.
Il problema si poneva soprattutto negli schermi con dimensioni particolari e nella versione mobile*/

div.servicetext {
  max-width: 90vw;
  margin: auto;
  text-align: center;
}
#fragment-services  {
  position: relative;
  width: 300%;
  left: -100%;
  right: -100%;
  padding: 1em;
  text-align: center;
}
div.service-items {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
  justify-content: space-evenly;
  margin-top: 3em;
  margin-bottom: 1.4em;
}
.service-item {
  min-width: 300px;
  background: white;
  /* padding: 0.9em; */
  margin-bottom: 8em;
}

h1.media-heading {
  font-size: 200%;
}

/*style custom*/

/*Dimensione fissa del pulsante*/
.buttonhigh{
  background:#003A69;
  border-color:#003A69;
  border-radius:10px;
  width: 90%;
}

.buttonhigh:hover,
.buttonhigh:active{
  background: #003A69;
  border-color:#003A69;
}

.buttontext{
  color:white;
}

.titlehigh{
  color:#003A69;
}

.descriptionhigh{
  color:black;
  padding:1%;
}

/*Aggiunta altezza fissa, basata su 4 righe di description, che è il massimo testo*/
.service-item {
  /*_Aggiungo la larghezza fissa in pixel */
  /* width: 40% !important; */
  width: 550px;
  box-shadow: 0px 0px 10px 10px lightgray;
  /* height: 750px;*/
  height: 600px;
}

/*tolgo altezza in % perchè sgrana height: 50%;
e metto la larghezza in pixel larga quanto il box padre
Le immagini dovranno essere 550px x altezza 298/300px*/
.imgservice{
  width: 550px;
}

.media-body a:hover{
  text-decoration: none;
}


@media (max-width: 1250px) {
  div.service-items {
    flex-direction: column;
    justify-content: center;
  }
  .service-item {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width:200px)  and (max-width : 349px){
  .service-item {
    /*description su 4 righe*/
    /* height: 420px; */
    height: 400px;
    width: 310px !important;
  }

  .imgservice {
    /* width: 100%; */
    width: 310px;
  }
}

@media screen and (min-width:350px)  and (max-width : 450px){
  .service-item {
    /*description su 4 righe*/
    /* height: 450px; */
    height: 430px;
    width: 350px !important;
  }

  .imgservice {
    /* width: 100%; */
    width: 350px;
  }
}

@media screen and (min-width:450px)  and (max-width : 500px){
  .service-item {
    /* height: 550px; */
    height: 450px;
    width: 400px !important;
  }

  .imgservice {
    /* width: 100%; */
    width: 400px;
  }
}


/*Varie misure per i vari dispositivi*/
@media  screen and (min-width:501px)  and (max-width : 768px){
  .service-item {
    height: 650px;
    width: 500px !important;
    
  }

  .imgservice {
    /* width: 100%; */
    width: 500px;
  }

  h1.media-heading {
    font-size: 30px;
  }

  .buttontext{
    font-size: 15px;
  }
}

/*anche in questo caso metto altezza e ampiezza fissi in pixel */
@media  screen and (min-width:768px)  and (max-width : 1250px){
  .service-item {
    /* height: 700px; */
    /* width: 26% !important */
    height: 650px;
    width: 700px !important;
  }
  h1.media-heading {
    font-size: 30px;
  }
  /*Aggiungo la classe dell'immagine e fisso l'ampiezza quanto il padre*/
  .imgservice{
    width: 700px !important;
  }
}

/*Prima che inizia la visualizzazione mobile ma ancora nel desktop*/
/*anche in questo caso metto altezza e ampiezza fissi in pixel */
@media  screen and (min-width:1250px)  and (max-width : 1599px){
  .service-item {
    width:450px !important;
    height: 570px;
    /*OLD*/
    /* height: 600px; */
  }
}
