/* ═══════════════════════════════════════════════════════════════
   MAISON — E-Commerce CSS · Minimal Luxury
   Step 2a: Foundation + Header + Footer
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. CSS VARIABLES ──────────────────────────────────────── */

:root {
  /* Colori */
  --black:       #0a0a0a;
  --white:       #fafafa;
  --gold:        #C9A96E;
  --gold-light:  #D4BA8A;
  --grey-100:    #f5f5f5;
  --grey-200:    #e8e8e8;
  --grey-300:    #d1d1d1;
  --grey-400:    #a0a0a0;
  --grey-500:    #707070;
  --grey-600:    #4a4a4a;
  --red:         #c0392b;
  --green:       #27ae60;

  /* Tipografia */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Dimensioni */
  --header-h:     72px;
  --header-h-mob:  60px;
  --container:    1280px;
  --container-sm: 960px;
  --radius:       4px;
  --radius-lg:    8px;

  /* Transizioni */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --speed:        0.3s;
  --speed-fast:   0.15s;
  --speed-slow:   0.5s;

  /* Z-index */
  --z-header:     100;
  --z-dropdown:   110;
  --z-overlay:    200;
  --z-modal:      300;
  --z-toast:      400;
}


/* ─── 2. RESET & BASE ──────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }


/* ─── 3. UTILITY ────────────────────────────────────────────── */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { width: 100%; max-width: var(--container-sm); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-center { text-align: center; }

/* Section spacing */
.section { padding: 80px 0; }
.section-lg { padding: 120px 0; }
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .section-lg { padding: 80px 0; }
}

/* Section header */
.section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1.1;
  color: var(--black);
}
.section-title span { color: var(--gold); }
.section-subtitle {
  font-size: 15px;
  color: var(--grey-500);
  margin-top: 12px;
  max-width: 480px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--speed) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold);
  color: var(--black);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}
.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-light);
}
.btn-sm {
  padding: 10px 20px;
  font-size: 10px;
  letter-spacing: 2px;
}
.btn-block { width: 100%; }

/* ─── 3b. FORM FIELDS (globale — usato in checkout, login, register, support) ── */
.checkout-field { margin-bottom: 16px; }
.checkout-field label { display: block; font-size: 12px; letter-spacing: 1px; color: var(--grey-500); margin-bottom: 6px; }
.checkout-field input, .checkout-field select, .checkout-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--grey-200); border-radius: var(--radius);
  font-size: 16px; outline: none; transition: border-color var(--speed); background: var(--white); font-family: inherit;
}
.checkout-field input:focus, .checkout-field select:focus, .checkout-field textarea:focus { border-color: var(--black); }
.checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-check { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; font-size: 13px; color: var(--grey-500); }
.checkout-check input { margin-top: 2px; accent-color: var(--black); }
.checkout-check a { color: var(--black); text-decoration: underline; }
.checkout-radio { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--grey-200); border-radius: var(--radius); cursor: pointer; transition: all var(--speed); margin-bottom: 8px; }
.checkout-radio:hover { border-color: var(--grey-400); }
.checkout-radio.selected { border-color: var(--black); background: var(--grey-100); }
.checkout-radio input[type="radio"] { accent-color: var(--black); }
.checkout-radio-label { font-size: 14px; }
.checkout-radio-price { margin-left: auto; font-size: 13px; font-weight: 500; }
@media(max-width:768px) { .checkout-row { grid-template-columns: 1fr; } }


/* ─── 4. ANNOUNCEMENT BAR ──────────────────────────────────── */

.announce-bar {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 8px 24px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.announce-bar a { color: var(--gold); text-decoration: underline; }
.announce-bar:empty { display: none; }


/* ─── 5. HEADER ─────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: var(--z-header);
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed), background var(--speed);
}
.site-header.scrolled {
  border-bottom-color: var(--grey-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.header-logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity var(--speed);
  flex-shrink: 0;
}
.header-logo:hover { opacity: 0.6; }

/* Nav desktop */
.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-600);
  transition: color var(--speed);
  position: relative;
}
.header-nav a:hover { color: var(--black); }
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--speed) var(--ease);
}
.header-nav a:hover::after { width: 100%; }

/* Header actions (search, wishlist, cart, account, lang) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--black);
  transition: color var(--speed);
}
.header-action:hover { color: var(--grey-500); }
.header-action svg { width: 20px; height: 20px; }
.header-action .badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--black);
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  border-radius: 99px;
}
.header-action .badge:empty { display: none; }

/* Language switch */
.lang-switch {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grey-400);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: all var(--speed);
}
.lang-switch:hover, .lang-switch.active {
  color: var(--black);
  border-bottom-color: var(--gold);
}
.lang-divider { color: var(--grey-300); font-size: 11px; }

/* ─── Desktop Catalog Dropdown ─── */
.nav-catalog {
  position: relative;
}
.nav-catalog-trigger {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-600);
  transition: color var(--speed);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  position: relative;
}
.nav-catalog-trigger::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--speed) var(--ease);
}
.nav-catalog-trigger:hover { color: var(--black); }
.nav-catalog-trigger:hover::after { width: 100%; }
.nav-catalog-trigger svg {
  width: 12px;
  height: 12px;
  transition: transform var(--speed);
}
.nav-catalog.open .nav-catalog-trigger svg {
  transform: rotate(180deg);
}

.nav-catalog-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 560px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--speed) var(--ease);
  z-index: var(--z-dropdown);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}
.nav-catalog.open .nav-catalog-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-catalog-col {
  padding: 28px;
}
.nav-catalog-col:first-child {
  border-right: 1px solid var(--grey-100);
}

.nav-catalog-heading {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 16px;
}

.nav-catalog-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--black);
  transition: all var(--speed);
}
.nav-catalog-link:hover {
  background: var(--grey-100);
  padding-left: 16px;
}
.nav-catalog-link:hover .nav-cat-arrow {
  opacity: 1;
  transform: translateX(0);
}
.nav-cat-count {
  font-size: 11px;
  color: var(--grey-300);
  font-family: var(--font-mono);
}
.nav-cat-arrow {
  font-size: 14px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--speed);
}

.nav-catalog-featured {
  display: block;
  margin-top: 12px;
  padding: 16px;
  background: var(--grey-100);
  border-radius: var(--radius);
  transition: all var(--speed);
}
.nav-catalog-featured:hover {
  background: var(--black);
  color: var(--white);
}
.nav-catalog-featured:hover .ncf-label { color: var(--gold); }
.nav-catalog-featured:hover .ncf-title { color: var(--white); }
.ncf-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 6px;
  display: block;
  font-family: var(--font-mono);
  transition: color var(--speed);
}
.ncf-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  color: var(--black);
  transition: color var(--speed);
}
.ncf-cta {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Home transparent header override for dropdown */
body.page-home .site-header:not(.scrolled) .nav-catalog-trigger {
  color: #fff;
}
body.page-home .site-header:not(.scrolled) .nav-catalog-trigger::after {
  background: #fff;
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--black);
  transition: transform var(--speed) var(--ease), opacity var(--speed);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Quando menu aperto: header sopra l'overlay */
.site-header.menu-open { z-index: calc(var(--z-overlay) + 10); }


/* ─── 6. MOBILE MENU ───────────────────────────────────────── */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100dvh;
  background: var(--white);
  z-index: var(--z-overlay);
  transform: translateX(100%);
  transition: transform var(--speed-slow) var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--speed);
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }

/* Panels container — slides left/right */
.mm-panels {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.mm-panel {
  position: absolute;
  inset: 0;
  padding: calc(var(--header-h-mob) + 16px) 28px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transition: transform var(--speed) var(--ease-out), opacity var(--speed);
}

/* Main panel */
.mm-panel-main {
  transform: translateX(0);
  opacity: 1;
}
.mm-panel-main.hidden {
  transform: translateX(-30%);
  opacity: 0;
  pointer-events: none;
}

/* Sub panel (catalogo) */
.mm-panel-sub {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}
.mm-panel-sub.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Menu links */
.mm-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.mm-link {
  font-family: var(--font-display);
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 300;
  letter-spacing: 1px;
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-200);
  transition: color var(--speed), padding-left var(--speed);
}
.mm-link:hover {
  color: var(--gold);
  padding-left: 6px;
}
.mm-link-arrow {
  font-size: 18px;
  color: var(--grey-300);
  transition: transform var(--speed), color var(--speed);
}
.mm-link:hover .mm-link-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

/* Catalog sub-panel */
.mm-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-400);
  padding: 8px 0 20px;
  cursor: pointer;
  transition: color var(--speed);
  background: none;
  border: none;
}
.mm-back:hover { color: var(--black); }
.mm-back svg { width: 16px; height: 16px; }

.mm-sub-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: var(--black);
}

.mm-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mm-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-100);
  text-decoration: none;
  color: var(--black);
  transition: all var(--speed);
}
.mm-cat-link:hover {
  padding-left: 6px;
  color: var(--gold);
}
.mm-cat-name {
  font-size: 16px;
  font-weight: 400;
}
.mm-cat-count {
  font-size: 11px;
  color: var(--grey-300);
  font-family: var(--font-mono);
}
.mm-cat-link-all {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-500);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  transition: all var(--speed);
  align-self: flex-start;
}
.mm-cat-link-all:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Footer */
.mm-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--grey-200);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mm-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mm-lang-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mm-social {
  display: flex;
  gap: 16px;
}
.mm-social a {
  color: var(--grey-400);
  transition: color var(--speed);
}
.mm-social a:hover { color: var(--black); }
.mm-social svg { width: 20px; height: 20px; }
.mm-contact-link {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--grey-400);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--speed);
}
.mm-contact-link:hover { color: var(--black); }


/* ─── 7. FOOTER ─────────────────────────────────────────────── */

.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Footer brand col */
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #fff;
  display: block;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.4);
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: rgba(255,255,255,0.5);
  transition: all var(--speed);
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.footer-social svg { width: 16px; height: 16px; }

/* Footer columns */
.footer-col h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  padding: 4px 0;
  transition: color var(--speed), padding-left var(--speed);
}
.footer-col a:hover {
  color: rgba(255,255,255,0.8);
  padding-left: 4px;
}

/* Newsletter inline */
.footer-newsletter {
  margin-top: 12px;
}
.footer-newsletter-form {
  display: flex;
  gap: 0;
  margin-top: 12px;
}
.footer-newsletter-form input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-right: none;
  color: #fff;
  padding: 12px 14px;
  font-size: 12px;
  outline: none;
  border-radius: var(--radius) 0 0 var(--radius);
  transition: border-color var(--speed);
}
.footer-newsletter-form input[type="email"]:focus { border-color: var(--gold); }
.footer-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.25); }
.footer-newsletter-form button {
  background: var(--gold);
  color: var(--black);
  padding: 12px 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: background var(--speed);
}
.footer-newsletter-form button:hover { background: var(--gold-light); }
.footer-gdpr {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-gdpr input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.footer-gdpr label {
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
}
.footer-gdpr a { text-decoration: underline; color: rgba(255,255,255,0.35); }

/* Footer bottom */
.footer-bottom {
  max-width: var(--container);
  margin: 48px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 1px;
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--speed);
}
.footer-legal a:hover { color: rgba(255,255,255,0.5); }
.footer-payments {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-payments svg {
  height: 20px;
  opacity: 0.3;
}


/* ─── 8. HERO SLIDER ────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
  background: var(--black);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Background image */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 6s ease;
}
.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

/* Overlay */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Content */
.hero-slide-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(32px, 8vw, 120px);
  max-width: var(--container);
  margin: 0 auto;
}
.hero-slide-content.pos-center { align-items: center; text-align: center; }
.hero-slide-content.pos-left   { align-items: flex-start; text-align: left; }
.hero-slide-content.pos-right  { align-items: flex-end; text-align: right; }

.hero-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease 0.3s;
}
.hero-slide.active .hero-label {
  opacity: 0.7;
  transform: translateY(0);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 3px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.8s ease 0.5s;
}
.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.6s ease 0.7s;
}
.hero-slide.active .hero-subtitle {
  opacity: 0.8;
  transform: translateY(0);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  transition: all var(--speed) var(--ease);
  opacity: 0;
  transform: translateY(16px);
}
.hero-slide.active .hero-cta {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease 0.9s, background 0.3s, border-color 0.3s;
}
.hero-cta:hover {
  background: #fff;
  color: var(--black);
  border-color: #fff;
}
.hero-cta-arrow {
  transition: transform var(--speed);
}
.hero-cta:hover .hero-cta-arrow {
  transform: translateX(4px);
}

/* Controls */
.hero-controls {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-dot {
  width: 32px;
  height: 2px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all var(--speed);
  padding: 0;
}
.hero-dot.active {
  background: #fff;
  width: 48px;
}
.hero-dot:hover { background: rgba(255,255,255,0.6); }

/* Progress bar under active dot */
.hero-dot.active {
  position: relative;
  overflow: hidden;
}
.hero-dot.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--gold);
  animation: heroDotProgress var(--hero-speed, 5s) linear;
}
.hero-paused .hero-dot.active::after {
  animation-play-state: paused;
}
@keyframes heroDotProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* Pause button */
.hero-pause {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all var(--speed);
  margin-left: 8px;
}
.hero-pause:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero-pause svg { width: 10px; height: 10px; }

/* Hero floating limited offer box — CAROUSEL */
.hero-limited-box {
  position: absolute;
  bottom: 80px;
  right: clamp(24px, 5vw, 80px);
  z-index: 10;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-width: 320px;
  color: #fff;
  animation: heroBoxIn 0.8s ease 1.2s both;
  overflow: hidden;
}
@keyframes heroBoxIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Single item inside carousel */
.hero-limited-item {
  display: none;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.4s ease;
}
.hero-limited-item.active {
  display: flex;
}

.hero-limited-box:hover {
  border-color: var(--gold);
}

.hero-limited-img {
  width: 64px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
}
.hero-limited-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-limited-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero-limited-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-limited-name {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-limited-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hero-limited-price .hl-current {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}
.hero-limited-price .hl-compare {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  text-decoration: line-through;
}
.hero-limited-countdown {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.hero-limited-countdown span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}
.hero-limited-countdown span b {
  color: var(--gold);
  font-weight: 400;
}

/* Carousel dots */
.hero-limited-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}
.hero-limited-dot {
  width: 16px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 1px;
  transition: all var(--speed);
}
.hero-limited-dot.active {
  background: var(--gold);
  width: 24px;
}

@media (max-width: 768px) {
  .hero-limited-box {
    bottom: 64px;
    right: 16px;
    left: 16px;
    max-width: none;
    padding: 12px;
  }
  .hero-limited-img { width: 52px; height: 64px; }
  .hero-limited-name { font-size: 12px; }
}
/* Hide scroll indicator when limited box is present */
.hero:has(.hero-limited-box) .hero-scroll { display: none; }

/* Hero payment methods strip */
.hero-payments {
  position: absolute;
  bottom: 40px;
  left: clamp(24px, 5vw, 80px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  animation: heroBoxIn 0.8s ease 1.5s both;
}
.hero-pay-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-pay-icon {
  height: 20px;
  width: auto;
}
.hero-pay-icon.pay-paypal { height: 18px; }
.hero-pay-icon.pay-klarna { height: 16px; }
.hero-pay-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-payments {
    bottom: auto;
    top: calc(var(--header-h-mob) + 16px);
    left: 16px;
    gap: 12px;
  }
  .hero-pay-icon { height: 18px; }
  .hero-pay-label { display: none; }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
}
.hero-scroll-text {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* Hero responsive */
@media (max-width: 768px) {
  .hero { height: 85vh; min-height: 500px; }
  .hero-slide-content { padding: 0 24px; }
  .hero-title { font-size: clamp(32px, 9vw, 52px); }
  .hero-controls { bottom: 24px; }
  .hero-scroll { display: none; }
  .hero-cta { padding: 14px 28px; font-size: 10px; }
}


/* ─── 9. PRODUCT CARD ───────────────────────────────────────── */

.product-card {
  position: relative;
  flex-shrink: 0;
}
.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image container */
.product-card-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--grey-100);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-card-img img {
  transform: scale(1.04);
}

/* Badges */
.product-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.product-card-badges span {
  display: inline-block;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
}
.badge-new { background: var(--black); color: var(--white); }
.badge-sale { background: var(--red); color: #fff; }
.badge-limited { background: var(--gold); color: var(--black); }
.badge-best { background: var(--white); color: var(--black); border: 1px solid var(--grey-200); }

/* Sold out overlay */
.product-card-soldout {
  position: absolute;
  inset: 0;
  background: rgba(250,250,250,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--grey-500);
  z-index: 3;
}

/* Quick actions (wishlist) */
.product-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--speed) var(--ease);
}
.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateY(0);
}
.product-card-wish {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: var(--black);
  transition: all var(--speed);
}
.product-card-wish:hover { background: var(--black); color: var(--white); }
.product-card-wish.wishlisted { background: var(--black); color: var(--white); }
.product-card-wish.wishlisted svg { fill: currentColor; }
.product-card-wish svg { width: 16px; height: 16px; }

/* Info */
.product-card-info { padding: 0 2px; }
.product-card-brand {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 4px;
  display: block;
}
.product-card-name {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--black);
  margin-bottom: 6px;
  transition: color var(--speed);
}
.product-card:hover .product-card-name { color: var(--grey-500); }

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-current {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
}
.price-compare {
  font-size: 13px;
  color: var(--grey-400);
  text-decoration: line-through;
}

/* Stars */
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.stars { display: flex; gap: 1px; }
.star { width: 12px; height: 12px; fill: var(--grey-300); }
.star.filled { fill: var(--gold); }
.rating-count { font-size: 11px; color: var(--grey-400); }


/* ─── 10. HOME SECTIONS ─────────────────────────────────────── */

/* Scrollable product row */
.product-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  margin: 0 7px;
  padding-left: 24px;
  padding-right: 24px;
}
.product-scroll::-webkit-scrollbar { display: none; }
.product-scroll .product-card {
  scroll-snap-align: start;
  min-width: 240px;
  max-width: 280px;
  flex: 0 0 calc(25% - 15px);
}

/* Section header with link */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.section-head-left {margin-left:7px;}
.section-head .view-all {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--grey-500);
  transition: color var(--speed);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  
}
.section-head .view-all:hover { color: var(--black); }
.section-head .view-all span { transition: transform var(--speed); }
.section-head .view-all:hover span { transform: translateX(3px); }

/* ── Limited Offers ── */
.limited-section {
  background: var(--black);
  color: var(--white);
  padding: 64px 0;
  overflow: hidden;
}
.limited-section .section-label { color: var(--gold); }
.limited-section .section-title { color: var(--white); }
.limited-section .section-title span { color: var(--gold); }
.limited-section .view-all { color: rgba(255,255,255,0.4); }
.limited-section .view-all:hover { color: #fff; }

/* Countdown */
.countdown-row {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 24px;
}
.countdown-block {
  text-align: center;
}
.countdown-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
}
.countdown-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}

/* Limited cards on dark bg */
.limited-section .product-card-img { background: #1a1a1a; }
.limited-section .product-card-name { color: var(--white); }
.limited-section .product-card:hover .product-card-name { color: rgba(255,255,255,0.6); }
.limited-section .price-current { color: var(--white); }
.limited-section .price-compare { color: rgba(255,255,255,0.35); }
.limited-section .product-card-brand { color: rgba(255,255,255,0.35); }
.limited-section .rating-count { color: rgba(255,255,255,0.3); }
.limited-section .product-card-wish { background: rgba(255,255,255,0.1); color: #1A1A1A; }
.limited-section .product-card-wish:hover { background: var(--gold); color: var(--black); }
.limited-section .product-card-wish.wishlisted { background: var(--gold); color: var(--black); }
.limited-section .product-card-wish.wishlisted svg { fill: currentColor; }

/* ── Category Tabs ── */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cat-tab {
  padding: 10px 24px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--grey-200);
  border-radius: 99px;
  color: var(--grey-500);
  background: transparent;
  transition: all var(--speed);
  cursor: pointer;
}
.cat-tab:hover { border-color: var(--grey-400); color: var(--black); }
.cat-tab.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Product grid (for category section) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  transition: opacity 0.3s ease;
}
.product-grid-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--grey-400);
  font-size: 12px;
  letter-spacing: 2px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--grey-400);
}
.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.empty-state p {
  font-size: 14px;
  letter-spacing: 1px;
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-scroll .product-card { flex: 0 0 calc(33.33% - 14px); }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-scroll .product-card { flex: 0 0 55vw; min-width: 200px; }
  .product-scroll { gap: 14px; }
  .cat-tabs { gap: 6px; }
  .cat-tab { padding: 8px 16px; font-size: 10px; }
  .section-head { margin-bottom: 20px; }
}


/* ─── 11. RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .site-header { height: var(--header-h-mob); }
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { padding-top: var(--header-h-mob); }
  .header-logo { font-size: 22px; letter-spacing: 4px; }
  .header-actions { gap: 14px; }
  .header-action svg { width: 18px; height: 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }
}

@media (max-width: 480px) {
  .header-logo { font-size: 18px; letter-spacing: 3px; }
}


/* ─── 12. ANIMATIONS ─────────────────────────────────────────── */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ─── 13. SPACING FOR FIXED HEADER ──────────────────────────── */

main {
  padding-top: var(--header-h);
}
/* Home: hero va sotto l'header trasparente */
body.page-home main {
  padding-top: 0;
}
body.page-home .site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.page-home .site-header.scrolled {
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
body.page-home .site-header:not(.scrolled) .header-logo,
body.page-home .site-header:not(.scrolled) .header-nav a,
body.page-home .site-header:not(.scrolled) .header-action,
body.page-home .site-header:not(.scrolled) .lang-switch,
body.page-home .site-header:not(.scrolled) .lang-divider,
body.page-home .site-header:not(.scrolled) .hamburger span {
  color: #fff;
}
body.page-home .site-header:not(.scrolled) .hamburger span {
  background: #fff;
}
body.page-home .site-header:not(.scrolled) .header-action .badge {
  background: #fff;
  color: var(--black);
}
body.page-home .site-header:not(.scrolled) .header-nav a::after {
  background: #fff;
}
/* Home + menu aperto: forza elementi scuri (menu bianco sotto) */
body.page-home .site-header.menu-open:not(.scrolled) .header-logo,
body.page-home .site-header.menu-open:not(.scrolled) .header-action,
body.page-home .site-header.menu-open:not(.scrolled) .lang-switch,
body.page-home .site-header.menu-open:not(.scrolled) .lang-divider {
  color: var(--black);
}
body.page-home .site-header.menu-open:not(.scrolled) .hamburger span {
  background: var(--black);
}
body.page-home .site-header.menu-open:not(.scrolled) .header-action .badge {
  background: var(--black);
  color: var(--white);
}
body.page-home .site-header.menu-open:not(.scrolled) .nav-catalog-trigger {
  color: var(--black);
}
@media (max-width: 768px) {
  main { padding-top: var(--header-h-mob); }
}