/* ============================================================
   CALTUR B&B — Stylesheet principale
   Tema: Verde Palermo | Mobile-first | SEO-ready
   ============================================================ */

:root {
  --verde-scuro:   #1b4332;
  --verde-medio:   #2d6a4f;
  --verde-chiaro:  #52b788;
  --verde-soft:    #d8f3dc;
  --verde-accent:  #40916c;
  --bianco:        #ffffff;
  --grigio-chiaro: #f8f9fa;
  --grigio-testo:  #555e68;
  --testo-scuro:   #1a1a2e;
  --ombra:         0 4px 20px rgba(27,67,50,0.12);
  --ombra-hover:   0 8px 32px rgba(27,67,50,0.22);
  --raggio:        12px;
  --raggio-sm:     8px;
  --transizione:   all 0.28s cubic-bezier(.4,0,.2,1);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--testo-scuro);
  background: var(--bianco);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--verde-medio); text-decoration: none; transition: var(--transizione); }
a:hover { color: var(--verde-scuro); }

/* ---- TIPOGRAFIA ---- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--verde-scuro);
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-bottom: 1rem; }

/* ---- NAVBAR ---- */
.navbar {
  background: var(--verde-scuro);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--bianco);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.navbar-brand:hover { color: var(--verde-chiaro); }

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--verde-chiaro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.navbar-nav a {
  color: rgba(255,255,255,0.88);
  padding: 0.45rem 0.85rem;
  border-radius: var(--raggio-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transizione);
  white-space: nowrap;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: var(--verde-medio);
  color: var(--bianco);
}

.navbar-nav a.active {
  background: var(--verde-accent);
}

.navbar-cta {
  background: var(--verde-chiaro) !important;
  color: var(--verde-scuro) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.1rem !important;
}
.navbar-cta:hover {
  background: #74c69d !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bianco);
  border-radius: 2px;
  transition: var(--transizione);
}

/* Mobile nav */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .navbar-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--verde-scuro);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.15rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { padding: 0.65rem 0.9rem; font-size: 1rem; }
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- SECTION ---- */
.section {
  padding: 4rem 0;
}
.section-sm {
  padding: 2.5rem 0;
}
.section-verde {
  background: var(--verde-scuro);
  color: var(--bianco);
}
.section-verde h2,
.section-verde h3 { color: var(--verde-chiaro); }

.section-soft {
  background: var(--verde-soft);
}

.section-title {
  text-align: center;
  margin-bottom: 0.6rem;
}
.section-subtitle {
  text-align: center;
  color: var(--grigio-testo);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--verde-scuro) 0%, var(--verde-medio) 60%, var(--verde-accent) 100%);
  color: var(--bianco);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--bianco); margin-bottom: 1rem; }
.hero .hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 0.5rem;
}
.hero .hero-address {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.9);
  margin-top: 0.5rem;
}

/* ---- BOOKING WIDGET ---- */
.booking-section {
  background: var(--verde-soft);
  border-bottom: 3px solid var(--verde-chiaro);
  padding: 2rem 0;
}
.booking-section .booking-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--verde-scuro);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ---- CARDS ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bianco);
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  overflow: hidden;
  transition: var(--transizione);
  border: 1px solid rgba(82,183,136,0.12);
}
.card:hover {
  box-shadow: var(--ombra-hover);
  transform: translateY(-3px);
}

.card-icon-box {
  background: var(--verde-soft);
  padding: 2rem 1.5rem 1rem;
  text-align: center;
}
.card-icon-box .icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 0.3rem;
}

.card-body {
  padding: 1.2rem 1.5rem 1.5rem;
}
.card-body h3 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.card-body p  { font-size: 0.93rem; color: var(--grigio-testo); margin: 0; }

/* Camera card */
.room-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) {
  .room-card { grid-template-columns: 1fr; }
}

.room-card .room-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
}

.room-info { display: flex; flex-direction: column; justify-content: center; }
.room-info h2 { margin-bottom: 0.8rem; }
.room-info .room-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--verde-soft);
  color: var(--verde-scuro);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
}
.room-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.amenity-tag {
  background: var(--grigio-chiaro);
  color: var(--grigio-testo);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---- BOTTONI ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--raggio-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transizione);
  text-decoration: none;
}
.btn-primary {
  background: var(--verde-medio);
  color: var(--bianco);
  border-color: var(--verde-medio);
}
.btn-primary:hover {
  background: var(--verde-scuro);
  border-color: var(--verde-scuro);
  color: var(--bianco);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--verde-medio);
  border-color: var(--verde-medio);
}
.btn-outline:hover {
  background: var(--verde-medio);
  color: var(--bianco);
}
.btn-whatsapp {
  background: #25d366;
  color: var(--bianco);
  border-color: #25d366;
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: var(--bianco);
}
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }

/* ---- INFO STRIP ---- */
.info-strip {
  background: var(--verde-scuro);
  color: var(--bianco);
  padding: 0.85rem 0;
}
.info-strip-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.88);
}
.info-item strong { color: var(--verde-chiaro); }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(82,183,136,0.2);
  padding: 1.1rem 0;
}
.faq-question {
  font-weight: 700;
  color: var(--verde-scuro);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--verde-chiaro);
  flex-shrink: 0;
  transition: var(--transizione);
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  display: none;
  color: var(--grigio-testo);
  padding-top: 0.7rem;
  line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }

/* ---- MAPPA ---- */
.map-embed {
  width: 100%;
  height: 400px;
  border-radius: var(--raggio);
  border: none;
  box-shadow: var(--ombra);
}

/* ---- TABELLA INFO ---- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.info-table th,
.info-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(82,183,136,0.15);
  text-align: left;
}
.info-table th {
  background: var(--verde-soft);
  color: var(--verde-scuro);
  font-weight: 700;
  width: 38%;
}
.info-table td { color: var(--grigio-testo); }

/* ---- ALERT BOX ---- */
.alert {
  padding: 1rem 1.4rem;
  border-radius: var(--raggio-sm);
  margin-bottom: 1.2rem;
  border-left: 4px solid;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
}
.alert-info  { background: #e8f4fd; border-color: #3b82f6; }
.alert-verde { background: var(--verde-soft); border-color: var(--verde-chiaro); }
.alert-warn  { background: #fffbeb; border-color: #f59e0b; }

/* ---- CONTACT FORM ---- */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--verde-scuro);
  font-size: 0.92rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(82,183,136,0.3);
  border-radius: var(--raggio-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transizione);
  background: var(--bianco);
  color: var(--testo-scuro);
}
.form-control:focus {
  outline: none;
  border-color: var(--verde-chiaro);
  box-shadow: 0 0 0 3px rgba(82,183,136,0.18);
}
textarea.form-control { resize: vertical; min-height: 130px; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  font-size: 0.85rem;
  padding: 0.6rem 0;
  color: var(--grigio-testo);
}
.breadcrumb li + li::before { content: '/'; margin-right: 0.3rem; color: var(--verde-chiaro); }
.breadcrumb a { color: var(--verde-medio); }

/* ---- FOOTER ---- */
footer {
  background: var(--verde-scuro);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: var(--verde-chiaro);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: var(--transizione);
}
.footer-col ul a:hover { color: var(--verde-chiaro); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--verde-chiaro); }

/* ---- BADGE CIN ---- */
.cin-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.3rem 0.7rem;
  border-radius: var(--raggio-sm);
  font-size: 0.77rem;
  font-family: monospace;
  color: rgba(255,255,255,0.55);
  display: inline-block;
  margin-top: 0.4rem;
}

/* ---- UTILITY ---- */
.text-center { text-align: center; }
.text-verde  { color: var(--verde-medio); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-2 { gap: 1rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }

/* ---- RESPONSIVE GRID UTILITY ---- */
/* Usato per tutte le sezioni a 2 colonne — si impila su mobile */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ---- TABLE RESPONSIVE ---- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---- MOBILE ---- */
/* Previeni scroll orizzontale globale */
body { overflow-x: hidden; }

@media (max-width: 700px) {
  /* Griglia 2 colonne → 1 colonna */
  .grid-2col {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Sezioni — padding ridotto */
  .section    { padding: 2.5rem 0; }
  .section-sm { padding: 1.2rem 0; }

  /* Hero — padding ridotto */
  .hero { padding: 3rem 0 2.5rem; }

  /* Card servizi — minimo 160px per evitare eccesso */
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  /* Mappa — altezza ridotta */
  .map-embed { height: 240px; }

  /* Entity row (scheda B&B) — impila label e valore */
  .seo-entity .entity-row {
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 0.75rem;
  }
  .seo-entity .entity-label { min-width: unset; }

  /* Bottoni grandi — leggermente ridotti */
  .btn-lg { padding: 0.75rem 1.4rem; font-size: 0.97rem; }

  /* Alert box — riduci padding */
  .alert { padding: 0.8rem 1rem; font-size: 0.9rem; }

  /* Room gallery — altezza ridotta */
  .room-gallery-main { height: 230px; }

  /* Info strip — testo più piccolo per evitare overflow */
  .info-item { font-size: 0.82rem; }
}

/* ---- SCHEMA VISIBILE SEO ---- */
.seo-entity {
  background: var(--verde-soft);
  border: 1px solid rgba(82,183,136,0.3);
  border-radius: var(--raggio);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.seo-entity .entity-row {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
  font-size: 0.93rem;
}
.seo-entity .entity-label {
  font-weight: 700;
  color: var(--verde-scuro);
  min-width: 120px;
}
.seo-entity .entity-value { color: var(--grigio-testo); }

/* ---- ADMIN ---- */
.admin-body {
  background: var(--grigio-chiaro);
  min-height: 100vh;
}
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.admin-login-box {
  background: var(--bianco);
  border-radius: var(--raggio);
  box-shadow: var(--ombra-hover);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
}
.admin-header {
  background: var(--verde-scuro);
  color: var(--bianco);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-header h1 { color: var(--verde-chiaro); font-size: 1.1rem; }
.admin-sidebar {
  width: 240px;
  background: var(--bianco);
  border-right: 1px solid rgba(82,183,136,0.2);
  min-height: calc(100vh - 56px);
  padding: 1.5rem 0;
}
.admin-content { flex: 1; padding: 2rem; }
.admin-layout { display: flex; min-height: calc(100vh - 56px); }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.5rem;
  color: var(--grigio-testo);
  font-size: 0.93rem;
  cursor: pointer;
  transition: var(--transizione);
  border-left: 3px solid transparent;
}
.admin-nav-item:hover,
.admin-nav-item.active {
  background: var(--verde-soft);
  color: var(--verde-scuro);
  border-left-color: var(--verde-chiaro);
}
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-card {
  background: var(--bianco);
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-card h3 { margin-bottom: 1.2rem; color: var(--verde-scuro); border-bottom: 2px solid var(--verde-soft); padding-bottom: 0.6rem; }
.preview-img {
  width: 100%;
  max-width: 340px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--raggio-sm);
  border: 2px dashed rgba(82,183,136,0.4);
  margin-top: 0.5rem;
}
.badge-saved {
  display: inline-block;
  background: var(--verde-chiaro);
  color: var(--verde-scuro);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-left: 0.5rem;
  opacity: 0;
  transition: opacity 0.4s;
}
.badge-saved.show { opacity: 1; }

@media (max-width: 720px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; min-height: auto; border-right: none; border-bottom: 1px solid rgba(82,183,136,0.2); padding: 0.5rem 0; }
}

/* ============================================================
   LIGHTBOX + GALLERY — aggiunta v2
   ============================================================ */

/* Gallery wrapper */
.room-gallery { position: relative; }

.room-gallery-main-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  cursor: zoom-in;
  background: #111;
}

.room-gallery-main {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.room-gallery-main-wrap:hover .room-gallery-main {
  transform: scale(1.03);
}

/* Overlay "click per gallery" */
.room-gallery-main-wrap::after {
  content: '🔍 Scorri le foto';
  position: absolute;
  bottom: 0.8rem;
  right: 0.8rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* Thumbnails */
.room-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.room-thumbs .room-thumb {
  width: 72px;
  max-width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
  transition: var(--transizione);
  flex-shrink: 0;
  display: inline-block;
}
.room-thumbs .room-thumb:hover,
.room-thumbs .room-thumb.active {
  opacity: 1;
  border-color: var(--verde-chiaro);
  transform: translateY(-2px);
}

/* Counter badge */
.gallery-counter {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: block;
  transition: opacity 0.2s;
  user-select: none;
}

.lb-btn {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
  z-index: 100001;
}
.lb-btn:hover { background: rgba(255,255,255,0.25); }

.lb-close { top: 1rem;  right: 1rem; font-size: 1.3rem; }
.lb-prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); }

.lb-counter {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  background: rgba(0,0,0,0.4);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  z-index: 100001;
}

/* Nascondi frecce se singola foto */
.lightbox[data-total="1"] .lb-prev,
.lightbox[data-total="1"] .lb-next { display: none; }

/* Swipe hint mobile */
@media (max-width: 600px) {
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}

/* ============================================================
   AGGIORNAMENTI v2 vari
   ============================================================ */

/* Rimuovi frecce doppie dal room-card rtl */
.room-card-reverse { direction: ltr; }

/* ---- LANGUAGE SWITCHER ---- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 0.6rem;
}

.lang-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 2px 3px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
}

.lang-btn:hover {
  opacity: 1;
  transform: scale(1.15);
}

.lang-btn.active {
  opacity: 1;
  border-color: var(--verde-chiaro);
  background: rgba(255,255,255,0.12);
}

/* Mobile: riduci un po' le flag */
@media (max-width: 900px) {
  .lang-switcher {
    margin-left: 0;
    margin-top: 0.6rem;
    padding: 0.4rem 0.9rem;
    justify-content: flex-start;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
  }
  .lang-btn { font-size: 1.1rem; padding: 3px 4px; }
}

/* ============================================================
   EFFETTI GRAFICI v3 — aggiunti al file base
   ============================================================ */

/* ---- 1. HERO PARTICLES ---- */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  animation: float-up linear infinite;
  pointer-events: none;
}
@keyframes float-up {
  0%   { transform: translateY(0) scale(1);   opacity: .7; }
  100% { transform: translateY(-110vh) scale(1.4); opacity: 0; }
}

/* ---- 2. HERO BADGE ---- */
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: .35rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.92);
  margin-bottom: 1rem;
  letter-spacing: .04em;
  animation: hero-slide-up .8s cubic-bezier(.4,0,.2,1) both;
}
.hero-content h1 {
  animation: hero-slide-up .9s .1s cubic-bezier(.4,0,.2,1) both;
}
.hero-content .hero-subtitle {
  animation: hero-slide-up .9s .2s cubic-bezier(.4,0,.2,1) both;
}
.hero-content .hero-address {
  animation: hero-slide-up .9s .3s cubic-bezier(.4,0,.2,1) both;
}
.hero-cta-group {
  animation: hero-slide-up .9s .4s cubic-bezier(.4,0,.2,1) both;
}
@keyframes hero-slide-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 3. HERO WAVE BOTTOM ---- */
.hero-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}
.hero-wave-bottom svg { display: block; width: 100%; height: 50px; }

/* ---- 4. BUTTON GLOW ---- */
.btn-primary:hover, .btn-primary:focus {
  animation: btn-glow .5s ease forwards;
}
@keyframes btn-glow {
  to { box-shadow: 0 0 18px rgba(82,183,136,.65), 0 4px 16px rgba(0,0,0,.2); }
}

/* ---- 5. SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.cards-grid .card:nth-child(2) { transition-delay: .1s; }
.cards-grid .card:nth-child(3) { transition-delay: .2s; }
.cards-grid .card:nth-child(4) { transition-delay: .3s; }
.cards-grid .card:nth-child(5) { transition-delay: .4s; }
.cards-grid .card:nth-child(6) { transition-delay: .5s; }

/* ---- 6. CARD HOVER RING ---- */
.card {
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(45,106,79,.18), 0 0 0 2px var(--verde-chiaro);
}

/* ---- 7. NAVBAR GLASSMORPHISM ---- */
.navbar {
  transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
}
.navbar.scrolled {
  background: rgba(27,67,50,.88) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 24px rgba(0,0,0,.22);
}

/* ---- 8. HAMBURGER → X ---- */
.hamburger span {
  transition: all .3s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- 9. MOBILE NAV SMOOTH SLIDE ---- */
@media (max-width: 900px) {
  .navbar-nav {
    display: flex !important;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .4s;
    padding: 0 1.5rem;
    background: rgba(27,67,50,.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .navbar-nav.open {
    max-height: 420px;
    padding: .75rem 1.5rem;
  }
}

/* ---- 10. INFO STRIP DESKTOP / MOBILE ---- */
.info-strip-desktop {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}
.info-strip-mobile {
  display: none;
  overflow: hidden;
  position: relative;
}
.info-strip-mobile::before,
.info-strip-mobile::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 28px;
  z-index: 2;
  pointer-events: none;
}
.info-strip-mobile::before { left:0;  background: linear-gradient(to right, var(--verde-scuro), transparent); }
.info-strip-mobile::after  { right:0; background: linear-gradient(to left,  var(--verde-scuro), transparent); }

.info-ticker-track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  animation: info-ticker 22s linear infinite;
}
.info-ticker-track:hover { animation-play-state: paused; }
.info-ticker-track .info-item { white-space: nowrap; flex-shrink: 0; }

@keyframes info-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 700px) {
  .info-strip-desktop { display: none; }
  .info-strip-mobile  { display: block; }
}

/* ---- 11. FAQ SMOOTH ACCORDION ---- */
.faq-answer {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.4,0,.2,1);
  padding: 0;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--verde-chiaro);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

/* ---- 12. WHATSAPP FLOAT ---- */
.wa-float-btn {
  position: fixed;
  bottom: 160px;
  right: 18px;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 9998;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s;
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-float-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,.6);
  animation: none;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,.75), 0 0 0 8px rgba(37,211,102,.15); }
}

/* ---- 13. SCROLL-TO-TOP CON RING ---- */
.scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 18px;
  width: 46px;
  height: 46px;
  background: var(--verde-scuro);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9997;
  opacity: 0;
  transform: translateY(12px) scale(.85);
  transition: opacity .35s, transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.scroll-top-btn:hover { background: var(--verde-medio); }
.stt-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.stt-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,.18);
  stroke-width: 3;
}
.stt-ring-fill {
  fill: none;
  stroke: var(--verde-chiaro);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  transition: stroke-dashoffset .2s;
}
.stt-arrow {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
}

/* ---- 14. WAVE DIVIDERS ---- */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 50px;
}

/* ---- 15. WIDGET PRENOTAZIONE COMPATTO (solo mobile) ---- */
@media (max-width: 700px) {
  .kb-d, .kb-qt          { font-size: 16px !important; line-height: 18px !important; }
  .kb-mmmm, .kb-ddd      { font-size: 10px !important; }
  .kb-label              { font-size: 9px !important; padding: 2px 2px 2px 0 !important; }
  .kb-form-group         { padding: 4px 8px !important; }
  .kb-btn-submit         { font-size: 12px !important; padding: 6px 14px !important; min-height: 34px !important; height: auto !important; }
  .fold-container-button { height: 22px !important; min-height: 22px !important; }
  .kross-transparency    { padding: 0 !important; }
}

/* ---- 16. REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  .hero-particle,
  .wa-float-btn, .info-ticker-track { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .faq-answer { transition: none !important; }
}
