/* CSS Document */
/* Contenitore form */
.booking-form-title {
    font-family: 'Poppins', sans-serif; /* o il font che preferisci */
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #333; /* colore moderno e leggibile */
}
.booking-form-modern-wrapper {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 30px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    z-index: 10;
    width: 90%;
    max-width: 800px;
    font-family: 'Poppins', sans-serif;
}

/* Form flex */
.booking-form-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-end;
}

/* Gruppi con icone */
.booking-form-modern .icon-group {
    position: relative;
    flex: 1 1 30%;
}

.booking-form-modern .icon-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.2rem;
}

/* Input e select */
.booking-form-modern input,
.booking-form-modern select {
    width: 100%;
    padding: 14px 14px 14px 42px; /* spazio per icona */
    border: 3px solid #444;
    border-radius: 12px;
    font-size: 1.1rem;
    color: #111;
    background-color: #fff;
    transition: all 0.3s;
    font-weight: 500;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Placeholder */
.booking-form-modern input::placeholder,
.booking-form-modern select::placeholder {
    color: #666;
    opacity: 1;
    font-weight: 400;
}

/* Focus */
.booking-form-modern input:focus,
.booking-form-modern select:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 10px rgba(255,107,107,0.4);
    outline: none;
}

/* Bottone */
.booking-form-modern .btn-check-modern {
    flex: 1 1 100%;
    padding: 16px 0;
    background: linear-gradient(90deg, #ff6b6b, #ff4757);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.booking-form-modern .btn-check-modern:hover {
    background: linear-gradient(90deg, #ff4757, #ff6b6b);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .booking-form-modern .icon-group {
        flex: 1 1 100%;
    }
}

/* CSS PER POPUP GALLERIA IMMAGINI INDEX */
.gallery-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.popup-caption {
    margin-top: 10px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    max-width: 90%;
}

.gallery-popup img.popup-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    transition: transform 0.3s;
}

.gallery-popup img.popup-img:hover {
    transform: scale(1.02);
}

.gallery-popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
}

.gallery-popup .close:hover { color: #ff6b6b; }

.gallery-popup .prev,
.gallery-popup .next {
    text-decoration: none;   /* toglie la sottolineatura */
    position: absolute;
    top: 50%;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    transform: translateY(-50%);
    transition: color 0.3s;
}

.gallery-popup .prev:hover,
.gallery-popup .next:hover { color: #ff6b6b; }

.gallery-popup .prev { left: 30px; }
.gallery-popup .next { right: 30px; }

@media (max-width: 768px) {
    .gallery-popup .prev, .gallery-popup .next { font-size: 2.5rem; left: 15px; right: 15px; }
    .gallery-popup .close { font-size: 2rem; right: 20px; top: 15px; }
}