/* ============================================================
   Lido Torre Conca – Custom CSS
   Mobile-native premium beach resort feel
   ============================================================ */

/* ── Variables (Brand palette 2026) ────────────────────────── */
:root {
  /* Primary: azzurro mare */
  --ocean:       #3299cc;   /* brand primary */
  --ocean-light: #6bb8dd;
  --ocean-dark:  #1f6a91;   /* per sfondi profondi / testo */
  --ocean-deep:  #0f4263;   /* shadow/accento scuro */

  /* Secondary / accent: turchese
     - sand DEFAULT scurito a #2d8488 per garantire contrasto testo bianco/ocean
     - sand-light #b5e0e1 per highlight su sfondi scuri
     - sand-accent #6cc4c7 = turchese brand originale, per decori */
  --sand:          #2d8488;
  --sand-light:    #b5e0e1;
  --sand-dark:     #1d6062;
  --sand-accent:   #6cc4c7;

  /* Support */
  --wave:        #6cc4c7;
  --white:       #ffffff;
  --ink:         #0f2a3a;   /* testo scuro su fondo chiaro */

  --radius-xl:  1.25rem;
  --radius-2xl: 1.75rem;
  --shadow-soft:  0 4px 24px rgba(50,153,204,0.10);
  --shadow-card:  0 8px 32px rgba(50,153,204,0.14);
  --shadow-float: 0 16px 48px rgba(50,153,204,0.22);
}

/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

/* Prevent zoom on iOS form inputs */
input[type="date"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  font-size: 16px !important;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 99px; }

/* ── Navbar ──────────────────────────────────────────────────── */
#navbar {
  background: transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

#navbar.scrolled {
  background: rgba(15, 66, 99, 0.88);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  box-shadow: 0 8px 32px rgba(15, 66, 99, 0.25);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-link {
  position: relative;
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
background: #6cc4c7;
  border-radius: 99px;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.nav-active::after { width: 60%; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero-bg {
  position: relative;
  background:
    /* sun glow */
    radial-gradient(ellipse 900px 500px at 85% -5%, rgba(255,255,255,0.22) 0%, transparent 55%),
    /* cyan glow bottom-left */
    radial-gradient(ellipse 1100px 700px at 10% 120%, rgba(108,196,199,0.55) 0%, transparent 55%),
    /* main deep-sea gradient */
    linear-gradient(175deg, #0a2c42 0%, #0f4263 30%, #1f6a91 60%, #3299cc 100%);
}
.hero-bg::before {
  /* layered wave pattern for texture */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.75;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900' preserveAspectRatio='none'><defs><linearGradient id='w' x1='0' x2='0' y1='0' y2='1'><stop offset='0%' stop-color='%236cc4c7' stop-opacity='0.12'/><stop offset='100%' stop-color='%23ffffff' stop-opacity='0'/></linearGradient></defs><path d='M0 620 Q 200 560 400 620 T 800 620 T 1200 620 T 1600 620 L 1600 900 L 0 900 Z' fill='url(%23w)'/><path d='M0 680 Q 200 620 400 680 T 800 680 T 1200 680 T 1600 680 L 1600 900 L 0 900 Z' fill='rgba(50,153,204,0.18)'/><path d='M0 740 Q 200 680 400 740 T 800 740 T 1200 740 T 1600 740 L 1600 900 L 0 900 Z' fill='rgba(108,196,199,0.22)'/></svg>");
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  /* subtle noise/grain for cinematic depth */
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.25;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Animated bubbles */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  animation: rise linear infinite;
  pointer-events: none;
}

.bubble-0 { width:80px;  height:80px;  left:5%;   bottom:-80px;  animation-duration:12s; animation-delay:0s;   }
.bubble-1 { width:50px;  height:50px;  left:15%;  bottom:-50px;  animation-duration:9s;  animation-delay:1.5s; }
.bubble-2 { width:120px; height:120px; left:30%;  bottom:-120px; animation-duration:15s; animation-delay:3s;   }
.bubble-3 { width:35px;  height:35px;  left:48%;  bottom:-35px;  animation-duration:8s;  animation-delay:0.8s; }
.bubble-4 { width:90px;  height:90px;  left:60%;  bottom:-90px;  animation-duration:13s; animation-delay:2s;   }
.bubble-5 { width:55px;  height:55px;  left:72%;  bottom:-55px;  animation-duration:10s; animation-delay:4s;   }
.bubble-6 { width:70px;  height:70px;  left:83%;  bottom:-70px;  animation-duration:11s; animation-delay:1s;   }
.bubble-7 { width:40px;  height:40px;  left:92%;  bottom:-40px;  animation-duration:7s;  animation-delay:2.5s; }

@keyframes rise {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-110vh) scale(1.2); opacity: 0; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--ocean);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(12,35,64,0.25);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-primary:hover {
  background: var(--ocean-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(12,35,64,0.35);
}

.btn-primary:active { transform: scale(0.97); }

.btn-sand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--sand);
  color: white;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(45,132,136,0.35);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-sand:hover  { background: var(--sand-dark); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(45,132,136,0.45); }
.btn-sand:active { transform: scale(0.97); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--ocean);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: 2px solid var(--ocean);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover { background: var(--ocean); color: white; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ocean);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-xl);
  color: #1e293b;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--ocean-light);
  box-shadow: 0 0 0 3px rgba(30, 58, 96, 0.12);
}

.form-input.error { border-color: #ef4444; }
.form-input.success { border-color: #22c55e; }

textarea.form-input {
  height: auto;
  min-height: 6rem;
  padding: 0.875rem 1rem;
  resize: vertical;
}

select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230c2340' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

/* ── Cards ───────────────────────────────────────────────────── */
.quick-book-card {
  background: linear-gradient(135deg, #f8fafc 0%, var(--sand-light) 100%);
  border-radius: var(--radius-2xl);
}

.service-card {
  background: white;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.service-icon,
.service-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--sand-light) 0%, rgba(108,196,199,0.2) 100%);
  border-radius: 1rem;
  margin-bottom: 1.25rem;
  color: var(--ocean);
  font-size: 1.75rem;      /* fallback size if any emoji slips through */
  line-height: 1;
}

.service-icon svg,
.service-icon-wrap svg,
.service-icon-wrap [data-lucide] { width: 1.75rem; height: 1.75rem; }

.service-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ocean);
  margin-bottom: 0.75rem;
}

.service-text {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ocean-dark);
  transition: color 0.2s, gap 0.2s;
  border-bottom: 2px solid transparent;
}
.service-link:hover {
  color: var(--ocean-deep);
  gap: 0.5rem;
  border-bottom-color: var(--ocean);
}

/* ── Price cards ─────────────────────────────────────────────── */
.price-card {
  position: relative;
  background: white;
  border-radius: var(--radius-2xl);
  padding: 2rem 1.5rem;
  border: 1.5px solid #f1f5f9;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.price-card-featured {
  background: linear-gradient(145deg, var(--ocean) 0%, var(--ocean-light) 100%);
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(12,35,64,0.35);
  transform: translateY(-6px) scale(1.03);
}

.price-card-featured:hover { transform: translateY(-10px) scale(1.03); }

.price-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--sand);
  color: var(--ocean);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 99px;
}

.price-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Beach map ───────────────────────────────────────────────── */
.beach-map-preview { border: 1px solid #e2e8f0; }

.sea-top {
  background: linear-gradient(180deg, #0369a1 0%, #0ea5e9 100%);
  padding: 0.875rem;
}

.postazione,
.postazione-cell {
  aspect-ratio: 1;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  min-width: 0;
  background: #e5e7eb;
}

.postazione:hover:not(.occupata):not(.manutenzione),
.postazione-cell:hover:not(.occupata):not(.manutenzione) {
  transform: scale(1.15);
  z-index: 10;
}

.postazione.libera,        .postazione-cell.libera        { background: #4ade80; }
.postazione.occupata,      .postazione-cell.occupata      { background: #f87171; cursor: not-allowed; }
.postazione.manutenzione,  .postazione-cell.manutenzione  { background: #d1d5db; cursor: not-allowed; }
.postazione.in-attesa,     .postazione-cell.in-attesa     { background: #fb923c; }
.postazione.selezionata,   .postazione-cell.selezionata   {
  background: #4ade80;
  box-shadow: 0 0 0 3px #eab308;
  transform: scale(1.15);
  z-index: 10;
}

/* ── Rental cards ────────────────────────────────────────────── */
.rental-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-2xl);
  padding: 2rem 1.5rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.rental-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

/* ── CTA gradient ────────────────────────────────────────────── */
.cta-gradient {
  background: linear-gradient(135deg, var(--ocean) 0%, #0369a1 50%, #0a7ea4 100%);
}

/* ── Step indicator ──────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  flex: 1;
  max-width: 7rem;
  position: relative;
}

.step-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 2px solid #e2e8f0;
  background: white;
  color: #94a3b8;
  z-index: 1;
}

.step.active   .step-circle { background: var(--ocean); color: white; border-color: var(--ocean); }
.step.done     .step-circle { background: #22c55e; color: white; border-color: #22c55e; }

.step-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  text-align: center;
  line-height: 1.2;
}

.step.active .step-label { color: #22c55e; }
.step.done   .step-label { color: #22c55e; }

.step-connector,
.step-line {
  height: 2px;
  flex: 1;
  background: rgba(255,255,255,0.2);
  margin-top: -1rem;
  transition: background 0.3s ease;
  max-width: 3rem;
}

.step-connector.done,
.step-line.done { background: #22c55e; }

/* ── Stepper input ───────────────────────────────────────────── */
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.25rem;
  height: 3rem;
}

.qty-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: var(--ocean);
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.qty-btn:hover { background: var(--ocean-light); }
.qty-btn:disabled { background: #cbd5e1; cursor: not-allowed; }

.qty-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ocean);
  min-width: 1.5rem;
  text-align: center;
}

/* ── Toggle checkbox ─────────────────────────────────────────── */
.toggle {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.625rem;
  flex-shrink: 0;
}

.toggle input { display: none; }

.toggle-track {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle input:checked ~ .toggle-track { background: var(--ocean); }

.toggle-thumb {
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  pointer-events: none;
}

.toggle input:checked ~ .toggle-track .toggle-thumb {
  transform: translateX(1.375rem);
}

/* ── Toast notifications ─────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--ocean-dark);
  color: white;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-float);
  pointer-events: auto;
  animation: toast-in 0.3s ease;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast.success { background: #166534; }
.toast.error   { background: #991b1b; }
.toast.out     { animation: toast-out 0.3s ease forwards; }

@keyframes toast-in  { from { opacity:0; transform:translateY(1rem); } to { opacity:1; transform:translateY(0); } }
@keyframes toast-out { from { opacity:1; transform:translateY(0); }    to { opacity:0; transform:translateY(1rem); } }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay,
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open,
.bottom-sheet-overlay.open {
  opacity: 1;
  pointer-events: all;
}

@media (min-width: 640px) {
  .modal-overlay,
  .bottom-sheet-overlay { align-items: center; }
}

.modal-sheet,
.modal-box,
.bottom-sheet {
  background: white;
  border-radius: 1.75rem 1.75rem 1.25rem 1.25rem;
  width: 100%;
  max-width: 36rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  transform: translateY(2rem);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open .modal-sheet,
.modal-overlay.open .modal-box,
.bottom-sheet-overlay.open .bottom-sheet { transform: translateY(0); }

@media (min-width: 640px) {
  .modal-sheet,
  .modal-box,
  .bottom-sheet { border-radius: 1.75rem; }
}

/* Pull handle on mobile */
.modal-handle,
.bottom-sheet-handle {
  width: 2.5rem;
  height: 0.25rem;
  background: #cbd5e1;
  border-radius: 99px;
  margin: 0 auto 1rem;
}

/* ── Admin sidebar ───────────────────────────────────────────── */
.admin-sidebar {
  width: 260px;
  background: var(--ocean-dark);
  min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  z-index: 50;
  transition: transform 0.3s ease;
}

.admin-content {
  margin-left: 260px;
  min-height: 100vh;
}

@media (max-width: 1023px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 0.75rem;
  margin: 0.125rem 0.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.admin-nav-item:hover { background: rgba(255,255,255,0.08); color: white; }
.admin-nav-item.active { background: rgba(212,168,71,0.15); color: var(--sand); }
.admin-nav-item svg { flex-shrink: 0; }

/* ── Bottom nav (mobile admin) ───────────────────────────────── */
.admin-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ocean-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 50;
  padding: 0.5rem 0;
  padding-bottom: env(safe-area-inset-bottom, 0.5rem);
}

@media (max-width: 1023px) {
  .admin-bottom-nav { display: flex; }
  .admin-content { padding-bottom: 5rem; }
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.25rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.6875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.bottom-nav-item.active { color: var(--sand); }
.bottom-nav-item:hover  { color: rgba(255,255,255,0.85); }

/* ── KPI cards (admin) ───────────────────────────────────────── */
.kpi-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid #f1f5f9;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease;
}

.kpi-card:hover { box-shadow: var(--shadow-card); }

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ocean);
  line-height: 1.1;
}

.kpi-label {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ── POS Cassa ───────────────────────────────────────────────── */
.pos-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  height: calc(100vh - 4rem);
  overflow: hidden;
}

@media (max-width: 1023px) {
  .pos-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    height: auto;
    min-height: calc(100vh - 4rem);
  }
}

.pos-map-area {
  overflow-y: auto;
  padding: 1.5rem;
  background: #f8fafc;
}

.pos-receipt {
  background: white;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pos-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--ocean);
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1;
}

/* ── Status badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-green   { background: #dcfce7; color: #166534; }
.badge-red     { background: #fee2e2; color: #991b1b; }
.badge-yellow  { background: #fef9c3; color: #854d0e; }
.badge-gray    { background: #f1f5f9; color: #475569; }
.badge-blue    { background: #dbeafe; color: #1e40af; }

/* ── Table ───────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  padding: 0.875rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #374151;
  vertical-align: middle;
}

.data-table tr:hover td { background: #fafafa; }

/* ── Accordion ───────────────────────────────────────────────── */
.accordion-item { border-bottom: 1px solid #f1f5f9; }

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--ocean);
  font-size: 1rem;
  gap: 1rem;
  -webkit-tap-highlight-color: transparent;
}

.accordion-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--sand);
}

.accordion-item.open .accordion-icon { transform: rotate(180deg); }

.accordion-content {
  display: none;
  padding-bottom: 1.25rem;
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.accordion-item.open .accordion-content { display: block; }

/* ── Misc utilities ──────────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
}

.text-gradient {
  background: linear-gradient(135deg, var(--sand) 0%, #f0c969 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider-wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* Safe area for iPhone notch */
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 1rem); }

/* Loading spinner */
.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-ocean {
  border-color: rgba(12,35,64,0.2);
  border-top-color: var(--ocean);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Pulse dot */
.pulse-dot {
  width: 0.625rem;
  height: 0.625rem;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-ring 1.8s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ── Mobile bottom tab bar (app-native feel) ───────────────── */
.mobile-tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(15, 66, 99, 0.08);
  box-shadow: 0 -8px 28px rgba(15, 66, 99, 0.10);
  padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  gap: 0.25rem;
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.4rem 0.25rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
  border-radius: 0.75rem;
  min-height: 3.5rem;
}
.tabbar-item:active { transform: scale(0.94); }
.tabbar-item.is-active { color: var(--ocean-dark); }
.tabbar-item.is-active .tabbar-label { font-weight: 700; }

.tabbar-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* Centrale pulsante "Prenota" in stile FAB che sporge verso l'alto */
.tabbar-fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--ocean-dark);
  position: relative;
  transform: translateY(-14px);
  transition: transform 0.15s ease;
}
.tabbar-fab:active { transform: translateY(-14px) scale(0.94); }
.tabbar-fab-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-dark) 100%);
  color: white;
  border-radius: 9999px;
  box-shadow: 0 10px 24px rgba(31, 106, 145, 0.45), 0 0 0 4px rgba(255,255,255,0.9);
  margin-bottom: 0.25rem;
}
.tabbar-fab.is-active .tabbar-fab-inner {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-dark) 100%);
}

/* Hide footer spacer for safe-area on mobile: la tabbar occupa già quel posto */
@media (max-width: 767px) {
  body { padding-bottom: 0; }
}

/* ── Gallery / Slider (scroll-snap, no JS) ──────────────────── */
.gallery-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--sand) transparent;
}
.gallery-slider::-webkit-scrollbar { height: 6px; }
.gallery-slider::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 99px; }

.gallery-slide {
  flex: 0 0 min(85%, 720px);
  scroll-snap-align: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, var(--ocean-light) 0%, var(--sand) 100%);
  isolation: isolate;
}
.gallery-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.gallery-slide:hover img { transform: scale(1.04); }

/* Placeholder overlay (shown when no image src) */
.gallery-slide.placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, var(--ocean) 0%, var(--sand) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'><path d='M0 60 Q 50 40 100 60 T 200 60' stroke='white' stroke-width='1.5' fill='none' opacity='0.3'/><path d='M0 75 Q 50 55 100 75 T 200 75' stroke='white' stroke-width='1.2' fill='none' opacity='0.2'/></svg>");
  background-blend-mode: overlay;
  background-size: cover;
  z-index: -1;
}
.gallery-slide .slide-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(15,42,58,0.85) 0%, transparent 100%);
  color: white;
}
.gallery-slide .slide-caption h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.gallery-slide .slide-caption p {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0;
}

/* Section photo-placeholder (coherent brand-gradient slot) */
.photo-placeholder {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(108,196,199,0.5), transparent 60%),
    linear-gradient(135deg, var(--ocean) 0%, var(--ocean-dark) 100%);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  isolation: isolate;
}
.photo-placeholder::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 400' preserveAspectRatio='none'><path d='M0 250 Q 200 200 400 250 T 800 250' stroke='rgba(255,255,255,0.15)' stroke-width='2' fill='none'/><path d='M0 280 Q 200 230 400 280 T 800 280' stroke='rgba(108,196,199,0.25)' stroke-width='2' fill='none'/><path d='M0 310 Q 200 260 400 310 T 800 310' stroke='rgba(255,255,255,0.1)' stroke-width='1.5' fill='none'/></svg>");
  background-size: cover;
}

/* Print */
@media print {
  .no-print { display: none !important; }
  body { background: white; }
}

.text-sand {
--tw-text-opacity: 1;
color: rgba(108, 196, 199, 1) !important;
}


.text-sand-light{
	color:#ffffff !important;
}


.text-gray-400 {
color:#ffffff !important;
}
.text-gray-500 {
color:#ffffff !important;
}