/* === Global === */
body {
  font-family: 'Poppins', sans-serif;
  color: #555454;
  background: #fff;
  margin: 0;
  line-height: 1.6;
  padding-top: 80px;
}

h1, h2, h3, h4, h5, h6, a, button {
  font-family: 'Poppins', sans-serif;
  color: #555454;
  margin: 0;
  line-height: 1.6;
}

/* === header logo === */
.menu-header {
  position: fixed;
  top: 0;
  left: 0;       /* aggiunto */
  width: 100%;   /* aggiunto */
  z-index: 1000;
  background: white;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.menu-header img {
  height: auto;             
  max-height: 60px;         
  width: auto;             
  max-width: 100%;         
  object-fit: contain;     
}


/* === Page container === */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: 50px;
}

/* === Headings === */
.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: left;
}

/* === GALLERY === */
.gallery {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 20px 0;
  border-radius: 12px;
}

.gallery-track-container {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
  align-items: center; 
  height: 400px;
}

.gallery-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease-in-out;
  height: 100%; 
}

.gallery-slide img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain; 
  border-radius: 12px;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 12px;
  border-radius: 50%;
  z-index: 10;
  user-select: none;
}

.gallery-btn.prev {
  left: 10px;
}
.gallery-btn.next {
  right: 10px;
}




.main-image img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* === Content === */
.description h3,
.description h4 {
  font-size: 1.1rem; 
  font-weight: 600;
  color: #444;
  margin-bottom: 4px;
  text-transform: none; 
}

.description p,
.description em {
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.6;
  color: #555;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}


/* === Booking card === */
.booking-card {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}



/* === Form === */
.booking-form {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.booking-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  margin-left: 5px;
  color: #444;
  font-weight: bold;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #3BD2C9;
  border-radius: 20px;
  font-size: 14px;
  background-color: white;
  color: black;
  box-sizing: border-box;
}

.booking-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#optional-request {
  height: 4em;
  resize: vertical;
  font-family: inherit;
  white-space: pre-wrap;
  overflow-y: auto;
  line-height: 1.4em;
}

/* buttons */
.check-btn,
.whatsapp-btn,
.email-btn {
  width: 100%;
  background-color: #3BD2C9;
  border: none;
  color: white;
  font-weight: bold;
  padding: 14px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.email-btn {
  background-color: #00bfa6;
}

.check-btn:hover,
.whatsapp-btn:hover,
.email-btn:hover {
  background-color: #18b7ac;
}

.check-btn:active {
  transform: scale(0.98);
}

/* === Contact icons === */
.icon-links {
  position: fixed;
  bottom: 0px;
  left: 0;
  width: 100%;
  background-color: #fffdfd;
  text-align: center;
  padding: 8px 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  height: 60px; /* imposta un’altezza fissa */
}

.icon-links img {
  height: 100%;
  max-height: 40px;
  width: auto;
  vertical-align: middle;
}

/* === Responsive === */
@media (max-width: 600px) {
  body {
    padding: 12px;
  }

  .container {
    padding: 0 12px;
    max-width: 100%;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .booking-form {
    padding: 15px;
  }
}


/* === Pickaday Theme  === */

/* Header: mese + anno */
.pika-title {
  background-color: white;
  color: #3BD2C9;
  border-radius: 12px 12px 0 0;
  padding: 8px 0;
  font-weight: 600;
  text-align: center;
}

/* Label mese/anno dropdown */
.pika-label {
  color: #32b3aa;
  font-weight: bold;
}

/* Frecce navigazione mese */
.pika-prev,
.pika-next {
  color: white;
  background-color: transparent;
  font-size: 18px;
}

/* Giorno selezionato */
.pika-single .is-selected .pika-button {
  background: #3BD2C9;
  color: white;
  border-radius: 8px;
}

/* Giorno attivo (oggi) */
.pika-single .is-today .pika-button {
  color: #3BD2C9;
  font-weight: bold;
  border-bottom: 2px solid #3BD2C9;
}

/* Disabilita hover su mobile (facoltativo: safe per mobile-first) */
.pika-button:hover {
  background: #3BD2C9;
  color: white;
}

.footer {
  position: fixed;
  bottom: 10px;
  left: 0;
  width: 100%;
  background-color: #fffdfd;
  text-align: center;
  padding: 8px 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  height: 60px; /* imposta un’altezza fissa */
}

.footer img {
  height: 100%;
  max-height: 40px;
  width: auto;
  vertical-align: middle;
}

/* === License css === */

#attribution-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  max-height: 400px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.license-btn {
  width: 100%;
  background-color: white;
  border: 2px solid #3BD2C9;
  color: #3BD2C9;
  font-weight: bold;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

/* ✅ Colori FISSI */
#toggle-attribution {
  background-color: white;
  color: #3BD2C9;
  border: 2px solid #3BD2C9;
}

/* ✅ Hover con contrasto visibile */
#toggle-attribution:hover {
  border: 2px solid #3BD2C9;
  background-color: white;
  color: #3BD2C9;
}

/* ✅ Testo flessibile senza allargare bottone */
#toggle-text {
  /* flex-grow: 1; */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ✅ Icona che ruota */
.arrow-down {
  transition: transform 0.3s ease;
}

.arrow-up {
  transform: rotate(180deg);
}

.inline-icon {
  height: 1em;
  vertical-align: -0.15em;
}

/* Box nascosto/stilizzato */
/* Box nascosto/stilizzato */
.info-box {
  background-color: #f2f2f2; /* grigio chiaro */
  padding: 15px 20px;
  border-radius: 20px; /* come i bottoni */
  margin-top: 10px;
  font-family: Arial, sans-serif;
  border: 2px solid #3BD2C9; /* aggiunge il bordo come i bottoni */
  box-sizing: border-box;
}

.info-box ul {
  list-style: none;
  padding-left: 0;
}

.info-box li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.info-box .icon {
  margin-right: 8px;
}

/* Nasconde il box all’avvio */
.hidden {
  display: none;
}

/* Bottone dettagli simile al tuo license-btn */
.toggle-btn {
  width: 100%;
  background-color: white;
  border: 2px solid #3BD2C9;
  color: #3BD2C9;
  font-weight: bold;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

/* Hover bottone */
.toggle-btn:hover {
  background-color: white;
  color: #3BD2C9;
  border: 2px solid #3BD2C9;
}

/* Icona che ruota */
.arrow-down {
  transition: transform 0.3s ease;
}

.arrow-up {
  transform: rotate(180deg);
}

/* Icona inline all’interno del testo */
.inline-icon {
  height: 1em;
  vertical-align: -0.15em;
}

#menu-toggle-btn {
  background-color: white;
  color: #3BD2C9;
  border: 2px solid #3BD2C9;
}

#menu-toggle-btn:hover {
  border: 2px solid #3BD2C9;
  background-color: white;
  color: #3BD2C9;
}

.map-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #3BD2C9;
  border-radius: 12px;
  padding: 15px;
  margin: 20px auto;
  max-width: 120px;
  background-color: white;
  transition: all 0.3s ease;
}

.map-icon:hover {
  background-color: #f0f9f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(59, 210, 201, 0.2);
}

.map-icon a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.map-icon img {
  width: 65px;
  height: auto;
}

.map-icon span {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: #3BD2C9;
  font-weight: bold;
  text-align: center;
}

/*FORM BTN*/

/* Contenitore bottone + campi opzionali */
.expandable-form {
  border: 1px solid #3BD2C9;
  border-radius: 20px;
  background-color: white;
  overflow: hidden;               /* ← evita la parte bianca che si allunga */
  transition: all 0.3s ease;
}

/* Bottone form con stile input field + layout button */
.btn-form {
  width: 100%;
  padding: 12px 20px;
  border: none;                   /* ← toglie il doppio bordo */
  background-color: #f0f0f0;
  color: #3BD2C9;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

.btn-form:hover {
  background-color: #f0f9f9;
}

/* Icona freccia che ruota */
.btn-form img {
  height: 1em;
  transition: transform 0.3s ease;
}

.btn-form .arrow-up {
  transform: rotate(180deg);
}

/* Campi opzionali (inizialmente chiusi) */
#optional-fields {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background-color: #f0f0f0;
  padding: 0 20px;                /* padding orizzontale fisso */
}

/* Quando aperto */
.expandable-form.open #optional-fields {
  max-height: 600px;              /* regola in base alla quantità di campi */
  padding: 20px;                  /* padding completo solo quando aperto */
}

/* Campi coerenti con booking-form */
#optional-fields input,
#optional-fields select,
#optional-fields textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #3BD2C9;
  border-radius: 20px;
  font-size: 14px;
  background-color: white;
  color: black;
  box-sizing: border-box;
}

#optional-fields textarea {
  height: 4em;
  resize: vertical;
  font-family: inherit;
  line-height: 1.4em;
}

  .grid-item {
    height: 100%; /* prende sempre tutta l'altezza disponibile dal .col */
    min-height: 160px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
    border: 3px solid #3BD2C9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* centram. verticale */
    text-align: center;
    transition: transform 0.15s ease-out, background-color 0.15s ease-out;
    touch-action: manipulation;
    will-change: transform;
  }

  .bott-grid-item {
    height: 100%; /* prende sempre tutta l'altezza disponibile dal .col */
    min-height: 50px;
    background-color: #f9f9f9;
    border-radius:  80px;
    padding: 20px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
    border: 3px solid #3BD2C9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* centram. verticale */
    text-align: center;
    transition: transform 0.15s ease-out, background-color 0.15s ease-out;
    touch-action: manipulation;
    will-change: transform;
  }
  
  
  /* touch mobile */
  .grid-item:active {
    transform: scale(0.97);
    background-color: #e6f9f8;
  }
  
  .grid-item:hover {
    transform: scale(1.03);
  }
  
  .grid-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }
  
  .grid-item h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .flip-card {
  perspective: 1000px;
  cursor: pointer;
  height: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.flip-card-front {
  background-color: #f9f9f9;
  z-index: 2;
  flex-direction: row-reverse; /* metti orizzontale */
  justify-content: flex-start; /* allinea da sinistra */
  text-align: center;
  padding: 0; /* togli padding per usare solo padding nei figli */
  gap: 20px;
}

.flip-card-front .img-left {
  width: 40%;
  height: 95%;
  object-fit: cover;
  border-top-left-radius: 28px;
  border-bottom-left-radius: 28px;
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
  /* rimuovi margini se ci sono */
  margin: 0;
  margin-right: 1%;
  margin-left: 5%;
}

.center-img {
  object-fit: cover;
  border-top-left-radius: 28px;
  border-bottom-left-radius: 28px;
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
  /* rimuovi margini se ci sono */
  margin: 0;
  margin-right: 1%;
}

.flip-card-front .text-box {
  width: 50%;
  height: 100%;
  padding: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.text-center {
  text-align: center;
}


/* ============================================
   === GUEST PRIVILEGES — Luxury Cards ===
   ============================================ */

.privilege-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0 24px;
}

/* Header decorativo */
.privilege-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.privilege-label-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #3BD2C9, transparent);
}

.privilege-label-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3BD2C9;
  white-space: nowrap;
}

/* Card luxury */
.privilege-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 115px;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: 16px;
  border: 1px solid #3BD2C9;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.07),
    0 0 0 1px rgba(59, 210, 201, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  isolation: isolate;
}

.privilege-card:hover {
  transform: translateY(-3px) scale(1.012);
  box-shadow:
    0 10px 28px rgba(59, 210, 201, 0.22),
    0 0 0 1.5px rgba(59, 210, 201, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Linea gold sinistra */
.privilege-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  height: auto;
  width: 3px;
  background: linear-gradient(180deg, #3BD2C9, #1aa8a0);
  border-radius: 16px 0 0 16px;
  z-index: 0;
}

/* Immagine */
.privilege-card-img-wrap {
  position: relative;
  z-index: 1;
  width: 38%;
  flex-shrink: 0;
  overflow: hidden;
}

.privilege-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.privilege-card:hover .privilege-card-img-wrap img {
  transform: scale(1.06);
}

/* Shine overlay sull'immagine */
.privilege-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}

/* Gradient di raccordo immagine → testo */
.privilege-card-img-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 32px;
  height: 100%;
  background: linear-gradient(90deg, transparent, #fff);
}

/* Body testo */
.privilege-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px 14px 16px;
  gap: 3px;
}

/* Tag categoria */
.privilege-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3BD2C9;
}

/* Titolo */
.privilege-title {
  font-size: 0.97rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

/* Sottotitolo */
.privilege-sub {
  font-size: 0.78rem;
  color: #888;
  margin: 0;
  line-height: 1.4;
}

/* CTA */
.privilege-cta {
  font-size: 0.72rem;
  font-weight: 600;
  color: #1aa8a0;
  letter-spacing: 0.05em;
  margin-top: 4px;
  transition: letter-spacing 0.2s ease;
}

.privilege-card:hover .privilege-cta {
  letter-spacing: 0.12em;
}

/* Divisore finale */
.privilege-divider {
  margin-top: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,210,201,0.3), transparent);
}