/* 1. VARIABILI E RESET */
:root {
    --primary: #ffffff;
    --text: #1a1a1a;
    --text-light: #555555;
    --accent: #4a5d23; /* Verde Agriturismo */
    --bg-soft: #fdfdfd;
    --border: rgba(0,0,0,0.08);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-soft);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. HEADER & NAVIGAZIONE */
header {
    position: fixed;
    top: 0; width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.site-logo {
    height: 50px; /* Aumentato da 40px a 60px per maggiore visibilità */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05); /* Piccolo effetto al passaggio del mouse */
}

/* Regolazione per schermi piccoli (Mobile) */
@media (max-width: 768px) {
    .site-logo {
        height: 50px; /* Leggermente più piccolo su mobile per non occupare troppo spazio */
    }
}


.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.lang-switch {
    font-weight: bold;
    border: 1px solid var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
}

.lang-link {
    text-decoration: none;
    color: var(--accent);
    font-size: 0.85rem;
    transition: 0.3s;
}

.menu-btn { 
    background: none; border: none; cursor: pointer; 
    display: flex; align-items: center; gap: 10px; 
    text-transform: uppercase; font-size: 0.75rem; 
    letter-spacing: 2px; color: var(--text);
}

.hamburger { width: 20px; height: 2px; background: currentColor; position: relative; transition: 0.3s; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 100%; height: 2px; background: currentColor; transition: 0.3s; }
.hamburger::before { top: -6px; } .hamburger::after { top: 6px; } /* ANIMAZIONE HAMBURGER -> X */
.menu-btn.active .hamburger { 
    background: transparent; /* Nasconde la linea centrale */
}

.menu-btn.active .hamburger::before { 
    top: 0; 
    transform: rotate(45deg); 
}

.menu-btn.active .hamburger::after { 
    top: 0; 
    transform: rotate(-45deg); 
}


/* Menu Full Screen */
.full-menu {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh;
    background: rgba(255,255,255,0.98); 
    backdrop-filter: blur(20px);
    display: flex; 
    justify-content: center; 
    align-items: flex-start; /* Cambiato da center a flex-start per gestire meglio lo scroll */
    opacity: 0; 
    visibility: hidden; 
    transition: 0.4s ease-in-out; 
    z-index: 1500;
    overflow-y: auto; /* Permette lo scroll se le voci sono tante */
}

.full-menu.open { opacity: 1; visibility: visible; }

.full-menu ul { 
    list-style: none; 
    display: flex; 
    flex-direction: column; /* Forza la colonna singola su mobile */
    gap: 10px; 
    width: 90%;
    max-width: 1000px;
    padding-top: 100px; /* Spazio per l'header (regola in base all'altezza del tuo logo) */
    padding-bottom: 50px;
    text-align: center;
}

@media (min-width: 769px) {
    .full-menu ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 50px;
        align-self: center; /* Centra verticalmente solo su desktop */
        padding-top: 0;
    }
}

.full-menu a { 
    font-family: 'Cormorant Garamond', serif; font-size: clamp(1.2rem, 3vh, 1.8rem); 
    color: var(--text); text-decoration: none; padding: 10px 0; display: block; 
    transition: 0.3s; border-bottom: 1px solid var(--border);
}

.full-menu a:hover { color: var(--accent); padding-left: 10px; }

/* 3. HERO SECTION */
.hero {
    position: relative; height: 85vh; display: flex; align-items: center; 
    justify-content: center; color: white; text-align: center; overflow: hidden;
}

.video-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; object-fit: cover; filter: brightness(1.0);
}

.hero-content h1 { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: clamp(2.5rem, 8vw, 5rem); 
    line-height: 1.1;
}

.hero-content p { letter-spacing: 3px; font-size: 0.9rem; margin-top: 10px; }

/* 4. LAYOUT CONTENUTI (A COLONNA PER UX) */
section { padding: 6rem 5%; }

.content-center {
    max-width: 900px;
    margin: 0 auto;
}

.intro-block { text-align: center; margin-bottom: 5rem; }

.section-title { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: clamp(2rem, 5vw, 3rem); 
    color: var(--accent); 
    margin-bottom: 1rem;
    line-height: 1.2;
}

.location-tag { 
    color: var(--accent); 
    font-weight: 700; 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
    margin-bottom: 1.5rem; 
}

.main-description { 
    font-size: 1.2rem; 
    color: var(--text-light); 
    max-width: 750px; 
    margin: 0 auto; 
}

/* Blocchi Informativi */
.info-card { margin-bottom: 7rem; width: 100%; }

.card-image {
    width: 100%;
    height: 500px;
    margin-bottom: 2.5rem;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.05);
}

.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s ease; }
.card-image:hover img { transform: scale(1.03); }

/* Il contenitore si adatta al contenuto */
#menu-stagionale-frame {
  width: 100%;       /* O la larghezza massima che desideri */
  height: auto;      /* Fondamentale: l'altezza si adatta all'immagine */
  overflow: hidden;  /* Mantiene i bordi puliti */
  display: block;
}

/* L'immagine riempie il contenitore senza deformarsi */
#menu-stagionale-frame img {
  width: 100%;       /* Copre tutta la larghezza del frame */
  height: auto;      /* Calcola l'altezza corretta in base alla foto */
  display: block;    /* Elimina lo spazio bianco millimetrico sotto l'immagine */
  object-fit: auto;  /* Non serve più 'contain' perché il frame ora la segue */
}



.card-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.clean-list { list-style: none; margin-top: 1.5rem; }
.clean-list li {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Shop & Pills */
.product-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.product-pills span {
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* Experience Grid */
.experience-grid-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 2.5rem;
}

.exp-item {
    background: #fff;
    padding: 20px;
    border-left: 3px solid var(--accent);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* 5. FOOTER & CTA */
.cta-section { background: #f4f4f4; text-align: center; padding: 5rem 5%; }

.btn-call { 
    background: var(--accent); color: white; 
    padding: 1.2rem 2.5rem; text-decoration: none; 
    display: inline-block; border-radius: 4px; 
    font-weight: bold; margin-top: 2rem; transition: 0.3s; 
}
.btn-call:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(74, 93, 35, 0.2); }

footer { padding: 5rem 10%; border-top: 1px solid var(--border); background: white; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4rem; }
footer h4 { font-family: 'Cormorant Garamond', serif; color: var(--accent); margin-bottom: 1.5rem; font-size: 1.4rem; }
footer p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0.5rem; }

/* 6. RESPONSIVE */
@media (max-width: 768px) {
    /* Rimosso grid-template-columns perché ora usiamo flex-column nel mobile */
    .card-image { height: 300px; }
    .experience-grid-simple { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 3rem; }
    section { padding: 4rem 5%; }
    .info-card { margin-bottom: 4rem; }
}

/* Container principale della chat - POSIZIONE STANDARD */
.chat-widget {
    position: fixed;
    bottom: 80px; /* Abbassata per essere vicina al pulsante */
    right: 20px;
    width: 320px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: none; 
    z-index: 2000;
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid #4A5D23; /* Bordo verde oliva */
}

/* Header della chat - VERDE OLIVA */
.chat-header {
    background-color: #4A5D23; /* VERDE OLIVA */
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

/* Corpo della chat */
.chat-body {
    padding: 15px;
    height: 380px;
    overflow-y: auto;
    background-color: #FDFDF5; /* Un bianco sporco tendente all'oliva */
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Messaggio UTENTE - VERDE OLIVA */
.user-message {
    background-color: #4A5D23;
    color: white;
    align-self: flex-end;
    padding: 8px 12px;
    border-radius: 15px 15px 2px 15px;
    font-size: 14px;
    max-width: 80%;
}

/* Messaggio ASSISTENTE */
.assistant-message {
    background-color: #E9E9E0;
    color: #333;
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 15px 15px 15px 2px;
    font-size: 14px;
    max-width: 80%;
}

/* BOTTONI ESEMPIO - BORDO OLIVA */
.example-btn {
    cursor: pointer;
    border: 1px solid #4A5D23 !important;
    background-color: #FFFFFF !important;
    color: #4A5D23 !important;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 13px;
}

.example-btn:hover {
    background-color: #f0f0e0 !important;
}

/* Input Area */
.chat-input {
    display: flex;
    padding: 12px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.chat-input button {
    margin-left: 8px;
    background-color: #4A5D23;
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PULSANTE DI APERTURA (Icona Fluttuante) */
.chat-toggle-btn {
    position: fixed; 
    bottom: 20px; /* Posizione standard nell'angolo */
    right: 20px; 
    background-color: #4A5D23; 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 55px;
    height: 55px;
    font-size: 24px;
    z-index: 2001;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
}

/* Scrollbar sottile */
.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: #80800055; border-radius: 10px; }

/* Stile Barra di navigazione interna */
  .quick-nav-divider {
    background: #fdfdfd;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin: 40px 0;
    width: 100%;
    display: block;
  }

  .quick-nav-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    flex: 1;
    max-width: 120px;
    transition: all 0.2s;
    opacity: 0.6; /* Rende i bottoni "meno importanti" di default */
  }

  .quick-nav-item:hover {
    transform: scale(1.05);
    color: #3d8fff;
    opacity: 1;
  }

  /* 2. STILE PER IDENTIFICARE LA POSIZIONE (Classe Active) */
  .quick-nav-item.active {
    opacity: 1;
    color: #3d8fff; /* Colore azzurro per evidenziare */
    border-bottom: 2px solid #3d8fff; /* Aggiunge una linea sotto */
    padding-bottom: 5px;
  }

  .quick-nav-item .icon { font-size: 26px; margin-bottom: 5px; }
  .quick-nav-item .label { font-size: 16px; font-weight: bold; text-transform: uppercase; text-align: center; }

  @media (max-width: 480px) {
    .quick-nav-container { gap: 10px; }
    .quick-nav-item .label { font-size: 9px; }
  }

  /* Rende lo scroll fluido */
  html {
    scroll-behavior: smooth;
  }
  
   /* 1. CREA IL CUSCINETTO SOPRA GLI ID (Importante!) */
  [id] {
    scroll-margin-top: 100px; /* Regola questo valore (es. 80px o 120px) per alzare il punto di arrivo */
  }
  
  /* Simbolo + con sfondo tondo blu*/
  .plus {
  width: 25px;
  height: 25px;
  background-color: #0071c0;
  color: white;
  display: inline-flex; /* Permette di allineare il simbolo in linea con il testo */
  align-items: center;
  justify-content: center;
  border-radius: 50%; /* Rende l'elemento rotondo */
  font-size: 25px; /* Dimensione del simbolo + */
  font-weight: bold; /* Grassetto */
  }
  
  /*Inizio card imagini grotte*/
  .card-grotte {
  width: 100%;
  max-width: 320px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  margin: 15px auto;
}

/* Effetto Hover */
.card-grotte:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.card-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
 /*Fine card imagini grotte*/