/* =========================================================================
   BULLBARBÜ DIGITAL STUDIO — V2: 3D Z-SCROLL FOREST WALK & LENS PORTAL
   100% Architectural Departure from V1:
   • Zero V1 Pill Docks, Zero 2-Column Hero, Zero V1 Bottom Scrubber
   • Continuous 3D Z-Axis Camera Flight Through the Bulldog's Sunglasses
   • Swinging Overhead Distillery Lantern & Engraved Brass Border Frame
   • Real 3D Corridor of Swaying Pine Trees + 3 Illuminated Forest Clearings
========================================================================= */

:root {
  --bg-deep: #040708;
  --brass-grad: linear-gradient(
    135deg,
    #875b21 0%,
    #f5d494 24%,
    #c6893a 48%,
    #fff2d1 60%,
    #754a16 82%,
    #e5bb73 100%
  );
  --amber-text-grad: linear-gradient(
    180deg,
    #fff7e4 0%,
    #f2cb85 42%,
    #c47b2b 78%,
    #fbe2b4 100%
  );

  --parchment: #f4ead5;
  --parchment-soft: #d7c5a5;
  --parchment-dim: #9a896e;
  --amber-bright: #e6973e;
  --brass-border: rgba(232, 188, 114, 0.25);
  --brass-border-strong: rgba(245, 206, 136, 0.52);

  --font-display: 'Cinzel', Georgia, serif;
  --font-editorial: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--parchment);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

button,
input,
a {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  text-decoration: none;
  cursor: pointer;
}

/* =========================================================================
   WARM LANTERN CURSOR
========================================================================= */
@media (pointer: fine) {
  body, button, a, input {
    cursor: none;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff0cb;
  box-shadow: 0 0 14px #ffbe5c, 0 0 30px rgba(230, 151, 62, 0.95);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(245, 206, 136, 0.48);
  background: radial-gradient(circle, rgba(230, 151, 62, 0.16) 0%, transparent 72%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

body.cursor-hovered .cursor-ring {
  width: 64px;
  height: 64px;
  border-color: #ffe7b3;
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* =========================================================================
   WEBGL2 FOREST BACKGROUND & SWINGING OVERHEAD DISTILLERY LANTERN
========================================================================= */
#symphony-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  display: block;
}

/* =========================================================================
   ENGRAVED DISTILLERY BORDER FRAME & CORNER HEADER
========================================================================= */
.distillery-border-frame {
  position: fixed;
  inset: 14px;
  border: 1px solid rgba(232, 188, 114, 0.18);
  pointer-events: none;
  z-index: 35;
}

.corner-ornament {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(232, 188, 114, 0.55);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.corner-ornament.tl { top: -1px; left: -1px; border-top-width: 1.5px; border-left-width: 1.5px; }
.corner-ornament.tr { top: -1px; right: -1px; border-top-width: 1.5px; border-right-width: 1.5px; }
.corner-ornament.bl { bottom: -1px; left: -1px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corner-ornament.br { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.atelier-corner-header {
  position: fixed;
  top: 14px;
  left: 24px;
  right: 24px;
  z-index: 45;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.corner-brand-btn {
  margin-top: 2px;
}

.atelier-corner-header > * {
  pointer-events: auto;
}

.corner-brand-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.corner-brand-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid #e5b769;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.85);
}

.corner-wordmark-img {
  height: 36px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.9));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.corner-brand-btn:hover .corner-wordmark-img {
  transform: translateY(-1px) scale(1.03);
  filter:
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.95))
    drop-shadow(0 0 12px rgba(230, 151, 62, 0.35));
}

.corner-tools-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

/* =========================================================================
   FLOATING DISCREET VERSION SWITCHER (BOTTOM RIGHT)
========================================================================= */
/* =========================================================================
   INITIAL GRAPHIC STYLE CHOOSER OVERLAY (FOREST vs FLUIDO)
   & BOTTOM-RIGHT FRAMELESS DUAL ICONS (ZERO PILL BOX / ZERO V1-V2)
========================================================================= */
.style-chooser-gate {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.55s ease;
}

.style-chooser-gate.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.chooser-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(28, 20, 12, 0.84) 0%, rgba(4, 7, 8, 0.96) 75%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.chooser-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.chooser-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #ecc074;
}

.chooser-wordmark {
  width: clamp(190px, min(28vw, 31dvh), 370px);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.95));
}

.chooser-subtitle {
  font-family: var(--font-editorial);
  font-size: clamp(0.98rem, min(1.4vw, 2.0dvh), 1.32rem);
  line-height: 1.42;
  color: var(--parchment-soft);
  max-width: 620px;
}

.chooser-subtitle strong {
  color: #fff2cf;
  font-weight: 600;
}

.chooser-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2.2dvh, 22px);
  width: 100%;
  margin-top: 4px;
}

.chooser-style-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(6px, 1.1dvh, 10px);
  padding: clamp(16px, 2.8dvh, 28px) 24px clamp(14px, 2.4dvh, 24px);
  border-radius: 18px;
  background: rgba(10, 14, 15, 0.68);
  border: 1px solid rgba(235, 190, 112, 0.26);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.4s ease;
}

.chooser-style-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 220, 145, 0.72);
  background: rgba(20, 16, 11, 0.82);
  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.92),
    0 0 32px rgba(235, 160, 55, 0.22);
}

.chooser-card-icon {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 14px rgba(245, 190, 88, 0.45));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chooser-style-card:hover .chooser-card-icon {
  transform: scale(1.12);
}

.chooser-card-icon svg {
  width: 100%;
  height: 100%;
}

.chooser-card-tag {
  font-family: var(--font-display);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(238, 192, 112, 0.75);
}

.chooser-card-title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: #fff4d6;
  text-shadow: 0 0 18px rgba(240, 175, 70, 0.45);
}

.chooser-card-desc {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--parchment-soft);
  max-width: 310px;
}

.chooser-card-cta {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f6ca78;
  transition: color 0.3s ease, transform 0.3s ease;
}

.chooser-style-card:hover .chooser-card-cta {
  color: #fff3d1;
  transform: translateX(3px);
}

/* Bottom-Right Frameless Dual Icons (FOREST & FLUIDO) */
.style-icons-cluster {
  position: fixed;
  bottom: 26px;
  right: 36px;
  z-index: 175;
  display: flex;
  align-items: center;
  gap: 26px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  user-select: none;
  pointer-events: auto;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.style-icons-cluster.is-hidden-away {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px);
}

.style-icon-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent !important;
  border: none !important;
  padding: 0;
  cursor: pointer;
  opacity: 0.68;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.style-icon-btn:hover,
.style-icon-btn.active {
  opacity: 1;
  transform: translateY(-2px);
}

.style-icon-visual {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.style-icon-halo {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 224, 150, 0.48) 0%,
    rgba(235, 155, 45, 0.20) 52%,
    transparent 76%
  );
  filter: blur(2px);
  opacity: 0.35;
  transition: opacity 0.35s ease, transform 0.4s ease;
}

.style-icon-btn.active .style-icon-halo,
.style-icon-btn:hover .style-icon-halo {
  opacity: 1;
  transform: scale(1.16);
}

.style-icon-svg {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 9px rgba(245, 192, 92, 0.72)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.95));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.style-icon-btn:hover .style-icon-svg {
  transform: scale(1.12);
}

.style-icon-label {
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(255, 236, 190, 0.88);
  text-shadow: 0 0 8px rgba(245, 180, 75, 0.65), 0 1px 4px rgba(0, 0, 0, 0.95);
}

.style-icon-btn.active .style-icon-label {
  color: #fff4d4;
  text-shadow: 0 0 12px rgba(255, 210, 110, 0.95), 0 1px 4px rgba(0, 0, 0, 0.98);
}

/* =========================================================================
   CELESTIAL ANIMATED STARS & CONSTELLATION ON THE NIGHT SKY (LUCE & SUONO)
   Zero boxes, zero borders — pure living starlight in the forest sky
========================================================================= */
.constellation-sky-cluster {
  position: relative;
  width: 220px;
  height: 80px;
  pointer-events: auto;
  flex-shrink: 0;
}

/* Constellation Map Lines & Minor Stars Surrounding Luce & Suono */
.constellation-map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  animation: constellationSlowDrift 14s infinite ease-in-out alternate;
}

@keyframes constellationSlowDrift {
  0%   { transform: translate(0px, 0px); }
  50%  { transform: translate(-1.5px, 1px); }
  100% { transform: translate(1.5px, -1px); }
}

.constellation-web-lines {
  animation: constellationWebBreathe 6.5s infinite ease-in-out alternate;
  transition: stroke 0.45s ease, opacity 0.45s ease;
}

.constellation-sky-cluster:hover .constellation-web-lines {
  stroke: rgba(255, 234, 175, 0.42);
  filter: drop-shadow(0 0 4px rgba(245, 185, 80, 0.35));
}

@keyframes constellationWebBreathe {
  0%   { opacity: 0.55; }
  50%  { opacity: 0.95; }
  100% { opacity: 0.68; }
}

.bg-micro-star {
  filter: drop-shadow(0 0 3px rgba(255, 224, 150, 0.85));
  animation: microStarFade 4.2s infinite ease-in-out;
}

.bg-micro-star > * {
  transform-origin: center;
  transform-box: fill-box;
  animation: microStarScale 4.2s infinite ease-in-out;
}

.bg-micro-star.ms-1, .bg-micro-star.ms-1 > * { animation-duration: 4.8s; animation-delay: -0.4s; }
.bg-micro-star.ms-2, .bg-micro-star.ms-2 > * { animation-duration: 6.1s; animation-delay: -1.9s; }
.bg-micro-star.ms-3, .bg-micro-star.ms-3 > * { animation-duration: 5.3s; animation-delay: -3.2s; }
.bg-micro-star.ms-4, .bg-micro-star.ms-4 > * { animation-duration: 4.4s; animation-delay: -0.9s; }
.bg-micro-star.ms-5, .bg-micro-star.ms-5 > * { animation-duration: 6.7s; animation-delay: -2.6s; }
.bg-micro-star.ms-6, .bg-micro-star.ms-6 > * { animation-duration: 5.0s; animation-delay: -1.4s; }
.bg-micro-star.ms-7, .bg-micro-star.ms-7 > * { animation-duration: 5.8s; animation-delay: -3.8s; }

@keyframes microStarFade {
  0%, 100% { opacity: 0.92; }
  40%      { opacity: 0.18; }
  55%      { opacity: 0.35; }
  78%      { opacity: 1.00; }
}

@keyframes microStarScale {
  0%, 100% { transform: scale(1.05); }
  45%      { transform: scale(0.68); }
  78%      { transform: scale(1.22); }
}

/* Each Main Star Control — NO button box, NO background, NO border */
.celestial-star-btn {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 34px;
  margin-left: -17px;
  margin-top: -17px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  padding: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Exact Constellation Coordinates + Slow Atmospheric Hovering Drift */
.celestial-star-btn.star-luce {
  left: 68px;
  top: 32px;
  animation: starAtmosphericDriftLuce 10.5s infinite ease-in-out;
}

.celestial-star-btn.star-suono {
  left: 156px;
  top: 42px;
  animation: starAtmosphericDriftSuono 13.2s infinite ease-in-out;
}

@keyframes starAtmosphericDriftLuce {
  0%   { transform: translate(0px, 0px) rotate(0deg); }
  20%  { transform: translate(-2.8px, -2.5px) rotate(-1.2deg); }
  42%  { transform: translate(2.2px, 2px) rotate(0.8deg); }
  65%  { transform: translate(3px, -1.8px) rotate(1.4deg); }
  85%  { transform: translate(-1.8px, 2.4px) rotate(-0.8deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes starAtmosphericDriftSuono {
  0%   { transform: translate(0px, 0px) rotate(0deg); }
  22%  { transform: translate(2.8px, 2.5px) rotate(1.3deg); }
  48%  { transform: translate(-2.4px, -2px) rotate(-1deg); }
  72%  { transform: translate(-3px, 1.8px) rotate(-1.4deg); }
  88%  { transform: translate(2px, -2.2px) rotate(0.9deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

/* Visual Star Anchor — Refined Smaller Size + Distant Starlight Fading & Re-igniting */
.star-Visual-anchor {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: starDistantFadeLuce 7.4s infinite ease-in-out;
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.4s ease;
}

.star-suono .star-Visual-anchor {
  animation: starDistantFadeSuono 9.1s infinite ease-in-out;
}

/* Simulates watching a distant star lose light through night air currents and regain it */
@keyframes starDistantFadeLuce {
  0%   { opacity: 0.96; transform: translate(0px, 0px) scale(1.02); filter: blur(0px); }
  18%  { opacity: 0.62; transform: translate(-1px, 0.7px) scale(0.88); filter: blur(0.25px); }
  34%  { opacity: 0.22; transform: translate(-1.6px, -1px) scale(0.72); filter: blur(0.65px); }
  44%  { opacity: 0.40; transform: translate(-0.6px, -1.3px) scale(0.80); filter: blur(0.4px); }
  54%  { opacity: 0.26; transform: translate(1px, -0.7px) scale(0.74); filter: blur(0.55px); }
  74%  { opacity: 1.00; transform: translate(1.2px, 0.8px) scale(1.08); filter: blur(0px); }
  88%  { opacity: 0.76; transform: translate(0.4px, 1px) scale(0.94); filter: blur(0.15px); }
  100% { opacity: 0.96; transform: translate(0px, 0px) scale(1.02); filter: blur(0px); }
}

@keyframes starDistantFadeSuono {
  0%   { opacity: 0.86; transform: translate(0px, 0px) scale(0.96); filter: blur(0.1px); }
  15%  { opacity: 1.00; transform: translate(1.2px, -0.8px) scale(1.06); filter: blur(0px); }
  36%  { opacity: 0.54; transform: translate(1.6px, 0.7px) scale(0.86); filter: blur(0.3px); }
  56%  { opacity: 0.20; transform: translate(-1.2px, 1.2px) scale(0.70); filter: blur(0.7px); }
  66%  { opacity: 0.36; transform: translate(-1.5px, 0.3px) scale(0.78); filter: blur(0.45px); }
  82%  { opacity: 0.95; transform: translate(-0.5px, -1px) scale(1.04); filter: blur(0px); }
  100% { opacity: 0.86; transform: translate(0px, 0px) scale(0.96); filter: blur(0.1px); }
}

/* Stabilize & Ignite to Full Brilliance on Hover / Focus */
.celestial-star-btn:hover .star-Visual-anchor,
.celestial-star-btn:focus-visible .star-Visual-anchor {
  animation-play-state: paused;
  opacity: 1 !important;
  filter: blur(0px) !important;
  transform: scale(1.14) !important;
}

/* Breathing Nebula Halo Around Each Star (Smaller, More Delicate) */
.star-nebula-halo {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 238, 185, 0.58) 0%,
    rgba(242, 172, 68, 0.24) 36%,
    rgba(215, 120, 30, 0.06) 62%,
    transparent 78%
  );
  mix-blend-mode: screen;
  filter: blur(1.5px);
  animation: starNebulaBreathe 3.6s infinite ease-in-out alternate;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.45s ease;
}

.star-suono .star-nebula-halo {
  animation-duration: 4.2s;
  animation-delay: -1.5s;
}

@keyframes starNebulaBreathe {
  0% { transform: scale(0.84); opacity: 0.72; }
  100% { transform: scale(1.16); opacity: 1; }
}

/* Fine Optical Diffraction Spikes (Vertical & Horizontal Cross Rays) */
.star-flare-cross {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: screen;
  animation: starCrossScintillate 4s infinite ease-in-out alternate;
}

.star-suono .star-flare-cross {
  animation-duration: 4.7s;
  animation-delay: -2.1s;
}

.star-flare-cross::before,
.star-flare-cross::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    #ffffff 0%,
    rgba(255, 236, 175, 0.85) 22%,
    rgba(240, 168, 60, 0.28) 55%,
    transparent 100%
  );
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Horizontal Spike (Smaller, Razor-Fine) */
.star-flare-cross::before {
  width: 40px;
  height: 1.1px;
}

/* Vertical Spike (Smaller, Razor-Fine) */
.star-flare-cross::after {
  width: 1.1px;
  height: 40px;
}

@keyframes starCrossScintillate {
  0% { transform: scale(0.86); opacity: 0.78; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(0.94); opacity: 0.85; }
}

/* Diagonal 45-Degree Secondary Star Rays */
.star-flare-diag {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  mix-blend-mode: screen;
  animation: starDiagScintillate 3.2s infinite ease-in-out alternate;
}

.star-flare-diag::before,
.star-flare-diag::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 250, 230, 0.88) 0%,
    rgba(245, 190, 95, 0.42) 35%,
    transparent 100%
  );
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.star-flare-diag::before {
  width: 22px;
  height: 0.9px;
}

.star-flare-diag::after {
  width: 0.9px;
  height: 22px;
}

@keyframes starDiagScintillate {
  0% { transform: rotate(45deg) scale(0.78); opacity: 0.55; }
  100% { transform: rotate(45deg) scale(1.14); opacity: 0.92; }
}

/* Subtle Celestial Orbit Ring on Luce Star */
.star-orbit-ring {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 0.65px dashed rgba(255, 232, 175, 0.30);
  animation: celestialOrbitSpin 18s linear infinite;
  transition: transform 0.5s ease, border-color 0.4s ease, width 0.45s ease, height 0.45s ease;
}

@keyframes celestialOrbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Core Vector Star SVG (Smaller & More Delicate) */
.star-core-svg {
  position: relative;
  z-index: 3;
  width: 28px;
  height: 28px;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(255, 215, 125, 0.88))
          drop-shadow(0 0 14px rgba(235, 150, 45, 0.50));
  animation: starCoreTwinkle 2.9s infinite ease-in-out alternate;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.star-suono .star-core-svg {
  animation-duration: 3.4s;
  animation-delay: -1.2s;
}

@keyframes starCoreTwinkle {
  0% { transform: scale(0.92) rotate(-2deg); }
  100% { transform: scale(1.06) rotate(2deg); }
}

.star-harmonic-halo {
  transform-origin: 24px 24px;
  animation: celestialOrbitSpin 14s linear infinite reverse;
}

/* Twinkling Satellite Sparks Around Each Star */
.star-sat {
  transform-origin: center;
  transform-box: fill-box;
  animation: satSparkle 2.1s infinite ease-in-out alternate;
}
.star-sat.s1 { animation-duration: 1.8s; animation-delay: 0.1s; }
.star-sat.s2 { animation-duration: 2.5s; animation-delay: 0.7s; }
.star-sat.s3 { animation-duration: 2.1s; animation-delay: 1.3s; }

@keyframes satSparkle {
  0% { opacity: 0.25; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1.35); }
}

/* =========================================================================
   FLOATING SKY CAPTION (Pure Starlight Typography — No Box)
========================================================================= */
.star-sky-caption {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1px;
  pointer-events: none;
}

.star-sky-kicker {
  font-family: var(--font-display);
  font-size: 0.43rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: rgba(255, 236, 190, 0.52);
  text-shadow: 0 0 8px rgba(245, 180, 75, 0.55), 0 1px 4px rgba(0, 0, 0, 0.95);
  line-height: 1;
  animation: kickerStarFade 7.4s infinite ease-in-out;
  transition: color 0.35s ease, text-shadow 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

.star-suono .star-sky-kicker {
  animation-duration: 9.1s;
  animation-delay: -2.2s;
}

@keyframes kickerStarFade {
  0%, 100% { opacity: 0.68; }
  36%      { opacity: 0.20; }
  52%      { opacity: 0.30; }
  75%      { opacity: 0.82; }
}

/* Floating Whisper State (Reveals in the Sky on Hover) */
.star-sky-state {
  position: absolute;
  top: calc(100% + 3px);
  white-space: nowrap;
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-style: italic;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #fff3d1;
  text-shadow:
    0 0 12px rgba(255, 195, 85, 0.85),
    0 0 24px rgba(235, 145, 40, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.98);
  opacity: 0;
  transform: translateY(-4px) scale(0.95);
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   HOVER & FOCUS: CELESTIAL FLARE IGNITION
========================================================================= */
.celestial-star-btn:hover .star-nebula-halo,
.celestial-star-btn:focus-visible .star-nebula-halo {
  transform: scale(1.48);
  background: radial-gradient(
    circle,
    rgba(255, 248, 215, 0.85) 0%,
    rgba(255, 190, 82, 0.45) 38%,
    rgba(235, 135, 35, 0.16) 68%,
    transparent 82%
  );
}

.celestial-star-btn:hover .star-flare-cross::before,
.celestial-star-btn:focus-visible .star-flare-cross::before {
  transform: scaleX(1.42) scaleY(1.25);
}

.celestial-star-btn:hover .star-flare-cross::after,
.celestial-star-btn:focus-visible .star-flare-cross::after {
  transform: scaleY(1.42) scaleX(1.25);
}

.celestial-star-btn:hover .star-flare-diag::before,
.celestial-star-btn:focus-visible .star-flare-diag::before {
  transform: scaleX(1.45);
}

.celestial-star-btn:hover .star-flare-diag::after,
.celestial-star-btn:focus-visible .star-flare-diag::after {
  transform: scaleY(1.45);
}

.celestial-star-btn:hover .star-core-svg,
.celestial-star-btn:focus-visible .star-core-svg {
  transform: scale(1.22) rotate(15deg);
  filter: drop-shadow(0 0 10px rgba(255, 240, 180, 1))
          drop-shadow(0 0 22px rgba(245, 175, 65, 0.85));
}

.celestial-star-btn:hover .star-orbit-ring,
.celestial-star-btn:focus-visible .star-orbit-ring {
  width: 24px;
  height: 24px;
  border-color: rgba(255, 240, 190, 0.72);
}

.celestial-star-btn:hover .star-sky-kicker,
.celestial-star-btn:focus-visible .star-sky-kicker {
  animation-play-state: paused;
  opacity: 1 !important;
  color: #fff9e6;
  text-shadow: 0 0 12px rgba(255, 215, 120, 0.95), 0 0 22px rgba(245, 165, 55, 0.7);
  transform: translateY(-1px);
}

.celestial-star-btn:hover .star-sky-state,
.celestial-star-btn:focus-visible .star-sky-state {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================================================
   ACTIVE MODE 1: FUOCO DISTILLERIA (Red-Gold Supernova Star)
========================================================================= */
.celestial-star-btn.mode-ember .star-nebula-halo {
  background: radial-gradient(
    circle,
    rgba(255, 220, 160, 0.78) 0%,
    rgba(255, 105, 30, 0.48) 38%,
    rgba(205, 40, 10, 0.18) 66%,
    transparent 82%
  );
  animation: emberNovaBreathe 1.9s infinite ease-in-out alternate;
}

.celestial-star-btn.mode-ember .star-flare-cross::before,
.celestial-star-btn.mode-ember .star-flare-cross::after {
  background: radial-gradient(
    ellipse at center,
    #fffdf5 0%,
    rgba(255, 175, 95, 0.92) 24%,
    rgba(255, 85, 20, 0.55) 58%,
    transparent 100%
  );
}

.celestial-star-btn.mode-ember .star-core-svg {
  filter: drop-shadow(0 0 10px rgba(255, 145, 55, 1))
          drop-shadow(0 0 24px rgba(255, 70, 15, 0.85));
}

.celestial-star-btn.mode-ember .star-svg-diag {
  fill: rgba(255, 150, 75, 0.88);
}

.celestial-star-btn.mode-ember .star-sky-kicker {
  color: #ffb880;
  text-shadow: 0 0 10px rgba(255, 100, 30, 0.85);
}

@keyframes emberNovaBreathe {
  0% { transform: scale(0.95); opacity: 0.85; }
  100% { transform: scale(1.32); opacity: 1; }
}

/* =========================================================================
   ACTIVE MODE 1B: INVERNO (Crystalline Ice-Blue Alpine Star)
========================================================================= */
.celestial-star-btn.mode-winter .star-nebula-halo {
  background: radial-gradient(
    circle,
    rgba(235, 248, 255, 0.84) 0%,
    rgba(135, 205, 255, 0.48) 38%,
    rgba(65, 145, 220, 0.18) 66%,
    transparent 82%
  );
  animation: emberNovaBreathe 2.3s infinite ease-in-out alternate;
}

.celestial-star-btn.mode-winter .star-flare-cross::before,
.celestial-star-btn.mode-winter .star-flare-cross::after {
  background: radial-gradient(
    ellipse at center,
    #ffffff 0%,
    rgba(205, 238, 255, 0.92) 24%,
    rgba(110, 190, 255, 0.55) 58%,
    transparent 100%
  );
}

.celestial-star-btn.mode-winter .star-core-svg {
  filter: drop-shadow(0 0 10px rgba(190, 232, 255, 1))
          drop-shadow(0 0 24px rgba(105, 185, 255, 0.85));
}

.celestial-star-btn.mode-winter .star-svg-diag {
  fill: rgba(205, 238, 255, 0.90);
}

.celestial-star-btn.mode-winter .star-sky-kicker {
  color: #d6f0ff;
  text-shadow: 0 0 10px rgba(120, 198, 255, 0.88);
}

.celestial-star-btn.mode-winter .star-sky-state {
  color: #e8f6ff;
  text-shadow:
    0 0 12px rgba(140, 210, 255, 0.90),
    0 0 24px rgba(80, 165, 240, 0.60),
    0 2px 6px rgba(0, 0, 0, 0.98);
}

/* =========================================================================
   ACTIVE MODE 1C: GIORNATA ESTIVA (Golden Sun & Alpine Emerald Star)
========================================================================= */
.celestial-star-btn.mode-summer .star-nebula-halo {
  background: radial-gradient(
    circle,
    rgba(255, 250, 200, 0.88) 0%,
    rgba(245, 210, 75, 0.52) 38%,
    rgba(115, 195, 85, 0.22) 66%,
    transparent 82%
  );
  animation: emberNovaBreathe 2.1s infinite ease-in-out alternate;
}

.celestial-star-btn.mode-summer .star-flare-cross::before,
.celestial-star-btn.mode-summer .star-flare-cross::after {
  background: radial-gradient(
    ellipse at center,
    #ffffff 0%,
    rgba(255, 244, 155, 0.94) 24%,
    rgba(175, 225, 95, 0.52) 58%,
    transparent 100%
  );
}

.celestial-star-btn.mode-summer .star-core-svg {
  filter: drop-shadow(0 0 10px rgba(255, 238, 130, 1))
          drop-shadow(0 0 24px rgba(185, 220, 75, 0.85));
}

.celestial-star-btn.mode-summer .star-svg-diag {
  fill: rgba(255, 244, 160, 0.92);
}

.celestial-star-btn.mode-summer .star-sky-kicker {
  color: #fff6b8;
  text-shadow: 0 0 10px rgba(245, 215, 80, 0.90);
}

.celestial-star-btn.mode-summer .star-sky-state {
  color: #fffbe0;
  text-shadow:
    0 0 12px rgba(250, 220, 95, 0.92),
    0 0 24px rgba(145, 205, 75, 0.60),
    0 2px 6px rgba(0, 0, 0, 0.98);
}

/* =========================================================================
   ACTIVE MODE 1D: AUTUNNO (Copper-Gold Larch & Maple Star)
========================================================================= */
.celestial-star-btn.mode-autumn .star-nebula-halo {
  background: radial-gradient(
    circle,
    rgba(255, 232, 175, 0.86) 0%,
    rgba(232, 128, 38, 0.54) 38%,
    rgba(175, 58, 18, 0.22) 66%,
    transparent 82%
  );
  animation: emberNovaBreathe 2.2s infinite ease-in-out alternate;
}

.celestial-star-btn.mode-autumn .star-flare-cross::before,
.celestial-star-btn.mode-autumn .star-flare-cross::after {
  background: radial-gradient(
    ellipse at center,
    #fffdf5 0%,
    rgba(255, 200, 110, 0.94) 24%,
    rgba(218, 98, 24, 0.55) 58%,
    transparent 100%
  );
}

.celestial-star-btn.mode-autumn .star-core-svg {
  filter: drop-shadow(0 0 10px rgba(255, 185, 75, 1))
          drop-shadow(0 0 24px rgba(215, 92, 22, 0.85));
}

.celestial-star-btn.mode-autumn .star-svg-diag {
  fill: rgba(255, 192, 95, 0.90);
}

.celestial-star-btn.mode-autumn .star-sky-kicker {
  color: #ffd494;
  text-shadow: 0 0 10px rgba(235, 125, 35, 0.90);
}

.celestial-star-btn.mode-autumn .star-sky-state {
  color: #ffe8c2;
  text-shadow:
    0 0 12px rgba(245, 150, 50, 0.92),
    0 0 24px rgba(195, 75, 20, 0.60),
    0 2px 6px rgba(0, 0, 0, 0.98);
}

/* =========================================================================
   ACTIVE MODE 1E: TEMPORALE ALPINO (Electric Storm-Blue & Silver Star)
========================================================================= */
.celestial-star-btn.mode-storm .star-nebula-halo {
  background: radial-gradient(
    circle,
    rgba(220, 238, 255, 0.88) 0%,
    rgba(110, 165, 255, 0.54) 38%,
    rgba(65, 95, 210, 0.24) 66%,
    transparent 82%
  );
  animation: emberNovaBreathe 1.6s infinite ease-in-out alternate;
}

.celestial-star-btn.mode-storm .star-flare-cross::before,
.celestial-star-btn.mode-storm .star-flare-cross::after {
  background: radial-gradient(
    ellipse at center,
    #ffffff 0%,
    rgba(185, 220, 255, 0.94) 24%,
    rgba(95, 145, 255, 0.58) 58%,
    transparent 100%
  );
}

.celestial-star-btn.mode-storm .star-core-svg {
  filter: drop-shadow(0 0 10px rgba(165, 210, 255, 1))
          drop-shadow(0 0 24px rgba(85, 135, 255, 0.88));
}

.celestial-star-btn.mode-storm .star-svg-diag {
  fill: rgba(185, 220, 255, 0.92);
}

.celestial-star-btn.mode-storm .star-sky-kicker {
  color: #c8e2ff;
  text-shadow: 0 0 10px rgba(105, 160, 255, 0.90);
}

.celestial-star-btn.mode-storm .star-sky-state {
  color: #e2f0ff;
  text-shadow:
    0 0 12px rgba(120, 175, 255, 0.92),
    0 0 24px rgba(70, 115, 235, 0.65),
    0 2px 6px rgba(0, 0, 0, 0.98);
}

/* =========================================================================
   ACTIVE MODE 2: SUONO DEL BOSCO ATTIVO (Harmonic Starlight Ripples)
========================================================================= */
.star-sonic-ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 232, 170, 0);
  pointer-events: none;
  opacity: 0;
}

.celestial-star-btn.is-playing .star-sonic-ripple,
.star-Visual-anchor.is-playing .star-sonic-ripple {
  animation: celestialSonicWave 2.6s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

.celestial-star-btn.is-playing .star-sonic-ripple.r1,
.star-Visual-anchor.is-playing .star-sonic-ripple.r1 {
  animation-delay: 0s;
}
.celestial-star-btn.is-playing .star-sonic-ripple.r2,
.star-Visual-anchor.is-playing .star-sonic-ripple.r2 {
  animation-delay: 0.85s;
}
.celestial-star-btn.is-playing .star-sonic-ripple.r3,
.star-Visual-anchor.is-playing .star-sonic-ripple.r3 {
  animation-delay: 1.7s;
}

@keyframes celestialSonicWave {
  0% {
    width: 10px;
    height: 10px;
    border-color: rgba(255, 240, 190, 0.85);
    box-shadow: 0 0 8px rgba(245, 185, 80, 0.55);
    opacity: 1;
  }
  100% {
    width: 44px;
    height: 44px;
    border-color: rgba(245, 180, 75, 0);
    box-shadow: 0 0 2px rgba(245, 185, 80, 0);
    opacity: 0;
  }
}

.celestial-star-btn.is-playing .star-core-svg {
  filter: drop-shadow(0 0 12px rgba(255, 238, 175, 1))
          drop-shadow(0 0 24px rgba(240, 175, 65, 0.8));
}

.celestial-star-btn.is-playing .star-sky-kicker {
  color: #ffeab3;
  text-shadow: 0 0 10px rgba(255, 205, 100, 0.85);
}

/* =========================================================================
   IMMERSIVE FLOATING TRAIL TITLES ON LEFT MARGIN (ZERO BAR / ZERO STARS)
========================================================================= */
.trail-compass-hud {
  position: fixed;
  left: clamp(24px, 3.2vw, 48px);
  right: auto;
  top: 52%;
  transform: translateY(-50%);
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  pointer-events: auto;
  user-select: none;
}

.compass-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 0;
  border: none;
  will-change: transform;
}

.compass-waypoint {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent !important;
  border: none !important;
  padding: 4px 0;
  text-align: left;
  cursor: pointer;
  transform-origin: left center;
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wp-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.compass-waypoint.active .wp-text {
  transform: translate3d(12px, 0, 0) scale(1.07);
}

.compass-waypoint:hover .wp-text {
  transform: translate3d(10px, 0, 0) scale(1.06);
}

.wp-text strong {
  font-family: var(--font-editorial, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(1.18rem, 1.55vw, 1.62rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: rgba(242, 224, 192, 0.78);
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.95),
    0 0 18px rgba(0, 0, 0, 0.85);
  transition:
    color 0.35s ease,
    text-shadow 0.35s ease,
    letter-spacing 0.35s ease;
}

.compass-waypoint.active .wp-text strong,
.compass-waypoint:hover .wp-text strong {
  color: #fff3d1;
  letter-spacing: 0.05em;
  text-shadow:
    0 0 16px rgba(255, 200, 95, 0.85),
    0 0 34px rgba(235, 145, 40, 0.55),
    0 3px 10px rgba(0, 0, 0, 0.98);
}

.wp-text small {
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(235, 185, 102, 0.62);
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.95);
  opacity: 0.72;
  pointer-events: none;
  transition:
    color 0.32s ease,
    opacity 0.32s ease,
    letter-spacing 0.32s ease,
    text-shadow 0.32s ease,
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.compass-waypoint.active .wp-text small,
.compass-waypoint:hover .wp-text small {
  color: #ffd685;
  letter-spacing: 0.25em;
  opacity: 1;
  text-shadow:
    0 0 12px rgba(245, 172, 58, 0.75),
    0 1px 4px rgba(0, 0, 0, 0.98);
}

.compass-waypoint:hover {
  opacity: 1 !important;
  filter: blur(0px) !important;
}

/* =========================================================================
   3D Z-AXIS WORLD VIEWPORT & SWAYING PINE TREES CORRIDOR
========================================================================= */
.forest-world-viewport {
  position: fixed;
  inset: 0;
  z-index: 10;
  perspective: 1100px;
  overflow: hidden;
}

.forest-camera-rig {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.forest-trees-corridor {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

/* 3D Pine Tree Silhouettes on Left & Right of the Trail that Sway & Fly Past! */
.pine-tree-3d {
  position: absolute;
  bottom: -6%;
  width: clamp(240px, 24vw, 390px);
  height: clamp(520px, 78vh, 880px);
  transform-origin: bottom center;
  pointer-events: none;
  will-change: transform, opacity;
}

.pine-tree-3d svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 28px rgba(0, 0, 0, 0.95));
  animation: pineWindSway var(--sway-dur, 5.2s) ease-in-out infinite alternate;
  animation-delay: var(--sway-delay, 0s);
  transform-origin: bottom center;
}

@keyframes pineWindSway {
  0% {
    transform: rotate(-4.2deg) skewX(-3.2deg) scaleX(0.98);
  }
  50% {
    transform: rotate(2.8deg) skewX(2.4deg) scaleX(1.02);
  }
  100% {
    transform: rotate(-5.4deg) skewX(-4.5deg) scaleX(0.97);
  }
}

/* Individual branch tiers inside each SVG tree also flutter! */
.pine-tree-3d .bough-tier-even {
  transform-origin: center top;
  animation: boughFlutterEven 3.1s ease-in-out infinite alternate;
}

.pine-tree-3d .bough-tier-odd {
  transform-origin: center top;
  animation: boughFlutterOdd 2.7s ease-in-out infinite alternate;
}

@keyframes boughFlutterEven {
  0% { transform: rotate(-2.2deg) translateY(0px); }
  100% { transform: rotate(2.6deg) translateY(3px); }
}

@keyframes boughFlutterOdd {
  0% { transform: rotate(2.4deg) translateY(2px); }
  100% { transform: rotate(-2.5deg) translateY(-2px); }
}

/* =========================================================================
   3D Z-SCENES ALONG THE FOREST PATH
========================================================================= */
.z-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
}

/* -------------------------------------------------------------------------
   SCENE 00 (Z = 0) : CENTERED SALOON ARCH & BULLDOG SUNGLASSES PORTAL
-------------------------------------------------------------------------- */
.scene-bulldog-portal {
  transform-origin: 50% 44%;
  padding: clamp(16px, 4.2dvh, 54px) 24px clamp(12px, 2.8dvh, 36px);
  justify-content: space-between;
}

.saloon-arch-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3px, 0.6dvh, 6px);
  z-index: 3;
}

.saloon-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: #f8d896;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.98),
    0 2px 10px rgba(0, 0, 0, 0.94),
    0 0 14px rgba(236, 192, 116, 0.45);
}

.line-brass {
  width: 48px;
  height: 1px;
  background: var(--brass-grad);
}

.saloon-wordmark-heading {
  margin: 2px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wordmark-tm-lockup {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}

.chooser-wordmark-lockup {
  margin: 4px auto 2px;
}

.tm-gold-glyph {
  position: absolute;
  top: 6%;
  right: -14px;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #f3d28f;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.95),
    0 0 12px rgba(235, 165, 62, 0.45);
  pointer-events: none;
}

.tm-gold-glyph.tm-hero {
  top: 8%;
  right: -22px;
  font-size: clamp(0.75rem, 1.05vw, 0.96rem);
}

.tm-gold-glyph.tm-lg {
  top: 8%;
  right: -18px;
  font-size: 0.82rem;
}

.trademark-legal-seal {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(243, 229, 200, 0.12);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.68rem;
  color: rgba(243, 229, 200, 0.58);
  text-align: center;
  letter-spacing: 0.04em;
}

.trademark-legal-seal strong {
  color: #f3e5c8;
  font-weight: 700;
}

.hero-wordmark-img {
  width: clamp(205px, min(31vw, 35.5dvh), 450px);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 16px 32px rgba(0, 0, 0, 0.95))
    drop-shadow(0 0 24px rgba(230, 151, 62, 0.24));
}

.saloon-sub-motto {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.02rem, min(1.65vw, 2.15dvh), 1.54rem);
  line-height: 1.32;
  letter-spacing: 0.02em;
  color: #fff8e7;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 1),
    0 2px 8px rgba(0, 0, 0, 0.98),
    0 4px 18px rgba(0, 0, 0, 0.95),
    0 0 22px rgba(245, 175, 65, 0.55);
}

/* The Bulldog Centerpiece Portal */
.portal-bulldog-centerpiece {
  position: relative;
  width: clamp(210px, min(38vw, 38dvh), 490px);
  margin: -8px 0 -4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform-origin: 50% 40.2%;
  animation: portalBreath 6.5s ease-in-out infinite alternate;
}

.bulldog-stage-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes portalBreath {
  0% { transform: translateY(-4px) scale(1); }
  100% { transform: translateY(4px) scale(1.018); }
}

.bulldog-amber-aura {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(230, 151, 62, 0.34) 0%,
    rgba(22, 105, 142, 0.24) 44%,
    transparent 72%
  );
  filter: blur(32px);
  pointer-events: none;
}

.bulldog-center-img,
.bulldog-puppet-canvas {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 28px 50px rgba(0, 0, 0, 0.96))
    drop-shadow(0 0 28px rgba(230, 151, 62, 0.22));
}

.bulldog-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.bulldog-puppet-canvas.is-ready ~ .bulldog-fallback-img {
  display: none;
}

.bulldog-puppet-canvas:not(.is-ready) {
  display: none;
}

.bulldog-mood-bar {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: 92vw;
  z-index: 5;
}

.bulldog-mood-btn {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8, 11, 12, 0.88);
  border: 1px solid var(--brass-border);
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--parchment-soft);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.85);
  transition: all 0.22s ease;
}

.bulldog-mood-btn:hover {
  border-color: var(--brass-border-strong);
  color: #ffe8bc;
  transform: translateY(-1px);
}

.bulldog-mood-btn.active {
  background: var(--brass-grad);
  color: #120b04;
  border-color: #f6cd82;
  box-shadow: 0 0 16px rgba(230, 151, 62, 0.45);
}

.sunglasses-reflection-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.lens-enter-badge {
  position: absolute;
  top: 40.2%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.lens-pulse-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 232, 180, 0.85);
  box-shadow: 0 0 22px rgba(230, 151, 62, 0.85);
  animation: ringExpand 2.2s infinite ease-out;
}

@keyframes ringExpand {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

.lens-badge-txt {
  margin-top: 68px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(6, 10, 11, 0.86);
  border: 1px solid var(--brass-border-strong);
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ffe9be;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.9);
}

.portal-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 5;
}

.portal-scroll-cue {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  border-radius: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  user-select: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.portal-scroll-cue:hover {
  background: transparent !important;
  border-color: transparent !important;
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 0 14px rgba(255, 200, 95, 0.55));
}

.cue-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(242, 198, 118, 0.78);
  text-shadow: 0 0 10px rgba(235, 165, 55, 0.55), 0 1px 4px rgba(0, 0, 0, 0.95);
}

.cue-brass-line {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 198, 118, 0.72), transparent);
}

.portal-scroll-cue .cue-label {
  font-family: var(--font-editorial, 'Cormorant Garamond', Georgia, serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(0.96rem, 1.3vw, 1.16rem);
  letter-spacing: 0.03em;
  color: #fff3d1;
  text-shadow:
    0 0 14px rgba(255, 195, 85, 0.78),
    0 0 28px rgba(235, 145, 40, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.98);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.portal-scroll-cue:hover .cue-label {
  color: #ffffff;
  text-shadow:
    0 0 18px rgba(255, 215, 115, 0.98),
    0 0 34px rgba(245, 165, 55, 0.75),
    0 2px 8px rgba(0, 0, 0, 0.98);
}

.cue-star-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2px;
}

.cue-star-diamond {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: #fffdf5;
  box-shadow:
    0 0 8px #ffffff,
    0 0 16px rgba(255, 210, 110, 0.95);
  animation: cueDiamondPulse 2.2s ease-in-out infinite alternate;
}

.cue-star-stem {
  width: 1px;
  height: 18px;
  background: linear-gradient(180deg, rgba(255, 236, 185, 0.92) 0%, rgba(240, 175, 65, 0.35) 65%, transparent 100%);
  animation: cueBounce 2.2s ease-in-out infinite;
}

@keyframes cueDiamondPulse {
  0% { transform: rotate(45deg) scale(0.85); opacity: 0.72; }
  100% { transform: rotate(45deg) scale(1.25); opacity: 1; }
}

@keyframes cueBounce {
  0%, 100% { transform: scaleY(0.75); transform-origin: top; opacity: 0.65; }
  50% { transform: scaleY(1.15); transform-origin: top; opacity: 1; }
}

/* -------------------------------------------------------------------------
   SCENES 01, 02, 03 : THE 3 ILLUMINATED FOREST CLEARINGS
-------------------------------------------------------------------------- */
.z-scene.is-scene-in-transit .clearing-signpost,
.z-scene.is-scene-in-transit .cabin-stage-wrap,
.z-scene.is-scene-in-transit .about-stage-wrap,
.z-scene.is-scene-in-transit .lens-focus-card,
.z-scene.is-scene-in-transit .brand-sim-console {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.clearing-stage-layout {
  flex-shrink: 0;
  width: min(1420px, calc(100vw - 290px));
  margin-left: clamp(220px, 15.5vw, 256px); /* space for left-hand trail compass */
  margin-right: clamp(24px, 2.2vw, 40px);
  display: grid;
  grid-template-columns: 1.04fr 1.12fr;
  gap: 36px;
  align-items: center;
}

.clearing-stage-layout.layout-reverse {
  grid-template-columns: 1.12fr 1.04fr;
}

.clearing-stage-layout.layout-reverse .clearing-signpost {
  order: 2;
}

.clearing-stage-layout.layout-reverse .clearing-cinema-rig {
  order: 1;
}

/* Scheda Dossier Cristallo Olografico 3D (Font F1 Sans Puro + Palette C4 Champagne Platino & Bianco) */
.clearing-signpost {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 26px;
  border-radius: 24px;
  background: rgba(8, 12, 15, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(243, 229, 200, 0.24);
  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.14s ease-out, border-color 0.25s ease;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

.holo-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    290px circle at var(--mx, 50%) var(--my, 50%),
    rgba(243, 229, 200, 0.18),
    transparent 75%
  );
  z-index: 0;
}

.holo-border-glow {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: radial-gradient(
    210px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.85),
    rgba(243, 229, 200, 0.32) 45%,
    transparent 75%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.holo-top-row {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
}

.signpost-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e5d3b0;
  white-space: nowrap;
  max-width: 68%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.holo-live-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f3e5c8;
  box-shadow: 0 0 8px rgba(243, 229, 200, 0.85);
}

.holo-domain-tag {
  flex-shrink: 0;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.54);
  white-space: nowrap;
  text-align: right;
}

.holo-title-block {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clearing-title {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2.1rem, 3.1vw, 2.75rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #ffffff;
}

.title-sub-accent {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-weight: 300;
  font-style: normal;
  color: #f3e5c8;
}

.clearing-subtitle {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5d3b0;
}

.clearing-lead {
  position: relative;
  z-index: 3;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.clearing-lead strong {
  color: #ffffff;
  font-weight: 600;
}

.clearing-lead em {
  color: #f3e5c8;
  font-style: normal;
  font-weight: 500;
}

/* Dossier Analitico del Lavoro Svolto (Scheda Corposa) */
.holo-dossier-list {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 1px;
}

.dossier-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 9px;
  align-items: start;
  padding: 9px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(243, 229, 200, 0.14);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

.dossier-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 7px;
  background: rgba(243, 229, 200, 0.12);
  border: 1px solid rgba(243, 229, 200, 0.32);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f3e5c8;
}

.dossier-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dossier-body strong {
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.dossier-body p {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.72);
}

.dossier-body p em {
  color: #f3e5c8;
  font-style: normal;
  font-weight: 500;
}

/* 3 Micro-Pills in Cristallo */
.holo-widgets-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 2px;
}

.holo-widget-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
}

.holo-widget-card strong {
  font-size: 0.76rem;
  font-weight: 700;
  color: #f3e5c8;
}

.holo-widget-card small {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.56);
}

/* Segmented Crystal View Switcher */
.clearing-view-selector {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.screen-pill {
  flex: 1 1 auto;
  padding: 6px 9px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.2s ease;
}

.screen-pill:hover {
  color: #ffffff;
}

.screen-pill.active {
  background: rgba(243, 229, 200, 0.16);
  border-color: rgba(243, 229, 200, 0.42);
  color: #ffffff;
  font-weight: 600;
}

/* CTA Row (Palette C4 Champagne Platino #f3e5c8 & Bianco) */
.clearing-cta-row {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}

.btn-distillery-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 11px 18px;
  border-radius: 12px;
  background: #f3e5c8;
  color: #090806;
  border: 1px solid #ffffff;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.72);
  transition: all 0.22s ease;
}

.btn-distillery-primary:hover {
  transform: translateY(-2px);
  background: #ffffff;
  color: #050708;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.85),
    0 0 22px rgba(243, 229, 200, 0.45);
}

.btn-distillery-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-distillery-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(243, 229, 200, 0.45);
  color: #ffffff;
}

.btn-round-brass {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f3e5c8;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.btn-round-brass:hover {
  background: rgba(243, 229, 200, 0.18);
  border-color: #f3e5c8;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Hanging Cinema Rig Suspended in the Forest Clearing */
.clearing-cinema-rig {
  position: relative;
  padding-right: 5%;
  padding-bottom: 3%;
  transform-origin: top center;
  animation: hangingFrameSway 7s ease-in-out infinite alternate;
}

@keyframes hangingFrameSway {
  0% { transform: rotate(-1.1deg) translateY(-4px); }
  100% { transform: rotate(1.1deg) translateY(5px); }
}

.hanging-brass-chains {
  position: absolute;
  top: -120px;
  left: 16%;
  right: 22%;
  height: 120px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.hanging-brass-chains span {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, #e4b566 100%);
  opacity: 0.65;
}

.cinema-frame-desktop {
  border-radius: 18px;
  overflow: hidden;
  background: #06090a;
  border: 1px solid rgba(243, 229, 200, 0.28);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.95),
    0 0 45px rgba(243, 229, 200, 0.12);
  cursor: pointer;
}

.frame-top-plaque {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: linear-gradient(90deg, #140f0a 0%, #211810 50%, #140f0a 100%);
  border-bottom: 1px solid rgba(235, 192, 118, 0.3);
}

.plaque-dots {
  display: flex;
  gap: 5px;
}

.plaque-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}
.plaque-dots i:nth-child(1) { background: #d96b43; }
.plaque-dots i:nth-child(2) { background: #e5b352; }
.plaque-dots i:nth-child(3) { background: #4ca973; }

.plaque-domain {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--parchment-soft);
}

.plaque-live-tag {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #5ce092;
}

.frame-screen-canvas {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #050708;
}

.desktop-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.ken-burns-motion {
  animation: kenBurnsBreath 13s ease-in-out infinite alternate;
}

@keyframes kenBurnsBreath {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.05) translate3d(-1%, -1%, 0); }
}

.screen-hover-veil {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 10, 0.58);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.screen-hover-veil span {
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(12, 16, 17, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(238, 196, 122, 0.65);
  color: #fff3d6;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.9);
}

.cinema-frame-desktop:hover .screen-hover-veil {
  opacity: 1;
}

.cinema-frame-mobile {
  position: absolute;
  right: 0;
  bottom: -2%;
  width: 26%;
  aspect-ratio: 9 / 19.2;
  border-radius: 18px;
  padding: 3px;
  background: rgba(235, 192, 118, 0.48);
  box-shadow:
    -16px 22px 48px rgba(0, 0, 0, 0.96),
    0 0 28px rgba(230, 151, 62, 0.22);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out);
}

.cinema-frame-mobile:hover {
  transform: translateY(-6px) scale(1.05);
}

.phone-speaker {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 5px;
  border-radius: 999px;
  background: #080a0b;
  z-index: 2;
}

.mobile-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 15px;
  display: block;
}

/* -------------------------------------------------------------------------
   SCENE 04 (Z = 4250) : THE MASTER'S CABIN / CONTACT LEDGER (Holographic Crystal F1 + C4)
-------------------------------------------------------------------------- */
.cabin-stage-wrap {
  position: relative;
  flex-shrink: 0;
  width: min(1140px, calc(100vw - 280px));
  margin-left: clamp(220px, 15.5vw, 256px); /* space for left-hand trail compass */
  margin-right: clamp(20px, 2vw, 36px);
  padding: 28px 34px;
  border-radius: 26px;
  background: rgba(8, 12, 15, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.88),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  --mx: 50%;
  --my: 50%;
}

.cabin-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cabin-pillars-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cabin-ledger-form {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cabin-chip-prompt {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5d3b0;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.luxury-chip {
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(235, 240, 245, 0.78);
  transition: all 0.22s ease;
}

.luxury-chip:hover {
  border-color: rgba(243, 229, 200, 0.48);
  color: #ffffff;
}

.luxury-chip.selected {
  background: rgba(243, 229, 200, 0.16);
  color: #ffffff;
  border-color: rgba(243, 229, 200, 0.56);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.cabin-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.cabin-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cabin-field.field-wide {
  grid-column: 1 / -1;
}

.cabin-field label {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f3e5c8;
}

.cabin-field input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #ffffff;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.cabin-field input:focus {
  outline: none;
  border-color: rgba(243, 229, 200, 0.58);
  background: rgba(255, 255, 255, 0.07);
}

.cabin-field input::placeholder {
  color: rgba(235, 240, 245, 0.42);
}

.cabin-submit-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.composer-feedback {
  padding: 12px 16px;
  border-radius: 12px;
  border-left: 3px solid #f3e5c8;
  background: rgba(243, 229, 200, 0.12);
  color: #ffffff;
  font-size: 0.86rem;
}

/* =========================================================================
   RADURA 01 (CHI SIAMO), QUICK STEPPER SITI & RADURA 03 (APP, CLOUD & EMAREMOTE)
========================================================================= */
.clearing-quick-stepper {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(243, 229, 200, 0.14);
}

.stepper-node {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(243, 229, 200, 0.18);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 229, 200, 0.72);
  cursor: pointer;
  transition: all 0.22s ease;
}

.stepper-node:hover {
  color: #ffffff;
  border-color: rgba(243, 229, 200, 0.55);
  background: rgba(243, 229, 200, 0.12);
}

.stepper-node.active {
  background: rgba(243, 229, 200, 0.20);
  border-color: rgba(245, 208, 138, 0.75);
  color: #fffaf0;
  box-shadow: 0 0 12px rgba(235, 175, 75, 0.28);
}

.stepper-node.stepper-next-cat {
  margin-left: auto;
  color: #ffd996;
  border-color: rgba(245, 195, 105, 0.42);
  background: rgba(235, 165, 55, 0.10);
}

#scene-z-about.z-scene {
  justify-content: flex-start;
  padding-top: clamp(54px, 6.8dvh, 78px);
}

.about-stage-wrap,
.software-stage-wrap {
  flex-shrink: 0;
  width: min(1520px, calc(108vw - 260px));
  margin-top: 0;
  margin-left: clamp(230px, 16.2vw, 275px);
  margin-right: 16px;
  padding: 30px 40px;
  gap: 18px;
}

.about-stage-wrap .clearing-title {
  font-size: clamp(2.35rem, 3.35vw, 3.05rem);
}

.about-stage-wrap .clearing-subtitle {
  font-size: 0.80rem;
  line-height: 1.42;
}

.about-lead-copy,
.software-lead-copy {
  max-width: 1380px;
  font-size: 0.94rem;
  line-height: 1.58;
}

.about-pillars-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(243, 229, 200, 0.20);
  cursor: pointer;
  transition: transform 0.28s var(--ease-out), border-color 0.28s ease, background 0.28s ease, box-shadow 0.28s ease;
}

.about-pillar-card:hover {
  transform: translateY(-3px);
  background: rgba(243, 229, 200, 0.075);
  border-color: rgba(245, 208, 138, 0.58);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 22px rgba(235, 175, 75, 0.16);
}

.pillar-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  color: #f5cf86;
  letter-spacing: 0.08em;
}

.pillar-badge {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(245, 207, 134, 0.12);
  border: 1px solid rgba(245, 207, 134, 0.30);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffe8ba;
}

.pillar-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pillar-desc {
  font-size: 0.89rem;
  line-height: 1.54;
  color: rgba(235, 240, 245, 0.84);
}

.pillar-jump-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5cf86;
}

.about-cta-row .btn-distillery-primary,
.about-cta-row .btn-distillery-ghost {
  padding: 12px 20px;
  font-size: 0.77rem;
}

/* =========================================================================
   RADURA 03 (Z = 5250) : PALCOSCENICO SIMULATORI INTERATTIVI LIVE (8 APP)
========================================================================= */
.software-simulator-layout {
  width: min(1450px, calc(100vw - 285px));
  grid-template-columns: 1.16fr 1fr;
  gap: 28px;
  align-items: center;
}

.software-signpost-card {
  gap: 9px;
  padding: 18px 22px;
}

/* Dock Selettore delle 8 App con Icone Reali */
.app-sim-dock {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(3, 6, 9, 0.56);
  border: 1px solid rgba(243, 229, 200, 0.16);
}

.app-dock-pill,
.brand-dock-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(235, 240, 245, 0.72);
  font-family: var(--font-sans);
  font-size: 0.67rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.app-dock-pill:hover,
.brand-dock-pill:hover {
  background: rgba(243, 229, 200, 0.10);
  border-color: rgba(243, 229, 200, 0.38);
  color: #ffffff;
  transform: translateY(-1px);
}

.app-dock-pill.active,
.brand-dock-pill.active {
  background: linear-gradient(135deg, rgba(243, 229, 200, 0.24) 0%, rgba(230, 155, 55, 0.18) 100%);
  border-color: rgba(245, 208, 138, 0.82);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(240, 185, 90, 0.25);
}

.dock-pill-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Palcoscenico Sinistro Simulatori (Senza Oscillazione Fastidiosa Durante il Clic) */
.simulator-cinema-rig {
  animation: none !important;
  padding-right: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-rig-Floating-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(7, 13, 19, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.42);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #dffaff;
}

.sim-live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 10px #00f2fe;
  animation: cueDiamondPulse 1.4s ease-in-out infinite alternate;
}

.sim-view-panel[hidden] {
  display: none !important;
}

/* -------------------------------------------------------------------------
   VISTA 01: SMARTHOME — TELEFONO INTERATTIVO + RENDERING 3D OROLOGIO
-------------------------------------------------------------------------- */
.smarthome-dual-rig {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 24px;
  background: radial-gradient(circle at 25% 20%, rgba(18, 34, 54, 0.82) 0%, rgba(7, 11, 16, 0.90) 100%);
  border: 1px solid rgba(243, 229, 200, 0.24);
  box-shadow: 0 32px 75px rgba(0, 0, 0, 0.92), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px);
}

/* Chassis Smartphone Interattivo */
.sh-phone-chassis {
  position: relative;
  border-radius: 28px;
  padding: 9px;
  background: linear-gradient(145deg, #2a3346 0%, #101520 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.85);
}

.sh-phone-notch {
  width: 68px;
  height: 13px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: #05070b;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sh-phone-screen {
  border-radius: 20px;
  padding: 12px;
  background: radial-gradient(circle at 50% 0%, #171d2b 0%, #0a0d14 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-sans);
}

.sh-app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sh-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sh-mini-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.sh-app-name {
  font-size: 0.84rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.sh-app-sub {
  font-size: 0.62rem;
  color: #8ba3c7;
}

.sh-watt-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.14);
  border: 1px solid rgba(0, 242, 254, 0.45);
  font-size: 0.68rem;
  font-weight: 800;
  color: #00f2fe;
}

.sh-quick-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.sh-room-btn,
.sh-master-btn {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.sh-room-btn.active {
  background: rgba(0, 242, 254, 0.18);
  border-color: #00f2fe;
  color: #ffffff;
}

.sh-master-btn {
  margin-left: auto;
  background: rgba(245, 200, 115, 0.14);
  border-color: rgba(245, 200, 115, 0.42);
  color: #ffe3a8;
}

/* Griglia 3x2 Squircle Autentici di SmartHome */
.sh-squircle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sh-squircle {
  position: relative;
  aspect-ratio: 1 / 0.94;
  border-radius: 20px;
  padding: 8px 6px;
  background: #1C2333;
  border: 1.5px solid #455570;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  color: rgba(255, 255, 255, 0.68);
}

.sh-squircle:hover {
  transform: translateY(-2px);
  border-color: #7b93b8;
}

.sh-squircle.is-on {
  background: linear-gradient(180deg, #163652 0%, #0c2234 100%);
  border: 2px solid #00F2FE;
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.25), inset 0 0 12px rgba(0, 242, 254, 0.12);
  color: #ffffff;
}

.sh-squircle.is-filtered-out {
  opacity: 0.22;
  transform: scale(0.94);
}

.sh-led-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transition: all 0.2s ease;
}

.sh-squircle.is-on .sh-led-dot {
  background: #00F2FE;
  box-shadow: 0 0 9px #00F2FE, 0 0 16px #00F2FE;
}

.sh-sq-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.sh-sq-name {
  font-size: 0.64rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
}

.sh-sq-state {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8aa0bf;
}

.sh-squircle.is-on .sh-sq-state {
  color: #00F2FE;
}

.sh-phone-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.60rem;
  color: #8ba3c7;
}

.sh-sync-indicator {
  color: #5ce092;
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   RENDERING 3D SMARTWATCH (GALAXY WATCH 6 CLASSIC) CON APP INTERATTIVA
-------------------------------------------------------------------------- */
.sh-watch-3d-assembly {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.watch-strap {
  width: 96px;
  height: 36px;
  background: linear-gradient(90deg, #10141d 0%, #252d3d 50%, #10141d 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.75);
}

.watch-strap-top {
  border-radius: 14px 14px 2px 2px;
}

.watch-strap-bottom {
  border-radius: 2px 2px 14px 14px;
}

.strap-ridges {
  width: 72%;
  height: 70%;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0px,
    rgba(255, 255, 255, 0.06) 2px,
    rgba(0, 0, 0, 0.35) 2px,
    rgba(0, 0, 0, 0.35) 5px
  );
  border-radius: 4px;
}

.watch-lugs {
  width: 124px;
  height: 10px;
  background: linear-gradient(90deg, #2b3342 0%, #68778f 22%, #1d232e 50%, #68778f 78%, #2b3342 100%);
  border-radius: 4px;
}

.watch-case-outer {
  position: relative;
  width: 248px;
  height: 248px;
  border-radius: 50%;
  padding: 8px;
  background: conic-gradient(
    from 35deg,
    #313947,
    #707e94,
    #222834,
    #5c697d,
    #1c212b,
    #6c7a91,
    #313947
  );
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.92),
    0 0 28px rgba(0, 242, 254, 0.16),
    inset 0 2px 4px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pulsanti Fisici Laterali dell'Orologio */
.watch-side-btn {
  position: absolute;
  right: -7px;
  width: 9px;
  border-radius: 3px 6px 6px 3px;
  background: linear-gradient(180deg, #7c8ca3 0%, #2b3340 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease;
}

.watch-side-btn:hover {
  transform: translateX(1.5px);
}

.watch-btn-top {
  top: 58px;
  height: 32px;
  border-right: 2px solid #ff6b4a;
}

.watch-btn-bottom {
  bottom: 58px;
  height: 26px;
}

/* Ghiera Girevole Zigrinata Galaxy Watch Classic */
.watch-bezel-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 11px;
  background: radial-gradient(circle, #0d1118 62%, #232a38 70%, #121721 100%);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bezel-tick {
  position: absolute;
  inset: 2px;
  pointer-events: none;
}

.bezel-tick::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 5px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.38);
  border-radius: 1px;
}

.t-0 { transform: rotate(0deg); }
.t-30 { transform: rotate(30deg); }
.t-60 { transform: rotate(60deg); }
.t-90 { transform: rotate(90deg); }
.t-120 { transform: rotate(120deg); }
.t-150 { transform: rotate(150deg); }
.t-180 { transform: rotate(180deg); }
.t-210 { transform: rotate(210deg); }
.t-240 { transform: rotate(240deg); }
.t-270 { transform: rotate(270deg); }
.t-300 { transform: rotate(300deg); }
.t-330 { transform: rotate(330deg); }

/* Schermo Circolare OLED dell'Orologio */
.watch-oled-screen {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 25%, #111a29 0%, #020407 78%);
  border: 1.5px solid rgba(0, 242, 254, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px 11px;
  overflow: hidden;
  font-family: var(--font-sans);
}

.watch-app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.watch-time-small {
  font-size: 0.54rem;
  font-weight: 700;
  color: #7f97b8;
}

.watch-title-arc {
  font-size: 0.60rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #00f2fe;
}

/* Le 3 Pillole Curve Adattive One UI Watch (Seguono la Curva della Cassa!) */
.watch-curved-pills {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.watch-pill {
  height: 38px;
  border-radius: 999px;
  padding: 4px 10px 4px 5px;
  background: #1a2232;
  border: 1.5px solid #41516b;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.72);
}

.watch-pill.pill-top,
.watch-pill.pill-bottom {
  width: 82%;
}

.watch-pill.pill-middle {
  width: 95%;
}

.watch-pill:hover {
  transform: scale(1.02);
}

.watch-pill.is-on {
  background: linear-gradient(90deg, #163854 0%, #0d2336 100%);
  border-color: #00F2FE;
  box-shadow: 0 3px 12px rgba(0, 242, 254, 0.28);
  color: #ffffff;
}

.wp-icon-disc {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.watch-pill.is-on .wp-icon-disc {
  background: rgba(0, 242, 254, 0.22);
}

.wp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.08;
  overflow: hidden;
}

.wp-meta strong {
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.wp-meta small {
  font-size: 0.50rem;
  font-weight: 700;
  color: #8ba3c7;
}

.watch-pill.is-on .wp-meta small {
  color: #00F2FE;
}

.wp-led {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.watch-pill.is-on .wp-led {
  background: #00F2FE;
  box-shadow: 0 0 8px #00F2FE;
}

.watch-page-dots {
  display: flex;
  gap: 4px;
}

.watch-page-btn {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.50rem;
  font-weight: 700;
  cursor: pointer;
}

.watch-page-btn.active {
  background: rgba(0, 242, 254, 0.22);
  border-color: #00f2fe;
  color: #ffffff;
}

.watch-caption-tag {
  margin-top: 6px;
  font-size: 0.60rem;
  font-weight: 600;
  color: #f3e5c8;
  text-align: center;
}

/* -------------------------------------------------------------------------
   VISTA 02: CREAMENU — DEMO INTERATTIVA SENZA NOMI
-------------------------------------------------------------------------- */
.creamenu-sim-console,
.dash-sim-console,
.homehub-sim-console,
.wine-sim-console,
.cc-sim-console,
.cs-sim-console,
.er-sim-console {
  padding: 18px;
  border-radius: 22px;
  background: rgba(8, 12, 17, 0.88);
  border: 1px solid rgba(243, 229, 200, 0.26);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(22px);
  font-family: var(--font-sans);
}

.creamenu-sim-console {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}

.cm-editor-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cm-col-head,
.wine-sim-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cm-mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
}

.cm-col-head strong,
.wine-sim-head strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
}

.cm-col-head small,
.wine-sim-head small {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.64);
}

.cm-control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cm-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cm-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f3e5c8;
}

.cm-upload-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 207, 134, 0.22), rgba(212, 168, 91, 0.10));
  border: 1px solid rgba(245, 207, 134, 0.55);
  color: #ffe8b8;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.cm-upload-trigger-btn:hover,
.cm-upload-trigger-btn.has-uploaded {
  background: linear-gradient(135deg, #f5cf86, #d4a048);
  color: #160f06;
  border-color: #fff3d1;
  box-shadow: 0 0 12px rgba(245, 207, 134, 0.45);
}

/* Finestra Simulatore Upload Sfondi & Lavagne (solo sopra la colonna sinistra, lascia libero il menu a destra) */
.cm-uploader-modal {
  position: absolute;
  top: 12px;
  left: 12px;
  bottom: 12px;
  width: calc(51.5% - 14px);
  z-index: 30;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(9, 13, 18, 0.97);
  border: 1.5px solid rgba(245, 207, 134, 0.48);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.cm-uploader-modal[hidden] {
  display: none !important;
}

.cm-up-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cm-up-head strong {
  font-size: 0.74rem;
  color: #ffe8b8;
  letter-spacing: 0.04em;
}

.cm-up-close {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.60rem;
  font-weight: 700;
  cursor: pointer;
}

.cm-up-device-btn {
  width: 100%;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(73, 185, 245, 0.14);
  border: 1px dashed rgba(73, 185, 245, 0.55);
  color: #cfeeff;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s ease;
}

.cm-up-device-btn:hover {
  background: rgba(73, 185, 245, 0.25);
  border-color: #7cd4ff;
}

.cm-up-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  flex: 1;
  align-content: center;
}

.cm-up-card {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cm-up-card:hover,
.cm-up-card.active {
  background: rgba(245, 207, 134, 0.18);
  border-color: #f5cf86;
  transform: translateY(-1px);
}

.cm-up-thumb {
  width: 30px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.cm-up-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cm-up-meta strong {
  font-size: 0.62rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-up-meta small {
  font-size: 0.52rem;
  color: #f5cf86;
  white-space: nowrap;
}

.cm-up-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.58rem;
  color: #86efac;
}

.cm-up-done-btn {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5cf86, #d4a048);
  border: none;
  color: #160f06;
  font-size: 0.58rem;
  font-weight: 800;
  cursor: pointer;
}

.cm-swatch-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.cm-themes-grid-6,
.cm-lang-row {
  grid-template-columns: repeat(3, 1fr);
}

.cm-theme-btn,
.cm-font-btn,
.cm-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cm-bg-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.cm-theme-btn.active,
.cm-font-btn.active,
.cm-lang-btn.active {
  background: rgba(243, 229, 200, 0.22);
  border-color: #f3e5c8;
  color: #ffffff;
}

.cm-dish-edit-row {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 5px;
}

.cm-live-input,
.cm-live-price {
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.72rem;
  font-family: var(--font-sans);
}

.cm-live-price {
  text-align: center;
  font-weight: 700;
  color: #f5cf86;
}

/* Foglio Menu Live (Identico all'originale + supporto sfondi opzionali) */
.cm-preview-col {
  display: flex;
  flex-direction: column;
}

.cm-sheet-safe-area,
.cm-sheet-header-block {
  display: contents;
}

.cm-menu-sheet {
  flex: 1;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.28s ease;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.75);
  background-size: cover;
  background-position: center;
}

.cm-menu-sheet.theme-chalk {
  background:
    radial-gradient(circle at center, rgba(28, 34, 38, 0.46) 0%, rgba(14, 18, 20, 0.72) 100%),
    url('assets/showcase/creamenu-bg/lavagna.webp') center / cover no-repeat;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  color: #f7f4eb;
}

.cm-menu-sheet.theme-gold {
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.34) 0%, rgba(14, 10, 6, 0.52) 100%),
    url('assets/showcase/creamenu-bg/nero_oro.webp') center / cover no-repeat;
  border: 2px solid #d8a84e;
  color: #fff3d1;
}

.cm-menu-sheet.theme-marble {
  background:
    linear-gradient(135deg, rgba(250, 249, 246, 0.42) 0%, rgba(232, 227, 218, 0.55) 100%),
    url('assets/showcase/creamenu-bg/marmo.webp') center / cover no-repeat;
  border: 2px solid #b8ab93;
  color: #1a1815;
}

.cm-menu-sheet.theme-kraft {
  background:
    linear-gradient(135deg, rgba(204, 173, 128, 0.38) 0%, rgba(168, 135, 90, 0.50) 100%),
    url('assets/showcase/creamenu-bg/kraft.webp') center / cover no-repeat;
  border: 2px solid #594122;
  color: #1f1408;
}

.cm-menu-sheet.theme-parchment {
  background:
    linear-gradient(135deg, rgba(242, 226, 196, 0.30) 0%, rgba(214, 188, 144, 0.44) 100%),
    url('assets/showcase/creamenu-bg/pergamena.webp') center / cover no-repeat;
  border: 2px solid #7a5832;
  color: #261708;
}

.cm-menu-sheet.theme-wine {
  background:
    radial-gradient(circle at center, rgba(52, 10, 18, 0.36) 0%, rgba(24, 4, 8, 0.62) 100%),
    url('assets/showcase/creamenu-bg/vino.webp') center / cover no-repeat;
  border: 2px solid #c9964c;
  color: #ffefd4;
}

/* Auto-Fit Lavagnette & Sfondi Caricati: il testo si sistema da solo dentro la cornice senza cambiare l'altezza del foglio */
.cm-menu-sheet[data-cm-fit] {
  background-image: var(--cm-custom-veil, radial-gradient(circle, rgba(0,0,0,0.35), rgba(0,0,0,0.55))), var(--cm-custom-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  gap: 4px;
  border: 2px solid rgba(245, 207, 134, 0.38);
  color: #f7f4eb;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.cm-menu-sheet[data-cm-fit] .cm-sheet-title {
  font-size: 1.08rem;
  line-height: 1.15;
}

.cm-menu-sheet[data-cm-fit] .cm-sheet-items {
  gap: 5px;
}

.cm-menu-sheet[data-cm-fit] .cm-item-top {
  font-size: 0.82rem;
}

.cm-menu-sheet[data-cm-fit] .cm-sheet-item small {
  font-size: 0.64rem;
  line-height: 1.22;
}

.cm-menu-sheet[data-cm-fit] .cm-sheet-footer {
  padding-top: 5px;
  font-size: 0.54rem;
}

/* 1. Cornice in legno con posate negli angoli (bg_lavagna_pro_2) */
.cm-menu-sheet[data-cm-fit="wood-frame"] {
  --cm-custom-veil: radial-gradient(circle at center, rgba(16, 20, 22, 0.22) 0%, rgba(12, 15, 17, 0.45) 100%);
  padding: 20px 30px;
}

.cm-menu-sheet[data-cm-fit="wood-frame"] .cm-sheet-ornament,
.cm-menu-sheet[data-cm-fit="wood-frame"] .cm-sheet-title {
  max-width: 78%;
  margin-left: auto;
  margin-right: auto;
}

/* 2. Lavagna rustica con mensola gessetti e cancellino in basso (bg_lavagna_pro_8) */
.cm-menu-sheet[data-cm-fit="chalk-ledge"] {
  --cm-custom-veil: radial-gradient(circle at center, rgba(16, 20, 22, 0.25) 0%, rgba(12, 15, 17, 0.50) 100%);
  padding: 18px 34px 28px;
}

/* 3. Ardesia con Limoni o Peperoncini agli angoli (bg_lavagna_pro_6 / bg_lavagna_pro_1) */
.cm-menu-sheet[data-cm-fit="corner-botanical"] {
  --cm-custom-veil: radial-gradient(ellipse at center, rgba(14, 18, 20, 0.78) 38%, rgba(14, 18, 20, 0.24) 100%);
  padding: 22px 26px;
}

/* 4. Lavagna con ventaglio di posate in alto (bg_lavagna_pro_4) */
.cm-menu-sheet[data-cm-fit="top-crest"] {
  --cm-custom-veil: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(14, 17, 19, 0.55) 35%, rgba(14, 17, 19, 0.65) 100%);
  padding: 50px 30px 18px;
}

.cm-menu-sheet[data-cm-fit="top-crest"] .cm-sheet-ornament {
  display: none;
}

/* 5. Tavola fotografica con calici/uva o erbe aromatiche ai bordi (tpl_vino / tpl_erbe) */
.cm-menu-sheet[data-cm-fit="table-frame"] {
  --cm-custom-veil: radial-gradient(ellipse at center, rgba(16, 11, 8, 0.82) 44%, rgba(16, 11, 8, 0.28) 100%);
  padding: 20px 24px;
}

/* 6. Cartelletta in cuoio con clip metallica in alto e foglio chiaro (bg_lavagna_pro_5) */
.cm-menu-sheet[data-cm-fit="clipboard-light"] {
  --cm-custom-veil: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(246, 240, 228, 0.18) 100%);
  padding: 48px 28px 20px;
  color: #22160a;
  text-shadow: none;
  border-color: #6e4e2e;
}

.cm-menu-sheet[data-cm-fit="clipboard-light"] .cm-sheet-ornament {
  display: none;
}

/* 7. Qualsiasi foto caricata dal PC/Telefono dell'utente */
.cm-menu-sheet[data-cm-fit="user-upload"] {
  --cm-custom-veil: radial-gradient(ellipse at center, rgba(12, 15, 18, 0.78) 45%, rgba(12, 15, 18, 0.45) 100%);
  padding: 20px 24px;
}

.cm-menu-sheet.font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

.cm-menu-sheet.font-modern {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cm-menu-sheet.font-script {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}

.cm-sheet-ornament {
  text-align: center;
  font-size: 0.60rem;
  letter-spacing: 0.22em;
  opacity: 0.8;
}

.cm-sheet-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.cm-sheet-divider {
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}

.cm-sheet-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cm-item-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.92rem;
}

.cm-item-dots {
  flex: 1;
  border-bottom: 1px dotted currentColor;
  opacity: 0.35;
}

.cm-sheet-item small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.75;
}

.cm-sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(128, 128, 128, 0.25);
  font-family: var(--font-sans);
  font-size: 0.60rem;
  font-style: normal;
}

.cm-qr-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.22);
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   VISTA 03: DASHBOARD LIVE DEMO (TELEMETRIA, PROFILI & WAKE-ON-LAN)
-------------------------------------------------------------------------- */
.dash-sim-console {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-node-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dash-node-btn {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
}

.dash-node-btn.active {
  background: rgba(0, 242, 254, 0.18);
  border-color: #00f2fe;
  color: #ffffff;
}

.dash-status-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
}

.dash-status-pill.is-online {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #5ce092;
}

.dash-status-pill.is-standby {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid #f59e0b;
  color: #fcd34d;
}

.dash-gauges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dash-gauge-card {
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.dash-ring-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 7;
}

.ring-fill {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-fill.cyan { stroke: #00f2fe; }
.ring-fill.emerald { stroke: #10b981; }
.ring-fill.purple { stroke: #a855f7; }
.ring-fill.amber { stroke: #f59e0b; }

.ring-val {
  position: absolute;
  font-size: 0.80rem;
  font-weight: 800;
  color: #ffffff;
}

.gauge-label {
  font-size: 0.60rem;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.gauge-label b {
  color: #f3e5c8;
}

.dash-controls-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dash-ctrl-box {
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dash-box-title {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f3e5c8;
}

.dash-profile-pills,
.dash-action-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dash-prof-btn,
.dash-cmd-btn {
  flex: 1;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dash-prof-btn.active {
  background: rgba(0, 242, 254, 0.20);
  border-color: #00f2fe;
}

.dash-cmd-btn:hover {
  background: rgba(243, 229, 200, 0.16);
  border-color: #f3e5c8;
}

.dash-cmd-btn.wol-btn {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.45);
  color: #86efac;
}

.dash-console-log {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border-left: 3px solid #00f2fe;
  font-size: 0.68rem;
  color: #d9f8ff;
}

/* -------------------------------------------------------------------------
   VISTA 04: HOMEHUB & CLOUD PRIVATO ("I TUOI MONDI")
-------------------------------------------------------------------------- */
.homehub-sim-console {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.hh-eyebrow {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #49B9F5;
}

.hh-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 0;
}

.hh-storage-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(73, 185, 245, 0.14);
  border: 1px solid rgba(73, 185, 245, 0.4);
  font-size: 0.64rem;
  font-weight: 700;
  color: #bce8ff;
}

.hh-tiles-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.hh-world-tile {
  padding: 12px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.22s ease;
  color: #ffffff;
}

.hh-world-tile:hover,
.hh-world-tile.active {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.14), rgba(10, 16, 26, 0.9));
  border-color: var(--tile-clr, #49B9F5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px color-mix(in srgb, var(--tile-clr, #49B9F5) 40%, transparent);
  transform: translateY(-2px);
}

.hh-tile-icon {
  font-size: 1.35rem;
}

.hh-world-tile strong {
  font-size: 0.68rem;
}

.hh-world-tile small {
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.62);
}

.hh-world-preview {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hh-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.hh-preview-top strong {
  font-size: 0.78rem;
  color: #ffffff;
}

.hh-action-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(73, 185, 245, 0.2);
  border: 1px solid #49B9F5;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
}

.hh-preview-desc {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.78);
}

.hh-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hh-mini-card {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.85);
}

.hh-mini-card b {
  color: #f3e5c8;
}

/* -------------------------------------------------------------------------
   VISTE 05, 06, 07, 08: MOMENTIDIVINI, CASACONTAINER, CRYPTOSAFE, EMAREMOTE
-------------------------------------------------------------------------- */
.wine-sim-console,
.cc-sim-console,
.cs-sim-console,
.er-sim-console {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wine-pairing-buttons,
.er-hosts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.er-hosts-row {
  grid-template-columns: repeat(3, 1fr);
}

.wine-dish-btn,
.er-host-card {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wine-dish-btn.active,
.er-host-card.active {
  background: rgba(243, 229, 200, 0.20);
  border-color: #f3e5c8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.wine-result-card,
.cs-vault-card,
.er-remote-screen {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(243, 229, 200, 0.22);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wine-res-header,
.cc-top-row,
.cs-card-top,
.er-screen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wine-badge-doc {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f5cf86;
}

.wine-out-name {
  margin: 2px 0 0;
  font-size: 1.02rem;
  color: #ffffff;
}

.wine-temp-pill,
.cc-budget-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(243, 229, 200, 0.16);
  border: 1px solid #f3e5c8;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff6df;
}

.wine-out-notes {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.42;
}

.wine-bars-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wine-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.75);
}

.w-bar,
.cc-progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  overflow: hidden;
}

.w-bar i,
.cc-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e5b352 0%, #00f2fe 100%);
  transition: width 0.35s ease;
}

/* CasaContainer */
.cc-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.cc-mod-btn {
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.cc-mod-btn.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10b981;
  color: #ffffff;
}

.cc-mod-btn b {
  color: #f3e5c8;
}

.cc-budget-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.82);
}

/* CryptoSafe */
.cs-mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cs-mode-btn,
.cs-reveal-btn,
.er-act-btn {
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
}

.cs-mode-btn.active {
  background: rgba(0, 242, 254, 0.18);
  border-color: #00f2fe;
}

.cs-seed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.cs-seed-grid span,
.cs-ex-row {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: monospace;
  font-size: 0.66rem;
  color: #d9f8ff;
}

.cs-ex-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.cs-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.72);
}

.cs-clr-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.cs-clr-dot.active {
  transform: scale(1.2);
  border-color: #ffffff;
}

.cs-zero-net {
  margin-left: auto;
  color: #5ce092;
  font-weight: 700;
}

/* EmaRemote */
.er-host-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.er-host-card small {
  font-size: 0.58rem;
  color: #5ce092;
}

.er-enc-badge {
  font-size: 0.62rem;
  color: #5ce092;
  font-weight: 700;
}

.er-mock-window {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #04070a;
}

.er-mock-head {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.60rem;
  color: #f3e5c8;
}

.er-mock-code {
  padding: 10px;
  font-family: monospace;
  font-size: 0.66rem;
  line-height: 1.45;
  color: #7ef29d;
}

.er-quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* =========================================================================
   RADURA 04 (Z = 6300) : LOGHI, ETICHETTE, PACKAGING & BRAND CONCEPT STUDIO
========================================================================= */
.brand-studio-dock {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brand-view-panel {
  width: 100%;
  animation: simFadeIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-view-panel[hidden] {
  display: none !important;
}

.brand-sim-console {
  padding: 16px;
  border-radius: 22px;
  background: rgba(8, 12, 17, 0.90);
  border: 1px solid rgba(243, 229, 200, 0.28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(22px);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brand-board-hero-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(245, 207, 134, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  background: #0a0c0e;
}

.brand-board-full-img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
}

.brand-board-quick-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.78);
}

.brand-jump-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(243, 229, 200, 0.12);
  border: 1px solid rgba(243, 229, 200, 0.32);
  color: #f5cf86;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.brand-jump-pill:hover {
  background: rgba(243, 229, 200, 0.24);
  color: #ffffff;
}

/* Vista 2: Selettore 5 Etichette (Pils, IPA, Amber, Weiss, Stout) */
.brand-styles-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.brand-style-card {
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.brand-style-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 207, 134, 0.55);
}

.brand-style-card.active {
  background: rgba(243, 229, 200, 0.18);
  border: 2px solid #f5cf86;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65), 0 0 14px rgba(245, 207, 134, 0.35);
}

.brand-style-card img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  border-radius: 6px;
}

.brand-style-card span {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #f5cf86;
}

.brand-style-card small {
  font-size: 0.52rem;
  color: rgba(255, 255, 255, 0.68);
  white-space: nowrap;
}

.brand-label-inspector {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(243, 229, 200, 0.2);
}

.brand-diecut-preview {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 10px;
  align-items: center;
}

.brand-diecut-preview img {
  width: 100%;
  max-height: 195px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75);
}

.brand-label-specs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.brand-spec-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid #f5cf86;
  color: #ffffff;
}

.brand-label-specs h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #f5cf86;
}

.brand-label-specs p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84);
}

.brand-spec-pills {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.78);
}

.brand-spec-pills b {
  color: #ffffff;
}

/* Vista 3: Bottiglia, Calice Inciso & Packaging 6-Pack */
.brand-pack-dual-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 12px;
  align-items: stretch;
}

.brand-pack-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(243, 229, 200, 0.22);
  display: flex;
  flex-direction: column;
}

.brand-pack-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.brand-pack-caption {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-pack-caption strong {
  font-size: 0.74rem;
  color: #f5cf86;
}

.brand-pack-caption small {
  font-size: 0.63rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Vista 4: Sistema Visivo (Emblema + Varianti + Palette Interattiva) */
.brand-system-split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 12px;
  align-items: center;
}

.brand-emblem-box img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(245, 207, 134, 0.3);
}

.brand-system-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-system-strip-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.brand-palette-interactive {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(243, 229, 200, 0.2);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.brand-swatches-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-clr-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.brand-clr-swatch.active {
  transform: scale(1.18);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(245, 207, 134, 0.6);
}

.brand-clr-readout {
  margin-left: auto;
  font-size: 0.66rem;
  font-weight: 700;
  color: #f5cf86;
}

/* =========================================================================
   LIVE SHOWROOM INTERACTIVE MODAL (STILE CRISTALLO SOLARE · ZERO EMOJI · 1 RIGA)
========================================================================= */
.live-showroom-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.live-showroom-modal[hidden] {
  display: none !important;
}

.showroom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 8, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.showroom-window {
  position: relative;
  z-index: 2;
  width: min(1520px, 96vw);
  height: min(910px, 93vh);
  border-radius: 20px;
  background: #06080b;
  border: 1px solid rgba(255, 212, 142, 0.22);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.96),
    inset 0 1px 0 rgba(255, 240, 206, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.showroom-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 9px 16px;
  background:
    radial-gradient(60% 120% at 0% 50%, rgba(255, 166, 52, 0.08) 0%, transparent 65%),
    linear-gradient(145deg, rgba(12, 15, 19, 0.95) 0%, rgba(7, 9, 12, 0.98) 100%);
  border-bottom: 1px solid rgba(255, 212, 145, 0.15);
  overflow-x: auto;
  scrollbar-width: none;
}

.showroom-topbar::-webkit-scrollbar {
  display: none;
}

.showroom-site-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.showroom-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-right: 6px;
  margin-right: 2px;
  border-right: 1px solid rgba(255, 212, 145, 0.16);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 232, 194, 0.78);
}

.showroom-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 214, 148, 0.12);
  color: rgba(255, 240, 218, 0.68);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.64rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.showroom-tab-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.76rem;
  color: rgba(255, 204, 122, 0.62);
}

.showroom-tab:hover {
  background: rgba(255, 185, 88, 0.08);
  border-color: rgba(255, 206, 128, 0.36);
  color: #fffaf0;
}

.showroom-tab.active {
  background: linear-gradient(135deg, rgba(245, 162, 52, 0.22) 0%, rgba(196, 104, 18, 0.32) 100%);
  border-color: rgba(255, 214, 144, 0.68);
  color: #fffaf0;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 214, 0.28),
    0 4px 14px rgba(228, 122, 20, 0.18);
}

.showroom-tab.active .showroom-tab-num {
  color: #ffd996;
}

.showroom-right-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.showroom-device-Controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 214, 148, 0.16);
}

.device-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 238, 212, 0.62);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.device-toggle-btn svg {
  color: #ffd996;
  opacity: 0.75;
  flex-shrink: 0;
}

.device-toggle-btn:hover {
  color: #fffaf0;
}

.device-toggle-btn.active {
  background: rgba(245, 162, 52, 0.2);
  border-color: rgba(255, 210, 136, 0.52);
  color: #fffaf0;
}

.device-toggle-btn.active svg {
  opacity: 1;
}

.btn-showroom-Order {
  padding: 7px 13px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(245, 168, 62, 0.34) 0%, rgba(212, 110, 18, 0.5) 52%, rgba(255, 210, 128, 0.28) 100%);
  border: 1px solid rgba(255, 216, 148, 0.68);
  color: #fffaf0;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 220, 0.35),
    0 6px 16px rgba(228, 122, 20, 0.22);
  transition: all 0.18s ease;
}

.btn-showroom-Order:hover {
  transform: translateY(-1px);
  border-color: #ffe2a8;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.55),
    0 8px 20px rgba(242, 142, 32, 0.34);
}

.btn-showroom-ext,
.btn-showroom-close {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 214, 148, 0.18);
  color: rgba(255, 244, 226, 0.86);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-showroom-ext:hover,
.btn-showroom-close:hover {
  transform: translateY(-1px);
  background: rgba(255, 185, 88, 0.12);
  border-color: rgba(255, 206, 128, 0.52);
  color: #ffffff;
}

.showroom-ext-arrow,
.btn-showroom-close svg {
  color: #ffd996;
}

.showroom-stage-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #14110c 0%, #060809 100%);
  overflow: hidden;
}

.showroom-frame-wrapper {
  width: 100%;
  height: 100%;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-radius 0.35s ease;
  overflow: hidden;
  background: #080b0c;
}

.showroom-stage-area[data-mode="mobile"] {
  padding: 18px;
}

.showroom-stage-area[data-mode="mobile"] .showroom-frame-wrapper {
  width: 396px;
  height: min(812px, 100%);
  border-radius: 36px;
  border: 6px solid #c69245;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.95);
}

#showroom-live-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================================================
   2D HEIGHT-AWARE ADAPTATION FOR SURFACE (3:2 @ 200% DPI) & LAPTOP DISPLAYS
========================================================================= */
@media (min-width: 769px) and (max-height: 880px) {
  .distillery-border-frame {
    inset: 10px;
  }

  .atelier-corner-header {
    top: 16px;
    left: 24px;
    right: 24px;
  }

  .style-icons-cluster {
    bottom: 16px;
    right: 26px;
    gap: 20px;
    transform: scale(0.90);
    transform-origin: bottom right;
  }

  .trail-compass-hud {
    left: clamp(18px, 2.4vw, 36px);
    right: auto;
  }

  .compass-rail {
    gap: clamp(18px, 2.4dvh, 24px);
  }

  .wp-text strong {
    font-size: clamp(1.06rem, min(1.4vw, 2.15dvh), 1.44rem);
  }

  .showroom-window {
    height: min(880px, 94dvh);
  }
}

@media (min-width: 769px) and (max-height: 770px) {
  .atelier-corner-header {
    top: 12px;
    left: 20px;
    right: 20px;
  }

  .corner-brand-img {
    width: 34px;
    height: 34px;
  }

  .corner-wordmark-img {
    height: 30px;
  }

  .constellation-sky-cluster {
    transform: scale(0.88);
    transform-origin: top right;
  }

  .style-icons-cluster {
    bottom: 12px;
    right: 22px;
    transform: scale(0.82);
    transform-origin: bottom right;
  }

  .compass-rail {
    gap: clamp(15px, 2.1dvh, 20px);
  }

  .cue-star-stem {
    height: 12px;
  }
}

@media (max-width: 1080px) {
  .trail-compass-hud {
    top: auto;
    bottom: 12px;
    left: 0;
    right: 0;
    transform: none;
    width: 100vw;
    max-width: none;
    height: 60px;
    z-index: 65;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
  }

  .compass-rail {
    position: relative;
    width: 100%;
    height: 60px;
    padding: 0;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* Delicate Celestial Brass Horizon Thread in the Forest Mist (Zero Box) */
  .compass-rail::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(245, 202, 120, 0.18) 20%,
      rgba(255, 232, 175, 0.62) 50%,
      rgba(245, 202, 120, 0.18) 80%,
      transparent 100%
    );
    pointer-events: none;
  }

  .compass-rail::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 140px;
    height: 30px;
    transform: translateX(-50%);
    background: radial-gradient(
      ellipse at center,
      rgba(255, 208, 110, 0.25) 0%,
      rgba(235, 150, 45, 0.08) 52%,
      transparent 76%
    );
    pointer-events: none;
  }

  .compass-waypoint {
    position: absolute;
    left: 50%;
    top: 7px;
    align-items: center;
    text-align: center;
    padding: 0 10px;
    border-radius: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform-origin: center top;
    pointer-events: auto;
    will-change: transform, opacity, filter;
  }

  /* Glowing Star-Diamond Node on the Golden Horizon Thread */
  .compass-waypoint::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    margin-bottom: 5px;
    transform: rotate(45deg);
    background: rgba(245, 208, 138, 0.52);
    box-shadow: 0 0 6px rgba(245, 190, 88, 0.55);
    transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  }

  .compass-waypoint.active {
    background: transparent !important;
  }

  .compass-waypoint.active::before {
    background: #fffdf5;
    transform: rotate(45deg) scale(1.35);
    box-shadow:
      0 0 8px #ffffff,
      0 0 16px rgba(255, 212, 115, 0.95),
      0 0 28px rgba(235, 150, 45, 0.85);
  }

  .wp-text {
    align-items: center;
    gap: 1px;
  }

  .wp-text strong {
    font-size: 1.06rem;
    white-space: nowrap;
  }

  .wp-text small {
    display: block;
    font-size: 0.43rem;
    letter-spacing: 0.20em;
    white-space: nowrap;
  }

  .clearing-stage-layout,
  .clearing-stage-layout.layout-reverse {
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
    width: 92vw;
  }

  .cabin-stage-wrap,
  .about-stage-wrap,
  .software-stage-wrap {
    margin-left: 0;
    margin-right: 0;
    width: 92vw;
  }
}

@media (max-width: 768px) {
  /* 1. Engraved Border Frame & Top Header */
  .distillery-border-frame {
    inset: 6px;
  }

  .atelier-corner-header {
    top: 10px;
    left: 14px;
    right: 10px;
  }

  .corner-brand-img {
    width: 34px;
    height: 34px;
  }

  .corner-wordmark-img {
    display: none;
  }

  .constellation-sky-cluster {
    transform: scale(0.74);
    transform-origin: top right;
    margin-right: -6px;
    margin-top: -4px;
  }

  /* Always show the active atmosphere label under LUCE on touchscreens */
  .star-luce .star-sky-state {
    opacity: 0.92;
    transform: translateY(0) scale(0.92);
    font-size: 0.68rem;
  }

  /* 2. Style Chooser Gate Overlay (Forest vs Fluido) */
  .style-chooser-gate {
    padding: 14px;
    overflow-y: auto;
    align-items: center;
  }

  .chooser-inner {
    gap: 10px;
  }

  .chooser-eyebrow {
    font-size: 0.48rem;
    letter-spacing: 0.14em;
    gap: 6px;
  }

  .chooser-wordmark {
    width: min(195px, 56vw);
  }

  .chooser-subtitle {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .chooser-cards-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 2px;
  }

  .chooser-style-card {
    padding: 14px 16px 12px;
    gap: 6px;
    border-radius: 14px;
  }

  .chooser-card-icon {
    width: 40px;
    height: 40px;
  }

  .chooser-card-title {
    font-size: 1.45rem;
  }

  .chooser-card-desc {
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .chooser-card-cta {
    margin-top: 2px;
    font-size: 0.56rem;
  }

  /* 3. Bottom-Right Style Icons (Forest / Fluido) above the bottom nav bar */
  .style-icons-cluster {
    bottom: 62px;
    right: 12px;
    gap: 12px;
    transform: scale(0.70);
    transform-origin: bottom right;
  }

  /* 4. 3D Corridor Pine Trees (slimmer on mobile so they frame the edges without covering content) */
  .pine-tree-3d {
    width: 130px;
    height: 50vh;
    opacity: 0.55;
  }

  /* 5. Scene 00: Bulldog Hero Portal */
  .scene-bulldog-portal {
    justify-content: center;
    gap: 8px;
    padding: 58px 12px 64px;
  }

  .saloon-arch-header {
    gap: 4px;
  }

  .saloon-eyebrow {
    font-size: 0.44rem;
    letter-spacing: 0.12em;
    gap: 6px;
  }

  .line-brass {
    width: 14px;
  }

  .hero-wordmark-img {
    width: min(225px, 64vw);
  }

  .saloon-sub-motto {
    font-size: clamp(1.04rem, 4.4vw, 1.18rem);
    font-weight: 600;
    max-width: min(340px, 90vw);
    line-height: 1.32;
    color: #fff9eb;
  }

  .portal-bulldog-centerpiece {
    width: min(270px, 72vw, 43dvh);
    margin: 0 auto;
  }

  /* 6. Scenes 01, 02, 03: The 3 Forest Clearings */
  .clearing-stage-layout,
  .clearing-stage-layout.layout-reverse {
    display: flex;
    flex-direction: column;
    width: 92vw;
    max-height: calc(100dvh - 118px);
    gap: 8px;
    margin: 0 auto;
    justify-content: center;
  }

  .clearing-stage-layout .clearing-cinema-rig,
  .clearing-stage-layout.layout-reverse .clearing-cinema-rig {
    order: 1;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 0;
    animation: none;
  }

  .clearing-stage-layout .clearing-signpost,
  .clearing-stage-layout.layout-reverse .clearing-signpost {
    order: 2;
    width: 100%;
    gap: 6px;
    padding: 11px 13px;
    border-radius: 14px;
    background: rgba(5, 8, 10, 0.84);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(235, 195, 125, 0.22);
  }

  .hanging-brass-chains {
    display: none;
  }

  .frame-top-plaque {
    padding: 5px 10px;
  }

  .plaque-domain {
    font-size: 0.52rem;
  }

  .frame-screen-canvas {
    aspect-ratio: 16 / 9;
    max-height: 20dvh;
  }

  .cinema-frame-mobile {
    width: 20%;
    right: 6px;
    bottom: -4px;
    border-radius: 10px;
    padding: 2px;
  }

  .signpost-stamp {
    font-size: 0.48rem;
    letter-spacing: 0.16em;
  }

  .clearing-title {
    font-size: clamp(1.45rem, 5.8vw, 1.85rem);
    gap: 2px;
  }

  .amber-italic {
    font-size: 0.52rem;
    letter-spacing: 0.14em;
  }

  .clearing-lead {
    font-size: 0.78rem;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .clearing-whisper-notes {
    display: none;
  }

  .clearing-view-selector {
    gap: 10px;
    padding-top: 0;
  }

  .screen-pill {
    font-size: 0.52rem;
    letter-spacing: 0.11em;
    padding: 2px 0 3px;
  }

  .clearing-cta-row {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
  }

  .btn-distillery-primary {
    padding: 8px 14px;
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }

  .btn-distillery-ghost {
    font-size: 0.84rem;
    padding: 3px 2px;
  }

  .btn-round-brass {
    width: 28px;
    height: 28px;
    font-size: 0.74rem;
  }

  /* 7. Scene 04: La Bottega Contact Form */
  .cabin-stage-wrap {
    width: 92vw;
    max-height: calc(100dvh - 118px);
    overflow-y: auto;
    padding: 14px;
    gap: 10px;
    border-radius: 16px;
    background: rgba(6, 9, 11, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(235, 195, 125, 0.24);
  }

  .cabin-ledger-form {
    gap: 10px;
  }

  .cabin-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .about-pillars-grid,
  .software-arsenal-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-pillar-card,
  .software-tech-card {
    padding: 11px 13px;
    gap: 5px;
    border-radius: 12px;
  }

  .pillar-title,
  .tech-card-title {
    font-size: 0.92rem;
  }

  .pillar-desc,
  .tech-card-desc {
    font-size: 0.76rem;
    line-height: 1.36;
  }

  .clearing-quick-stepper {
    gap: 4px;
    padding-bottom: 4px;
  }

  .stepper-node {
    padding: 3px 7px;
    font-size: 0.50rem;
  }

  .chip-group {
    gap: 6px;
  }

  .luxury-chip {
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .cabin-inputs-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cabin-field label {
    font-size: 0.54rem;
  }

  .cabin-field input {
    padding: 6px 4px;
    font-size: 0.86rem;
  }

  .cabin-submit-bar {
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
  }

  /* 8. Live Showroom Modal on Mobile */
  .live-showroom-modal {
    padding: 0;
  }

  .showroom-window {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .showroom-topbar {
    padding: 8px 10px;
    gap: 6px;
  }

  .showroom-kicker,
  .showroom-device-Controls {
    display: none;
  }

  .showroom-tab {
    padding: 5px 9px;
    font-size: 0.58rem;
  }

  .btn-showroom-Order,
  .btn-showroom-ext,
  .btn-showroom-close {
    padding: 5px 9px;
    font-size: 0.58rem;
  }

  /* 9. Simulator Rig Responsive on Mobile */
  .clearing-stage-layout .simulator-cinema-rig {
    max-width: 100%;
  }

  .app-sim-dock {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 4px;
  }

  .app-dock-pill {
    padding: 4px 5px;
    font-size: 0.52rem;
    gap: 4px;
  }

  .dock-pill-icon {
    width: 14px;
    height: 14px;
  }

  .smarthome-dual-rig,
  .creamenu-sim-console {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
  }

  .cm-uploader-modal {
    width: calc(100% - 20px);
    left: 10px;
    right: 10px;
  }

  .watch-strap {
    height: 18px;
  }

  .watch-case-outer {
    width: 196px;
    height: 196px;
  }

  .dash-gauges-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-controls-split,
  .hh-items-grid,
  .wine-pairing-buttons,
  .er-hosts-row {
    grid-template-columns: 1fr;
  }

  .hh-tiles-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================================
   V129 — COLLETTORE UNIFICATO SITI & TEMPLATE ("BAM-BAM-BAM") + 10 APP DOCK
============================================================================ */
.sites-collector-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
}

.site-cat-filter {
  appearance: none;
  background: rgba(14, 18, 22, 0.72);
  border: 1px solid rgba(223, 175, 104, 0.25);
  color: rgba(255, 244, 224, 0.78);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.site-cat-filter:hover {
  border-color: rgba(242, 184, 92, 0.6);
  color: #fff8ea;
}

.site-cat-filter.active,
.site-cat-filter.is-active {
  background: linear-gradient(135deg, rgba(223, 175, 104, 0.26), rgba(185, 125, 45, 0.18));
  border-color: #f2b85c;
  color: #ffe3ae;
  box-shadow: 0 0 14px rgba(242, 184, 92, 0.22);
}

.sites-bambam-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.site-bambam-pill {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(12, 16, 20, 0.78);
  border: 1px solid rgba(223, 175, 104, 0.22);
  color: #f7ebd4;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.site-bambam-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 184, 92, 0.58);
  background: rgba(24, 28, 34, 0.88);
}

.site-bambam-pill.active,
.site-bambam-pill.is-active {
  background: linear-gradient(135deg, rgba(242, 184, 92, 0.22), rgba(30, 22, 12, 0.92));
  border-color: #f4c16d;
  box-shadow: 0 4px 16px rgba(242, 184, 92, 0.22), inset 0 0 0 1px rgba(255, 224, 166, 0.22);
}

.site-bambam-pill.is-hidden-by-cat {
  display: none !important;
}

.bambam-order,
.bambam-pill-badge {
  font-family: var(--font-display, 'Cinzel', serif);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #e6b35a;
}

.site-bambam-pill strong,
.bambam-pill-name {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff9ee;
  line-height: 1.18;
}

.site-bambam-pill small {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.62rem;
  color: rgba(255, 236, 200, 0.7);
  line-height: 1.15;
}

.bambam-pages-strip {
  margin-top: 8px;
}

#sites-bambam-stage.is-bambam-switching .cinema-frame-desktop,
#sites-bambam-stage.is-bambam-switching .cinema-frame-mobile {
  transform: scale(0.975) translateY(4px);
  filter: brightness(1.18);
  transition: transform 0.14s ease, filter 0.14s ease;
}

/* 10-App Dock compact wrap */
.app-sim-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.app-sim-dock .app-dock-pill {
  padding: 4px 8px;
  font-size: 0.68rem;
}

/* ============================================================================
   V133–V137 — FINESTRA 02 CONCEPT 1: GHIERA SOLARE ROTANTE + SCHEDA CRISTALLO SOLARE
============================================================================ */
.sites-lens-concept1 {
  width: min(1260px, 87vw) !important;
  max-width: 1260px !important;
  margin-left: auto !important;
  margin-right: 108px !important; /* Lascia libera la bussola a destra */
  display: grid !important;
  grid-template-columns: 425px minmax(14px, 1fr) 585px !important;
  align-items: center !important;
  gap: 0 !important;
}

/* 1. SINISTRA: GHIERA SOLARE ETEREA + SUPERFICIE DI AGGANCIO ESTESA FINO A TUTTO IL NOME DEL PROGETTO */
.lens-wheel-stage {
  position: relative;
  width: 455px;
  height: clamp(500px, 68dvh, 620px);
  user-select: none;
  z-index: 12;
}

/* Superficie continua di aggancio dello scroll: parte dalla ruota a sinistra e copre fino alla fine del nome e badge del progetto */
.lens-wheel-stage::before {
  content: "";
  position: absolute;
  top: -20px;
  bottom: -20px;
  left: -140px;
  width: 845px;
  pointer-events: auto;
  z-index: 1;
}

.lens-wheel-svg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 460 / 620;
  pointer-events: none;
  overflow: visible;
}

.lens-cat-mini-bar {
  position: absolute;
  bottom: 32px;
  left: 12px;
  z-index: 35;
  display: flex;
  gap: 5px;
  margin: 0 !important;
}

.lens-cat-mini-bar .site-cat-filter {
  padding: 4px 10px;
  font-size: 0.62rem;
  background: rgba(10, 12, 15, 0.78);
  border: 1px solid rgba(255, 157, 46, 0.25);
  color: rgba(255, 238, 215, 0.72);
}

.lens-cat-mini-bar .site-cat-filter.active {
  background: rgba(255, 157, 46, 0.2);
  border-color: #ff9d2e;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 157, 46, 0.28);
}

.lens-wheel-items {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 700px !important;
  display: block !important;
  margin: 0 !important;
  pointer-events: auto;
  z-index: 5;
}

.lens-wheel-items .site-bambam-pill {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px;
  padding: 6px 10px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform-origin: left center;
  white-space: nowrap;
  cursor: pointer;
}

.wheel-item-num {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.66rem;
  font-weight: 700;
  color: rgba(235, 145, 45, 0.58);
  min-width: 18px;
  transition: color 0.2s ease, font-size 0.2s ease;
}

.wheel-item-dash {
  width: 14px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease, box-shadow 0.25s ease;
}

.wheel-item-title {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.48) !important;
  transition: font-size 0.22s ease, color 0.22s ease;
}

.wheel-item-badge {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  transition: all 0.22s ease;
}

.lens-wheel-items .site-bambam-pill:hover .wheel-item-title {
  color: rgba(255, 255, 255, 0.85) !important;
}

.lens-wheel-items .site-bambam-pill.active .wheel-item-num {
  font-size: 0.76rem;
  color: #ff9d2e;
  text-shadow: 0 0 10px rgba(255, 157, 46, 0.65);
}

.lens-wheel-items .site-bambam-pill.active .wheel-item-dash {
  width: 28px;
  height: 2px;
  background: #ff9d2e;
  box-shadow: 0 0 12px #ff9d2e;
}

.lens-wheel-items .site-bambam-pill.active .wheel-item-title {
  font-size: 1.26rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.95);
}

.lens-wheel-items .site-bambam-pill.active .wheel-item-badge {
  background: rgba(255, 157, 46, 0.14);
  border-color: rgba(255, 157, 46, 0.78);
  color: #fff5e6;
  box-shadow: 0 0 14px rgba(255, 157, 46, 0.25);
}

.lens-wheel-scroll-hint {
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 185, 105, 0.58);
  pointer-events: none;
}

/* 2. CENTRO: FASCIO DI MESSA A FUOCO ORIZZONTALE */
.lens-focus-beam {
  position: relative;
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}

.beam-flare {
  position: absolute;
  inset: -16px -45px;
  background: radial-gradient(ellipse at center, rgba(238, 125, 24, 0.16) 0%, rgba(238, 125, 24, 0.05) 48%, transparent 76%);
  filter: blur(12px);
}

.beam-core-line {
  width: calc(100% + 55px);
  margin-left: -45px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 157, 46, 0.04) 0%, rgba(255, 175, 78, 0.36) 55%, rgba(255, 186, 98, 0.48) 100%);
  box-shadow: 0 0 8px rgba(255, 157, 46, 0.25);
}

/* 3. DESTRA: SCHEDA "CRISTALLO SOLARE" CON VISORE 16:10 SOSPESO & PARALLASSE 3D */
.lens-focus-card-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  margin-top: 58px;
  margin-left: 10px;
  z-index: 15;
  perspective: 1200px;
}

.lens-focus-card {
  --card-rx: 0deg;
  --card-ry: 0deg;
  --mob-tx: 0px;
  --mob-ty: 0px;
  width: 768px !important;
  max-width: 768px !important;
  height: 706px !important;
  min-height: 706px !important;
  max-height: 706px !important;
  flex-shrink: 0 !important;
  padding: 20px 26px 22px !important;
  border-radius: 20px !important;
  background:
    radial-gradient(90% 80% at 0% 32%, rgba(255, 166, 52, 0.06) 0%, transparent 58%),
    linear-gradient(145deg, rgba(12, 15, 19, 0.76) 0%, rgba(6, 8, 11, 0.66) 100%) !important;
  backdrop-filter: blur(24px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(130%) !important;
  border: 1px solid rgba(255, 212, 142, 0.18) !important;
  border-left-color: rgba(255, 206, 126, 0.22) !important;
  border-right-color: rgba(255, 255, 255, 0.06) !important;
  border-bottom-color: rgba(255, 255, 255, 0.07) !important;
  box-shadow:
    0 30px 72px rgba(0, 0, 0, 0.82),
    -10px 0 28px rgba(245, 148, 36, 0.06),
    inset 0 1px 0 rgba(255, 240, 206, 0.14) !important;
  display: flex;
  flex-direction: column;
  gap: 12px !important;
  position: relative;
  overflow: visible !important;
  transform: none !important;
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.lens-card-solar-caustics {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background:
    radial-gradient(circle at -4% 40%, rgba(255, 184, 78, 0.07) 0%, transparent 55%),
    linear-gradient(115deg, rgba(255, 224, 166, 0.04) 0%, transparent 38%);
  pointer-events: none;
  z-index: 0;
}

.lens-card-watermark {
  position: absolute;
  right: 20px;
  bottom: 52px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 6.2rem;
  line-height: 0.85;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(255, 218, 152, 0.1) 0%, rgba(255, 175, 72, 0.01) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.lens-card-left-spine {
  position: absolute;
  left: -1px;
  top: 14%;
  bottom: 14%;
  width: 1px;
  border-radius: 4px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 212, 138, 0.32) 50%, transparent 100%);
  box-shadow: 0 0 6px rgba(255, 157, 46, 0.22);
  pointer-events: none;
  z-index: 3;
}

.lens-corner-mark {
  display: none;
}

.lens-card-top-row {
  display: none !important;
}

.lens-focus-kicker {
  display: none !important;
}

.lens-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 238, 208, 0.78);
}

.lens-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd084;
  box-shadow: 0 0 8px #ff9d2e;
}

/* VISORE LIVE INTERATTIVO DESKTOP + TELEFONO 3D LIVE CON ZOOM */
body.is-over-live-visor #cursor-dot,
body.is-over-live-visor #cursor-ring {
  opacity: 0 !important;
  transition: opacity 0.12s ease !important;
}

.lens-embedded-stage {
  position: relative !important;
  width: 100% !important;
  height: 468px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  animation: none !important;
  transform: none !important;
  z-index: 4;
}

.lens-embedded-stage:has(#site-cinema-mobile.is-phone-zoomed) {
  z-index: 30;
}

.lens-embedded-stage #site-cinema-desktop {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  transform: none !important;
  border-radius: 13px;
  border: 1px solid rgba(255, 220, 160, 0.24);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.62),
    0 0 18px rgba(245, 152, 42, 0.08);
  display: block;
  overflow: hidden;
  background: #05070a;
  cursor: default;
}

.lens-embedded-stage .frame-screen-canvas {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  position: relative;
  overflow: hidden;
  background: #05070a;
}

/* Disattiva completamente il velo scuro sfocato che copriva l'anteprima e tagliava il testo sotto il telefono */
.lens-embedded-stage .screen-hover-veil {
  display: none !important;
}

.lens-embedded-stage .desktop-screen-img {
  display: none !important;
}

.lens-embedded-stage .desktop-live-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1424px;
  height: 940px;
  border: none;
  transform-origin: top left;
  transform: scale(var(--desktop-iframe-scale, 0.5));
  z-index: 2;
  background: #05070a;
  pointer-events: auto;
}

.lens-embedded-stage .desktop-live-iframe.is-hidden-iframe,
.lens-embedded-stage .mobile-live-iframe.is-hidden-iframe {
  display: none !important;
}

.screen-solar-glint {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 224, 168, 0.07) 0%, transparent 40%);
  pointer-events: none;
  z-index: 3;
}

/* Selettore rapido Fluido Live vs Forest 3D Live sopra il visore quando è selezionato BullBarbù™ */
.bb-dual-engine-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3.5px;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 212, 138, 0.48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
}

.bb-dual-engine-toggle[hidden] {
  display: none !important;
}

.bb-engine-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 240, 214, 0.72);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}

.bb-engine-btn:hover {
  color: #ffffff;
}

.bb-engine-btn.active {
  background: linear-gradient(135deg, rgba(245, 162, 52, 0.34) 0%, rgba(196, 104, 18, 0.48) 100%);
  border-color: rgba(255, 214, 144, 0.72);
  color: #fffaf0;
  box-shadow: 0 2px 10px rgba(245, 152, 42, 0.28);
}

/* Badge discreto in basso a sinistra nel visore: nascosto per evitare ripetizioni col pulsante primario sotto */
.visor-corner-live-pill {
  display: none !important;
}

/* Smartphone 3D in Titanio/Oro Champagne sospeso a cavallo del bordo destro (Live + Zoomabile al click) */
.lens-embedded-stage #site-cinema-mobile {
  position: absolute !important;
  right: -6px !important;
  bottom: -6px !important;
  width: 106px !important;
  height: 214px !important;
  border-radius: 13px !important;
  padding: 2.5px !important;
  background: linear-gradient(155deg, rgba(255, 222, 158, 0.92) 0%, rgba(196, 122, 34, 0.85) 55%, rgba(92, 54, 14, 0.92) 100%) !important;
  box-shadow:
    -14px 16px 34px rgba(0, 0, 0, 0.92),
    0 0 22px rgba(245, 156, 44, 0.22) !important;
  transform: none !important;
  transition:
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    right 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    bottom 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.28s ease,
    box-shadow 0.28s ease !important;
  z-index: 15;
  cursor: zoom-in;
}

.lens-embedded-stage #site-cinema-mobile:not(.is-phone-zoomed):hover {
  box-shadow:
    -16px 18px 38px rgba(0, 0, 0, 0.95),
    0 0 28px rgba(255, 174, 62, 0.42) !important;
}

.lens-embedded-stage #site-cinema-mobile.is-phone-zoomed {
  width: 256px !important;
  height: 526px !important;
  right: 12px !important;
  bottom: -16px !important;
  border-radius: 20px !important;
  padding: 3.5px !important;
  box-shadow:
    -24px 24px 64px rgba(0, 0, 0, 0.96),
    0 0 36px rgba(255, 172, 58, 0.38) !important;
  z-index: 45 !important;
  cursor: default;
}

.lens-embedded-stage #site-cinema-mobile .mobile-screen-canvas {
  width: 100% !important;
  height: 100% !important;
  position: relative;
  overflow: hidden;
  border-radius: 10.5px !important;
  background: #05070a;
}

.lens-embedded-stage #site-cinema-mobile.is-phone-zoomed .mobile-screen-canvas {
  border-radius: 16.5px !important;
}

.lens-embedded-stage #site-cinema-mobile .mobile-screen-img {
  display: none !important;
}

.lens-embedded-stage #site-cinema-mobile .mobile-live-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 804px;
  border: none;
  transform-origin: top left;
  transform: scale(var(--mobile-iframe-scale, 0.259));
  z-index: 2;
  background: #05070a;
  pointer-events: none;
}

.lens-embedded-stage #site-cinema-mobile.is-phone-zoomed .mobile-live-iframe {
  pointer-events: auto;
}

.lens-embedded-stage #site-cinema-mobile {
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, filter 0.22s ease;
}

.lens-embedded-stage #site-cinema-mobile:hover:not(.is-phone-zoomed) {
  filter: brightness(1.08);
}

.lens-embedded-stage #site-cinema-mobile.is-phone-zoomed {
  cursor: default;
}

.lens-embedded-stage #site-cinema-mobile .phone-unzoom-btn {
  display: none;
  position: absolute;
  top: -30px;
  right: 0;
  z-index: 50;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(28, 22, 16, 0.95), rgba(12, 10, 8, 0.98));
  border: 1px solid rgba(255, 210, 136, 0.65);
  color: #fff6e0;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: zoom-out;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.85);
}

.lens-embedded-stage #site-cinema-mobile.is-phone-zoomed .phone-unzoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lens-embedded-stage #site-cinema-mobile .phone-unzoom-btn:hover {
  border-color: #ffe2a8;
  background: rgba(245, 158, 42, 0.32);
}

/* Selettore Viste Fluttuante: nascosto perché il visore ora carica direttamente il sito Live */
.lens-focus-card .bambam-pages-strip {
  display: none !important;
}

.lens-card-title-block {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 3px;
}

.lens-card-title {
  font-size: clamp(1.36rem, 2vw, 1.72rem) !important;
  line-height: 1.06 !important;
  margin: 0 !important;
  color: #fffaf0 !important;
  -webkit-text-fill-color: #fffaf0 !important;
  background: none !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.lens-card-title .title-sub-accent {
  color: #f6d59b !important;
  -webkit-text-fill-color: #f6d59b !important;
}

.lens-card-subtitle {
  font-size: 0.66rem !important;
  letter-spacing: 0.03em !important;
  color: rgba(255, 224, 178, 0.66) !important;
  margin: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.lens-card-lead {
  position: relative;
  z-index: 2;
  font-size: 0.73rem !important;
  line-height: 1.38 !important;
  height: 4.14em !important;
  min-height: 4.14em !important;
  max-height: 4.14em !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  color: rgba(255, 248, 236, 0.82) !important;
  margin: 0 !important;
}

/* Metadati tecnici in stile editoriale (Zero scatole chiuse, solo filetti d'oro sottili) */
.lens-meta-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 212, 145, 0.14);
  border-bottom: 1px solid rgba(255, 212, 145, 0.14);
}

.lens-meta-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  min-width: 0;
}

.lens-meta-cell + .lens-meta-cell {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 212, 145, 0.14);
}

.lens-meta-label {
  font-size: 0.49rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 202, 124, 0.58);
}

.lens-meta-val {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fffaf0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Barra Azioni Pulita (2 pulsanti chiari + icona link esterno discreta) */
.lens-actions-stack {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 8px;
  align-items: stretch;
  padding-top: 2px;
  margin-top: auto;
}

.lens-btn-primary {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 168, 62, 0.34) 0%, rgba(212, 110, 18, 0.5) 52%, rgba(255, 210, 128, 0.28) 100%);
  border: 1px solid rgba(255, 216, 148, 0.7);
  color: #fffaf0;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 220, 0.4),
    0 10px 24px rgba(228, 122, 20, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn-primary-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 238, 198, 0.24) 50%, transparent 75%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.lens-btn-primary:hover .btn-primary-shimmer {
  transform: translateX(100%);
}

.lens-btn-primary:hover {
  transform: translateY(-1px);
  border-color: #ffe2a8;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.65),
    0 14px 30px rgba(242, 142, 32, 0.38);
}

.lens-btn-kbd {
  font-size: 0.64rem;
  font-weight: 800;
  color: #ffe5b4;
  opacity: 0.85;
}

.lens-secondary-row {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 6px;
}

.lens-btn-secondary {
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 214, 148, 0.16);
  color: rgba(255, 244, 226, 0.86);
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.64rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.lens-btn-icon-only {
  padding: 0 !important;
  font-size: 0.78rem !important;
  color: rgba(255, 228, 182, 0.72);
}

.lens-btn-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 185, 88, 0.11);
  border-color: rgba(255, 206, 128, 0.5);
  color: #ffffff;
}

/* Frecce rimosse per lasciare tutto lo spazio alla scheda */
.lens-step-arrows {
  display: none !important;
}

@media (max-width: 1100px) {
  .sites-lens-concept1 {
    grid-template-columns: 1fr !important;
    margin-right: auto !important;
    gap: 12px !important;
  }
  .lens-focus-beam {
    display: none;
  }
}

/* ============================================================================
   V147 — OTTIMIZZAZIONE VERTICALE SMARTPHONE (<= 820px o schermo verticale):
   - Scheda/Simulatore principale sempre IN ALTO ad altezza occhi
   - Ghiera Solare ad Arco d'Oro & Carosello App IN BASSO sotto il pollice
   - Zero sovrapposizioni tra le voci della ghiera + 60fps fluidi su GPU mobile
============================================================================ */
@media (max-width: 820px), (max-aspect-ratio: 10/11) {
  /* 0. Logo BullBarbù™ alzato sullo stesso piano orizzontale di LUCE + HUD inferiore ultracompatto */
  .atelier-corner-header {
    top: 4px !important;
    left: 10px !important;
    right: 8px !important;
    align-items: flex-start !important;
  }

  .corner-brand-btn {
    margin-top: 2px !important;
    gap: 6px !important;
  }

  .corner-brand-img {
    width: 30px !important;
    height: 30px !important;
  }

  .corner-wordmark-img {
    display: block !important;
    height: 18px !important;
    width: auto !important;
  }

  .trail-compass-hud {
    bottom: 4px !important;
    height: 42px !important;
    overflow: visible !important;
  }

  .compass-rail {
    height: 42px !important;
    overflow: visible !important;
  }

  .compass-rail::before {
    top: 6px !important;
  }

  .compass-waypoint {
    top: 3px !important;
    left: 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    padding: 0 6px !important;
    margin: 0 !important;
    transform-origin: center top !important;
  }

  .compass-waypoint::before {
    width: 4px !important;
    height: 4px !important;
    margin: 0 auto 3px auto !important;
  }

  .wp-text,
  .compass-waypoint.active .wp-text,
  .compass-waypoint:hover .wp-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transform-origin: center top !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .wp-text strong {
    font-size: 0.84rem !important;
    text-align: center !important;
  }

  .compass-waypoint.active .wp-text strong {
    font-size: 0.94rem !important;
  }

  .wp-text small {
    font-size: 0.36rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    max-width: none !important;
  }

  .wp-text small br {
    display: none !important;
  }

  .style-icons-cluster {
    bottom: 6px !important;
    right: 8px !important;
    gap: 8px !important;
    transform: scale(0.56) !important;
    transform-origin: bottom right !important;
  }

  /* 1. GPU Mobile 60fps: sostituisce i pesanti backdrop-filter:blur() sopra il canvas WebGL con superfici scure ad alto contrasto */
  .clearing-signpost,
  .cabin-stage-wrap,
  .about-stage-wrap,
  .lens-focus-card,
  .brand-sim-console,
  .showroom-backdrop,
  .visor-corner-live-pill {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .clearing-signpost,
  .cabin-stage-wrap,
  .about-stage-wrap {
    background: linear-gradient(155deg, rgba(10, 14, 18, 0.94) 0%, rgba(5, 8, 11, 0.96) 100%) !important;
  }

  /* 2. Tappa 01 (Cosa Faccio) & Tappa 05 (Parliamone): contenimento verticale centrato */
  .cabin-stage-wrap,
  .about-stage-wrap {
    width: 94vw !important;
    max-width: 480px !important;
    max-height: calc(100dvh - 96px) !important;
    margin: 0 auto !important;
    padding: 12px 14px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  /* 3. Tappa 02 (Siti & Template):
        - Ancoraggio fisso dall'alto (zero saltelli su/giù cambiando progetto)
        - 3 Selettori Categoria dentro la testa della scheda (zero collisioni col logo o LUCE/SUONO)
        - STAR #1: Scheda e Anteprima Sito estese a tutta altezza senza bande nere
        - STAR #2: Ruota Solare in basso più luminosa con badge completi e sfumatura verticale */
  #scene-z-1.z-scene {
    justify-content: flex-start !important;
    align-items: center !important;
    padding-top: 58px !important;
  }

  .sites-lens-concept1 {
    position: relative !important;
    width: 94vw !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    height: calc(100dvh - 100px) !important;
    max-height: calc(100dvh - 100px) !important;
  }

  .lens-focus-card-wrap {
    order: 1 !important;
    width: 100% !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    z-index: auto !important;
    perspective: none !important;
  }

  /* STAR #2: Vera Ruota Solare ad Arco Verticale in basso sotto la scheda (z-index: auto così la scheda copre le voci alte mentre i 3 filtri stanno sopra) */
  .lens-wheel-stage {
    order: 2 !important;
    position: relative !important;
    width: 100% !important;
    height: 126px !important;
    min-height: 126px !important;
    flex: 0 0 126px !important;
    overflow: visible !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: auto !important;
    pointer-events: none !important;
  }

  .lens-wheel-stage::before,
  .lens-wheel-stage::after {
    display: none !important;
  }

  /* Vero SVG del Sole allineato al sub-pixel con layoutSitesLensWheel() (s = 0.40, offsetX = -42px, offsetY = -46px), senza filter CSS che taglia il rettangolo */
  .lens-wheel-svg {
    display: block !important;
    position: absolute !important;
    left: -42px !important;
    top: -46px !important;
    width: 184px !important;
    height: 248px !important;
    transform: none !important;
    pointer-events: none !important;
    overflow: visible !important;
    filter: none !important;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 16%, #000 28%, #000 100%) !important;
    mask-image: linear-gradient(180deg, transparent 0%, transparent 16%, #000 28%, #000 100%) !important;
    z-index: 2 !important;
  }

  /* 3 Selettori Categoria posizionati DENTRO la testa della scheda, sopra il vetro scuro e ben visibili */
  .lens-cat-mini-bar {
    position: absolute !important;
    top: calc(-1 * (100dvh - 224px) + 7px) !important;
    bottom: auto !important;
    left: 10px !important;
    right: 10px !important;
    transform: none !important;
    width: auto !important;
    max-width: calc(100% - 20px) !important;
    justify-content: center !important;
    z-index: 45 !important;
    gap: 6px !important;
    background: transparent !important;
    border: none !important;
    pointer-events: auto !important;
  }

  .lens-cat-mini-bar .site-cat-filter {
    padding: 3px 9px !important;
    font-size: 0.54rem !important;
    background: rgba(14, 18, 24, 0.92) !important;
    border: 1px solid rgba(255, 168, 62, 0.34) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: rgba(255, 238, 215, 0.82) !important;
  }

  .lens-cat-mini-bar .site-cat-filter.active {
    background: rgba(255, 157, 46, 0.24) !important;
    border: 1px solid #ff9d2e !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 157, 46, 0.32) !important;
  }

  .lens-wheel-items {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%) !important;
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%) !important;
  }

  /* Voci della Ruota Solare: testi leggermente più piccoli e compatti */
  .lens-wheel-items .site-bambam-pill,
  .lens-wheel-items .site-bambam-pill.active {
    padding: 2px 4px !important;
    gap: 4px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform-origin: left center !important;
  }

  .lens-wheel-items .wheel-item-num {
    font-size: 0.50rem !important;
  }

  .lens-wheel-items .site-bambam-pill.active .wheel-item-num {
    font-size: 0.60rem !important;
  }

  .lens-wheel-items .wheel-item-dash {
    display: inline-block !important;
    width: 8px !important;
    height: 1.5px !important;
  }

  .lens-wheel-items .site-bambam-pill.active .wheel-item-dash {
    width: 14px !important;
    height: 2px !important;
    background: #ff9d2e !important;
    box-shadow: 0 0 12px #ff9d2e !important;
  }

  .lens-wheel-items .wheel-item-title {
    font-size: 0.60rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
  }

  .lens-wheel-items .site-bambam-pill.active .wheel-item-title {
    font-size: 0.72rem !important;
    color: #ffffff !important;
    text-shadow: 0 0 16px rgba(255, 175, 72, 0.6), 0 2px 14px rgba(0, 0, 0, 0.98) !important;
  }

  .lens-wheel-items .wheel-item-badge {
    display: inline-flex !important;
    font-size: 0.35rem !important;
    padding: 1.5px 4px !important;
  }

  .lens-wheel-items .site-bambam-pill.active .wheel-item-badge {
    font-size: 0.37rem !important;
    padding: 1.5px 4.5px !important;
    background: rgba(255, 157, 46, 0.16) !important;
    border: 1px solid rgba(255, 157, 46, 0.78) !important;
  }

  .lens-wheel-scroll-hint {
    display: none !important;
  }

  /* STAR #1: Scheda progetto bilanciata (distanziata dal sottotitolo di LUCE in alto e accorciata di 3mm in basso) */
  .lens-focus-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto -12px auto !important;
    padding: 32px 12px 12px !important;
    gap: 7px !important;
    border-radius: 15px !important;
    background:
      radial-gradient(90% 80% at 0% 25%, rgba(255, 166, 52, 0.14) 0%, transparent 60%),
      linear-gradient(155deg, rgba(12, 15, 19, 0.96) 0%, rgba(6, 8, 11, 0.98) 100%) !important;
    transform: none !important;
    height: calc(100dvh - 216px) !important;
    min-height: calc(100dvh - 216px) !important;
    max-height: calc(100dvh - 216px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
    z-index: 20 !important;
  }

  /* Visore Anteprima Sito (STAR #1): in CIMA alla scheda (order: 0), si espande a pieno riempimento spingendo il testo in fondo */
  .clearing-stage-layout .lens-embedded-stage,
  #sites-bambam-stage.lens-embedded-stage {
    order: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 155px !important;
    max-height: none !important;
    flex: 1 1 auto !important;
  }

  .lens-embedded-stage #site-cinema-desktop,
  .lens-embedded-stage .frame-screen-canvas,
  .lens-embedded-stage .desktop-screen-img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: top center !important;
  }

  .lens-embedded-stage #site-cinema-mobile {
    width: 62px !important;
    height: 124px !important;
    top: auto !important;
    right: 6px !important;
    bottom: 6px !important;
    border-radius: 10px !important;
    padding: 2px !important;
    transform: none !important;
  }


  .lens-embedded-stage #site-cinema-mobile.is-phone-zoomed {
    top: 4px !important;
    bottom: auto !important;
    right: 50% !important;
    transform: translateX(50%) !important;
    width: min(236px, 64vw) !important;
    height: min(468px, calc(100dvh - 268px)) !important;
    border-radius: 18px !important;
    padding: 3px !important;
    z-index: 60 !important;
  }

  .lens-embedded-stage #site-cinema-mobile .phone-unzoom-btn {
    top: 8px !important;
    right: 8px !important;
  }

  .lens-focus-card .bambam-pages-strip {
    order: 1 !important;
    flex: 0 0 auto !important;
  }

  .lens-card-title-block {
    order: 2 !important;
    flex: 0 0 auto !important;
  }

  .lens-card-title {
    font-size: clamp(1.06rem, 4.3vw, 1.24rem) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .lens-card-subtitle {
    font-size: 0.60rem !important;
    line-height: 1.24 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .lens-card-lead {
    order: 3 !important;
    font-size: 0.67rem !important;
    line-height: 1.44 !important;
    margin: 2px 0 4px 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: auto !important;
    max-height: none !important;
    flex: 0 0 auto !important;
  }

  .lens-meta-grid {
    order: 4 !important;
    gap: 8px !important;
    padding: 6px 0 !important;
    flex: 0 0 auto !important;
  }

  .lens-meta-val {
    font-size: 0.60rem !important;
    line-height: 1.22 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 1.48rem !important;
  }

  .lens-actions-stack {
    order: 5 !important;
    grid-template-columns: 1.25fr 1fr !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    margin-top: 2px !important;
  }

  .lens-btn-primary {
    padding: 8px 10px !important;
    font-size: 0.58rem !important;
    justify-content: center !important;
  }

  .lens-btn-primary .lens-btn-kbd {
    display: none !important;
  }

  .lens-btn-secondary {
    padding: 8px 8px !important;
    font-size: 0.56rem !important;
  }

  .lens-step-arrows {
    display: none !important;
  }

  /* 4. Tappa 03 (App & Cloud) & Tappa 04 (Loghi & Etichette):
        Simulatore Live IN ALTO (order: 1) + Selettore Orizzontale IN BASSO (order: 2) senza pillole tonde */
  .software-simulator-layout,
  .clearing-stage-layout.layout-reverse.software-simulator-layout {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    width: 94vw !important;
    max-width: 460px !important;
    max-height: calc(100dvh - 116px) !important;
    margin: 0 auto !important;
    gap: 8px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px !important;
  }

  .software-simulator-layout .simulator-cinema-rig {
    order: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }

  .software-simulator-layout .software-signpost-card {
    order: 2 !important;
    width: 100% !important;
    padding: 10px 12px !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
  }

  .software-simulator-layout .holo-dossier-list,
  .software-simulator-layout .clearing-quick-stepper {
    display: none !important;
  }

  .app-sim-dock,
  .brand-studio-dock {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px !important;
    padding: 4px 2px !important;
    margin: 2px 0 !important;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 206, 126, 0.22) !important;
    border-radius: 0 !important;
  }

  .app-sim-dock::-webkit-scrollbar,
  .brand-studio-dock::-webkit-scrollbar {
    display: none;
  }

  .app-sim-dock .app-dock-pill,
  .brand-studio-dock .brand-dock-pill {
    flex: 0 0 auto !important;
    scroll-snap-align: center;
    padding: 6px 10px !important;
    font-size: 0.66rem !important;
    border-radius: 8px !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }

  /* 5. Finestra 04 (Brand Studio & 5 Etichette Birra) adattamento verticale */
  .brand-sim-console {
    padding: 10px !important;
    gap: 8px !important;
  }

  .brand-styles-strip {
    gap: 4px !important;
  }

  .brand-style-card {
    padding: 4px !important;
  }

  .brand-style-card img {
    height: 58px !important;
  }

  .brand-style-card small {
    display: none !important;
  }

  .brand-label-inspector,
  .brand-pack-dual-grid,
  .brand-system-split {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .brand-diecut-preview img {
    max-height: 125px !important;
  }

  .brand-pack-card img {
    height: 155px !important;
  }
}




