/** Shopify CDN: Minification failed

Line 116:0 Unexpected "}"

**/
/**
 * GIOIELLI PERTICHINI — Editorial Motion CSS
 * 
 * Sistema visivo editoriale: silenzio, eleganza, lusso.
 * Solo stili essenziali che non possono essere inline.
 */

/* ============================================================
   REDUCED MOTION
   ============================================================ */

.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ============================================================
   BASE ANIMATION PROPERTIES
   ============================================================ */

/* GPU acceleration hints - rimossi dopo animazione da JS */
.tt-card,
.product-col,
.product-thumb,
.product-item,
[class*="product-card"] {
  will-change: auto;
}

/* Durante animazione */
.animating {
  will-change: transform, opacity;
}

/* ============================================================
   IMAGE CONTAINERS
   ============================================================ */

/* Overflow hidden per scale effect */
.tt-card .tt-image,
.product-col .product-image,
.product-thumb .wrap-image,
.product-image-wrapper {
  overflow: hidden;
}

/* Smooth image scale */
.tt-card img,
.product-col img,
.product-thumb img {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* ============================================================
   UNDERLINE LINK EFFECT
   ============================================================ */

/* Per link che usano l'underline JS */
.u-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* ============================================================
   FILTER PANEL MOBILE
   ============================================================ */

#column-left.open {
  display: block !important;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 300px;
  max-width: 85vw;
  z-index: 1000;
  background: #fff;
  overflow-y: auto;
  box-shadow: 2px 0 20px rgba(0,0,0,0.15);
}

/* ============================================================
   FOCUS STATES (Accessibility)
   ============================================================ */

*:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Remove default focus for mouse users */
*:focus:not(:focus-visible) {
  outline: none;
}
  [data-anim="cat-card"],
  [data-anim="prod-card"] {
    cursor: pointer;
  }
}

/* ============================================================
   QUICK ADD BUTTON
   ============================================================ */

[data-anim="quickadd-trigger"] {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 2;
}

[data-anim="prod-card"]:hover [data-anim="quickadd-trigger"],
[data-anim="prod-card"]:focus-within [data-anim="quickadd-trigger"] {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile: always visible */
@media (hover: none) {
  [data-anim="quickadd-trigger"] {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================================
   ADD TO CART BUTTON STATES
   ============================================================ */

[data-anim="atc-btn"] {
  position: relative;
  overflow: hidden;
}

[data-anim="atc-btn"][data-state="loading"] {
  pointer-events: none;
}

[data-anim="atc-spinner"] {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

[data-anim="atc-icon"] {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

[data-anim="atc-btn"][data-state="loading"] [data-anim="atc-spinner"] {
  display: block;
}

[data-anim="atc-btn"][data-state="success"] [data-anim="atc-icon"] {
  display: block;
}

/* ============================================================
   PRODUCT MEDIA CONTAINER
   ============================================================ */

[data-anim="prod-media"] {
  overflow: hidden;
  position: relative;
}

[data-anim="prod-media"] img {
  will-change: transform;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   CATEGORY CARDS
   ============================================================ */

[data-anim="cat-card"] {
  position: relative;
  overflow: hidden;
}

[data-anim="cat-card"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  opacity: 0.8;
  transition: opacity 0.25s ease;
  z-index: 1;
  pointer-events: none;
}

[data-anim="cat-card"]:hover::before {
  opacity: 0.6;
}

[data-anim="cat-card"] [data-anim="cat-title"],
[data-anim="cat-card"] [data-anim="cat-cta"] {
  position: relative;
  z-index: 2;
}

/* ============================================================
   MOBILE RAIL (Horizontal Scroll)
   ============================================================ */

[data-anim="cat-rail"] {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 12px;
  padding: 0 16px;
}

[data-anim="cat-rail"]::-webkit-scrollbar {
  display: none;
}

[data-anim="cat-rail"] > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Desktop: grid layout */
@media (min-width: 768px) {
  [data-anim="cat-rail"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    overflow: visible;
    padding: 0;
  }

  [data-anim="cat-rail"] > * {
    flex-shrink: 1;
  }
}

/* ============================================================
   PARALLAX MOSAIC
   ============================================================ */

[data-anim="parallax-mosaic"] {
  position: relative;
  overflow: hidden;
}

[data-anim="parallax-item"] {
  will-change: transform;
}

/* Disable parallax on mobile for performance */
@media (max-width: 767px) {
  [data-anim="parallax-item"] {
    transform: none !important;
  }
}

/* ============================================================
   FILTER SHEET (Mobile Bottom Sheet)
   ============================================================ */

[data-anim="filter-sheet"] {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: var(--color-background, #fff);
  border-radius: 16px 16px 0 0;
  z-index: 1000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   SEARCH PANEL
   ============================================================ */

[data-anim="search-panel"] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-background, #fff);
  z-index: 1000;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-anim="search-result"] {
  opacity: 0;
  transform: translateY(8px);
}

/* ============================================================
   MODAL
   ============================================================ */

[data-anim="modal"] {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  visibility: hidden;
}

[data-anim="modal-content"] {
  position: relative;
  background: var(--color-background, #fff);
  border-radius: 12px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 2;
}

/* ============================================================
   SVG HANDWRITING PATH
   ============================================================ */

[data-anim="svg-draw"] path {
  stroke-dasharray: var(--path-length, 1000);
  stroke-dashoffset: var(--path-length, 1000);
}

/* ============================================================
   ACCESSIBILITY: Reduced Motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-anim="underline"]::after {
    transition: none;
  }

  [data-anim="prod-media"] img {
    transition: none;
  }

  [data-anim="parallax-item"] {
    transform: none !important;
  }
}

/* ============================================================
   BFCACHE FIX - Fallback visibility
   Garantisce che gli elementi siano visibili anche quando
   la pagina viene ripristinata dal back-forward cache
   ============================================================ */

/* Questi elementi potrebbero avere opacity:0 dalle animazioni GSAP.
   Usiamo una classe sul body per forzare la visibilità quando necessario */
html.bfcache-restored [data-reveal],
html.bfcache-restored [data-reveal-line],
html.bfcache-restored .editorial-hero-image,
html.bfcache-restored .editorial-hero-text-block,
html.bfcache-restored .reveal-effect,
html.bfcache-restored .typology-card,
html.bfcache-restored .product-card,
html.bfcache-restored .pdp-hero__badge,
html.bfcache-restored .pdp-hero__subtitle,
html.bfcache-restored .pdp-hero__price,
html.bfcache-restored .pdp-hero__description,
html.bfcache-restored .pdp-details__section {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* ============================================================
   LOADING SPINNER (Simple CSS spinner)
   ============================================================ */

.gp-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: gp-spin 0.8s linear infinite;
}

@keyframes gp-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   FOCUS VISIBLE (Keyboard navigation)
   ============================================================ */

[data-anim]:focus-visible {
  outline: 2px solid var(--color-focus, #111);
  outline-offset: 2px;
}

[data-anim="cat-card"]:focus-visible,
[data-anim="prod-card"]:focus-visible {
  outline-offset: 4px;
}

