/**
 * Ischia Rental — Booking Form v3.2 (CRO visual — WA CTA)
 */
.ir-booking-shell {
    --ir-navy: #0c4a6e;
    --ir-navy-deep: #072b42;
    --ir-gold: #b48b3c;
    --ir-gold-light: #fde68a;
    --ir-wa: #25d366;
    --ir-wa-deep: #128c7e;
    --ir-wa-dark: #075e54;
    --ir-line: #e8edf3;
    --ir-muted: #64748b;
    --ir-strip-h: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: min(1140px, calc(100vw - 32px));
    margin: clamp(16px, 2.5vw, 24px) auto 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero pillar / home: form centrato e mai tagliato dal contenuto sotto */
.dynamic-hero .container,
.hero-main > div:not(.ir-hero-grid) {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
}

/* Variante I: griglia 2-col non deve ereditare flex del vecchio hero */
.hero-main.ir-hero-i > .ir-hero-grid {
    display: grid;
    flex-direction: unset;
    align-items: start;
    width: 100%;
    max-width: var(--ir-content-max, 1280px);
    align-self: center;
}

.dynamic-hero .ir-booking-shell,
.hero-main .ir-booking-shell {
    align-self: stretch;
    max-width: min(1140px, calc(100vw - 32px));
}

.dynamic-hero h1 + .ir-booking-shell,
.hero-main h1 + .ir-booking-shell {
    margin-top: clamp(14px, 2.2vw, 22px);
}

/*
 * Isola il form dal color: white / .dynamic-hero p del hero pillar.
 * Senza questo blocco, titoli step e label risultano grigio-chiaro su sfondo bianco.
 */
.dynamic-hero .ir-booking-shell,
.hero-main .ir-booking-shell {
    color: #0f172a;
}

.dynamic-hero .ir-booking-shell .ir-block-title,
.hero-main .ir-booking-shell .ir-block-title {
    color: var(--ir-navy) !important;
    text-transform: none;
    letter-spacing: 0.03em;
    margin-top: 0 !important;
    font-size: 13px;
    font-weight: 800;
}

.dynamic-hero .ir-booking-shell .ir-seg-label,
.hero-main .ir-booking-shell .ir-seg-label {
    color: #1e293b !important;
    font-weight: 800;
}

.dynamic-hero .ir-booking-shell .ir-form-hint,
.dynamic-hero .ir-booking-shell .ir-season-hint,
.hero-main .ir-booking-shell .ir-form-hint,
.hero-main .ir-booking-shell .ir-season-hint {
    color: #475569 !important;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 0;
    font-weight: 600;
}

.dynamic-hero .ir-booking-shell .airbnb-privacy-label,
.hero-main .ir-booking-shell .airbnb-privacy-label {
    color: #334155 !important;
    text-transform: none;
    letter-spacing: normal;
}

/* --- CONVERSION HEADER --- */
.ir-conv-header {
    width: 100%;
    margin-bottom: 14px;
    text-align: center;
}

.ir-conv-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 10px;
    padding: 8px 16px;
    max-width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: #ecfdf5;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    line-height: 1.35;
    box-sizing: border-box;
}

.ir-conv-live strong {
    color: #86efac;
    font-weight: 900;
}

.ir-pulse-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    transform: scale(1);
    opacity: 1;
    animation: ir-pulse-live 2s ease-out infinite;
}

@keyframes ir-pulse-live {
    0% { transform: scale(1); opacity: 1; }
    70% { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

.ir-conv-hook {
    margin: 0 auto 12px;
    max-width: 520px;
    font-size: clamp(14px, 2.2vw, 16px);
    font-weight: 650;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ir-conv-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ir-conv-badges li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ir-navy);
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.ir-conv-badges .fa-whatsapp {
    color: var(--ir-wa);
}

.ir-booking-shell .airbnb-social-proof {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 12px;
    padding: 8px 16px;
    max-width: calc(100% - 8px);
    font-size: 13px;
    font-weight: 700;
    color: #14532d;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #86efac;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    width: fit-content;
    box-sizing: border-box;
    line-height: 1.35;
}

.ir-booking-form {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-self: stretch;
}

/* Card bianca: tutto il form leggibile sul hero navy */
.ir-booking-card {
    width: 100%;
    padding: 18px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 28px 72px rgba(0, 0, 0, 0.24),
        0 10px 28px rgba(0, 51, 102, 0.14),
        0 0 0 1px rgba(37, 211, 102, 0.08);
    box-sizing: border-box;
}

/* Blocchi step — visibili solo su mobile */
.ir-form-block {
    display: contents;
}

.ir-form-block.ir-form-block--cta {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    box-sizing: border-box;
    gap: 0;
    padding: 0 0 4px;
}

.ir-privacy-before-cta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    background: #f8fafc;
    border-top: 1px solid var(--ir-line);
    box-sizing: border-box;
}

.ir-privacy-before-cta .airbnb-privacy-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
}

.ir-privacy-before-cta .airbnb-privacy-label a {
    color: var(--ir-navy);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ir-privacy-before-cta input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ir-navy);
    flex-shrink: 0;
    margin-top: 2px;
}

.ir-block-title {
    display: none;
}

.ir-block-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    border-radius: 50%;
    background: #0d9488;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

/* --- STRIP PRINCIPALE --- */
.ir-search-strip {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    min-height: var(--ir-strip-h);
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid var(--ir-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: visible;
}

.ir-seg {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 12px 14px;
    border-right: 1px solid var(--ir-line);
    border-bottom: 1px solid var(--ir-line);
    background: #fff;
    transition: background 0.2s ease;
}

.ir-seg:focus-within {
    background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
}

.ir-seg-label .ir-wa-ico {
    color: var(--ir-wa);
    font-size: 13px;
    margin-right: 2px;
}

.ir-seg-tel:focus-within {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
}

.ir-seg-tel:focus-within .ir-seg-label {
    color: #15803d;
}

.ir-seg-label {
    display: block;
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #334155;
    line-height: 1.1;
    white-space: nowrap;
}

.ir-seg select,
.ir-seg input[type="text"],
.ir-seg input[type="tel"],
.ir-seg input[type="date"] {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #001a33;
    line-height: 1.25;
    outline: none;
    min-width: 0;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.ir-seg select {
    cursor: pointer;
    padding-right: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.ir-seg input::placeholder {
    color: #64748b;
    font-weight: 600;
}

.ir-seg input[type="date"] {
    font-size: 14px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.ir-seg-cat {
    flex: 0 1 108px;
    min-width: 96px;
}

.ir-seg-dates {
    flex: 1.6 1 200px;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    gap: 0;
    min-width: 0;
}

.ir-seg-cell {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 12px 12px;
    background: #fff;
}

.ir-seg-cell + .ir-seg-cell {
    border-left: 1px solid var(--ir-line);
}

.ir-seg-luogo,
.ir-seg-comune,
.ir-seg-pickup {
    flex: 1.2 1 170px;
    min-width: 150px;
}

.ir-hotel-comune-wrap {
    margin-top: 8px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.ir-hotel-comune-wrap .ir-seg-label {
    display: block;
    margin-bottom: 4px;
}

.ir-hotel-comune-wrap[hidden] {
    display: none !important;
}

.ir-hotel-comune-wrap select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.ir-seg-row-contact {
    display: flex;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    align-items: stretch;
    border-right: 0;
    border-bottom: 0;
}

.ir-seg-row-contact .ir-seg {
    flex: 1;
    min-width: 0;
    border-bottom: 0;
}

.ir-seg-row-contact .ir-seg-nome {
    flex: 0 1 150px;
    min-width: 120px;
    max-width: 200px;
    border-right: 1px solid var(--ir-line);
}

.ir-seg-row-contact .ir-seg-tel {
    flex: 1 1 200px;
    min-width: 160px;
}

.ir-search-btn {
    flex: 0 0 auto;
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
    padding: 14px 20px;
    min-height: 56px;
    max-height: none;
    height: auto;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(100deg, #2fe574 0%, var(--ir-wa) 42%, var(--ir-wa-deep) 100%);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    box-shadow:
        0 10px 28px rgba(18, 140, 126, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
    white-space: normal;
    position: relative;
    overflow: hidden;
}

.ir-search-btn::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.ir-search-btn-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.ir-search-btn-text {
    font-size: clamp(13px, 2.4vw, 16px);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.25;
}

.ir-search-btn-sub {
    font-size: clamp(11px, 2vw, 12px);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
}

.ir-search-btn-wa,
.ir-search-btn-arrow {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.ir-search-btn--ready {
    background: linear-gradient(100deg, #3aeb7c 0%, var(--ir-wa) 40%, var(--ir-wa-deep) 100%);
    box-shadow:
        0 0 0 3px rgba(37, 211, 102, 0.35),
        0 12px 34px rgba(18, 140, 126, 0.48);
    animation: ir-cta-glow 2.5s ease-in-out infinite;
}

@keyframes ir-cta-glow {
    0%, 100% { box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.35), 0 10px 28px rgba(18, 140, 126, 0.42); }
    50% { box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.55), 0 16px 40px rgba(18, 140, 126, 0.55); }
}

.ir-search-btn--ready .ir-search-btn-wa,
.ir-search-btn--ready .ir-search-btn-arrow {
    transform: scale(1.06);
    background: rgba(255, 255, 255, 0.28);
}

.ir-search-btn:hover {
    filter: brightness(1.04);
    background: linear-gradient(100deg, #45f086 0%, var(--ir-wa) 45%, #0e7a6d 100%);
    box-shadow:
        0 12px 32px rgba(18, 140, 126, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.ir-search-btn:hover .ir-search-btn-wa,
.ir-search-btn:hover .ir-search-btn-arrow {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.3);
}

.ir-search-btn:active {
    transform: translateY(1px) scale(0.99);
}

.ir-form-block--cta .ir-search-btn {
    width: 100%;
    margin-top: 2px;
}

.ir-search-btn i.fa-spinner {
    margin-right: 6px;
}

/* --- SEZIONE SECONDARIA --- */
.ir-form-secondary {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ir-season-hint {
    margin: 0 0 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #9a3412;
    background: linear-gradient(90deg, #fff7ed, #ffedd5);
    border: 1px solid #fdba74;
    border-radius: 10px;
    text-align: center;
}

.ir-season-hint[hidden] {
    display: none !important;
}

.ir-season-hint .fa-sun {
    color: #ea580c;
    margin-right: 4px;
}

.ir-form-optional .airbnb-times-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid var(--ir-line);
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.ir-form-optional .airbnb-times-toggle:hover {
    border-color: var(--ir-gold);
    color: var(--ir-navy);
}

.ir-form-times-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--ir-line);
    border-radius: 14px;
}

.ir-form-times-panel[hidden] {
    display: none !important;
}

.ir-form-times-panel .ir-seg {
    border: 0;
    padding: 0;
    background: transparent;
}

.ir-form-times-panel select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--ir-line);
    border-radius: 10px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    color: var(--ir-navy);
}

.ir-form-price {
    display: none;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0;
    padding: 12px 16px;
    border-radius: 0;
    background: linear-gradient(90deg, #ecfdf5 0%, #f0fdf4 50%, #ecfdf5 100%);
    border-top: 1px solid #bbf7d0;
    border-bottom: 1px solid #bbf7d0;
    line-height: 1.35;
    box-sizing: border-box;
    text-align: center;
}

.ir-form-price.ir-price-visible {
    display: flex;
    animation: ir-price-in 0.25s ease;
}

@keyframes ir-price-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ir-form-price[hidden] {
    display: none !important;
}

.ir-form-price .price-range {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: var(--ir-wa-dark) !important;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

.ir-form-price .price-teaser::before {
    content: '·';
    margin-right: 5px;
    color: #86efac;
}

.ir-form-price .price-teaser,
.ir-form-price .price-disclaimer {
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    color: #166534 !important;
    white-space: normal;
    word-break: break-word;
    min-width: 0;
}

.ir-form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    margin-top: 12px;
    padding: 12px 14px;
    background: #f1f5f9;
    border: 1px solid var(--ir-line);
    border-radius: 12px;
}

.ir-form-footer .airbnb-privacy-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    justify-content: center;
}

.ir-form-footer .airbnb-privacy-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
}

.ir-form-footer .airbnb-privacy-label a {
    color: var(--ir-navy);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ir-form-footer input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ir-navy);
    flex-shrink: 0;
}

.ir-form-hint {
    flex: 1 1 100%;
    margin: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    line-height: 1.45;
}

.ir-form-hint .fa-lock {
    color: #64748b;
    margin-right: 5px;
    font-size: 13px;
}

.ir-booking-card .error-message {
    margin-bottom: 12px;
}

.ir-booking-shell .error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #fca5a5;
    background: #fef2f2;
    color: #991b1b !important;
    font-size: 13px;
    font-weight: 600;
}

.ir-booking-shell .error-message::before {
    content: '⚠';
    font-size: 16px;
    font-weight: 900;
}

/* --- DESKTOP: 2 righe leggibili --- */
@media (min-width: 900px) {
    .ir-search-strip {
        display: grid;
        grid-template-columns: minmax(110px, 0.9fr) minmax(170px, 1.3fr);
        grid-template-rows: auto auto auto auto auto;
        align-items: stretch;
        min-height: 0;
    }

    .ir-seg-comune,
    .ir-seg-pickup,
    .ir-seg-cat,
    .ir-seg-dates {
        border-bottom: 1px solid var(--ir-line);
    }

    .ir-seg-comune {
        border-right: 0;
    }

    .ir-seg-cat { grid-column: 1; grid-row: 1; }
    .ir-seg-comune { grid-column: 2; grid-row: 1; }
    .ir-seg-dates { grid-column: 1 / -1; grid-row: 2; }

    .ir-form-price {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        padding: 8px 16px;
    }

    .ir-seg-row-contact {
        grid-column: 1 / -1;
        grid-row: 4;
        width: 100%;
        border-top: 0;
    }

    .ir-search-btn {
        grid-column: 1 / -1;
        grid-row: 5;
        width: 100%;
        min-height: 64px;
        border-radius: 14px;
        margin: 8px 10px 10px;
        width: calc(100% - 20px);
        justify-self: center;
    }

    .ir-form-block--cta {
        grid-column: 1 / -1;
        grid-row: 5;
        width: 100%;
        padding: 0 0 8px;
    }

    .ir-form-block--cta .ir-search-btn {
        grid-column: auto;
        grid-row: auto;
        min-height: 64px;
        border-radius: 14px;
        margin: 8px 10px 4px;
        width: calc(100% - 20px);
    }

    .ir-seg-cat,
    .ir-seg-dates,
    .ir-seg-luogo,
    .ir-form-price,
    .ir-seg-row-contact,
    .ir-search-btn {
        order: unset;
    }

    .ir-search-btn:hover {
        transform: none;
        filter: brightness(1.08);
    }
}

/* --- TABLET --- */
@media (min-width: 768px) and (max-width: 899px) {
    .ir-search-strip {
        flex-wrap: wrap;
        border-radius: 16px;
        min-height: 0;
    }

    .ir-seg-cat,
    .ir-seg-comune {
        flex: 1 1 calc(50% - 1px);
        min-width: 140px;
    }

    .ir-seg-dates {
        flex: 1 1 100%;
        border-right: 0;
    }

    .ir-seg-cat { order: 1; }
    .ir-seg-comune { order: 2; }
    .ir-seg-dates { order: 3; }
    .ir-form-price { order: 4; }
    .ir-seg-row-contact { order: 5; }

    .ir-seg-row-contact {
        flex: 1 1 100%;
        width: 100%;
        border-top: 1px solid var(--ir-line);
    }

    .ir-search-btn {
        flex: 1 1 100%;
        width: 100%;
        min-height: 56px;
        border-radius: 0;
        order: 6;
    }

    .ir-form-block--cta {
        order: 6;
        flex: 1 1 100%;
        width: 100%;
    }
}

/* --- MOBILE: compatto, 2 passi --- */
@media (max-width: 767px) {
    .ir-booking-shell {
        max-width: 100%;
        padding: 0 4px;
    }

    .dynamic-hero .ir-booking-shell,
    .hero-main .ir-booking-shell {
        max-width: min(1140px, calc(100vw - 20px));
        padding-left: 0;
        padding-right: 0;
    }

    .ir-conv-header {
        margin-bottom: 8px;
    }

    .ir-conv-hook {
        display: none;
    }

    .ir-conv-badges {
        gap: 6px;
        margin-bottom: 2px;
    }

    .ir-conv-badges li {
        padding: 4px 10px;
        font-size: 13px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .ir-conv-live {
        font-size: 13px;
        padding: 6px 10px;
        line-height: 1.3;
    }

    .ir-booking-card {
        padding: 10px;
        border-radius: 16px;
    }

    .ir-search-strip {
        flex-direction: column;
        gap: 8px;
        background: transparent;
        border: 0;
        box-shadow: none;
        min-height: 0;
        overflow: visible;
    }

    .ir-form-block--rental { order: 1; }
    .ir-form-price { order: 2; }
    .ir-form-block--contact { order: 3; }
    .ir-form-block--cta { order: 4; }

    .ir-form-block {
        display: block;
        padding: 10px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
        overflow: hidden;
    }

    .ir-form-block--rental .ir-seg + .ir-seg,
    .ir-form-block--rental .ir-seg-dates {
        margin-top: 8px;
    }

    .ir-form-block--rental .ir-seg,
    .ir-form-block--rental .ir-seg-dates,
    .ir-form-block--rental .ir-seg-cell {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .ir-form-block--rental .ir-seg-dates {
        display: flex;
        flex-wrap: nowrap;
    }

    .ir-form-block--rental .ir-seg input[type="date"] {
        min-width: 0 !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .ir-form-block--cta {
        padding: 0;
        background: transparent;
        border: 0;
    }

    .ir-privacy-before-cta {
        margin-bottom: 8px;
        padding: 10px 12px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
    }

    .ir-block-title {
        display: flex;
        align-items: center;
        margin: 0 0 10px;
        font-size: 14px;
        font-weight: 900;
        color: var(--ir-navy) !important;
        text-transform: none;
        letter-spacing: 0.02em;
        line-height: 1.2;
    }

    .ir-block-num {
        width: 20px;
        height: 20px;
        margin-right: 6px;
        font-size: 13px;
    }

    .ir-seg,
    .ir-seg-cell {
        border: 0;
        padding: 0;
        background: transparent;
        gap: 4px;
    }

    .ir-form-block--rental .ir-seg-cat .ir-seg-label {
        display: none;
    }

    .ir-form-block--rental .ir-hotel-comune-wrap .ir-seg-label {
        display: block;
    }

    .ir-seg-dates {
        flex-direction: row;
        gap: 8px;
        min-width: 0;
    }

    .ir-seg-cell + .ir-seg-cell {
        border-left: 0;
    }

    .ir-seg-label {
        font-size: 13px;
        color: #1e293b;
        font-weight: 800;
    }

    .ir-seg select,
    .ir-seg input[type="text"],
    .ir-seg input[type="tel"],
    .ir-seg input[type="date"] {
        width: 100%;
        height: 44px;
        padding: 0 12px;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        background: #fff;
        font-size: 16px;
        font-weight: 600;
        color: #0f172a;
        box-sizing: border-box;
    }

    .ir-seg select {
        padding-right: 32px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
    }

    .ir-seg select:focus,
    .ir-seg input:focus {
        border-color: var(--ir-navy);
        outline: none;
        box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
    }

    .ir-seg-row-contact {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .ir-seg-row-contact .ir-seg-nome {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .ir-seg-row-contact .ir-seg-tel {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }

    .ir-search-btn {
        width: calc(100% - 8px);
        max-width: 100%;
        min-height: 60px;
        margin: 8px 4px 2px;
        padding: 14px 14px;
        border-radius: 14px;
        white-space: normal;
        gap: 12px;
        box-shadow: 0 8px 22px rgba(37, 211, 102, 0.36);
    }

    .ir-search-btn-text {
        font-size: 14px;
        white-space: normal;
        max-width: 14em;
    }

    .ir-search-btn-sub {
        font-size: 13px;
    }

    .ir-search-btn-wa {
        width: 40px;
        height: 40px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .ir-form-block--cta {
        padding: 0 4px 6px;
    }

    .ir-form-block--cta .ir-search-btn {
        width: 100%;
        margin: 6px 0 0;
    }

    .ir-form-price {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid #bbf7d0;
        background: linear-gradient(90deg, #ecfdf5, #f0fdf4);
        justify-content: flex-start;
        text-align: left;
    }

    .ir-form-price .price-range {
        font-size: 18px;
    }

    .ir-form-price .price-teaser {
        font-size: 13px;
        line-height: 1.3;
    }

    .ir-form-secondary {
        margin-top: 6px;
        gap: 6px;
    }

    .ir-season-hint {
        font-size: 13px;
        padding: 8px 10px;
        margin-bottom: 4px;
    }

    .ir-form-optional .airbnb-times-toggle {
        width: auto;
        min-height: 36px;
        padding: 6px 12px;
        font-size: 13px;
    }

    .ir-form-footer {
        margin-top: 6px;
        padding: 8px 10px;
    }

    .ir-form-footer .airbnb-privacy-label {
        font-size: 13px;
    }

    .ir-form-hint {
        font-size: 13px;
        line-height: 1.35;
    }
}

@media (max-width: 359px) {
    .ir-seg-row-contact {
        flex-direction: column;
        gap: 8px;
    }

    .ir-seg-row-contact .ir-seg-nome {
        flex: 1 1 auto;
    }

    .ir-form-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .ir-form-price .price-teaser::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ir-search-btn,
    .ir-seg,
    .ir-form-price {
        transition: none;
    }

    .ir-search-btn--ready,
    .ir-pulse-dot,
    .ir-form-price.ir-price-visible {
        animation: none;
    }
}

/* ============================================================
   OFF-SEASON · FORM STILE I (28-09-2026)
   Layout 2-col desktop · sticky CTA mobile · touch targets
   Nessuna modifica a logica prezzi / submit / CSRF
   ============================================================ */

/* Step titles sempre leggibili (percorso visivo 1 → 2) */
@media (min-width: 768px) {
    .ir-form-block {
        display: block;
    }

    .ir-block-title {
        display: flex;
        align-items: center;
        margin: 0 0 10px;
        padding: 0 2px;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #0b5d84;
    }

    .ir-search-strip {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        background: transparent;
        border: 0;
        box-shadow: none;
        min-height: 0;
        overflow: visible;
    }

    .ir-form-block--rental {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 14px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
    }

    .ir-form-block--rental .ir-block-title {
        grid-column: 1 / -1;
    }

    .ir-form-block--rental .ir-seg {
        border: 1px solid #e8edf3;
        border-radius: 12px;
        background: #fff;
        min-height: 72px;
    }

    .ir-form-block--rental .ir-seg-dates {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .ir-form-block--rental .ir-seg-dates .ir-seg-cell {
        border: 1px solid #e8edf3;
        border-radius: 12px;
        background: #fff;
        padding: 12px 14px;
    }

    .ir-form-block--rental .ir-hotel-comune-wrap {
        grid-column: 1 / -1;
    }

    .ir-form-price {
        grid-column: 1 / -1;
        border-radius: 12px;
    }

    .ir-form-block--contact {
        grid-column: 1 / -1;
        padding: 14px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
    }

    .ir-form-block--contact .ir-seg-row-contact {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        border: 0;
    }

    .ir-form-block--contact .ir-seg {
        border: 1px solid #e8edf3;
        border-radius: 12px;
        background: #fff;
        min-height: 72px;
    }

    .ir-form-block--cta {
        grid-column: 1 / -1;
        flex: 0 0 auto;
        padding: 0;
        background: transparent;
        border: 0;
    }

    .ir-booking-card {
        padding: 18px;
        border-radius: 24px;
    }

    .ir-search-btn {
        flex: 0 0 auto;
        min-height: 54px;
        border-radius: 14px;
        font-size: 15px;
    }
}

/* Mobile: sticky CTA WhatsApp + campi touch-friendly */
@media (max-width: 767px) {
    .ir-seg select,
    .ir-seg input[type="text"],
    .ir-seg input[type="tel"],
    .ir-seg input[type="date"] {
        font-size: 16px; /* evita zoom iOS */
        min-height: 28px;
    }

    .ir-seg {
        min-height: 56px;
        padding: 12px 14px;
    }

    .ir-form-block--cta {
        position: sticky;
        bottom: 0;
        z-index: 40;
        margin: 8px -10px -10px;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #fff 28%);
        border: 0;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 -10px 28px rgba(2, 32, 71, 0.08);
    }

    .ir-form-block--cta .ir-privacy-before-cta {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px 12px 0 0;
        border-bottom: 0;
    }

    .ir-form-block--cta .ir-search-btn {
        border-radius: 0 0 14px 14px;
        min-height: 58px;
        box-shadow: 0 8px 24px rgba(18, 140, 126, 0.35);
    }

    .ir-block-title {
        display: flex;
        align-items: center;
        margin: 0 0 8px;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #0b5d84;
    }
}

/* ===== Form Variante I: photo-pick + header numeri (CSS proprietario) ===== */
.ir-conv-header--i { padding: 0; overflow: hidden; border-radius: 18px 18px 0 0; }
.ir-conv-band {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 45%, #0f766e 100%);
    color: #fff;
    padding: 14px 16px 12px;
}
.ir-conv-band-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7dd3fc;
    margin-bottom: 10px;
}
.ir-conv-live-mini { display: inline-flex; align-items: center; gap: 6px; }
.ir-conv-reply { color: #86efac; letter-spacing: 0; text-transform: none; font-weight: 700; }
.ir-conv-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.ir-conv-stat {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    padding: 10px 12px;
}
.ir-conv-stat strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
    color: #fde68a;
}
.ir-conv-stat span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 650;
    color: #e2e8f0;
}
.ir-conv-badges--band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ir-conv-badges--band li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: #e2e8f0;
}
.ir-conv-header--i .ir-conv-hook {
    margin: 0;
    padding: 12px 16px 4px;
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
}
.ir-photo-pick-wrap { padding: 8px 14px 4px; }
.ir-photo-pick-title { margin-bottom: 8px; }
.ir-photo-pick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.ir-photo-pick-btn {
    position: relative;
    padding: 0;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ir-photo-pick-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .88;
}
.ir-photo-pick-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 24, 48, .15) 0%, rgba(2, 24, 48, .55) 48%, rgba(2, 24, 48, .92) 100%);
    pointer-events: none;
    z-index: 1;
}
.ir-photo-pick-lbl {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 18px 6px 8px;
    background: none;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.ir-photo-pick-lbl small {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #e0f2fe;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.ir-photo-pick-btn.is-on {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .22);
    transform: translateY(-1px);
}
.ir-photo-echo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #065f46;
    font-size: 13px;
}
.ir-photo-echo img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.ir-photo-echo-next {
    color: #047857;
    font-weight: 700;
}
@media (max-width: 480px) {
    .ir-photo-pick { gap: 8px; }
    .ir-photo-pick-btn {
        aspect-ratio: 4 / 3;
        max-height: none;
        min-height: 92px;
    }
    .ir-photo-pick-lbl {
        font-size: 13px;
        padding: 14px 4px 7px;
        text-shadow: 0 1px 3px rgba(0,0,0,.75);
    }
    .ir-photo-pick-lbl small {
        font-size: 13px;
        color: #fde68a;
        font-weight: 800;
    }
    .ir-conv-stat strong { font-size: 1.2rem; }
    .ir-conv-badges--band { display: none !important; }
    /* Date: stack verticale → niente anno tagliato */
    .ir-seg-dates {
        flex-direction: column !important;
    }
    .ir-seg-cell + .ir-seg-cell {
        border-left: none !important;
        border-top: 1px solid var(--ir-line, #e2e8f0);
    }
    .ir-seg input[type="date"] {
        font-size: 16px;
        letter-spacing: 0;
    }
}



/* ===== UI/UX V1 — mobile hero/form compress + touch ===== */
@media (max-width: 767px) {
  .ir-booking-shell { margin-top: 8px !important; }
  .ir-conv-header--i { padding: 12px 14px !important; }
  .ir-conv-body { padding: 12px 14px 16px !important; gap: 10px !important; }
  .ir-conv-step { margin-bottom: 8px !important; }
  .ir-mezzo-cards, .ir-vehicle-tabs, .ir-photo-tabs {
    gap: 8px !important;
  }
  .ir-mezzo-cards a, .ir-mezzo-cards button, .ir-photo-tab, .ir-vehicle-tab,
  .ir-booking-shell .ir-tab, .ir-booking-shell [role=tab] {
    min-height: var(--ir-touch-min, 44px) !important;
  }
  .ir-booking-shell label { font-size: 13px !important; }
  .ir-booking-shell input, .ir-booking-shell select, .ir-booking-shell textarea {
    min-height: var(--ir-touch-min, 44px) !important;
    font-size: 16px !important; /* iOS zoom avoid */
  }
  .ir-booking-shell button[type=submit], .ir-conv-submit, .ir-cta-primary {
    min-height: var(--ir-touch-min, 44px) !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-main.ir-hero-i > .ir-hero-grid,
  .ir-hero-grid {
    grid-template-columns: 1fr !important;
  }
}
