/* RESET E STILI GENERALI */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #212529;
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}
p {
  margin: 0.5em 0;
}

/* TOP BAR */
.top-bar {
  background: #f8f9fa;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  font-size: 0.95em;
  z-index: 999; /* Mantiene la top bar sopra la hero e altre sezioni */
}

.left-area {
  display: flex;
  align-items: center;
  gap: 20px;
}
.right-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-weight: bold;
}
.lang-switch span {
  cursor: pointer;
  margin: 0 5px;
}
.lang-switch .active {
  font-weight: bold;
  text-decoration: underline;
}

/* MENU HAMBURGER A SCHERMO INTERO (OVERLAY) */
.hamburger-menu {
  display: block !important;
}

.menu-toggle {
  display: block !important;
  background: none !important;
  border: none !important;
  font-size: 1.5em !important;
  cursor: pointer !important;
}

.menu-content {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  /* Nessun border-radius in overlay completo */
}
.menu-content.open {
  transform: translateX(0);
}
.menu-inner {
  width: 80%;
  max-width: 400px;
  background: #fff;
  height: 100%;
  margin-left: auto; /* pannello che scorre da destra */
  padding: 20px;
  overflow-y: auto;
}
.menu-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-inner li {
  border-bottom: 1px solid #eee;
}
.menu-inner li:last-child {
  border-bottom: none;
}
.menu-inner li a, 
.menu-inner li button {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #212529;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.menu-inner li a:hover, 
.menu-inner li button:hover {
  background: #f8f9fa;
}

/* Aggiornamento submenu per evidenziare l'annidamento */
.submenu {
  margin-left: 10px;         /* sposta leggermente tutto il blocco a destra */
  padding-left: 20px;        /* ulteriore spazio all'interno */
  /*border-left: 2px solid #ccc; */
  background: #fdfdfd;
  border-radius: 8px;
  margin-top: 5px;
}

/* Se vuoi indentare ancora di più i singoli <li> */
.submenu li {
  margin-left: 10px;         /* sposta ogni li ancor più a destra */
  padding: 5px 0;            /* spazio verticale */
}

/* Nuova classe per il wrapper del pulsante "Vedi su Amazon" */
.buy-btn-wrapper {
  text-align: center;
  margin-top: 10px;
  width: 100%;
}

/* Classe per la freccia nella descrizione collassabile */
.desc-toggle {
  margin-left: 5px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
  background: #000 url('/images/hero.webp') center center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.hero .overlay {
  position: relative;
  padding: 80px 20px;
  z-index: 1;
}
.hero h1 {
  font-size: 2em;
  margin-bottom: 0.3em;
}
.hero p {
  font-size: 1.1em;
  margin-bottom: 1em;
}

/* PULSANTI */
.btn {
  display: inline-block;
  background: #ff9900;
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 5px;
  font-weight: bold;
  margin: 5px;
  font-size: 1em;
  transition: background 0.3s;
  cursor: pointer;
  border: none; /* Rimuove eventuali bordi bianchi */
}
.btn:hover {
  background: #e68a00;
}

/* SEZIONE LISTA PRODOTTI */
.product-list-section {
  padding: 40px 20px;
  background: #f8f8f8;
  transition: background 0.4s;
}
.product-list-section.male-filter {
  background: linear-gradient(to right, #e7f5ff, #f8f8f8);
}
.product-list-section.female-filter {
  background: linear-gradient(to right, #fff0f6, #f8f8f8);
}

.product-list-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* CARD PRODOTTO */
.product-card {
  background: #fff !important;
  border-radius: 8px !important;
  overflow: visible !important; /* Per non nascondere il timer */
  width: 320px !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid #ddd !important;
  position: relative !important; /* Necessario per posizionare il timer assolutamente */
  z-index: 1 !important;
}

/* TIMER COUNTDOWN */
.countdown-timer {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: #ff4d4f !important; /* Rosso acceso */
  color: #fff !important;
  padding: 5px 10px !important;
  border-radius: 4px !important;
  font-weight: bold !important;
  font-size: 0.9em !important;
  z-index: 9999 !important; /* Per stare sopra altri elementi */
}

/* CAROUSEL CON PALLINI (DOTS) E AUTO-PLAY */
.product-images-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 200px; /* Altezza fissa per semplicità */
  background: #f9f9f9;
}
.carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; 
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mostra interamente l'immagine */
  cursor: pointer;
  loading: lazy;
}
.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}
.carousel-dots {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}
.dot {
  width: 10px; 
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}
.dot.active {
  background: #555;
}

/* CORPO CARD */
.product-card-body {
  padding: 15px;
}
.product-card-body h3 {
  margin: 0;
  font-size: 1.2em;
}
.product-description {
  margin: 10px 0;
  font-size: 0.95em;
  color: #555;
}

/* RECENSIONI COLLASSABILI (ANIMATE CON max-height) */
.review-toggle {
  color: #000; 
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
  user-select: none; /* Evita selezione accidentale */
}
.review-section {
  overflow: hidden;
  max-height: 0; 
  transition: max-height 0.4s ease;
}
.review-section.open {
  max-height: 1000px; /* valore grande per mostrare tutto */
}
.review {
  background: #fff;
  border-left: 4px solid #ff9900;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
}
.review .stars {
  color: #ff9900;
  margin-bottom: 5px;
}
.review .author {
  font-weight: bold;
  text-align: right;
  font-size: 0.9em;
}

/* SEZIONE FINAL CALL */
.final-call {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
}
.final-call h3 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

/* FOOTER */
.footer {
  background: #343a40;
  color: #ccc;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9em;
}
.footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 5px;
}
.footer a:hover {
  text-decoration: underline;
}
.disclaimer {
  font-size: 0.8em;
  color: #bbb;
  max-width: 800px;
  margin: 10px auto 0;
  line-height: 1.4;
}

/* COOKIE BANNER E MODAL */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #333;
  color: #fff;
  padding: 15px;
  font-size: 0.9em;
  z-index: 10000;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.cookie-banner p {
  margin: 0 10px 10px 10px;
  flex: 1 1 300px;
}
.cookie-btn {
  background: #555;
  color: #fff;
  border: none;
  padding: 8px 12px;
  margin: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}
.cookie-btn:hover {
  background: #777;
}
.cookie-modal {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}
.cookie-modal-content {
  background: #fff;
  color: #000;
  padding: 20px;
  border-radius: 5px;
  max-width: 300px;
  text-align: left;
}
.cookie-modal-content h4 {
  margin-top: 0;
}
.cookie-modal-content label {
  display: block;
  margin: 5px 0;
}
.cookie-modal-content button {
  background: #ff9900;
  color: #fff;
  border: none;
  padding: 8px 12px;
  margin: 10px 5px 0 0;
  border-radius: 4px;
  cursor: pointer;
}
.cookie-modal-content button:hover {
  background: #e68a00;
}

/* LIGHTBOX MODAL */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  text-align: center;
}
.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* RESPONSIVE */
@media(max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .left-area, 
  .right-area {
    position: static;
    margin-left: 0;
    margin-right: 0;
  }

  /* Menu overlay: nulla di particolare, l'overlay resta uguale */
  .menu-inner {
    width: 100%;
    border-radius: 0;
  }

  .product-list-container {
    flex-direction: column;
    align-items: center;
  }
  .product-card {
    width: 90%;
  }
  .hero .overlay {
    padding: 60px 20px;
  }
  .hero h1 {
    font-size: 1.6em;
  }
  .hero p {
    font-size: 1em;
  }
}

/* freccia per tornare in alto nella pagina*/
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333 !important;
  color: #fff !important;
  width: 40px !important;
  height: 40px !important;
  line-height: 40px !important; /* Allinea verticalmente il testo */
  text-align: center !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  font-size: 20px !important;
  z-index: 1000;
  display: none; /* inizialmente nascosto */
  transition: opacity 0.3s ease;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

#back-to-top.visible {
  display: block !important;
}

#back-to-top:hover {
  background: #555 !important;
}




