/* ════════════════════════════════════════════════════════════════════
   A Special Day by Local Radar — sistema visivo
   Bianco, antracite, un solo accent (lavanda). Inter per l'interfaccia,
   Playfair solo per le headline editoriali. Bordi sottili, poche ombre.
   ════════════════════════════════════════════════════════════════════ */
:root {
    --iv-bg: #ffffff;
    --iv-surface: #f7f7f8;
    --iv-surface-2: #fafafa;
    --iv-ink: #171717;
    --iv-ink-2: #3a3a3a;
    --iv-muted: #6b6b6b;
    --iv-line: #e7e7e7;
    --iv-line-strong: #d6d6d6;
    --iv-accent: #6e56cf;
    --iv-accent-ink: #5641b4;
    --iv-accent-soft: #f1eefc;
    --iv-accent-line: #d9d1f5;
    --iv-ok: #2f8a5b;
    --iv-ok-soft: #e9f6ef;
    --iv-warn: #8a5a00;
    --iv-warn-soft: #fff6e0;
    --iv-danger: #b42318;
    --iv-danger-soft: #fdecea;
    --iv-radius-sm: 10px;
    --iv-radius: 16px;
    --iv-radius-lg: 24px;
    --iv-shadow: 0 1px 2px rgba(23, 23, 23, .04), 0 8px 24px -12px rgba(23, 23, 23, .12);
    --iv-display: 'Playfair Display', Georgia, serif;
    --iv-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.iv {
    margin: 0; background: var(--iv-bg); color: var(--iv-ink);
    font: 400 16px/1.6 var(--iv-sans); letter-spacing: -.005em;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.iv a { color: var(--iv-accent-ink); text-underline-offset: 3px; }
/* reset a specificità zero: le classi dei componenti vincono sempre */
:where(.iv) h1, :where(.iv) h2, :where(.iv) h3, :where(.iv) h4 { font-family: var(--iv-sans); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; margin: 0; color: var(--iv-ink); }
:where(.iv) p { margin: 0; }
.iv button, .iv input, .iv select, .iv textarea { font-family: inherit; }
.iv-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.iv-display { font-family: var(--iv-display) !important; font-weight: 500 !important; letter-spacing: -.01em !important; }

/* ── Nav ── */
.iv-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.iv-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--iv-ink) !important; font-weight: 600; font-size: 15px; line-height: 1.2; }
.iv-brand img { width: 30px; height: 30px; border-radius: 8px; }
.iv-brand small { display: block; font-weight: 400; color: var(--iv-muted); font-size: 12px; }
.iv-nav-link { color: var(--iv-muted) !important; text-decoration: none; font-size: 14px; }
.iv-nav-link:hover { color: var(--iv-ink) !important; }

/* ── Bottoni ── */
.iv-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
    font: 600 15px/1.2 var(--iv-sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.iv-btn:focus-visible { outline: 3px solid var(--iv-accent-line); outline-offset: 2px; }
.iv-btn-primary { background: var(--iv-ink); color: #fff !important; }
.iv-btn-primary:hover { background: #000; }
.iv-btn-accent, .iv-btn-gold { background: var(--iv-accent); color: #fff !important; }
.iv-btn-accent:hover, .iv-btn-gold:hover { background: var(--iv-accent-ink); }
.iv-btn-ghost { background: #fff; color: var(--iv-ink) !important; border-color: var(--iv-line-strong); }
.iv-btn-ghost:hover { background: var(--iv-surface); }
.iv-btn-link { background: transparent; border: 0; padding: 0; min-height: 0; color: var(--iv-muted) !important; font-weight: 500; }
.iv-btn-block { width: 100%; }
.iv-btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.iv-btn-lg { min-height: 56px; padding: 16px 28px; font-size: 16px; }
.iv-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ── Badge / etichette ── */
.iv-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.iv-badge-premium { background: var(--iv-accent-soft); color: var(--iv-accent-ink); }
.iv-badge-soft { background: var(--iv-ok-soft); color: var(--iv-ok); }
.iv-badge-neutral { background: var(--iv-surface); color: var(--iv-ink-2); border: 1px solid var(--iv-line); }
.iv-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--iv-accent-ink); letter-spacing: 0; }
.iv-optional { font-weight: 400; color: var(--iv-muted); font-size: 13px; }

/* ════════════ Mockup smartphone ════════════ */
.iv-phone {
    position: relative; width: 300px; max-width: 100%; aspect-ratio: 9 / 19; margin: 0 auto;
    border-radius: 44px; background: #111; padding: 10px;
    box-shadow: 0 30px 60px -30px rgba(23, 23, 23, .45);
}
.iv-phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 999px; background: #000; z-index: 3; }
.iv-phone-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #0f0f12; color: #f5f0e8; }
.iv-phone-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.iv-phone-sm { width: 240px; border-radius: 38px; padding: 8px; }
.iv-phone-sm .iv-phone-screen { border-radius: 30px; }
.iv-phone-sm::before { top: 14px; width: 66px; height: 18px; margin-left: -33px; }

/* Schermata invito simulata (hero, configuratore) */
.iv-mini {
    position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 8px; padding: 56px 22px 28px; background-size: cover; background-position: center;
}
.iv-mini-label { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; opacity: .7; }
.iv-mini-names { font-family: var(--iv-display); font-size: 30px; line-height: 1.12; font-weight: 500; }
.iv-mini-sub { font-family: var(--iv-display); font-style: italic; font-size: 14px; opacity: .85; }
.iv-mini-date { margin-top: 14px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.iv-mini-cta { margin-top: auto; width: 100%; padding: 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #171717; font-size: 13px; font-weight: 600; }
.iv-mini-count { display: flex; gap: 14px; font-size: 18px; font-weight: 600; margin-top: 8px; }
.iv-mini-count small { display: block; font-size: 9px; letter-spacing: .14em; opacity: .6; font-weight: 500; }

/* ════════════ Landing ════════════ */
.iv-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding: 40px 0 88px; }
.iv-hero h1 { font-family: var(--iv-display); font-weight: 500; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.025em; margin: 14px 0 24px; }
.iv-hero h1 em { font-style: italic; color: var(--iv-accent); }
.iv-lead { color: var(--iv-ink-2); font-size: 18px; max-width: 560px; }
.iv-lead + .iv-lead { margin-top: 12px; }
.iv-lead-strong { color: var(--iv-ink); font-weight: 600; margin-top: 18px !important; }
.iv-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 30px; }
.iv-cta-support { color: var(--iv-muted); font-size: 14px; line-height: 1.45; }
.iv-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding: 0; list-style: none; }
.iv-proof li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 6px; border-radius: 999px; background: var(--iv-surface); font-size: 13px; font-weight: 500; color: var(--iv-ink-2); }
.iv-proof li span { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; border: 1px solid var(--iv-line); font-size: 11px; font-weight: 700; }
.iv-proof li.is-pay { background: var(--iv-accent-soft); color: var(--iv-accent-ink); }
.iv-hero-visual { position: relative; display: flex; justify-content: center; }
.iv-hero-visual::before { content: ''; position: absolute; inset: 8% 6% 4%; border-radius: 40px; background: var(--iv-accent-soft); z-index: 0; }
.iv-hero-visual .iv-phone { z-index: 1; }
.iv-float { position: absolute; z-index: 2; background: #fff; border: 1px solid var(--iv-line); border-radius: 14px; padding: 10px 14px; font-size: 13px; box-shadow: var(--iv-shadow); display: flex; align-items: center; gap: 10px; }
.iv-float strong { display: block; font-size: 13px; }
.iv-float small { color: var(--iv-muted); font-size: 12px; }
.iv-float-1 { left: -4px; top: 68%; }
.iv-float-2 { right: -4px; top: 16%; }
.iv-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--iv-ok); flex-shrink: 0; }

.iv-section { padding: 88px 0; }
.iv-section-alt { background: var(--iv-surface); }
.iv-section-head { max-width: 680px; margin: 0 0 48px; }
.iv-section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.iv-section-head h2 { font-family: var(--iv-display); font-weight: 500; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.02em; margin: 10px 0 14px; }
.iv-section-head p { color: var(--iv-ink-2); font-size: 18px; }

/* Funnel */
.iv-funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; counter-reset: fn; }
.iv-funnel li { background: #fff; border: 1px solid var(--iv-line); border-radius: var(--iv-radius); padding: 24px; }
.iv-funnel li::before { counter-increment: fn; content: '0' counter(fn); display: block; font-size: 13px; font-weight: 600; color: var(--iv-muted); margin-bottom: 26px; }
.iv-funnel h3 { font-size: 18px; margin-bottom: 6px; }
.iv-funnel p { color: var(--iv-muted); font-size: 15px; }
.iv-funnel li.is-pay { border-color: var(--iv-accent-line); background: var(--iv-accent-soft); }
.iv-funnel li.is-pay::before { color: var(--iv-accent-ink); }

/* Funzionalità: composizione editoriale */
.iv-showcase { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.iv-tile { background: var(--iv-surface); border-radius: var(--iv-radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.iv-tile h3 { font-size: 22px; }
.iv-tile > p, .iv-tile-xl > div > p { color: var(--iv-ink-2); font-size: 15px; }
.iv-tile > p + p, .iv-tile-xl > div > p + p { margin-top: -4px; }
.iv-tile-xl { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px; }
.iv-tile-xl h3 { font-family: var(--iv-display); font-weight: 500; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; }
.iv-tile-xl > div > p { font-size: 17px; }
.iv-tile-lg { grid-column: span 7; }
.iv-tile-md { grid-column: span 5; }
.iv-tile-sm { grid-column: span 4; }
.iv-tile-dark { background: var(--iv-ink); }
.iv-tile-dark h3, .iv-tile-dark .iv-eyebrow { color: #fff; }
.iv-tile-dark > p { color: rgba(255, 255, 255, .72); }
.iv-tile-accent { background: var(--iv-accent-soft); }
.iv-tile-visual { margin-top: auto; }

/* Mini-UI dimostrative dentro le feature */
.iv-demo { background: #fff; border: 1px solid var(--iv-line); border-radius: 16px; padding: 18px; font-size: 14px; }
.iv-demo-title { font-weight: 600; margin-bottom: 12px; }
.iv-demo-field { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--iv-line); margin-bottom: 8px; color: var(--iv-muted); }
.iv-demo-field strong { color: var(--iv-ink); font-weight: 500; }
.iv-demo-seg { display: flex; gap: 6px; margin-bottom: 8px; }
.iv-demo-seg span { flex: 1; text-align: center; padding: 9px; border-radius: 10px; border: 1px solid var(--iv-line); color: var(--iv-muted); }
.iv-demo-seg span.is-on { border-color: var(--iv-accent); background: var(--iv-accent-soft); color: var(--iv-accent-ink); font-weight: 600; }
.iv-demo-btn { display: block; text-align: center; padding: 11px; border-radius: 10px; background: var(--iv-ink); color: #fff; font-weight: 600; margin-top: 4px; }
.iv-map { position: relative; height: 170px; border-radius: 14px; overflow: hidden; background:
    linear-gradient(90deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 120px 120px,
    linear-gradient(0deg, transparent 47%, #fff 47%, #fff 53%, transparent 53%) 0 0 / 90px 90px,
    linear-gradient(135deg, #e8eef6 0%, #eef3ea 100%); border: 1px solid var(--iv-line); }
.iv-map-pin { position: absolute; left: 46%; top: 34%; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--iv-accent); box-shadow: 0 0 0 6px rgba(110, 86, 207, .18); }
.iv-map-card { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--iv-line); font-size: 13px; }
.iv-map-card strong { display: block; font-size: 13px; }
.iv-map-card span { color: var(--iv-accent-ink); font-weight: 600; white-space: nowrap; }
.iv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.iv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--iv-line); font-size: 13px; font-weight: 500; }
.iv-url { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--iv-line); font-size: 13px; color: var(--iv-ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.iv-url b { color: var(--iv-ink); font-weight: 600; }
.iv-bubble { background: #dcf8c6; color: #1f2c1a; border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 13px; max-width: 260px; }
.iv-bubble a { display: block; color: #1d6fa5; margin-top: 4px; font-weight: 500; text-decoration: none; }
.iv-gift { background: #fff; border: 1px solid var(--iv-line); border-radius: 20px; padding: 26px; text-align: center; max-width: 400px; margin: 0 auto; }
.iv-gift-label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--iv-muted); }
.iv-gift-title { font-family: var(--iv-display); font-size: 26px; margin: 8px 0 18px; }
.iv-gift-iban { white-space: nowrap; overflow: hidden; font: 600 15px/1.4 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .02em; padding: 14px 10px; border-radius: 12px; background: var(--iv-surface); }
.iv-gift-owner { font-size: 13px; color: var(--iv-muted); margin: 10px 0 14px; }

/* ════════════ Prezzi ════════════ */
.iv-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.iv-price-card { position: relative; background: #fff; border: 1px solid var(--iv-line); border-radius: var(--iv-radius-lg); padding: 28px; display: flex; flex-direction: column; }
.iv-price-card.is-featured { border: 2px solid var(--iv-accent); padding: 27px; }
.iv-price-card .iv-badge { position: absolute; top: 20px; right: 20px; }
.iv-price-card h3 { font-size: 18px; }
.iv-price { font-size: 44px; font-weight: 650; letter-spacing: -.03em; margin: 14px 0 2px; }
.iv-price-note { color: var(--iv-muted); font-size: 13px; margin-bottom: 22px; }
.iv-price-card ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; display: grid; gap: 10px; }
.iv-price-card li { position: relative; padding-left: 26px; color: var(--iv-ink-2); font-size: 15px; }
.iv-price-card li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2px solid var(--iv-accent); border-bottom: 2px solid var(--iv-accent); transform: rotate(-45deg); }
.iv-price-card li.is-plus { font-weight: 600; color: var(--iv-ink); }
.iv-price-card li.is-plus::before { display: none; }

.iv-closing { text-align: center; padding: 72px 24px; border-radius: 32px; background: var(--iv-ink); margin: 0 0 56px; }
.iv-closing h2 { font-family: var(--iv-display); font-weight: 500; color: #fff; font-size: clamp(30px, 3.6vw, 46px); max-width: 760px; margin: 0 auto 14px; }
.iv-closing p { color: rgba(255, 255, 255, .7); margin-bottom: 28px; }
.iv-closing .iv-btn-primary { background: #fff; color: var(--iv-ink) !important; }
.iv-footer { text-align: center; color: var(--iv-muted); font-size: 13px; padding: 0 0 40px; }

/* ════════════ Form e campi ════════════ */
.iv-card { background: #fff; border: 1px solid var(--iv-line); border-radius: var(--iv-radius-lg); padding: 36px; }
.iv-field { margin-bottom: 22px; }
.iv-field label, .iv-label { display: block; font-size: 14px; font-weight: 600; color: var(--iv-ink); margin-bottom: 8px; }
.iv-hint { display: block; font-size: 13px; color: var(--iv-muted); margin-top: 8px; font-weight: 400; line-height: 1.45; }
.iv input[type=text], .iv input[type=email], .iv input[type=date], .iv input[type=time],
.iv input[type=number], .iv input[type=tel], .iv select, .iv textarea {
    width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--iv-line-strong);
    background: #fff; color: var(--iv-ink); font: 400 16px/1.3 var(--iv-sans);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.iv input::placeholder { color: #a3a3a3; }
.iv input:hover, .iv select:hover { border-color: #bdbdbd; }
.iv input:focus, .iv select:focus, .iv textarea:focus { outline: none; border-color: var(--iv-accent); box-shadow: 0 0 0 4px rgba(110, 86, 207, .14); }
.iv input:disabled, .iv select:disabled { background: var(--iv-surface); color: var(--iv-muted); }
.iv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.iv-notice { background: var(--iv-accent-soft); color: var(--iv-accent-ink); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 14px 0 0; }
.iv-notice.is-warn { background: var(--iv-warn-soft); color: var(--iv-warn); }
.iv-notice.is-spaced { margin-bottom: 18px; }
.iv-flash { background: var(--iv-ok-soft); color: var(--iv-ok); border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 500; margin-bottom: 20px; }
.iv-error { background: var(--iv-danger-soft); color: var(--iv-danger); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }
.iv-details summary { cursor: pointer; font-size: 14px; color: var(--iv-muted); list-style: none; }
.iv-details summary::before { content: '+ '; color: var(--iv-accent-ink); font-weight: 600; }
.iv-details[open] summary::before { content: '− '; }
.iv-details .iv-row { margin-top: 12px; }

/* ── Scelte visuali ── */
.iv-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.iv-choice { position: relative; display: block; cursor: pointer; border: 1px solid var(--iv-line); border-radius: 14px; background: #fff; padding: 8px; transition: border-color .15s ease, box-shadow .15s ease; }
.iv-choice:hover { border-color: var(--iv-line-strong); }
.iv-choice input { position: absolute; opacity: 0; pointer-events: none; }
.iv-choice.is-selected, .iv-choice:has(input:checked) { border-color: var(--iv-accent); box-shadow: 0 0 0 1px var(--iv-accent); }
.iv-choice.is-selected::after, .iv-choice:has(input:checked)::after { content: ''; position: absolute; top: 14px; left: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--iv-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; z-index: 2; }
.iv-choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(110, 86, 207, .3); }
.iv-choice:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.iv-choice-name { display: block; font-size: 14px; font-weight: 500; margin-top: 8px; padding: 0 4px 2px; }
.iv-choice .iv-badge { position: absolute; top: 14px; right: 14px; z-index: 2; }
.iv-swatch { height: 96px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.iv-swatch-names { font-family: var(--iv-display); font-size: 18px; }
.iv-swatch-dots { display: flex; gap: 5px; }
.iv-swatch-dots span { width: 9px; height: 9px; border-radius: 50%; }
.iv-thumb { height: 96px; border-radius: 10px; background: var(--iv-surface) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--iv-muted); overflow: hidden; }
.iv-thumb video { width: 100%; height: 100%; object-fit: cover; }
.iv-plan-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.iv-plan { padding: 20px; }
.iv-plan.is-selected::after, .iv-plan:has(input:checked)::after { left: auto; right: 16px; top: 16px; }
.iv-plan-name { display: block; font-size: 15px; font-weight: 600; }
.iv-plan-price { display: block; font-size: 30px; font-weight: 650; letter-spacing: -.03em; margin: 6px 0 4px; }
.iv-plan ul { margin: 10px 0 0; padding-left: 18px; color: var(--iv-muted); font-size: 14px; }
.iv-plan-sub { display: block; color: var(--iv-muted); font-size: 14px; }

/* ════════════ Configuratore ════════════ */
/* Barra dei passaggi: progressione, non tab */
.iv-steps { display: flex; gap: 0; list-style: none; padding: 0; margin: 4px 0 32px; overflow-x: auto; scrollbar-width: none; }
.iv-steps::-webkit-scrollbar { display: none; }
.iv-steps li { flex: 1 0 auto; position: relative; }
.iv-steps li + li::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--iv-line); z-index: 0; }
.iv-steps li.is-reached + li.is-reached::before { background: var(--iv-accent); }
.iv-step-btn {
    position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 0 6px; border: 0; background: transparent; color: var(--iv-muted); font: 500 13px/1.2 var(--iv-sans); cursor: pointer; white-space: nowrap;
}
.iv-step-btn .n { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--iv-line); color: var(--iv-muted); font-size: 13px; font-weight: 600; transition: all .15s ease; }
.iv-step-btn:hover .n { border-color: var(--iv-line-strong); }
.iv-step-btn.is-done { color: var(--iv-ink-2); }
.iv-step-btn.is-done .n { background: var(--iv-accent); border-color: var(--iv-accent); color: #fff; }
.iv-step-btn.is-current { color: var(--iv-ink); font-weight: 600; }
.iv-step-btn.is-current .n { border-color: var(--iv-accent); color: var(--iv-accent-ink); box-shadow: 0 0 0 4px var(--iv-accent-soft); }

.iv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; padding-bottom: 56px; }
.iv-panel[hidden] { display: none; }
.iv-panel-head { margin-bottom: 30px; }
.iv-panel-head .iv-eyebrow { margin-bottom: 10px; color: var(--iv-muted); font-weight: 500; }
.iv-panel-head h1 { font-size: clamp(30px, 3vw, 38px); margin-bottom: 10px; }
.iv-panel-head p { color: var(--iv-ink-2); font-size: 17px; }
.iv-group { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--iv-line); }
.iv-group:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.iv-group-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.iv-group-lead { color: var(--iv-muted); font-size: 14px; margin: -8px 0 14px; }
.iv-panel-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--iv-line); }
.iv-panel-nav-end { display: flex; gap: 10px; }
.iv-program-row { display: grid; grid-template-columns: 120px 1fr 160px 48px; gap: 10px; margin-bottom: 10px; }
.iv-icon-btn { border: 1px solid var(--iv-line-strong); background: #fff; border-radius: 12px; cursor: pointer; font-size: 15px; color: var(--iv-muted); }
.iv-icon-btn:hover { background: var(--iv-surface); color: var(--iv-ink); }
.iv-check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; cursor: pointer; }
.iv-check input { width: 20px; height: 20px; accent-color: var(--iv-accent); }
.iv-big-preview { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.iv-big-preview .iv-phone { width: 270px; }
.iv-big-preview h2 { font-size: 26px; margin-bottom: 10px; }
.iv-big-preview p { color: var(--iv-ink-2); margin-bottom: 24px; }
.iv-published { display: grid; gap: 10px; max-width: 420px; }
.iv-qr { background: #fff; border: 1px solid var(--iv-line); border-radius: 16px; padding: 10px; width: 176px; height: 176px; margin-bottom: 8px; }
.iv-qr img { width: 100%; height: 100%; display: block; }

/* Colonna destra: anteprima protagonista */
.iv-aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.iv-aside-stage { background: var(--iv-surface); border-radius: var(--iv-radius-lg); padding: 28px 24px; }
.iv-summary { background: #fff; border: 1px solid var(--iv-line); border-radius: var(--iv-radius); padding: 20px; }
.iv-summary-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.iv-summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; }
.iv-summary-row span:first-child { color: var(--iv-muted); }
.iv-summary-row strong { text-align: right; font-weight: 600; }
.iv-summary .iv-btn { margin-top: 12px; }
.iv-summary-total { border-top: 1px solid var(--iv-line); margin-top: 6px; padding-top: 14px; font-size: 16px; }
.iv-reassure { font-size: 13px; color: var(--iv-muted); margin-top: 12px; text-align: center; line-height: 1.45; }

.iv-mobilebar { display: none; }

/* ── Form di creazione e checkout ── */
.iv-create { max-width: 600px; margin: 0 auto; padding: 24px 0 72px; }
.iv-create-head { text-align: center; margin-bottom: 32px; }
.iv-create-head h1 { font-family: var(--iv-display); font-weight: 500; font-size: clamp(34px, 5vw, 48px); letter-spacing: -.02em; margin: 10px 0 12px; }
.iv-create-head p { color: var(--iv-ink-2); font-size: 17px; }
.iv-create .iv-card .iv-btn-block { margin-top: 8px; }
.iv-order-plan { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--iv-radius); background: var(--iv-accent-soft); margin: 0 0 6px; }
.iv-order-plan strong { display: block; font-size: 17px; }
.iv-order-plan small { color: var(--iv-accent-ink); font-size: 13px; }
.iv-order-plan .iv-order-price { font-size: 32px; font-weight: 650; letter-spacing: -.03em; }

/* ── Complementi landing ── */
.iv-nav-end { display: flex; align-items: center; gap: 20px; }
.iv-hero-copy { min-width: 0; }
.iv-section-tight { padding-top: 24px; }
.iv-mini-demo { background: #1f1b2e; color: #f4f1fb; }
.iv-mini-demo .iv-mini-names { color: #fff; }
.iv-mini-demo .iv-mini-label { margin-top: auto; }
.iv-mini-demo .iv-mini-count { margin-bottom: 8px; }
.iv-tile > .iv-badge, .iv-tile > .iv-eyebrow, .iv-tile-xl > div > .iv-badge { align-self: flex-start; }
.iv-tile-xl .iv-phone-sm { width: 210px; }
/* Configuratore: i campi stanno sul bianco, senza card che contiene altre card */
.iv-layout > main > .iv-card { border: 0; border-radius: 0; padding: 4px 0 0; }
.iv-float-icon { font-size: 18px; }
.iv-tile-xl > div:first-child { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.iv-tile-xl .iv-tile-visual { margin: 0; }
.iv-tile-sm .iv-tile-visual { padding-top: 6px; }
.iv-closing .iv-eyebrow { color: #c9bdf3; margin-bottom: 12px; }

/* Busta: illustrazione CSS (i video delle buste restano nell'invito vero) */
.iv-env-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: #efeafb; }
.iv-env { position: relative; width: 78%; aspect-ratio: 3 / 2; border-radius: 10px; background: #2b2540; overflow: hidden; box-shadow: 0 18px 30px -18px rgba(23, 23, 23, .55); }
.iv-env::before, .iv-env::after { content: ''; position: absolute; bottom: 0; width: 60%; height: 70%; background: #332c4c; }
.iv-env::before { left: 0; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.iv-env::after { right: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.iv-env-flap { position: absolute; inset: 0 0 auto 0; height: 58%; background: #3a3256; clip-path: polygon(0 0, 100% 0, 50% 100%); z-index: 1; transform-origin: top; animation: iv-flap 4.8s ease-in-out infinite; }
.iv-env-seal { position: absolute; left: 50%; top: 58%; z-index: 2; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--iv-accent); color: #fff; display: flex; align-items: center; justify-content: center; font: 500 13px/1 var(--iv-display); box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); animation: iv-pulse 2.4s ease-in-out infinite; }
.iv-env-hint { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #4b4366; }
@keyframes iv-pulse { 50% { transform: scale(1.08); } }
@keyframes iv-flap { 0%, 70%, 100% { transform: scaleY(1); } 80%, 90% { transform: scaleY(.86); } }
@media (prefers-reduced-motion: reduce) { .iv-env-flap, .iv-env-seal { animation: none; } }

/* ── Complementi configuratore e checkout ── */
.iv-aside-caption { text-align: center; font-size: 12px; color: var(--iv-muted); margin-top: 14px !important; }
.iv-aside.is-step-6 .iv-aside-stage { display: none; }
.iv-plan-name .iv-badge { margin-left: 6px; vertical-align: 2px; }
.iv-summary-checkout { padding: 24px; }
.iv-notice-link { color: inherit !important; font-weight: 700; }
.iv-pay-form { margin-top: 24px; }
.iv-card > .iv-summary-row { border-bottom: 1px solid var(--iv-line); padding: 12px 0; }
.iv-card > .iv-summary-row.iv-summary-total { border-bottom: 0; border-top: 0; font-size: 17px; }
.iv-card > .iv-summary-row.iv-summary-total strong { font-size: 22px; }

/* ════════════ Responsive ════════════ */
@media (max-width: 1080px) {
    .iv-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
    .iv-tile-lg, .iv-tile-md { grid-column: span 12; }
    .iv-tile-sm { grid-column: span 6; }
}
@media (max-width: 960px) {
    .iv-hero { grid-template-columns: 1fr; gap: 40px; padding-bottom: 56px; }
    .iv-hero-visual { order: 2; }
    .iv-layout { grid-template-columns: 1fr; }
    /* Su schermi stretti l'anteprima diventa una striscia compatta sopra i campi */
    .iv-aside { position: static; order: -1; }
    .iv-aside.is-step-6, .iv-aside.is-step-7 { display: none; }
    .iv-aside .iv-summary, .iv-aside-caption { display: none; }
    .iv-aside-stage { padding: 0; background: none; }
    .iv-aside .iv-phone { width: 100%; aspect-ratio: auto; height: 150px; padding: 0; border-radius: 18px; background: none; box-shadow: none; }
    .iv-aside .iv-phone::before { display: none; }
    .iv-aside .iv-phone-screen { border-radius: 18px; }
    .iv-aside .iv-mini { padding: 16px; gap: 4px; }
    .iv-aside .iv-mini-names { font-size: 24px; }
    .iv-aside .iv-mini-date { margin-top: 6px; padding: 6px 12px; }
    .iv-tile-xl { grid-template-columns: minmax(0, 1fr); padding: 32px; }
    .iv-funnel, .iv-pricing { grid-template-columns: 1fr 1fr; }
    .iv-big-preview { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 640px) {
    .iv-wrap { padding: 0 16px; }
    body.iv { font-size: 15px; }
    .iv-card { padding: 22px 18px; border-radius: 20px; }
    .iv-row, .iv-plan-choices, .iv-funnel, .iv-pricing { grid-template-columns: 1fr; }
    .iv-tile-sm { grid-column: span 12; }
    .iv-tile { padding: 24px; }
    .iv-gift { padding: 22px 16px; }
    .iv-gift-iban { font-size: 13px; white-space: normal; text-wrap: balance; }
    .iv-section { padding: 56px 0; }
    .iv-section-head { margin-bottom: 32px; }
    .iv-hero { padding-top: 16px; }
    .iv-lead { font-size: 16px; }
    .iv-float { display: none; }
    .iv-hero { gap: 0; }
    .iv-hero-copy { display: contents; }
    .iv-hero-copy > * { order: 2; }
    .iv-hero-copy > .iv-eyebrow, .iv-hero h1, .iv-hero-copy > .iv-lead:first-of-type, .iv-hero-cta { order: 0; }
    .iv-hero-visual { order: 1; margin: 36px 0 32px; }
    .iv-hero-visual .iv-phone { width: 250px; }
    .iv-hero-cta { margin-top: 24px; }
    .iv-hero-cta .iv-btn { width: 100%; }
    .iv-proof { display: grid; grid-template-columns: 1fr 1fr; }
    .iv-proof li { font-size: 12.5px; }
    .iv-program-row { grid-template-columns: 112px 1fr 48px; margin-bottom: 16px; }
    .iv-program-row input[type=text] { grid-column: 2 / 4; }
    .iv-program-row select { grid-column: 1 / 3; }
    .iv-panel-nav { display: none; }
    .iv-steps { margin-bottom: 22px; gap: 4px; }
    .iv-steps li { flex: 0 0 auto; }
    .iv-steps li + li::before { display: none; }
    .iv-step-btn { flex-direction: row; gap: 6px; padding: 6px 10px 6px 6px; border-radius: 999px; }
    .iv-step-btn .n { width: 26px; height: 26px; font-size: 12px; border-width: 1.5px; }
    .iv-step-btn .t { display: none; }
    .iv-step-btn.is-current { background: var(--iv-accent-soft); }
    .iv-step-btn.is-current .t { display: inline; }
    .iv-step-btn.is-current .n { box-shadow: none; }
    .iv-choices { grid-template-columns: 1fr 1fr; }
    .iv-nav-end .iv-nav-link { display: none; }
    .iv-hero h1 { font-size: 44px; }
    .iv-tile-xl { padding: 24px; gap: 28px; }
    .iv-closing { padding: 52px 20px; border-radius: 24px; }
    .iv-order-plan .iv-order-price { font-size: 28px; }
    .iv-big-preview .iv-phone { width: 240px; }
    .iv-panel-head h1 { font-size: 28px; }
    body.iv.has-mobilebar { padding-bottom: 88px; }
    .iv-mobilebar {
        display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94);
        border-top: 1px solid var(--iv-line); backdrop-filter: saturate(1.4) blur(12px);
    }
    .iv-mobilebar .iv-btn { flex: 1; min-height: 50px; }
    .iv-mobilebar .iv-btn-ghost { flex: 0 0 38%; }
}
