/* ============================================
   STILI GLOBALI
   ============================================ */

/* Font generali */
body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #4a4a4a;
  background-color: #fdfbf8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Titoli */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #7a6652;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #7a6652;
}

h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #7a6652;
}

/* Paragrafi */
p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a4a4a;
}

.lead {
  font-size: 1.1rem;
  font-weight: 300;
  color: #6c5b47;
}

/* Link */
a {
  color: #7a6652;
  transition: all 0.3s ease;
}

a:hover {
  color: #6b573d;
}

/* Sezioni */
section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Card */
.card {
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Badge */
.badge-custom {
  background-color: #b59f84;
  color: white;
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 0.85rem;
}

/* Linee divisorie */
.divider-custom {
  width: 60px;
  height: 3px;
  background: #b59f84;
  margin: 20px auto;
  border-radius: 3px;
}

/* Icone servizi */
.servizio-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
  transition: transform 0.3s ease;
}

.servizio-icon:hover {
  transform: scale(1.15);
}

/* Fix hero slider - evita che il contenuto sottostante sparisca */
section.hero {
  position: relative;
  z-index: 1;
}

/* Assicura che le sezioni dopo l'hero siano visibili */
main > section:not(.hero) {
  position: relative;
  z-index: 2;
  background-color: #fdfbf8;
}


/* WhatsApp e Scroll-to-top: nascosti su desktop */
.whatsapp-float,
.scroll-top {
  display: none;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 900px;
  z-index: 9999;
}

.custom-hover:hover {
  opacity: 1 !important;
  text-decoration: underline !important;
}

/* Servizi title desktop */
.servizio-title {
  color: #4a4a4a;
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
  font-family: 'Poppins', sans-serif;
}

/* Mappa container desktop */
.map-container {
  width: 500px;
  height: 400px;
}

/* Map box desktop */
.map-box {
  width: 100%;
  max-width: 500px;
  height: 400px;
}

/* Map btn desktop */
.map-btn {
  width: 140px;
  height: 140px;
}

/* Maps link btn desktop */
.maps-link-btn {
  width: 400px;
  height: 100px;
  background-color: #8b7355;
  color: white;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  gap: 15px;
  white-space: nowrap;
}

/* Garden desktop */
.garden-slide {
  height: 550px;
}

.garden-img {
  height: 100%;
  width: auto;
}
/* =========================================
   VERSIONE MOBILE (solo sotto 768px)
   ========================================= */
@media (max-width: 767.98px) {
  
  /* Padding sezioni */
  section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Titoli */
  h1 { font-size: 1.8rem !important; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.3rem !important; }
  p, .lead { font-size: 0.95rem !important; }

  /* Immagini */
  .card-img-top, .img-fluid {
    max-height: 220px;
    object-fit: cover;
  }

  /* Bottoni */
  .btn {
    padding: 10px 20px !important;
    font-size: 0.9rem !important;
  }

  /* Navbar */
  .navbar-brand {
    font-size: 0.8rem !important;
    white-space: nowrap;
  }
  /* Footer centrato */
  footer {
    text-align: center;
  }

  /* Menu offcanvas */
  .offcanvas .nav-link {
    font-size: 1.1rem !important;
    padding: 12px 16px !important;
  }

  /* WhatsApp Button - SOLO MOBILE */
  .whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 15px;
    width: 52px;
    height: 52px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease;
  }

  .whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
  }

  /* Scroll to Top - SOLO MOBILE */
  .scroll-top {
    position: fixed;
    bottom: 85px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #7a6652;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
  }

  .scroll-top.visible {
    opacity: 1;
    visibility: visible;
  }

  .scroll-top:hover {
    background: #6b573d;
    transform: translateY(-3px);
  }

  /* Cookie banner più in alto per non sovrapporsi a WhatsApp */
  .cookie-banner {
    bottom: 80px !important;
  }

    /* ========== HOME PAGE MOBILE ========== */
  
  /* Card B&B e Casa Vacanze */
  .card-img-top {
    height: 200px !important;
  }
  
  .card-body h3 {
    font-size: 1.3rem !important;
  }
  
  /* Mappa container */
  .map-container {
    width: 100% !important;
    height: 280px !important;
    max-width: 500px;
  }
  
  /* Bottoni mappa */
  .map-btn {
    width: 110px !important;
    height: 110px !important;
    font-size: 0.85rem;
  }
  
  .map-btn i {
    font-size: 1.5rem !important;
  }
  
  /* Servizi */
  .servizio-title {
    font-size: 14px !important;
    margin-top: 8px;
  }
  
  .servizio-icon {
    width: 50px !important;
    height: 50px !important;
  }
    /* ========== B&B PAGE MOBILE ========== */
  
  /* Hero section */
  section[style*="min-height:75vh"] {
    min-height: auto !important;
    padding: 80px 0 40px !important;
  }
  
  h1[style*="font-size:2.8rem"] {
    font-size: 1.8rem !important;
  }
  
  /* Form disponibilità */
  #check-availability-form .form-control-lg {
    font-size: 0.9rem !important;
    padding: 8px 12px !important;
  }
  
  #check-availability-form label {
    font-size: 0.8rem !important;
  }
  
  /* Giardino slider */
  .garden-slide {
    height: 300px !important;
  }
  
  .garden-img {
    height: 100% !important;
    width: auto !important;
  }
  
  /* Mappa */
  .map-box {
    width: 100% !important;
    max-width: 100% !important;
    height: 250px !important;
  }
  
  /* Bottone Maps link */
  .maps-link-btn {
    width: 100% !important;
    max-width: 320px !important;
    height: 55px !important;
    font-size: 0.9rem !important;
    gap: 10px !important;
    padding: 0 16px !important;
    border-radius: 15px !important;
  }
}
/* ============================================
   CALENDARIO - STILI GENERALI
   ============================================ */

/* Contenitore calendario */
.calendar-container {
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
}

.calendar-container iframe {
  width: 100%;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}

/* Wrapper per lo scroll orizzontale su mobile */
.calendar-scroll-wrapper {
  width: 100%;
}

/* Messaggio informativo scroll - nascosto su desktop */
.calendar-scroll-hint {
  display: none;
}

/* ============================================
   VERSIONE MOBILE - CALENDARIO
   ============================================ */
@media (max-width: 767.98px) {
  
  /* Contenitore calendario mobile */
  .bg-white.rounded-4 {
    padding: 0.5rem !important;
    overflow: hidden;
  }
  
  /* Wrapper scrollabile orizzontalmente */
  .calendar-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
  }
  
  /* Iframe con larghezza minima per essere leggibile */
  .calendar-scroll-wrapper iframe {
    min-width: 750px;
    width: 100%;
    height: 500px;
    scroll-snap-align: start;
  }
  
  /* Messaggio informativo scroll - visibile solo su mobile */
  .calendar-scroll-hint {
    display: block !important;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #6c5b47;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
    text-align: center;
  }
  
  /* Testo sotto calendario */
  .mt-4.text-secondary.px-3 {
    font-size: 0.8rem !important;
    padding: 0 0.5rem !important;
  }
}

/* Per schermi molto piccoli (max 480px) */
@media (max-width: 480px) {
  .calendar-scroll-wrapper iframe {
    min-width: 650px;
    height: 450px;
  }
}

/* Per schermi medi (tablet) */
@media (min-width: 768px) and (max-width: 1024px) {
  .calendar-scroll-wrapper iframe {
    min-width: 700px;
  }
}