/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Lato', sans-serif; background: #fff; color: #333; line-height: 1.8; }

/* TIPOGRAFIA */
h1, h2, h3 { font-family: 'Playfair Display', serif; color: #2c2c2c; }
p { font-size: 1.1rem; }

/* HEADER */
.header { background: white; padding: 1.5rem 5%; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 10; }
.logo { font-size: 1.8rem; font-weight: 700; color: #a67c52; }
nav ul { list-style: none; display: flex; gap: 1.5rem; }
nav ul li a { text-decoration: none; color: #555; font-weight: 400; transition: color 0.3s, border-bottom 0.3s; }
nav ul li a:hover, nav ul li a.active { color: #a67c52; border-bottom: 2px solid #a67c52; }

/* HERO */
.hero { height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; }
.luxury-hero { background: url('images/home.png') center/cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.hero-text { position: relative; color: white; max-width: 700px; animation: fadeIn 2s ease; }
.hero-text h2 { font-size: 2.5rem; margin-bottom: 1rem; color: white; padding-top: 300px; }
    /* --- Calendario su telefono --- */
    @media (max-width: 768px) {
      /* calendario e galleria uno sotto l'altro, a tutta larghezza */
      section[style*="space-between"] {
        padding: 20px 12px !important;
      }
      section[style*="space-between"] > div {
        flex: 1 1 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
      }

      .calendar {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 10px 6px !important;
        box-sizing: border-box;
      }

      /* 7 colonne che si stringono con lo schermo */
      .calendar-grid {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        gap: 4px !important;
        width: 100% !important;
      }

      .calendar-grid .day {
        min-width: 0 !important;
        width: auto !important;
        padding: 8px 0 !important;
        font-size: 14px;
        text-align: center;
        box-sizing: border-box;
      }

      .calendar-grid .day .price {
        display: block;
        font-size: 11px !important;
        margin-top: 4px;
      }
    }
/* SCELTA CASETTE */
.casette { display: flex; justify-content: center; gap: 3rem; padding: 4rem 2rem; }
.casetta-card { background: #fafafa; border-radius: 20px; overflow: hidden; text-align: center; transition: transform 0.4s ease; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.casetta-card:hover { transform: translateY(-8px); }
.casetta-card img { width: 300px; height: 200px; object-fit: cover; display: block; }
.casetta-card h3 { padding: 1rem; color: #a67c52; }

/* GALLERIA (senza bordi, full width) */
.gallery { padding: 4rem 0; background: none; text-align: center; }
.gallery h2 { margin-bottom: 2rem; }
.slideshow-container { position: relative; max-width: 100%; margin: auto; }
.mySlides { display: none; }
.mySlides img { width: 100%; height: 600px; object-fit: cover; border-radius: 0; }
.prev, .next { cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); padding: 1rem; color: white; font-weight: bold; font-size: 2rem; background: rgba(0,0,0,0.3); border-radius: 50%; transition: background 0.3s; }
.prev:hover, .next:hover { background: rgba(0,0,0,0.6); }
.prev { left: 20px; } .next { right: 20px; }

/* SEPARATORE ELEGANTE */
.luxury-separator {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, #a67c52, transparent);
  margin: 3rem 0;
}

/* CASETTE - BLOCCO PIÙ LUSSUOSO */
.casetta-sections { display: flex; flex-direction: column; gap: 4rem; padding: 4rem 5%; }
.casetta-block { display: flex; gap: 3rem; align-items: center; }
.casetta-block:nth-child(even) { flex-direction: row-reverse; }
.casetta-block img { width: 50%; border-radius: 20px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.casetta-block .text { width: 50%; }
.casetta-block h2 { color: #a67c52; margin-bottom: 1rem; font-size: 1.8rem; }

/* EVENTI PIÙ LUXURY */
.eventi { display: flex; flex-direction: column; gap: 4rem; padding: 4rem 5%; }
.evento { display: flex; align-items: center; gap: 3rem; background: #fafafa; border-radius: 20px; padding: 2rem; box-shadow: 0 8px 25px rgba(0,0,0,0.05); }
.evento:nth-child(even) { flex-direction: row-reverse; }
.evento img { width: 40%; border-radius: 15px; object-fit: cover; }
.evento-info { width: 60%; }
.evento-info h2 { color: #a67c52; margin-bottom: 0.5rem; font-size: 1.6rem; }
.evento-info p { margin-bottom: 0.5rem; }
.evento img {
  width: 100%;
  max-width: 320px;  /* cambia questo valore per ingrandire o rimpicciolire */
  height: auto;      /* mantiene le proporzioni della locandina */
  flex-shrink: 0;
}

/* CONTATTI */
.contatti { display: flex; justify-content: center; gap: 2rem; padding: 4rem 2rem; }
.luxury-card { background: #fafafa; padding: 2rem; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); flex: 1; text-align: center; transition: transform 0.4s ease; }
.luxury-card:hover { transform: translateY(-10px); }
.luxury-card h2 { color: #a67c52; margin-bottom: 1rem; }

/* FOOTER */
footer { text-align: center; padding: 2rem; background: #f8f8f8; font-size: 0.9rem; }

/* ANIMAZIONI */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 2s ease; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .casette { flex-direction: column; align-items: center; }
  .casetta-block, .evento { flex-direction: column !important; }
  .casetta-block img, .evento img { width: 100%; }
  .casetta-block .text, .evento-info { width: 100%; }
}
.casetta-card a {
  color: #a67c52;          /* colore oro */
  text-decoration: none;   /* niente sottolineatura */
  font-weight: 600;
}

.casetta-card a:hover {
  color: #8b693f;          /* tono leggermente più scuro */
}

/* DROPDOWN */
.dropdown {
  position: relative;
}

.submenu {
  list-style: none;
  position: absolute;
  top: 35px;
  left: 0;
  background: white;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: none;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.submenu li a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
}

.submenu li a:hover {
  color: #a67c52;
}

/* quando aperto */
.submenu.open {
  display: flex;
}

/* freccia */
.arrow {
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.arrow.rotate {
  transform: rotate(180deg);
}
/* DROPDOWN MENU */
.dropdown {
  position: relative;
}

.submenu {
  list-style: none;
  position: absolute;
  top: 35px;
  left: 0;
  background: white;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: none;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.submenu li a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
}

.submenu li a:hover {
  color: #a67c52;
}

.submenu.open {
  display: flex;
}

/* FRECCIA MENU */
.arrow-menu {
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.arrow-menu.rotate {
  transform: rotate(180deg);
}
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.arrow-menu {
  cursor: pointer;
  transition: transform 0.3s ease;
  font-size: 14px;
}

.arrow-menu.rotate {
  transform: rotate(180deg);
}

.calendar {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.day {
  background: #f4f4f4;
  padding: 10px 5px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
}

.day:hover {
  background: #e6e6e6;
}

.day .price {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  color: #a67c52;
}

.booked {
  background: #ff4d4d;
  color: white;
  cursor: not-allowed;
}

.booked .price {
  color: white;
}

.contact-button {
  display: inline-block;
  padding: 12px 30px;
  background: #a67c52;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
}

.contact-button:hover {
  background: #8b693f;
}
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: 'Lato', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* fa sì che il contenuto prenda tutto lo spazio disponibile sopra il footer */
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.month-arrow {
  cursor: pointer;
  user-select: none;
  font-size: 22px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.06);
}

.month-arrow:hover {
  background: rgba(0,0,0,0.12);
}

.month-year-selectors {
  display: flex;
  gap: 10px;
  align-items: center;
}

.month-year-selectors select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15);
  font-family: inherit;
  background: #fff;
}

.day {
  cursor: pointer;
  border-radius: 10px;
  padding: 10px;
  position: relative;
  transition: transform 0.05s ease, background 0.15s ease;
}

.day:hover {
  transform: scale(1.01);
}

.day.booked {
  cursor: not-allowed;
  opacity: 0.45;
}

.day.selected {
  background: rgba(0,0,0,0.18);   /* “più scuro” */
}

.order-summary {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0,0,0,0.04);
  text-align: left;
}

.order-summary h3 {
  margin: 0 0 10px 0;
}

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0;
  font-size: 15px;
}

.order-row.total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.12);
  font-weight: 700;
}
.casetta-block {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.casetta-gallery{
  position:relative;
  width:550px;
  max-width:100%;
  flex-shrink:0;
}


.casetta-gallery img {
  width: 100%;
  border-radius: 12px;
  display: none;
}

.casetta-gallery img.active {
  display: block;
}

.casetta-gallery .mini-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 6px;
}
.casetta-gallery .mini-arrow {
  font-size: 18px;
  padding: 8px 12px;
}

.casetta-gallery .left { left: 5px; }
.casetta-gallery .right { right: 5px; }

/* --- Intestazione e menu su telefono --- */
@media (max-width: 768px) {
  .header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    padding: 14px 16px !important;
    box-sizing: border-box;
  }

  .header .logo {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  .header .dropdown {
    position: relative !important;
  }

  /* il menu si apre verso sinistra, dentro lo schermo */
  .header .submenu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    width: 220px !important;
    max-width: calc(100vw - 32px);
    margin-top: 10px !important;
    padding: 6px 0 !important;
    box-sizing: border-box;
    z-index: 1000;
  }

  .header .submenu li {
    display: block;
    width: 100%;
    margin: 0 !important;
  }

  .header .submenu a {
    display: block;
    padding: 12px 18px !important;
    white-space: nowrap;
    font-size: 16px;
  }

  /* freccetta più facile da toccare */
  .header .arrow-menu {
    display: inline-block;
    padding: 10px;
  }
}
