/*
 * ═══════════════════════════════════════════════════════════════
 * IDEALUGANO — Premium Child Theme CSS
 * Idea Lugano — Atelier artigianale, Lugano
 * Version: 1.0.0
 * ═══════════════════════════════════════════════════════════════
 */

/* ─────────────────────────────────────────────
   0. CUSTOM PROPERTIES
   ───────────────────────────────────────────── */
:root {
  /* Palette */
  --idea-cream:        #F7F3EA;
  --idea-cream-light:  #FBF8F1;
  --idea-cream-warm:   #F0EBE0;
  --idea-petrol:       #052D3A;
  --idea-petrol-dark:  #003241;
  --idea-petrol-mid:   #0A4052;
  --idea-gold:         #A98242;
  --idea-gold-light:   #B89356;
  --idea-gold-faint:   #C9A96C;
  --idea-green-dark:   #2D3A2F;
  --idea-black:        #1F1F1F;
  --idea-grey:         #6F6A60;
  --idea-grey-light:   #9B9588;
  --idea-white:        #FFFDF8;
  --idea-border:       rgba(169, 130, 66, 0.18);

  /* Typography */
  --font-serif:  'Cormorant', Georgia, 'Times New Roman', serif;
  --font-sans:   'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid sizes */
  --h1-size:     clamp(2.75rem, 6vw + 1rem, 6.875rem);
  --h2-size:     clamp(2rem, 4vw + 0.5rem, 4.5rem);
  --h3-size:     clamp(1.5rem, 2.5vw + 0.25rem, 2.25rem);
  --h4-size:     clamp(1.25rem, 1.5vw + 0.25rem, 1.5rem);
  --body-size:   1.0625rem;
  --small-size:  0.875rem;
  --caption-size:0.8125rem;

  /* Spacing */
  --section-pad:  clamp(4rem, 8vw, 8rem);
  --section-gap:  clamp(2rem, 4vw, 4rem);
  --container-max: 1400px;
  --container-narrow: 900px;
  --gutter:       clamp(1.25rem, 3vw, 2.5rem);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow:  0.9s var(--ease-out-expo);
  --transition-med:   0.6s var(--ease-out-expo);
  --transition-fast:  0.35s var(--ease-out-quart);

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(31, 31, 31, 0.04);
  --shadow-md:   0 8px 30px rgba(31, 31, 31, 0.07);
  --shadow-lg:   0 20px 60px rgba(31, 31, 31, 0.1);
  --shadow-gold: 0 4px 20px rgba(169, 130, 66, 0.12);

  /* Borders */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
}


/* ─────────────────────────────────────────────
   1. BASE RESET & GLOBALS
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* clip prevents horizontal bleed without creating the scroll container that
     breaks position:sticky in the cinematic scenes. */
  overflow-x: clip;
  scrollbar-width: none;
}

/* ── ScrollSmoother active state ──
   Native smooth anchor scrolling would double-ease on top of the smoother,
   and CSS sticky cannot work inside the transformed #smooth-content — the
   smoother module re-pins those stages with ScrollTrigger instead. */
html.idea-smooth-active {
  scroll-behavior: auto;
}
html.idea-smooth-active .idea-signature__stage,
html.idea-smooth-active .idea-curtains-story__stage {
  position: relative;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  font-family: var(--font-sans);
  font-size: var(--body-size);
  line-height: 1.7;
  color: var(--idea-black);
  background-color: var(--idea-cream-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Hide parent theme defaults we override */
body .animated-bg,
body .shape-wrapper,
body .animated-bg__shape {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Images still downloading stay hidden and fade in on load (img-fade.js) —
   !important so it also wins over GSAP inline opacity while pending */
img.idea-img-pending {
  opacity: 0 !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

ul, ol { list-style: none; }

::selection {
  background-color: var(--idea-gold);
  color: var(--idea-white);
}


/* ─────────────────────────────────────────────
   2. TYPOGRAPHY
   ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  color: var(--idea-petrol);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }

.idea-eyebrow {
  font-family: var(--font-sans);
  font-size: var(--caption-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--idea-gold);
  margin-bottom: 1rem;
  display: block;
}

.idea-lead {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.6;
  color: var(--idea-grey);
  max-width: 640px;
}

/* Decorative giant word */
.idea-deco-word {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 15vw, 14rem);
  font-weight: 300;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--idea-border);
  line-height: 0.85;
  user-select: none;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
  z-index: 0;
}

/* Gold line separator */
.idea-gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--idea-gold), var(--idea-gold-faint));
  border: none;
  margin: 1.5rem 0;
}

.idea-gold-line--center {
  margin-left: auto;
  margin-right: auto;
}


/* ─────────────────────────────────────────────
   3. LAYOUT
   ───────────────────────────────────────────── */
.idea-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.idea-container--narrow {
  max-width: var(--container-narrow);
}

.idea-section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.idea-section--cream { background-color: var(--idea-cream); }
.idea-section--white { background-color: var(--idea-white); }
.idea-section--petrol {
  background-color: var(--idea-petrol);
  color: var(--idea-cream-light);
}
.idea-section--petrol h2,
.idea-section--petrol h3,
.idea-section--petrol h4 {
  color: var(--idea-cream-light);
}
.idea-section--petrol .idea-eyebrow { color: var(--idea-gold-light); }
.idea-section--petrol .idea-lead { color: rgba(247, 243, 234, 0.7); }

/* Final CTA on inner pages: keep the footer closer and reduce dead scroll. */
main.site-main > .idea-section--petrol:last-child {
  padding-top: clamp(3.75rem, 5vw, 5rem);
  padding-bottom: clamp(3.75rem, 5vw, 5rem);
}

.idea-text-center { text-align: center; }
.idea-mx-auto { margin-left: auto; margin-right: auto; }

.idea-grid {
  display: grid;
  gap: var(--section-gap);
}

.idea-grid--2 { grid-template-columns: repeat(2, 1fr); }
.idea-grid--3 { grid-template-columns: repeat(3, 1fr); }
.idea-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .idea-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .idea-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .idea-grid--4,
  .idea-grid--3,
  .idea-grid--2 { grid-template-columns: 1fr; }
}


/* ─────────────────────────────────────────────
   4. BUTTONS
   ───────────────────────────────────────────── */
.idea-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--small-size);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2.25rem;
  border-radius: 0;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
}

.idea-btn--primary {
  background-color: var(--idea-petrol);
  color: var(--idea-cream-light);
  border: 1px solid var(--idea-petrol);
}
.idea-btn--primary:hover {
  background-color: var(--idea-petrol-mid);
  color: var(--idea-cream-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.idea-btn--ghost {
  background-color: transparent;
  color: var(--idea-petrol);
  border: 1px solid var(--idea-petrol);
}
.idea-btn--ghost:hover {
  background-color: var(--idea-petrol);
  color: var(--idea-cream-light);
  transform: translateY(-2px);
}

.idea-btn--gold,
#primary button.idea-btn--gold,
#primary input[type="submit"].idea-btn--gold,
.idea-form button.idea-btn--gold {
  background-color: var(--idea-gold) !important;
  color: var(--idea-white) !important;
  border: 1px solid var(--idea-gold) !important;
}
.idea-btn--gold:hover,
#primary button.idea-btn--gold:hover,
#primary input[type="submit"].idea-btn--gold:hover,
.idea-form button.idea-btn--gold:hover {
  background-color: var(--idea-gold-light) !important;
  color: var(--idea-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Text link with underline animation */
.idea-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: var(--small-size);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--idea-gold);
  position: relative;
}
.idea-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--idea-gold);
  transition: width var(--transition-med);
}
.idea-link:hover::after { width: 100%; }
.idea-link:hover { color: var(--idea-gold-light); }

.idea-link__arrow {
  transition: transform var(--transition-fast);
  display: inline-block;
}
.idea-link:hover .idea-link__arrow {
  transform: translateX(4px);
}


/* ─────────────────────────────────────────────
   5. HEADER — 3-column: Left nav | Center logo | Right nav
   ───────────────────────────────────────────── */
.idea-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  /* explicit properties: `all` also animated backdrop-filter, forcing the
     backdrop to re-blur on every frame of the toggle transition */
  transition: background-color var(--transition-med),
              padding var(--transition-med),
              box-shadow var(--transition-med),
              color var(--transition-med);
  background: transparent;
}

.idea-header.scrolled {
  background: rgba(251, 248, 241, 0.95);
  /* at 95% opaque background a 12px blur is visually identical to 20px,
     at a fraction of the per-scroll-frame backdrop sampling cost */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--idea-border);
  padding: 0.6rem 0;
}

.idea-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Left nav ── */
.idea-header__nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-self: start;
}

/* ── Center logo ── */
.idea-header__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  z-index: 1001;
  justify-self: center;
}

.idea-header__logo-img {
  height: 52px;
  width: auto;
  transition: height var(--transition-fast);
}
.idea-header.scrolled .idea-header__logo-img {
  height: 36px;
}

/* Monogram circle */
.idea-header__logo-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--idea-petrol);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--idea-petrol);
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}
.idea-header.scrolled .idea-header__logo-monogram {
  width: 30px;
  height: 30px;
  font-size: 0.7rem;
}

/* Brand name under monogram */
.idea-header__logo-brand {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--idea-petrol);
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.idea-header.scrolled .idea-header__logo-brand {
  font-size: 0.55rem;
}

/* ── Right nav + icons ── */
.idea-header__nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-self: end;
}
.idea-header__nav-right nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ── Nav links (shared) ── */
.idea-nav__link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--idea-petrol);
  position: relative;
  padding: 0.25rem 0;
  letter-spacing: 0.03em;
  transition: color var(--transition-fast);
}
.idea-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--idea-gold);
  transition: width var(--transition-med);
}
.idea-nav__link:hover::after,
.idea-nav__link.active::after {
  width: 100%;
}
.idea-nav__link:hover {
  color: var(--idea-gold);
}

/* ── On hero: white text ── */
body.idea-hero-visible .idea-header:not(.scrolled) .idea-nav__link,
body.idea-hero-visible .idea-header:not(.scrolled) .idea-header__logo-brand {
  color: var(--idea-white) !important;
}
body.idea-hero-visible .idea-header:not(.scrolled) .idea-header__logo-monogram {
  color: var(--idea-white) !important;
  border-color: var(--idea-white) !important;
}
body.idea-hero-visible .idea-header:not(.scrolled) .idea-nav__link::after {
  background-color: var(--idea-gold-light);
}
body.idea-hero-visible .idea-header:not(.scrolled) .idea-hamburger span {
  background-color: var(--idea-white);
}

/* ── Hamburger ── */
.idea-hamburger {
  display: none;
  width: 28px;
  height: 18px;
  position: relative;
  z-index: 1001;
  cursor: pointer;
  flex-shrink: 0;
}
/* Two-stage morph: closing lines first gather to the center, THEN rotate
   into the X; on the way back the X un-rotates first, then the lines part.
   Delays orchestrate the stages — minimal, no bounce. */
.idea-hamburger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--idea-petrol);
  transition:
    top 0.22s ease 0.18s,
    bottom 0.22s ease 0.18s,
    transform 0.26s var(--ease-out-quart) 0s,
    opacity 0.15s ease 0.2s,
    background-color var(--transition-fast);
}
.idea-hamburger span:nth-child(1) { top: 0; }
.idea-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.idea-hamburger span:nth-child(3) { bottom: 0; }

.idea-hamburger.active span {
  transition:
    top 0.22s ease 0s,
    bottom 0.22s ease 0s,
    transform 0.3s var(--ease-out-quart) 0.2s,
    opacity 0.12s ease 0.08s,
    background-color var(--transition-fast);
}
.idea-hamburger.active span:nth-child(1) {
  top: 50%; transform: translateY(-50%) rotate(45deg);
}
.idea-hamburger.active span:nth-child(2) { opacity: 0; }
.idea-hamburger.active span:nth-child(3) {
  bottom: 50%; transform: translateY(50%) rotate(-45deg);
}

/* With the menu open the header rises above the overlay, so the hamburger
   itself becomes the elegant X that closes it — petrol on cream, always */
body.idea-menu-open .idea-header { z-index: 1200; }
body.idea-menu-open .idea-header .idea-hamburger span {
  background-color: var(--idea-petrol);
}
/* The overlay's own close button is redundant now */
.idea-mobile-menu__close { display: none !important; }

@media (max-width: 1024px) {
  .idea-header__nav-left { display: none; }
  .idea-header__nav-right nav { display: none; }
  .idea-hamburger { display: block; }
  /* Two columns: logo left, hamburger right */
  .idea-header__inner {
    grid-template-columns: auto 1fr;
  }
  .idea-header__logo {
    justify-self: start;
  }
  .idea-header__nav-right {
    justify-self: end;
  }
}


/* ─────────────────────────────────────────────
   6. MOBILE MENU OVERLAY
   ───────────────────────────────────────────── */
.idea-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(251, 248, 241, 0.98);
  /* at 98% opaque background the blur radius is imperceptible — keep it
     small so opening the menu doesn't pay a full-screen 30px blur */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all var(--transition-med);
}

.idea-mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.idea-mobile-menu__close {
  position: absolute;
  top: max(1.5rem, env(safe-area-inset-top));
  right: max(1.5rem, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  border: 1px solid rgba(5, 45, 58, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  z-index: 1101;
  pointer-events: auto;
}
.idea-mobile-menu__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: var(--idea-petrol);
}
.idea-mobile-menu__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.idea-mobile-menu__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.idea-mobile-menu__close:hover { border-color: var(--idea-gold); background: var(--idea-white); }

.idea-mobile-menu__link {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  color: var(--idea-petrol);
  transition: color var(--transition-fast);
  opacity: 0;
  transform: translateY(20px);
}
.idea-mobile-menu.open .idea-mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger animation */
.idea-mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.idea-mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.idea-mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.idea-mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.idea-mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }
.idea-mobile-menu__link:nth-child(6) { transition-delay: 0.35s; }
.idea-mobile-menu__link:nth-child(7) { transition-delay: 0.4s; }

.idea-mobile-menu__link:hover { color: var(--idea-gold); }

.idea-mobile-menu__cta {
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-med) 0.45s;
}
.idea-mobile-menu.open .idea-mobile-menu__cta {
  opacity: 1;
  transform: translateY(0);
}


/* ─────────────────────────────────────────────
   7. CURTAIN INTRO
   ───────────────────────────────────────────── */

/* Scroll lock during intro */
html.curtain-active,
body.curtain-active {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none;
  touch-action: none;
}

.curtain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  /* No opaque backdrop: the sheer fabric lets the site show through */
  background-color: transparent;
}

/* Soft scrim behind the sheer fabric — thins out as the curtains open (JS-driven) */
.curtain-overlay__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgba(5, 45, 58, 0.32);
  opacity: 1;
}


/* Frosted-glass layers: gaussian blur of everything behind the fabric,
   clipped per-frame to each curtain's live wavy shape (JS-driven clip-path) */
.curtain-overlay__blur {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  /* blur only — the saturate() pass doubled the backdrop work for an
     imperceptible difference */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: clip-path;
  transform: translateZ(0);
}
.curtain-overlay.reduced .curtain-overlay__blur { display: none; }

/* Full-viewport SVG — the fabric paths are drawn per-frame by curtain-intro.js */
.curtain-overlay__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: block;
  /* NOTE: no will-change here — `will-change: contents` disables the
     browser's subtree paint caching and made every frame more expensive */
}

/* Logo sits BEHIND the fabric — faintly visible through it, revealed on open */
.curtain-overlay__logo {
  position: relative;
  z-index: 5;
  opacity: 1;
  transform: scale(1);
}
.curtain-overlay__logo-img {
  display: block;
  width: clamp(150px, 16vw, 230px);
  height: auto;
  border-radius: 50%;
}
.curtain-overlay__logo-text {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 500;
  color: var(--idea-cream-light);
  text-align: center;
  line-height: 1.2;
}
.curtain-overlay__logo-text small {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 253, 248, 0.7);
  margin-top: 0.75rem;
}

/* After logo is revealed, fade out entire overlay */
.curtain-overlay.done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Skip button — white text on blue/dark curtains */
.curtain-skip {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: var(--caption-size);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.curtain-skip:hover {
  color: var(--idea-white);
}

/* Reduced motion: no fabric simulation — opaque scrim + logo, simple fade */
.curtain-overlay.reduced .curtain-overlay__svg { display: none; }
.curtain-overlay.reduced .curtain-overlay__scrim {
  background-color: var(--idea-petrol-dark);
}
@media (prefers-reduced-motion: reduce) {
  .curtain-overlay.done {
    transition: opacity 0.5s ease !important;
  }
}


/* ─────────────────────────────────────────────
   8. HERO
   ───────────────────────────────────────────── */
.idea-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--idea-petrol-dark);
}

.idea-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.idea-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.09);
  transition: transform 8s ease-out;
}
.idea-hero.loaded .idea-hero__bg-img {
  transform: scale(1);
}

.idea-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 45, 58, 0.25) 0%,
    rgba(5, 45, 58, 0.38) 50%,
    rgba(5, 45, 58, 0.50) 100%
  );
}

.idea-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 0 var(--gutter);
}

.idea-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: max(var(--caption-size), 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--idea-white);
  background: rgba(205, 170, 105, 0.62);
  padding: 0.55rem 1rem;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.idea-hero__title {
  font-size: var(--h1-size);
  font-weight: 400;
  color: var(--idea-cream-light);
  margin-bottom: 1.5rem;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(30px);
}

.idea-hero__subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: rgba(247, 243, 234, 0.8);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  transform: translateY(20px);
}

.idea-hero__gold-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--idea-gold), transparent);
  margin: 0 auto 2.5rem;
  transition: width 1.2s var(--ease-out-expo) 0.8s;
}
.idea-hero.loaded .idea-hero__gold-line {
  width: 100px;
}

.idea-hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}
.idea-hero__buttons .idea-btn--primary {
  background-color: var(--idea-gold);
  border-color: var(--idea-gold);
}
.idea-hero__buttons .idea-btn--primary:hover {
  background-color: var(--idea-gold-light);
  border-color: var(--idea-gold-light);
}
.idea-hero__buttons .idea-btn--ghost {
  color: var(--idea-cream-light);
  border-color: rgba(247, 243, 234, 0.3);
}
.idea-hero__buttons .idea-btn--ghost:hover {
  background-color: rgba(247, 243, 234, 0.1);
  border-color: var(--idea-cream-light);
  color: var(--idea-cream-light);
}

/* Hero reveal animations */
.idea-hero.loaded .idea-hero__eyebrow {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s ease 0.3s, transform 0.8s var(--ease-out-expo) 0.3s;
}
.idea-hero.loaded .idea-hero__title {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s ease 0.5s, transform 0.8s var(--ease-out-expo) 0.5s;
}
.idea-hero.loaded .idea-hero__subtitle {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s ease 0.7s, transform 0.8s var(--ease-out-expo) 0.7s;
}
.idea-hero.loaded .idea-hero__buttons {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s ease 1s, transform 0.8s var(--ease-out-expo) 1s;
}

/* GSAP owns the entrance on capable browsers; legacy CSS remains the fallback. */
.idea-motion-enabled .idea-hero__bg-img,
.idea-motion-enabled .idea-hero__title,
.idea-motion-enabled .idea-hero__gold-line,
.idea-motion-enabled .idea-hero__subtitle,
.idea-motion-enabled .idea-hero__buttons { transition: none; }


/* ─────────────────────────────────────────────
   9. EDITORIAL SECTION
   ───────────────────────────────────────────── */
.idea-editorial {
  position: relative;
  padding: var(--section-pad) 0;
}

.idea-editorial__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--section-gap);
  align-items: center;
}

.idea-editorial__text {
  position: relative;
  z-index: 1;
}

.idea-editorial__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.idea-editorial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  transition: transform var(--transition-slow);
}
.idea-editorial__image:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .idea-editorial__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .idea-editorial__grid--reverse { direction: ltr; }
}


/* ─────────────────────────────────────────────
   10. SERVICE CARDS
   ───────────────────────────────────────────── */
.idea-service-card {
  position: relative;
  background: var(--idea-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-med);
  border: 1px solid transparent;
}
.idea-service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--idea-border);
  transform: translateY(-4px);
}

.idea-service-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.idea-service-card__image img,
.idea-service-card__image .idea-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.idea-service-card:hover .idea-service-card__image img,
.idea-service-card:hover .idea-service-card__image .idea-placeholder {
  transform: scale(1.06);
}

/* Gold border animation on hover */
.idea-service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--idea-gold), var(--idea-gold-faint));
  transition: width var(--transition-med);
  z-index: 1;
}
.idea-service-card:hover::before { width: 100%; }

.idea-service-card__body {
  padding: 1.5rem;
}
.idea-service-card__title {
  font-size: var(--h4-size);
  margin-bottom: 0.75rem;
  color: var(--idea-petrol);
}
.idea-service-card__desc {
  font-size: var(--small-size);
  color: var(--idea-grey);
  line-height: 1.6;
  margin-bottom: 1rem;
}


/* ─────────────────────────────────────────────
   11. CURTAIN TYPES GRID
   ───────────────────────────────────────────── */
.idea-curtains-desc {
  max-width: 840px;
}
.idea-curtains-desc .idea-lead {
  max-width: 100%;
  margin-bottom: 1rem;
}
.idea-curtains-desc .idea-lead:last-child {
  margin-bottom: 0;
}

.idea-curtain-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.idea-curtain-card__image,
.idea-curtain-card .idea-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.idea-curtain-card:hover .idea-curtain-card__image,
.idea-curtain-card:hover .idea-placeholder {
  transform: scale(1.08);
}
.idea-curtain-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 45, 58, 0.7) 0%, transparent 60%);
  z-index: 1;
}
.idea-curtain-card__title {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: var(--h4-size);
  font-weight: 500;
  color: var(--idea-cream-light);
  margin: 0;
}
a.idea-curtain-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.idea-curtain-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.idea-curtain-card__content .idea-curtain-card__title {
  position: static;
  margin: 0;
  transition: color 0.3s ease;
}
.idea-curtain-card__cta {
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--idea-gold-light, #D3B673);
  letter-spacing: 0.04em;
  opacity: 0.85;
  transform: translateY(3px);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.idea-curtain-card:hover .idea-curtain-card__title {
  color: #fff;
}
.idea-curtain-card:hover .idea-curtain-card__cta {
  opacity: 1;
  transform: translateY(0);
  color: #fff;
}


/* ─────────────────────────────────────────────
   12. PRODUCTS SHOWCASE (Horizontal scroll)
   ───────────────────────────────────────────── */
.idea-products-scroll {
  width: 100%;
  overflow: hidden !important;
  display: block !important;
  padding: 1rem 0 2rem;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.idea-products-scroll.is-dragging {
  cursor: grabbing;
}
.idea-products-scroll.is-dragging .idea-product-card {
  pointer-events: none;
}
.idea-products-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
}

.idea-product-card {
  flex: 0 0 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--idea-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-med);
}
.idea-product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.idea-product-card__image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background-color: #f7f5f0;
}
.idea-product-card__image img,
.idea-product-card__image .idea-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), opacity 0.35s ease;
}
.idea-motion-enabled .idea-products-scroll .idea-product-card__image img {
  opacity: 0;
}
.idea-motion-enabled .idea-products-scroll .idea-product-card__image img.loaded {
  opacity: 1;
}
.idea-product-card:hover .idea-product-card__image img,
.idea-product-card:hover .idea-product-card__image .idea-placeholder {
  transform: scale(1.05);
}
.idea-product-card__body {
  padding: 1.25rem 1.5rem;
}
.idea-product-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--idea-petrol);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
a.idea-product-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.idea-products-grid .idea-product-card {
  flex: 1 1 auto;
  width: 100%;
}
.idea-product-card__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--idea-gold, #A98242);
  margin-top: 0.25rem;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
}
.idea-product-card:hover .idea-product-card__title {
  color: var(--idea-gold, #A98242);
}
.idea-product-card:hover .idea-product-card__action {
  color: var(--idea-petrol, #052D3A);
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .idea-product-card {
    flex: 0 0 260px;
  }
}


/* ─────────────────────────────────────────────
   13. BRAND STRIP
   ───────────────────────────────────────────── */
.idea-brands-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  flex-wrap: wrap;
}

/* 3 sopra, 3 sotto layout */
.idea-brands-grid--3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 4rem;
  max-width: 980px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

@media (max-width: 860px) {
  .idea-brands-grid--3x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.2rem 3rem;
  }
}

@media (max-width: 520px) {
  .idea-brands-grid--3x2 {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

.idea-brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  filter: grayscale(100%);
  opacity: 0.78;
  transition: all var(--transition-med);
  text-decoration: none;
}
.idea-brand-item--link {
  cursor: pointer;
  border-radius: 6px;
}
.idea-brand-item:hover,
.idea-brand-item:focus-visible {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-4px);
}
.idea-brand-item img {
  width: min(200px, 100%);
  height: 64px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform var(--transition-med);
}

/* ─────────────────────────────────────────────
   PAGE MARCHI (Dedicated Partner Showcase)
   ───────────────────────────────────────────── */
.idea-brands-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (max-width: 860px) {
  .idea-brands-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.idea-brand-detail-card {
  background: var(--idea-white);
  border: 1px solid rgba(5, 45, 58, 0.08);
  border-radius: 8px;
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: 0 4px 20px rgba(5, 45, 58, 0.03);
  transition: transform var(--transition-med), box-shadow var(--transition-med), border-color var(--transition-med);
}

.idea-brand-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(5, 45, 58, 0.08);
  border-color: rgba(184, 155, 104, 0.4);
}

@media (max-width: 640px) {
  .idea-brand-detail-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.8rem;
    text-align: center;
  }
}

.idea-brand-detail-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf8f5;
  border-radius: 6px;
  height: 120px;
  padding: 1.2rem;
  border: 1px solid rgba(184, 155, 104, 0.15);
}

.idea-brand-detail-card__logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform var(--transition-med);
}

.idea-brand-detail-card:hover .idea-brand-detail-card__logo {
  transform: scale(1.05);
}

.idea-brand-detail-card__text-logo {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--idea-petrol);
}

.idea-brand-detail-card__name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--idea-petrol);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.idea-brand-detail-card__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--idea-grey);
  margin-bottom: 0;
}

.idea-brand-detail-card__action {
  margin-top: auto;
}

/* Quality pillars */
.idea-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 860px) {
  .idea-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.idea-pillar-card {
  background: var(--idea-white);
  padding: 2.2rem 1.8rem;
  border-radius: 6px;
  border: 1px solid rgba(184, 155, 104, 0.2);
  box-shadow: 0 4px 15px rgba(5, 45, 58, 0.03);
  transition: transform var(--transition-med);
}

.idea-pillar-card:hover {
  transform: translateY(-4px);
}

.idea-pillar-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(184, 155, 104, 0.12);
  color: #8c6d32;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.idea-pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--idea-petrol);
  margin-bottom: 0.6rem;
}

.idea-pillar-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--idea-grey);
  margin: 0;
}

/* ─────────────────────────────────────────────
   PAGE FAQ (Domande Frequenti / AEO)
   ───────────────────────────────────────────── */
.idea-faq-nav-section {
  padding: 1.5rem 0 !important;
  background: var(--idea-white);
  border-bottom: 1px solid rgba(184, 155, 104, 0.15);
}

.idea-faq-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.idea-faq-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  background: #faf8f5;
  border: 1px solid rgba(184, 155, 104, 0.25);
  color: var(--idea-petrol);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.idea-faq-pill:hover,
.idea-faq-pill:focus-visible {
  background: var(--idea-petrol);
  color: var(--idea-gold-light);
  border-color: var(--idea-petrol);
  transform: translateY(-2px);
}

.idea-faq-main-section {
  padding: 4.5rem 0 6.5rem !important;
}

.idea-faq-container {
  max-width: 960px;
  margin: 0 auto;
}

.idea-faq-category {
  margin-bottom: 4rem;
  scroll-margin-top: 110px;
}

.idea-faq-category:last-child {
  margin-bottom: 0;
}

.idea-faq-category__header {
  margin-bottom: 1.8rem;
}

.idea-faq-category__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  color: var(--idea-petrol);
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}

.idea-faq-category__desc {
  font-size: 0.98rem;
  color: var(--idea-grey);
  line-height: 1.65;
  margin: 0.6rem 0 0;
}

.idea-faq-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.idea-faq-item {
  background: var(--idea-white);
  border: 1px solid rgba(5, 45, 58, 0.08);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(5, 45, 58, 0.03);
  transition: border-color var(--transition-med), box-shadow var(--transition-med);
  overflow: hidden;
}

.idea-faq-item:hover {
  border-color: rgba(184, 155, 104, 0.4);
  box-shadow: 0 6px 20px rgba(5, 45, 58, 0.06);
}

.idea-faq-item[open] {
  border-color: rgba(184, 155, 104, 0.5);
  box-shadow: 0 8px 24px rgba(5, 45, 58, 0.07);
}

.idea-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.8rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background var(--transition-fast);
}

.idea-faq-question::-webkit-details-marker {
  display: none;
}

.idea-faq-question:focus-visible {
  outline: 2px solid var(--idea-gold);
  outline-offset: -2px;
}

.idea-faq-question__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--idea-petrol);
  margin: 0;
  line-height: 1.45;
  transition: color var(--transition-fast);
}

.idea-faq-item[open] .idea-faq-question__title {
  color: var(--idea-gold);
}

.idea-faq-toggle {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(184, 155, 104, 0.12);
  color: var(--idea-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-med), background var(--transition-med), color var(--transition-med);
}

.idea-faq-item[open] .idea-faq-toggle {
  transform: rotate(180deg);
  background: var(--idea-petrol);
  color: var(--idea-gold-light);
}

.idea-faq-answer {
  padding: 0 1.8rem 1.6rem;
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--idea-grey);
}

.idea-faq-answer p {
  margin: 0;
}

@media (max-width: 640px) {
  .idea-faq-question {
    padding: 1.15rem 1.25rem;
    gap: 0.9rem;
  }
  .idea-faq-question__title {
    font-size: 1.08rem;
  }
  .idea-faq-answer {
    padding: 0 1.25rem 1.35rem;
    font-size: 0.92rem;
  }
  .idea-faq-pill {
    font-size: 0.78rem;
    padding: 0.38rem 0.85rem;
  }
}

/* Text fallback for brand (when no image) */
.idea-brand-item__text {
  font-family: var(--font-sans);
  font-size: var(--small-size);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--idea-grey);
  white-space: nowrap;
}
.idea-brand-item:hover .idea-brand-item__text {
  color: var(--idea-petrol);
}


/* ─────────────────────────────────────────────
   14. OBJECTS SECTION
   ───────────────────────────────────────────── */
.idea-objects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.idea-object-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
}
.idea-object-item img,
.idea-object-item .idea-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.idea-object-item:hover img,
.idea-object-item:hover .idea-placeholder {
  transform: scale(1.06);
}
.idea-object-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.5) 0%, transparent 100%);
  font-size: var(--caption-size);
  color: var(--idea-cream-light);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.idea-object-item:hover .idea-object-item__caption { opacity: 1; }

@media (max-width: 768px) {
  .idea-objects-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ─────────────────────────────────────────────
   15. BEFORE/AFTER SLIDER
   ───────────────────────────────────────────── */
.idea-ba-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: col-resize;
  user-select: none;
  touch-action: pan-y;
}
.idea-ba-slider__before,
.idea-ba-slider__after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.idea-ba-slider__after {
  clip-path: inset(0 0 0 50%);
}
.idea-ba-slider__before img,
.idea-ba-slider__after img,
.idea-ba-slider__before .idea-placeholder,
.idea-ba-slider__after .idea-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.idea-ba-slider__handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: var(--idea-gold);
  transform: translateX(-50%);
  z-index: 3;
  cursor: col-resize;
}
.idea-ba-slider__handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--idea-gold);
  box-shadow: var(--shadow-md);
}
.idea-ba-slider__handle::after {
  content: '◄ ►';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  letter-spacing: 3px;
  text-indent: 3px;
  color: var(--idea-white);
  z-index: 1;
  white-space: nowrap;
}
.idea-ba-slider__label {
  position: absolute;
  bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0,0,0,0.5);
  color: var(--idea-cream-light);
  font-size: var(--caption-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  z-index: 2;
}
.idea-ba-slider__label--before { left: 1rem; }
.idea-ba-slider__label--after  { right: 1rem; }
.idea-ba-carousel {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
}
.idea-ba-project[hidden] { display: none; }
.idea-ba-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: var(--idea-gold);
  color: var(--idea-white);
  font-size: 0;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transform: translateY(-50%);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.idea-ba-carousel__arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -2px;
  font: 400 2.25rem/1 Arial, sans-serif;
  line-height: 1;
  transform: translate(-50%, -50%);
}
.idea-ba-carousel__arrow--prev::before { content: '\2039'; margin-left: -2px; }
.idea-ba-carousel__arrow--next::before { content: '\203a'; margin-left: 2px; }
.idea-ba-carousel__arrow:hover { transform: translateY(-50%) scale(1.07); background: var(--idea-petrol); }
.idea-ba-carousel__arrow--prev { left: -26px; }
.idea-ba-carousel__arrow--next { right: -26px; }
.idea-ba-carousel__status { text-align: center; color: var(--idea-gold); font-size: .8rem; letter-spacing: .12em; }
@media (max-width: 768px) {
  .idea-ba-carousel__arrow { width: 42px; height: 42px; }
  .idea-ba-carousel__arrow--prev { left: .5rem; }
  .idea-ba-carousel__arrow--next { right: .5rem; }
}


/* ─────────────────────────────────────────────
   16. TESTIMONIALS
   ───────────────────────────────────────────── */
.idea-testimonial-card {
  background: var(--idea-white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--idea-border);
}
.idea-testimonial-card__quote {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--idea-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.idea-testimonial-card__text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--idea-petrol);
  margin-bottom: 1.5rem;
}
.idea-testimonial-card__author {
  font-family: var(--font-sans);
  font-size: var(--small-size);
  font-weight: 600;
  color: var(--idea-grey);
}


/* ─────────────────────────────────────────────
   17. CONTACT SECTION / FORM
   ───────────────────────────────────────────── */
.idea-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--section-gap);
  align-items: start;
}

.idea-contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--idea-border);
}
.idea-contact-info-card:last-child { border-bottom: none; }

.idea-contact-info-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--idea-cream);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  color: var(--idea-gold);
}

.idea-contact-info-card__label {
  font-size: var(--caption-size);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--idea-grey-light);
  margin-bottom: 0.25rem;
}
.idea-contact-info-card__value {
  font-size: var(--body-size);
  color: var(--idea-petrol);
}
.idea-contact-info-card__value a:hover { color: var(--idea-gold); }

/* Form */
.idea-form { display: flex; flex-direction: column; gap: 1.25rem; }

.idea-form__group { display: flex; flex-direction: column; gap: 0.5rem; }

.idea-form__label {
  font-size: var(--small-size);
  font-weight: 600;
  color: var(--idea-petrol);
}

.idea-form__input,
.idea-form__textarea {
  font-family: var(--font-sans);
  font-size: var(--body-size);
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--idea-cream-warm);
  background: var(--idea-white);
  color: var(--idea-black);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  width: 100%;
}
.idea-form__input:focus,
.idea-form__textarea:focus {
  border-color: var(--idea-gold);
  box-shadow: 0 0 0 3px rgba(169, 130, 66, 0.1);
}
.idea-form__textarea { resize: vertical; min-height: 140px; }

.idea-form__input.error,
.idea-form__textarea.error {
  border-color: #C0392B;
}
.idea-form__error {
  font-size: var(--caption-size);
  color: #C0392B;
  display: none;
}
.idea-form__error.visible { display: block; }

.idea-form__success {
  padding: 1rem 1.5rem;
  background: rgba(45, 58, 47, 0.08);
  border: 1px solid var(--idea-green-dark);
  border-radius: var(--radius-sm);
  color: var(--idea-green-dark);
  font-weight: 500;
  display: none;
}
.idea-form__success.visible { display: block; }

@media (max-width: 768px) {
  .idea-contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}


/* ─────────────────────────────────────────────
   18. FOOTER
   ───────────────────────────────────────────── */
.idea-footer {
  background-color: var(--idea-petrol-dark);
  color: rgba(247, 243, 234, 0.7);
  padding: var(--section-pad) 0 0;
}

.idea-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: var(--section-gap);
}

.idea-footer__logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}
.idea-footer__logo-img {
  display: block;
  width: clamp(110px, 8vw, 145px);
  height: auto;
}
.idea-footer__brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--idea-cream-light);
}
.idea-footer__brand-desc {
  font-size: var(--small-size);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 280px;
}

.idea-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(247, 243, 234, 0.5);
  font-size: var(--small-size);
  transition: color var(--transition-fast);
}
.idea-footer__social a:hover { color: var(--idea-gold-light); }

.idea-footer__col-title {
  font-family: var(--font-sans);
  font-size: var(--caption-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--idea-cream-light);
  margin-bottom: 1.25rem;
}
.idea-footer__links li {
  margin-bottom: 0.75rem;
}
.idea-footer__links a {
  font-size: var(--small-size);
  color: rgba(247, 243, 234, 0.6);
  transition: color var(--transition-fast);
}
.idea-footer__links a:hover { color: var(--idea-gold-light); }

.idea-footer__contact-list {
  display: grid;
  gap: 1.15rem;
}
.idea-footer__contact-list .idea-footer__contact-item {
  margin: 0;
}
.idea-footer__contact-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--idea-gold-light);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.idea-footer__contact-item address,
.idea-footer__contact-item > a {
  color: rgba(247, 243, 234, 0.68);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.55;
}
.idea-footer__hours {
  display: grid;
  gap: 0.32rem;
  max-width: 220px;
  color: rgba(247, 243, 234, 0.6);
  font-size: 0.78rem;
}
.idea-footer__hours span {
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 0.75rem;
}
.idea-footer__hours strong {
  color: rgba(247, 243, 234, 0.8);
  font-weight: 500;
}

.idea-footer__bottom {
  border-top: 1px solid rgba(247, 243, 234, 0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.idea-footer__copyright {
  font-size: var(--caption-size);
  color: rgba(247, 243, 234, 0.4);
}
.idea-footer__bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem 1.5rem;
}
.idea-footer__utility {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(247, 243, 234, 0.12);
}
.idea-footer__utility a {
  color: rgba(247, 243, 234, 0.4);
  font-size: var(--caption-size);
  transition: color var(--transition-fast);
}
.idea-footer__utility a:hover,
.idea-footer__utility strong {
  color: var(--idea-gold-light);
}
.idea-footer__utility strong {
  font-weight: 600;
}
.idea-footer__legal {
  display: flex;
  gap: 1.5rem;
}
.idea-footer__legal a {
  font-size: var(--caption-size);
  color: rgba(247, 243, 234, 0.4);
  transition: color var(--transition-fast);
}
.idea-footer__legal a:hover { color: var(--idea-gold-light); }

@media (max-width: 900px) {
  .idea-footer__bottom,
  .idea-footer__bottom-links {
    align-items: flex-start;
    flex-direction: column;
  }
  .idea-footer__utility {
    padding-right: 0;
    border-right: 0;
  }
  .idea-footer__legal {
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
  }
}

.idea-legal-content {
  color: var(--idea-grey);
  font-size: var(--body-size);
  line-height: 1.8;
}
.idea-legal-content__updated {
  margin-bottom: 2rem;
  color: var(--idea-grey-light);
  font-size: var(--small-size);
}
.idea-legal-content h2 {
  margin: 2.5rem 0 0.8rem;
  color: var(--idea-petrol);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.idea-legal-content h3 {
  margin: 1.5rem 0 0.5rem;
  color: var(--idea-petrol);
  font-size: 1.2rem;
}
.idea-legal-content p,
.idea-legal-content ul { margin-bottom: 1rem; }
.idea-legal-content ul {
  padding-left: 1.25rem;
  list-style: disc;
}
.idea-legal-content a {
  color: var(--idea-gold);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 1024px) {
  .idea-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .idea-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .idea-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}


/* ─────────────────────────────────────────────
   19. PLACEHOLDER IMAGES
   ───────────────────────────────────────────── */
.idea-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--idea-cream-warm) 0%, var(--idea-cream) 50%, #E8E2D6 100%);
  color: var(--idea-grey-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.idea-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1rem;
  opacity: 0.6;
}
.idea-placeholder__label {
  font-family: var(--font-sans);
  font-size: var(--caption-size);
  font-weight: 500;
  letter-spacing: 0.05em;
}


/* ─────────────────────────────────────────────
   20. SCROLL REVEAL ANIMATIONS
   ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out-expo);
}
.reveal.reveal--left {
  transform: translateX(-40px);
}
.reveal.reveal--right {
  transform: translateX(40px);
}
.reveal.reveal--scale {
  transform: scale(0.95);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ─────────────────────────────────────────────
   21. GALLERY / MASONRY
   ───────────────────────────────────────────── */
.idea-gallery-masonry {
  columns: 3;
  column-gap: 1rem;
}
.idea-gallery-masonry.is-filtering {
  pointer-events: none;
}
.js-motion-ready .idea-gallery-masonry__item {
  opacity: 0;
}
.idea-gallery-masonry__item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.idea-gallery-masonry__item img,
.idea-gallery-masonry__item .idea-placeholder {
  width: 100%;
  display: block;
  transition: transform var(--transition-slow);
}
.idea-gallery-masonry__item:hover img,
.idea-gallery-masonry__item:hover .idea-placeholder {
  transform: scale(1.05);
}
.idea-gallery-masonry__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 20, 27, 0.85) 0%, rgba(5, 45, 58, 0.35) 50%, rgba(5, 45, 58, 0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.1rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}
.idea-gallery-masonry__zoom {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(5, 45, 58, 0.75);
  border: 1px solid rgba(169, 130, 66, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--idea-gold-light, #D3B673);
  transform: scale(0.85);
  transition: transform 0.35s ease, background 0.35s ease;
  backdrop-filter: blur(6px);
}
.idea-gallery-masonry__item-title {
  font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: #F7F5F0;
  line-height: 1.25;
  transform: translateY(6px);
  transition: transform 0.35s ease;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.idea-gallery-masonry__item:hover .idea-gallery-masonry__overlay {
  opacity: 1;
}
.idea-gallery-masonry__item:hover .idea-gallery-masonry__zoom {
  transform: scale(1);
  background: var(--idea-petrol, #052D3A);
}
.idea-gallery-masonry__item:hover .idea-gallery-masonry__item-title {
  transform: translateY(0);
}

.idea-gallery-title {
  margin: 0 0 2.75rem;
}

.idea-gallery-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .idea-gallery-title { margin-bottom: 2rem; }
}
.idea-gallery-filter-btn {
  font-family: var(--font-sans);
  font-size: var(--small-size);
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--idea-cream-warm);
  border-radius: 100px;
  color: var(--idea-grey);
  transition: all var(--transition-fast);
  background: transparent;
}
.idea-gallery-filter-btn:hover,
.idea-gallery-filter-btn.active {
  background: var(--idea-petrol);
  border-color: var(--idea-petrol);
  color: var(--idea-cream-light);
}

/* ─────────────────────────────────────────────
   LIGHTBOX MODAL SLIDER
   ───────────────────────────────────────────── */
.idea-lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  user-select: none;
  -webkit-user-select: none;
}
.idea-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.idea-lightbox__backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(3, 18, 24, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: zoom-out;
}
.idea-lightbox__topbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  width: 100%;
  box-sizing: border-box;
}
.idea-lightbox__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.idea-lightbox__badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(169, 130, 66, 0.2);
  border: 1px solid rgba(169, 130, 66, 0.45);
  border-radius: 999px;
  color: #D3B673;
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.idea-lightbox__counter {
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 0.92rem;
  color: #E8E2D5;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.idea-lightbox__close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F7F5F0;
  cursor: pointer;
  transition: all 0.25s ease;
}
.idea-lightbox__close:hover {
  background: #A98242;
  border-color: #A98242;
  color: #fff;
  transform: scale(1.08);
}
.idea-lightbox__stage {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
  min-height: 0;
}
.idea-lightbox__arrow {
  background: rgba(5, 45, 58, 0.75);
  border: 1px solid rgba(169, 130, 66, 0.5);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F7F5F0;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}
.idea-lightbox__arrow:hover {
  background: #A98242;
  border-color: #D3B673;
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 6px 24px rgba(169, 130, 66, 0.5);
}
.idea-lightbox__figure-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: calc(100vh - 170px);
  padding: 0 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
  cursor: default;
}
.idea-lightbox__figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}
.idea-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  will-change: transform, opacity;
  pointer-events: auto;
}
.idea-lightbox__bottombar {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0.85rem 2rem 1.4rem;
  width: 100%;
  box-sizing: border-box;
}
.idea-lightbox__title {
  font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.4rem;
  font-weight: 500;
  color: #F7F5F0;
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.02em;
}
.idea-lightbox__hint {
  font-family: var(--font-sans, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  color: rgba(232, 226, 213, 0.6);
  margin: 0;
  letter-spacing: 0.04em;
}

/* Prevent background scroll when lightbox is open */
html.idea-lightbox-open,
body.idea-lightbox-open {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 768px) {
  .idea-gallery-masonry { columns: 2; }
  .idea-lightbox__topbar {
    padding: max(0.85rem, env(safe-area-inset-top)) 1rem 0.5rem;
  }
  .idea-lightbox__close {
    width: 40px;
    height: 40px;
  }
  .idea-lightbox__stage {
    padding: 0 0.5rem;
  }
  .idea-lightbox__figure-wrap {
    padding: 0;
    max-height: calc(100svh - 180px);
  }
  .idea-lightbox__img {
    max-height: calc(100svh - 180px);
    max-width: 100%;
  }
  .idea-lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    z-index: 20;
    background: rgba(5, 45, 58, 0.85);
  }
  .idea-lightbox__arrow--prev {
    left: 0.5rem;
  }
  .idea-lightbox__arrow--next {
    right: 0.5rem;
  }
  .idea-lightbox__bottombar {
    padding: 0.5rem 1rem max(1rem, env(safe-area-inset-bottom));
  }
  .idea-lightbox__title {
    font-size: 1.15rem;
  }
  .idea-lightbox__hint {
    display: none;
  }
}
@media (max-width: 480px) {
  .idea-gallery-masonry { columns: 1; }
}


/* ─────────────────────────────────────────────
   22. METHOD STEPS (Chi Siamo page)
   ───────────────────────────────────────────── */
.idea-method-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--idea-border);
}
.idea-method-step:last-child { border-bottom: none; }

.idea-method-step__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--idea-gold);
  line-height: 1;
  flex-shrink: 0;
  min-width: 60px;
}
.idea-method-step__title {
  font-size: var(--h4-size);
  margin-bottom: 0.5rem;
}
.idea-method-step__desc {
  color: var(--idea-grey);
  line-height: 1.6;
}


/* ─────────────────────────────────────────────
   23. INNER PAGE HERO
   ───────────────────────────────────────────── */
.idea-page-hero {
  padding: calc(var(--section-pad) + 5rem) 0 var(--section-pad);
  background-color: var(--idea-cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.idea-page-hero__title {
  font-size: var(--h1-size);
  margin-bottom: 1rem;
}
.idea-page-hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--idea-grey);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ─────────────────────────────────────────────
   24. GOOGLE MAP
   ───────────────────────────────────────────── */
/* The form section above already provides the breathing room — no top pad */
.idea-map-section { padding-top: 0; }

.idea-map-placeholder {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--idea-cream-warm);
  box-shadow: var(--shadow-sm);
}
.idea-google-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}
@media (max-width: 768px) {
  .idea-map-placeholder { aspect-ratio: 4/3; }
  .idea-google-map { min-height: 320px; }
}


/* ─────────────────────────────────────────────
   25. SERVICES PAGE ALTERNATING LAYOUT
   ───────────────────────────────────────────── */
.idea-service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--section-gap);
  align-items: center;
  padding: var(--section-gap) 0;
  border-bottom: 1px solid var(--idea-border);
}
.idea-service-detail:last-child { border-bottom: none; }
.idea-service-detail:nth-child(even) .idea-service-detail__image {
  order: -1;
}

.idea-service-detail__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.idea-service-detail__image img,
.idea-service-detail__image .idea-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .idea-service-detail {
    grid-template-columns: 1fr;
  }
  .idea-service-detail:nth-child(even) .idea-service-detail__image {
    order: 0;
  }
}


/* ─────────────────────────────────────────────
   26. PRODUCTS PAGE GRID
   ───────────────────────────────────────────── */
.idea-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}


/* ─────────────────────────────────────────────
   27. UTILITY SPACERS
   ───────────────────────────────────────────── */
.idea-mb-1 { margin-bottom: 0.5rem; }
.idea-mb-2 { margin-bottom: 1rem; }
.idea-mb-3 { margin-bottom: 1.5rem; }
.idea-mb-4 { margin-bottom: 2rem; }
.idea-mb-6 { margin-bottom: 3rem; }
.idea-mb-8 { margin-bottom: 4rem; }
.idea-mt-4 { margin-top: 2rem; }
.idea-mt-6 { margin-top: 3rem; }

/* ═══════════════════════════════════════════
   30. EDITORIAL MOTION SYSTEM
   ═══════════════════════════════════════════ */
.idea-split-title__line { display: block; overflow: hidden; }
.idea-split-title__line--accent { font-style: italic; color: #f0dfbd; }
.idea-hero__scroll { position:absolute; z-index:3; left:50%; bottom:1.5rem; transform:translateX(-50%); display:grid; justify-items:center; gap:.55rem; color:rgba(255,255,255,.78); font-size:.65rem; letter-spacing:.18em; text-transform:uppercase; }
.idea-hero__scroll i { width:1px; height:38px; background:rgba(255,255,255,.65); transform-origin:top; animation:idea-scroll-pulse 1.8s ease-in-out infinite; }
@keyframes idea-scroll-pulse { 0%,100% { transform:scaleY(.25); opacity:.45; } 50% { transform:scaleY(1); opacity:1; } }

.idea-signature { position:relative; height:165vh; background:var(--idea-cream-light); overflow:clip; }
.idea-signature__stage { position:sticky; top:0; height:100svh; min-height:680px; display:grid; place-items:center; overflow:hidden; }
.idea-signature__word { position:absolute; left:50%; white-space:nowrap; font:400 clamp(7rem,16vw,17rem)/.8 var(--font-serif); letter-spacing:.005em; }
/* Both words float IN FRONT of the image; solid fills, no text stroke */
.idea-signature__word--back { top:18%; z-index:3; color:var(--idea-petrol); transform:translateX(-75%); }
/* Slightly smaller than ARTE so the full word fits in the space right of the
   copy block — at 16vw the trailing A could never stay on screen */
.idea-signature__word--front { bottom:17%; z-index:4; color:var(--idea-gold-light); transform:translateX(-50%); font-size:clamp(5.5rem,12vw,13rem); }
.idea-signature__image { z-index:2; width:min(34vw,490px); height:min(70vh,720px); clip-path:inset(18% round 28px); overflow:hidden; }
.idea-signature__image img, .idea-signature__image .idea-placeholder { width:100%; height:100%; object-fit:cover; transform:scale(1.12); }
.idea-signature__copy { position:absolute; z-index:5; left:max(5vw,2rem); bottom:8%; width:min(390px,38vw); }
.idea-signature__copy > * { opacity:0; }
.idea-signature__copy p { color:var(--idea-grey); margin-bottom:1.25rem; line-height:1.7; }

.idea-services-scene .idea-service-card:nth-child(3n+1) { transform-origin:20% 100%; }
.idea-services-scene .idea-service-card:nth-child(3n+2) { transform-origin:50% 100%; }
.idea-services-scene .idea-service-card:nth-child(3n) { transform-origin:80% 100%; }

.idea-curtains-story { position:relative; height:330vh; background:var(--idea-white); }
.idea-curtains-story__stage { position:sticky; top:0; height:100svh; overflow:hidden; display:flex; align-items:center; }
.idea-curtains-story .idea-container { max-width:none; }
/* padding + radius are always on so the JS-driven cream plate (which fades in
   only when the cards start passing underneath) looks intentional */
.idea-curtains-story .idea-text-center { position:absolute; left:var(--gutter); top:clamp(5rem,10vh,8rem); width:min(520px,40vw); text-align:left; z-index:4; padding:1.5rem 1.75rem; margin-left:-1.75rem; border-radius:20px; background-color:rgba(251,248,241,0); }
.idea-curtains-story .idea-gold-line--center { margin-left:0; }
.idea-curtains-track { display:flex; align-items:center; gap:clamp(2rem,4vw,5rem); width:max-content; padding-left:48vw; padding-right:10vw; }
.idea-curtains-track .idea-curtain-card { flex:0 0 clamp(540px,68vw,1050px); height:min(66vh,700px); aspect-ratio:auto; border-radius:28px; }
.idea-curtains-track .idea-curtain-card__title { font-size:clamp(2rem,4vw,4rem); }
.idea-curtains-progress { position:absolute; left:var(--gutter); right:var(--gutter); bottom:2rem; height:2px; background:var(--idea-border); }
.idea-curtains-progress span { display:block; width:100%; height:100%; background:var(--idea-gold); transform:scaleX(0); transform-origin:left; }

.idea-kinetic { position:absolute; left:0; width:100%; pointer-events:none; white-space:nowrap; overflow:hidden; z-index:0; }
.idea-kinetic span { display:block; width:max-content; font:400 clamp(7rem,14vw,15rem)/.82 var(--font-serif); letter-spacing:-.055em; }
/* base nudged right so the word is already fully readable when the section
   enters the viewport — the scrub drift only adds movement, not reveal */
.idea-kinetic--objects { top:4%; padding-left:5vw; color:transparent; -webkit-text-stroke:1px rgba(5,45,58,.16); }
.idea-kinetic--transform { top:1rem; color:rgba(169,130,66,.10); }
.idea-objects-collage { padding-top:clamp(10rem,18vw,18rem); }
.idea-objects-collage .idea-container { position:relative; z-index:1; }
.idea-objects-collage .idea-objects-grid { grid-template-columns:repeat(6,1fr); grid-template-rows:repeat(5,minmax(55px,9vw)); gap:1.25rem; }
.idea-objects-collage .idea-object-item { aspect-ratio:auto; }
.idea-objects-collage .idea-object-item:nth-child(1) { grid-column:1/4; grid-row:1/5; transform:rotate(-1deg); }
.idea-objects-collage .idea-object-item:nth-child(2) { grid-column:4/7; grid-row:2/4; transform:rotate(1deg); }
.idea-objects-collage .idea-object-item:nth-child(3) { grid-column:4/6; grid-row:4/6; transform:rotate(-.6deg); }

.idea-transformations { padding-top:clamp(11rem,17vw,18rem); }
.idea-transformations .idea-container { position:relative; z-index:1; }
.idea-contact-prelude { min-height:80svh; background:var(--idea-cream); display:flex; flex-direction:column; justify-content:center; overflow:hidden; color:var(--idea-petrol); }
.idea-contact-prelude__line { width:max-content; white-space:nowrap; font:400 clamp(5rem,13vw,14rem)/.82 var(--font-serif); letter-spacing:-.055em; }
.idea-contact-prelude__line--one { transform:translateX(-10%); }
.idea-contact-prelude__line--two { align-self:flex-end; transform:translateX(10%); font-style:italic; }
.idea-footer--reveal { position:relative; z-index:0; }

.idea-page-transition { position:fixed; inset:0; z-index:20000; display:grid; place-items:center; background:var(--idea-petrol); color:var(--idea-cream-light); transform:translateY(101%); pointer-events:none; }
.idea-page-transition span { font:500 clamp(2.5rem,7vw,6rem)/1 var(--font-serif); opacity:0; }
body.idea-transitioning .idea-page-transition { pointer-events:auto; }

.idea-brands-grid { --brand-line:0%; position:relative; padding-top:2rem; }
.idea-brands-grid::before { content:''; position:absolute; top:0; left:50%; width:var(--brand-line); max-width:760px; height:1px; transform:translateX(-50%); background:linear-gradient(90deg,transparent,var(--idea-gold),transparent); }
.idea-brand-item:hover { transform:translateY(-4px); }

.idea-drag-cursor { position:fixed; top:0; left:0; z-index:15000; width:76px; height:76px; margin-top:-38px; margin-left:-38px; pointer-events:none; will-change:transform; }
.idea-drag-cursor__inner { width:100%; height:100%; display:grid; place-items:center; border-radius:50%; background:rgba(5,45,58,.86); color:var(--idea-white); font:600 .62rem/1 var(--font-sans); letter-spacing:.11em; text-transform:uppercase; opacity:0; transform:scale(.72); transition:opacity .2s ease,transform .3s var(--ease-out-expo); }
.idea-drag-cursor.is-visible .idea-drag-cursor__inner { opacity:1; transform:scale(1); }
@media (hover:hover) and (pointer:fine) { .idea-motion-enabled .idea-ba-slider, .idea-motion-enabled .idea-ba-slider * { cursor:none!important; } }

.idea-btn:focus-visible,.idea-link:focus-visible { outline:2px solid var(--idea-gold-light); outline-offset:4px; }

@media (max-width:1024px) {
  .idea-signature { height:auto; padding:8rem 0; }
  .idea-signature__stage { position:relative; min-height:900px; height:auto; }
  .idea-signature__image { width:min(62vw,480px); height:580px; clip-path:inset(0 round 24px); }
  .idea-signature__copy { left:var(--gutter); bottom:0; width:min(440px,80vw); }
  .idea-signature__word--back { top:8%; }
  .idea-signature__word--front { bottom:29%; }
  /* Kinetic words sized to fit the viewport even mid-travel */
  .idea-signature__word { font-size:clamp(4.5rem,11vw,9rem); }
  .idea-kinetic span { font-size:clamp(3.5rem,10vw,8rem); }
  .idea-contact-prelude__line { font-size:clamp(2.8rem,9vw,7rem); }
  .idea-curtains-story { height:auto; padding:var(--section-pad) 0; }
  .idea-curtains-story__stage { position:relative; height:auto; display:block; overflow:hidden; }
  .idea-curtains-story .idea-text-center { position:relative; inset:auto; width:auto; text-align:center; margin-bottom:3rem; }
  .idea-curtains-story .idea-gold-line--center { margin-left:auto; }
  .idea-curtains-track { width:auto; overflow-x:auto; scroll-snap-type:x mandatory; padding:0 var(--gutter) 1.5rem; gap:1rem; scrollbar-width:none; }
  .idea-curtains-track::-webkit-scrollbar { display:none; }
  .idea-curtains-track .idea-curtain-card { flex:0 0 84vw; height:min(68svh,620px); scroll-snap-align:center; }
  .idea-curtains-progress { position:relative; left:auto; right:auto; bottom:auto; margin:1rem var(--gutter) 0; }
}
@media (max-width:640px) {
  .idea-hero__title { font-size:clamp(3.3rem,16vw,5.2rem); }
  .idea-hero__scroll { bottom:1rem; }
  .idea-services-scene { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
  .idea-services-scene .idea-service-card__body { padding:1rem; }
  .idea-services-scene .idea-service-card__title { font-size:clamp(1.08rem,5vw,1.35rem); }
  .idea-services-scene .idea-service-card__desc { font-size:.78rem; }
  .idea-services-scene .idea-link { font-size:.72rem; }
  .idea-signature { padding:5rem 0; }
  .idea-signature__stage { min-height:760px; }
  .idea-signature__image { width:76vw; height:500px; }
  .idea-signature__copy { bottom:0; width:calc(100% - 2 * var(--gutter)); }
  .idea-signature__word { font-size:clamp(3.5rem,18vw,5rem); }
  .idea-signature__word--front { bottom:34%; font-size:clamp(3rem,14vw,4.2rem); }
  .idea-kinetic span { font-size:clamp(2.5rem,13vw,4rem); }
  .idea-contact-prelude__line { font-size:clamp(2rem,11vw,3.5rem); }
  .idea-objects-collage .idea-editorial__grid { gap:5rem; }
  .idea-objects-collage .idea-objects-grid { display:grid; grid-template-columns:repeat(2,1fr); grid-template-rows:auto; }
  .idea-objects-collage .idea-object-item:nth-child(n) { grid-column:auto; grid-row:auto; aspect-ratio:1; }
  .idea-contact-prelude { min-height:55svh; }
}
@media (prefers-reduced-motion:reduce) {
  .idea-hero__scroll i { animation:none; }
  .idea-signature { height:auto; padding:8rem 0; }
  .idea-signature__stage { position:relative; height:auto; min-height:850px; }
  .idea-signature__image { clip-path:none; }
  .idea-curtains-story { height:auto; padding:var(--section-pad) 0; }
  .idea-curtains-story__stage { position:relative; height:auto; display:block; }
  .idea-curtains-track { width:auto; overflow-x:auto; scroll-snap-type:x mandatory; padding:0 var(--gutter) 2rem; }
  .idea-curtains-track .idea-curtain-card { flex:0 0 82vw; }
  .idea-page-transition { display:none; }
  .idea-drag-cursor { display:none; }
}

/* ─────────────────────────────────────────────
   OCCASIONI & PEZZI D'ATELIER (ARCHIVIO E SINGOLO)
   ───────────────────────────────────────────── */

.idea-occasioni-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--idea-border);
}

.idea-occasioni-header__title {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.idea-occasioni-header__note {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--idea-grey);
}

.idea-link-gold {
  color: var(--idea-gold);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.idea-link-gold:hover {
  color: var(--idea-gold-light);
  transform: translateX(4px);
}

/* Griglia Occasioni */
.idea-occasioni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

@media (max-width: 1024px) {
  .idea-occasioni-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .idea-occasioni-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Occasione */
.idea-occ-card {
  display: flex;
  flex-direction: column;
  background: var(--idea-white);
  border: 1px solid var(--idea-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.idea-occ-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--idea-gold);
}

.idea-occ-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--idea-cream);
  overflow: hidden;
}

.idea-occ-card__media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.idea-occ-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-med);
}

.idea-occ-card:hover .idea-occ-card__media img {
  transform: scale(1.05);
}

.idea-occ-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--idea-grey-light);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  background: var(--idea-cream-warm);
}

/* Badges */
.idea-occ-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 2;
}

.idea-occ-badge.status-disponibile { background: #2e7d32; }
.idea-occ-badge.status-pezzo-unico { background: var(--idea-gold); }
.idea-occ-badge.status-campionario { background: var(--idea-petrol); }
.idea-occ-badge.status-trattativa  { background: #e65100; }
.idea-occ-badge.status-venduto     { background: #757575; }

.idea-occ-discount-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--idea-petrol-dark);
  color: var(--idea-gold-light);
  padding: 0.35rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--idea-gold-faint);
  border-radius: 2px;
  z-index: 2;
}

/* Card Body */
.idea-occ-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.idea-occ-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--idea-gold);
  margin-bottom: 0.5rem;
}

.idea-occ-card__meta span:not(:last-child)::after {
  content: '·';
  margin-left: 0.5rem;
  color: var(--idea-grey-light);
}

.idea-occ-card__title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.idea-occ-card__title a {
  color: var(--idea-petrol);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.idea-occ-card__title a:hover {
  color: var(--idea-gold);
}

.idea-occ-card__materials {
  font-size: 0.875rem;
  color: var(--idea-grey);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.idea-occ-card__excerpt {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #444;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Price Box */
.idea-occ-card__price-box {
  background: var(--idea-cream-light);
  border-left: 3px solid var(--idea-gold);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.idea-occ-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.idea-occ-price__amount {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--idea-petrol);
}

.idea-occ-price__old {
  font-size: 0.95rem;
  color: var(--idea-grey-light);
  text-decoration: line-through;
}

.idea-occ-price--request .idea-occ-price__amount {
  font-size: 1.15rem;
  font-family: var(--font-sans);
  color: var(--idea-grey);
}

/* Actions in Card */
.idea-occ-card__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.idea-occ-card__actions .idea-btn {
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
}

.idea-occ-btn-contact {
  flex: 1;
  text-align: center;
}

.idea-btn--outline.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Empty State */
.idea-occasioni-empty {
  text-align: center;
  max-width: 650px;
  margin: 3rem auto;
  padding: 3.5rem 2rem;
  background: var(--idea-cream-light);
  border: 1px dashed var(--idea-border);
}

.idea-occasioni-empty__icon {
  color: var(--idea-gold);
  margin-bottom: 1.25rem;
}

.idea-occasioni-empty__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--idea-petrol);
  margin-bottom: 1rem;
}

.idea-occasioni-empty__text {
  color: var(--idea-grey);
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   SCHEDA SINGOLA OCCASIONE (single-occasione.php)
   ───────────────────────────────────────────── */

.idea-breadcrumbs-bar {
  padding: 1rem 0;
  background: var(--idea-cream);
  border-bottom: 1px solid var(--idea-border);
  font-size: 0.85rem;
}

.idea-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--idea-grey);
}

.idea-breadcrumbs-list li:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--idea-grey-light);
}

.idea-breadcrumbs-list a {
  color: var(--idea-petrol);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.idea-breadcrumbs-list a:hover {
  color: var(--idea-gold);
}

.idea-occ-single-article {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.idea-occ-single-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: flex-start;
}

@media (max-width: 960px) {
  .idea-occ-single-layout {
    grid-template-columns: 1fr;
  }
}

.idea-occ-single-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--idea-border);
  background: var(--idea-cream);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.idea-occ-single-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.idea-occ-single-photo-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--idea-grey-light);
  font-family: var(--font-serif);
}

/* Specs card */
.idea-occ-specs-card {
  background: var(--idea-cream-light);
  border: 1px solid var(--idea-border);
  padding: 1.75rem;
}

.idea-occ-specs-card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--idea-petrol);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--idea-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.idea-occ-specs-card__title svg {
  color: var(--idea-gold);
}

.idea-occ-specs-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.idea-occ-specs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(169, 130, 66, 0.15);
  font-size: 0.9375rem;
}

.idea-occ-specs-row dt {
  color: var(--idea-grey);
}

.idea-occ-specs-row dd {
  margin: 0;
  color: var(--idea-petrol);
  text-align: right;
  font-weight: 500;
}

.idea-occ-status-pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}
.idea-occ-status-pill.status-disponibile { background: #2e7d32; }
.idea-occ-status-pill.status-pezzo-unico { background: var(--idea-gold); }
.idea-occ-status-pill.status-campionario { background: var(--idea-petrol); }
.idea-occ-status-pill.status-trattativa  { background: #e65100; }
.idea-occ-status-pill.status-venduto     { background: #757575; }

/* Right Column */
.idea-occ-single-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  color: var(--idea-petrol);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}

.idea-occ-single-price-box {
  background: var(--idea-cream-light);
  border-left: 4px solid var(--idea-gold);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0 2rem;
}

.idea-occ-single-price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.idea-occ-single-price__val {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 2.5vw, 2.75rem);
  font-weight: 700;
  color: var(--idea-petrol);
}

.idea-occ-single-price__old {
  font-size: 1.25rem;
  color: var(--idea-grey-light);
  text-decoration: line-through;
}

.idea-occ-single-price__sub {
  font-size: 0.8125rem;
  color: var(--idea-grey);
}

.idea-occ-single-desc {
  margin-bottom: 2.5rem;
}

.idea-occ-desc-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--idea-petrol);
  margin-bottom: 0.85rem;
}

.idea-occ-desc-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #333;
}
.idea-occ-desc-content p {
  margin-bottom: 1.2rem;
}

/* Sticky CTA Box */
.idea-occ-cta-box {
  background: var(--idea-cream-warm);
  border: 1px solid var(--idea-border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.idea-occ-cta-box__header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.idea-occ-cta-box__icon {
  color: var(--idea-gold);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.idea-occ-cta-box__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--idea-petrol);
  margin-bottom: 0.4rem;
}

.idea-occ-cta-box__sub {
  font-size: 0.9375rem;
  color: var(--idea-grey);
  line-height: 1.5;
  margin: 0;
}

.idea-occ-cta-box__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.idea-occ-cta-box__btn {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.idea-occ-cta-box__phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--idea-grey);
  flex-wrap: wrap;
}

.idea-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--idea-petrol);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.idea-phone-link:hover {
  color: var(--idea-gold);
}

.idea-occ-related-section {
  margin-top: 5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--idea-border);
}

/* Badge precompilato nel modulo contatti */
.idea-contact-prefill-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: var(--idea-cream-light);
  border-left: 3px solid var(--idea-gold);
  border-radius: 2px;
  font-size: 0.9375rem;
  color: var(--idea-petrol);
  margin-bottom: 1.5rem;
}
.idea-contact-prefill-badge svg {
  color: var(--idea-gold);
  flex-shrink: 0;
}
