/* Hero Section con Form */
.hero {
    min-height: 100vh;
    background: url('/images/hero/natale_ischia.webp') 0% top/contain no-repeat;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    position: relative;
    padding: 2rem 0;
}

    /* Overlay gradient per desktop */
    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(0,77,122,0.1) 0%, rgba(0,135,147,0.05) 100%);
        z-index: 1;
    }

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-left {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 4rem;
}

.logo-section {
    margin-bottom: 2rem;
}

    .logo-section img {
        width: 200px;
        height: auto;
    }

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.95;
    line-height: 1.6;
}

.benefits-title {
    font-size: 1.8rem;
    margin-top: 0px;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    font-weight: 600;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

    .benefit-item::before {
        content: "✓";
        color: #00bf72;
        font-weight: bold;
        margin-right: 1rem;
        font-size: 1.3rem;
    }

    .benefit-item strong {
        margin-right: 0.5rem;
        color: #00bf72;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }

.coupon-banner {
    background: linear-gradient(135deg, #f77f00, #ff9500);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(247,127,0,0.4);
    animation: pulse 2s infinite;
}

    .coupon-banner .phone-number {
        display: block;
        font-weight: bold;
        margin-bottom: 0.5rem;
    }

    .coupon-banner .coupon-text {
        font-size: 0.95rem;
        font-weight: normal;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Form Booking Container */
.booking-form-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .form-header h2 {
        color: #004d7a;
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .form-header p {
        color: #666;
        font-size: 0.95rem;
    }

.form-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #004d7a;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        color: #333;
        margin-bottom: 0.5rem;
        font-weight: 500;
        font-size: 0.95rem;
    }

        .form-group label .required {
            color: #dc3545;
        }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #008793;
            box-shadow: 0 0 0 3px rgba(0,135,147,0.1);
        }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ====== CALENDARIO MODERNO ====== */
input[type="date"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    color: #333;
    font-family: inherit;
    font-weight: 500;
}

    input[type="date"]:focus {
        outline: none;
        border-color: #008793;
        box-shadow: 0 0 0 3px rgba(0,135,147,0.1);
    }

    input[type="date"]::-webkit-calendar-picker-indicator {
        color: #008793;
        cursor: pointer;
        border-radius: 4px;
        margin-right: 0.5rem;
    }

::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23008793'%3e%3cpath fill-rule='evenodd' d='M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z' clip-rule='evenodd'/%3e%3c/svg%3e");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    width: 20px;
    height: 20px;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit {
    color: #333;
    padding: 0;
}

input[type="date"]::-webkit-datetime-edit-month-field {
    color: #008793;
    font-weight: 600;
}

input[type="date"]::-webkit-datetime-edit-day-field {
    color: #008793;
    font-weight: 600;
}

input[type="date"]::-webkit-datetime-edit-year-field {
    color: #008793;
    font-weight: 600;
}

input[type="date"]::-webkit-calendar-picker-indicator:active {
    background-color: transparent;
}

input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input[type="date"] {
        position: relative;
    }

        input[type="date"]::-webkit-calendar-picker-indicator {
            position: absolute;
            right: 0.75rem;
            width: 24px;
            height: 24px;
            background: #008793;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E") no-repeat center;
            mask-size: contain;
        }
}

.date-validation-message {
    display: none;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
}

.date-validation-error {
    background: #fef2f2;
    color: #dc2626;
    border-left: 3px solid #dc2626;
}

.date-validation-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 3px solid #22c55e;
}

.nights-info {
    display: none;
    background: linear-gradient(135deg, #008793, #00bf72);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,135,147,0.2);
}

    .nights-info.show {
        display: block;
    }

/* Multi-select hotels */
.hotel-select {
    position: relative;
}

.hotel-select-display {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    background: white;
    min-height: 45px;
    transition: border-color 0.3s;
}

    .hotel-select-display:hover {
        border-color: #008793;
    }

.hotel-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

    .hotel-select-dropdown.show {
        display: block !important;
    }

.hotel-option {
    padding: 0.75rem;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

    .hotel-option:last-child {
        border-bottom: none;
    }

    .hotel-option:hover {
        background: #f8f9fa;
    }

    .hotel-option.disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: #f8f9fa;
    }

    .hotel-option label {
        display: block;
        cursor: pointer;
        margin: 0;
    }

    .hotel-option input[type="checkbox"] {
        margin-right: 0.75rem;
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

        .hotel-option input[type="checkbox"]:disabled {
            cursor: not-allowed;
        }

.hotel-counter {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

    .hotel-counter.warning {
        color: #f77f00;
        font-weight: 500;
    }

/* Room sections */
.room-container {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.room-title {
    font-weight: 600;
    color: #004d7a;
}

.btn-remove-room {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
}

    .btn-remove-room:hover {
        background: #c82333;
    }

.children-ages-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn-add-room {
    background: #00bf72;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

    .btn-add-room:hover {
        background: #00a65d;
        transform: translateY(-2px);
    }

    .btn-add-room:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
    }

.info-note {
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    border-left: 3px solid #2196f3;
}

/* Privacy section */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

    .checkbox-group input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        margin-top: 2px;
        cursor: pointer;
    }

    .checkbox-group label {
        font-size: 0.9rem;
        line-height: 1.5;
        color: #666;
        cursor: pointer;
    }

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #008793, #00bf72);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0,191,114,0.3);
    }

    .btn-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Alerts */
.loading,
.alert-success,
.alert-error {
    display: none;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading {
    background: #cfe2ff;
    color: #084298;
    border: 1px solid #b6d4fe;
}

/* Sezione Trasporti Highlight */
.highlight-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #004d7a, #008793);
    color: white;
    text-align: center;
}

.highlight-content {
    max-width: 800px;
    margin: 0 auto;
}

.highlight-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.transport-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.transport-card {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.transport-price {
    font-size: 2rem;
    font-weight: bold;
    color: #00bf72;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .booking-form-container {
        margin-top: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .benefits-list {
        margin-bottom: 2rem;
    }

    .transport-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Reset completo per evitare scroll orizzontale */
    * {
        box-sizing: border-box;
    }

    html, body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100%;
    }

    .hero {
        padding: 0;
        min-height: auto;
        background: url('/images/hero/natale_ischia_mobile_r.png') top center no-repeat;
        background-size: 100% auto;
        background-color: #f5f5f5;
        width: 100%;
        overflow: hidden;
    }

        /* Rimuovi overlay per mobile */
        .hero::before {
            display: none;
        }

    .hero-container {
        padding: 0;
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        overflow: hidden;
    }

    .hero-left {
        padding: 2rem;
        background: rgba(0, 0, 0, 0.5);
        width: 100%;
        box-sizing: border-box;
        min-height: auto;
        margin-top: 100px;
        border-radius: 15px;
        backdrop-filter: blur(5px);
    }

    .hero-content-wrapper {
        padding: 0; /* Rimuovi padding duplicato */
    }

    .hero-title {
        font-size: 1.25rem;
        line-height: 1.35;
        margin-bottom: 0.75rem;
        font-weight: 700;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
        letter-spacing: -0.3px;
        color: white;
    }

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        line-height: 1.45;
        color: rgba(255,255,255,0.95);
        font-weight: 300;
    }

        .hero-description strong {
            font-weight: 600;
            color: #FDB913;
        }

        .hero-description.highlight {
            background: rgba(253,185,19,0.15);
            padding: 0.5rem;
            border-radius: 8px;
            border-left: 3px solid #FDB913;
            margin: 1rem 0;
        }

            .hero-description.highlight strong {
                color: #FDB913;
                font-size: 0.9rem;
            }

    .benefits-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
        margin-top: 1rem;
        color: #FDB913;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .benefits-list {
        padding-left: 0;
        margin-bottom: 0;
    }

    .benefit-item {
        font-size: 0.78rem;
        margin-bottom: 0.5rem;
        padding-left: 1.2rem;
        position: relative;
        line-height: 1.35;
        color: rgba(255,255,255,0.9);
        font-weight: 300;
    }

        .benefit-item::before {
            content: "✓";
            position: absolute;
            left: 0;
            font-size: 0.85rem;
            color: #00bf72;
            font-weight: bold;
            top: 1px;
        }

        .benefit-item strong {
            font-weight: 600;
            color: #00bf72;
            display: inline-block;
            margin-right: 3px;
        }

    .coupon-banner {
        background: linear-gradient(135deg, #FDB913 0%, #ffcc33 100%);
        color: #333;
        padding: 0.9rem;
        border-radius: 12px;
        display: block;
        text-align: center;
        margin: 1.25rem 0;
        box-shadow: 0 4px 12px rgba(253,185,19,0.3);
    }

        .coupon-banner .phone-number {
            background: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            margin-bottom: 0.5rem;
            font-weight: bold;
            color: #004d7a;
            display: inline-block;
            font-size: 0.95rem;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .coupon-banner .coupon-text {
            font-size: 0.8rem;
            color: #333;
            font-weight: 500;
        }

            .coupon-banner .coupon-text strong {
                color: #004d7a;
                font-size: 0.9rem;
                font-weight: 700;
            }

    .booking-form-container {
        padding: 1.25rem;
        border-radius: 0;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
        margin: 0;
        width: 100%;
        background: white;
        box-sizing: border-box;
    }

    .form-header {
        margin-bottom: 1.25rem;
    }

        .form-header h2 {
            font-size: 1.25rem;
            color: #004d7a;
            margin-bottom: 0.3rem;
        }

        .form-header p {
            font-size: 0.82rem;
            color: #666;
        }

    .form-group {
        margin-bottom: 0.9rem;
    }

        .form-group label {
            font-size: 0.85rem;
            margin-bottom: 0.3rem;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            padding: 0.55rem;
            font-size: 0.9rem;
            border: 1px solid #ddd;
            border-radius: 8px;
            width: 100%;
            box-sizing: border-box;
        }

    input[type="date"] {
        padding: 0.55rem;
        font-size: 0.9rem;
        border: 1px solid #ddd;
        border-radius: 8px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

        .form-row > div {
            width: 100%;
        }

    .hotel-select {
        width: 100%;
    }

    .hotel-select-display {
        padding: 0.55rem;
        font-size: 0.85rem;
        border: 1px solid #ddd;
        width: 100%;
        box-sizing: border-box;
    }

    .hotel-select-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }

    .hotel-option {
        padding: 0.6rem;
        font-size: 0.82rem;
    }

    .btn-add-room {
        padding: 0.6rem;
        font-size: 0.9rem;
        margin-top: 0.75rem;
        width: 100%;
    }

    .btn-submit {
        padding: 0.75rem;
        font-size: 0.95rem;
        border-radius: 8px;
        width: 100%;
    }

    .checkbox-group {
        margin-bottom: 0.75rem;
    }

        .checkbox-group label {
            font-size: 0.75rem;
            line-height: 1.3;
        }

        .checkbox-group input[type="checkbox"] {
            width: 16px;
            height: 16px;
            margin-right: 6px;
            flex-shrink: 0;
        }

    /* Previeni overflow in tutte le sezioni */
    section {
        width: 100%;
        overflow-x: hidden;
    }

    .hotels-section,
    .prices-section,
    .highlight-section {
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .hotels-grid,
    .prices-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 1.3rem;
        padding: 0 0.75rem;
        text-align: center;
        word-break: break-word;
    }

    .hotel-card,
    .price-card,
    .transport-card {
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .transport-info {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }

    .highlight-section {
        padding: 2rem 0.75rem;
    }

    .highlight-content {
        width: 100%;
        box-sizing: border-box;
    }

    .highlight-title {
        font-size: 1.2rem;
        word-break: break-word;
    }

    .footer {
        padding: 1.5rem 0.75rem;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-content {
        width: 100%;
        box-sizing: border-box;
    }
}
