/*Foglio di stile per i box delle offerte di makexp */
/*Prende le stesse regole di base di una card di bootstrap
e la stessa struttura generale:
.box-offerta
  .box-img
    .box-prezzo
  .box-content
    .box-operatore
    .box-luogo
    .box-date
    .box-titolo

*/
.box-offerta{
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  padding: 0;
  height: 100%;
  border: 0;
  margin-bottom: 20px;
}

.box-img{
  position: relative;
  width: 100%;
  /* border-top-left-radius: calc(.25rem - 1px); */
  /* border-top-right-radius: calc(.25rem - 1px); */
  overflow: hidden;
  border-radius: 40px;
}
.box-img>a:hover, .box-img>a:focus, .box-img>a:visited, .box-img>a:active, .box-oper>a, .box-oper>a:hover, .box-oper>a:visited, .box-oper>a:active, .box-oper>a:focus, .box-title>a, .box-title>a:hover, .box-title>a:active, .box-title>a:visited, .box-title>a:focus{
  text-decoration: none;
  outline: none;
}

.box-img>a{
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*regole per quando si vuole avere il nome dell'operatore sopra all'immagine*/
.box-img>box-oper>a{
  display: block;
  position: absolute;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: center;
  color: white;
  width: 100%;
  line-height: 1;
  font-weight: 400;
  font-size: 20px;
  text-transform: uppercase;
  text-shadow: 0 0 8px #000;
  padding: .5rem 1.5rem .5rem 1.5rem;
  bottom:10px;
}


/*Info testuali del box*/
.box-body{
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: .25rem .5rem .25rem .5rem;
  background-color: #fff;
}

/*Titolo e link offerta*/
.box-title{
  margin-bottom: 0;
}

.box-title>a{
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.box-info{
  display: grid;
  gap: 0.25rem;
  grid-template-columns: 20px auto;
}

.box-info, .box-info>div, .box-info>div>div{
  position:relative;
  font-size: 14px;
}

.box-info img, .box-info .fas{
  width: 20px;
  margin-top: 2px;
  margin-bottom: auto;
}

.offer-locations{
  display: grid;
  gap: 0.25rem;
  grid-column-start: 1;
  grid-column-end: 3;
  grid-template-columns: 20px auto;
}

.offer-locations>img{
  grid-column-start: 1;
}
.offer-locations>span{
  grid-column-start: 2;
}

/*per la pagina di natale dove le immaigni sono background image*/
.box-background-img{
  background-position:center center; 
  background-size:cover;
  padding-bottom: 100%;
  position: relative;
}

.img-overlay{
  /* position: absolute; */
  width: 100%;
  height: 100%;
  top:0;
  opacity: 0.8;
}

/*TODO: adattare questa regola*/
.card-text:last-child {
  margin-bottom: 0
}