.list-sites__item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  /* Aggiunta del separatore */
  padding: 16px 10px;
  /* Spaziatura tra i prodotti */
}

.list-sites__card {
  display: flex;
  align-items: center;
  width: 100%;
}

#cart-button {
  position: relative; /* Necessario per posizionare il contatore */
}

.cart-counter {
  position: absolute;
  top: 13px; /* Regola per posizionarlo sopra l'icona */
  right: -5px; /* Regola per posizionarlo leggermente a destra */
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
  display: none; /* Nascondilo se il carrello è vuoto */
  z-index: 10; /* Assicurati che sia sopra l'icona */
  font-weight: bold;
  text-align: center;
  line-height: 1;
}



.list-sites__figure {
  flex-shrink: 0;
  margin-right: 16px;
  /* Aggiunta della spaziatura tra l'immagine e il testo */
  border-radius: 50%;
  /* Immagine rotonda */
  overflow: hidden;
  /* Nascondi il contenuto al di fuori del bordo arrotondato */
}

.list-sites__media {
  width: 75px;
  height: 75px;
  object-fit: cover;
  display: block;
  /* Copri completamente il contenuto dell'immagine */
}

.list-sites__info {
  flex-grow: 1;
}

.zoomed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #020202cc;
  z-index: 9999;
  display: none;
}

.zoomed img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  max-height: 80%;
}

.zoomed::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/*===============
  global styles
===============*/
.marquee-text {
  width: 100%;
  /* Ensure the marquee takes up the full width */
  overflow: hidden;
  /* Hide the overflowing content */
  white-space: nowrap;
  /* Prevent wrapping of text */
}

.marquee-text div {
  display: inline-block;
  /* Display divs in a row */
  margin-right: 20px;
  /* Add space between each marquee item */
}

/* Define keyframes for marquee animation */
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }

  /* Start off-screen */
  100% {
    transform: translateX(-100%);
  }

  /* Move to the left */
}

/* Apply animation to each marquee item */
.marquee-text div {
  animation: marquee 14s linear infinite;
  /* Adjust animation speed as needed */
}

/* Aggiungi queste regole CSS per il campo di ricerca */
#search {
  display: flex;
  align-items: center;
}

#input {
  flex: 1;
  /* Il campo di input si espanderà per occupare lo spazio rimanente */
  padding: 0.1rem;
  margin: 0 1rem;
  border: 1px solid #ccc;
  border-radius: 100px;
}

/* Aggiungi media query per adattare le dimensioni del campo di input in base alla larghezza dello schermo */
@media screen and (max-width: 768px) {
  #input {
    flex: none;
    /* Annulla la regola flex per consentire al campo di input di avere una dimensione fissa */
    width: 100%;
    /* Il campo di input occupa l'intera larghezza del suo contenitore */
    margin: 0;
  }

  .about__desc img {
    display: block;
    /* Imposta l'immagine come blocco per consentire di centrarla */
    margin: 0 auto;
    /* Centra l'immagine orizzontalmente */
    border-radius: 10px;
    /* Aggiunge bordi smussati all'immagine */
    max-width: 90%;
    /* Limita la larghezza massima dell'immagine */
  }

  .marquee-text div {
    display: inline-block;
    /* Display divs in a row */
    margin-right: 30px;
    /* Add space between each marquee item */
  }
}

#search {
  -webkit-box-align: center;
  align-items: center;
  background: #4b42333d;
  border-radius: 100px;
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  margin: 1.5em 0;
  padding: 0.5em 0.5em 0.5em 1em;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  width: 100%;
  margin-right: 1rem;
  margin-left: 0rem;
}

#search:hover,
#search:focus {
  background: #4b423394;
}

#search button,
#search input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  color: whitesmoke;
  font: inherit;
  outline: 0;
}

#button i {
  font-size: 17px;
  color: whitesmoke;
  padding-top: 50%;
  padding-bottom: 50%;
}

#search button {
  cursor: pointer;
  padding: 0 0.25em;
}

#search input {
  -webkit-box-flex: 1;
  flex: 1;
  font-size: 22px;
  padding-left: 10px;
}

#search input::placeholder {
  color: #fff;
}

.projects {
  background-color: #f5f5f591;
}

.with-background {
  background-color: #f5f5f5;
  /* Colore di sfondo desiderato */
  padding: 20px;
  /* Aggiungi spazio intorno ai prodotti */
  border: none;
}

* {
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  background-color: inherit;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  box-shadow: none;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
  color: var(--clr-fg);
  background-color: var(--clr-bg);
}

.light {
  --clr-bg: #fcfcfc;
  --clr-bg-alt: #fff;
  --clr-fg: #555;
  --clr-fg-alt: #444;
  --clr-primary: #4b4233;
  --shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.dark {
  --clr-bg: #23283e;
  --clr-bg-alt: #2a2f4c;
  --clr-fg: #bdbddd;
  --clr-fg-alt: #cdcdff;
  --clr-primary: #90a0d9;
  --shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
    rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

::-moz-selection {
  background: var(--clr-primary);
  color: var(--clr-bg);
}

::-webkit-selection,
::selection {
  background: var(--clr-primary);
  color: var(--clr-bg);
}

h1,
h2,
h4 {
  line-height: 1.2;
  color: var(--clr-fg-alt);
  padding-top: 1rem;
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--clr-fg-alt);
  padding-top: 0rem;
}

h4 {
  font-size: 1.3rem;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 900px) {
  h1 {
    font-size: 2.6rem;
  }
}

/*===================
  buttons and links
===================*/

.link {
  color: var(--clr-primary);
  padding: 0 0 0.3em 0;
  position: relative;
}

.link:hover {
  color: var(--clr-primary);
}

.link::before {
  content: "";
  display: inline;
  width: 0%;
  height: 0.2em;
  position: absolute;
  bottom: 0;
  background-color: var(--clr-primary);
  transition: width 0.2s ease-in;
}

.link:hover::before,
.link:focus::before {
  width: 100%;
}

.link--nav {
  color: var(--clr-fg);
  text-transform: lowercase;
  font-weight: 500;
}

.link--icon {
  color: var(--clr-fg);
  font-size: 1.2rem;
}

.btn {
  display: block;
  padding: 0.8em 1.4em;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: lowercase;
  transition: transform 0.2s ease-in-out;
}

.btn--outline {
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--outline:focus,
.btn--outline:hover {
  color: var(--clr-bg);
}

.btn--outline:before {
  content: "";
  position: absolute;
  background-color: var(--clr-primary);
  right: 100%;
  bottom: 0;
  left: 0;
  top: 0;
  z-index: 1;
  transition: right 0.2s ease-in-out;
}

.btn--outline:hover::before,
.btn--outline:focus::before {
  right: 0;
}

.btn--plain {
  text-transform: initial;
  background-color: var(--clr-bg-alt);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 3px 3px 0px;
  border: 0;
}

.btn--plain:hover {
  transform: translateY(-4px);
}

.btn--icon {
  font-size: 1.5rem;
}

.btn--icon:hover,
.btn--icon:focus {
  color: var(--clr-primary);
}

.btn--icon:active {
  transform: translateY(-5px);
}

/*========
  layout
========*/

.center {
  display: flex;
  align-items: center;
  text-align: center;
}

.header {
  height: 8em;
  max-width: 1100px;
  width: 95%;
  margin: 0 auto;
  justify-content: space-between;
}

main {
  max-width: 1100px;
  width: 95%;
  margin: 0 auto;
}

.section {
  margin-top: 5em;
}

.section__title {
  text-align: center;
  margin-bottom: 1em;
  text-transform: uppercase;
}

.nav__list {
  margin-right: 1.5em;
  display: flex;
}

.nav__list-item {
  margin-left: 1.5em;
}

.nav__hamburger {
  display: none;
  width: 1em;
}

.about {
  flex-direction: column;
  margin-top: 3em;
}

.about__name {
  color:#f17f1c
}

.about__role {
  margin-top: 1.2em;
}

.about__desc {
  font-size: 1rem;
  max-width: 900px;
}

.about__desc img {
  max-width: 90%;
  /* Larghezza massima al 100% del contenitore genitore */
  height: auto;
  /* Altezza automatica per mantenere le proporzioni originali */
  border-radius: 10px;
  padding-bottom: -2em;
}

.about__desc,
.about__contact {
  margin-top: 1.4em;
}

.about .link--icon {
  margin-right: 0.8em;
}

.about .btn--outline {
  margin-right: 1em;
}

.projects__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18em, 1fr));
  grid-gap: 2em;
}

.project {
  padding: 2em;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s linear;
}

.project:hover {
  transform: translateY(-7px);
}

.project__description {
  margin-top: 1em;
}

.project__stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.2em 0;
}

.project__stack-item {
  margin: 0.5em;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--clr-fg-alt);
}

.project .link--icon {
  margin-left: 0.5em;
}

.skills__list {
  max-width: 450px;
  width: 95%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.skills__list-item {
  margin: 0.5em;
}

.contact {
  flex-direction: column;
}

.footer {
  padding: 3em 0;
  margin-top: 4em;
  text-align: center;
}

.footer__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-fg);
}

.scroll-top {
  display: none;
  position: fixed;
  bottom: 1em;
  right: 2em;
  background-color: transparent;
  font-size: 1.8rem;
  transition: transform 0.2s ease-in-out;
}

@media (max-width: 600px) {
  .header {
    height: 6em;
  }

  .section {
    margin-top: 4em;
    border-radius: 30px;
  }

  .nav__list {
    flex-direction: column-reverse;
    padding: 4em 0;
    position: absolute;
    right: 0;
    left: 0;
    top: 5em;
    background-color: var(--clr-bg);
    width: 100%;
    overflow: hidden;
    transition: width 0.2s ease-in-out;
    z-index: 1;
  }

  .display-nav-list {
    width: 100%;
  }

  .nav__list-item {
    margin: 0.5em 0;
  }

  .nav__hamburger {
    display: flex;
    margin-left: 0.8em;
  }

  .about {
    align-items: flex-start;
    margin-top: 2em;
  }

  .footer {
    padding: 2em;
    margin-top: 3em;
  }

  .scroll-container {
    display: none;
  }
}

@media (max-width: 4000px) {
  .header {
    height: 6em;
  }

  .nav__list {
    flex-direction: column-reverse;;
    padding: 4em 0;
    position: absolute;
    right: 0;
    left: 0;
    top: 5em;
    background-color: var(--clr-bg);
    width: 100%;
    overflow: hidden;
    transition: width 0.2s ease-in-out;
    z-index: 1;
  }

  .display-nav-list {
    width: 100%;
  }

  .nav__list-item {
    margin: 0.5em 0;
  }

  .nav__hamburger {
    display: block;
    margin-left: 0.8em;
    margin-right: 1em;
  }
}

/* Stili per il popup */
.popup {
  display: none;
  position: fixed;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #fefefe00;
  padding: 20px;
  text-align: center;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}


.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.modal-title {
  font-size: 1.5em;
  margin: 0;
  padding: 0;
}

.close {
  font-size: 1.5em;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: black;
}

#cart-modal-content {
  background-color: #fefefe;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  height: 90%;
  overflow-y: auto;
  z-index: 9999;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#whatsapp-order {
  display: block;
  margin: auto;
  width: 90%;
  max-width: 300px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.modal-title {
  font-size: 1.5em;
  margin: 0;
  padding: 0;
}

.close {
  font-size: 1.5em;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: black;
}

#login-modal-content {
  background-color: #fefefe;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  height: auto; /* Adatta automaticamente all'altezza del contenuto */
  max-width: 400px;
  overflow-y: auto;
  z-index: 9999;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

#login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* Spaziatura tra i campi del modulo */
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#Accedi {
  display: block;
  margin: auto;
  width: 50%;
  max-width: 200px;
}



.modal-content {
  background-color: #fefefe;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border: 1px solid #888;
  width: 90%; /* Puoi regolare la larghezza a tuo piacimento */
  height: 90%; /* Puoi regolare l'altezza a tuo piacimento */
  overflow-y: auto; /* Aggiungo lo scrolling verticale se il contenuto è troppo grande */
  z-index: 9999; /* Assicurati che il modale sia sopra ogni altro contenuto */
  border-radius: 10px;
}

#Accedi {
  align-content: center;
  width: 100%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.form-group {
  text-align: center;
  margin-bottom: 20px;
}

.input-field {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.btn--center {
  display: block;
  margin: auto;
}

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

  /* Riduci la dimensione del carattere per schermi più piccoli */
  body {
    font-size: 12px;
    /* Modifica la dimensione del carattere a tuo piacimento */
  }

  .list-sites__media {
    width: 50px;
    height: 45px;
    object-fit: cover;
  }

  #search input {
    -webkit-box-flex: 1;
    flex: 1;
    font-weight: 500;
    font-size: 15px;
  }
}


.special-offer {
  background-color: #91ce78; /* Imposta il colore di sfondo per le offerte speciali */
  border-radius: 10px;
}

.super-offer {
  background-color: #ffca66; /* Imposta il colore di sfondo per le offerte super speciali */
  border-radius: 10px;
}

.discounted {
  background-color: #efda76f7; /* Imposta il colore di sfondo per gli articoli in sconto */
  border-radius: 10px;
}

/* Stili per il slideshow */
.slideshow-container {
  max-width: 1000px;

}

.mySlides {
  display: none;
}


