  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Syne:wght@700;800&display=swap');

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

  :root {
    --navy: #0D2340;
    --blue: #1565C0;
    --orange: #F57C00;
    --orange-light: #FF9800;
    --white: #ffffff;
    --off-white: #F8FAFF;
    --gray-light: #EEF2F8;
    --gray: #6B7A99;
    --green: #2E7D32;
    --green-light: #E8F5E9;
    --shadow: 0 4px 24px rgba(13,35,64,0.10);
    --shadow-lg: 0 12px 48px rgba(13,35,64,0.16);
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--navy);
    line-height: 1.6;
  }

  /* ── ABOVE-FOLD WRAPPER ── */
  .above-fold {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* ── HERO SLIDESHOW (desktop) ── */
  .hero-slideshow {
    position: relative;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    background: #fff;
  }
  .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 35% top;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
  }
  .hero-slide.active {
    opacity: 1;
  }

  /* ── SECTION COMMONS ── */
  section { padding: 56px 20px; }
  .container { max-width: 1080px; margin: 0 auto; }
  .section-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 8px;
  }
  .section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 12px;
  }
  .section-sub {
    font-size: 16px;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 40px;
  }

  /* ── FREE BADGE ── */
  .free-section {
    background: linear-gradient(135deg, #0D2340 0%, #1565C0 100%);
    padding: 36px 20px;
    text-align: center;
    flex-shrink: 0;
  }
  .free-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(0, 220, 255, 0.35);
    border-radius: 100px;
    padding: 10px 28px 10px 14px;
    margin-bottom: 24px;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    animation: badgeGlow 2.8s ease-in-out infinite;
  }
  .free-badge-pill {
    background: linear-gradient(135deg, #F57C00, #FF9800);
    color: white;
    font-weight: 900;
    font-size: 14px;
    border-radius: 100px;
    padding: 5px 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    animation: pillGlow 2.8s ease-in-out infinite;
    box-shadow:
      0 0 8px rgba(255, 152, 0, 0.9),
      0 0 20px rgba(255, 152, 0, 0.6),
      0 0 40px rgba(255, 152, 0, 0.3);
  }
  .free-badge-pill::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 100px;
    background: transparent;
    border: 1.5px solid rgba(255, 200, 80, 0.6);
    animation: ringPulse 2.8s ease-in-out infinite;
  }
  .free-badge span { color: rgba(255,255,255,0.92); font-weight: 600; font-size: 17px; }

  @keyframes pillGlow {
    0%, 100% {
      box-shadow:
        0 0 8px rgba(255, 152, 0, 0.9),
        0 0 20px rgba(255, 152, 0, 0.6),
        0 0 40px rgba(255, 152, 0, 0.3);
    }
    50% {
      box-shadow:
        0 0 16px rgba(255, 200, 0, 1),
        0 0 40px rgba(255, 152, 0, 0.9),
        0 0 80px rgba(255, 120, 0, 0.5),
        0 0 120px rgba(255, 80, 0, 0.2);
    }
  }
  @keyframes badgeGlow {
    0%, 100% {
      border-color: rgba(0, 200, 255, 0.30);
      box-shadow: 0 0 12px rgba(0, 200, 255, 0.08), inset 0 0 20px rgba(0, 200, 255, 0.03);
    }
    50% {
      border-color: rgba(0, 220, 255, 0.70);
      box-shadow: 0 0 24px rgba(0, 200, 255, 0.20), inset 0 0 30px rgba(0, 200, 255, 0.07);
    }
  }
  @keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%       { transform: scale(1.12); opacity: 0; }
  }
  .free-section h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 5vw, 50px);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 16px;
  }
  .free-section h2 em { color: var(--orange-light); font-style: normal; }
  .free-section p { color: rgba(255,255,255,0.75); font-size: 17px; max-width: 540px; margin: 0 auto; }

  /* ── POS SELECTOR ── */
  .pos-section { background: var(--off-white); }
  .pos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
  }
  .pos-card {
    background: white;
    border: 2.5px solid var(--gray-light);
    border-radius: 20px;
    padding: 32px 24px 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    position: relative;
  }
  .pos-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .pos-card.selected {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(21,101,192,0.12), var(--shadow);
  }
  .pos-card.selected::after {
    content: '✓';
    position: absolute;
    top: 14px; right: 14px;
    width: 28px; height: 28px;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
  }
  .pos-img { height: 180px; object-fit: contain; margin-bottom: 20px; }
  .pos-img-stampante { height: 207px; }
  .pos-name {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
  }
  .pos-desc { font-size: 13px; color: var(--gray); line-height: 1.5; }
  .pos-free-tag {
    display: inline-block;
    background: var(--green-light);
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    padding: 3px 10px;
    margin-top: 12px;
    letter-spacing: 0.3px;
  }

  /* quantity control */
  .qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
  }
  .qty-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--blue);
    background: white;
    color: var(--blue);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
    line-height: 1;
  }
  .qty-btn:hover { background: var(--blue); color: white; }
  .qty-value { font-size: 20px; font-weight: 700; min-width: 28px; text-align: center; color: var(--navy); }
  .qty-label { font-size: 12px; color: var(--gray); margin-top: 4px; }

  /* ── CUSTOMER TYPE TOGGLE ── */
  .toggle-section { background: white; padding: 40px 20px 0; }
  .toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--gray-light);
    border-radius: 100px;
    padding: 5px;
    max-width: 380px;
    margin: 0 auto 48px;
  }
  .toggle-btn {
    flex: 1;
    padding: 10px 24px;
    border-radius: 100px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray);
    transition: background .2s, color .2s;
  }
  .toggle-btn.active {
    background: var(--blue);
    color: white;
    box-shadow: 0 2px 8px rgba(21,101,192,0.25);
  }

  /* ── PLANS ── */
  .plans-section { background: white; padding: 0 20px 64px; }
  .plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
  }
  .plan-card {
    border: 2px solid var(--gray-light);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    position: relative;
    background: white;
    display: flex;
    flex-direction: column;
  }
  .plan-body { flex: 1; }
  .plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .plan-card.selected {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(245,124,0,0.10), var(--shadow);
  }
  .plan-card.selected::after {
    content: '✓ Selezionato';
    position: absolute;
    top: 14px; right: 14px;
    background: var(--orange);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    padding: 3px 10px;
  }
  .plan-card.popular { border-color: var(--blue); }
  .plan-popular-badge {
    background: var(--blue);
    color: white;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px;
    text-transform: uppercase;
  }
  .plan-header { padding: 24px 22px 20px; border-bottom: 1px solid var(--gray-light); }
  .plan-name {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
  }
  .plan-tagline { font-size: 12px; color: var(--gray); margin-bottom: 16px; }
  .plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
  }
  .plan-price .amount {
    font-family: 'Syne', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--navy);
  }
  .plan-price .period { font-size: 13px; color: var(--gray); }
  .plan-price-annual { font-size: 12px; color: var(--blue); font-weight: 600; margin-top: 2px; }
  .plan-rates { margin-top: 14px; }
  .plan-rate-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
  .plan-rate-row .label { color: var(--gray); }
  .plan-rate-row .value { font-weight: 600; color: var(--navy); }
  .plan-promo {
    background: linear-gradient(90deg, #fff8e1, #fff3cd);
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #e65100;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .plan-body { padding: 20px 22px; }
  .plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.4;
  }
  .plan-feature .icon { color: var(--green); font-size: 14px; flex-shrink: 0; margin-top: 1px; }
  .plan-feature .icon.off { color: #ccc; }
  .plan-feature s { color: #bbb; }

  /* plan CTA button */
  .plan-cta-btn {
    display: block;
    width: calc(100% - 44px);
    margin: 0 22px 20px;
    padding: 12px 0;
    background: var(--blue);
    color: white;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(21,101,192,0.25);
    pointer-events: none; /* il click è gestito dalla card */
  }
  .plan-card:hover .plan-cta-btn,
  .plan-card.selected .plan-cta-btn {
    background: #0d47a1;
    box-shadow: 0 6px 20px rgba(21,101,192,0.35);
    transform: translateY(-1px);
  }
  .plan-card.selected .plan-cta-btn {
    background: var(--orange);
    box-shadow: 0 6px 20px rgba(245,124,0,0.35);
  }

  /* ── CTA SECTION ── */
  .cta-section {
    background: linear-gradient(135deg, #0D2340 0%, #1565C0 100%);
    padding: 64px 20px;
    text-align: center;
  }
  .cta-section h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
  }
  .cta-section p { color: rgba(255,255,255,0.75); font-size: 16px; margin-bottom: 32px; }

  /* summary box */
  .summary-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 20px 28px;
    max-width: 520px;
    margin: 0 auto 32px;
    display: none;
    text-align: left;
  }
  .summary-box.visible { display: block; }
  .summary-row { display: flex; justify-content: space-between; font-size: 14px; color: rgba(255,255,255,0.8); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .summary-row:last-child { border-bottom: none; }
  .summary-row .key { font-weight: 500; }
  .summary-row .val { font-weight: 700; color: white; }

  /* lead form */
  .lead-form {
    max-width: 460px;
    margin: 0 auto;
    display: none;
  }
  .lead-form.visible { display: block; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
  .form-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.07);
    color: white;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .2s;
  }
  .form-input::placeholder { color: rgba(255,255,255,0.45); }
  .form-input:focus { border-color: var(--orange-light); }
  .form-input.full { width: 100%; margin-bottom: 12px; }

  .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--orange);
    color: white;
    font-family: 'Syne', sans-serif;
    font-size: 17px;
    font-weight: 800;
    padding: 16px 36px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 6px 24px rgba(245,124,0,0.4);
    text-decoration: none;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  .cta-btn:hover { background: #e65100; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(245,124,0,0.5); }
  .cta-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

  .notice { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 16px; }

  .form-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--orange-light);
    margin: 16px 0 10px;
    text-align: left;
  }

  /* ── HONEYPOT ANTI-SPAM (invisibile a occhio umano, fuori da tab-order, aria-hidden) ── */
  .hp-wrap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* ── PRIVACY CHECKBOX ── */
  .privacy-check-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 4px;
  }
  .privacy-check-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: var(--orange-light);
    margin-top: 2px;
    cursor: pointer;
  }
  .privacy-check-wrap label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    line-height: 1.5;
  }
  .privacy-check-wrap label a {
    color: var(--orange-light);
    text-decoration: underline;
  }
  /* modal variant */
  .modal-privacy-check-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0 4px;
  }
  .modal-privacy-check-wrap input[type="checkbox"] {
    width: 17px;
    height: 17px;
    min-width: 17px;
    accent-color: var(--blue);
    margin-top: 2px;
    cursor: pointer;
  }
  .modal-privacy-check-wrap label {
    font-size: 12px;
    color: var(--gray);
    cursor: pointer;
    line-height: 1.5;
  }
  .modal-privacy-check-wrap label a {
    color: var(--blue);
    text-decoration: underline;
  }

  /* ── SITE FOOTER ── */
  .site-footer {
    background: var(--navy);
    padding: 20px 24px;
    text-align: center;
  }
  .site-footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .site-footer p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
  }
  .site-footer a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
  }
  .site-footer a:hover { color: white; }
  .footer-visits {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
  }
  .footer-visits-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4CAF50;
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
  }
  @keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
  }
  #visits-count { font-weight: 600; color: rgba(255,255,255,0.55); }

  /* ── COOKIE CONSENT MODAL ── */
  .cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8,18,32,0.72);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity .3s ease;
  }
  .cookie-overlay.hidden {
    opacity: 0;
    pointer-events: none;
  }
  body.cookie-lock { overflow: hidden; }
  .cookie-modal {
    background: white;
    border-radius: 22px;
    max-width: 440px;
    width: 100%;
    padding: 32px 32px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    text-align: center;
    transform: scale(1);
    transition: transform .3s ease;
  }
  .cookie-overlay.hidden .cookie-modal { transform: scale(0.92); }
  .cookie-modal-icon {
    font-size: 38px;
    margin-bottom: 8px;
  }
  .cookie-modal h3 {
    font-family: 'Syne', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
  }
  .cookie-modal p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--gray);
    margin-bottom: 22px;
  }
  .cookie-modal p a {
    color: var(--orange);
    font-weight: 600;
    text-decoration: underline;
  }
  .cookie-actions {
    display: flex;
    gap: 10px;
  }
  .cookie-btn {
    flex: 1;
    border: none;
    border-radius: 100px;
    padding: 13px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, opacity .2s, transform .15s;
  }
  .cookie-btn:active { transform: scale(0.97); }
  .cookie-btn-accept {
    background: var(--orange);
    color: white;
  }
  .cookie-btn-accept:hover { background: #e65100; }
  .cookie-btn-reject {
    background: var(--gray-light);
    color: var(--navy);
  }
  .cookie-btn-reject:hover { background: #e3e9f2; }

  @media (max-width: 480px) {
    .site-footer-inner { flex-direction: column; }
    .cookie-modal { padding: 26px 22px 22px; }
    .cookie-actions { flex-direction: column; }
  }
  .step-hint { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 24px; }
  .step-hint strong { color: var(--orange-light); }

  /* success */
  .success-msg {
    display: none;
    text-align: center;
    color: white;
    padding: 24px;
  }
  .success-msg .big { font-size: 56px; }
  .success-msg h3 { font-family: 'Syne', sans-serif; font-size: 24px; font-weight: 800; margin-bottom: 8px; }
  .success-msg p { color: rgba(255,255,255,0.7); }

  /* error */
  .error-msg { color: #ff8a65; font-size: 13px; margin-top: 8px; display: none; }

  /* ── RESPONSIVE ── */
  @media (max-width: 700px) {
    .pos-grid { grid-template-columns: 1fr; }
    .plans-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .above-fold { height: 100svh; }

    /* POS cards: layout verticale, immagine grande */
    .pos-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 28px 20px 24px;
      gap: 0;
    }
    .pos-img {
      height: 160px;
      width: auto;
      max-width: 140px;
      margin-bottom: 18px;
      flex-shrink: 0;
      object-fit: contain;
    }
    .pos-img-stampante {
      height: 185px;
      max-width: 160px;
    }
    .pos-name { font-size: 20px; text-align: center; margin-bottom: 8px; }
    .pos-desc { font-size: 13px; text-align: center; }

    /* Free badge: centrato e wrappato */
    .free-section { padding: 28px 16px; }
    .free-badge {
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      padding: 10px 18px;
      text-align: center;
    }
    .free-badge span { font-size: 16px; }

    /* Section titoli */
    .section-title { font-size: clamp(22px, 6vw, 32px); }

    /* Qty control su mobile */
    .qty-control { gap: 18px; }
    .qty-value { font-size: 22px; }
  }

  @media (max-width: 480px) {
    section { padding: 36px 14px; }

    /* Free badge ancora più compatto */
    .free-badge {
      gap: 8px;
      padding: 10px 14px;
    }
    .free-badge-pill { font-size: 12px; padding: 3px 12px; }
    .free-section h2 { font-size: clamp(22px, 7vw, 36px); }
    .free-section p { font-size: 15px; }

    /* POS card */
    .pos-card { padding: 24px 16px 20px; }
    .pos-img { height: 150px; max-width: 130px; }
    .pos-img-stampante { height: 172px; max-width: 150px; }
    .pos-name { font-size: 18px; }

    /* Modal */
    .modal-form-row { grid-template-columns: 1fr; }
    .modal-box, .costs-modal-box { border-radius: 16px; }
    .modal-body, .costs-body { padding: 20px; }
  }

  /* ── MODAL OVERLAY ── */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13,35,64,0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
  }
  .modal-overlay.active { display: flex; }

  .modal-box {
    background: white;
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    border: 2px solid rgba(0, 100, 220, 0.60);
    box-shadow:
      0 0 0 4px rgba(0, 80, 200, 0.12),
      0 0 24px rgba(0, 80, 200, 0.45),
      0 0 60px rgba(0, 60, 180, 0.25),
      0 24px 80px rgba(13,35,64,0.35);
    animation: modalIn .3s cubic-bezier(0.34, 1.56, 0.64, 1), modalBorderGlow 3s ease-in-out infinite;
  }
  @keyframes modalIn {
    from { transform: translateY(24px) scale(.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
  }
  @keyframes modalBorderGlow {
    0%, 100% {
      border-color: rgba(0, 100, 220, 0.55);
      box-shadow:
        0 0 0 4px rgba(0, 80, 200, 0.10),
        0 0 20px rgba(0, 80, 200, 0.38),
        0 0 50px rgba(0, 60, 180, 0.20),
        0 24px 80px rgba(13,35,64,0.35);
    }
    50% {
      border-color: rgba(20, 130, 255, 0.90);
      box-shadow:
        0 0 0 4px rgba(0, 100, 220, 0.18),
        0 0 36px rgba(0, 100, 220, 0.65),
        0 0 80px rgba(0, 80, 200, 0.38),
        0 0 130px rgba(0, 60, 180, 0.18),
        0 24px 80px rgba(13,35,64,0.35);
    }
  }

  .modal-header {
    background: linear-gradient(135deg, #0D2340 0%, #1565C0 100%);
    padding: 24px 28px 20px;
    position: relative;
    border-bottom: 1px solid rgba(0, 220, 255, 0.25);
    box-shadow: 0 1px 0 rgba(0, 220, 255, 0.15), 0 4px 20px rgba(0, 180, 255, 0.10);
  }
  .modal-header h3 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
  }
  .modal-header p { color: rgba(255,255,255,0.75); font-size: 13px; }
  .modal-close {
    position: absolute;
    top: 18px; right: 18px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0, 200, 255, 0.30);
    background: rgba(255,255,255,0.12);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, border-color .15s, box-shadow .15s;
  }
  .modal-close:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(0, 220, 255, 0.6);
    box-shadow: 0 0 12px rgba(0, 200, 255, 0.35);
  }

  .modal-body { padding: 24px 28px 28px; }
  .modal-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #EEF2F8;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1565C0;
    margin-bottom: 20px;
  }
  .modal-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
  .modal-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 2px solid #EEF2F8;
    background: #F8FAFF;
    color: #0D2340;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
  }
  .modal-input:focus {
    border-color: rgba(0, 180, 255, 0.7);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.12), 0 0 16px rgba(0, 180, 255, 0.15);
  }
  .modal-input::placeholder { color: #6B7A99; }
  .modal-input.full { margin-bottom: 12px; }
  .modal-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--blue);
    margin: 16px 0 10px;
  }
  .modal-error { color: #e53935; font-size: 12px; margin-top: 6px; display: none; }
  .modal-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #F57C00, #FF9800);
    color: white;
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 800;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    margin-top: 12px;
    transition: transform .15s, box-shadow .2s;
    box-shadow:
      0 6px 20px rgba(245,124,0,0.40),
      0 0 30px rgba(255, 152, 0, 0.20);
    animation: submitGlow 2.8s ease-in-out infinite;
  }
  .modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow:
      0 10px 28px rgba(245,124,0,0.55),
      0 0 50px rgba(255, 152, 0, 0.35);
    animation: none;
  }
  .modal-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; animation: none; }
  @keyframes submitGlow {
    0%, 100% {
      box-shadow: 0 6px 20px rgba(245,124,0,0.40), 0 0 30px rgba(255,152,0,0.20);
    }
    50% {
      box-shadow: 0 6px 28px rgba(245,124,0,0.60), 0 0 60px rgba(255,152,0,0.35), 0 0 100px rgba(255,120,0,0.15);
    }
  }

  /* ── COSTS MODAL ── */
  .costs-modal-box {
    background: white;
    border-radius: 24px;
    max-width: 620px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(13,35,64,0.25);
    overflow: hidden;
    animation: modalIn .25s ease;
    max-height: 90vh;
    overflow-y: auto;
  }
  .costs-modal-box .modal-header { padding: 24px 28px; }
  .costs-body { padding: 0 28px 28px; }
  .costs-intro {
    font-size: 14px;
    color: #6B7A99;
    padding: 16px 0;
    border-bottom: 1px solid #EEF2F8;
    margin-bottom: 20px;
  }
  .costs-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border: 1.5px solid #66bb6a;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
    width: 100%;
  }
  .costs-free-badge .pct { font-size: 36px; font-weight: 900; color: #2e7d32; font-family: 'Syne', sans-serif; }
  .costs-free-badge-text strong { display: block; font-size: 14px; color: #1b5e20; font-weight: 700; }
  .costs-free-badge-text span { font-size: 12px; color: #388e3c; }
  .costs-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; margin-bottom: 20px; }
  .costs-table-head th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6B7A99;
    font-weight: 600;
    padding: 4px 12px;
    text-align: left;
  }
  .costs-table-head th:last-child { text-align: right; }
  .costs-row td {
    padding: 12px 12px;
    background: #F8FAFF;
    font-size: 13px;
    color: #0D2340;
    border: none;
  }
  .costs-row td:first-child { border-radius: 10px 0 0 10px; font-weight: 600; }
  .costs-row td:last-child { border-radius: 0 10px 10px 0; text-align: right; }
  .costs-row.highlight td { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
  .costs-row.highlight td:first-child { color: #0d47a1; }
  .cost-rate { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; color: #1565C0; }
  .costs-row.highlight .cost-rate { color: #0d47a1; }
  .cost-sub { font-size: 11px; color: #6B7A99; display: block; margin-top: 2px; }
  .costs-notes {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 12px;
    color: #6D4C00;
    line-height: 1.6;
  }
  .costs-notes p { margin-bottom: 6px; }
  .costs-notes p:last-child { margin-bottom: 0; }
  .costs-accredito {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0 0;
    font-size: 13px;
    color: #6B7A99;
    border-top: 1px solid #EEF2F8;
    margin-top: 16px;
  }
  .costs-accredito strong { color: #0D2340; }

  /* ── POS PICKER MODAL ── */
  .pos-picker-box {
    background: white;
    border-radius: 24px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(13,35,64,0.25);
    overflow: hidden;
    animation: modalIn .25s ease;
  }
  .pos-picker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 24px 24px;
  }
  .pos-picker-card {
    border: 2.5px solid var(--gray-light);
    border-radius: 16px;
    padding: 20px 16px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    background: var(--off-white);
    position: relative;
  }
  .pos-picker-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue); }
  .pos-picker-card.selected {
    border-color: var(--blue);
    background: #EEF2F8;
    box-shadow: 0 0 0 4px rgba(21,101,192,0.12), var(--shadow);
  }
  .pos-picker-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px; right: 10px;
    width: 24px; height: 24px;
    background: var(--blue);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
  }
  .pos-picker-name {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
    margin-top: 4px;
  }
  .pos-picker-desc { font-size: 12px; color: var(--gray); line-height: 1.45; }
  .pos-picker-tag {
    display: inline-block;
    background: var(--green-light);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    padding: 3px 9px;
    margin-top: 10px;
  }
  .pos-picker-confirm {
    width: calc(100% - 48px);
    margin: 0 24px 24px;
    padding: 14px;
    background: var(--blue);
    color: white;
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 800;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background .2s, transform .15s, opacity .2s;
    box-shadow: 0 6px 20px rgba(21,101,192,0.3);
    opacity: 0.45;
    pointer-events: none;
  }
  .pos-picker-confirm.ready { opacity: 1; pointer-events: auto; }
  .pos-picker-confirm.ready:hover { background: #0d47a1; transform: translateY(-2px); }
  .pos-picker-note {
    text-align: center;
    font-size: 11px;
    color: var(--gray);
    padding: 0 24px 20px;
    margin-top: -8px;
  }
  @media (max-width: 480px) {
    .pos-picker-grid { grid-template-columns: 1fr; }
    .pos-picker-box { border-radius: 16px; }
  }

  /* COSTI button */
  .btn-costi {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 100px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }
  .btn-costi:hover { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.7); }

  /* COSTI button in fondo alla pagina */
  .btn-costi-fixed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 100px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }
  .btn-costi-fixed:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
  }
  .footer-costi {
    background: linear-gradient(135deg, #0D2340 0%, #1565C0 100%);
    padding: 20px 24px;
    text-align: right;
  }



  /* ── HERO MOBILE (iPhone) ── */
  .hero-img-mobile {
    display: none;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    object-fit: cover;
    object-position: center top;
    background: #fff;
  }
  @media (max-width: 430px) {
    .hero-slideshow { display: none; }
    .hero-img-mobile { display: block; }
  }
  /* ── CHAT BUBBLE ── */
  #pp-chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1565C0, #0D2340);
    box-shadow: 0 4px 20px rgba(21,101,192,0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
  }
  #pp-chat-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(21,101,192,0.55);
  }
  #pp-chat-bubble svg { width: 26px; height: 26px; }
  #pp-chat-bubble .pp-close-icon { display: none; }
  #pp-chat-bubble.open .pp-chat-icon { display: none; }
  #pp-chat-bubble.open .pp-close-icon { display: block; }

  /* Badge notifica */
  #pp-chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #F57C00;
    border-radius: 50%;
    border: 2px solid white;
    font-size: 10px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ── CHAT WINDOW ── */
  #pp-chat-window {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 500px;
    max-height: calc(100vh - 110px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(13,35,64,0.18);
    display: flex;
    flex-direction: column;
    z-index: 9998;
    overflow: hidden;
    transform: scale(0.92) translateY(12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), opacity 0.18s ease;
    font-family: 'Inter', sans-serif;
  }
  #pp-chat-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* Header */
  .pp-header {
    background: linear-gradient(135deg, #0D2340 0%, #1565C0 100%);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }
  .pp-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }
  .pp-header-info { flex: 1; }
  .pp-header-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
    font-family: 'Syne', sans-serif;
  }
  .pp-header-status {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .pp-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4CAF50;
    display: inline-block;
  }

  /* Messages area */
  .pp-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #F8FAFF;
  }
  .pp-messages::-webkit-scrollbar { width: 4px; }
  .pp-messages::-webkit-scrollbar-track { background: transparent; }
  .pp-messages::-webkit-scrollbar-thumb { background: #d0d9e8; border-radius: 4px; }

  /* Bubble */
  .pp-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    word-break: break-word;
  }
  .pp-msg.bot {
    background: white;
    color: #0D2340;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(13,35,64,0.07);
    align-self: flex-start;
  }
  .pp-msg.user {
    background: linear-gradient(135deg, #1565C0, #0D2340);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
  }

  /* Typing indicator */
  .pp-typing {
    display: flex;
    gap: 4px;
    padding: 12px 14px;
    background: white;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(13,35,64,0.07);
  }
  .pp-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1565C0;
    opacity: 0.4;
    animation: pp-bounce 1.2s infinite;
  }
  .pp-typing span:nth-child(2) { animation-delay: 0.2s; }
  .pp-typing span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes pp-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
  }

  /* Quick replies */
  .pp-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 10px;
    background: #F8FAFF;
  }
  .pp-quick-btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1.5px solid #1565C0;
    color: #1565C0;
    background: white;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
  }
  .pp-quick-btn:hover {
    background: #1565C0;
    color: white;
  }

  /* Input area */
  .pp-input-area {
    padding: 12px 14px;
    border-top: 1px solid #EEF2F8;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background: white;
    flex-shrink: 0;
  }
  #pp-input {
    flex: 1;
    border: 1.5px solid #EEF2F8;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    color: #0D2340;
    outline: none;
    resize: none;
    max-height: 80px;
    line-height: 1.4;
    transition: border-color 0.2s;
  }
  #pp-input:focus { border-color: #1565C0; }
  #pp-input::placeholder { color: #aab; }
  #pp-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1565C0, #0D2340);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.15s, transform 0.15s;
  }
  #pp-send-btn:hover { opacity: 0.88; transform: scale(1.05); }
  #pp-send-btn:disabled { opacity: 0.4; cursor: default; transform: none; }
  #pp-send-btn svg { width: 17px; height: 17px; }

  /* Footer */
  .pp-footer {
    padding: 6px;
    text-align: center;
    font-size: 10px;
    color: #aab;
    background: white;
    border-top: 1px solid #EEF2F8;
  }


/* ── FADE-IN ON SCROLL ── */
.fade-in {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Varianti direzionali */
.fade-in-left {
  opacity: 0;
  transform: translateX(-56px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right {
  opacity: 0;
  transform: translateX(56px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* Scale-in per card: scende da sopra con rimbalzo */
.scale-in {
  opacity: 0;
  transform: scale(0.85) translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.scale-in.visible { opacity: 1; transform: scale(1) translateY(0); }

/* Stagger automatico per figli diretti con .stagger-children */
.stagger-children > *:nth-child(1)  { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2)  { transition-delay: 0.18s; }
.stagger-children > *:nth-child(3)  { transition-delay: 0.31s; }
.stagger-children > *:nth-child(4)  { transition-delay: 0.44s; }
.stagger-children > *:nth-child(5)  { transition-delay: 0.57s; }
.stagger-children > *:nth-child(6)  { transition-delay: 0.70s; }

/* Delay manuale */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.32s !important; }
.delay-4 { transition-delay: 0.44s !important; }

/* Hero: appare subito al caricamento */
.above-fold {
  opacity: 0;
  animation: heroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
@keyframes heroFadeIn {
  to { opacity: 1; }
}

/* ── CHAT TOOLTIP ── */
#pp-chat-tooltip {
  position: fixed;
  bottom: 92px;
  right: 90px;
  background: linear-gradient(135deg, #F57C00 0%, #FF9800 100%);
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  padding: 11px 16px;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 24px rgba(245,124,0,0.40);
  white-space: nowrap;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px) scale(0.92);
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1),
              transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
#pp-chat-tooltip.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}
#pp-chat-tooltip::after {
  content: '';
  position: absolute;
  right: -7px;
  bottom: 10px;
  border: 6px solid transparent;
  border-left-color: #FF9800;
  border-right: none;
}
/* nasconde il tooltip quando la chat è aperta */
#pp-chat-bubble.open ~ #pp-chat-tooltip,
#pp-chat-tooltip.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

/* ── POS VIDEO + HOVER PREVIEW ── */
.pos-video-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 36px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(13,35,64,0.15);
}
.pos-preview-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.pos-preview-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  height: 92%;
  width: auto;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.45));
}
.pos-preview-img.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
