﻿/* ══════════════════════════════════════════════════════════════
   NAV REDESIGN — Logo solo, icon pills premium, nav links moderni
   ══════════════════════════════════════════════════════════════ */

/* ─── LOGO: solo immagine con anello glow ─── */
.nav-logo-text,
.nav-logo-dot {
  display: none !important;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

/* ── LOGO RING — always visible, compact, fits nav height ── */
.nav-logo-ring {
  position: relative;
  /* exact size: 2px padding + 2px border + 40px img + 2px border + 2px padding */
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
}

/* Conic-gradient spinning ring — always on, soft opacity */
.nlr-inner {
  position: absolute;
  inset: -2px;
  border-radius: 15px;
  /* 3-stop conic: bright arc + dim fade */
  background: conic-gradient(
    from 0deg,
    rgba(212,175,55,0.0)   0deg,
    rgba(212,175,55,0.55) 80deg,
    rgba(245,215,110,0.95) 130deg,
    rgba(212,175,55,0.55) 180deg,
    rgba(212,175,55,0.0)  260deg,
    rgba(212,175,55,0.0)  360deg
  );
  animation: logoRingSpin 5s linear infinite;
  z-index: 0;
  /* Mask a 2px gap so it looks like a border */
  -webkit-mask:
    radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask:
    radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
}

/* Solid dark fill inside the ring */
.nlr-inner::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background: rgba(10,10,15,0.92);
  z-index: 1;
}

/* Hover: ring brighter + faster */
.nav-logo:hover .nlr-inner {
  animation-duration: 2.5s;
  filter: brightness(1.4) drop-shadow(0 0 6px rgba(212,175,55,0.6));
}

/* Hover outer glow */
.nav-logo-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 17px;
  background: radial-gradient(circle at 50% 50%, rgba(212,175,55,0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}
.nav-logo:hover .nav-logo-ring::after { opacity: 1; }

@keyframes logoRingSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.nav-logo-img {
  position: relative;
  z-index: 2;
  height: 38px;
  width: 38px;
  border-radius: 9px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 6px rgba(212,175,55,0.5))
    drop-shadow(0 0 1px rgba(212,175,55,0.2));
  transition:
    transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
    filter 0.35s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.1) rotate(-4deg);
  filter:
    drop-shadow(0 0 18px rgba(212,175,55,0.9))
    drop-shadow(0 0 6px rgba(212,175,55,0.55));
}

.nav-logo:active .nav-logo-img {
  transform: scale(0.92) rotate(0deg);
  transition-duration: 0.1s;
}

/* ─── NAV LINKS — premium letter-spacing + hover fill ─── */
.nav-center {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 10px;
  color: rgba(245,245,245,0.62);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition:
    color 0.22s ease,
    background 0.22s ease;
  isolation: isolate;
  overflow: hidden;
}

/* Animated underline accent */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light, #F5D76E));
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  transform-origin: center;
}

/* Background pill on hover */
.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(212,175,55,0.07);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-link.nav-link-current {
  color: rgba(245,245,245,0.95);
}

.nav-link:hover::before,
.nav-link.active::before,
.nav-link.nav-link-current::before {
  opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link.nav-link-current::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active,
.nav-link.nav-link-current {
  color: var(--accent, #D4AF37);
  background: rgba(212,175,55,0.09);
}

.nav-link.active::after,
.nav-link.nav-link-current::after {
  background: var(--accent, #D4AF37);
  width: 22px;
}

/* ─── NAV ICON PILLS — glass redesign ─── */
.nav-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: rgba(245,245,245,0.72);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  overflow: hidden;
  transition:
    width 0.35s cubic-bezier(0.16,1,0.3,1),
    border-radius 0.35s cubic-bezier(0.16,1,0.3,1),
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.3s ease;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Inner wrapper for icon+label */
.nav-icon-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-icon-label {
  font-family: var(--font-main, 'Outfit', sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-width 0.35s cubic-bezier(0.16,1,0.3,1),
    opacity 0.25s ease;
}

/* Hover: expand to pill with label */
.nav-icon-btn:hover {
  width: auto;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 22px;
  border-color: rgba(212,175,55,0.35);
  background: rgba(212,175,55,0.1);
  color: #D4AF37;
  box-shadow: 0 0 20px rgba(212,175,55,0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

.nav-icon-btn:hover .nav-icon-label {
  max-width: 80px;
  opacity: 1;
}

/* Cart btn — gold accent always in shop */
.cart-btn {
  border-color: rgba(212,175,55,0.2);
  background: rgba(212,175,55,0.07);
  color: rgba(245,215,110,0.85);
}

.cart-btn:hover {
  background: rgba(212,175,55,0.18) !important;
  border-color: rgba(212,175,55,0.55) !important;
  color: #F5D76E !important;
  box-shadow: 0 0 24px rgba(212,175,55,0.3) !important;
}

/* Badge styles */
.notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0a0a0a;
  box-shadow: 0 2px 8px rgba(231,76,60,0.5);
  pointer-events: none;
  animation: badgePulse 2.5s ease-in-out infinite;
}

.cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 3px;
  background: linear-gradient(135deg, #D4AF37, #F5D76E);
  color: #0a0a0a;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0a0a0a;
  box-shadow: 0 2px 8px rgba(212,175,55,0.5);
  pointer-events: none;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(231,76,60,0.5); }
  50%       { transform: scale(1.15); box-shadow: 0 2px 14px rgba(231,76,60,0.75); }
}

/* ─── SEARCH OVERLAY redesign ─── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 0.35s ease;
}

.search-overlay.active {
  background: rgba(0,0,0,0.72);
  pointer-events: all;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.search-box {
  width: min(680px, 90vw);
  background: rgba(10,14,22,0.90);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  padding: 28px;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.08);
  opacity: 0;
  transform: translateY(-20px) scale(0.97);
  transition:
    opacity 0.4s cubic-bezier(0.16,1,0.3,1),
    transform 0.4s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
  position: relative;
}

.search-overlay.active .search-box {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Search categories tabs */
.search-categories {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.search-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(245,245,245,0.55);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.search-cat-btn.active,
.search-cat-btn:hover {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.35);
  color: #D4AF37;
}

/* Search field */
.search-field {
  position: relative;
  margin-bottom: 16px;
}

.search-field input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 14px 48px 14px 18px;
  color: #f5f5f5;
  font-size: 1rem;
  font-family: var(--font-main, 'Outfit', sans-serif);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-field input:focus {
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.12), 0 2px 16px rgba(212,175,55,0.10);
}

.search-field input::placeholder { color: rgba(245,245,245,0.35); }

.search-field > i,
.search-field > .fa-search,
.search-field > .fa-magnifying-glass {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(245,245,245,0.35);
  pointer-events: none;
}

/* Search results container */
.search-results {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.3) transparent;
}

/* Result item */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover {
  background: rgba(212,175,55,0.08);
  transform: translateX(4px);
}

.sri-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212,175,55,0.8);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sri-text { flex: 1; min-width: 0; }
.sri-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f5f5f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sri-sub {
  font-size: 0.72rem;
  color: rgba(245,245,245,0.45);
  margin-top: 1px;
}

.sri-page {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(212,175,55,0.7);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(212,175,55,0.08);
  white-space: nowrap;
}

/* No results */
.search-no-results {
  text-align: center;
  padding: 28px;
  color: rgba(245,245,245,0.4);
  font-size: 0.88rem;
}

.search-no-results i { font-size: 2rem; margin-bottom: 10px; display: block; }

/* ─── NOTIF PANEL redesign ─── */
.notif-panel {
  position: fixed;
  top: 80px;
  right: 24px;
  width: 340px;
  max-height: 400px;
  background: rgba(10,14,22,0.94);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.07);
  z-index: 9000;
  transform: translateY(-12px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.16,1,0.3,1),
    opacity 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notif-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.notif-header h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(245,245,245,0.88);
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-header h4 i { color: #D4AF37; }

.notif-close-btn {
  background: none;
  border: none;
  color: rgba(245,245,245,0.45);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.notif-close-btn:hover {
  color: #f5f5f5;
  background: rgba(255,255,255,0.06);
}

.notif-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,175,55,0.2) transparent;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  margin-bottom: 2px;
}

.notif-item:hover {
  background: rgba(255,255,255,0.04);
  transform: translateX(3px);
}

.notif-item.unread { position: relative; }

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D4AF37;
  box-shadow: 0 0 8px rgba(212,175,55,0.6);
}

.notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(212,175,55,0.9);
  flex-shrink: 0;
}

.notif-item-body { flex: 1; min-width: 0; }
.notif-item-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(245,245,245,0.88);
  line-height: 1.3;
  margin-bottom: 2px;
}
.notif-item-desc {
  font-size: 0.72rem;
  color: rgba(245,245,245,0.45);
  line-height: 1.4;
}
.notif-item-time {
  font-size: 0.65rem;
  color: rgba(245,245,245,0.3);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.notif-empty {
  text-align: center;
  padding: 32px 16px;
  color: rgba(245,245,245,0.35);
  font-size: 0.82rem;
}

.notif-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
  color: rgba(212,175,55,0.3);
}

/* ─── MOBILE RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav-icon-btn:hover {
    width: 44px !important;
    border-radius: 50% !important;
    padding: 0 !important;
  }
  .nav-icon-btn:hover .nav-icon-label { max-width: 0 !important; opacity: 0 !important; }
}

@media (max-width: 480px) {
  .notif-panel { width: calc(100vw - 32px); right: 16px; }
  .search-box { padding: 20px; }
}


/* ══════════════════════════════════════════════════════════════
   PAGE TITLE TEXT EFFECTS — premium typography
   ══════════════════════════════════════════════════════════════ */

/* 1. ─ SHIMMER GRADIENT on .gradient-text ─
   Gold → white → gold flowing shine */
.gradient-text {
  background: linear-gradient(
    110deg,
    #b8961f 0%,
    #D4AF37 20%,
    #F5D76E 38%,
    #fff8d6 50%,
    #F5D76E 62%,
    #D4AF37 80%,
    #b8961f 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 5s linear infinite;
  will-change: background-position;
}

@keyframes titleShimmer {
  0%   { background-position: 0%   center; }
  100% { background-position: 250% center; }
}

/* 2. ─ TITLE WORD SPLIT REVEAL (section headers) ─
   Each word fades + slides up with stagger */
.section-header.in-view .title-lg,
.section-header.in-view .title-xl {
  animation: none; /* override old animation */
}

/* Individual title chars — wrap each word with .tw */
.title-word {
  display: inline-block;
  /* NO overflow:hidden — causes the visible clipping box
     Use vertical padding so descenders/ascenders have room */
  overflow: visible;
  vertical-align: bottom;
  padding-bottom: 0.12em; /* room for descenders */
}
.title-word-inner {
  display: inline-block;
  animation: wordReveal 0.7s cubic-bezier(0.16,1,0.3,1) both;
  /* Never clip the mega-title children */
}

/* Ensure .hero-title-mega and its children are NEVER clipped */
.hero-title-mega,
.hero-title-mega .htm-wiki,
.hero-title-mega .htm-shoes,
.hero-title-mega * {
  overflow: visible !important;
  clip-path: none !important;
}
.title-word:nth-child(1) .title-word-inner { animation-delay: 0.05s; }
.title-word:nth-child(2) .title-word-inner { animation-delay: 0.12s; }
.title-word:nth-child(3) .title-word-inner { animation-delay: 0.19s; }
.title-word:nth-child(4) .title-word-inner { animation-delay: 0.26s; }
.title-word:nth-child(5) .title-word-inner { animation-delay: 0.33s; }
.title-word:nth-child(6) .title-word-inner { animation-delay: 0.40s; }

@keyframes wordReveal {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 3. ─ HERO TITLE SPECIAL — large scale reveal ─ */
.hero-title,
.storia-hero-title,
.jordan-hero-title,
.contatti-hero-title,
.shop-hero-title,
.nj-hero-title {
  position: relative;
}

/* Accent text in hero titles gets glow shimmer */
.hero-title .gradient-text,
.storia-hero-title .gradient-text,
.jordan-hero-title .gradient-text,
.contatti-hero-title .gradient-text,
.nj-hero-title .gradient-text,
.shop-hero-title .text-accent {
  text-shadow: none;
  filter: none;
}

/* 4. ─ SECTION HEADER LABEL — uppercase tracking pill ─ */
.section-header .label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(212,175,55,0.09);
  border: 1px solid rgba(212,175,55,0.18);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: rgba(212,175,55,0.88);
  animation: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Small dot before label text */
.section-header .label::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(212,175,55,0.9);
  box-shadow: 0 0 7px rgba(212,175,55,0.7);
  flex-shrink: 0;
  animation: labelDotPulse 2s ease-in-out infinite;
}

@keyframes labelDotPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(0.7); }
}

/* 5. ─ TITLE UNDERLINE BAR — accent gradient with glow ─ */
.section-header .title-lg::after,
.section-header .title-xl::after {
  content: '' !important;
  display: block !important;
  width: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, #D4AF37, #F5D76E, #D4AF37) !important;
  background-size: 200% auto !important;
  animation: none !important;
  border-radius: 3px !important;
  margin-top: 14px !important;
  box-shadow: 0 0 10px rgba(212,175,55,0.35) !important;
  transition: width 0.8s cubic-bezier(0.16,1,0.3,1) !important;
  opacity: 1 !important;
}

.section-header.in-view .title-lg::after,
.section-header.in-view .title-xl::after {
  width: 70px !important;
  animation: titleBarShimmer 3s linear infinite !important;
}

@keyframes titleBarShimmer {
  0%   { background-position: 0%   center; }
  100% { background-position: 200% center; }
}

.section-header.center .title-lg::after,
.section-header.center .title-xl::after {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 6. ─ AMBIENT GLOW on accent spans inside titles ─ */
.title-lg .accent-nowrap,
.title-xl .accent-nowrap,
.title-lg [style*="color"],
.hero-title em {
  display: inline-block;
  animation: accentPulse 4s ease-in-out infinite;
}

@keyframes accentPulse {
  0%,100% { text-shadow: 0 0 20px rgba(212,175,55,0.0); }
  50%      { text-shadow: 0 0 28px rgba(212,175,55,0.35), 0 0 60px rgba(212,175,55,0.12); }
}

/* 7. ─ COUNTER NUMBERS — scale pop on scroll into view ─ */
.hero-stat-num,
.impact-num,
.jh-stat-num,
.shop-hero-stat-num {
  display: inline-block;
  background: linear-gradient(135deg, #D4AF37, #F5D76E, #fff8d6, #D4AF37);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 4s linear infinite;
  text-shadow: none !important;
  filter: none !important;
}

/* 8. ─ SECTION TITLE decorative side lines ─ */
.section-header:not(.center) .title-lg,
.section-header:not(.center) .title-xl {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-header:not(.center) .title-lg::before,
.section-header:not(.center) .title-xl::before {
  content: '' !important;
  display: none !important;
}

/* 9. ─ HERO SUBTITLE — spaced tracking fade ─ */
.hero-sub,
.shop-hero-sub,
.storia-hero-sub,
.contatti-hero-sub {
  animation: subFadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.4s both;
}

@keyframes subFadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

/* 10. ─ MOBILE — simplify heavy animations ─ */
@media (max-width: 768px) {
  .section-header .label { letter-spacing:2px; padding:4px 10px; }
  .section-header.in-view .title-lg::after,
  .section-header.in-view .title-xl::after { width:48px !important; }
  @keyframes accentPulse { 0%,100%,50% { text-shadow:none; } }
}


/* ══════════════════════════════════════════════════════════════
   SCROLL PERFORMANCE — GPU compositing + layout containment
   ══════════════════════════════════════════════════════════════ */

/* Smooth scroll on the whole page */
html {
  scroll-behavior: smooth;
}

/* Critical compositing layers */
#nav {
  will-change: transform, background-color;
  /* Use transform for nav hide/show instead of top/margin */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Orbs: isolated, composited */
.orb {
  will-change: transform;
  contain: strict;
}

/* Particles container */
.particles-container {
  will-change: contents;
  contain: strict;
}

/* Logo ring spin — already on GPU, keep it isolated */
.nlr-inner {
  will-change: transform;
  contain: layout style;
}

/* Marquee — continuous animation needs GPU */
.marquee-track {
  will-change: transform;
  contain: layout style;
  touch-action: pan-y;
}

/* Card grid items — layout contained */
.explore-card,
.product-card,
.shop-card,
.jordan-card,
.feature-card,
.glass-card {
  contain: layout style;
}

/* Ghost chars from text-split — ensure immediately visible */
.char {
  display: inline !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Force text-split titles to never hide */
.text-split {
  overflow: visible !important;
}
.text-split .char {
  display: inline !important;
  color: inherit !important;
}

/* Fix: transition:all → specific transitions on common interactive elements */
.btn,
.nav-link,
.explore-card,
.product-card,
.shop-card,
.filter-btn {
  /* Override any transition:all with specific props only */
  transition-property: transform, opacity, box-shadow, border-color, background-color, color !important;
}

/* Grain overlay: pointer-events none already, make sure it's composited */
.grain-overlay {
  will-change: auto;
  pointer-events: none;
  contain: strict;
}

/* Section: NO JS-injected transition — we handle with CSS only */
section {
  transition: none !important;
}

/* Footer col links: cheaper hover */
.footer-col a {
  overflow: visible !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

/* Reduce blur cost on mobile */
@media (max-width: 768px) {
  .nav-icon-btn {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .search-box {
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
  }
  .notif-panel {
    -webkit-backdrop-filter: blur(20px) !important;
    backdrop-filter: blur(20px) !important;
  }
  /* Disable orb animations on mobile */
  .orb {
    animation: none !important;
    opacity: 0.04 !important;
  }
  /* Disable shimmer on gradient text on mobile */
  .gradient-text {
    animation: none !important;
    background-position: 0% center !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   MYSTICAL PRELOADER
   ══════════════════════════════════════════════════════════════ */
#preloader.preloader-mystic { flex-direction: column !important; 
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.preloader-mystic.loaded {
  opacity: 0;
  pointer-events: none;
}

/* Mystical Background Ambient Light */
.pl-mystic-bg {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at center, rgba(212,175,55,0.15) 0%, rgba(11,31,58,0.2) 35%, transparent 60%);
  animation: mysticPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes mysticPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* Logo Container & Ethereal Animation */
.pl-logo-container {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
  animation: mysticFloat 6s ease-in-out infinite;
}

@keyframes mysticFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.pl-logo-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(212,175,55,0.4) 0%, transparent 70%);
  filter: blur(15px);
  animation: mysticGlow 3s ease-in-out infinite alternate;
}

@keyframes mysticGlow {
  0% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

.pl-logo-img {
  position: relative;
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(212,175,55,0.8));
  animation: logoBreathe 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes logoBreathe {
  0%, 100% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 35px rgba(212,175,55,1)); }
}

/* Base Preloader Content Adjustments */
#preloader.preloader-mystic .preloader-inner { 
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-mystic .preloader-logo {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.1em;
  background: linear-gradient(to right, #D4AF37, #F5D76E, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 3s linear infinite;
  background-size: 200% auto;
}

@keyframes textShine {
  to { background-position: 200% center; }
}

.preloader-mystic .preloader-tagline {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  margin-top: 5px;
}

.preloader-mystic .preloader-progress {
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.preloader-mystic .preloader-bar {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.preloader-mystic .preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, #D4AF37, #F5D76E);
  box-shadow: 0 0 15px rgba(212,175,55,0.8);
  transition: width 0.15s ease-out;
}

.preloader-mystic .preloader-percent {
  font-family: 'Syne', sans-serif;
  color: #D4AF37;
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 0.9rem;
}
/* ══════════════════════════════════════════════════════════════
   HYPER-PROFESSIONAL MYSTICAL PRELOADER
   ══════════════════════════════════════════════════════════════ */
#preloader.preloader-mystic {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  background-color: #030408 !important; /* ultra dark navy/black */
  background-image: radial-gradient(circle at 50% 40%, rgba(212,175,55,0.08) 0%, rgba(3,4,8,0) 60%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
}

#preloader.preloader-mystic.loaded {
  opacity: 0 !important;
  transform: scale(1.02) !important;
  pointer-events: none !important;
}

/* Base reset for old blobs so they don't break our layout */
#preloader.preloader-mystic .preloader-blob {
  display: none !important;
}

/* Mystical Background Ambient Light */
.pl-mystic-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(212,175,55,0.05) 0%, transparent 70%);
  animation: mysticBgPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes mysticBgPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.1); opacity: 1; }
}

/* Logo Container - floating delicately */
.pl-logo-container {
  position: relative;
  z-index: 5;
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: etherealHover 4s ease-in-out infinite;
}

@keyframes etherealHover {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.pl-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(212,175,55,0.3) 0%, transparent 60%);
  filter: blur(20px);
  animation: etherealGlow 4s ease-in-out infinite alternate;
  border-radius: 50%;
  z-index: -1;
}

@keyframes etherealGlow {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

.pl-logo-img {
  position: relative;
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(212,175,55,0.6));
  z-index: 2;
  animation: logoSoftPulse 3s ease-in-out infinite alternate;
}

@keyframes logoSoftPulse {
  0% { filter: drop-shadow(0 4px 15px rgba(212,175,55,0.4)); transform: scale(0.98); }
  100% { filter: drop-shadow(0 0 25px rgba(212,175,55,0.8)); transform: scale(1.02); }
}

/* Typography & Progress Bar wrapper */
#preloader.preloader-mystic .preloader-inner {
  position: relative;
  z-index: 10;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 25px !important;
}

#preloader.preloader-mystic .preloader-logo {
  font-family: 'Syne', sans-serif !important;
  font-size: clamp(2rem, 5vw, 3rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.15em !important;
  background: linear-gradient(135deg, #fff 0%, #D4AF37 50%, #fff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  background-size: 200% auto !important;
  animation: textShine 4s linear infinite !important;
  margin: 0 !important;
  text-shadow: none !important;
}
#preloader.preloader-mystic .preloader-logo::after {
  display: none !important;
}

#preloader.preloader-mystic .preloader-tagline {
  font-family: 'Outfit', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4em !important;
  color: rgba(212,175,55,0.65) !important;
  font-size: 0.8rem !important;
  margin-top: 0 !important;
  font-weight: 500 !important;
}

#preloader.preloader-mystic .preloader-progress {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 15px !important;
  width: 280px !important;
  margin-top: 10px !important;
}

#preloader.preloader-mystic .preloader-bar {
  width: 100% !important;
  height: 2px !important;
  background: rgba(255,255,255,0.06) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  position: relative !important;
}

#preloader.preloader-mystic .preloader-bar-fill {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  width: 0% !important; /* Managed by JS */
  background: linear-gradient(90deg, #D4AF37, #F5D76E, #D4AF37) !important;
  background-size: 200% auto !important;
  box-shadow: 0 0 15px rgba(212,175,55,0.8), 0 0 5px rgba(255,255,255,0.5) !important;
  animation: textShine 2s linear infinite !important;
  transition: width 0.15s ease-out !important;
}

#preloader.preloader-mystic .preloader-percent {
  font-family: 'Syne', sans-serif !important;
  color: rgba(212,175,55,0.9) !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  font-size: 0.95rem !important;
  font-variant-numeric: tabular-nums !important;
}
