#main_home .row {
    padding: 64px 100px;
    margin: 0;
}

@media screen and (max-width: 500px) {
  #main_home .row {
    padding: 64px 20px;
  }
}

.abtf-slider {
  height: 800px;
  max-height: 70vh;
  background-color: var(--background-secondary-color);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 24px;
}

.homepage h1, .homepage h2 {
  color: var(--primary-color);
  text-align: left;
}
p {
  text-align: left;
}

.intestazione_home {
  position: relative;
}

.intestazione_home iframe {
  width: 100%;
}

.intestazione_home .godown {
    position: absolute;
    bottom: 10px;
    width: 60%;
    text-align: center;
    margin-left: 20%;
}

.intestazione_home:hover .godown {
    -webkit-animation: movearrow 1s infinite;
    -moz-animation: movearrow 1s infinite;
    -o-animation: movearrow 1s infinite;
    animation: movearrow 1s infinite;
}

.intestazione_home .godown a {
    font-size: 30px;
    color: #fff;
    opacity: 0.7;

}

@keyframes movearrow {
    0% {
        bottom: 10px;
    }
    50% {
        bottom: 5px;
    }
    100% {
        bottom: 10px;
    }
}

@media screen and (max-width: 799px) {
    .intestazione_home .godown {
        display: none;
    }
}



/*-----------------------
PRODOTTI CONSIGLIATI
-----------------------*/

.homepage h1.hidden {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 5px;
    margin: 40px 0 25px;
}

.homepage .blocco-singolo-prodotto {
    overflow: hidden;
    padding: 0;
    width: 23.5%;
    margin-right: 2%;
    margin-bottom: 2%;
}

.homepage .blocco-singolo-prodotto:nth-child(4n+0) {
    margin-right: 0;
}


.homepage .blocco-singolo-prodotto .contenitore-img {
    height: 180px;
    overflow: hidden;
}

.homepage .blocco-singolo-prodotto .contenitore-img  img {
    display: block;
    max-width:100%;
    max-height:100%;
    width: auto;
    height: auto;
    margin: auto;
}

.homepage .blocco-singolo-prodotto h4.titoloprodotto {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    font-size: 20px;
    text-transform: initial;
    padding: 10px;
    font-weight: 700;
    margin: 0;
    padding-bottom: 0;
}

.homepage .blocco-singolo-prodotto p.produttore {
    font-size: 13px;
    padding: 0 10px;
}

.homepage .blocco-singolo-prodotto p.produttore a {
    font-size: 16px;
    color: #000;
    text-decoration: underline;
    font-weight: 700;
}

.homepage .blocco-singolo-prodotto p.venditore {
    font-size: 13px;
    padding: 0 10px;
    margin-top: 15px;
}

.homepage .blocco-singolo-prodotto p.venditore a {
    font-size: 16px;
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 700;
}

.homepage .blocco-singolo-prodotto .feed-prezzo {
    padding: 0 10px;
    display: block;
}

.homepage .blocco-singolo-prodotto .feed-prezzo .stelle {
    width: 40%;
    display: inline-block;
    vertical-align: sub;
    margin-bottom: 10px;
}

.homepage .blocco-singolo-prodotto .feed-prezzo .voto {
    display: inline-block;
    color: var(--primary-color);
    margin-right: -1px;
}

.homepage .blocco-singolo-prodotto .feed-prezzo span.reale {
    font-size: 18px;
    font-weight: 700;
}

.homepage .blocco-singolo-prodotto .feed-prezzo p.spese {
    display: block;
    clear: both;
    text-align: left;
    margin: 0;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 20px;
}

.homepage .blocco-singolo-prodotto .feed-prezzo p.spese:last-child {
    margin-bottom: 10px;
}


/* 
@media screen and (max-width: 500px) {
    #main_home{
        width:97%
    }

} */



@media screen and (max-width: 1199px) {
    .homepage .blocco-singolo-prodotto .feed-prezzo span.barrato {
        font-size: 13px;
    }
    .homepage .blocco-singolo-prodotto .feed-prezzo span.reale {
        font-size: 19px;
    }

}

@media screen and (max-width: 991px) {

    .homepage .blocco-singolo-prodotto {
        width: 48%;
    }
    .homepage .blocco-singolo-prodotto:nth-child(4n+0) {
        margin-right: 3%;
    }

    .homepage .blocco-singolo-prodotto:nth-child(2n+0) {
        margin-right: 0;
    }

}

@media screen and (max-width: 500px) {

    .homepage .blocco-singolo-prodotto {
        width: 100%;
    }
    .homepage .blocco-singolo-prodotto:nth-child(3n+0) {
        margin-right: 0%;
    }

}


/*-----------------------
SERVIZI
-----------------------*/

.homepage h2 {
    color: var(--primary-color);
    text-align: center;
}

.blocco-servizi img {
    max-width: 200px;
    margin: auto;
}

.blocco-servizi .icona {
    display: table;
    margin: 0 auto;
}

.container-servizi {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

.blocco-attivita {
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-items: center;
    align-items: center;
}

.container-attivita {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
}

.container-servizi > div {
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    height: 100%;
    -webkit-transition: all 0.7s;
    transition: 0.7s;
}


.blocco-servizi .grey  {
  border: 2px solid var(--primary-color);
}

.spiegazione {
  text-align: left;
  margin: 0;
}

.blocco-servizi h6.spiegazione {
  font-weight: 600;
  text-align: center;
}

.max-w-2xl {
  max-width: 1536px !important;
}

@media screen and (max-width: 900px) {
  .blocco-servizi > div {
    flex: none;
    width: 97%;
    height: auto;
  }
}


.blocco-attivita .icona {
    display: table;
    margin: 0 auto;
}

.container-attivita > div {
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    width: 100%;
    height: 100%;
    padding: 20px;
    -webkit-transition: all 0.7s;
    transition: 0.7s;
    /* height: 280px; */
    text-align: center;
}


@media screen and (max-width: 900px) {

    .blocco-attivita > div {
        flex: none;
        width: 97%;
        height: auto;
    }

}

@media screen and (max-width: 500px) {
  .blocco-attivita, .blocco-servizi {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .blocco-attivita .cta-attivita {
    max-width: 100%;
  }
  .container-servizi, .container-attivita {
    display: flex;
    flex-direction: column;
  }
}

.attivita-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-attivita {
  font-size: 24px;
  max-width: fit-content;
}

.cta-attivita-text {
  vertical-align: middle;
  font-weight: 600;
}

.consigli-tecnico-ortopedico {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.slide-full-width {
  width: 49%;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #fff;
  margin-right:20px;
}

.slide-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.slide-block {
  flex: 1;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  background-color: #fff;
}

@media (max-width: 900px) {
  .slide-block {
    flex: none;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 20px;
    width: 97%;
  }
}

.slide-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}  

.slide-content h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.slide-description {
  font-size: 14px;
  color: #888;
  margin: 0 0 10px;
}

.read-more {
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
}

.read-more:hover {
  background-color: #428bca;
  color: #fff;
}

.slide-excerpt {
  font-size: 14px;
  margin: 0 0 10px;
}


.container-slick {
  /* margin: 50px auto;
  max-width: 960px; */
  width: 100%;
  display: flex;
  justify-content: center;
}

.container-slick .slider {
    width: 100%;
    margin: 50px auto;
}

.container-slick .slick-slide {
    margin: 0px 20px;
}

.container-slick .slick-slide a {
    height: 120px;
    display: block;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container-slick .slick-slide img {
    max-width: 150px;
    max-height: 115px;
    margin: auto;
}

.container-slick .slick-prev:before,
.container-slick .slick-next:before {
    color: black;
}


.container-slick .slick-slide {
    transition: all ease-in-out .3s;
    opacity: .2;
}

.container-slick .slick-active {
    opacity: .5;
}

.container-slick .slick-current {
    opacity: 1;
}


.blocco-singolo-prodotto .label {
    position: absolute;
    top: 0;
    right: 0;
    transform: rotate(45deg);
    margin-top: 35px;
    margin-right: -35px;
    padding: 5px 35px;
    background-color: #337ab7;
    color: #fff;
}



.partner {
    margin-top: 20px;
}

.partner > div {
    border: 0px;
    border-radius: 12px;
    width: 32%;
    margin-right: 1%;
    padding: 0px;
    text-align: center;
}

.partner img {
    max-width: 250px;
    margin: auto;
}


@media screen and (max-width: 900px) {

    .partner > div {
        margin-top: 0px;
        flex: none;
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 0px;
        width: 97%;
        height: auto;
    }

}


/* slider top */
#my-slider {
  position: relative;
  width: 100%;
  height: 800px; /* Altezza personalizzabile */
  max-height: 70vh; /* Altezza massima personalizzabile */
  overflow: hidden;
  min-width: 300px;
  display: flex;
  justify-content: center;
  background-color: var(--background-secondary-color);
}

.my-slide {
  /* position: absolute;
  top: 0;
  left: 0; */
  width: 100%;
  height: 100%;
  max-width: 1536px;
  background-color: var(--background-secondary-color);
  display: none;
}


.my-content {
  display: flex;
  gap: 20px;
  padding: 100px;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
  
@media screen and (max-width: 500px) {
  .my-content {
    padding: 20px;
    flex-direction: column-reverse;
    width: 100%;
  }
  .abtf-slider, #my-slider {
    height: 600px;
    max-height: none;
  }
}


.my-text-content {
  width: 70%;
  height: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
}

#my-slider h2 {
  text-align: left;
}

.my-content h4 {
  background: none;
  color: var(--primary-color);
}

.my-content p {
  font-size: 18px;
  color: var(--primary-color);
}

.my-cta {
  width: auto;
  padding: 10px 20px;
  background-color: #fff;
  color: var(--primary-color);
  font-size: 16px;
  text-decoration: none;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.my-cta-logo {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.my-cta-text {
  vertical-align: middle;
  font-weight: 600;
}

.my-slide-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.my-slide-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
}

.my-slide-indicator.active {
  background-color: var(--primary-color);
}

.rounded-md {
  border-radius: 12px;
}

@media (max-width: 1200px) {
  .my-background-image {
      padding-left: 10px;
    }

    .my-content h2 {
      padding: 4px;
    }

    .my-content p {
      margin-bottom: 5px;
  }
}


@media (max-width: 1000px) {
  .my-background-image {
      padding-left: 10px;
      
    }

    .my-content h2 {
      padding: 4px;
      font-size: 25px;
    }

    .my-content p {
      margin-bottom: 5px;
      font-size: 20px;
  }

  .my-slide-indicators {
      display: none;
    }
}


@media (max-width: 750px) {
  .my-background-image {
      padding-left: 10px;
      
    }

    .my-background-image img {
      width: 120px;
      margin-top:50px;
      
    }

    .my-content h2 {
      padding: 4px;
      font-size: 20px;
    }

    .my-content p {
      margin-bottom: 5px;
      font-size: 15px;
  }

  .my-slide-indicators {
      display: none;
    }
}

@media (max-width: 500px) {
    .my-text-content {
      width: 100%;
    }
    .slider-image {
      width: 100%;
      max-width: 200px;
    }

    .my-background-image img {
      display: none;
      
    }

    .my-content {
      width: 100%;
    }

}



/* -------------------------
   HOME SEARCH BOX
------------------------- */

.abtf-slider .input-group .form-control:first-child {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.abtf-slider p {
  font-size: 20px;
  background: none;
  color: var(--primary-color);
}

.home-search-box {
    width: 100%;
}

.home-search-tabs {
    border-bottom: none;
    margin-bottom: 0;
}

.home-search-tabs > li > a,
.home-search-tabs > li > a:hover,
.home-search-tabs > li > a:focus {
    color: var(--background-color);
    background: var(--background-tertiary-color);
    border: 1px solid var(--background-tertiary-color);
    border-bottom-color: transparent;
    font-weight: 700;
    border-radius: 8px 8px 0 0;
}

.home-search-tabs > li.active > a,
.home-search-tabs > li.active > a:hover,
.home-search-tabs > li.active > a:focus {
    color: var(--background-color);
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-bottom-color: transparent;
    cursor: default;
    color: #fff;
}

.home-search-barra {
    border-radius: 0 8px 8px 8px;
    background: var(--background-tertiary-color);
    padding: 20px;
    display: block;
}

.home-search-panel {
    display: none;
    grid-template-columns: 1fr 120px;
    gap: 12px;
    align-items: center;
}

.home-search-panel.active {
    display: grid;
}

#tab-sumisura.home-search-panel.active {
    grid-template-columns: 1fr 1fr 120px;
}

.home-search-panel .ricerca,
.home-search-panel .vicino-search,
.home-search-panel [class*="col-"] {
    padding: 0;
    width: 100%;
}

.home-search-panel .btn-cerca-layout {
    width: 100%;
    height: 39px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

@media screen and (max-width: 768px) {
    .home-search-panel.active,
    #tab-sumisura.home-search-panel.active {
        grid-template-columns: 1fr;
    }

    .home-search-tabs > li > a {
        padding: 8px 10px;
        font-size: 13px;
    }
}
