/* ============================================
   RESET E BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo:hover {
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    background: transparent;
}

.logo-text {
    color: #3FA072;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3FA072;
    font-weight: 700;
}

/* Switch lingua */
.lang-switch-wrapper {
    display: flex;
    gap: 5px;
    align-items: center;
    margin-left: 10px;
}

.lang-active {
    background: #3FA072;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
}

.lang-option {
    color: #2c3e50;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.lang-option:hover {
    background: #f0f0f0;
    color: #3FA072;
}

.lang-flag {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    line-height: 32px;
    text-align: center;
    font-size: 1.2rem;
    background: #f0f0f0;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0;
    cursor: pointer;
    border: 2px solid transparent;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-width: 32px;
    min-height: 32px;
}

.lang-flag:hover {
    transform: scale(1.1);
    border-color: #3FA072;
}

.lang-flag.active {
    border-color: #3FA072;
    background: #e8f5e9;
}

.lang-flag .flag-emoji {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c3e50;
}

/* ============================================
   HEADER - MOBILE OTTIMIZZATO
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 0 12px;
        gap: 8px;
    }

    .logo-text {
        display: none;
    }

    .logo-img {
        height: 45px;
        width: auto;
    }

    .logo {
        gap: 0;
        flex-shrink: 0;
    }

    .hamburger {
        display: block;
        font-size: 1.3rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        padding: 15px 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        gap: 12px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 0.95rem;
        padding: 8px 0;
    }

    .lang-switch-wrapper {
        margin-left: 0;
        gap: 3px;
        justify-content: center;
    }

    .lang-active,
    .lang-option {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .lang-flag {
        width: 28px;
        height: 28px;
        font-size: 1rem;
        min-width: 28px;
        min-height: 28px;
    }
}

@media (max-width: 480px) {
    .navbar {
        height: 55px;
        padding: 0 8px;
        gap: 5px;
    }

    .logo-img {
        height: 38px;
    }

    .hamburger {
        font-size: 1.1rem;
    }

    .nav-links {
        top: 55px;
        padding: 12px 15px;
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .lang-active,
    .lang-option {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .lang-flag {
        width: 24px;
        height: 24px;
        font-size: 0.85rem;
        min-width: 24px;
        min-height: 24px;
    }
}

@media (max-width: 380px) {
    .navbar {
        height: 50px;
        padding: 0 6px;
        gap: 4px;
    }

    .logo-img {
        height: 32px;
    }

    .nav-links {
        top: 50px;
        padding: 10px 12px;
        gap: 8px;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 5px 0;
    }

    .lang-active,
    .lang-option {
        font-size: 0.65rem;
        padding: 2px 5px;
    }

    .lang-flag {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        min-width: 20px;
        min-height: 20px;
    }

    .hamburger {
        font-size: 1rem;
    }
}

/* ============================================
   SLIDESHOW
   ============================================ */
.hero {
    margin-top: 80px;
    position: relative;
}

@media (max-width: 768px) {
    .hero {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .hero {
        margin-top: 55px;
    }
}

@media (max-width: 380px) {
    .hero {
        margin-top: 50px;
    }
}

.slideshow-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: #f8f9fa;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
}

.prev { left: 20px; }
.next { right: 20px; }

.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #3FA072;
}

/* ============================================
   GALLERY THUMBNAILS
   ============================================ */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    padding: 10px 20px;
    background: #f8f9fa;
}

.thumbnail {
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
    transition: transform 0.3s;
    position: relative;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.thumbnail-more {
    background: #3FA072;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    height: 80px;
}

.thumbnail-more:hover {
    background: #2d7d5a;
}

@media (max-width: 768px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    .thumbnail img, .thumbnail-more {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   MODAL GALLERY
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    padding: 40px;
}

.modal-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-slideshow {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

#modalImage {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.modal-prev, .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 2rem;
    border-radius: 50%;
    transition: background 0.3s;
    z-index: 10;
}

.modal-prev:hover, .modal-next:hover {
    background: rgba(255,255,255,0.4);
}

.modal-prev { left: 20px; }
.modal-next { right: 20px; }

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    padding: 20px 0;
    overflow-x: auto;
    justify-content: center;
    flex-wrap: nowrap;
}

.modal-thumbnails img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    flex-shrink: 0;
}

.modal-thumbnails img:hover,
.modal-thumbnails img.active {
    border-color: #3FA072;
}

.modal-counter {
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    position: absolute;
    bottom: 100px;
    right: 40px;
    background: rgba(0,0,0,0.6);
    padding: 8px 15px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    .modal-prev, .modal-next {
        padding: 10px 15px;
        font-size: 1.5rem;
    }
    .close {
        top: 10px;
        right: 20px;
        font-size: 2rem;
    }
    .modal-thumbnails img {
        width: 70px;
        height: 50px;
    }
    .modal-counter {
        bottom: 80px;
        right: 20px;
        font-size: 0.8rem;
    }
}

/* ============================================
   DESCRIZIONE
   ============================================ */
.description {
    padding: 60px 0;
    background: white;
}

.description h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.description-content p {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

.description-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    justify-content: center;
}

.highlight-item i {
    color: #3FA072;
    font-size: 1.2rem;
}

.highlight-item span {
    font-weight: 500;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .description-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .highlight-item {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .description-highlights {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SERVIZI - VERSIONE 2 (COMPATTA)
   ============================================ */
.services {
    padding: 60px 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 2rem;
    color: #3FA072;
    margin-bottom: 12px;
}

.service-card h3 {
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 1rem;
}

.service-card p {
    color: #666;
    font-size: 0.85rem;
}

/* Tablet - 3 colonne */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Mobile - 2 colonne compatte orizzontali */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .service-card {
        padding: 12px 14px;
        border-radius: 8px;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        text-align: left;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        background: white;
        transition: transform 0.2s, box-shadow 0.2s;
    }

    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

    .service-card i {
        font-size: 1.4rem;
        margin-bottom: 0;
        width: 30px;
        flex-shrink: 0;
        text-align: center;
    }

    .service-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0;
        font-weight: 600;
        line-height: 1.2;
    }

    .service-card p {
        display: none;
    }
}

@media (max-width: 480px) {
    .services-grid {
        gap: 6px;
        padding: 0 4px;
    }

    .service-card {
        padding: 8px 10px;
        border-radius: 6px;
        gap: 8px;
    }

    .service-card i {
        font-size: 1.1rem;
        width: 22px;
    }

    .service-card h3 {
        font-size: 0.7rem;
    }
}

@media (max-width: 380px) {
    .services-grid {
        gap: 5px;
    }

    .service-card {
        padding: 6px 8px;
        gap: 6px;
    }

    .service-card i {
        font-size: 1rem;
        width: 18px;
    }

    .service-card h3 {
        font-size: 0.65rem;
    }
}

/* ============================================
   MAPPA
   ============================================ */
.map-section {
    padding: 60px 0;
    background: white;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.map-address {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
}

.map-address i {
    color: #3FA072;
    margin-right: 10px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

.map-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.map-detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
}

.map-detail-item i {
    color: #3FA072;
    font-size: 1.3rem;
    width: 25px;
}

.map-detail-item div {
    display: flex;
    flex-direction: column;
}

.map-detail-item strong {
    color: #2c3e50;
    font-size: 0.95rem;
}

.map-detail-item span {
    color: #666;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .map-details {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CONTATTI
   ============================================ */
.contact {
    padding: 60px 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.contact-form {
    max-width: 100%;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-form-wrapper {
        padding: 20px 15px;
    }
}

/* ============================================
   WHATSAPP SECTION
   ============================================ */
.whatsapp-section {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
}

.whatsapp-section .whatsapp-icon {
    font-size: 4rem;
    color: #25D366;
    display: block;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.whatsapp-section .whatsapp-icon:hover {
    transform: scale(1.1);
}

.whatsapp-section h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.whatsapp-section .phone-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: color 0.3s;
}

.whatsapp-section .phone-number:hover {
    color: #3FA072;
}

/* Offuscamento: caratteri separati */
.obfuscated-phone .phone-char {
    display: inline-block;
    transition: all 0.3s ease;
}

/* Spazio tra prefisso e numero */
.obfuscated-phone .phone-char:nth-child(3) {
    margin-right: 8px;
}

/* Spazi ogni 3 cifre */
.obfuscated-phone .phone-char:nth-child(6) {
    margin-right: 8px;
}
.obfuscated-phone .phone-char:nth-child(9) {
    margin-right: 8px;
}
.obfuscated-phone .phone-char:nth-child(12) {
    margin-right: 8px;
}

/* Effetto hover sul numero offuscato */
.obfuscated-phone:hover .phone-char {
    color: #3FA072;
    transform: scale(1.05);
}

.whatsapp-section .phone-label {
    color: #666;
    font-size: 0.9rem;
}

.whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.3s, transform 0.3s;
    font-size: 1.1rem;
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
    color: white;
}

.whatsapp-btn i {
    margin-right: 10px;
}

.qr-container {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    display: none;
}

.qr-container img {
    max-width: 150px;
    height: auto;
}

.qr-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

@media (min-width: 769px) {
    .qr-container {
        display: block;
    }
}

@media (max-width: 768px) {
    .whatsapp-section {
        position: static;
        order: -1;
    }
    .whatsapp-section .whatsapp-icon {
        font-size: 3rem;
    }
    .whatsapp-section .phone-number {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    .obfuscated-phone .phone-char {
        font-size: 1.3rem;
    }
    .obfuscated-phone .phone-char:nth-child(3) {
        margin-right: 4px;
    }
    .obfuscated-phone .phone-char:nth-child(6) {
        margin-right: 4px;
    }
    .obfuscated-phone .phone-char:nth-child(9) {
        margin-right: 4px;
    }
    .obfuscated-phone .phone-char:nth-child(12) {
        margin-right: 4px;
    }
    .qr-container {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-section .phone-number {
        font-size: 1rem;
    }
    .obfuscated-phone .phone-char {
        font-size: 1.1rem;
    }
    .whatsapp-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

/* ============================================
   FORM - ICONE E STILI
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3FA072;
}

/* Campi con icona */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    transition: border-color 0.3s;
}

.input-with-icon:focus-within {
    border-color: #3FA072;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 12px;
    color: #3FA072;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.input-with-icon input[type="text"],
.input-with-icon input[type="tel"] {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background: transparent;
    color: #333;
    outline: none;
}

.input-with-icon input[type="text"]::placeholder,
.input-with-icon input[type="tel"]::placeholder {
    color: #bbb;
    font-weight: 400;
}

@media (max-width: 480px) {
    .input-with-icon input[type="text"],
    .input-with-icon input[type="tel"] {
        font-size: 0.85rem;
        padding: 10px 12px 10px 34px;
    }
    .input-with-icon .input-icon {
        font-size: 0.9rem;
        left: 10px;
    }
}

/* Datepicker container */
.datepicker-container {
    position: relative;
    width: 100%;
}

.date-range-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    transition: border-color 0.3s;
}

.date-range-input:focus-within {
    border-color: #3FA072;
}

.date-range-input .calendar-icon {
    position: absolute;
    left: 12px;
    color: #3FA072;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.date-range-input input[type="text"] {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    background: transparent;
    color: #333;
    outline: none;
}

.date-range-input input[type="text"]::placeholder {
    color: #bbb;
    font-weight: 400;
}

.date-range-input input[type="text"].filled {
    color: #3FA072 !important;
    font-weight: 600 !important;
}

/* Form row per date */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Submit */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: #3FA072;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #2d7d5a;
}

.submit-btn i {
    margin-right: 10px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
}

footer .logo-img {
    height: 130px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.cin-code {
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    footer .logo-img {
        height: 80px;
    }
}

/* ============================================
   WIDGET - DESKTOP / MOBILE (RESPONSIVE)
   ============================================ */

.booking-widget {
    padding: 40px 0;
    background: #f8f9fa;
}

.booking-widget-inner {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.booking-widget-header h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.booking-widget-body .date-range-input {
    margin-bottom: 16px;
}

/* Desktop: mostra calendario, nasconde campo input */
@media (min-width: 769px) {
    #widgetInputContainer {
        display: none !important;
    }
    
    #widgetDatepicker {
        display: block !important;
    }
    
    #widgetDatepicker .flatpickr-calendar {
        position: relative !important;
        box-shadow: none !important;
        border: 1px solid #e8e8e8 !important;
        padding: 16px !important;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        background: white !important;
    }
    
    #widgetDatepicker .flatpickr-calendar .flatpickr-months {
        gap: 20px !important;
    }
    
    #widgetDatepicker .flatpickr-calendar .flatpickr-month {
        min-width: unset !important;
    }
    
    #widgetDatepicker .flatpickr-calendar .flatpickr-days {
        gap: 20px !important;
    }
    
    #widgetDatepicker .flatpickr-calendar .dayContainer {
        min-width: unset !important;
    }
}

/* Mobile: mostra campo input, nasconde calendario */
@media (max-width: 768px) {
    #widgetInputContainer {
        display: block !important;
    }
    
    #widgetDatepicker {
        display: block !important;
    }
}

/* Transizione fluida */
#widgetDatepicker,
#widgetInputContainer {
    transition: opacity 0.3s ease;
}

/* Widget - stili comuni */
.widget-datepicker-container {
    width: 100%;
}

.widget-datepicker-container .flatpickr-calendar {
    width: 100% !important;
    max-width: 100% !important;
}

/* Stili per il campo input del widget su mobile */
#date_range_widget {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    background: white;
    color: #333;
    outline: none;
}

#date_range_widget::placeholder {
    color: #bbb;
    font-weight: 400;
}

/* ============================================
   ANIMAZIONI UTILITY
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phone-tooltip {
    animation: fadeInUp 0.3s ease;
}

/* ============================================
   WIDGET - DESKTOP / MOBILE (RESPONSIVE)
   ============================================ */

.booking-widget {
    padding: 40px 0;
    background: #f8f9fa;
}

.booking-widget-inner {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.booking-widget-header h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

.booking-widget-body .date-range-input {
    margin-bottom: 16px;
}

/* Desktop: mostra calendario, nasconde campo input */
@media (min-width: 769px) {
    #widgetInputContainer {
        display: none !important;
    }
    
    #widgetDatepicker {
        display: block !important;
    }
    
    #widgetDatepicker .flatpickr-calendar {
        position: relative !important;
        box-shadow: none !important;
        border: 1px solid #e8e8e8 !important;
        padding: 16px !important;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        background: white !important;
    }
    
    #widgetDatepicker .flatpickr-calendar .flatpickr-months {
        gap: 20px !important;
    }
    
    #widgetDatepicker .flatpickr-calendar .flatpickr-month {
        min-width: unset !important;
    }
    
    #widgetDatepicker .flatpickr-calendar .flatpickr-days {
        gap: 20px !important;
    }
    
    #widgetDatepicker .flatpickr-calendar .dayContainer {
        min-width: unset !important;
    }
}

/* Mobile: mostra campo input, nasconde calendario */
@media (max-width: 768px) {
    #widgetInputContainer {
        display: block !important;
    }
    
    #widgetDatepicker {
        display: block !important;
    }
}

/* Transizione fluida */
#widgetDatepicker,
#widgetInputContainer {
    transition: opacity 0.3s ease;
}

/* Widget - stili comuni */
.widget-datepicker-container {
    width: 100%;
}

.widget-datepicker-container .flatpickr-calendar {
    width: 100% !important;
    max-width: 100% !important;
}

/* Stili per il campo input del widget su mobile */
#date_range_widget {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    background: white;
    color: #333;
    outline: none;
}

#date_range_widget::placeholder {
    color: #bbb;
    font-weight: 400;
}

/* ============================================
   PREZZO - DISPLAY
   ============================================ */

.price-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 12px;
    border: 1px solid #e8e8e8;
    animation: fadeInUp 0.3s ease;
}

.price-display-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-display .price-amount {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-display .price-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3FA072;
}

.price-display .price-detail {
    font-size: 0.9rem;
    color: #666;
}

.price-display .price-breakdown {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #888;
}

.price-display .price-per-night {
    color: #555;
}

.price-display .price-season {
    color: #999;
}

.price-display .price-min-nights {
    font-size: 0.8rem;
    color: #e67e22;
    margin-top: 4px;
}

.price-display-field-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-display-field {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3FA072;
    padding: 8px 0;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    color: #333;
    appearance: auto;
}

.form-select:focus {
    outline: none;
    border-color: #3FA072;
}

/* ============================================
   PREZZO STATICO NEL FORM
   ============================================ */

.date-display-static {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e8e8e8;
}

.date-display-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.date-display-row .date-label {
    color: #666;
    font-weight: 500;
}

.date-display-row .date-value {
    color: #2c3e50;
    font-weight: 600;
}

.price-display-static {
    background: #e8f5e9;
    border-radius: 8px;
    padding: 16px 20px;
    border: 1px solid #c8e6c9;
    text-align: center;
}

.price-display-static .price-offer {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3FA072;
    display: none;
}

.price-display-static .price-per-night {
    font-size: 0.9rem;
    color: #555;
    display: none;
    margin-top: 4px;
}

.price-display-static .price-taxes {
    font-size: 0.8rem;
    color: #888;
    display: none;
    margin-top: 6px;
    font-style: italic;
}

.price-hint {
    color: #999;
    font-size: 0.8rem;
    margin-top: 6px;
    font-style: italic;
}