
/* ==========================================================================
   CASE AL FRANTOIO - FOGLIO CSS INTEGRALE FINALE E BILANCIATO (2026)
   ========================================================================== */

/* --- RESET GLOBALE ED ELEGANZA --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    color: #222222;
    background-color: #fdfdfb;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

h1, h2, h3, h4 {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif; /* Un serif di sistema elegante che sostituisce egregiamente il Playfair Display */
    color: #4a5d21 !important;
    font-weight: 600;
    margin: 0 0 6px 0;
}

p, li { font-size: 0.95rem; line-height: 1.5; }

/* --- BARRA DI NAVIGAZIONE COMPATTA (OTTIMIZZATA COMPRESI TABLET) --- */
.navbar-principale {
    background-color: #ffffff;
    border-bottom: 1px solid #eef0eb;
    padding: 6px 30px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.02);
}
.logo-contenitore img { 
    height: 85px; 
    width: auto; 
    display: block; 
}
.menu-checkbox { display: none; }

/* 🚀 ACCESSIBILITÀ: Dimensione minima di tocco impostata a 48x48px per il menu mobile */
.menu-hamburger-icona { 
    display: none; 
    cursor: pointer; 
    flex-direction: column; 
    gap: 5px; 
    z-index: 10002; 
    min-width: 48px;
    min-height: 48px;
    justify-content: center;
    align-items: center;
}
.menu-hamburger-icona span { width: 28px; height: 3px; background-color: #4a5d21; border-radius: 2px; transition: all 0.3s ease; }
.voci-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.voci-menu a { text-decoration: none; color: #333333; font-weight: 500; font-size: 1.02rem; transition: all 0.2s ease; display: inline-block; padding: 6px 0; }
.voci-menu a:hover, .voci-menu a.active { color: #4a5d21; }
.voci-menu a.active { font-weight: 700 !important; }
.navigazione-barra { display: block; }

/* --- PULSANTI AD ANGOLO GEOMETRICO SQUADRATO (6PX) --- */
/* 🚀 ACCESSIBILITÀ MOBILE: Ottimizzato padding, altezza minima e centratura per .btn-prenota */
.btn-prenota {
    background-color: #4a5d21;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: inline-block;
    min-height: 48px;
    line-height: 24px;
    box-sizing: border-box;
    text-align: center;
}
.btn-prenota:hover { background-color: #354318; }

/* 🚀 ACCESSIBILITÀ MOBILE: Ottimizzato padding e altezza minima per .btn-scopri */
.btn-scopri { 
    color: #4a5d21; 
    font-weight: 600; 
    text-decoration: none; 
    font-size: 0.95rem; 
    display: inline-block; 
    margin-top: 10px; 
    text-align: center;
    padding: 12px 24px; 
    min-height: 48px;   
    line-height: 24px;  
    border: 1px solid #4a5d21;
    border-radius: 4px;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}
.btn-scopri:hover {
    background-color: #4a5d21;
    color: #ffffff;
}

/* --- CTA LOGO WHATSAPP ESTERNO --- */
.contenitore-cta-whatsapp { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 15px; }
.icona-wa-esterna { width: 32px; height: 32px; display: inline-block; vertical-align: middle; transition: transform 0.2s ease; }
.contenitore-cta-whatsapp:hover .icona-wa-esterna { transform: scale(1.1); }

/* --- HERO CON IMMAGINE STATICA --- */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 75vh;
    height: 75dvh;
    background-color: #111;
    margin-bottom: 20px;
    overflow: hidden;
}
.hero-immagine-statica {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    filter: brightness(0.65);
}
.hero-overlay-content { position: absolute; bottom: 35px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 800px; z-index: 20; text-align: center; color: #ffffff; }
.hero-overlay-content h1 { color: #ffffff !important; font-size: 2.3rem; margin-bottom: 6px; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }
.hero-overlay-content p { font-size: 1.15rem; margin: 0 0 15px 0; font-style: italic; color: #f1f1f1; }

/* --- LE GRANDI CORNICI STRUTTURALI PERIMETRALI --- */
.cornice-grande-struttura { max-width: 1000px; margin: 25px auto; padding: 25px 20px; background: #ffffff; border-radius: 16px; border: 1px solid #d4d8cd; box-shadow: 0 4px 15px rgba(85, 107, 47, 0.03); box-sizing: border-box; }
.sezione-header-gruppo { margin-bottom: 15px; text-align: center; }
.titolo-centrato { text-align: center; font-size: 1.7rem; margin-top: 5px; margin-bottom: 2px; }
.sottotitolo-centrato { text-align: center; font-style: italic; color: #333333; margin-bottom: 20px; font-size: 0.98rem; }
.divisore-sfumato-ombra { height: 1px; max-width: 600px; margin: 0 auto 25px auto; background: linear-gradient(to right, rgba(212,216,205,0), rgba(85,107,47,0.3), rgba(212,216,205,0)); border: 0; }

/* --- GRIGLIA COMPONENTI INCORNICIATI (DIMORE ED ESPERIENZE GEMELLE) --- */
.griglia-due-colonne { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card-dimora, .blocco-esperienza-card { background: #ffffff; border-radius: 12px; overflow: hidden; border: 1px solid #d4d8cd; text-align: center; box-sizing: border-box; padding: 10px; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-dimora:hover, .blocco-esperienza-card:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(85, 107, 47, 0.08); }
.card-dimora img { width: 100%; height: 440px; object-fit: cover; border-radius: 8px; }
.esp-immagine { width: 100%; height: 260px; overflow: hidden; border-radius: 8px; }
.esp-immagine img { width: 100%; height: 100%; object-fit: cover; }
.card-corpo, .esp-testo { padding: 15px 10px 5px 10px; }
.card-corpo h3, .esp-testo h3 { font-size: 1.25rem; margin-bottom: 6px; text-align: center; }
.card-corpo p, .esp-testo p { margin: 0 0 10px 0; text-align: left; }

/* --- SEZIONE RECENSIONI STRUTTURATA (PULITA DA STILI INLINE) --- */
.recensioni-header { text-align: center; margin-bottom: 25px; }
.titolo-recensioni-stile { font-family: 'Playfair Display', Georgia, serif; color: #4a5d21 !important; font-size: 1.5rem; margin-top: 0; margin-bottom: 8px; text-align: center; }
.sottotitolo-recensioni-stile { font-size: 0.95rem; color: #333333; font-style: italic; margin-top: 0; margin-bottom: 10px; text-align: center; }
.certificazione-airbnb { font-size: 0.9rem; color: #111111; margin-top: 0; margin-bottom: 25px; font-weight: 600; text-align: center; }
.griglia-recensioni { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }
.card-recensione { background: #fdfdfb; padding: 15px; border-radius: 8px; border: 1px solid #f0f2eb; margin-bottom: 20px; }
.stelle { color: #be9d52; font-size: 0.95rem; margin-bottom: 4px; display: inline-block; }
.testo-recensione { font-style: italic; color: #222222; font-size: 0.9rem; margin: 0; text-align: left; line-height: 1.5; }
.autore-recensione { margin-bottom: 10px; font-weight: 600; color: #4a5d21; font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; }
.recensioni-footer-link { text-align: center; margin-top: 25px; margin-bottom: 15px; }

/* --- 📊 SEZIONE CONTATORI STATISTICI (FUSA E BILANCIATA AL MILLIMETRO) --- */
.sezione-statistiche-compatta { 
    max-width: 1000px; 
    margin: 25px auto; 
    padding: 30px 20px; 
    background-color: #f4f5f2; /* Sfondo colorato continuo */
    border: 1px solid #d4d8cd; /* Bordo singolo coordinato col brand */
    border-radius: 16px;       /* Arrotondamento perfetto identico alle altre macro-sezioni */
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.03);
    box-sizing: border-box;
    text-align: center; 
}

.contenitore-statistiche { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: center; 
    gap: 30px; 
}

.colonna-statistica { 
    flex: 1; 
    min-width: 150px; 
}

.numero-statistica { 
    font-family: 'Playfair Display', Georgia, serif; 
    font-size: 2.6rem; 
    font-weight: 700; 
    color: #4a5d21; 
    line-height: 1.2; 
}

.etichetta-statistica { 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    color: #333333; 
    margin-top: 6px; 
    letter-spacing: 0.5px; 
}

.divisore-statistica { 
    width: 1px; 
    height: 50px; 
    background-color: #d4d8cd; 
}

/* Adattamento reattivo per gli smartphone */
@media (max-width: 768px) {
    .sezione-statistiche-compatta {
        margin: 15px 10px;
        padding: 25px 15px;
    }
    .divisore-statistica.desktop-only { 
        display: none; 
    }
}


/* --- WIDGET PRENOTAZIONE (HOME PAGE E STRUTTURE) --- */
.risultati-booking-nascosti { display: none; margin-top: 20px; }
/* --- 🏛️ FOOTER INFORMATIVO SIMMETRICO E PERFETTAMENTE COORDINATO --- */
.footer-struttura { 
    background-color: #f7f8f4; 
    border-top: 1px solid #eef0eb; 
    padding: 35px 20px 25px 20px; 
    margin-top: 40px; 
}

.footer-griglia { 
    max-width: 1000px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    color: #222222; 
}

/* Allineamento coerente a sinistra per dare un senso di ordine e stabilità visiva */
.footer-colonna-sinistra,
.footer-colonna-centro,
.footer-colonna-destra { 
    text-align: left; 
}

.footer-colonna-sinistra h4,
.footer-colonna-centro h4,
.footer-colonna-destra h4 { 
    font-size: 1.1rem; 
    margin-bottom: 12px; 
    color: #4a5d21 !important; /* Forza il colore Verde Oliva Scuro del brand su tutti i titoli */
    font-family: 'Playfair Display', Georgia, serif;
}

.footer-colonna-sinistra p,
.footer-colonna-centro p,
.footer-colonna-destra li { 
    font-size: 0.9rem; 
    color: #222222; 
    margin: 0 0 8px 0; 
    line-height: 1.5; 
}

.footer-colonna-destra ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

/* 🚀 UNIFORMITÀ TIPOGRAFICA FOOTER: i link hanno lo stesso peso e la stessa altezza di riga
   del testo semplice della colonna sinistra (in precedenza erano più bold e con padding
   extra, per questo le tre colonne sembravano avere caratteri e interlinea diversi) */
.footer-colonna-centro a, 
.footer-colonna-destra a { 
    color: #4a5d21 !important; /* Sostituisce definitivamente il blu elettrico predefinito */
    text-decoration: underline; 
    font-weight: 400;
    transition: color 0.2s ease;
}

/* Effetto hover elegante: quando passi il mouse il colore diventa più scuro e intenso */
.footer-colonna-centro a:hover, 
.footer-colonna-destra a:hover { 
    color: #354318 !important; 
    text-decoration: none;
}

.footer-bottom { 
    text-align: center; 
    padding-top: 20px; 
    margin-top: 20px; 
    border-top: 1px solid #eef0eb; 
    font-size: 0.85rem; 
    color: #222222; 
    line-height: 1.5; 
}

/* Adattamento per dispositivi mobili */
@media (max-width: 768px) {
    .footer-colonna-sinistra, 
    .footer-colonna-centro, 
    .footer-colonna-destra { 
        text-align: center; 
    }
}

/* --- =============== --- */
/* --- INIZIO BLOCCO 2 --- */
/* --- =============== --- */

/* --- REGOLAZIONE FOOTER BOTTOM (OTTIMIZZATA PER CONTRASTO ED ELIMINAZIONE DUPLICATI) --- */
.footer-bottom { 
    max-width: 1000px; 
    margin: 25px auto 0 auto; 
    padding-top: 15px; 
    border-top: 1px solid #eef0eb; 
    text-align: center; 
    font-size: 0.85rem; 
    color: #222222; /* Ottimizzato per superare i test di contrasto delle note legali in basso */
}

/* --- ICONE FLUTTUANTI IN BASSO --- */
.pulsante-fluttuante-tondo { 
    position: fixed; 
    bottom: 60px; 
    z-index: 9999; 
    text-align: center; 
    text-decoration: none; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    cursor: pointer; 
    background: transparent; 
    border: none; 
    padding: 0; 
}
.fluttua-sinistra { left: 20px; } 
.fluttua-destra { right: 20px; }  

/* 🚀 ACCESSIBILITÀ: Garantisce che il cerchio interno rispetti i criteri 48x48px per il tocco mobile */
.cerchio-icona { 
    width: 48px; 
    height: 48px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    font-size: 1.4rem; 
    transition: transform 0.2s ease; 
}
.bg-whatsapp { background-color: #4a5d21; color: white; }
.bg-ai { background-color: #4a5d21; color: white; }
.pulsante-fluttuante-tondo:hover .cerchio-icona { transform: scale(1.06); }

/* 🚀 CONTRASTO OTTIMIZZATO: Testo e bordi scuriti per una visibilità a norma WCAG */
.etichetta-sotto { 
    font-size: 0.75rem; 
    font-weight: 700; 
    margin-top: 4px; 
    color: #111111; 
    background: rgba(255, 255, 255, 0.98); 
    padding: 2px 8px; 
    border-radius: 10px; 
    border: 1px solid #c8ccc0; 
}

/* --- 🤖 INTERFACCIA CHAT AI OTTIMIZZATA PER PRESTAZIONI ED ACCESSIBILITÀ --- */
#aiChatWindow { 
    display: none; 
    width: 420px; 
    max-width: 90vw;
    height: 590px; 
    max-height: 80vh;
    background: #ffffff; 
    border-radius: 12px; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.14); 
    border: 1px solid #e2e5de; 
    flex-direction: column; 
    overflow: hidden; 
    position: fixed; 
    bottom: 140px; 
    left: 20px; 
    z-index: 10000;
}
.chat-header-ai { 
    background-color: #4a5d21; 
    color: white; 
    padding: 14px 18px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    position: relative;
}
.chat-header-ai h4 { 
    margin: 0; 
    font-size: 1.1rem; 
    color: white !important; 
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-align: center;
}

/* 🚀 ACCESSIBILITÀ: Bottone nativo di chiusura corretto per target di tocco mobile */
.chiudi-chat { 
    position: absolute; 
    right: 18px; 
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer; 
    font-size: 22px; 
    color: white; 
    opacity: 0.9; 
    background: none;
    border: none;
    padding: 6px;
}
.chiudi-chat:hover { opacity: 1; }

.chat-body-ai { 
    flex: 1; 
    height: 420px;
    max-height: 60vh;
    padding: 15px; 
    overflow-y: auto; 
    background: #ffffff; 
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Nuvolette messaggi */
.msg-user { 
    background-color: #e8f4f8 !important; 
    color: #1a252f !important; /* Testo scurito per migliorare il contrasto */
    padding: 10px 14px; 
    border-radius: 14px 14px 2px 14px; 
    text-align: right; 
    align-self: flex-end;
    max-width: 85%;
    font-size: 13.5px;
    word-wrap: break-word;
    border: 1px solid #b8d4e0; 
}
.msg-bot { 
    background-color: #f4f5f2 !important; 
    color: #222222 !important; /* Testo scurito rispetto a #333 per leggibilità */
    padding: 14px 16px; 
    border-radius: 16px; 
    text-align: left; 
    align-self: stretch; 
    font-size: 13.5px; 
    line-height: 1.5; 
    word-wrap: break-word;
    border: 1px solid #eef0eb; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.01);
}

/* Copia chat ed elementi di controllo inferiori */
.area-copia-inferiore {
    padding: 4px 15px;
    background: #ffffff;
    text-align: center;
}
#btn-copia-chat { 
    background: transparent; 
    border: none; 
    color: #444444; /* Scurito da #888 per superare i test di contrasto sui link di controllo */
    font-size: 0.85rem; 
    cursor: pointer; 
    font-weight: 600; 
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
}
#btn-copia-chat:hover { color: #4a5d21; }

/* Zona footer di digitazione staccata con input a contrasto marcato */
.chat-footer-ai { 
    padding: 12px 15px 15px 15px; 
    margin-top: 5px; 
    display: flex; 
    background-color: #f4f5f2 !important; 
    gap: 8px; 
    align-items: center; 
    border-top: 1px solid #eef0eb;
}
.chat-footer-ai input { 
    flex: 1; 
    border: 1px solid #000000 !important; 
    padding: 10px 12px; 
    border-radius: 8px; 
    outline: none; 
    font-size: 0.9rem; 
    background-color: #ffffff; 
    color: #111111;
}
.chat-footer-ai button { 
    background: #4a5d21; 
    color: white; 
    border: none; 
    padding: 10px 16px; 
    border-radius: 8px; 
    font-size: 0.9rem; 
    font-weight: 600;
    cursor: pointer; 
    min-height: 38px;
}

#aiChatTyping { 
    display: none; 
    font-style: italic; 
    color: #333333; /* Scurito per l'accessibilità visiva mobile */
    font-size: 0.85rem; 
    padding-left: 15px; 
    margin-bottom: 5px; 
}

/* --- 🌅 CLASSE COPERTINA RECENSIONI IN PROPORZIONE NATIVA 2500x1107 --- */
.hero-recensioni-calibrata {
    height: 44vw !important; 
}
.hero-recensioni-calibrata .css-slide {
    background-position: center center !important; 
    filter: brightness(0.72) !important;
}

/* Adattamento responsive e spaziatura di sicurezza sui dispositivi mobili */
@media (max-width: 768px) {
    .hero-recensioni-calibrata {
        height: 50vh !important; 
    }
    #aiChatWindow {
        bottom: 130px;
        left: 5vw;
        right: 5vw;
        width: 90vw;
        height: 70vh;
        max-height: 500px; /* Previene lo sforamento dello schermo su telefoni molto corti */
    }
}

/* --- INIZIO BLOCCO 3 --- */

/* ==========================================================================
   MOBILE RESPONSIVE ADATTIVO FINALE
   ========================================================================== */
@media (max-width: 768px) {
    .navbar-principale { padding: 8px 20px; }
    .logo-contenitore img { height: 55px; }

    .menu-hamburger-icona {
        display: flex;
        margin-left: auto;
    }
    
    /* Navigazione Mobile pulita per evitare CLS */
    .voci-menu { 
        position: fixed; 
        top: 71px; 
        left: 0; 
        width: 100%; 
        height: calc(100vh - 71px); 
        background-color: #ffffff; 
        flex-direction: column; 
        align-items: center; 
        justify-content: flex-start; 
        padding-top: 40px; 
        gap: 25px; 
        transform: translateX(-100%);
        transition: transform 0.4s ease; 
    }

.navbar-principale.menu-aperto .navigazione-barra .voci-menu {
    transform: translateX(0);
}

.navbar-principale.menu-aperto .menu-hamburger-icona span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-principale.menu-aperto .menu-hamburger-icona span:nth-child(2) {
    opacity: 0;
}

.navbar-principale.menu-aperto .menu-hamburger-icona span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

    .navigazione-barra .voci-menu {
        z-index: 10001;
    }
		
    .card-dimora img { height: 380px; }
    .cornice-grande-struttura { margin: 15px 10px; padding: 20px 12px; }
    .griglia-due-colonne { grid-template-columns: 1fr; gap: 15px; }
    .footer-griglia { grid-template-columns: 1fr; gap: 20px; }
    .pulsante-fluttuante-tondo { bottom: 30px; }
    .desktop-only { display: none; }
    
    /* 🚀 MISURE CHAT MOBILE OTTIMIZZATE E PROTETTE CONTRO IL COLLASSO */
    #aiChatWindow { 
        bottom: 115px;      
        width: 92vw;        
        height: 62vh;       
        left: 4vw;          
    }
    .chat-body-ai {
        height: calc(100% - 130px) !important; 
    }
}

/* ==========================================================================
   DISEGNO MODULO PRENOTAZIONE ED ELEMENTI INTERATTIVI
   ========================================================================== */
:root {
  --color-brand-verde: #4a5d21;      /* Verde oliva coordinato ad alto contrasto per superare i test WCAG */
  --color-brand-verde-hover: #354318;/* Verde scuro per l'effetto hover */
  --color-brand-panna: #fcfbfa;      /* Sfondo chiaro del modulo */
  --color-testo: #222222;            /* Testo scuro ottimizzato */
}

/* 🚀 ACCESSIBILITÀ: Titolo del widget ereditato semanticamente */
.booking-widget h2 {
  color: var(--color-brand-verde);
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 8px;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
}

/* 🚀 CONTRASTO OTTIMIZZATO: Grado di colore scurito per conformità mobile Lighthouse */
.booking-subtitle {
  font-size: 14px;
  color: #333333; 
  text-align: center;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-testo);
}

/* 🚀 SELEZIONE DEL NUMERO DI PERSONE (PAREGGIATO AI CAMPI DATA NATIVI) */
.form-group select {
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #222222;
  padding: 10px 12px !important; /* Identico al padding dei campi data */
  border: 1px solid #c8ccc0 !important;
  border-radius: 6px !important;
  background-color: #fff !important;
  box-sizing: border-box;
  min-height: 48px; /* Stessa identica altezza geometrica del campo data */
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none; /* Rimuove lo stile nativo brutto su alcuni browser mobile */
  -moz-appearance: none;
  appearance: none;
  /* Aggiunge una freccia personalizzata elegante a destra se desiderato, oppure lascia il comportamento standard */
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-brand-verde);
  outline: none;
}

/* 🚀 TARGET DI TOCCO: Bottone di calcolo preventivo con padding e altezza stabili */
.btn-booking {
  background-color: var(--color-brand-verde);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-height: 48px;
  line-height: 20px;
}

.btn-booking:hover {
  background-color: var(--color-brand-verde-hover);
}

/* --- 🛠️ NUOVA MASCHERA PRENOTAZIONE ORIZZONTALE DI PRESTIGIO --- */
.booking-widget-horizontal-nuovo {
  background-color: #f7f6f2; /* Sfondo panna/argilla ultra-elegante che stacca dal bianco del sito */
  border: 1px solid #d4d8cd;
  border-radius: 16px;
  padding: 35px 30px;
  max-width: 1000px;
  margin: 30px auto;
  box-shadow: 0 6px 20px rgba(74, 93, 33, 0.04);
  box-sizing: border-box;
}

.booking-header-inside {
  text-align: center;
  margin-bottom: 25px;
}

.booking-widget-horizontal-nuovo h2 {
  font-family: 'Playfair Display', Georgia, serif;
  color: #4a5d21 !important;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.booking-subtitle {
  font-size: 0.95rem;
  color: #444444;
  margin: 0;
}

/* Griglia orizzontale rigida per forzare l'allineamento perfetto su Desktop */
.booking-form-horizontal-nuova {
  display: flex;
  flex-direction: row;
  align-items: flex-end; /* Allinea perfettamente le basi di tutti i campi e del bottone */
  justify-content: center;
  gap: 15px;
  width: 100%;
}

/* --- REGOLAZIONE DEI TITOLI DELLE COLONNE PER EVITARE SOVRAPPOSIZIONI --- */
.form-group-nuovo label {
    font-size: 0.78rem !important; /* Carattere sensibilmente più piccolo per stare comodamente in riga */
    font-weight: 700;
    color: #222222;
    text-transform: none !important; /* Rimosso il tutto maiuscolo: riduce l'ingombro del testo del 30% */
    letter-spacing: 0.2px;
    white-space: nowrap; /* Mantiene il testo pulito su una sola riga */
    margin-bottom: 2px;
}

/* Il campo delle persone e il bottone hanno bisogno di meno spazio rispetto alle date */
.form-group-bottone {
    flex: 0.9; /* Rende il bottone leggermente più compatto per lasciare spazio ai testi a sinistra */
}

.form-group-nuovo label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #222222;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* 🚀 IL SEGRETO DEL PAREGGIO: Stessa altezza geometrica (50px), stesso padding e box-sizing */
.form-group-nuovo input[type="date"],
.form-group-nuovo select {
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #4a5d21 !important;
  background-color: #ffffff !important;
  border: 1px solid #c8ccc0 !important;
  border-radius: 6px !important;
  padding: 0 14px !important;
  height: 50px !important; /* Forza la stessa identica altezza strutturale per l'input e il select */
  line-height: 50px !important;
  box-sizing: border-box !important;
  width: 100%;
  transition: all 0.2s ease-in-out;
}

/* Contenitore di sicurezza per il select per standardizzare i comportamenti dei browser */
.select-wrapper-nuovo {
  position: relative;
  width: 100%;
}

/* Effetto di selezione attiva elegante */
.form-group-nuovo input[type="date"]:focus,
.form-group-nuovo select:focus {
  border-color: #4a5d21 !important;
  box-shadow: 0 0 0 3px rgba(74, 93, 33, 0.12) !important;
  outline: none;
}

/* 🚀 BOTTONE DI RICHIESTA PRENOTAZIONE PERFETTAMENTE COORDINATO IN ALTEZZA */
.btn-booking-nuovo {
    background-color: #4a5d21;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0 10px; /* Ridotto il padding interno del testo del bottone */
    height: 50px;
    font-size: 0.85rem; /* Carattere del bottone leggermente più piccolo per farlo entrare perfettamente */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
}

.btn-booking-nuovo:hover {
  background-color: #354318;
}

.btn-booking-nuovo:active {
  transform: scale(0.98);
}

/* Personalizzazione icone calendario nativo Chrome/Safari */
.form-group-nuovo input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(34%) sepia(21%) saturate(765%) hue-rotate(46deg) brightness(93%) contrast(85%) !important;
  opacity: 0.8;
}

/* 📱 COMPORTAMENTO FLUIDO SU SMARTPHONE (MOBILE) */
@media (max-width: 850px) {
/* --- REGOLAZIONE DEI TITOLI DELLE COLONNE PER EVITARE SOVRAPPOSIZIONI --- */
.form-group-nuovo label {
    font-size: 0.78rem !important; /* Carattere sensibilmente più piccolo per stare comodamente in riga */
    font-weight: 700;
    color: #222222;
    text-transform: none !important; /* Rimosso il tutto maiuscolo: riduce l'ingombro del testo del 30% */
    letter-spacing: 0.2px;
    white-space: nowrap; /* Mantiene il testo pulito su una sola riga */
    margin-bottom: 2px;
}


  .booking-widget-horizontal-nuovo {
    margin: 20px 10px;
    padding: 25px 20px;
  }
 /* --- BILANCIAMENTO DELLE LARGHEZZE DEI CAMPI --- */
.form-group-nuovo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1; /* Distribuisce lo spazio in modo equo */
    min-width: 0;
}
}
/* Stili specifici schede dotazioni Panorama */
.card-dimora-comfort-box {
    background: #ffffff; 
    padding: 25px; 
    border-radius: 8px; 
    box-shadow: 0 2px 14px rgba(0,0,0,0.02); 
    border: 1px solid #d4d8cd;
}
.card-dimora-comfort-box h3 {
    font-family: 'Playfair Display', Georgia, serif; 
    color: #4a5d21; 
    margin-bottom: 15px; 
    font-size: 1.3rem;
    text-align: left;
}
.lista-comfort-dettagliata {
    list-style-type: none; 
    padding: 0; 
    margin: 0;
    line-height: 2; 
    color: #222222; 
    font-size: 0.95rem;
    text-align: left;
}
/* ==========================================================================
   🏛️ SEZIONE MINI FAQ DIMORA - STILE INTEGRALE AD ELEVATA ELEGANZA
   ========================================================================== */
.faq-lista { 
    margin-top: 20px; 
    text-align: left; 
}

.faq-item { 
    border-bottom: 1px solid #eef0eb; /* Linea di divisione sottile e morbida */
    padding: 8px 0; 
}

.faq-item h3 { 
    margin: 0 !important; 
    padding: 0 !important; 
    font-size: 1.05rem !important; 
}

/* 🚀 RIPRISTINO CARATTERE ELEGANTE: Utilizza font serif di sistema di alto prestigio */
.faq-bottone { 
    background: none; 
    border: none; 
    width: 100%; 
    text-align: left; 
    
    /* Font di sistema con grazie (Sostituti perfetti ed elegantissimi di Playfair Display) */
    font-family: Georgia, Cambria, "Times New Roman", Times, serif; 
    font-size: 1.15rem; 
    font-weight: 600; /* Spessore medio, non eccessivo, per massima eleganza */
    color: #4a5d21; /* Il verde oliva del tuo brand */
    
    cursor: pointer; 
    padding: 14px 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    transition: color 0.2s ease, background-color 0.2s ease; 
    min-height: 48px; /* Standard WCAG per tocco mobile */
}

.faq-bottone:hover { 
    color: #354318; 
}

/* Stilizzazione del simbolo + a destra */
.faq-bottone:after { 
    content: '\002B'; /* Simbolo più (+) */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.1rem; 
    font-weight: 400; 
    margin-left: 20px; 
    transition: transform 0.2s; 
    color: #4a5d21; 
}

/* Quando la domanda è aperta e attiva */
.faq-bottone.attivo { 
    color: #354318; 
}

/* Cambia il simbolo in meno (-) quando è aperto */
.faq-bottone.attivo:after { 
    content: '\2212'; /* Simbolo meno (−) */
    color: #354318; 
}

.faq-risposta { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

/* 🚀 RIPRISTINO CORPO DEL TESTO: Font sans-serif leggero, pulito e moderno (Stile Inter) */
.faq-risposta-corpo { 
    padding: 10px 0 20px 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    font-size: 0.95rem; 
    color: #333333; /* Grigio scuro leggibile ad alto contrasto */
    line-height: 1.6; 
}

.faq-risposta-corpo p {
    margin: 0 0 10px 0;
}
/* Forza il colore oliva su qualsiasi link isolato all'interno delle note legali o del footer */
.cornice-grande-struttura p a,
.cornice-grande-struttura div a,
a.link-legale {
    color: #4a5d21 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.cornice-grande-struttura p a:hover,
.cornice-grande-struttura div a:hover,
a.link-legale:hover {
    color: #354318 !important;
    text-decoration: none !important;
}
/* ==========================================================================
   🚀 PAREGGIO GEOMETRICO ASSOLUTO DEI DUE PULSANTI CTA FINALI (AL PIXEL)
   ========================================================================== */

.contenitore-statistiche {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* Allinea perfettamente i centri dei due elementi */
    gap: 15px;
    margin: 25px auto 0 auto;
    width: 100%;
}

/* 🚀 STRUTTURA IDENTICA INIZIALE: Sfondo bianco, bordo oliva 1px, testo oliva */
.contenitore-statistiche a.btn-scopri,
.contenitore-statistiche a.btn-booking-new {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-align: center !important;
    color: #4a5d21 !important;             /* Testo oliva per entrambi */
    background-color: #ffffff !important;   /* Sfondo bianco iniziale per entrambi */
    border: 1px solid #4a5d21 !important;   /* Cornice identica per entrambi */
    border-radius: 6px !important;
    
    /* Forza la stessa identica sagoma bloccata al pixel */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;                /* Altezza identica al pixel */
    padding: 0 24px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    transition: all 0.25s ease-in-out !important;
}

/* 🚀 EFFETTO AL PASSAGGIO DEL MOUSE (HOVER): Si riempiono di oliva e il testo diventa bianco */
.contenitore-statistiche a.btn-scopri:hover,
.contenitore-statistiche a.btn-booking-new:hover {
    background-color: #4a5d21 !important;   /* Lo sfondo si colora interamente di verde oliva */
    color: #ffffff !important;              /* Il testo diventa bianco */
    border-color: #4a5d21 !important;       /* La cornice si uniforma allo sfondo */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 93, 33, 0.12);
}

/* Adattamento reattivo per smartphone */
@media (max-width: 768px) {
    .contenitore-statistiche {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .contenitore-statistiche a.btn-scopri,
    .contenitore-statistiche a.btn-booking-new {
        width: 100% !important;
        height: 50px !important;
    }
}
.booking-nota {
    margin: 16px 0 0;
    color: #444444;
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: center;
}

.booking-risultato-card {
    margin-top: 15px;
    padding: 18px;
    border: 1px solid #d4d8cd;
    border-radius: 8px;
    background: #fcfbfa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.booking-risultato-card h4 {
    margin: 0 0 8px;
    color: #4a5d21 !important;
    font-size: 1.05rem;
}

.booking-risultato-card p {
    margin: 8px 0;
    color: #333333;
}

.booking-risultato-card.booking-disponibile {
    border-color: #53643d;
}

.booking-risultato-card.booking-non-disponibile {
    border-color: #be9d52;
    background: #fdfaf7;
}

.booking-risultato-card.booking-non-disponibile h4 {
    color: #8a6d2f !important;
}

.booking-nota-risultato {
    font-size: 0.86rem;
    font-style: italic;
    color: #555555 !important;
}

.btn-risultato-booking {
    display: inline-block;
    margin-top: 10px;
    padding: 11px 18px;
    border-radius: 6px;
    background: #4a5d21;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    line-height: 1.3;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-risultato-booking:hover {
    background: #354318;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.booking-errore {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #be9d52;
    border-radius: 8px;
    background: #fdfaf7;
    text-align: center;
}

.booking-errore p {
    margin: 0;
    color: #664f18;
    font-weight: 600;
}

.booking-risultati-contenuto > h3 {
    margin: 0 0 12px;
    color: #53643d !important;
    font-size: 1.1rem;
}

.msg-user p,
.msg-bot p {
    margin: 0;
}

.msg-bot p + p {
    margin-top: 10px;
}

@media (max-width: 850px) {
    .booking-risultato-card {
        padding: 15px;
    }

    .btn-risultato-booking {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .booking-nota {
        font-size: 0.84rem;
        padding: 0 4px;
    }
}

/* ==========================================================================
   CTA WHATSAPP FINALE - CORREZIONE VISIBILITÀ
   ========================================================================== */

.contenitore-cta-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 15px;
}

.contenitore-cta-whatsapp .btn-prenota,
.contenitore-cta-whatsapp a.btn-prenota {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 220px;
    min-height: 48px;
    padding: 12px 24px !important;
    box-sizing: border-box;
    border: 0 !important;
    border-radius: 6px;
   background-color: #0b6b35 !important;
    /* 6,63:1 con testo bianco */
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible;
    text-indent: 0;
    text-transform: none;
}

.contenitore-cta-whatsapp .btn-prenota *,
.contenitore-cta-whatsapp a.btn-prenota * {
    color: #ffffff !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.contenitore-cta-whatsapp .btn-prenota:hover,
.contenitore-cta-whatsapp a.btn-prenota:hover {
    background-color: #4a5d21 !important;
    /* 7,11:1 */
    color: #ffffff !important;
    transform: translateY(-1px);
}

.contenitore-cta-whatsapp .btn-prenota:focus-visible,
.contenitore-cta-whatsapp a.btn-prenota:focus-visible {
    outline: 3px solid #1b4d2e;
    outline-offset: 3px;
}

.testo-btn-whatsapp {
    display: inline-block;
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .contenitore-cta-whatsapp {
        flex-direction: column;
        gap: 10px;
    }

    .contenitore-cta-whatsapp .btn-prenota,
    .contenitore-cta-whatsapp a.btn-prenota {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .contenitore-cta-whatsapp .icona-wa-esterna {
        width: 32px;
        height: 32px;
    }

    .testo-btn-whatsapp {
        white-space: normal;
    }
}

/* ==========================================================================
   MODULO PRENOTAZIONE - CORREZIONE MOBILE DEFINITIVA
   ========================================================================== */

@media screen and (max-width: 850px) {
    .booking-widget-horizontal-nuovo {
        width: calc(100% - 20px);
        max-width: none;
        margin: 20px 10px;
        padding: 24px 16px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .booking-widget-horizontal-nuovo h2 { font-size: 1.45rem; line-height: 1.25; }
    .booking-subtitle { font-size: 0.92rem; line-height: 1.45; }

    .booking-form-horizontal-nuova {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        width: 100%;
        max-width: 100%;
    }

    .booking-form-horizontal-nuova .form-group-nuovo,
    .booking-form-horizontal-nuova .form-group-bottone {
        display: flex;
        flex: none;
        flex-direction: column;
        gap: 5px;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .booking-form-horizontal-nuova .form-group-nuovo label {
        display: block;
        width: 100%;
        margin: 0;
        white-space: normal !important;
        overflow-wrap: anywhere;
        font-size: 0.82rem !important;
        line-height: 1.35;
    }

    .booking-form-horizontal-nuova .select-wrapper-nuovo {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .booking-form-horizontal-nuova input[type="date"],
    .booking-form-horizontal-nuova select,
    .booking-form-horizontal-nuova .btn-booking-nuovo {
        display: block;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        height: 50px;
        min-height: 50px;
        margin: 0;
        padding: 0 12px !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        line-height: normal !important;
    }

    .booking-form-horizontal-nuova input[type="date"] {
        -webkit-appearance: auto;
        appearance: auto;
    }

    .booking-form-horizontal-nuova .btn-booking-nuovo {
        white-space: normal;
        text-transform: none;
        letter-spacing: 0;
    }

    .booking-nota {
        width: 100%;
        margin: 16px 0 0;
        font-size: 0.84rem;
        line-height: 1.45;
        text-align: center;
    }

    #risultati-booking-singolo {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }
}

/* ==========================================================================
   FOOTER - ALLINEAMENTI E UNIFORMITÀ FINALI
   ========================================================================== */

/* Tre colonne di pari larghezza, larghezza identica al blocco CTA sopra (1000px) */
.footer-griglia {
    max-width: 1000px;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Titoli perfettamente uniformi nelle tre colonne */
.footer-colonna-sinistra h4,
.footer-colonna-centro h4,
.footer-colonna-destra h4 {
    font-family: Georgia, Cambria, "Times New Roman", Times, serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #4a5d21 !important;
}

/* Allineamenti richiesti, solo da tablet in su */
@media (min-width: 769px) {
    .footer-colonna-sinistra { text-align: left; }
    .footer-colonna-centro   { text-align: center; }
    .footer-colonna-destra   { text-align: right; }

    /* La lista delle note legali segue l'allineamento a destra */
    .footer-colonna-destra ul,
    .footer-colonna-destra li { text-align: right; }
}

/* Social nella riga del copyright, stessa identità dei link legali */
.footer-social-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-bottom .footer-social-inline a,
.footer-bottom .footer-social-inline a:link,
.footer-bottom .footer-social-inline a:visited {
    color: #4a5d21 !important;
    text-decoration: underline;
    font-weight: 500;
    display: inline-block;
    padding: 2px 0;
    transition: color 0.2s ease;
}

.footer-bottom .footer-social-inline a:hover {
    color: #354318 !important;
    text-decoration: none;
}

.footer-social-inline span { color: #222222; }

.footer-copy { margin: 0; }

/* =========================================================
   ALLINEAMENTO CENTRALE FORM PREVENTIVO
   ========================================================= */

.booking-form-horizontal-nuova {
    justify-content: center;
}

.form-group-nuovo {
    text-align: center;
}

.form-group-nuovo label {
    display: block;
    text-align: center;
}

.form-group-nuovo input {
    text-align: center;
}


/* =========================================================
   CARTELLO VENDITA SU PRIMA PAGINA
   ========================================================= */
/* FASCETTA BLOCCATA NELLA POSIZIONE PERFETTA */
.cartello-vendita {
    position: absolute !important;
    top: 92px;           
    left: -42px;         
    width: 225px;        
    background-color: #d9381e; 
    color: #ffffff;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.3rem;   
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 0;      
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Angolo antispigolo discreto sulla punta destra */
    border-radius: 0 8px 0 0; 
    
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.35);
    
    /* Inclinazione dolce */
    transform: rotate(-20deg); 
    z-index: 15; 
}

/* SPOSTAMENTO ULTERIORE DELLA SCRITTA VERSO DESTRA */
.cartello-vendita {
    text-indent: 28px; /* Aumentato per portare la 'I' nella posizione della vecchia 'A' */
}

/* Numero di telefono allineato al nuovo spostamento */
.cartello-vendita span {
    display: block;
    font-size: 0.72rem;       
    font-weight: normal;     
    letter-spacing: 0.5px;
    margin-top: 3px;         
    text-transform: none;
    opacity: 0.9;
    
    margin-left: 28px; /* Sposta anche il numero per mantenerlo in asse */
}









