/* ── LDD Checkout ─────────────────────────────────────────────────────────── */
/* Variabili globali — disponibili anche al modale upsell (position:fixed) */
:root {
    --ldd-sand:   #CB9C73;
    --ldd-sand-d: #A87A52;
    --ldd-sand-l: #FAF4EE;
    --ldd-sage:   #6A8F70;
    --ldd-dark:   #1A1817;
    --ldd-mid:    #5A5A5A;
    --ldd-light:  #8A8A8A;
    --ldd-line:   #E8E0D8;
    --ldd-cream:  #FAF8F5;
    --ldd-white:  #FFFFFF;
    --ldd-red:    #c0392b;
}
#ldd-checkout-wrap {
    --sand:   var(--ldd-sand);
    --sand-d: var(--ldd-sand-d);
    --sand-l: var(--ldd-sand-l);
    --sage:   var(--ldd-sage);
    --dark:   var(--ldd-dark);
    --mid:    var(--ldd-mid);
    --light:  var(--ldd-light);
    --line:   var(--ldd-line);
    --cream:  var(--ldd-cream);
    --white:  var(--ldd-white);
    --red:    var(--ldd-red);
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    max-width: 980px;
    margin: 0 auto;
    padding: 0 16px 80px;
}

/* ── Layout 2 colonne ────────────────────────────────────────────────────── */
.ldd-co-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 700px) {
    .ldd-co-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    /* Su mobile il riepilogo va SOTTO il form, non sopra */
    .ldd-co-summary {
        order: 2;
        position: static !important; /* annulla sticky */
    }
    .ldd-co-grid > div:first-child {
        order: 1;
    }
}

/* ── Titolo pagina ────────────────────────────────────────────────────────── */
.ldd-co-header { margin-bottom: 32px; }
.ldd-co-header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 32px; font-weight: 300;
    color: var(--dark); margin: 0 0 6px;
}
.ldd-co-header p { font-size: 14px; color: var(--mid); margin: 0; }

/* ── Step progress bar ────────────────────────────────────────────────────── */
.ldd-co-steps {
    display: flex; gap: 0; margin-bottom: 32px;
    border-bottom: 2px solid var(--line);
}
.ldd-co-step {
    flex: 1; text-align: center; padding: 10px 0 12px;
    font-size: 12px; font-weight: 600; color: var(--light);
    letter-spacing: .05em; text-transform: uppercase;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}
.ldd-co-step.active  { color: var(--sand);   border-color: var(--sand); }
.ldd-co-step.done    { color: var(--sage);   border-color: var(--sage); }

/* ── Sezioni step ────────────────────────────────────────────────────────── */
.ldd-co-section { display: none; }
.ldd-co-section.visible { display: block; }

/* ── Card sezione ────────────────────────────────────────────────────────── */
.ldd-co-card {
    background: var(--white); border: 1.5px solid var(--line);
    border-radius: 8px; padding: 28px 28px 24px;
    margin-bottom: 20px;
}
.ldd-co-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px; font-weight: 400;
    color: var(--dark); margin: 0 0 20px;
    padding-bottom: 12px; border-bottom: 1px solid var(--line);
}

/* ── Form fields ─────────────────────────────────────────────────────────── */
.ldd-co-row {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-bottom: 16px;
}
.ldd-co-row.full { grid-template-columns: 1fr; }
@media (max-width: 480px) { .ldd-co-row { grid-template-columns: 1fr; } }

.ldd-co-field { display: flex; flex-direction: column; }
.ldd-co-field label {
    font-size: 11px; font-weight: 700;
    color: var(--light); letter-spacing: .06em;
    text-transform: uppercase; margin-bottom: 6px;
}
.ldd-co-field input,
.ldd-co-field select {
    border: 1.5px solid var(--line);
    border-radius: 6px; padding: 11px 14px;
    font-size: 14px; color: var(--dark);
    background: var(--white); outline: none;
    transition: border-color .2s;
    font-family: inherit;
}
.ldd-co-field input:focus,
.ldd-co-field select:focus { border-color: var(--sand); }
.ldd-co-field input.error { border-color: var(--red); }

/* ── Stripe Elements container ───────────────────────────────────────────── */
#ldd-card-element {
    border: 1.5px solid var(--line); border-radius: 6px;
    padding: 12px 14px; background: var(--white);
    transition: border-color .2s;
}
#ldd-card-element.StripeElement--focus { border-color: var(--sand); }
#ldd-card-element.StripeElement--invalid { border-color: var(--red); }
#ldd-card-errors {
    font-size: 12px; color: var(--red);
    margin-top: 8px; min-height: 16px;
}

/* ── Privacy note ────────────────────────────────────────────────────────── */
.ldd-co-privacy {
    font-size: 11px; color: var(--light);
    margin-top: 14px; line-height: 1.6;
}
.ldd-co-privacy a { color: var(--mid); }

/* ── Bottoni ─────────────────────────────────────────────────────────────── */
.ldd-co-actions { display: flex; gap: 12px; margin-top: 8px; align-items: center; }
.ldd-co-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 6px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; border: none; transition: background .2s, opacity .2s;
    font-family: inherit; text-decoration: none;
}
.ldd-co-btn-primary {
    background: var(--sand); color: var(--white);
}
.ldd-co-btn-primary:hover { background: var(--sand-d); }
.ldd-co-btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.ldd-co-btn-ghost {
    background: transparent; color: var(--mid);
    border: 1.5px solid var(--line);
}
.ldd-co-btn-ghost:hover { border-color: var(--mid); color: var(--dark); }

/* ── Spinner nel bottone ─────────────────────────────────────────────────── */
.ldd-co-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%; animation: ldd-spin .7s linear infinite;
    display: none;
}
.ldd-co-btn.loading .ldd-co-spinner { display: block; }
.ldd-co-btn.loading .ldd-co-btn-text { opacity: .7; }
@keyframes ldd-spin { to { transform: rotate(360deg); } }

/* ── Riepilogo (colonna destra) ──────────────────────────────────────────── */
.ldd-co-summary {
    background: var(--cream); border: 1.5px solid var(--line);
    border-radius: 8px; padding: 24px;
    position: sticky; top: 80px;
    /* Limita altezza su schermi bassi per evitare overflow */
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.ldd-co-summary h3 {
    font-size: 11px; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    color: var(--light); margin: 0 0 16px;
}
.ldd-sum-photo {
    width: 100%; border-radius: 6px;
    overflow: hidden; margin-bottom: 14px; aspect-ratio: 16/9;
    background: var(--line);
}
.ldd-sum-photo img { width: 100%; height: 100%; object-fit: cover; }
.ldd-sum-listing-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px; font-weight: 400; color: var(--dark);
    margin: 0 0 3px;
}
a.ldd-sum-listing-name {
    text-decoration: none;
    transition: color .2s;
}
a.ldd-sum-listing-name:hover { color: var(--co-sand, #CB9C73); }
.ldd-sum-listing-sub {
    font-size: 11px; font-weight: 700; color: var(--light);
    margin: 0 0 14px; letter-spacing: .03em;
}
.ldd-sum-dates {
    font-size: 13px; color: var(--mid);
    padding: 12px 0; border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); margin-bottom: 14px;
    display: flex; flex-direction: column; gap: 4px;
}
.ldd-sum-dates span { display: flex; justify-content: space-between; }
.ldd-sum-dates strong { color: var(--dark); }
.ldd-sum-row {
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--mid); margin-bottom: 8px;
}
.ldd-sum-row.total {
    font-size: 16px; font-weight: 700; color: var(--dark);
    padding-top: 12px; border-top: 1px solid var(--line);
    margin-top: 4px;
}
.ldd-sum-row.discount { color: var(--sage); font-size: 12px; }
.ldd-sum-promo {
    background: var(--sage); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .05em;
    padding: 4px 8px; border-radius: 4px;
    display: inline-block; margin-bottom: 12px;
}
.ldd-sum-loading {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--mid); padding: 20px 0;
}
.ldd-sum-loading::before {
    content: ''; width: 16px; height: 16px;
    border: 2px solid var(--line); border-top-color: var(--sand);
    border-radius: 50%; animation: ldd-spin .7s linear infinite;
    flex-shrink: 0;
}

/* ── Messaggio errore globale ────────────────────────────────────────────── */
.ldd-co-error-box {
    background: #FAF8F5;
    border: 1px solid #E8E0D8;
    border-left: 3px solid #CB9C73;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #5A5A5A;
    line-height: 1.5;
}
.ldd-co-error-box.visible { display: block; }

/* ── Success screen ──────────────────────────────────────────────────────── */
.ldd-co-success {
    text-align: center; padding: 60px 20px;
    display: none;
}
.ldd-co-success.visible { display: block; }
.ldd-co-success .ldd-success-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--sage); color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; font-size: 28px;
}
.ldd-co-success h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px; font-weight: 300; margin: 0 0 10px;
}
.ldd-co-success p { font-size: 15px; color: var(--mid); margin: 0 0 8px; }
.ldd-co-success .conf-code {
    font-size: 22px; font-weight: 700; color: var(--sand);
    letter-spacing: .05em; margin: 20px 0;
}
.ldd-co-success .ldd-co-btn { margin: 0 auto; }

/* ── Icone carte ─────────────────────────────────────────────────────────── */
.ldd-card-icons {
    display: flex; gap: 6px; margin-bottom: 12px;
    align-items: center;
}
.ldd-card-icons svg { height: 20px; opacity: .5; }

/* ── Skeleton loading ────────────────────────────────────────────────────── */
.ldd-co-skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: ldd-shimmer 1.4s infinite;
    border-radius: 4px; height: 14px; margin-bottom: 8px;
}
@keyframes ldd-shimmer { to { background-position: -200% 0; } }

/* ── Rate plan selector ──────────────────────────────────────────────────── */
.ldd-rate-plans { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ldd-rate-plan {
    border: 1.5px solid var(--line); border-radius: 8px;
    padding: 14px 16px; cursor: pointer;
    transition: border-color .2s, background .2s;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px;
}
.ldd-rate-plan:hover { border-color: var(--sand); }
.ldd-rate-plan.selected {
    border-color: var(--sand); background: #fdf8f3;
}
.ldd-rate-plan input[type="radio"] { display: none; }
.ldd-rate-plan-info { flex: 1; }
.ldd-rate-plan-name {
    font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 2px;
}
.ldd-rate-plan-badge {
    display: inline-block; font-size: 10px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 3px; margin-left: 6px;
    background: var(--sage); color: #fff;
}
.ldd-rate-plan-promo {
    font-size: 11px; color: var(--sage); font-weight: 600; margin-top: 2px;
}
.ldd-rate-plan-price {
    text-align: right; flex-shrink: 0;
}
.ldd-rate-plan-price .price-main {
    font-size: 16px; font-weight: 700; color: var(--dark);
}
.ldd-rate-plan-price .price-orig {
    font-size: 12px; color: var(--light); text-decoration: line-through;
    display: block;
}
.ldd-co-plan-loading {
    font-size: 13px; color: var(--mid); padding: 10px 0;
    display: flex; align-items: center; gap: 8px;
}
.ldd-co-plan-loading::before {
    content: ''; width: 14px; height: 14px; flex-shrink: 0;
    border: 2px solid var(--line); border-top-color: var(--sand);
    border-radius: 50%; animation: ldd-spin .7s linear infinite;
}

/* ── Sezione documenti (step 2 extra) ──────────────────────────────────── */
.ldd-co-divider {
    font-size: 11px; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: var(--light);
    padding: 14px 0 10px; border-top: 1px solid var(--line);
    margin-top: 8px;
}

/* ── Upsell Modal ─────────────────────────────────────────────────────── */
.ldd-upsell-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
    font-family: 'Montserrat', sans-serif;
}
.ldd-upsell-modal.visible { opacity: 1; }

.ldd-upsell-overlay {
    position: absolute; inset: 0;
    background: rgba(26,24,23,.5);
}
.ldd-upsell-box {
    position: relative; z-index: 1;
    background: var(--ldd-cream); border-radius: 12px;
    width: min(480px, 92vw); max-height: 80vh;
    display: flex; flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.ldd-upsell-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 16px; border-bottom: 1px solid var(--ldd-line);
}
.ldd-upsell-header h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ldd-dark); }
.ldd-upsell-close {
    background: none; border: none; cursor: pointer;
    font-size: 18px; color: var(--ldd-light); padding: 4px;
    line-height: 1; transition: color .15s;
}
.ldd-upsell-close:hover { color: var(--ldd-dark); }
.ldd-upsell-items { overflow-y: auto; padding: 8px 0; flex: 1; }

.ldd-upsell-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 24px;
    border-bottom: 1px solid var(--ldd-line); transition: background .15s;
}
.ldd-upsell-item.selected { background: var(--ldd-sand-l); }
.ldd-upsell-item-info { flex: 1; min-width: 0; }
.ldd-upsell-item-name { font-size: 14px; font-weight: 600; color: var(--ldd-dark); }
.ldd-upsell-item-desc { font-size: 12px; color: var(--ldd-light); margin-top: 2px; }
.ldd-upsell-item-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ldd-upsell-item-price { font-size: 14px; font-weight: 600; color: var(--ldd-dark); }

.ldd-upsell-btn-add {
    padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
    border: 1.5px solid var(--ldd-sand); background: transparent; color: var(--ldd-sand);
    cursor: pointer; transition: all .15s; white-space: nowrap;
}
.ldd-upsell-btn-add:hover { background: var(--ldd-sand-l); }
.ldd-upsell-btn-add.added {
    background: var(--ldd-sand); color: var(--ldd-white); border-color: var(--ldd-sand);
}
.ldd-upsell-btn-add.added:hover { background: var(--ldd-sand-d); border-color: var(--ldd-sand-d); }
.ldd-upsell-footer {
    display: flex; gap: 10px; padding: 16px 24px;
    border-top: 1px solid var(--ldd-line);
    justify-content: flex-end;
}

/* ── Skeleton loader ──────────────────────────────────────────────────── */
@keyframes ldd-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}
.ldd-skeleton-wrap { display: flex; flex-direction: column; gap: 16px; }
.ldd-skel {
    border-radius: 6px;
    background: linear-gradient(90deg, #F2EDE6 25%, #FAF8F5 50%, #F2EDE6 75%);
    background-size: 600px 100%;
    animation: ldd-shimmer 1.4s infinite linear;
}
.ldd-skel-title  { height: 22px; width: 55%; margin-bottom: 14px; }
.ldd-skel-line   { height: 14px; width: 100%; margin-bottom: 10px; }
.ldd-skel-short  { width: 65% !important; }
.ldd-skel-btn    { height: 44px; width: 140px; margin-top: 12px; border-radius: 8px; }

/* ── Upsell modal refinements ─────────────────────────────────────────── */
.ldd-upsell-subtitle {
    font-size: 13px; color: var(--ldd-light);
    margin: 4px 0 0; line-height: 1.5;
}
.ldd-upsell-footer .ldd-co-btn {
    min-width: 100px;
    font-family: 'Montserrat', sans-serif;
}
.ldd-upsell-footer .ldd-co-btn-primary {
    background: var(--ldd-sand); color: var(--ldd-white); border: none;
}
.ldd-upsell-footer .ldd-co-btn-primary:hover { background: var(--ldd-sand-d); }
.ldd-upsell-footer .ldd-co-btn-ghost {
    background: transparent;
    border: 1.5px solid var(--ldd-line);
    color: var(--ldd-mid);
}
.ldd-upsell-footer .ldd-co-btn-ghost:hover {
    border-color: var(--ldd-sand); color: var(--ldd-sand); background: var(--ldd-sand-l);
}

/* ── Coupon ───────────────────────────────────────────────────────────── */
.ldd-coupon-card { padding: 14px 20px !important; }

.ldd-coupon-row {
    display: flex; gap: 8px; align-items: center;
}
.ldd-coupon-row input {
    flex: 1; height: 40px; padding: 0 12px;
    border: 1.5px solid #E0D8CF; border-radius: 6px;
    font-size: 13px; font-weight: 600; letter-spacing: .05em;
    color: #1A1817; background: #FAF8F5;
    transition: border-color .15s;
}
.ldd-coupon-row input:focus {
    outline: none; border-color: #CB9C73;
}
.ldd-coupon-row input::placeholder { font-weight: 400; letter-spacing: 0; color: #8A8A8A; }

.ldd-co-btn-ghost-sm {
    height: 40px; padding: 0 16px;
    border: 1.5px solid #CB9C73; border-radius: 6px;
    background: transparent; color: #CB9C73;
    font-size: 13px; font-weight: 600; cursor: pointer;
    white-space: nowrap; transition: all .15s; flex-shrink: 0;
}
.ldd-co-btn-ghost-sm:hover { background: #FAF4EE; }
.ldd-co-btn-ghost-sm:disabled { opacity: .5; cursor: default; }

.ldd-coupon-msg {
    font-size: 12px; margin-top: 8px; min-height: 16px;
}
.ldd-coupon-msg--success { color: #4A7C59; font-weight: 600; }
.ldd-coupon-msg--error   { color: #c0392b; }

/* Riga coupon nel riepilogo */
.ldd-sum-row.coupon-row span:first-child { color: #4A7C59; font-weight: 600; }
.ldd-sum-row.coupon-row .coupon-val { color: #4A7C59; font-weight: 700; }

/* ── Select e textarea step 2 ────────────────────────────────────────── */
.ldd-co-field select,
.ldd-co-field textarea {
    width: 100%; padding: 10px 12px;
    border: 1.5px solid #E0D8CF; border-radius: 6px;
    font-size: 14px; color: #1A1817; background: #FAF8F5;
    font-family: inherit; transition: border-color .15s;
    box-sizing: border-box;
}
.ldd-co-field select:focus,
.ldd-co-field textarea:focus { outline: none; border-color: #CB9C73; }
.ldd-co-field textarea { resize: vertical; min-height: 72px; }

/* ── Share card (success screen) ─────────────────────────────────────── */
.ldd-share-card {
    margin: 24px 0 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #F2EDE6;
    background: #FAF8F5;
    width: 100%;
}
.ldd-share-card-inner {
    display: flex;
    flex-direction: column;
}
.ldd-share-card-photo {
    width: 100%; height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #F2EDE6;
}
.ldd-share-card-body {
    padding: 16px;
}
.ldd-share-card-label {
    font-size: 13px; color: #5A5A5A;
    margin: 0 0 4px;
}
.ldd-share-card-title {
    font-size: 15px; font-weight: 700;
    color: #1A1817; margin: 0 0 14px;
}
.ldd-share-actions {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.ldd-share-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px;
    font-size: 13px; font-weight: 600; cursor: pointer;
    border: 1.5px solid transparent; transition: all .15s;
    white-space: nowrap;
}
.ldd-share-wa {
    background: #25D366; color: #fff; border-color: #25D366;
}
.ldd-share-wa:hover { background: #1ebe5a; }
.ldd-share-copy {
    background: transparent; color: #CB9C73;
    border-color: #CB9C73;
}
.ldd-share-copy:hover { background: #FAF4EE; }
.ldd-share-native {
    background: transparent; color: #1A1817;
    border-color: #E0D8CF;
}
.ldd-share-native:hover { background: #F2EDE6; }

/* ── T&C checkbox ─────────────────────────────────────────────────────── */
.ldd-tc-wrap {
    margin: 4px 0 16px;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1.5px solid #F2EDE6;
    background: #FAF8F5;
}
.ldd-tc-label {
    display: flex; align-items: flex-start; gap: 10px;
    cursor: pointer; font-size: 13px; color: #5A5A5A;
    line-height: 1.5; user-select: none;
}
.ldd-tc-label input[type="checkbox"] {
    width: 18px; height: 18px; flex-shrink: 0;
    margin-top: 1px; cursor: pointer;
    accent-color: #CB9C73;
}
.ldd-tc-label a {
    color: #CB9C73; text-decoration: underline;
}
.ldd-tc-label.accepted {
    color: #4A7C59;
    border-color: #4A7C59;
}

/* Animazione shake quando si tenta di procedere senza accettare */
@keyframes ldd-shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.ldd-tc-label.shake {
    animation: ldd-shake .5s ease;
    border-color: #c0392b;
    color: #c0392b;
}

/* Pulsante disabilitato */
.ldd-co-btn:disabled {
    opacity: .45; cursor: not-allowed;
}


/* ── Topbar navigazione checkout ─────────────────────────────────────── */
.ldd-co-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0 4px;
    margin-bottom: 8px;
    font-size: 12px;
    font-family: var(--co-sans, 'Montserrat', sans-serif);
}
.ldd-co-topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #5A5A5A;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .04em;
    transition: color .2s;
}
.ldd-co-topbar-back:hover { color: #CB9C73; }
.ldd-co-topbar-sep { color: #C8C0B8; }
.ldd-co-topbar-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #CB9C73;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.ldd-co-topbar-detail:hover { color: #A87A52; text-decoration: underline; }

/* ── Accordion accesso ospiti ────────────────────────────────────────── */
.ldd-hm-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F5F0E8;
    border: 1px solid #E0D5C5;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-family: var(--co-sans, 'Montserrat', sans-serif);
    font-size: 13px;
    font-weight: 600;
    color: #1A1817;
    text-align: left;
    transition: background .2s, border-color .2s;
}
.ldd-hm-toggle:hover { background: #EDE8DE; border-color: #CB9C73; }
.ldd-hm-icon { font-size: 15px; flex-shrink: 0; }
.ldd-hm-label { flex: 1; }
.ldd-hm-chevron { flex-shrink: 0; color: #8A8A8A; transition: transform .25s; }
.ldd-hm-body {
    background: #FDFAF6;
    border: 1px solid #E0D5C5;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 14px 16px;
    margin-top: -2px;
}
.ldd-hm-text {
    font-size: 13px;
    color: #3A3A3A;
    line-height: 1.7;
    font-family: var(--co-sans, 'Montserrat', sans-serif);
    white-space: pre-line;
}

.ldd-sum-promo-msg{font-size:12px;color:#5A7A5A;background:#F0F7F0;border:1px solid #C8DECA;border-radius:8px;padding:10px 12px;margin-bottom:10px;line-height:1.5}

/* ── Condizioni cancellazione nei rate plans ──────────────────────────── */
.ldd-rp-conditions {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #EDE8E1;
    font-family: 'Montserrat', sans-serif;
}
.ldd-rp-cond-toggle {
    background: none;
    border: none;
    padding: 0;
    font-size: 11px;
    font-weight: 600;
    color: #8A8A8A;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Montserrat', sans-serif;
}
.ldd-rp-cond-toggle:hover { color: #5A5A5A; }
.ldd-rp-cond-toggle svg { transition: transform .2s; }
.ldd-rp-cond-toggle.open svg { transform: rotate(180deg); }
.ldd-rp-cond-body {
    margin-top: 8px;
}
.ldd-rp-cond-title {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 3px;
}
.ldd-rp-cond-desc {
    font-size: 11px;
    color: #5A5A5A;
    line-height: 1.5;
}
.ldd-rp-cond-fee {
    font-size: 11px;
    color: #C0392B;
    font-weight: 600;
    margin-top: 3px;
}
/* Condizioni visibili solo sul piano selezionato */
.ldd-rate-plan .ldd-rp-conditions { display: none; }
.ldd-rate-plan.selected .ldd-rp-conditions { display: block; }

/* ── Coupon badge in "Il tuo soggiorno" ─────────────────────────────────── */
.ldd-s1-coupon-badge {
    display: block;
    background: #F0F7F0;
    border: 1px solid #C8DECA;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #5A7A5A;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* ── Badge "Prezzo migliore" sul rate plan ───────────────────────────────── */
.ldd-rp-best-badge {
    display: inline-block;
    background: #CB9C73;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 2px 7px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.6;
}

/* ── Animazione post-pagamento ────────────────────────────────────────────── */
#ldd-booking-anim {
    opacity: 0;
    transition: opacity .5s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
#ldd-booking-anim.ldd-anim-visible {
    opacity: 1;
    pointer-events: all;
}
.ldd-anim-overlay {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20, 18, 16, .82);
    backdrop-filter: blur(8px) saturate(1.4);
    font-family: 'Montserrat', sans-serif;
}

/* Box centrale */
.ldd-anim-box {
    position: relative;
    background: linear-gradient(160deg, #FDFAF6 0%, #FAF4EA 100%);
    border-radius: 24px;
    width: min(420px, 90vw);
    padding: 44px 40px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow:
        0 0 0 1px rgba(203,156,115,.18),
        0 32px 80px rgba(0,0,0,.32),
        0 8px 24px rgba(203,156,115,.12);
    overflow: hidden;
    text-align: center;
}
/* Alone decorativo in basso a destra */
.ldd-anim-box::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(203,156,115,.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Logo / brand */
.ldd-anim-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ldd-sand);
    margin-bottom: 28px;
    opacity: .8;
}

/* Titolo principale con fade-slide */
.ldd-anim-headline {
    font-size: 20px;
    font-weight: 700;
    color: var(--ldd-dark);
    letter-spacing: -.01em;
    margin-bottom: 8px;
    min-height: 28px;
    transition: none;
    opacity: 0;
    transform: translateY(6px);
}
.ldd-anim-headline.ldd-anim-in {
    animation: ldd-fade-up .35s cubic-bezier(.22,1,.36,1) forwards;
}

/* Sottotitolo */
.ldd-anim-sub-line {
    font-size: 13px;
    color: var(--ldd-light);
    min-height: 18px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(4px);
}
.ldd-anim-sub-line.ldd-anim-in {
    animation: ldd-fade-up .35s .08s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes ldd-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

/* Step dots row — solo icone, connettore tra loro */
.ldd-anim-steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 28px;
    gap: 0;
}
.ldd-anim-step {
    display: flex;
    align-items: center;
    flex: 1;
    opacity: .22;
    transition: opacity .35s ease, transform .35s ease;
}
/* Linea connettore tra i cerchi */
.ldd-anim-step::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: var(--ldd-line);
    transition: background .4s ease;
    min-width: 4px;
}
.ldd-anim-step:last-child::after { display: none; }

.ldd-anim-step-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--ldd-line);
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    flex-shrink: 0;
    transition: all .35s cubic-bezier(.22,1,.36,1);
}
.ldd-anim-step-icon svg {
    width: 12px; height: 12px;
    stroke: var(--ldd-light);
    transition: stroke .35s ease;
}
/* Nessuna label sotto — il testo è nell'headline */
.ldd-anim-step-label { display: none; }

/* Stato: attivo */
.ldd-anim-step.ldd-anim-step-active {
    opacity: 1;
    transform: translateY(-1px);
}
.ldd-anim-step.ldd-anim-step-active .ldd-anim-step-icon {
    width: 32px; height: 32px;
    border-color: var(--ldd-sand);
    background: var(--ldd-sand-l);
    box-shadow: 0 0 0 5px rgba(203,156,115,.15);
}
.ldd-anim-step.ldd-anim-step-active .ldd-anim-step-icon svg {
    width: 13px; height: 13px;
    stroke: var(--ldd-sand);
}

/* Stato: completato */
.ldd-anim-step.ldd-anim-step-done {
    opacity: .7;
    transform: translateY(0);
}
.ldd-anim-step.ldd-anim-step-done .ldd-anim-step-icon {
    border-color: var(--ldd-sand);
    background: var(--ldd-sand);
}
.ldd-anim-step.ldd-anim-step-done .ldd-anim-step-icon svg {
    stroke: #fff;
}
/* Linea connettore gold quando step è completato */
.ldd-anim-step.ldd-anim-step-done::after {
    background: var(--ldd-sand);
}

/* Progress bar */
.ldd-anim-bar {
    width: 100%;
    height: 3px;
    background: var(--ldd-line);
    border-radius: 2px;
    overflow: hidden;
}
.ldd-anim-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ldd-sand) 0%, var(--ldd-sand-d) 100%);
    border-radius: 2px;
    width: 0%;
    transition: width .7s cubic-bezier(.4,0,.2,1);
}

/* nessun media query necessario — layout a icone funziona su tutti gli schermi */
