/* ============================================================
   EDITION PAGES - shared styles
   Used by: edition-stripes-zones / total-daily / statement / racing
   ============================================================ */

:root {
  --black: #1d1d1b;
  --red: #cc1517;
  --red-light: #e51d20;
  --paper: #f4f3ef;
  --bg: #0a0a09;
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .4);
  --muted: rgba(255, 255, 255, .6);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* GLOBAL CORNER SOFTENING */
button, input, textarea, select,
.tile-edition, .ed-back, .end-cta, .tile-art {
  border-radius: 5px;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   ENTRY OVERLAY - receives the FLIP from the product card
   ============================================================ */
.ed-entry {
  position: fixed;
  inset: 0;
  background: #0a0a09;
  z-index: 1000;
  pointer-events: none;
  opacity: 1;
}
.ed-entry.is-gone { display: none; }

/* ============================================================
   BACKGROUND IMAGE (same as panel-onsale)
   ============================================================ */
.ed-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ed-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: .22;
  filter: saturate(.7) contrast(1.05) brightness(.9);
}
.ed-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,9,.55) 0%, rgba(10,10,9,.85) 50%, rgba(10,10,9,.98) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(204,21,23,.06), transparent 60%);
}
.ed-bg-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .06;
  mix-blend-mode: overlay;
}

/* ============================================================
   HEADER
   ============================================================ */
.ed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 24px clamp(36px, 6vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(180deg, rgba(10,10,9,.92) 0%, rgba(10,10,9,.55) 60%, rgba(10,10,9,0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1) .35s, transform .8s cubic-bezier(.2,.6,.2,1) .35s;
}
.ed-header.is-in {
  opacity: 1;
  transform: translateY(0);
}

.ed-edition {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 2vw, 28px);
  min-width: 0;
}
.ed-edition .num {
  font-size: 11px;
  letter-spacing: .42em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--red);
  position: relative;
  padding-left: 60px;
  flex-shrink: 0;
}
.ed-edition .num::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 48px;
  height: 1px;
  background: var(--red);
}
.ed-edition .title {
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-edition .title .dot { color: var(--red); }

.ed-back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  padding: 11px 18px 11px 22px;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .32em;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease, padding .3s ease;
  flex-shrink: 0;
}
.ed-back:hover {
  border-color: var(--red);
  background: rgba(204, 21, 23, .08);
  padding-left: 26px;
}
.ed-back .arrow {
  width: 22px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.ed-back .arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* ============================================================
   GRID
   ============================================================ */
.ed-grid-wrap {
  position: relative;
  z-index: 2;
  padding: 130px clamp(28px, 4vw, 72px) 0;
}

.ed-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1vw, 18px);
  grid-auto-flow: dense;
  grid-auto-rows: 1fr;
}

/* Each tile = 16:9. We need a row height that produces 16:9 cells.
   With grid-auto-rows:1fr we'd need explicit row sizing.
   Cleaner: give each tile aspect-ratio: 16/9 directly. */
.ed-grid {
  grid-auto-rows: auto;
}
.tile-edition {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #18181a;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  cursor: pointer;
  opacity: 0;
  transform: scale(.62);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}
.tile-edition.is-in {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition: opacity 1s cubic-bezier(.2, .6, .2, 1) var(--jitter-delay, 0s),
              transform 1.1s cubic-bezier(.18, .68, .25, 1) var(--jitter-delay, 0s),
              filter .7s cubic-bezier(.2, .6, .2, 1) var(--jitter-delay, 0s);
}
.tile-edition:hover {
  border-color: rgba(255, 255, 255, .35);
  z-index: 4;
}

/* FEATURE tiles span 2 cols × 2 rows.
   Because base tiles are 16:9 and gap exists, a 2x2 feature is
   effectively 2× wider AND 2× taller - so still ~16:9 overall + gap. */
.tile-edition.is-feature {
  grid-column: var(--col, 2) / span 2;
  grid-row: span 2;
  aspect-ratio: auto; /* let grid track size determine */
}
.tile-edition.is-feature .tile-art .tile-code { font-size: clamp(28px, 3.6vw, 56px); }

/* VIDEO FEATURE - second 2×2 tile is an ambient video player */
.tile-edition.is-video {
  border-color: rgba(255, 255, 255, .22);
}
.tile-edition.is-video .tile-art > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(.95) contrast(1.05);
}
.tile-edition.is-video .tile-art::before {
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 30%, transparent 60%, rgba(0,0,0,.7) 100%);
  height: 100%;
}
.tile-edition.is-video .tile-mark { color: #fff; opacity: 1; }
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(56px, 5vw, 84px);
  height: clamp(56px, 5vw, 84px);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.6,.2,1);
}
.tile-edition.is-video:hover .video-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}
.video-play svg {
  width: 38%;
  height: 38%;
  margin-left: 4px;
  fill: var(--bg);
}
.video-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.video-label .v-kicker {
  font-size: 10px;
  letter-spacing: .42em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--red);
  position: relative;
  padding-left: 32px;
}
.video-label .v-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--red);
}
.video-label .v-title {
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 800;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: #fff;
  line-height: .95;
  transform: scaleX(.88);
  transform-origin: left;
}
/* Hide hover meta on video tile (it has its own label) */
.tile-edition.is-video .tile-meta { display: none; }

/* ============================================================
   FEATURE VIDEO - CTA "Next Edition" overlay
   Replaces the legacy .video-label/.video-play structure when
   data-feature-cta="next-edition" is present on the tile.
   ============================================================ */
.tile-edition.has-cta-next { cursor: pointer; }
.tile-edition.has-cta-next .tile-art > video {
  transition: transform 1.6s cubic-bezier(.2,.6,.2,1), filter .5s ease;
}
.tile-edition.has-cta-next:hover .tile-art > video {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.08) brightness(.9);
}
.video-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.15) 60%, rgba(0,0,0,.82) 100%),
    linear-gradient(90deg, rgba(0,0,0,.25) 0%, transparent 50%);
  transition: background .5s ease;
}
.tile-edition.has-cta-next:hover .video-vignette {
  background:
    linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.15) 30%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.92) 100%),
    linear-gradient(90deg, rgba(0,0,0,.35) 0%, transparent 55%);
}
.cta-next {
  position: absolute;
  left: clamp(18px, 2vw, 32px);
  right: clamp(18px, 2vw, 32px);
  bottom: clamp(18px, 2vw, 26px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #fff;
  pointer-events: none;
}
.cta-next .cta-kicker {
  font-size: 10px;
  letter-spacing: .42em;
  font-weight: 500;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding-left: 36px;
  opacity: 0;
  transform: translateY(8px);
  animation: ctaKickerIn .9s cubic-bezier(.2,.6,.2,1) .25s forwards;
}
.cta-next .cta-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 1px;
  background: var(--red);
  transform-origin: left center;
  animation: ctaKickerLine .8s cubic-bezier(.2,.6,.2,1) .35s both;
}
@keyframes ctaKickerIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ctaKickerLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.cta-headline {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 44px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .92;
  text-transform: uppercase;
  color: #fff;
  transform: scaleX(.88);
  transform-origin: left center;
}
.cta-headline .cta-row {
  display: block;
  overflow: hidden;
  padding-bottom: 2px;
}
.cta-headline .cta-w {
  display: inline-block;
  transform: translateY(110%);
  animation: ctaWordIn .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.cta-headline .cta-row:nth-child(1) .cta-w:nth-child(1) { animation-delay: .55s; }
.cta-headline .cta-row:nth-child(1) .cta-w:nth-child(2) { animation-delay: .62s; }
.cta-headline .cta-row:nth-child(1) .cta-w:nth-child(3) { animation-delay: .70s; }
.cta-headline .cta-row:nth-child(2) .cta-w:nth-child(1) { animation-delay: .82s; }
.cta-headline .cta-row:nth-child(2) .cta-w:nth-child(2) { animation-delay: .90s; }
.cta-headline .cta-row:nth-child(2) .cta-w:nth-child(3) { animation-delay: .98s; }
.cta-headline .cta-dot { color: var(--red); }
@keyframes ctaWordIn {
  to { transform: translateY(0); }
}

.cta-go {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: .36em;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  animation: ctaGoIn .9s cubic-bezier(.2,.6,.2,1) 1.15s forwards;
  pointer-events: none;
}
.cta-go-label {
  position: relative;
}
.cta-go-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: rgba(255,255,255,.4);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .5s cubic-bezier(.2,.6,.2,1), background .3s ease;
}
.tile-edition.has-cta-next:hover .cta-go-label::after {
  transform: scaleX(1);
  background: var(--red);
}
.cta-arrow {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #fff;
  transition: width .5s cubic-bezier(.2,.6,.2,1), background .3s ease;
}
.cta-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  color: #fff;
  transition: color .3s ease;
}
.tile-edition.has-cta-next:hover .cta-arrow {
  width: 48px;
  background: var(--red);
}
.tile-edition.has-cta-next:hover .cta-arrow::after {
  color: var(--red);
}
@keyframes ctaGoIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Ambient breathing loop on the headline - subtle, attention-grabbing */
.tile-edition.has-cta-next .cta-headline {
  animation: ctaHeadlineBreath 4.2s ease-in-out 2.6s infinite;
}
@keyframes ctaHeadlineBreath {
  0%, 100% { letter-spacing: -.035em; }
  50%      { letter-spacing: -.025em; }
}
.tile-edition.has-cta-next .cta-dot {
  animation: ctaDotPulse 1.8s ease-in-out 2.6s infinite;
}
@keyframes ctaDotPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}

/* Reduced motion: keep things visible but kill the loops */
@media (prefers-reduced-motion: reduce) {
  .cta-next .cta-kicker,
  .cta-headline .cta-w,
  .cta-go { animation-duration: .01s; animation-delay: 0s; }
  .tile-edition.has-cta-next .cta-headline,
  .tile-edition.has-cta-next .cta-dot { animation: none; }
}

/* Responsive: smaller CTA at narrow widths */
@media (max-width: 880px) {
  .cta-next { gap: 10px; }
  .cta-headline { font-size: clamp(20px, 4.2vw, 28px); }
  .cta-go { font-size: 10px; letter-spacing: .32em; }
}

/* ============================================================
   TILE ART - placeholder until real images arrive
   ============================================================ */
.tile-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tile-bg, #181818);
  overflow: hidden;
}
/* When the tile has a real image, it sits full-bleed underneath the overlays */
.tile-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  z-index: 0;
  filter: saturate(.92) contrast(1.04) brightness(.96);
  transition: transform .8s cubic-bezier(.2, .6, .2, 1), filter .4s ease;
}
.tile-edition:hover .tile-art > img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.08) brightness(1);
}
/* Hover-over: crossfade to the side view (3rd gallery frame). Sits above the
   base; both fade together at the same scale so they move as one body. */
.tile-art-over {
  opacity: 0;
  z-index: 1;
  transition:
    opacity 1.6s cubic-bezier(.4, 0, .2, 1),
    transform 1.4s cubic-bezier(.2, .6, .2, 1),
    filter .6s ease;
}
.tile-edition:hover .tile-art-over {
  opacity: 1;
  transition:
    opacity 1.8s cubic-bezier(.25, .1, .25, 1),
    transform 1.4s cubic-bezier(.2, .6, .2, 1),
    filter .6s ease;
}
/* Pattern + gradient sit above both images */
.tile-art.has-over .tile-pattern,
.tile-art.has-over .tile-mark { z-index: 2; }
.tile-art.has-image .tile-pattern { display: none; }
.tile-art.has-image::before {
  /* a touch lighter top→bottom gradient instead of the placeholder floor */
  background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, transparent 35%, rgba(0, 0, 0, .55) 100%);
  height: 100%;
}
.tile-art::before {
  /* Studio floor reflection - sells the showroom vibe */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55));
  z-index: 1;
}
.tile-pattern {
  position: absolute;
  inset: 0;
  background-image: var(--tile-pattern, none);
  background-size: var(--tile-pattern-size, 32px 32px);
  background-position: var(--tile-pattern-pos, center);
  background-repeat: var(--tile-pattern-repeat, repeat);
  opacity: var(--tile-pattern-opacity, .35);
  mix-blend-mode: var(--tile-pattern-blend, normal);
  z-index: 0;
}
.tile-code {
  position: relative;
  z-index: 2;
  font-size: clamp(14px, 1.6vw, 24px);
  font-weight: 800;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  text-align: center;
  line-height: .94;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .65);
  padding: 0 12px;
  transform: scaleX(.88);
}
.tile-code .sub {
  display: block;
  font-size: .42em;
  letter-spacing: .3em;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
  margin-top: 8px;
  transform: scaleX(calc(1 / .88));
}

/* Frank Ricci signature watermark, top-right */
.tile-mark {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  font-size: 8px;
  letter-spacing: .3em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--red);
  opacity: .85;
}

/* Hover meta (info reveal) */
.tile-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .6, .2, 1);
}
.tile-edition:hover .tile-meta {
  opacity: 1;
  transform: translateY(0);
}
.tile-meta .model {
  font-size: 10px;
  letter-spacing: .26em;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.4;
}
.tile-meta .model .year {
  display: block;
  font-size: 9px;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .55);
  font-weight: 500;
  margin-top: 4px;
}
.tile-meta .variant {
  font-size: 9px;
  letter-spacing: .3em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--red);
  text-align: right;
  position: relative;
  padding-top: 8px;
}
.tile-meta .variant::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 1px;
  background: var(--red);
}

/* Subtle hover gradient (focus tile) */
.tile-edition::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .65) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.tile-edition:hover::after { opacity: 1; }

/* ============================================================
   END CARD - "Hai visto tutto"
   ============================================================ */
.ed-end {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  gap: 28px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.2, .6, .2, 1), transform 1s cubic-bezier(.2, .6, .2, 1);
}
.ed-end.is-in {
  opacity: 1;
  transform: translateY(0);
}
.ed-end .end-kicker {
  font-size: 11px;
  letter-spacing: .42em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--red);
  position: relative;
  padding-left: 60px;
}
.ed-end .end-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 48px;
  height: 1px;
  background: var(--red);
}
.ed-end .end-title {
  font-size: clamp(36px, 5.5vw, 78px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .9;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  transform: scaleX(.86);
  transform-origin: center;
}
.ed-end .end-title .dot { color: var(--red); }
.ed-end .end-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 480px;
  margin: 0;
}
.ed-end .end-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}
.end-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  border: 1px solid var(--red);
  background: var(--red);
  padding: 16px 26px;
  font-size: 10px;
  letter-spacing: .35em;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease;
}
.end-cta:hover { background: var(--red-light); border-color: var(--red-light); }
.end-cta.is-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, .25);
}
.end-cta.is-secondary:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .45);
}
.end-cta .arrow {
  width: 22px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.end-cta .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .ed-grid { grid-template-columns: repeat(4, 1fr); }
  .tile-edition.is-feature { grid-column: var(--col-md, 2) / span 2; }
}
@media (max-width: 880px) {
  .ed-grid { grid-template-columns: repeat(3, 1fr); }
  .ed-grid-wrap { padding: 110px 18px 0; }
  .tile-edition.is-feature { grid-column: var(--col-sm, 1) / span 2; }
}
@media (max-width: 560px) {
  .ed-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-edition.is-feature { grid-column: 1 / span 2; }
  .ed-header { padding: 18px 18px; }
  .ed-edition .num { padding-left: 0; }
  .ed-edition .num::before { display: none; }
}

/* ============================================================
   SALE SHEET - slide-in panel from the right (75vw)
   Light editorial theme · dark hero + paper body
   ============================================================ */
.sale-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.sale-sheet[aria-hidden="false"] {
  pointer-events: auto;
}
.sale-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 9, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 1.05s cubic-bezier(.22, .61, .36, 1);
}
.sale-sheet[aria-hidden="false"] .sale-sheet-backdrop {
  opacity: 1;
}
.sale-sheet-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 75vw;
  max-width: 1400px;
  background: var(--paper);
  border-left: 1px solid rgba(0, 0, 0, .08);
  box-shadow: -40px 0 100px rgba(0, 0, 0, .55);
  transform: translateX(108%);
  opacity: 0;
  /* Closing: fade out first, then slide out */
  transition:
    transform 1.15s cubic-bezier(.22, .61, .36, 1),
    opacity .5s cubic-bezier(.4, 0, .6, 1);
  display: flex;
  flex-direction: column;
  border-radius: 0;
  color: var(--black);
}
.sale-sheet[aria-hidden="false"] .sale-sheet-panel {
  transform: translateX(0);
  opacity: 1;
  /* Opening: fade in slightly after the slide starts */
  transition:
    transform 1.15s cubic-bezier(.22, .61, .36, 1),
    opacity .55s cubic-bezier(.4, 0, .6, 1) .12s;
}
.sale-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 30;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease, color .3s ease, border-color .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  padding: 0;
}
.sale-close:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: rotate(90deg);
}
.sale-close .x {
  position: relative;
  width: 11px;
  height: 11px;
}
.sale-close .x::before,
.sale-close .x::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 11px;
  height: 1.4px;
  background: currentColor;
  border-radius: 1px;
}
.sale-close .x::before { transform: rotate(45deg); }
.sale-close .x::after  { transform: rotate(-45deg); }

.sale-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
}
.sale-content::-webkit-scrollbar { width: 8px; }
.sale-content::-webkit-scrollbar-track { background: rgba(0, 0, 0, .02); }
.sale-content::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .14); border-radius: 4px; }

/* HERO CAROUSEL - stacked slides with opacity crossfade -------- */
.sale-hero {
  position: relative;
  height: 62vh;
  min-height: 380px;
  overflow: hidden;
  background: #0a0a09;
}
.sale-hero-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* 3D context - slides rotate around the vertical axis on transition */
  perspective: 1400px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}
.sale-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  /* Inactive state: rotated away on the Y axis + slight push outward → reads as a
     continuous rightward rotation when paired with the active state below. */
  transform: rotateY(-22deg) translateX(-5%) scale(1.04);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  transition:
    opacity 1.4s cubic-bezier(.55, 0, .2, 1),
    transform 1.6s cubic-bezier(.55, 0, .2, 1);
  will-change: opacity, transform;
}
.sale-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  transform: rotateY(0deg) translateX(0) scale(1);
}
.sale-hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(.95) contrast(1.05);
  transform: scale(1.08);
  transition: transform 7.5s cubic-bezier(.2, .6, .2, 1);
}
.sale-hero-slide.is-active img {
  transform: scale(1);
}

.sale-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, transparent 35%, rgba(10, 10, 9, .88) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .4) 0%, transparent 55%);
  padding: clamp(40px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  pointer-events: none;
}
.sale-hero-overlay > * { pointer-events: auto; }
.sale-kicker {
  font-size: 11px;
  letter-spacing: .42em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--red);
  position: relative;
  padding-left: 60px;
}
.sale-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 48px;
  height: 1px;
  background: var(--red);
}
.sale-title {
  font-size: clamp(40px, 5vw, 84px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .82;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  transform-origin: left center;
  transform: scaleX(.86);
}
.sale-title .row { display: block; }
.sale-title .word { display: inline-block; }
.sale-title .dot { color: var(--red); }
.sale-sub {
  font-size: 11px;
  letter-spacing: .38em;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

/* CAROUSEL CONTROLS (arrows + dots + counter) -------------- */
.sale-hero-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  padding: 0 clamp(14px, 2vw, 28px);
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-arrow {
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: rgba(255, 255, 255, .35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  padding: 0;
  transition: color .3s ease, transform .35s cubic-bezier(.2,.68,.2,1);
}
.hero-arrow:hover {
  background: transparent;
  border-color: transparent;
  color: #fff;
  transform: none;
}
.hero-arrow.prev:hover { transform: translateX(-4px); }
.hero-arrow.next:hover { transform: translateX(4px); }
.hero-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  transition: filter .3s ease;
}
.hero-arrow:hover svg {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .35));
}
.hero-arrow.prev svg { transform: rotate(180deg); }

.sale-hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(18px, 2vw, 30px);
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(40px, 5vw, 80px);
  pointer-events: none;
}
.hero-dots {
  display: flex;
  gap: 10px;
  pointer-events: auto;
  align-items: center;
}
.hero-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  border: none;
  padding: 0;
  border-radius: 50%;
  position: relative;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.hero-dot:hover {
  background: #fff;
  transform: scale(1.15);
}
.hero-dot.is-active {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(204, 21, 23, .18);
}
.hero-counter {
  font-size: 10px;
  letter-spacing: .42em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  pointer-events: auto;
}
.hero-counter .current { color: #fff; font-size: 13px; }
.hero-counter .sep { margin: 0 8px; opacity: .4; }

/* BODY SECTIONS (light theme) ----------------------------- */
.sale-body {
  padding: clamp(48px, 6vw, 88px) clamp(36px, 5vw, 80px) 56px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  background: var(--paper);
  color: var(--black);
}

.sale-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.sale-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.sale-section .s-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sale-section .s-kicker {
  font-size: 10px;
  letter-spacing: .42em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--red);
  position: relative;
  padding-left: 36px;
}
.sale-section .s-kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--red);
}
.sale-section .s-num {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--black);
  transform: scaleX(.86);
  transform-origin: left;
}
.sale-section .s-num em {
  font-style: normal;
  color: var(--red);
}
.sale-section .s-body {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(29, 29, 27, .82);
}
.sale-section .s-body p { margin: 0 0 18px; }
.sale-section .s-body p:last-child { margin-bottom: 0; }

/* FINISH SWATCHES (light) --------------------------------- */
.finish-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.finish-swatch {
  border: 1px solid rgba(0, 0, 0, .12);
  background: #fff;
  padding: 18px;
  cursor: pointer;
  color: var(--black);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .3s ease, background .3s ease, transform .3s ease, box-shadow .3s ease;
  font-family: inherit;
}
.finish-swatch:hover {
  border-color: rgba(0, 0, 0, .3);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.finish-swatch.is-selected {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 1px var(--red) inset;
}
.finish-swatch .swatch-chip {
  width: 100%;
  height: 64px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: var(--swatch-bg, #222);
  position: relative;
  overflow: hidden;
}
.finish-swatch .swatch-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--swatch-pattern, none);
  mix-blend-mode: overlay;
  opacity: .85;
}
.finish-swatch .swatch-name {
  font-size: 11px;
  letter-spacing: .32em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
}
.finish-swatch.is-selected .swatch-name { color: var(--red); }
.finish-swatch .swatch-meta {
  font-size: 10px;
  letter-spacing: .24em;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(29, 29, 27, .55);
}

/* PROCESS STEPS (light) ----------------------------------- */
.process-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.process-step {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  align-items: start;
}
.process-step:last-child { border-bottom: none; }
.process-step .p-num {
  font-size: 11px;
  letter-spacing: .3em;
  font-weight: 700;
  color: var(--red);
  padding-top: 2px;
}
.process-step .p-body h4 {
  font-size: 14px;
  letter-spacing: -.005em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 6px;
}
.process-step .p-body p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(29, 29, 27, .65);
  margin: 0;
}
.process-step .p-meta {
  font-size: 10px;
  letter-spacing: .26em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(29, 29, 27, .42);
  text-align: right;
  padding-top: 4px;
  white-space: nowrap;
}

/* SPEC LIST (light) --------------------------------------- */
.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
  margin: 0;
}
.spec-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.spec-row dt {
  font-size: 10px;
  letter-spacing: .3em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(29, 29, 27, .45);
}
.spec-row dd {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  margin: 0;
  letter-spacing: -.005em;
}

/* CTA STRIP (light · sticky bottom) ----------------------- */
.sale-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(36px, 5vw, 80px);
  border-top: 1px solid rgba(0, 0, 0, .1);
  background: rgba(244, 243, 239, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sale-price .pr-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: .32em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(29, 29, 27, .5);
  margin-bottom: 6px;
}
.sale-price .pr-value {
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--black);
}
.sale-price .pr-value .pr-from {
  font-size: .55em;
  font-weight: 500;
  color: rgba(29, 29, 27, .5);
  margin-right: 6px;
  letter-spacing: .2em;
  text-transform: uppercase;
  vertical-align: 4px;
}
.sale-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  padding: 18px 30px;
  font-size: 11px;
  letter-spacing: .35em;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background .3s ease, padding .3s ease;
}
.sale-cta:hover { background: var(--red-light); border-color: var(--red-light); padding-right: 36px; }
.sale-cta .arrow {
  width: 22px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.sale-cta .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* RESPONSIVE -------------------------------------------- */
@media (max-width: 1100px) {
  .sale-sheet-panel { width: 88vw; }
  .sale-section { grid-template-columns: 1fr; gap: 18px; padding-bottom: 40px; }
  .sale-section .s-num { font-size: 48px; }
}
@media (max-width: 720px) {
  .sale-sheet-panel { width: 100vw; }
  .sale-hero { height: 44vh; min-height: 280px; }
  .sale-body { padding: 36px 22px; gap: 40px; }
  .spec-list { grid-template-columns: 1fr; }
  .sale-cta-strip { padding: 16px 22px; flex-direction: column; align-items: stretch; }
  .sale-cta { justify-content: center; }
  .hero-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tile-edition,
  .tile-edition.is-in,
  .ed-header,
  .ed-end {
    transition: opacity .3s ease !important;
    transform: none !important;
    filter: none !important;
  }
  /* Panel keeps its slide transform - only its duration is short */
  .sale-sheet-panel,
  .sale-sheet-backdrop,
  .sale-hero-slide {
    transition-duration: .15s !important;
  }
  /* Hero slides: flatten the rotation in reduced motion → plain opacity crossfade */
  .sale-hero-slide,
  .sale-hero-slide.is-active {
    transform: none !important;
  }
  .sale-title .word { transform: none !important; }
}


/* ============================================================
   SALE - AI mark on hero (bottom-right)
   ============================================================ */
.sale-ai-mark {
  position: absolute;
  left: 22px; top: 20px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: rgba(255, 255, 255, .72);
  font-size: 8.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .65);
}
.sale-ai-mark svg {
  width: 10px; height: 10px;
  color: var(--red);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, .6));
}

/* ============================================================
   SALE - Disclaimer "70%" inside La livrea
   ============================================================ */
.sale-disclaimer {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 20px;
  padding: 14px 18px 14px 14px;
  background: rgba(204, 21, 23, .04);
  border: 1px solid rgba(204, 21, 23, .16);
  border-left: 3px solid var(--red);
  border-radius: 5px;
}
.sale-disclaimer .d-icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 13px;
  font-style: italic;
  line-height: 1;
  margin-top: 2px;
}
.sale-disclaimer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--black);
}
.sale-disclaimer strong { font-weight: 700; }

/* ============================================================
   SALE - Anteprima & Materiali (download cards)
   ============================================================ */
.sale-downloads .download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.dl-card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .09);
  border-radius: 5px;
  position: relative;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.dl-card:hover {
  border-color: rgba(0, 0, 0, .22);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, .35);
}
.dl-card.dl-full {
  background: #1d1d1b;
  color: #fff;
  border-color: #1d1d1b;
}
.dl-card.dl-full:hover { border-color: #1d1d1b; box-shadow: 0 12px 28px -18px rgba(0,0,0,.7); }

.dl-card .dl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dl-card .dl-icon {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px;
  background: rgba(204, 21, 23, .1);
  color: var(--red);
}
.dl-card .dl-icon svg { width: 18px; height: 18px; }
.dl-card.dl-full .dl-icon {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.dl-card .dl-tag {
  font-size: 9.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
  padding: 4px 8px;
  border: 1px solid rgba(204, 21, 23, .3);
  border-radius: 5px;
}
.dl-card .dl-tag-paid {
  color: var(--black);
  border-color: rgba(0, 0, 0, .2);
}
.dl-card .dl-tag-locked {
  color: rgba(255, 255, 255, .65);
  border-color: rgba(255, 255, 255, .2);
}
.dl-card h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  text-transform: none;
}
.dl-card p {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(29, 29, 27, .68);
  margin: 0 0 16px;
  flex: 1;
}
.dl-card.dl-full p { color: rgba(255, 255, 255, .62); }
.dl-card p strong { font-weight: 600; color: var(--black); }
.dl-card.dl-full p strong { color: #fff; }

.dl-card .dl-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 10px 14px 10px 12px;
  background: var(--black);
  color: #fff;
  border: 1px solid var(--black);
  border-radius: 5px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.dl-card .dl-cta:hover {
  background: var(--red);
  border-color: var(--red);
}
.dl-card.dl-full .dl-cta {
  background: var(--red);
  border-color: var(--red);
}
.dl-card.dl-full .dl-cta:hover { background: var(--red-light, #e51d20); border-color: var(--red-light, #e51d20); }
.dl-card .dl-cta-locked {
  background: transparent;
  color: rgba(255, 255, 255, .55);
  border-color: rgba(255, 255, 255, .2);
  cursor: not-allowed;
}
.dl-card .dl-cta-locked:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, .2);
}
.dl-card .arrow-d {
  position: relative;
  width: 12px; height: 12px;
  display: inline-block;
}
.dl-card .arrow-d::before {
  content: ""; position: absolute;
  left: 50%; top: 0;
  width: 1px; height: 9px;
  background: currentColor;
  transform: translateX(-50%);
}
.dl-card .arrow-d::after {
  content: ""; position: absolute;
  left: 50%; bottom: 1px;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}
.dl-card .lock-d { width: 14px; height: 14px; display: inline-flex; }
.dl-card .lock-d svg { width: 100%; height: 100%; }

.dl-note {
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(29, 29, 27, .55);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  max-width: 78ch;
}

/* ============================================================
   SALE - Checkout overlay (nested inside .sale-sheet-panel)
   ============================================================ */
.sale-checkout {
  position: absolute;
  inset: 0;
  background: var(--paper);
  color: var(--black);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  opacity: 0;
  transition: transform .75s cubic-bezier(.2, .68, .2, 1), opacity .4s ease;
  pointer-events: none;
  z-index: 4;
}
.sale-checkout[aria-hidden="false"] {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Hide the sale-sheet X close button while checkout overlay is on top -
   redundant with the in-page "Torna al prodotto" back button. */
.sale-sheet-panel:has(.sale-checkout[aria-hidden="false"]) .sale-close {
  opacity: 0;
  pointer-events: none;
  transform: scale(.85);
  transition: opacity .25s ease, transform .25s ease;
}

/* Header - back + progress */
.ck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(28px, 4vw, 56px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
}
.ck-back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  border: 1px solid rgba(29, 29, 27, .22);
  padding: 11px 22px 11px 18px;
  border-radius: 5px;
  cursor: pointer;
  color: var(--black);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  transition: border-color .3s ease, background .3s ease, padding .3s ease, color .3s ease;
}
.ck-back:hover {
  border-color: var(--red);
  background: rgba(204, 21, 23, .04);
  color: var(--red);
  padding-left: 22px;
}
.ck-back .arrow {
  position: relative;
  width: 28px; height: 1px;
  background: var(--red);
  transition: width .3s ease;
}
.ck-back .arrow::after {
  content: ""; position: absolute;
  left: 0; top: 50%;
  width: 7px; height: 7px;
  border-left: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  transform: translateY(-50%) rotate(45deg);
}
.ck-back:hover .arrow { width: 40px; }

.ck-progress {
  display: flex;
  align-items: center;
  gap: 0;
}
.ck-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(29, 29, 27, .35);
  position: relative;
}
.ck-step em {
  font-style: normal;
  font-weight: 700;
  color: rgba(29, 29, 27, .25);
}
.ck-step.is-active { color: var(--black); }
.ck-step.is-active em { color: var(--red); }
.ck-step + .ck-step::before {
  content: ""; position: absolute;
  left: -2px; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(29, 29, 27, .2);
  transform: translateY(-50%);
}

/* Content scroll area */
.ck-content {
  flex: 1;
  overflow-y: auto;
  padding: 40px clamp(28px, 4vw, 56px) 60px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.ck-content::-webkit-scrollbar { width: 8px; }
.ck-content::-webkit-scrollbar-track { background: rgba(0, 0, 0, .02); }
.ck-content::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .14); border-radius: 4px; }

/* Section header (mirrors .sale-section but lighter) */
.ck-section { display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.ck-section .ck-head { display: flex; flex-direction: column; gap: 14px; }
.ck-section .ck-kicker {
  font-size: 11px;
  letter-spacing: .36em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--black);
  position: relative;
  padding-top: 14px;
}
.ck-section .ck-kicker::before {
  content: ""; position: absolute;
  top: 0; left: 0;
  width: 32px; height: 1px;
  background: var(--red);
}
.ck-section .s-num {
  font-size: 56px;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.04em;
  color: rgba(29, 29, 27, .14);
  transform: scaleX(.86);
  transform-origin: 0 50%;
}
.ck-section .s-num em { font-style: normal; color: rgba(204, 21, 23, .65); font-weight: 700; }
.ck-section > .ck-head + p,
.ck-section > .ck-head + .ck-summary,
.ck-section > .ck-head + .ck-form,
.ck-section > .ck-head + .upsell-list,
.ck-section > .ck-head + .ck-timeline { grid-column: 2; margin-top: 0; }
.ck-section .ck-lead {
  grid-column: 2;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(29, 29, 27, .72);
  margin: 0 0 22px;
  max-width: 64ch;
}

/* Order summary */
.ck-summary {
  grid-column: 2;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: start;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 5px;
}
.ck-thumb {
  width: 180px;
  aspect-ratio: 4 / 3;
  background: #1d1d1b;
  border-radius: 5px;
  overflow: hidden;
}
.ck-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ck-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ck-edition {
  font-size: 10px;
  letter-spacing: .36em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
}
.ck-model {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 2px 0 0;
  text-transform: none;
}
.ck-variant {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(29, 29, 27, .55);
  margin-bottom: 10px;
}
.ck-recap {
  list-style: none;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ck-recap li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(29, 29, 27, .8);
}
.ck-recap li span:first-child {
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(29, 29, 27, .5);
}

/* Form - floating-label style matching Contattaci */
.ck-form {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
}
.ck-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.ck-field-full { grid-column: 1 / -1; }
.ck-field label {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(29, 29, 27, .55);
}
.ck-field input,
.ck-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .18);
  padding: 6px 0 9px;
  font-family: inherit;
  font-size: 14px;
  color: var(--black);
  outline: none;
  transition: border-color .25s ease;
  resize: vertical;
}
.ck-field input:focus,
.ck-field textarea:focus { border-bottom-color: var(--red); }
.ck-field input::placeholder,
.ck-field textarea::placeholder { color: rgba(29, 29, 27, .3); }

/* Upsell list */
.upsell-list {
  grid-column: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.upsell-list label {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 5px;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease;
}
.upsell-list label:hover { border-color: rgba(0, 0, 0, .2); }
.upsell-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border: 1px solid rgba(0, 0, 0, .25);
  border-radius: 5px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  background: #fff;
  transition: background .2s ease, border-color .2s ease;
  margin: 0;
}
.upsell-list input[type="checkbox"]:checked {
  background: var(--red);
  border-color: var(--red);
}
.upsell-list input[type="checkbox"]:checked::after {
  content: "";
  width: 6px; height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}
.upsell-list label:has(input:checked) {
  border-color: var(--red);
  background: rgba(204, 21, 23, .03);
}
.upsell-list .up-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.upsell-list .up-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--black);
}
.upsell-list .up-desc {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(29, 29, 27, .58);
}
.upsell-list .up-price {
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

/* Timeline / promise */
.ck-timeline {
  grid-column: 2;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: ck;
}
.ck-timeline li {
  counter-increment: ck;
  padding: 14px 0 14px 56px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(29, 29, 27, .8);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.ck-timeline li:last-child { border-bottom: 0; }
.ck-timeline li::before {
  content: counter(ck, decimal-leading-zero);
  position: absolute;
  left: 0; top: 16px;
  width: 36px;
  font-size: 11px;
  letter-spacing: .26em;
  font-weight: 700;
  color: var(--red);
}
.ck-timeline li::after {
  content: "";
  position: absolute;
  left: 42px; top: 22px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  transform: translateY(-50%);
}
.ck-timeline strong { font-weight: 700; color: var(--black); }
.ck-fineprint {
  grid-column: 2;
  font-size: 11.5px;
  line-height: 1.55;
  color: rgba(29, 29, 27, .55);
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  max-width: 70ch;
}

/* Footer - total + Stripe pay */
.ck-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(28px, 4vw, 56px);
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .08);
}
.ck-total-wrap { display: flex; flex-direction: column; gap: 4px; }
.ck-total-kicker {
  font-size: 10px;
  letter-spacing: .36em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(29, 29, 27, .5);
}
.ck-total {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--black);
  line-height: 1;
}
.ck-pay {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px 18px 22px;
  background: var(--red);
  border: 1px solid var(--red);
  color: #fff;
  border-radius: 5px;
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, padding .25s ease;
}
.ck-pay:hover {
  background: var(--red-light, #e51d20);
  border-color: var(--red-light, #e51d20);
  padding-right: 32px;
}
.ck-pay .ck-pay-icon { width: 22px; height: 14px; display: inline-flex; }
.ck-pay .ck-pay-icon svg { width: 100%; height: 100%; }
.ck-pay .arrow {
  position: relative;
  width: 22px; height: 1px;
  background: #fff;
}
.ck-pay .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 7px; height: 7px;
  border-right: 1px solid #fff;
  border-top: 1px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

/* Responsive (matches sale-sheet breakpoints) */
@media (max-width: 1100px) {
  .sale-downloads .download-cards { grid-template-columns: 1fr 1fr; }
  .sale-downloads .download-cards .dl-full { grid-column: 1 / -1; }
  .ck-section { grid-template-columns: 1fr; gap: 18px; }
  .ck-section .s-num { font-size: 44px; }
  .ck-summary { grid-template-columns: 140px 1fr; }
  .ck-thumb { width: 140px; }
  .ck-form { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sale-ai-mark { right: 14px; bottom: 14px; font-size: 9px; padding: 6px 10px 5px 8px; }
  .sale-downloads .download-cards { grid-template-columns: 1fr; }
  .ck-header { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 22px; }
  .ck-progress { width: 100%; flex-wrap: wrap; }
  .ck-step { padding: 0 12px 0 0; }
  .ck-content { padding: 28px 22px 40px; gap: 40px; }
  .ck-footer { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 22px; }
  .ck-pay { justify-content: center; }
  .ck-summary { grid-template-columns: 1fr; }
  .ck-thumb { width: 100%; aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .sale-checkout { transition-duration: .15s !important; }
}


/* ============================================================
   SALE - 03 Pannelli e dimensioni (mesh image placeholder)
   ============================================================ */
.sale-panels .panels-figure {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}
.panels-canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #f9f8f4 0%, #ebe9e2 100%);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panels-canvas::before {
  /* Subtle technical grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 29, 27, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 27, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.panels-canvas::after {
  /* Vignette */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(29, 29, 27, .06) 100%);
  pointer-events: none;
}
.panels-canvas img,
.panels-canvas video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
.panels-placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: rgba(29, 29, 27, .55);
  max-width: 380px;
  padding: 20px;
}
.panels-placeholder .ph-icon {
  width: 72px;
  height: 48px;
  color: rgba(29, 29, 27, .35);
}
.panels-placeholder .ph-icon svg { width: 100%; height: 100%; }
.panels-placeholder .ph-label {
  font-size: 10px;
  letter-spacing: .36em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
}
.panels-placeholder .ph-sub {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(29, 29, 27, .55);
}
.panels-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
}
.panels-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.panels-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.panels-stats li span {
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(29, 29, 27, .45);
}
.panels-stats li strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--black);
}

/* ============================================================
   SALE - 04 Formato, stampa, materiale
   ============================================================ */
.sale-specs-print .sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.sale-specs-print .sp-block {
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 5px;
}
.sale-specs-print .sp-block h4 {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.sale-specs-print .sp-block dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sale-specs-print .sp-block dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}
.sale-specs-print .sp-block dt {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(29, 29, 27, .5);
  flex-shrink: 0;
}
.sale-specs-print .sp-block dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--black);
  text-align: right;
  letter-spacing: -.005em;
}
.sale-specs-print .sp-tips {
  background: var(--black);
  color: #fff;
  border-radius: 5px;
  padding: 22px 26px;
}
.sale-specs-print .sp-tips h4 {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 16px;
}
.sale-specs-print .sp-tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tip;
}
.sale-specs-print .sp-tips-list li {
  counter-increment: tip;
  padding: 12px 0 12px 46px;
  position: relative;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .75);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sale-specs-print .sp-tips-list li:last-child { border-bottom: 0; }
.sale-specs-print .sp-tips-list li::before {
  content: counter(tip, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 13px;
  font-size: 11px;
  letter-spacing: .24em;
  font-weight: 700;
  color: var(--red);
}
.sale-specs-print .sp-tips-list strong {
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
  margin-right: 4px;
}

/* ============================================================
   SALE - 05 Varianti cromatiche (related colorways)
   ============================================================ */
.sale-related .rel-lead {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(29, 29, 27, .65);
  margin: 0 0 20px;
  max-width: 64ch;
}
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-list li { margin: 0; }
.rel-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .09);
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: inherit;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.rel-card:hover {
  border-color: rgba(0, 0, 0, .25);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -22px rgba(0, 0, 0, .4);
}
.rel-card.is-selected {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.rel-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--rel-bg, #1d1d1b);
  position: relative;
  overflow: hidden;
}
.rel-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rel-pattern, none);
  mix-blend-mode: screen;
  opacity: .85;
}
.rel-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 100%, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(0,0,0,.15) 100%);
}
.rel-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 16px 14px;
  gap: 10px;
}
.rel-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--black);
}
.rel-meta {
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 600;
  color: rgba(29, 29, 27, .55);
  text-transform: uppercase;
  text-align: right;
  flex-shrink: 0;
}
.rel-card.is-selected .rel-meta { color: var(--red); }
.rel-check {
  position: absolute;
  top: 12px; right: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(0, 0, 0, .15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
}
.rel-card.is-selected .rel-check {
  opacity: 1;
  background: var(--red);
  border-color: var(--red);
}
.rel-card.is-selected .rel-check::after {
  content: "";
  width: 5px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translate(-1px, -1px);
}

@media (max-width: 1100px) {
  .sale-specs-print .sp-grid { grid-template-columns: 1fr; }
  .related-list { grid-template-columns: 1fr 1fr; }
  .panels-stats { gap: 18px; }
}
@media (max-width: 720px) {
  .related-list { grid-template-columns: 1fr; }
  .panels-caption { flex-direction: column; align-items: flex-start; gap: 14px; }
}


/* ============================================================
   ED-FILTERS - YouTube-style search + collapsible filter panel
   ============================================================ */
.ed-filters {
  position: relative;
  z-index: 20;
  padding: 14px clamp(36px, 6vw, 96px);
  background: rgba(10, 10, 9, .55);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 14px;
}

/* ---------- TOP BAR (search + filters toggle + count) ---------- */
.ed-filters .filt-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Search input ------------------------------------- */
.filt-search {
  position: relative;
  flex: 1;
  max-width: 720px;
  display: flex;
  align-items: center;
}
.filt-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, .45);
  pointer-events: none;
}
.filt-search .search-input {
  width: 100%;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  padding: 11px 42px 10px 40px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: .01em;
  outline: none;
  transition: border-color .25s ease, background .25s ease;
}
.filt-search .search-input::placeholder { color: rgba(255, 255, 255, .35); }
.filt-search .search-input:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, .06);
}
.filt-search .search-input::-webkit-search-cancel-button { display: none; }
.filt-search .search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 0;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
  color: rgba(255, 255, 255, .65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.filt-search .search-clear:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.filt-search .search-clear svg { width: 9px; height: 9px; }

/* Filters toggle button ----------------------------- */
.filt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
  flex-shrink: 0;
}
.filt-toggle:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .25); }
.ed-filters.is-open .filt-toggle {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .35);
}
.filt-toggle .toggle-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, .8);
}
.filt-toggle .filt-active-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--red);
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 700;
}

/* Meta count --------------------------------------- */
.ed-filters .filt-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  margin-left: 4px;
}
.ed-filters .filt-count {
  color: var(--red);
  font-size: 20px;
  letter-spacing: -.01em;
  font-weight: 800;
  line-height: 1;
}
.ed-filters .filt-count-label { line-height: 1; }

/* ---------- FILTER PANEL (drops below top bar) ---------- */
.filt-panel {
  margin-top: 14px;
  background: rgba(20, 20, 18, .96);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  padding: 22px 26px 18px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
  animation: filtPanelIn .35s cubic-bezier(.2, .68, .2, 1);
}
@keyframes filtPanelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.filt-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.filt-panel .panel-title {
  font-size: 11px;
  letter-spacing: .36em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}
.filt-panel .panel-close {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, transform .3s ease;
}
.filt-panel .panel-close:hover {
  border-color: var(--red);
  background: rgba(204, 21, 23, .08);
  transform: rotate(90deg);
}
.filt-panel .panel-close svg { width: 10px; height: 10px; }

/* Columns ------------------------------------------- */
.filt-panel .panel-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(20px, 3vw, 48px);
}
.filt-panel .panel-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.filt-panel .col-head {
  font-size: 9.5px;
  letter-spacing: .36em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}
.filt-panel .col-head::before {
  content: "";
  display: block;
  width: 14px;
  height: 1px;
  background: var(--red);
}
.filt-panel .col-opts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 280px;
  overflow-y: auto;
}
.filt-panel .col-opts::-webkit-scrollbar { width: 6px; }
.filt-panel .col-opts::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }

.filt-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 7px 10px;
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: rgba(255, 255, 255, .78);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: -.005em;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, padding-left .2s ease;
}
.filt-opt:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  padding-left: 14px;
}
.filt-opt.is-active {
  color: #fff;
  font-weight: 700;
  background: rgba(204, 21, 23, .12);
}
.filt-opt[data-filt-all].is-active {
  color: #fff;
  background: transparent;
  font-weight: 700;
}
.filt-opt .opt-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filt-opt .opt-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 17px;
  padding: 0 6px;
  background: rgba(255, 255, 255, .06);
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: .04em;
  font-weight: 700;
  color: rgba(255, 255, 255, .65);
  flex-shrink: 0;
}
.filt-opt.is-active .opt-count {
  background: var(--red);
  color: #fff;
}

/* Footer (reset) ------------------------------------ */
.filt-panel .panel-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.filt-reset {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .75);
  padding: 8px 14px 7px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.filt-reset:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(204, 21, 23, .05);
}

/* Hide filtered tiles (regular grid tiles only) */
.tile-edition.is-filtered-out {
  display: none !important;
}

@media (max-width: 880px) {
  .ed-filters { padding: 12px 18px; }
  .ed-filters .filt-top { flex-wrap: wrap; gap: 10px; }
  .filt-search { order: 1; flex-basis: 100%; max-width: none; }
  .filt-toggle { order: 2; }
  .ed-filters .filt-meta { order: 3; margin-left: auto; }
  .filt-panel { padding: 18px; margin-top: 12px; }
}

/* Titolazioni senza linea: rimosse le dash decorative dei kicker (richiesta utente).
   Le righe assolute riservavano padding sul parent → azzerato per evitare rientri orfani. */
.video-label .v-kicker,
.cta-next .cta-kicker,
.ed-end .end-kicker,
.sale-kicker,
.sale-section .s-kicker { padding-left: 0 !important; }
.ck-section .ck-kicker { padding-top: 0 !important; }
.video-label .v-kicker::before,
.cta-next .cta-kicker::before,
.ed-end .end-kicker::before,
.sale-kicker::before,
.sale-section .s-kicker::before,
.ck-section .ck-kicker::before,
.filt-panel .col-head::before { display: none !important; }
