body{
    margin: 0;
    overflow-x: hidden;
    font-family:sans-serif;
}
html{
    margin: 0;
}
main{
    background-color: white;
}
.highlight {
    background-color: yellow;
    font-weight: bold;
}
h1, h2{
  padding-top: 20px;
  font-size: 30px;
  text-align: center;
  text-transform: uppercase;
}
h2::after, h1::after{
  content: '.';
  font-size: 70px;
  color: #3366ff;
  line-height:1px;
}
h3{
  font-size: 20px;
  text-align: center;
  text-transform: uppercase;
  padding: 10px
}

:root {
    --color: #3366ff;
    --transition-time: 0.5s;
  }
  
  * {
    box-sizing: border-box;
  }



.ultimi_prodotti{
    width: 100vw;
    margin-top: 50px;
}


    .ultimi_prodotti{
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    #result{
        height: auto;
        display: flex;
        flex-wrap: wrap;
        margin: 0 auto;
        justify-content: space-around;
    }




.product-card { 
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
  }
  .product-card p img{
      width: 80px;
  }
  .product-card h5{
      color: green;
      opacity: 0.7;
  }
  .product-img-container {
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  
  .product-img {
    width: 100%;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  
  .product-info {
    padding: 20px;
  }
  
  .product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .product-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .product-price {
    font-size: 16px;
    font-weight: 700;
    color: #3366ff;
  }
  
  .icon-container {
    display: flex;
    justify-content: left;
    align-items: flex-start;
    gap: 10px;
  }
  
  .icon-container i {
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
  }
  .cart-icon:hover{
    color: #3366ff;
  }
  .fa-heart:hover{
    color: red
  }
  .fa-heart {
    color: white;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: black;
    transition: all 0.4s ease;
  }
  
  .fa-heart.full {
    color: #000;
  }
  
  .cart-icon {
    font-size: 24px;
    cursor: pointer;
  }

  a {
  color: inherit;
}

  @media screen and (orientation: portrait) {
    .product-card {
        width: 80%;
        margin-bottom: 30px;
      }
  }
  @media screen and (orientation: landscape) {
    .product-card {
        width: calc(90% / 3 -  50px);
        margin: 25px;
      }
      .product-title {
        font-size: 15px;
      }
      
  .product-description {
    font-size: 12px;
  }
  }
  

.cards-wrapper {
  display: grid;
  justify-content: center;
  align-items: center;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 4rem;
  padding: 4rem;
  margin: 0 auto;
  width: 100vw;
  background-color: #3366ff;
}

.card {
  --bg-filter-opacity: 0.5;
  height: 20em;
  width: 15em;
  font-size: 1.5em;
  color: white;
  border-radius: 1em;
  padding: 1em;
  /*margin: 2em;*/
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 5em -1em black;
  transition: all, var(--transition-time);
  position: relative;
  overflow: hidden;
  border: 10px solid #ccc;
  text-decoration: none;
}

.card:hover {
  transform: rotate(0);
}

.card h1 {
  margin: 0;
  font-size: 1.5em;
  line-height: 1.2em;
}

.card p {
  font-size: 0.75em;
  margin-top: 0.5em;
  line-height: 2em;
}

.card .tags {
  display: flex;
}

.card .tags .tag {
  font-size: 0.75em;
  background: rgba(255,255,255,0.5);
  border-radius: 0.3rem;
  padding: 0 0.5em;
  margin-right: 0.5em;
  line-height: 1.5em;
  transition: all, var(--transition-time);
}

.card:hover .tags .tag {
  background: var(--color);
  color: white;
}

.card .date {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.75em;
  padding: 1em;
  line-height: 1em;
  opacity: .8;
}

.card:before, .card:after {
  content: '';
  transform: scale(0);
  transform-origin: top left;
  border-radius: 50%;
  position: absolute;
  left: -50%;
  top: -50%;
  z-index: -5;
  transition: all, var(--transition-time);
  transition-timing-function: ease-in-out;
}

.card:before {
  background-color:#3366ff;
  width: 250%;
  height: 250%;
}

.card:after {
  background: white;
  width: 200%;
  height: 200%;
}

.card:hover {
  color: var(--color);
}
.card h1:hover {
  color: black;
}
.card p:hover {
  color: black;
}
.card:hover:before, .card:hover:after {
  transform: scale(1);
}

.card-grid-space .num {
  font-size: 3em;
  margin-bottom: 1.2rem;
  margin-left: 1rem;
}

.info {
  font-size: 1.2em;
  display: flex;
  padding: 1em 3em;
  height: 3em;
}

.info img {
  height: 3em;
  margin-right: 0.5em;
}

.info h1 {
  font-size: 1em;
  font-weight: normal;
}
@media screen and (orientation: landscape){
   .card{
    font-size: 18px;
   } 
}
/* MEDIA QUERIES */
@media screen and (max-width: 1285px) {
  .cards-wrapper {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media screen and (max-width: 900px) {
  .cards-wrapper {
    grid-template-columns: 1fr;
  }
  .info {
    justify-content: center;
  }
  .card-grid-space .num {
    margin-left: 0;
    text-align: center;
  }
}

@media screen and (max-width: 500px) {
  .cards-wrapper {
    padding: 4rem 2rem;
  }
  .card {
    max-width: calc(100vw - 4rem);
  }
}

@media screen and (max-width: 450px) {
  .info {
    display: block;
    text-align: center;
  }
  .info h1 {
    margin: 0;
  }
}
.product-card{
  transition: 1s;
}
.product-card:hover{
  transform: scale(1.05);
}
/* Personalizza la scrollbar */
::-webkit-scrollbar {
  width: 8px; /* Imposta la larghezza della scrollbar */
}

/* Personalizza il pollice della scrollbar */
::-webkit-scrollbar-thumb {
  background-color: #3366ff; /* Imposta il colore del pollice */
  border-radius: 4px; /* Imposta il bordo arrotondato per il pollice */
}


    .categorie{
        width: 100vw;
        height: auto;
        display: flex;      
        overflow: scroll;
        position: relative;
        background-color: rgba(0, 0, 0, 0.45);
    }



.categoria{
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    margin: 50px;
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.45);
    background-blend-mode: multiply;
    transition: 1s;
    cursor: pointer;
}
.categoria:hover{
    background-color: #3366ff;
}
#scrollContainer::-webkit-scrollbar{
    display: none;
}


.titolo_categoria{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* Vertically centers the text */
    justify-content: center; /* Horizontally centers the text (optional) */
    border: 1px solid #000;
    font-size: 30px;
    text-transform: uppercase;
    color: white;
}
.calze{
    background-image:url('../assets/img-categorie/calze.jpeg');
}
.integratori{
    background-image:url('../assets/img-categorie/integratori.jpg');
}
.ortopedia{
    background-image:url('../assets/img-categorie/ortopedia.png');
}
.carrozzine{
    background-image:url('../assets/img-categorie/carrozzine.jpeg');
}
.noleggi{
    width: 100vw;
    padding: 40px;
}
.varie{
    background-image:url('../assets/img-categorie/varie.jpeg');
}
.creme{
    background-image:url('../assets/img-categorie/creme.jpg');
}
.panni{
    background-image:url('../assets/img-categorie/panni.jpg');
}
.scheda_noleggio:hover{
    background-size: 120%;
}
.scheda_noleggio{
    height: 250px;
    width: 250px;
    border-radius: 10px;
    background-size: cover;
    position: relative;
    background-color: #3366ff;
    font-size: 15px;
    background-position: center;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: 100%; 
    transition: background-size 3s; 
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

@media screen and (orientation: landscape){
    .noleggi{
        display: flex;
        justify-content: space-around;
    }
 }

 @media screen and (orientation: portrait){
    .noleggi{
        display: inline;       
    }
    .scheda_noleggio{
        width: 90vw;
        height: 300px;
        margin: 30px auto;
    }
 }

 .nome_noleggio{
    position: absolute;
    top: 20px;
    left: 10px;
    border-radius: 40px;
    background-color: #3366ff;
    color: white;
    padding:  5px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}
.costo_noleggio{
    position: absolute;
    bottom: 20px;
    right: 10px;
    border-radius: 40px;
    background-color: green;
    color: white;
    padding:  5px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}
.cerca_prodotto {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  padding: 25px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Contenitore input */
.input {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border: 2px solid #3366ff;
  border-radius: 50px;
  padding: 10px 20px;
  width: 100%;
  max-width: 500px;
  transition: all 0.3s ease;
}

.input:hover {
  background: #f3f7ff;
  border-color: #2248d6;
}

/* Icona */
.input i {
  font-size: 18px;
  color: #3366ff;
  margin-right: 12px;
}

/* Campo di testo */
#search {
  border: none;
  background: transparent;
  font-size: 16px;
  flex: 1;
  color: #333;
}

#search::placeholder {
  color: #aaa;
}

#search:focus {
  outline: none;
}

/* Risultati */
#result {
  width: 90%;
  margin: 30px auto 60px;
}

/* Responsivo */
@media (max-width: 600px) {
  .input {
    max-width: 90%;
    padding: 8px 15px;
  }
  #search {
    font-size: 14px;
  }
  .input i {
    font-size: 16px;
  }
}
/* Box promozionale */
.promo-box {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* Copre tutta l'altezza della finestra */
  background-color: rgba(0, 0, 0, 0.8); /* Sfondo trasparente per oscurare il contenuto sottostante */
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  display: flex; /* Rende il box un contenitore flessibile */
}

/* Contenuto del box */
.promo-content {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 20px; /* Bordo più arrotondato per un aspetto più moderno */
  width: 90%; /* Occupa il 90% della larghezza disponibile */
  max-width: 800px; /* Max-width per evitare che sia troppo largo su desktop */
  text-align: center;
  position: relative;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Aggiunta ombra per effetto tridimensionale */
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Chiusura X */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 35px;
  color: #333;
  cursor: pointer;
  z-index: 1000;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #e74c3c; /* Colore rosso per la X al passaggio del mouse */
}

/* Messaggio promozionale */
.promo-message {
  font-size: 20px;
  margin-bottom: 25px;
  color: #333;
}

.promo-message h2 {
  color: #008cba; /* Colore per il titolo */
  font-size: 32px;
  margin-bottom: 20px;
}

.promo-message p {
  font-size: 18px;
  color: #555;
}

/* Annuncio AdSense */
.adsense-container {
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

/* Su mobile */
@media only screen and (max-width: 767px) {
  .promo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: 100vh; /* Copre tutta l'altezza su mobile */
  }

  .promo-content {
    width: 90%; /* Occupa il 90% della larghezza */
    max-width: 100%; /* Nessun limite alla larghezza */
    border-radius: 15px; /* Bordo arrotondato su mobile */
    padding: 20px; /* Diminuisce il padding su mobile */
  }

  .promo-message h2 {
    font-size: 28px;
  }

  .promo-message p {
    font-size: 16px;
  }

  .adsense-container {
    margin-top: 15px;
    padding-top: 15px;
  }

  .adsense-content {
    width: 100%; /* Rende l'annuncio completamente responsivo */
  }

  .adsbygoogle {
    width: 100% !important; /* Forza la larghezza dell'annuncio a riempire il box */
    max-width: 100% !important; /* Forza la larghezza dell'annuncio su dispositivi mobili */
  }
}

/* Su desktop */
@media only screen and (min-width: 768px) {
  .promo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: 100vh; /* Copre tutta l'altezza su desktop */
  }

  .promo-content {
    max-width: 700px; /* Limitato per desktop */
    padding: 30px; /* Padding maggiore su desktop */
    border-radius: 20px;
  }

  .promo-message h2 {
    font-size: 32px; /* Font più grande su desktop */
  }

  .promo-message p {
    font-size: 18px;
  }

  .adsense-container {
    margin-top: 25px;
    padding-top: 25px;
  }

  .adsense-content {
    width: 100%;
  }

  .adsbygoogle {
    width: 100% !important; /* Forza la larghezza dell'annuncio a riempire il box */
  }
}
/* ==================== SEZIONE EVIDENZA ==================== */

.evidenza {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
}

/* --- SLIDE --- */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.6);
  background-blend-mode: multiply;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
}

.slide[style*="opacity: 1"] {
  visibility: visible;
  z-index: 3;
  opacity: 1;
}

/* --- CONTENUTO TESTO --- */
.contenuto_slide {
  color: white;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  z-index: 5;
  animation: fadeIn 1s ease forwards;
}

.contenuto_slide h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 20px rgba(0,0,0,0.7);
}

.contenuto_slide h3 {
  display: inline-block;
  background: rgba(51, 102, 255, 0.85);
  color: white;
  font-size: 1.3rem;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* --- BOTTONE CHIAMA --- */
.slide button {
  background-color: #3366ff;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 40px;
  padding: 1rem 2.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(51, 102, 255, 0.6);
  transition: all 0.3s ease;
  z-index: 10;
}

.slide button a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.slide button i {
  margin-right: 10px;
}

.slide button:hover {
  background-color: white;
  color: #3366ff;
  box-shadow: 0 0 30px #3366ff;
  transform: scale(1.05);
}

.slide button:hover a {
  color: #3366ff;
}

/* --- PALLINI SLIDER --- */
.container_tasti {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 20;
}

.tasti {
  width: 14px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tasti:hover {
  background-color: #3366ff;
}

.tasti.active {
  width: 18px;
  height: 18px;
  background-color: #3366ff;
  box-shadow: 0 0 12px #3366ff;
}

/* --- ANIMAZIONI --- */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 1000px) {
  .contenuto_slide h2 {
    font-size: 2.3rem;
  }
  .contenuto_slide h3 {
    font-size: 1.1rem;
  }
  .slide button {
    font-size: 1rem;
    padding: 0.8rem 2rem;
  }
}

@media (max-width: 600px) {
  .contenuto_slide h2 {
    font-size: 1.8rem;
  }
  .contenuto_slide h3 {
    font-size: 1rem;
  }
  .slide button {
    font-size: 0.95rem;
    padding: 0.7rem 1.8rem;
  }
}


/* --- IMMAGINI SLIDE --- */
#serviziouno {
  background-image: url('../assets/evidenza/serviziouno.jpg');
}

#serviziodue {
  background-image: url('../assets/evidenza/serviziodue.jpg');
}

#serviziotre {
  background-image: url('../assets/evidenza/serviziotre.jpg');
}

#servizioquattro {
  background-image: url('../assets/evidenza/servizioquattro.jpg');
}

