/* =============================================
   PRINTORA - PREMIUM DESIGN SYSTEM (v2.0)
   Tema: Ultra Dark & Glow
   Palette: Cyber Turquoise, Royal Blue, Amber Gold
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Colors - Base */
  --bg-deep: #020617;
  /* Slate 950 */
  --bg-surface: #0f172a;
  /* Slate 900 */
  --bg-card: rgba(30, 41, 59, 0.4);
  /* Slate 800 with glass opacity */

  /* Accent Gradients */
  --grad-primary: linear-gradient(135deg, #2dd4bf 0%, #3b82f6 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  --grad-glow: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);

  /* Text */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-glow: 0 0 20px rgba(45, 212, 191, 0.3);

  /* Actions */
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.5);
  --accent: #fbbf24;
  --danger: #ef4444;

  /* Limits & Spacing */
  --container-max: min(90vw, 1800px); /* Fluid: 90% viewport, max 1800px */
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- UTILITY CLASSES ---------- */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.5rem;
}

.gap-2 {
  gap: 1rem;
}

.gap-sm {
  gap: 0.75rem;
}

.text-white {
  color: #fff !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.mt-1 {
  margin-top: 0.5rem !important;
}

.mt-2 {
  margin-top: 1rem !important;
}

.align-center {
  align-items: center;
}

/* ---------- RESET & BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-glow);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- TIPOGRAFIA ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

.text-sm {
  font-size: 0.85rem;
  /* ~13.6px - Better readability */
}

.text-xs {
  font-size: 0.75rem;
  /* ~12px - Smallest readable text */
}

.text-uppercase {
  text-transform: uppercase;
}

.letter-spacing {
  letter-spacing: 0.1em;
}

/* ---------- HEADER & NAV ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: clamp(70px, 6vw, 110px); /* Fluid height */
  display: flex;
  align-items: center;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-group {
    display: flex;
    align-items: center;
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-box img {
    height: clamp(38px, 3.5vw, 60px) !important; /* Fluid logo height */
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    header { height: 70px; }
    .logo-box img { height: 32px; } /* Slightly smaller on mobile */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cart-link {
    color: #fff;
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: var(--transition);
}

.cart-link:hover {
    opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* Reduced gap for better fit */
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  font-size: clamp(0.85rem, 1.2vw, 1.1rem); /* Fluid font size */
  transition: var(--transition);
  text-decoration: none;
}

.nav-link:hover {
  color: white;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: clamp(0.3rem, 0.5vw, 0.5rem) clamp(0.5rem, 1vw, 1.2rem); /* Fluid padding */
  border-radius: 10px;
  font-size: clamp(0.75rem, 1vw, 1rem); /* Fluid font size */
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nav-badge.green {
  background: #10b981;
  box-shadow: 0 4px 20px -5px rgba(16, 185, 129, 0.5);
}

.nav-badge.blue {
  background: #0ea5e9;
  box-shadow: 0 4px 20px -5px rgba(14, 165, 233, 0.5);
}

.nav-badge.purple {
  background: #a855f7;
  box-shadow: 0 4px 20px -5px rgba(168, 85, 247, 0.5);
}

.nav-badge:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-badge svg {
  transition: transform 0.3s ease;
}

.nav-badge:hover svg {
  transform: scale(1.1);
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 5rem);
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: clamp(300px, 35vw, 700px); /* Fluid glow size */
  height: clamp(300px, 35vw, 700px);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* NEW HERO TYPOGRAPHY */
.hero-main-title {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-main-title {
        margin-bottom: 1.25rem;
        line-height: 1.2;
    }
    
    .hero-sub-wrap p {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem;
    }

    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
}

/* ---------- CARDS & GRIDS ---------- */
.grid {
  display: grid !important;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

.grid-2,
.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 992px) {

  .grid-2,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4,
.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1199px) {
  /* Changed from 992px to 1199px for better desktop transition */

  .grid-4,
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {

  .grid-4,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

.gap-xl {
  gap: 3rem !important;
}

.gap-lg {
  gap: 2rem !important;
}

.gap-md {
  gap: 1.5rem !important;
}

.card-premium {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 2vw, 3rem); /* Fluid card padding */
  transition: var(--transition);
  position: relative;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-premium:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
  background: rgba(30, 41, 59, 0.6);
}

/* ---------- PRODUCT CARDS ---------- */
.product-card {
  display: block;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.img-container {
  border-radius: var(--radius-xl);
  aspect-ratio: 1/1;

  background: #000;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover img {
  transform: scale(1.1);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 1rem;
}

.price-old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price-new {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
}

.price-box small {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 1.5rem;
  /* Increased top margin to 2.5rem */
}

.check-list li {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.check-list svg {
  color: #10b981;
  flex-shrink: 0;
}

.format-btn-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 1rem;
}

.format-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 4px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.format-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

.input-glow {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  padding: 10px;
  width: 100%;
  font-size: 0.8rem;
  transition: var(--transition);
}

.input-glow:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.discount-tag {
  background: #fbbf24;
  color: #000;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 14px;
  font-weight: 700;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: white;
  box-shadow: 0 10px 30px -5px rgba(59, 130, 246, 0.3);
}

.btn-accent {
  background: #fbbf24;
  color: #000;
  box-shadow: 0 10px 30px -5px rgba(251, 191, 36, 0.2);
}

.btn-accent:hover {
  transform: translateY(-2px);
  background: #f59e0b;
}

.btn-whatsapp {
  background: #fbbf24;
  color: #000;
  opacity: 0.8;
}

.btn-whatsapp:hover {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px -5px rgba(59, 130, 246, 0.6);
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.1rem;
}

.w-full {
  width: 100%;
}

/* ---------- REVIEWS ---------- */
.review-item {
  background: rgba(30, 41, 59, 0.3);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

/* ---------- FAQ ACCORDION ---------- */
.faq-item {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: var(--transition);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #fff;
  transition: var(--transition);
}

.faq-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-header svg {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  background: rgba(0, 0, 0, 0.1);
}

.faq-content p {
  padding: 0.8rem 1.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Stato Attivo Accordion */
.faq-item.active {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(15, 23, 42, 0.8);
}

.faq-item.active .faq-header svg {
  transform: rotate(180deg);
  color: #fff;
}

.faq-item.active .faq-content {
  max-height: 500px;
  /* Altezza massima per animazione */
}

.review-item:hover {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ---------- FOOTER ---------- */
footer {
  padding: 3rem 0 1.5rem;
  background: #020617;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-branding {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 992px) {
  .footer-branding {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
    padding-right: 0 !important;
    margin-bottom: 2rem;
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .footer-branding {
    grid-column: span 1;
  }
}

/* ---------- UTILS ---------- */
.section {
  padding: clamp(4rem, 7vw, 9rem) 0; /* Fluid vertical spacing */
}

.text-center {
  text-align: center;
}

.mb-xs {
  margin-bottom: 0.25rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-sm {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-lg {
  margin-bottom: 2.5rem;
}

.mb-xl {
  margin-bottom: 4rem;
}

/* ---------- TOGGLE SWITCH ---------- */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #3b82f6;
}

input:checked+.slider:before {
  transform: translateX(20px);
}

/* ---------- QTY SELECTOR ---------- */
.qty-selector {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  width: fit-content;
}

.qty-btn {
  background: transparent;
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-input {
  background: transparent;
  border: none;
  color: white;
  width: 30px;
  text-align: center;
  font-weight: 700;
  font-size: 0.8rem;
}

/* ---------- UPLOAD BOX ---------- */
.upload-zone {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
  cursor: pointer;
}

.upload-zone:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

/* ---------- FORM PREMIUM STYLES ---------- */
.form-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 2.5rem;
  align-items: start;
}

.checkout-grid .card-premium {
  padding: 2rem;
}

@media (max-width: 1100px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.summary-card {
  position: sticky;
  top: 110px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.item-row {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.item-row:last-child {
  border-bottom: none;
}

.item-thumb {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  background: #000;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- ALERTS ---------- */
.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.65rem;
  display: flex;
  gap: 10px;
  align-items: center;
  line-height: 1.4;
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001; /* Above menu */
    position: relative;
    align-items: center;
    justify-content: center;
}

.hamburger {
    width: 28px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #020617;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav-container {
    width: 100%;
    max-width: 320px;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.mobile-nav-links li {
    width: 100%;
    text-align: center;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 600;
    padding: 0.8rem;
    transition: var(--transition);
}

.mobile-nav-links a svg {
    color: #3b82f6;
    opacity: 0.8;
}

.mobile-nav-links a:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.mobile-nav-links a.simple-link {
    font-size: 1.25rem;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 0.5rem;
}

.mobile-nav-links a.simple-link:hover {
    color: #fff;
}

@media (max-width: 768px) {
  :root {
    --container-max: 98vw;
  }
  .container {
    padding: 0 0.75rem;
  }
  .card-premium, .summary-card, .testimonial-card {
    padding: 1.25rem !important;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {

  .grid-3,
  .grid-2,
  .grid-cols-2,
  .grid-4,
  .grid-cols-4 {
    grid-template-columns: 1fr !important;
  }
  
  .section {
    padding: 3rem 0; /* Reduced from 4rem */
  }

  .checkout-grid {
    gap: 1.5rem; /* More compact gap on mobile */
  }

  #coupon-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  #coupon-input-group .btn {
    width: 100%;
  }
}

/* CTA Section Specific Styles */
.cta-card-title {
  font-size: 1.25rem !important;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.cta-card-desc {
  font-size: 0.85rem !important;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* Testimonial Section Specific Styles */
.testimonial-card {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  padding: 2.5rem !important;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.4) !important;
  background: rgba(15, 23, 42, 0.8) !important;
}

.quote-icon {
  color: #3b82f6;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  display: flex;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #e2e8f0;
  font-style: italic;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  margin-top: auto;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(59, 130, 246, 0.3);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.author-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #fff;
}

.author-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.testimonial-stars {
  margin-left: auto;
  color: #fbbf24;
  display: flex;
  gap: 2px;
}

/* Swiper Custom Pagination & Navigation */
.swiper-pagination {
  bottom: 0px !important;
  z-index: 10 !important;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
  width: 8px !important;
  height: 8px !important;
  margin: 0 5px !important;
}

.swiper-pagination-bullet-active {
  background: #3b82f6 !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.7);
  width: 20px !important;
  border-radius: 4px !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
  font-weight: 900;
  color: #3b82f6 !important;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.swiper-slide {
  height: auto !important;
}

/* ---------- COMPONENTI CONFIGURATORE PRODOTTI ---------- */
.btn-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-toggle.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.product-image-wrap {
  position: relative;
  border-radius: 16px;

  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.promo-badge-floating {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fbbf24;
  color: #000;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 5px;
}

.config-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #fff;
}

.config-box {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.switch-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.switch-label:last-child {
  margin-bottom: 0;
}

.price-summary-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1rem;
}

.total-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.total-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.tax-info {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-align: right;
}

/* ---------- STRIPE LOGO FIX ---------- */
.stripe-logo {
  height: 20px !important;
  width: auto !important;
  display: inline-block;
  opacity: 0.6;
}