/* ==========================================================================
   1. VARIABILI GLOBALI & RESET
   ========================================================================== */
:root {
  --bg-main: #0b0a0f;           
  --bg-body: #0d0c14;           
  
  --box-bg: #181524;            
  --box-border: rgba(255, 255, 255, 0.12);
  
  --surface: #100e19;          
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(99, 102, 241, 0.5);
  
  --text: #ece8f8;
  --text-muted: #958ea9;
  
  --accent-rose: #e11d48;       
  --accent-teal: #14b8a6;       
  --accent-indigo: #6366f1;     

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  scroll-behavior: smooth; 
}

body {
  background-color: #08070d;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 16px; 
  height: 2px;
  background: var(--accent-teal);
  display: inline-block;
}

h1, h2, h3 { 
  font-family: var(--font-display); 
  letter-spacing: -0.01em; 
}


/* ==========================================================================
   2. HEADER & NAVBAR (BASE)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent !important;
  border: none !important;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

.btn-header-cta {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc !important;
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-header-cta:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.6);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text);
}

.mobile-sticky-cta { display: none !important; }


/* ==========================================================================
   3. HERO SECTION & SHOWCASE SLIDER
   ========================================================================== */
.hero {
  position: relative;
  background-color: #08070d;
  background-image: 
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 102, 241, 0.18), transparent 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  color: #ece8f8;
  padding-top: 130px;
  padding-bottom: 100px;
  margin-top: -80px;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero h1 { 
  font-size: clamp(36px, 4.5vw, 58px); 
  line-height: 1.12;
}

.hero h1 .hl {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 480px;
  margin-bottom: 30px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #e11d48;
  color: #fff;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.25);
}

.btn-primary:hover { 
  background: #f43f5e;
  transform: translateY(-1px);
}

/* Slider Stage 3D */
.hero-slider-stage {
  position: relative;
  background: #121017;
  border: 1px solid var(--border);
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: #121017;
  background-image: radial-gradient(
    circle at 50% 50%, 
    rgba(99, 102, 241, 0.18) 0%, 
    transparent 70%
  );
}

.slider-container::after {
  content: "";
  position: absolute;
  bottom: 6%;
  left: 20%;
  right: 20%;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, transparent 80%);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
  filter: blur(4px);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; 
  transform: scale(0.92) translateX(0);
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.slide.active {
  opacity: 1;
  transform: scale(1.12) translateX(-15px);
}

.hero-slider-stage .print-label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  z-index: 10;
  background: rgba(11, 10, 15, 0.85);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.hero-slider-stage .print-label span { color: var(--accent-teal); font-weight: 600; }

.slide.slide-zoro.active {
  transform: scale(1) translateX(25px) !important;
}

.slide.slide-cuffie.active {
  transform: scale(0.75) translateX(25px) !important;
}


/* ==========================================================================
   4. CAPSULE SATINATE & GRIGLIA PRODOTTI
   ========================================================================== */
section { 
  padding: 64px 0;
  border: none !important;
}

/* CAPSULA UNIFICATA PER TUTTE LE SEZIONI CHIAVE */
#catalogo .wrap,
#recensioni .wrap,
#come-ordinare .wrap,
#chi-sono .wrap {
  background: var(--box-bg);
  background-image: radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.15), transparent 45%);
  border: 1px solid var(--box-border);
  border-radius: 20px;
  padding: 48px 36px;
  box-shadow: 0 0px 50px rgba(103, 98, 98, 0.45), 0 0 30px rgba(99, 102, 241, 0.12);
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-head h2 { 
  font-size: clamp(30px, 3.5vw, 42px); 
  line-height: 1.2;
}

.section-head p { 
  font-size: 16.5px; 
  line-height: 1.6;
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  height: 100%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover,
  .card-link:hover .card { 
    border-color: var(--border-bright, rgba(99, 102, 241, 0.5)) !important; 
    transform: translateY(-5px) scale(1.015) !important;
    box-shadow: 0 14px 32px rgba(99, 102, 241, 0.22) !important;
  }

  .card-link:hover .order-link {
    border-color: #f43f5e;
    background: #f43f5e;
    color: #fff;
  }
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card-media img,
.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.card-media .tag {
  position: absolute; 
  top: 10px; 
  left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  background: rgba(11, 10, 15, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
  padding: 4px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 18.5px; }
.card-body .desc { font-size: 14.5px; color: var(--text-muted); }

.card-foot {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.price { font-family: var(--font-mono); font-weight: 600; color: #a5b4fc; font-size: 17px; }

.order-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}


/* ==========================================================================
   5. RECENSIONI: CAROSELLO SCORREVOLE AUTOMATICO DENTRO LA CAPSULA
   ========================================================================== */
.reviews-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rating-score {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 46px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.rating-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rating-stars {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
}

.rating-count {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #958ea9);
}

.btn-leave-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 29, 72, 0.12);
  color: var(--accent-rose, #e11d48);
  border: 1px solid var(--accent-rose, #e11d48);
  padding: 10px 22px;
  border-radius: 99px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-leave-review:hover {
  background: var(--accent-rose, #e11d48);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.35);
  transform: translateY(-2px);
}

/* VIEWPORT A SCORRIMENTO CON SFUMATURA LATERALI AI BORDI */
.reviews-slider-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 8px 0;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

/* TRACCIA ORIZZONTALE */
.reviews-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

/* ANIMAZIONE ATTIVATA AUTOMATICAMENTE CON > 3 RECENSIONI */
.reviews-track.is-sliding {
  animation: scrollContinuous 32s linear infinite;
}

.reviews-slider-viewport:hover .reviews-track.is-sliding {
  animation-play-state: paused;
}

@keyframes scrollContinuous {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  width: 320px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.review-card:hover {
  border-color: var(--accent-rose, #e11d48);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.review-quote-icon {
  font-size: 26px;
  line-height: 1;
  color: var(--accent-rose, #e11d48);
  opacity: 0.8;
  font-family: Georgia, serif;
}

.review-text {
  color: #d1d0db;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.review-author-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e11d48, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}

.review-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.review-author-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

.review-item-tag {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--accent-teal, #14b8a6);
}

.review-card-stars {
  color: #fbbf24;
  font-size: 12px;
  letter-spacing: 1px;
}


/* ==========================================================================
   6. MODALE POPUP RECENSIONI
   ========================================================================== */
.review-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 7, 13, 0.82);
  backdrop-filter: blur(8px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.review-modal-backdrop.open {
  display: flex;
}

.review-modal-box {
  background: #161324;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px rgba(225, 29, 72, 0.15);
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 30px;
  position: relative;
}

.review-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #958ea9;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.review-modal-close:hover { color: #fff; }

.review-modal-box h3 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 22px;
  color: #fff;
  margin: 0 0 6px 0;
}

.review-modal-box p.subtitle {
  font-size: 13px;
  color: #958ea9;
  margin: 0 0 20px 0;
}

.rev-form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rev-form-group label {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rev-form-group input,
.rev-form-group textarea,
.rev-form-group select {
  background: #0d0b16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}

.rev-form-group input:focus,
.rev-form-group textarea:focus,
.rev-form-group select:focus {
  outline: none;
  border-color: var(--accent-rose, #e11d48);
}

.btn-submit-review {
  width: 100%;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.btn-submit-review:hover {
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
  transform: translateY(-2px);
}

.btn-submit-review:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}


/* ==========================================================================
   7. COME ORDINARE & CHI SONO
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: #0f0d18;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 28px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  .step:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
  }
}

.step .n {
  font-family: var(--font-mono);
  color: var(--accent-teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.step h3 { 
  font-size: 19px; 
  margin-bottom: 8px;
  color: #fff;
}

.step p { 
  color: var(--text-muted); 
  font-size: 14.5px; 
  line-height: 1.55;
}

.payments-strip {
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted, #958ea9);
  font-size: 13.5px;
}

.payment-pill {
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #e2e8f0;
}

#chi-sono .wrap {
  padding: 36px 32px !important;
}

.about {
  display: grid;
  grid-template-columns: 280px 1fr !important;
  gap: 36px !important;
  align-items: center;
}

.about-media {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex;
  justify-content: center;
}

.about-img {
  width: 100%;
  max-width: 260px !important;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.about p { color: var(--text-muted); font-size: 15.5px; margin-top: 14px; line-height: 1.65; }

.about .quote {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  border-left: 2px solid var(--accent-rose);
  padding-left: 16px;
}


/* ==========================================================================
   8. CONTATTI & FOOTER FULL-WIDTH
   ========================================================================== */
.footer-site {
  background: #12101b; 
  background-image: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(99, 102, 241, 0.15), transparent 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 60px;
  margin-top: 60px;
  width: 100%;
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-teal);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 220px;
}

.footer-socials .social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: all 0.25s ease;
  text-align: center;
}

.footer-socials .social-btn.wa {
  background: #e11d48;
  border-color: #f43f5e;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .footer-socials .social-btn.wa:hover {
    background: #f43f5e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
  }
}

.footer-socials .social-btn.ig {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

.footer-socials .social-btn.tt {
  background: rgba(20, 184, 166, 0.1);
  border-color: rgba(20, 184, 166, 0.4);
  color: #2dd4bf;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom .crafted { color: var(--accent-indigo); }


/* ==========================================================================
   9. SCROLL REVEAL (FADE & SLIDE ANIMATION)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   10. REGOLAZIONI DESKTOP (MIN-WIDTH: 869PX)
   ========================================================================== */
@media (min-width: 869px) {
  html { zoom: 1.18; }

  header {
    position: sticky;
    top: 16px;
    max-width: 1060px !important;
    margin: 0 auto !important;
    padding: 0 16px !important;
    background: transparent !important;
  }

  .nav {
    background: rgba(17, 16, 24, 0.92) !important;
    backdrop-filter: blur(16px);
    border: 1px solid var(--border) !important;
    border-radius: 99px !important;
    padding: 10px 24px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }

  .btn-header-cta { border-radius: 99px !important; }

  .hero h1 {
    font-size: 54px !important;
    line-height: 1.12 !important;
  }

  .section-head {
    max-width: 720px !important;
    margin-bottom: 38px !important;
  }

  .section-head h2 {
    font-size: 40px !important;
    line-height: 1.18 !important;
  }

  .section-head p {
    font-size: 18px !important;
    line-height: 1.6 !important;
  }

  .card-body h3 { font-size: 20px !important; }
  .card-body .desc { font-size: 15.5px !important; }
  .price { font-size: 18px !important; }

  .order-link {
    font-size: 13.5px !important;
    padding: 8px 14px !important;
  }

  .step h3 { font-size: 20px !important; }
  .step p { font-size: 15.5px !important; }

  .about p {
    font-size: 17.5px !important;
    line-height: 1.65 !important;
  }

  .about .quote { font-size: 22px !important; }
}


/* ==========================================================================
   11. REGOLAZIONI MOBILE (MAX-WIDTH: 868PX)
   ========================================================================== */
@media (max-width: 868px) {

  .nav-actions-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .cart-open-btn {
    padding: 5px 10px;
    font-size: 12px;
  }

  .cart-drawer {
    max-width: 100%; /* Su smartphone occupa il 100% per massima usabilità */
  }

  .cart-drawer-footer {
    padding-bottom: 35px; /* Spazio per non sovrapporsi alle gesture di navigazione iOS/Android */
  }

  header {
    position: sticky;
    top: 10px;
    margin: 0 14px;
    border-radius: 12px;
    background: rgba(17, 16, 24, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
  }

  .nav { padding: 10px 14px; }
  .logo { font-size: 14px; }
  .logo-img { height: 26px !important; }

  .nav-toggle { display: flex !important; }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 100%;
    background: rgba(17, 16, 24, 0.98);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column !important;
    width: 100%;
    gap: 4px;
  }

  .nav-links a {
    display: block;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    border-radius: 6px;
  }

  .desktop-cta-item { display: none !important; }

  .mobile-sticky-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 14px;
    left: 14px;
    right: 14px;
    background: #e11d48;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
    z-index: 99;
  }

  .hero { 
    margin-top: -70px !important;
    padding-top: 110px !important;
    padding-bottom: 40px !important;
  }

  .hero-wrap {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    text-align: center;
  }

  .hero-content { align-items: center !important; }
  .hero-ctas { justify-content: center; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .hero-slider-stage { max-width: 320px; }

  section {
    padding: 32px 0 !important;
  }

  #catalogo .wrap,
  #recensioni .wrap,
  #come-ordinare .wrap,
  #chi-sono .wrap {
    width: calc(100% - 24px) !important;
    margin: 0 auto !important;
    padding: 24px 14px !important;
    border-radius: 18px !important;
    background: var(--box-bg) !important;
    background-image: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.08), transparent 45%),
                      radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.15), transparent 45%) !important;
    border: 1px solid var(--box-border) !important;
    box-shadow: 0 0px 40px rgba(103, 98, 98, 0.45), 
                0 0 25px rgba(99, 102, 241, 0.12) !important;
  }

  #catalogo .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  #catalogo .card-body {
    padding: 10px !important;
    gap: 4px !important;
  }

  #catalogo .card-body h3 {
    font-size: 13.5px !important;
    line-height: 1.25 !important;
  }

  #catalogo .card-body .desc {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  #catalogo .card-media .tag {
    top: 6px !important;
    left: 6px !important;
    font-size: 8.5px !important;
    padding: 2px 6px !important;
  }

  #catalogo .card-foot {
    padding-top: 8px !important;
    margin-top: auto;
  }

  #catalogo .price {
    font-size: 13px !important;
  }

  #catalogo .order-link {
    font-size: 10.5px !important;
    padding: 4px 8px !important;
  }

  .review-card {
    width: 270px !important;
    padding: 18px !important;
  }

  .rating-score {
    font-size: 38px !important;
  }

  .steps { grid-template-columns: 1fr !important; }

  .about {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }

  .about-media {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .about-img {
    max-width: 220px !important;
    height: auto;
  }

  .about .quote {
    border-left: none !important;
    border-top: 2px solid var(--accent-rose);
    padding-left: 0 !important;
    padding-top: 12px;
    margin-top: 16px;
  }

  .footer-wrap {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .footer-bottom-wrap {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ==========================================================================
   12. CASSETTO CARRELLO LATERALE (DRAWER) & BADGE
   ========================================================================== */
.cart-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 99px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  color: #fff !important;
  transition: all 0.2s ease;
}

.cart-open-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.cart-badge {
  background: var(--accent-rose, #e11d48);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}



/* PANNELLO SCORREVOLE DA DESTRA */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #14121d;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.cart-drawer-header h3 {
  font-size: 19px;
  color: #fff;
  margin: 0;
}

.cart-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #958ea9);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.cart-close-btn:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

.cart-empty-msg {
  color: var(--text-muted, #958ea9);
  font-size: 14.5px;
  text-align: center;
  margin: auto 0;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* SINGOLO ELEMENTO DENTRO IL CARRELLO */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
}

.cart-item-info h4 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.cart-item-options {
  font-size: 12px;
  color: var(--text-muted, #958ea9);
  line-height: 1.45;
  margin-bottom: 8px;
}

.cart-item-options span {
  color: #cbd5e1;
}

.cart-item-price {
  font-family: var(--font-mono, monospace);
  color: #a5b4fc;
  font-weight: 600;
  font-size: 14.5px;
}

.cart-item-remove {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  color: #ef4444;
  font-size: 18px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cart-item-remove:hover {
  background: #ef4444;
  color: #fff;
}

/* PIÈ DI PAGINA FISSO DEL CASSETTO E PULSANTI CHECKOUT */
.cart-drawer-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #100e18;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15.5px;
  color: #fff;
}

.cart-total-row strong {
  font-family: var(--font-mono, monospace);
  font-size: 20px;
  color: var(--accent-teal, #14b8a6);
}

.cart-drawer-footer .order-actions-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
}

.cart-drawer-footer .btn-whatsapp-order {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  background: var(--accent-rose, #e11d48) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.3) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.cart-drawer-footer .btn-whatsapp-order:hover {
  background: #f43f5e !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.45) !important;
}

.cart-drawer-footer .btn-email-order {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  padding: 13px 20px !important;
  border-radius: 12px !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

.cart-drawer-footer .btn-email-order:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px) !important;
}