/* === FONT PHOENIX VINTAGE === */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');


/* ===== MENU HAMBURGER (desktop default) ===== */
.menu-toggle {
  display: none; /* 👈 nasconde il bottone hamburger su desktop */
}
html, body {
  min-height: 100vh; /* ✅ permette di crescere oltre la viewport */
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* il contenuto principale cresce e spinge il footer in basso */
main {
  flex: 1;
}

/* footer sempre in fondo, senza spazio bianco */
.footer {
  margin-top: auto;
  background-color: #111;
  color: #fff;
}

/* ==== FONT & COLOR ==== */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #fff;
  color: #000;
}

/* ==== HEADER ==== */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

/* ===== BARRA NERA SUPERIORE ===== */
.top-bar {
  width: 100%;
  background: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  letter-spacing: 0.5px;
}

/* Testo a sinistra */
.left-text p {
  margin: 0;
  font-weight: 400;
  padding-left: 30px;
}

/* Icone e barra di ricerca a destra */
.right-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-right: 30px;
}

/* Campo di ricerca */
.search-form {
  display: flex;
  align-items: center;
  background: #111;
  border-radius: 20px;
  overflow: hidden;
}

.search-input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 6px 10px;
  width: 140px;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
}

.search-input::placeholder {
  color: #aaa;
}

.search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px 8px;
}
.search-btn:hover {
  transform: scale(1.2);
}

/* ===== ICONS ===== */
.icon-img {
  width: 18px;    
  height: 18px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.icon-img:hover {
  transform: scale(1.15);
  opacity: 0.8;
}

.icon-link {
  display: flex;
  align-items: center;
}

.large-icon {
  width: 28px !important;   /* 👈 forza la dimensione sopra la regola base */
  height: 28px !important;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 0px 0;
}

.logo {
  width: 200px;          /* 👈 dimensione base (modifica liberamente) */
  max-width: 90%;
  height: auto;
  filter: brightness(0) saturate(100%); /* mantiene il logo nero puro */
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}



/* ==== NAVBAR ==== */
/* NAVBAR PRINCIPALE (DESKTOP) */
/* ====== NAVBAR DESKTOP ====== */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #eee;
  padding: 15px 0;
  background: #fff;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links > * {
  margin: 0 clamp(20px, 4vw, 40px);
}



.nav-links a {
  text-decoration: none;
  color: #000;
  font-size: 17px;
  font-weight: 400;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  letter-spacing: 1px;
  font-weight: 500;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  top: 25px;
  min-width: 160px;
  z-index: 100;
  text-align: left;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  color: black;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ==== HERO SEZIONE CON CAROSELLO ==== */
.hero {
  position: relative;
  height: 60vh; /* o regola la dimensione */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #f8f8f8;
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px;

}

/* Effetto gradiente attorno al testo */


.hero-text > * {
  position: relative;
  z-index: 1;
}


.hero-text h2 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.1rem;
  color: #000000;
  margin-bottom: 25px;
}


.hero-text::before {
  content: "";
  position: absolute;
  inset: -150px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.4), rgba(0,0,0,0) 90%);
  z-index: 1;
  filter: blur(25px);
  pointer-events: none;
  animation: pulseGlow 4s ease-in-out infinite;
}

/* === Carosello sovrapposto === */
.hero-carousel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60vh; /* puoi regolare: 80vh per più impatto */
  overflow: hidden;
  z-index: 1;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.carousel-item {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden; /* non visibile: mantiene proporzioni perfette */
}

/* effetto bordo/bagliore */
.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* immagine o video che riempie completamente */
.carousel-item img,
.carousel-item video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.55);
  transition: transform 0.5s ease, filter 0.5s ease;
}





.btn {
  background: black;
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #333;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 22px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: #fff;
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }



/* ====== CATEGORIA – STILE PREMIUM ====== */

.categoria-container {
  padding: 60px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.categoria-titolo {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: #111;
  text-align: center;
  letter-spacing: 1.5px;
  position: relative;
  margin-bottom: 50px;
}

.categoria-titolo::before,
.categoria-titolo::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: #aaa;
}

.categoria-titolo::before {
  left: 0;
  transform: translate(-80px, -50%);
}

.categoria-titolo::after {
  right: 0;
  transform: translate(80px, -50%);
}



.categoria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 prodotti per riga */
  gap: 25px;
}

/* --- CARD --- */
.categoria-card {
  position: relative;
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 320px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;  
}

.categoria-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.25;
  background-color: #f8f8f8;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



.categoria-card:hover .img-wrapper img {
  transform: scale(1.05);
}

/* --- CUORICINO --- */
.fav-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
}

.fav-btn img {
  width: 25px;
  height: 25px;
  filter: invert(1);
}

.categoria-card:hover .fav-btn {
  opacity: 1;
  transform: scale(1.1);
}

.fav-btn:hover {
  background: #fff;
  transform: scale(1.2);
}

/* --- TESTO --- */
.info {
  padding: 15px 10px;
  text-align: left;
}

.info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  margin: 8px 0 5px;
}

.info .price {
  color: #555;
  font-size: 0.95rem;
  font-weight: 400;
}


/* ====== PAGINA DETTAGLIO PRODOTTO ====== */
.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 5%;
  align-items: start;
}

/* --- Galleria Immagini --- */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image {
  position: relative;
  width: 100%;
  max-width: 500px;   /* ⬅️ limite fisso */
  aspect-ratio: 1 / 1.3;
  overflow: hidden;
  background: #f7f7f7;
}


.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}


.thumbnail-row {
  display: flex;
  flex-wrap: wrap;        /* ⬅️ fondamentale */
  gap: 10px;
  max-width: 500px;       /* ⬅️ evita che si allarghi più della main image */
  margin-top: 15px;
}

.thumb {
  width: 55px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}


.thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* --- Info prodotto --- */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #111;
  margin-bottom: 5px;
}

.product-category {
  color: #777;
  font-size: 0.9rem;
  letter-spacing: 0.5px;

}

.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
}

.product-description {
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
}

/* ====== PULSANTI AZIONE PRODOTTO ====== */

.product-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}



.buy-now-btn {
  background: #000;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;

}

.buy-now-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.add-to-cart-btn .btn-icon {
  width: 20px;
  height: 20px;
  filter: invert(0); /* rende bianca l’icona nera */
}


/* --- Bottone preferiti (cuoricino) --- */
.fav-btn-2 {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
  pointer-events: none; /* di default non blocca il link */
}

.fav-btn-2 img {
  width: 25px;
  height: 25px;
  filter: invert(1);
}
.fav-btn-2:hover {
  transform: scale(1.15);
  background: #f9f9f9;
}

.fav-btn-2 .btn-icon {
  width: 22px !important;
  height: 22px !important;
  filter: invert(1) !important; 
}


/* ===== LINK DELLA CARD ===== */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}

.card-link:hover .img-wrapper img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
.categoria-card:hover .fav-btn-2 {
  opacity: 1;
  transform: scale(1.1);
  pointer-events: auto; /* attivo solo quando visibile */
}

.categoria-card:hover .card-link {
  z-index: 1;
}
.card-link:hover .img-wrapper img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.fav-btn-2:hover {
  background: #fff;
  transform: scale(1.2);
}

/* Nascondi la barra "Acquista Ora" su desktop */
@media (min-width: 769px) {
  .mobile-buy-bar {
    display: none !important;
  }
}


.thumbnail-row {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumb {
  width: 55px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.5;
  cursor: pointer;
  filter: blur(1px);
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.thumb:hover {
  opacity: 0.9;
  transform: scale(1.05);
  filter: blur(0);
}

.thumb.active {
  opacity: 1;
  filter: blur(0);
  border: 2px solid #000;
}

.size-selector p {
  font-size: 1rem;
  color: #333;
  margin-top: 10px;
}


.pay-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}
.pay-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.pay-btn:hover {
  transform: scale(1.05);
}
.pay-btn img {
  width: 80px;
  height: auto;
}


.ordine-completato {
  text-align: center;
  margin: 100px auto;
  padding: 40px 20px;
  border-radius: 16px;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  background-color: #fff;
}

.ordine-completato.success {
  border: 2px solid #28a745;
}

.ordine-completato.error {
  border: 2px solid #dc3545;
}

.ordine-completato .status-icon {
  width: 80px;
  margin-bottom: 20px;
}

.ordine-completato h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.ordine-completato p {
  font-size: 1.1rem;
  margin: 8px 0;
  color: #444;
}

.btn-home {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 24px;
  border-radius: 8px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-home:hover {
  background-color: #333;
}

/* --- Link nella sezione categoria del prodotto --- */
.product-category a:link,
.product-category a:visited,
.product-category a:hover,
.product-category a:active {
  color: #000 !important;        /* forza il colore nero */
  text-decoration: none !important; /* rimuove la sottolineatura */
}

.product-category a {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}



/* ==== ACCOUNT PAGES ==== */
.account-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  text-align: center;
}

.account-header {
  margin-bottom: 30px;
}

.account-logo {
  width: 140px;
  height: auto;
  margin-bottom: 15px;
}

.form-utente {
  max-width: 400px;
  width: 100%;
  margin: 0 auto 20px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.form-utente input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
}

.btn-account {
  background-color: #000;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-account:hover {
  background-color: #333;
}

.logout-btn {
  margin-top: 25px;
}

.account-text {
  margin-top: 15px;
  font-size: 15px;
}

.account-link {
  color: #000;
  font-weight: 600;
  text-decoration: underline;
}

.account-info {
  font-size: 16px;
  margin-top: 10px;
  line-height: 1.6;
}

/* ==== MENU UTENTE (ICONA E DROPDOWN) ==== */
.user-menu {
  position: relative;
  display: inline-block;
  margin-left: 15px;
}

.user-icon {
  width: 22px;
  height: auto;
  cursor: pointer;
  transition: opacity 0.2s;
}

.user-icon:hover {
  opacity: 0.8;
}

/* Dropdown */
.user-dropdown {
  position: absolute;
  top: 35px;
  right: 0;
  background-color: #fff;
  min-width: 150px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* 🔹 Rimane aperto anche quando il mouse è sopra la tendina */
.user-menu:hover .user-dropdown,
.user-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Link dentro la tendina */
.user-dropdown a {
  display: block;
  padding: 10px 15px;
  color: #000;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  transition: background 0.2s;
}

.user-dropdown a:hover {
  background-color: #f4f4f4;
}
.account-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #fff;
}

.account-container {
  text-align: center;
  margin: auto;
}

.account-logo {
  width: 80px;
  margin-bottom: 20px;
}

.btn-primary {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
}
.btn-primary:hover {
  background: #333;
}


/* === ACCOUNT PAGE LAYOUT === */
/* === TOP BAR FISSA === */
.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  z-index: 1000;
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Centra leggermente meglio le icone */
.fixed-top .right-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-15px); /* sposta tutto il gruppo verso sinistra */
}

/* === CONTENITORE ACCOUNT === */
.account-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #fff;
}

/* Spazio sotto la top bar */
.account-container {
  margin-top: 120px;
  text-align: center;
  max-width: 1000px;
  width: 90%;
  padding: 30px 20px;
}

/* Logo e titolo */

.account-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #000;
}

/* Form centrato e armonioso */
.account-content form {
  display: flex;
  flex-direction: column;
  align-items: center;   /* 👈 centra tutti gli input e il bottone */
  gap: 15px;
  width: 100%;
  font-size: 1.1rem;
}

.account-content input {
  width: 100%;
  max-width: 360px;   /* stessa larghezza per entrambi */
  font-size: 1rem;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box; /* evita differenze dovute al padding */
}

.account-content input:focus {
  border-color: #000;
  outline: none;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}


/* Bottone centrato e bilanciato */
.account-content button {
  display: block;
  margin: 10px auto 0 auto;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 12px 35px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.account-content button:hover {
  background: #333;
  transform: scale(1.04);
}

/* Link “registrati” / “accedi” sotto */
.account-content p,
.account-content a {
  font-size: 0.95rem;
  color: #000;
  text-decoration: none;
}

.account-content a:hover {
  text-decoration: underline;
}
.account-content input[type="email"],
.account-content input[type="password"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}


/* ================================
   PAGINA PROFILO UTENTE
================================ */
/* ======= CARD PRINCIPALE ======= */
.profile-card {
  width: 90%;            /* si adatta allo schermo */
  max-width: 900px;      /* limite massimo */
  margin: 40px auto;     /* centrata */
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: 'Poppins', sans-serif;
}

/* ======= INTESTAZIONE PROFILO ======= */
.profile-header {
  text-align: center;
  margin-bottom: 30px;
}

.profile-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid #ddd;
  background-color: #000;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}


.profile-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

/* ======= SEZIONE FORM ======= */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-title {
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

/* ===== Gruppo di campi su una riga ===== */
.input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* ===== Colonne ===== */
.input-row {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 📏 Larghezze in percentuale */
.input-row.wide {
  width: 70%;
  min-width: 300px;
}

.input-row.medium {
  width: 50%;
  min-width: 250px;
}

.input-row.small {
  width: 25%;
  min-width: 120px;
}

/* ===== Campi input ===== */
.input-field {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.input-field:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}


/* ===== Modalità mobile ===== */
@media (max-width: 700px) {
  .input-group {
    flex-direction: column;
    gap: 15px;
  }

  .input-row.wide,
  .input-row.medium,
  .input-row.small {
    width: 100%;
    min-width: auto;
  }
}


/* ======= BOTTONI ======= */
.btn-account {
  display: inline-block;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: 500;
  text-align: center;
  transition: background 0.3s ease, transform 0.1s ease;
}

.btn-account:hover {
  background: #222;
  transform: scale(1.02);
}

/* ======= LINK ADMIN ======= */
.admin-link {
  display: inline-block;
  margin-top: 30px;
  background-color: #333;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.admin-link:hover {
  background-color: #555;
}

/* ======= LINK LOGOUT ======= */
.profile-actions {
  text-align: center;
}

.logout-link {
  display: inline-block;
  margin-top: 25px;
  color: #000;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.logout-link:hover {
  color: #444;
}

/* ======= DIVISORE ======= */
.divider {
  margin: 30px 0;
  border: 0;
  height: 1px;
  background: #ddd;
}


/* ===== bottoni popup ===== */
.popup-login {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-box {
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
}

.btn-login {
  display: inline-block;
  background: black;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  margin: 10px;
  text-decoration: none;
}

.btn-close {
  background: #ccc;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
}




.toast-msg {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 30px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  letter-spacing: 0.4px;
}

.toast-msg.visibile {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.rimuovi-btn {
  background: #f8f8f8;
  border: 1px solid #ccc;
  color: #333;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.rimuovi-btn:hover {
  background: #ffecec;
  color: #d00;
}

.heart-icon {
  width: 20px !important;
  height: 20px !important;
  transition: filter 0.2s ease, transform 0.2s ease;
}




/* ===== SEZIONE CHI SIAMO ===== */
.chi-siamo-section {
  max-width: 1100px;
  margin: 100px auto;
  padding: 0 5%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
}

.chi-siamo-text {
  flex: 1 1 500px;
}


.chi-siamo-text p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}
/* === Nascondi hamburger su desktop === */
.menu-toggle {
  display: none;
}

.chi-siamo-quote {
  font-style: italic;
  font-weight: 500;
  color: #000;
  border-left: 3px solid #000;
  padding-left: 15px;
  margin-top: 25px;
}

.chi-siamo-foto {
  flex: 1 1 400px;
  text-align: center;
}

.chi-siamo-foto img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.chi-siamo-foto img:hover {
  transform: scale(1.03);
}

.chi-siamo-nomi {
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 500;
  color: #555;
}


/* ===== FOOTER ===== */
.footer {
  background-color: #111;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding: 40px 20px 10px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
}

.footer-section {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-section h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.footer-section p,
.footer-section li {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: #fff;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.newsletter form {
  margin-top: 10px;
}

.newsletter input[type="email"] {
  width: 70%;
  padding: 8px;
  border: none;
  border-radius: 20px 0 0 20px;
  outline: none;
  font-size: 0.9rem;
}

.newsletter button {
  padding: 8px 15px;
  border: none;
  border-radius: 0 20px 20px 0;
  background-color: #00a859;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter button:hover {
  background-color: #008c4c;
}

.privacy-note {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #aaa;
}

.footer-bottom {
  border-top: 1px solid #222;
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-inline: auto;
}

.social-icons img {
  width: 22px;
  margin: 0 8px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.social-icons img:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .newsletter input[type="email"] {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 10px;
  }
  .newsletter button {
    width: 100%;
    border-radius: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .chi-siamo-section {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }

  .chi-siamo-text p {
    text-align: left;
  }

  .chi-siamo-text h1 {
    font-size: 2.2rem;
  }
}


.field-error {
    border-color: red !important;
    background: #ffe6e6;
}

#accetta_termini.field-error {
    outline: 2px solid red;
}

#checkout-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: black;
    color: white;
    padding: 12px 18px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-size: 0.95rem;
    z-index: 9999;
}

#checkout-alert.visible {
    opacity: 1;
}
/* 🔒 Modal nascosta di default (ma pronta a transizioni) */
  .login-modal {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;

      background: rgba(0,0,0,0.55);

      display: none;
      justify-content: center;
      align-items: center;

      z-index: 99999;

      opacity: 0;
      pointer-events: none; 

      transition: opacity 0.25s ease;
  }

  /* 🔓 Modal visibile */
  .login-modal.show {
      display: flex !important;
      opacity: 1;
      pointer-events: auto;
  }


.login-modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.login-modal p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.login-modal-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.login-modal-buttons button {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

#login-yes {
    background: black;
    color: white;
}

#login-yes:hover {
    background: #333;
}

#login-no {
    background: #e3e3e3;
}

#login-no:hover {
    background: #d1d1d1;
}


.price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.old-price {
    color: #888;
    text-decoration: line-through;
    font-size: 14px;
}

.new-price {
    font-weight: bold;
    color: #000000;
    font-size: 18px;
}

.discount-tag {
    background: #e0b889;
    color: rgb(0, 0, 0);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 4px;
    display: inline-block;
}


/* === METODO DI PAGAMENTO === */
.payment-method-box {
  background: #f9f9f9;
  padding: 20px;
  margin-top: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.payment-method-box h2 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: #fff;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.payment-option:hover {
  background: #f2f2f2;
  border-color: #bbb;
}

.payment-option input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #555;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}

.payment-option input[type="radio"]:checked {
  border-color: #000;
}

.payment-option input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #000;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.contrassegno-buy-btn {
  width: 100%;
  margin-top: 10px;
  background: #eee;
  color: #000;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid #bbb;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.contrassegno-buy-btn:hover {
  background: #e0e0e0;
}



/* ---- SISTEMA UNIFICATO BOTTONI PRODOTTO ---- */

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 25px;
  height: 48px;

  border-radius: 25px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;

  transition: all 0.25s ease;
  min-width: 180px;  /* 👈 Coerenza */
}

/* Varianti */
.action-btn.black {
  background: #000;
  color: #fff;
  border: none;
}

.action-btn.black:hover {
  background: #333;
  transform: translateY(-2px);
}

.action-btn.white {
  background: #fff;
  border: 1px solid #bbb;
  color: #000;
}

.action-btn.white:hover {
  background: #eee;
  transform: translateY(-2px);
}
/* === ROTAZIONE TOPBAR — VERSIONE DEFINITIVA === */

/* Contenitore rotatore */
.topbar-rotator {
    position: relative;
    height: 22px;            /* altezza per una singola riga */
    overflow: hidden;
    display: flex;
    align-items: center;
    width: 100%;             /* 🔥 si espande correttamente */
}

/* Messaggi */
.rotator-message {
    position: absolute;
    left: 20px;        /* distanza da sinistra */
    width: 100%;

    white-space: nowrap;     /* 🔥 evita che il testo vada a capo */
    opacity: 0;
    transform: translateY(20px); /* parte dal basso */
    transition: all 0.4s ease-in-out;

    color: white;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
}

/* Messaggio visibile */
.rotator-message.active {
    opacity: 1;
    transform: translateY(0);   /* entra nella posizione giusta */
}

/* Contenitore sinistro della topbar */
.left-text {
    flex: 1;        /* 🔥 prende tutto lo spazio disponibile */
    min-width: 0;   /* 🔥 permette al testo di espandersi senza tagliare */
    display: flex;
    align-items: center;
}
