/* ============================================
   PROGETTO SERRAMENTI — Design Tokens
   Black & Gold elegant adaptation
   ============================================ */
:root {
  /* Colors */
  --bg-deep:      #0a0a0a;
  --bg-charcoal:  #141312;
  --bg-cream:     #f5efe6;
  --bg-cream-2:   #ebe3d4;
  --bg-paper:     #faf6ee;

  --fg-on-dark:    #f5efe6;
  --fg-on-dark-2:  #b8b0a3;
  --fg-on-light:   #1a1816;
  --fg-on-light-2: #585249;
  --fg-on-light-3: #8a8275;

  --gold:        #c9a96e;
  --gold-hover:  #d8bb7e;
  --gold-deep:   #a08147;
  --line-dark:   rgba(245,239,230,0.14);
  --line-light:  rgba(26,24,22,0.12);

  /* Type */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* Radii */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Stronger curves for direct interactions (Emil Kowalski) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);       /* entrances, feedback */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);   /* on-screen movement */
  --t-press: 140ms;  /* button press / instant feedback */
  --t-fast: 240ms;
  --t-med: 480ms;
  --t-slow: 720ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-on-light);
  background: var(--bg-paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv01';
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ----- Type ramp ----- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.display-md {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.display em, .display-xl em, .display-lg em, .display-md em, .display-sm em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--fg-on-light-2);
  max-width: 56ch;
}
.body { font-size: 15px; line-height: 1.65; color: var(--fg-on-light-2); }
.small { font-size: 13px; line-height: 1.5; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* explicit properties, not `all`; press feedback is snappy */
  transition: background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-press) var(--ease-out);
  border: 1px solid transparent;
  cursor: pointer;
}
/* Instant, tactile feedback the moment a press is registered */
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
}
.btn-outline {
  border-color: currentColor;
  background: transparent;
}
.btn-outline:hover { background: var(--bg-deep); color: var(--bg-cream); border-color: var(--bg-deep); }
.btn-outline-light {
  border-color: var(--fg-on-dark);
  color: var(--fg-on-dark);
  background: transparent;
}
.btn-outline-light:hover { background: var(--fg-on-dark); color: var(--bg-deep); }
.btn-ghost { padding: 8px 0; letter-spacing: 0.18em; border-bottom: 1px solid currentColor; }
.btn-ghost:hover { color: var(--gold); }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
/* Hover-lift only on devices that truly hover (no touch false-positives) */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--gold-hover); transform: translateY(-1px); }
}
/* On touch, keep the colour change but no lift */
@media not all and (hover: hover) {
  .btn-primary:hover { background: var(--gold-hover); }
}

/* ----- Layout ----- */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--sp-6); }
.container-wide { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--sp-6); }
.section { padding: var(--sp-9) 0; }
.section-sm { padding: var(--sp-8) 0; }
.divider { height: 1px; background: var(--line-light); width: 100%; }

.is-dark { background: var(--bg-deep); color: var(--fg-on-dark); }
.is-dark .body { color: var(--fg-on-dark-2); }
.is-dark .lead { color: var(--fg-on-dark-2); }
.is-cream { background: var(--bg-cream); }
.is-paper { background: var(--bg-paper); }

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-light);
}
.site-header.on-dark {
  background: rgba(10,10,10,0.85);
  border-bottom-color: var(--line-dark);
  color: var(--fg-on-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 var(--sp-6);
  max-width: 1600px;
  margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo em { font-style: italic; color: var(--gold); }
.logo .small-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fg-on-light-3);
  margin-top: 2px;
}
.on-dark .logo .small-tag { color: var(--fg-on-dark-2); }
.nav-main {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.nav-main a {
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast) var(--ease);
}
.nav-main a:hover { color: var(--gold); }
.nav-main a.active { color: var(--gold); }
.nav-main a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}
.header-cta {
  display: flex;
  gap: 16px;
  align-items: center;
}
.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.phone-link:hover { color: var(--gold); }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--fg-on-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.55) saturate(0.92);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.05) 40%, rgba(10,10,10,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--sp-10);
  padding-top: var(--sp-10);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding-left: var(--sp-6);
  padding-right: var(--sp-6);
}
.hero h1 { max-width: 16ch; margin-bottom: 28px; }
.hero .lead { color: var(--fg-on-dark-2); max-width: 52ch; margin-bottom: 36px; }
.hero-meta {
  position: absolute;
  bottom: var(--sp-8);
  right: var(--sp-7);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  z-index: 1;
}
.hero-meta .num { font-family: var(--font-display); font-size: 56px; line-height: 1; color: var(--gold); }
.hero-meta .lbl { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-on-dark-2); }

/* ----- Product grid (le 5 vedette) ----- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}
.product-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-charcoal);
  color: var(--fg-on-dark);
  cursor: pointer;
}
.product-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: brightness(0.7) saturate(0.9);
}
.product-card:hover img { transform: scale(1.06); filter: brightness(0.85) saturate(1); }
.product-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-6);
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,10,0.85) 100%);
}
.product-card .eyebrow { color: var(--gold); margin-bottom: 6px; }
.product-card h3 { font-family: var(--font-display); font-size: clamp(24px, 2vw, 32px); line-height: 1.05; }
.product-card h3 em { color: var(--gold); font-style: italic; }
.product-card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.product-card:hover .more { opacity: 1; transform: translateY(0); }

.product-card.tall { grid-column: span 6; aspect-ratio: 3/4; }
.product-card.wide { grid-column: span 6; aspect-ratio: 4/3; }
.product-card.med  { grid-column: span 4; aspect-ratio: 3/4; }
.product-card.full { grid-column: span 12; aspect-ratio: 21/9; }

/* ----- Feature row ----- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: center;
}
.feature-row.reverse > :first-child { order: 2; }
.feature-img {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
}
.feature-img.wide { aspect-ratio: 5/4; }

/* ----- Service items ----- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.is-cream .services, .is-paper .services { border-color: var(--line-light); }
.service-item {
  padding: var(--sp-7) var(--sp-5);
  border-right: 1px solid var(--line-dark);
}
.is-cream .service-item, .is-paper .service-item { border-color: var(--line-light); }
.service-item:last-child { border-right: none; }
.service-item .num {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.service-item h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.15;
}
.service-item h4 em { color: var(--gold); font-style: italic; }

/* ----- Stats strip ----- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  padding: var(--sp-8) 0;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 80px);
  line-height: 1;
  color: var(--gold);
}
.stat .num em { font-style: italic; font-weight: 300; }
.stat .lbl {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 12px;
  color: var(--fg-on-dark-2);
}

/* ----- Ecobonus banner ----- */
.ecobonus-band {
  position: relative;
  padding: var(--sp-9) 0;
  background: var(--bg-deep);
  color: var(--fg-on-dark);
  overflow: hidden;
}
.ecobonus-band::before {
  content: '50%';
  position: absolute;
  top: 50%;
  right: -40px;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 28vw;
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.08;
  font-style: italic;
  pointer-events: none;
}
.ecobonus-band .container { position: relative; z-index: 1; }

/* ----- Testimonials ----- */
.testimonial {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--gold);
  line-height: 0.5;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.35;
  font-style: italic;
  font-weight: 300;
  margin-bottom: var(--sp-6);
}
.testimonial cite {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-on-light-3);
}
.is-dark .testimonial cite { color: var(--fg-on-dark-2); }

/* ----- Footer ----- */
.site-footer {
  background: var(--bg-deep);
  color: var(--fg-on-dark);
  padding: var(--sp-9) 0 var(--sp-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--line-dark);
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--fg-on-dark-2); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--sp-5);
  font-size: 12px;
  color: var(--fg-on-dark-2);
  letter-spacing: 0.04em;
}

/* ----- Page heros (sub-pages) ----- */
.page-hero {
  padding: var(--sp-10) 0 var(--sp-8);
  background: var(--bg-deep);
  color: var(--fg-on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.page-hero .eyebrow { margin-bottom: 24px; display: inline-block; }
.page-hero h1 { max-width: 18ch; margin-bottom: 24px; }
.page-hero .lead { color: var(--fg-on-dark-2); }

/* ----- Product detail grid ----- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}
.detail-card {
  background: var(--bg-cream);
}
.detail-card .img {
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.detail-card.tall .img {
  aspect-ratio: 437 / 660;
  background-color: #ffffff;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.detail-card .swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
  border: 1px solid rgba(0,0,0,0.08);
}
.door-tabs {
  display: flex;
  gap: 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.door-tab {
  color: var(--fg-on-light-3);
  cursor: pointer;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.door-tab:hover { color: var(--fg-on-light); }
.door-tab.active { color: var(--gold-deep); border-bottom-color: currentColor; }
.detail-card .body-wrap {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-card h4 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}
.detail-card h4 em { font-style: italic; color: var(--gold-deep); }
.detail-card .meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
  font-size: 12px;
  color: var(--fg-on-light-3);
  letter-spacing: 0.06em;
}
.detail-card .meta .price {
  color: var(--bg-deep);
  font-weight: 500;
}

/* ----- Contact form ----- */
.contact-form {
  display: grid;
  gap: var(--sp-5);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-on-dark-2);
}
.field input, .field select, .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  padding: 10px 0;
  color: var(--fg-on-dark);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }

/* utility */
.text-center { text-align: center; }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-7 { margin-bottom: var(--sp-7); }
.mb-8 { margin-bottom: var(--sp-8); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }

@media (max-width: 900px) {
  .product-card.tall, .product-card.wide, .product-card.med { grid-column: span 12; }
  .feature-row { grid-template-columns: 1fr; gap: var(--sp-6); }
  .feature-row.reverse > :first-child { order: 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .service-item:nth-child(2) { border-right: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .nav-main { display: none; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .detail-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service-item { border-right: none; border-bottom: 1px solid var(--line-dark); }
}

/* ============================================
   Page Intro — luxury door opening effect
   ============================================ */

#page-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: all;
}
#page-intro.door-open .door-left  { transform: translateX(-100%); }
#page-intro.door-open .door-right { transform: translateX(100%); }
#page-intro.door-open .door-logo  { opacity: 0; transform: scale(0.94); }
#page-intro.door-open .dp-handle  { opacity: 0; }
#page-intro.door-done { display: none; }
body.intro-active { overflow: hidden; }

/* ======== DOOR PANELS ======== */
.door-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  /* Deep lacquered finish with subtle directional sheen */
  background:
    linear-gradient(160deg,
      rgba(255,255,255,0.045) 0%,
      rgba(255,255,255,0.01)  25%,
      rgba(0,0,0,0.0)         50%,
      rgba(0,0,0,0.12)        100%),
    #100e0b;
  transition: transform 2.0s cubic-bezier(0.4, 0.05, 0.4, 0.95);
  will-change: transform;
  overflow: hidden;
}
.door-left  { left: 0; }
.door-right { right: 0; }

/* Outer door casing border */
.door-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 8px solid #0a0807;
  outline: 1px solid rgba(201,169,110,0.22);
  outline-offset: -9px;
  pointer-events: none;
  z-index: 1;
}

/* Astragal — overlap strip on left door center edge */
.dp-astragal {
  position: absolute;
  top: 0; right: -1px;
  width: 6px; height: 100%;
  background: linear-gradient(to right, #0d0b09, #181410, #0d0b09);
  box-shadow: 1px 0 0 rgba(201,169,110,0.35), -1px 0 0 rgba(0,0,0,0.6);
  z-index: 2;
}

/* Gold seam / gap line between doors */
.door-left::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(201,169,110,0.5) 8%,
    rgba(201,169,110,0.5) 92%,
    transparent 100%);
  z-index: 3;
}

/* ======== RECESSED PANELS (3 per door) ======== */
.dp-panel {
  position: absolute;
  left: 11%; right: 11%;
  /* Panel surface slightly darker than door */
  background: #0c0a08;
  /* Deep recessed shadow: dark top-left, subtle light bottom-right */
  box-shadow:
    inset  3px  3px  6px rgba(0,0,0,0.75),
    inset -1px -1px  3px rgba(255,255,255,0.06),
    inset  1px  1px  0px rgba(0,0,0,0.9),
    0 0 0 1px rgba(201,169,110,0.16);
}
/* Inner double-line detail on each panel */
.dp-panel::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201,169,110,0.10);
  box-shadow: inset 0 0 0 4px rgba(0,0,0,0.15);
}
.dp-panel::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201,169,110,0.06);
}

/* Top ornamental panel */
.dp-panel-a { top: 6%;    height: 16%; }
/* Main central panel */
.dp-panel-b { top: 26%;   height: 46%; }
/* Bottom ornamental panel */
.dp-panel-c { top: 76.5%; height: 18%; }

/* ======== HINGES ======== */
.dp-hinges {
  position: absolute;
  top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14% 0;
  z-index: 2;
}
/* Left door: hinges on left edge | Right door: hinges on right edge */
.door-left  .dp-hinges { left: 0; }
.door-right .dp-hinges { right: 0; }

.dp-hinge {
  width: 18px; height: 52px;
  border-radius: 2px;
  background: linear-gradient(to right,
    #8a6e3a 0%,
    #d4b46a 30%,
    #e8d095 50%,
    #c9a96e 70%,
    #8a6e3a 100%);
  box-shadow:
    2px 0 4px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.4);
  position: relative;
}
/* Hinge screws */
.dp-hinge::before,
.dp-hinge::after {
  content: '';
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e8d095, #a08147);
  box-shadow: inset 1px 1px 1px rgba(0,0,0,0.5);
}
.dp-hinge::before { top: 8px; }
.dp-hinge::after  { bottom: 8px; }

/* Left door hinges on left edge, right door hinges on right edge */
.door-right .dp-hinge {
  background: linear-gradient(to left,
    #8a6e3a 0%,
    #d4b46a 30%,
    #e8d095 50%,
    #c9a96e 70%,
    #8a6e3a 100%);
  box-shadow: -2px 0 4px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1px 0 rgba(0,0,0,0.4);
}

/* ======== DOOR HANDLE ======== */
.dp-handle {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  display: flex;
  align-items: center;
  transition: opacity 0.5s ease;
  z-index: 2;
}
/* Left door handle on right side (meeting edge) */
.door-left  .dp-handle { right: 7%; flex-direction: row-reverse; }
/* Right door handle on left side (meeting edge) */
.door-right .dp-handle { left: 7%;  flex-direction: row; }

/* Rose / escutcheon plate */
.dp-rose {
  width: 13px; height: 68px;
  border-radius: 6px;
  background: linear-gradient(to right, #8a6e3a, #d4b46a 35%, #e8d095 50%, #c9a96e 65%, #8a6e3a);
  box-shadow:
    1px 2px 6px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -1px 0 rgba(0,0,0,0.4);
  position: relative;
  flex-shrink: 0;
}
/* Keyhole on rose */
.dp-rose::after {
  content: '';
  position: absolute;
  left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  width: 4px; height: 7px;
  border-radius: 2px 2px 0 0;
  background: rgba(0,0,0,0.7);
  box-shadow: 0 4px 0 1px rgba(0,0,0,0.7);
}

/* Lever arm */
.dp-lever {
  width: 52px; height: 9px;
  border-radius: 4px 2px 2px 4px;
  background: linear-gradient(to bottom,
    #d4b46a 0%,
    #e8d095 30%,
    #c9a96e 70%,
    #8a6e3a 100%);
  box-shadow:
    0 3px 6px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.3);
  transform: rotate(-6deg);
  transform-origin: left center;
  margin-left: 2px;
  flex-shrink: 0;
}
/* Right door: lever points RIGHT, free end hangs down-right */
.dp-lever-right {
  transform-origin: left center;
  transform: rotate(-6deg);
  border-radius: 2px 4px 4px 2px;
  margin-left: 3px;
}
/* Left door: lever points LEFT, free end hangs down-left — mirror image */
.dp-lever-left {
  transform-origin: right center;
  transform: rotate(6deg);
  border-radius: 4px 2px 2px 4px;
  margin-right: 3px;
}

/* ======== LOGO CENTERED ======== */
.door-logo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.45s ease 0.05s, transform 0.45s ease 0.05s;
  will-change: opacity, transform;
  z-index: 4;
}
.door-logo-eyebrow {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.door-logo-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7.5vw, 88px);
  line-height: 1.0;
  text-align: center;
  letter-spacing: -0.015em;
  color: var(--fg-on-dark);
}
.door-logo-name em { font-style: italic; color: var(--gold); }
.door-logo-tagline {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-on-dark-2);
  margin-top: 22px;
}

/* ---- Door intro: tablet (≤ 900px) ---- */
@media (max-width: 900px) {
  .dp-panel-a { top: 5%;  height: 13%; }
  .dp-panel-b { top: 22%; height: 50%; }
  .dp-panel-c { top: 77%; height: 18%; }
  .dp-hinge   { width: 14px; height: 40px; }
  .dp-hinges  { padding: 12% 0; }
  .dp-rose    { width: 11px; height: 54px; }
  .dp-lever   { width: 40px; height: 8px; }
  .door-left  .dp-handle { right: 5%; }
  .door-right .dp-handle { left: 5%;  }
}

/* ---- Door intro: mobile (≤ 600px) ---- */
@media (max-width: 600px) {
  /* Stiches on outer edges — hide on very small screens */
  .dp-hinges { display: none; }
  /* Panels slightly wider */
  .dp-panel { left: 6%; right: 6%; }
  .dp-panel-a { top: 4%;  height: 11%; }
  .dp-panel-b { top: 19%; height: 54%; }
  .dp-panel-c { top: 78%; height: 17%; }
  /* Handle closer to edge */
  .door-left  .dp-handle { right: 4%; }
  .door-right .dp-handle { left: 4%;  }
  .dp-rose  { width: 10px; height: 46px; }
  .dp-lever { width: 32px; height: 7px; }
  /* Tagline hidden on small screens */
  .door-logo-tagline { display: none; }
  .door-logo-eyebrow { margin-bottom: 14px; }
}

/* ============================================
   Animation System — scroll-triggered entrance
   ============================================ */

/* Base state: hidden before scroll trigger.
   Editorial reveal — crisp ease-out, subtle blur-in (masks the transition,
   reads as "focusing into place"), tighter than before. */
[data-anim] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-out),
              transform 0.8s var(--ease-out),
              filter 0.8s var(--ease-out);
  will-change: opacity, transform, filter;
}
[data-anim="fade"] {
  transform: none;
  transition: opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out);
}
[data-anim="slide-right"] {
  transform: translateX(-22px);
  transition: opacity 0.8s var(--ease-out),
              transform 0.8s var(--ease-out),
              filter 0.8s var(--ease-out);
}
[data-anim="scale"] {
  transform: scale(0.965) translateY(12px);
  transition: opacity 0.85s var(--ease-out),
              transform 0.85s var(--ease-out),
              filter 0.85s var(--ease-out);
}

/* Visible state */
[data-anim].is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Stagger delays — 70 ms per step (snappier cascade, Emil: 30-80ms) */
[data-anim-delay="1"] { transition-delay: 0.07s; }
[data-anim-delay="2"] { transition-delay: 0.14s; }
[data-anim-delay="3"] { transition-delay: 0.21s; }
[data-anim-delay="4"] { transition-delay: 0.28s; }
[data-anim-delay="5"] { transition-delay: 0.35s; }
[data-anim-delay="6"] { transition-delay: 0.42s; }
[data-anim-delay="7"] { transition-delay: 0.49s; }
[data-anim-delay="8"] { transition-delay: 0.56s; }

/* Reduce motion accessibility — keep opacity/colour, drop movement */
@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  /* No press/lift movement, but colour feedback stays */
  .btn:active,
  .btn-primary:hover,
  .ps-lb-close:active { transform: none !important; }
  .ps-lb-prev:active { transform: translateY(-50%) !important; }
  .ps-lb-next:active { transform: translateY(-50%) !important; }
  /* No image zoom / parallax under reduced motion */
  .detail-card:hover .img,
  .ti-gal-cell:hover img,
  .feature-img:hover { transform: none !important; }
}

/* ----- Hero text entrance (on page load, not scroll) -----
   Refined cascade: blur-in + lift, tighter timing, strong ease-out. */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(26px); filter: blur(8px); }
  to   { opacity: 1; transform: none;            filter: blur(0); }
}
.hero-anim-1 { animation: heroFadeUp 0.85s var(--ease-out) 0.08s both; }
.hero-anim-2 { animation: heroFadeUp 0.90s var(--ease-out) 0.20s both; }
.hero-anim-3 { animation: heroFadeUp 0.90s var(--ease-out) 0.32s both; }
.hero-anim-4 { animation: heroFadeUp 0.85s var(--ease-out) 0.44s both; }
.hero-anim-5 { animation: heroFadeUp 0.95s var(--ease-out) 0.30s both; }
@media (prefers-reduced-motion: reduce) {
  .hero-anim-1,.hero-anim-2,.hero-anim-3,.hero-anim-4,.hero-anim-5 { animation: none; }
}

/* ----- Header scroll compact state ----- */
.site-header {
  transition: height var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              background var(--t-med) var(--ease);
}
.site-header.is-scrolled .header-inner { height: 64px; }
.site-header.is-scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}
.site-header.is-scrolled.on-dark {
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

/* ----- Larger header on desktop (PC only) ----- */
@media (min-width: 901px) {
  .header-inner { height: 104px; padding: 0 var(--sp-7); }
  .logo { font-size: 28px; }
  .logo .small-tag { font-size: 10px; margin-top: 4px; }
  .custom-logo-link img, .logo img { max-height: 64px; width: auto; height: auto; }
  .nav-main { gap: 44px; font-size: 15px; letter-spacing: 0.09em; }
  .nav-main a { padding: 8px 0; }
  .phone-link { font-size: 14px; }
  /* keep a comfortable height when scrolled, just slightly compact */
  .site-header.is-scrolled .header-inner { height: 84px; }
}

/* ----- Variant / Stipiti grids (single product) ----- */
.variant-section .variant-grid {
  display: grid;
  gap: var(--sp-6);
}
.variant-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.variant-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.variant-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.variant-img {
  background-size: cover;
  background-position: center;
  background-color: #fff;
  border: 1px solid var(--line-light);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.variant-card:hover .variant-img {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.variant-label {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--fg-on-light);
  text-align: center;
}
@media (max-width: 900px) {
  .variant-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .variant-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .variant-grid.cols-4,
  .variant-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
}

/* ----- Thumbnail grids (gallery / varianti / soggetti / stipiti / campioni) ----- */
.thumb-grid {
  display: grid;
  gap: var(--sp-5);
}
.thumb-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.thumb-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.thumb-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.thumb-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.thumb-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.thumb-img {
  display: block;
  background-size: cover;
  background-position: center;
  background-color: #fff;
  border: 1px solid var(--line-light);
}
.thumb-img.is-contain {
  background-size: contain;
  background-repeat: no-repeat;
}
.thumb-label {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--fg-on-light);
  text-align: center;
}
/* Only gallery thumbs (lightbox links) lift on hover */
a.thumb-img {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
a.thumb-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}
@media (max-width: 900px) {
  .thumb-grid.cols-6 { grid-template-columns: repeat(4, 1fr); }
  .thumb-grid.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .thumb-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .thumb-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .thumb-grid.cols-6,
  .thumb-grid.cols-5,
  .thumb-grid.cols-4,
  .thumb-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
}

/* ----- Lightbox (gallery zoom) ----- */
.ps-lightbox {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 7, 6, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.ps-lightbox.is-open { opacity: 1; visibility: visible; }
.ps-lb-stage {
  margin: 0;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ps-lb-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.ps-lb-img.is-loaded { opacity: 1; transform: none; }
.ps-lb-cap {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #f4efe6;
}
.ps-lb-count {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(244, 239, 230, 0.7);
}
.ps-lb-close,
.ps-lb-prev,
.ps-lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.4);
  color: #f4efe6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.ps-lb-close:hover,
.ps-lb-prev:hover,
.ps-lb-next:hover {
  background: rgba(201, 169, 110, 0.25);
  border-color: var(--gold);
}
.ps-lb-close:active { transform: scale(0.92); }
.ps-lb-prev:active { transform: translateY(-50%) translateX(-3px) scale(0.92); }
.ps-lb-next:active { transform: translateY(-50%) translateX(3px) scale(0.92); }
.ps-lb-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.ps-lb-prev,
.ps-lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}
.ps-lb-prev { left: 28px; }
.ps-lb-next { right: 28px; }
.ps-lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.ps-lb-next:hover { transform: translateY(-50%) translateX(3px); }
@media (max-width: 600px) {
  .ps-lb-prev { left: 12px; }
  .ps-lb-next { right: 12px; }
  .ps-lb-prev, .ps-lb-next { width: 44px; height: 44px; font-size: 26px; }
  .ps-lb-close { top: 14px; right: 14px; width: 42px; height: 42px; }
}

/* ----- Accordion ("+" toggle) ----- */
.ps-accordion {
  border-top: 1px solid var(--line-light);
}
.ps-acc-item {
  border-bottom: 1px solid var(--line-light);
}
.ps-acc-head {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-on-light);
  transition: color 0.3s var(--ease);
}
.ps-acc-head:hover { color: var(--gold-deep); }
.ps-acc-icon {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
}
.ps-acc-icon::before,
.ps-acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--gold-deep);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.ps-acc-icon::before { width: 18px; height: 2px; transform: translate(-50%, -50%); }
.ps-acc-icon::after  { width: 2px; height: 18px; transform: translate(-50%, -50%); }
.ps-acc-item.is-open .ps-acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.ps-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease);
}
.ps-acc-body-inner {
  padding: 8px 4px 32px;
}
/* ----- Media rows: whole images at uniform row height (no cropping) ----- */
.media-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  align-items: flex-start;
}
.media-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.media-item img {
  display: block;
  width: auto;
  background: #fff;
  border: 1px solid var(--line-light);
}
.media-item figcaption {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-on-light);
  text-align: center;
  font-family: var(--font-display);
}
.media-item a { display: block; }
.media-item a img { display: block; }
/* Height tiers — image keeps its natural ratio, only height is fixed */
.media-row.h-tall img { height: 392px; }   /* tall door variants */
.media-row.h-med  img { height: 240px; }   /* stipiti GIFs */
.media-row.h-sq   img { height: 200px; }   /* square decoro samples */
.media-row.h-sm   img { height: 80px;  }   /* small inserti/sfin GIF diagrams */
@media (max-width: 900px) {
  .media-row.h-tall img { height: 300px; }
  .media-row.h-med  img { height: 200px; }
  .media-row.h-sq   img { height: 160px; }
  .media-row.h-sm   img { height: 70px;  }
}
@media (max-width: 600px) {
  .media-row { gap: var(--sp-4); justify-content: center; }
  .media-row.h-tall img { height: 240px; }
  .media-row.h-med  img { height: 150px; }
  .media-row.h-sq   img { height: 130px; }
  .media-row.h-sm   img { height: 60px;  }
}

/* ----- Product hero (single product): light, whole main image + finish swatch ----- */
.product-hero .hero-media { display: block; }
.product-hero .hero-media img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}
.product-swatch img {
  display: block;
  width: auto;
  max-width: 280px;
  height: auto;
  border: 1px solid var(--line-light);
}
@media (max-width: 900px) {
  .product-hero .ps-2col { grid-template-columns: 1fr !important; gap: 40px !important; }
  .product-swatch img { max-width: 220px; }
}

/* ----- Detail grid — improved spacing ----- */
.detail-grid {
  gap: var(--sp-7); /* 48px instead of 32px */
}
.detail-card.featured {
  grid-column: span 2;
}
.detail-card.featured .img {
  aspect-ratio: 16/10;
}
@media (max-width: 900px) {
  .detail-card.featured { grid-column: span 1; }
  .detail-card.featured .img { aspect-ratio: 4/3; }
}

/* ----- Detail card — refined hover + gold underline ----- */
.detail-card {
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.detail-card h4 {
  font-size: 28px;
  position: relative;
  padding-bottom: 10px;
}
.detail-card h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.detail-card:hover h4::after { transform: scaleX(1); }
.detail-card .body-wrap {
  padding: var(--sp-6);
  gap: 12px;
}

/* ----- Door tabs — pill style ----- */
.door-tabs {
  gap: 8px;
  align-items: center;
}
.door-tab {
  padding: 8px 16px;
  border: 1px solid var(--line-light);
  border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  font-size: 11px;
}
.door-tab:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}
.door-tab.active {
  background: var(--bg-deep);
  color: var(--bg-cream);
  border-color: var(--bg-deep);
  border-bottom-color: var(--bg-deep);
}

/* ----- Product card — homepage tile refinement ----- */
.product-card {
  transition: box-shadow 0.5s var(--ease);
}
.product-card:hover {
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}

/* ============================================
   WordPress integrations & added components
   ============================================ */

/* WhatsApp floating action button */
.ps-wa-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 56px;
	height: 56px;
	background: #25d366;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0,0,0,0.18);
	transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
	z-index: 90;
}
.ps-wa-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 6px 22px rgba(0,0,0,0.22); }
.ps-wa-fab:active { transform: scale(0.95); transition-duration: var(--t-press); }

/* Mobile nav toggle (burger) — hidden on desktop */
.nav-toggle {
	display: none;
	width: 32px;
	height: 32px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	flex-direction: column;
	justify-content: space-between;
}
.nav-toggle span {
	display: block;
	height: 1.5px;
	width: 100%;
	background: var(--fg-on-light);
	transition: transform var(--t-fast) var(--ease), opacity var(--t-fast);
}
.site-header.on-dark .nav-toggle span { background: var(--fg-on-dark); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* FAQ accordion */
.faq-item .faq-question { cursor: pointer; transition: color var(--t-fast); }
.faq-item .faq-question:hover { color: var(--gold-deep); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); display: inline-block; transition: transform var(--t-fast) var(--ease); }
.faq-item .faq-icon { display: inline-block; transition: transform var(--t-fast) var(--ease); }

/* Form notice */
.ps-form-notice {
	padding: 16px 20px;
	margin-bottom: 24px;
	border-left: 3px solid var(--gold);
	background: rgba(201,169,110,0.12);
	color: var(--fg-on-dark);
	font-size: 14px;
	line-height: 1.5;
}
.ps-form-notice.err { border-left-color: #c54a4a; background: rgba(197,74,74,0.12); }

/* WP-injected images inside post content */
.lead img, .body img { max-width: 100%; height: auto; }

/* Pagination */
.nav-links {
	display: flex;
	gap: 12px;
	justify-content: center;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.nav-links a, .nav-links span {
	padding: 8px 14px;
	border: 1px solid var(--line-light);
	color: var(--fg-on-light-2);
}
.nav-links .current { background: var(--bg-deep); color: var(--bg-cream); border-color: var(--bg-deep); }
.nav-links a:hover { color: var(--gold); border-color: var(--gold); }

/* WordPress block editor compat */
.wp-block-image { margin: var(--sp-5) 0; }
.wp-block-image img { display: block; max-width: 100%; height: auto; }
.alignwide  { max-width: 1400px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.aligncenter { display: block; margin: 0 auto; text-align: center; }

/* Responsive 2-col layouts on small screens */
@media (max-width: 900px) {
	.ps-2col { grid-template-columns: 1fr !important; gap: 40px !important; }
	.ps-3col { grid-template-columns: 1fr 1fr !important; }
	.intro-grid, .ecobonus-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
	/* Reduce section spacing on tablet */
	.section { padding: var(--sp-8) 0; }
	.ecobonus-band { padding: var(--sp-8) 0; }
	.nav-toggle { display: flex; }
	.nav-main {
		position: absolute;
		top: 80px;
		left: 0;
		right: 0;
		flex-direction: column;
		background: var(--bg-deep);
		padding: 8px 0 16px;
		gap: 0;
		border-bottom: 1px solid var(--line-dark);
		box-shadow: 0 8px 32px rgba(0,0,0,0.18);
		display: none;
		z-index: 100;
	}
	.nav-main.is-open { display: flex; }
	.nav-main a {
		padding: 14px var(--sp-6);
		font-size: 15px;
		letter-spacing: 0.06em;
		border-bottom: 1px solid var(--line-dark);
		color: var(--fg-on-dark);
	}
	.nav-main a:last-child { border-bottom: none; }
	.nav-main a.active { color: var(--gold); }
	.nav-main a:hover { color: var(--gold); background: rgba(201,169,110,0.05); }
	.site-header.on-dark .nav-main { background: var(--bg-deep); }
}
@media (max-width: 600px) {
	.ps-3col { grid-template-columns: 1fr !important; }
	.hero { min-height: 70vh; }
	.hero-meta { display: none; }
	.product-card.tall, .product-card.med, .product-card.wide { grid-column: span 12; aspect-ratio: 4/3; }
	.stats { grid-template-columns: 1fr; }

	/* Reduce section spacing on mobile */
	.section { padding: var(--sp-7) 0; }
	.ecobonus-band { padding: var(--sp-7) 0; }

	/* Logo: ascunde orasele pe telefon */
	.logo .small-tag { display: none; }

	/* Telefon: doar iconita mai mare, fara numarul */
	.phone-text { display: none; }
	.phone-link {
		width: 40px; height: 40px;
		justify-content: center;
		border: 1px solid var(--line-dark);
		border-radius: 50%;
		padding: 0;
	}
	.phone-link svg { width: 18px; height: 18px; }
	.site-header.on-dark .phone-link { border-color: var(--line-dark); }

	/* Header: ascunde butonul "Preventivo" — ramane iconita + hamburger */
	.header-cta .btn { display: none; }

	/* Single product: ascunde randul Dimensioni (label + valoare) pe telefon */
	.spec-row-dimensioni,
	.spec-row[data-spec-key="dimensioni"] { display: none !important; }
}

/* ============================================================
   Tecnoporte 1:1 imported product layout (".tp") — their
   structure, our brand skin (gold/black/paper, Cormorant+Inter)
   ============================================================ */
.tp-sec{padding:84px 0}
.tp-sec.is-deep{background:var(--bg-deep);color:#f3ede1}
.tp-sec.is-paper{background:var(--bg-paper);color:#1a1a1a}
.tp-sec.is-continuation{padding-top:0}
.tp-inner{max-width:1280px;margin:0 auto;padding:0 40px}
.tp-row{display:flex;flex-wrap:wrap;gap:32px 26px;justify-content:flex-start;align-items:flex-start}
.tp-row.tp-hero{align-items:flex-start;gap:64px;flex-wrap:nowrap}
.tp-col{display:flex;flex-direction:column;gap:14px;align-items:flex-start;min-width:0;overflow-wrap:anywhere}
.tp-title{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:clamp(48px,6vw,76px);line-height:1.02;margin:0;text-align:left}
.tp-finish{font-size:18px;letter-spacing:.04em;opacity:.85;font-weight:300;margin:0;text-align:left}
.tp-h2{font-family:'Cormorant Garamond',serif;font-weight:500;font-size:clamp(26px,3.4vw,36px);text-align:left;width:100%;margin:0}
.tp-eyebrow{font-size:13px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);text-align:left;width:100%;font-weight:500}
.tp-label{font-size:12px;letter-spacing:.13em;text-transform:uppercase;opacity:.7;text-align:left;line-height:1.35}
.tp-img{display:block;margin:0}
.tp-imgrow{display:flex;flex-wrap:wrap;gap:18px 16px;justify-content:flex-start;align-items:flex-start;width:100%}
.tp-acc-body .tp-imgrow .tp-cell img.tp-img{max-height:152px;width:auto!important;height:auto!important}
.tp-gal-photos{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;width:100%}
.tp-gal-photos .tp-cell{width:100%}
.tp-gal-photos .tp-cell img.tp-img{width:100%!important;height:auto!important;aspect-ratio:291/207;object-fit:cover}
.tp-gal-var{display:flex;flex-wrap:wrap;gap:24px;justify-content:flex-start;width:100%}
.tp-gal-var .tp-cell img.tp-img{width:179px;height:394px}
.tp-cell{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0}
.tp .lightbox-link{cursor:zoom-in;display:block}
.tp-acc{width:100%}
.tp-acc-title{display:flex;align-items:center;gap:18px;width:100%;border:0;border-top:1px solid rgba(201,169,110,.3);background:none;padding:22px 0;margin:0;font-size:13px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);cursor:pointer;font-family:inherit}
.tp-acc-title span{flex:1;text-align:left}
.tp-plus{position:relative;width:18px;height:18px;flex:0 0 18px}
.tp-plus::before,.tp-plus::after{content:'';position:absolute;background:var(--gold);transition:opacity .3s var(--ease),transform .3s var(--ease)}
.tp-plus::before{left:0;top:8px;width:18px;height:2px}
.tp-plus::after{left:8px;top:0;width:2px;height:18px;opacity:0}
.tp-acc.is-closed .tp-plus::after{opacity:1}
.tp-acc-body{overflow:hidden;max-height:6000px;transition:max-height .55s var(--ease);padding-top:24px}
.tp-acc.is-closed .tp-acc-body{max-height:0;padding-top:0}
@media (max-width:900px){
  .tp-sec{padding:56px 0}
  .tp-inner{padding:0 22px}
  .tp-row.tp-hero{flex-wrap:wrap;gap:32px}
  .tp-title{font-size:clamp(40px,9vw,56px)}
}
@media (max-width:600px){
  .tp-sec{padding:44px 0}
  .tp-row{gap:22px}
  .tp-img[style*="392px"]{height:280px!important}
}

/* ── Istinto collection — mirrors the Materica (.tp) layout exactly ────── */
.ti{width:100%}
.ti-sec{padding:84px 0}                          /* = .tp-sec */
.ti-sec.is-deep{background:var(--bg-deep);color:#f3ede1}
.ti-sec.is-paper{background:var(--bg-paper);color:#1a1a1a}
.ti-sec.is-continuation{padding-top:0}
.ti-inner{max-width:1280px;margin:0 auto;padding:0 40px}        /* = .tp-inner */
/* wider so VETRI shows 6 per row */
.ti-inner-wide{max-width:1480px;margin:0 auto;padding:0 40px}

/* Hero: title/subtitle left, big door photo right (= .tp-row.tp-hero) */
.ti-hero{display:flex;flex-wrap:nowrap;gap:64px;align-items:flex-start}
.ti-hero-text{flex:1 1 0;min-width:0}
.ti-hero-photo{flex:0 0 50%;min-width:0}
.ti-hero-img{width:100%;height:auto;display:block}
.ti-h1{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:clamp(48px,6vw,76px);line-height:1.02;margin:0 0 22px}
.ti-sub{font-size:18px;letter-spacing:.04em;opacity:.85;font-weight:300;line-height:1.6;margin:0;max-width:42ch}

/* Gallery: 4-per-row grid (= .tp-gal-photos) */
.ti-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;width:100%}
.ti-gal-cell{margin:0}
.ti-gal-img{width:100%;height:auto;aspect-ratio:291/207;object-fit:cover;display:block}

/* Eyebrow heading (gold, = .tp-eyebrow) */
.ti-eyebrow{font-size:13px;letter-spacing:.24em;text-transform:uppercase;color:var(--gold);font-weight:500;margin:0 0 30px;width:100%}

/* Varianti: tall door images (= .tp-gal-var, 179×394) */
.ti-var-grid{display:flex;flex-wrap:wrap;gap:24px;width:100%}
.ti-var-cell{display:flex;flex-direction:column;align-items:center;gap:10px;margin:0}
.ti-var-img{width:179px;height:394px;object-fit:cover;display:block}
.ti-var-label{font-size:12px;letter-spacing:.13em;text-transform:uppercase;opacity:.7}

/* Inserti + Sfinestrature side by side */
.ti-is-row{display:flex;flex-wrap:wrap;gap:64px}
.ti-is-col{flex:1 1 360px;min-width:0}
.ti-gif-grid{display:flex;flex-wrap:wrap;gap:16px;margin-top:6px}
.ti-gif-cell{margin:0}

/* Caratteristiche */
.ti-carat-title{font-family:'Cormorant Garamond',serif;font-weight:500;font-size:clamp(26px,3.4vw,36px);margin:0 0 18px}
.ti-camp-cell{flex-direction:column;align-items:flex-start;gap:8px}
.ti-camp-imgs{display:flex;gap:8px}

@media(max-width:900px){
  .ti-sec{padding:56px 0}
  .ti-inner,.ti-inner-wide{padding:0 22px}
  .ti-hero{flex-wrap:wrap;gap:32px}
  .ti-hero-photo{flex:1 1 100%}
  .ti-gallery{grid-template-columns:repeat(3,1fr)}
  .ti-is-row{gap:40px}
}
@media(max-width:600px){
  .ti-sec{padding:44px 0}
  .ti-gallery{grid-template-columns:repeat(2,1fr)}
  .ti-var-img{width:140px;height:308px}
}

/* ── Sfinestrate model grid ───────────────────────────────────────────── */
.sf-grid .ti-var-img{background:#fff}
.sf-grid-cell a{transition:transform var(--t-press) var(--ease-out),opacity var(--t-fast) var(--ease)}
@media (hover:hover) and (pointer:fine){
  .sf-grid-cell a:hover{transform:translateY(-3px)}
  .sf-grid-cell:not(.is-current) a:hover{opacity:1}
  .sf-grid-cell a{opacity:.82}
  .sf-grid-cell a:hover{opacity:1}
}
.sf-grid-cell a:active{transform:scale(0.97)}
/* current model stands out */
.sf-grid-cell.is-current .ti-var-img{outline:2px solid var(--gold);outline-offset:3px}
.sf-grid-cell.is-current .ti-var-label{color:var(--gold)}

/* ── Filomuro: opening directions + dimension diagrams ────────────────── */
.fm-apert-grid{display:flex;flex-wrap:wrap;gap:36px}
.fm-apert-cell{display:flex;flex-direction:column;align-items:center;gap:12px;margin:0}
.fm-apert-cell img{width:300px;max-width:100%;height:auto;display:block;background:#fff}
.fm-spec-grid{display:flex;flex-wrap:wrap;gap:40px;align-items:flex-start}
.fm-spec-cell{margin:0}
.fm-spec-cell img{max-width:360px;width:100%;height:auto;display:block;background:#fff;padding:12px}
@media(max-width:600px){
  .fm-apert-grid{gap:24px;justify-content:center}
  .fm-apert-cell img{width:240px}
}

/* ── Cristallo: versions, swatches, accordion grids ───────────────────── */
.cr-version-grid{display:flex;flex-wrap:wrap;gap:48px}
.cr-version-cell{display:flex;flex-direction:column;align-items:center;gap:14px;margin:0}
.cr-version-cell img{width:300px;max-width:100%;height:auto;display:block;background:#fff}
.cr-swatch-grid{display:flex;flex-wrap:wrap;gap:22px}
.cr-swatch-cell{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;width:150px}
.cr-swatch-cell img{width:150px;height:150px;object-fit:cover;display:block;background:#fff}
@media(max-width:600px){
  .cr-version-grid{gap:24px;justify-content:center}
  .cr-version-cell img{width:160px}
  .cr-swatch-cell,.cr-swatch-cell img{width:120px}
  .cr-swatch-cell img{height:120px}
}

/* ── Compatta (porta a libro) ─────────────────────────────────────────── */
/* Compare: intro text + 2 ingombri images side by side */
.cp-cmp-wrap{display:grid;grid-template-columns:0.9fr 1.1fr;gap:56px;align-items:center}
.cp-cmp-text .ti-sub{margin-top:14px}
.cp-cmp-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.cp-cmp-cell{margin:0}
.cp-cmp-cell img{width:100%;height:auto;display:block}
.cp-cmp-cap{font-size:13px;color:var(--fg-on-dark-2);margin-top:12px}
/* Version cards (180 / 90) */
.cp-ver-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.cp-ver-card{display:grid;grid-template-columns:1fr 0.9fr;gap:24px;align-items:center;background:#fff;padding:36px;border:1px solid var(--line-light)}
.cp-ver-title{font-family:'Cormorant Garamond',serif;font-weight:600;font-size:30px;color:var(--gold-deep);margin:0 0 16px}
.cp-ver-desc{font-size:15px;line-height:1.6;color:var(--fg-on-light-2);margin:0}
.cp-ver-img img{width:100%;height:auto;display:block}
/* Kits: head (text + diagram) + 3 cards */
.cp-kit-head{display:grid;grid-template-columns:1.4fr 1fr;gap:48px;align-items:center;margin-bottom:48px}
.cp-kit-diagram img{width:100%;height:auto;display:block}
.cp-kit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.cp-kit-card img{width:100%;height:auto;display:block;margin-bottom:16px}
.cp-kit-title{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--fg-on-light);margin:0 0 8px}
.cp-kit-desc{font-size:14px;line-height:1.55;color:var(--fg-on-light-2);margin:0}
.cp-kit-note{font-size:12px;color:var(--gold-deep);margin-top:28px;font-style:italic}
@media(max-width:900px){
  .cp-cmp-wrap{grid-template-columns:1fr;gap:32px}
  .cp-ver-grid{grid-template-columns:1fr}
  .cp-kit-head{grid-template-columns:1fr;gap:28px}
  .cp-kit-grid{grid-template-columns:1fr;gap:36px}
}

/* ============================================================
   Premium editorial polish — image zoom-in-frame + animated
   underlines. All movement gated to true-hover devices.
   ============================================================ */

/* Clip the zoom inside each frame */
.detail-card{overflow:hidden}
.detail-card .img{transition:transform 0.7s var(--ease-out),filter 0.7s var(--ease)}
.ti-gal-cell,.cr-swatch-cell,.cr-version-cell,.sf-grid-cell,.ti-var-cell,.cp-cmp-cell,.cp-kit-card{overflow:hidden}
.ti-gal-cell img,.cp-cmp-cell img{transition:transform 0.75s var(--ease-out)}

@media (hover:hover) and (pointer:fine){
  /* Door / product cards: gentle background zoom while the card lifts */
  .detail-card:hover .img{transform:scale(1.045)}
  /* Photo galleries: image breathes within its frame */
  .ti-gal-cell:hover img,
  .cp-cmp-cell:hover img{transform:scale(1.06)}
  /* Lightbox-linked door photo in hero */
  .ti-hero-photo .lightbox-link{overflow:hidden;display:block}
  .ti-hero-photo img{transition:transform 0.8s var(--ease-out)}
  .ti-hero-photo:hover img{transform:scale(1.03)}
}

/* Animated nav underline (grows from left) */
.nav-main a{position:relative}
.nav-main a::after{
  content:'';position:absolute;left:0;bottom:-3px;height:1px;width:100%;
  background:var(--gold);transform:scaleX(0);transform-origin:left center;
  transition:transform 0.4s var(--ease-out);
}
.nav-main a.active::after{transform:scaleX(1)}
@media (hover:hover) and (pointer:fine){
  .nav-main a:hover::after{transform:scaleX(1)}
}

/* Animated footer-link underline */
.footer-col a{position:relative;display:inline-block}
.footer-col a::after{
  content:'';position:absolute;left:0;bottom:-1px;height:1px;width:100%;
  background:var(--gold);transform:scaleX(0);transform-origin:left center;
  transition:transform 0.35s var(--ease-out);
}
@media (hover:hover) and (pointer:fine){
  .footer-col a:hover{color:var(--gold)}
  .footer-col a:hover::after{transform:scaleX(1)}
}

@media (prefers-reduced-motion:reduce){
  .detail-card:hover .img,
  .ti-gal-cell:hover img,
  .cp-cmp-cell:hover img,
  .ti-hero-photo:hover img{transform:none !important}
}

/* ── ADF infisso (PVC window) page ────────────────────────────────────── */
/* Hero: text left, cross-section photo right (2 columns) */
.adf-hero{display:flex;gap:64px;align-items:center}
.adf-hero-text{flex:1 1 0;min-width:0}
.adf-hero-photo{flex:0 0 52%;min-width:0}
.adf-hero-sub{font-family:'Cormorant Garamond',serif;font-style:italic;font-size:clamp(20px,2.4vw,26px);color:var(--gold-deep);margin:6px 0 18px}
.adf-hero-img{width:100%;height:auto;display:block;object-fit:contain}
/* Benefits — dark band, 4-col grid */
.adf-benefits .adf-benefit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line-dark);border:1px solid var(--line-dark)}
.adf-benefit{background:var(--bg-deep);padding:24px}
.adf-benefit-k{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-bottom:8px}
.adf-benefit-v{font-size:14px;line-height:1.5;color:var(--fg-on-dark-2)}
/* Feature rows — alternating text / image */
.adf-feature{padding:64px 0}
.adf-feature-row{display:grid;grid-template-columns:0.9fr 1.1fr;gap:64px;align-items:center}
.adf-feature.adf-feature-rev .adf-feature-row{grid-template-columns:1.1fr 0.9fr}
.adf-feature.adf-feature-rev .adf-feature-text{order:2}
.adf-feature.adf-feature-rev .adf-feature-img{order:1}
.adf-feature-lead{font-family:'Cormorant Garamond',serif;font-size:24px;color:var(--fg-on-light);margin:12px 0 0}
.adf-feature-desc{font-size:16px;line-height:1.7;color:var(--fg-on-light-2);margin-top:14px;max-width:46ch}
.adf-feature-img img{width:100%;height:auto;display:block}
/* Text-only intro feature (no image) */
.adf-intro-block{max-width:760px}
.adf-intro-block .adf-feature-desc{font-size:17px;max-width:none}
/* Icon feature sections (Comfort, Sicurezza…) — small centred icon, not a stretched image */
.adf-feature-icon .adf-feature-row{grid-template-columns:0.7fr 0.3fr;gap:48px;align-items:center}
.adf-feature-icon.adf-feature-rev .adf-feature-row{grid-template-columns:0.3fr 0.7fr}
.adf-feature-icon .adf-feature-img{display:flex;justify-content:center}
.adf-feature-icon .adf-feature-img img{max-width:140px;width:auto;height:auto}
/* Numbered ferramenta parts list */
.adf-list{margin:20px 0 0;padding:0;list-style:none;columns:2;column-gap:32px}
.adf-list li{counter-increment:adfli;font-size:14px;line-height:1.5;color:var(--fg-on-light-2);padding:6px 0 6px 30px;position:relative;break-inside:avoid}
.adf-list li::before{content:counter(adfli);position:absolute;left:0;top:6px;font-family:'Cormorant Garamond',serif;font-style:italic;color:var(--gold-deep);font-size:15px}
.adf-list{counter-reset:adfli}
/* Grids — dettagli (6, captions) + maniglie (12, labels) */
.adf-gridsec{padding:64px 0}
.adf-grid-head{max-width:680px;margin-bottom:40px}
.adf-grid{display:grid;gap:24px}
.adf-grid-3{grid-template-columns:repeat(3,1fr)}
.adf-grid-4{grid-template-columns:repeat(4,1fr)}
.adf-grid-cell{margin:0}
.adf-grid-cell a{overflow:hidden;display:block}
.adf-grid-cell img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block;transition:transform .7s var(--ease-out)}
.adf-grid-cap{font-size:13px;line-height:1.45;color:var(--fg-on-light-2);margin-top:12px}
@media (hover:hover) and (pointer:fine){
  .adf-grid-cell:hover img{transform:scale(1.05)}
}
@media(max-width:900px){
  .adf-benefits .adf-benefit-grid{grid-template-columns:repeat(2,1fr)}
  .adf-hero{flex-wrap:wrap;gap:32px}
  .adf-hero-photo{flex:1 1 100%}
  .adf-feature-row{grid-template-columns:1fr;gap:28px}
  .adf-feature.adf-feature-rev .adf-feature-text{order:0}
  .adf-feature.adf-feature-rev .adf-feature-img{order:0}
  .adf-grid-3,.adf-grid-4{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .adf-list{columns:1}
  .adf-grid{gap:14px}
}
