@import url(/css/area-riservata.css);

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

:root {
  --navy: #264367;
  --navy-mid: #295182;
  --copper: #d0986b;
  --sand: #ddcaa8;
  --ice: #a4c1d7;
  --cream: #f6ecdc;
  --glass-bg: rgba(38, 67, 103, 0.3);
  --glass-bg-lt: rgba(246, 236, 220, 0.12);
  --glass-border: rgba(164, 193, 215, 0.3);
  --glass-shine: rgba(255, 255, 255, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --blur: 20px;
  --blur-sm: 10px;
}

html {
  scroll-behavior: smooth;
  /* overflow-x va anche qui, non solo su body: su iOS Safari "overflow-x:
     hidden" sul solo body non basta a contenere elementi in bleed (margini
     negativi edge-to-edge, es. .mezzo-hero in dashboard.php) e lo scroll
     orizzontale/lo "sbandamento" del layout torna comunque. */
  overflow-x: hidden;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 400;
  background: var(--navy);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* ============================================================
   SIGNATURE
============================================================ */
.signature-link {
  cursor: pointer;
  transition: color 0.3s ease;
  color: var(--copper);
  text-decoration: none;
}

.signature-link:hover {
  color: var(--cream);
}

/* ============================================================
   BACKGROUND
============================================================ */
.card-fields-container {
  background-color: red !important;
}
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 60% -10%, #4a82b8 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 20% 30%, #295182 0%, transparent 50%),
    radial-gradient(ellipse 100% 100% at 80% 80%, #1a3050 0%, transparent 60%),
    linear-gradient(170deg, #1c3555 0%, #264367 40%, #1a2c45 100%);
  animation: skyShift 18s ease-in-out infinite alternate;
}
.bg-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 50% 40% at 75% 20%,
      rgba(208, 152, 107, 0.18) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 30% 20% at 25% 60%,
      rgba(164, 193, 215, 0.12) 0%,
      transparent 50%
    );
  animation: skyShift 12s ease-in-out infinite alternate-reverse;
}
@keyframes skyShift {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0.85;
    transform: scale(1.04) translateY(-1%);
  }
}

/* ============================================================
   LAYOUT WRAPPER
============================================================ */
.page-wrap {
  position: relative;
  z-index: 1;
}

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(22, 44, 75, 0.55);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--glass-border);
}
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 100%
  );
  pointer-events: none;
  border-radius: inherit;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  filter: brightness(200);
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--copper), var(--sand));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.5px;
  box-shadow: 0 2px 12px rgba(208, 152, 107, 0.35);
}
.logo-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--cream);
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-greeting {
  font-size: 15px;
  font-weight: 500;
  color: var(--sand);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 500;
  color: var(--sand);
  padding: 6px 14px;
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-link:hover {
  color: var(--cream);
  background: var(--glass-bg-lt);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  background: linear-gradient(135deg, var(--copper) 0%, var(--sand) 100%);
  border: none;
  border-radius: 9px;
  padding: 8px 18px;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
}
.nav-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
/* Variante ghost per azioni secondarie nella navbar (es. Esci): stesso
   ingombro di .nav-btn ma meno vistosa, non è la CTA principale della
   pagina. */
.nav-btn-logout {
  background: transparent;
  color: var(--sand);
  border: 1px solid var(--glass-border);
}
.nav-btn-logout:hover {
  color: var(--cream);
  border-color: var(--cream);
  background: var(--glass-bg-lt);
  opacity: 1;
  transform: none;
}
.nav-btn-logout:disabled {
  opacity: 0.6;
  cursor: default;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 500;
  color: var(--sand);
  padding: 7px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 9px;
  background: var(--glass-bg-lt);
  transition:
    background 0.2s,
    color 0.2s;
}
.nav-back:hover {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.08);
}
.nav-back svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb {
  padding: 20px 40px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(164, 193, 215, 0.72);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.breadcrumb a {
  color: rgba(164, 193, 215, 0.72);
  flex-shrink: 0;
}
.breadcrumb a:hover {
  color: var(--ice);
}
.breadcrumb span {
  color: var(--ice);
}
.breadcrumb span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  text-align: center;
}
.hero-eyebrow {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}
.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  line-height: 0.8;
  color: var(--cream);
  margin-bottom: 30px;
  max-width: 820px;
}
.hero-title em {
  font-style: italic;
  color: var(--sand);
}
.hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(221, 202, 168, 0.75);
  margin-bottom: 52px;
  max-width: 600px;
}

/* ============================================================
   BOOKING CARD
============================================================ */
.booking-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 40px 32px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset;
  overflow: hidden;
}
.booking-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    rgba(164, 193, 215, 0.3),
    rgba(255, 255, 255, 0.18),
    transparent
  );
  pointer-events: none;
}
.booking-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(
    ellipse,
    rgba(255, 255, 255, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  transform: rotate(-15deg);
}
.booking-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 13px 16px;
  background: rgba(220, 100, 100, 0.1);
  border: 1px solid rgba(220, 100, 100, 0.3);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  animation: booking-error-in 0.25s ease;
}

.booking-error i {
  color: var(--cream);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes booking-error-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.booking-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 24px;
}
.booking-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field-group label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(164, 193, 215, 0.8);
}
.flatpickr-min-nights-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  color: var(--copper);
  background: rgba(208, 152, 107, 0.14);
  border: 1px solid rgba(208, 152, 107, 0.3);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 8px;
}
.flatpickr-min-nights-hint.visible {
  display: flex;
}
.flatpickr-min-nights-hint::before {
  content: "\f05a";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 12px;
}
.field-group input[type="date"],
.date-input-wrap input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(164, 193, 215, 0.22);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  color-scheme: dark;
}
.field-group input[type="date"]:focus,
.date-input-wrap input:focus {
  border-color: rgba(164, 193, 215, 0.72);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(164, 193, 215, 0.12);
}

/* ============================================================
  DATE INPUT – wrapper con icona (calendario Flatpickr, vedi sotto)
============================================================ */
.date-input-wrap {
  position: relative;
}
.date-input-wrap input {
  padding-left: 42px;
  caret-color: transparent;
}
.date-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ice);
  font-size: 14px;
  pointer-events: none;
  transition: color 0.2s;
}
.date-input-wrap:focus-within .date-input-icon {
  color: var(--copper);
}

/* ============================================================
  FLATPICKR – tema custom coerente con l'estetica glass del sito
============================================================ */
.flatpickr-calendar {
  background: var(--navy);
  background: linear-gradient(
    180deg,
    rgba(38, 67, 103, 0.97),
    rgba(28, 50, 78, 0.97)
  );
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  font-family: "Plus Jakarta Sans", sans-serif;
  padding: 12px;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.flatpickr-calendar.open {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after {
  border-bottom-color: rgba(38, 67, 103, 0.97);
}
.flatpickr-months {
  padding: 4px 2px 12px;
}
.flatpickr-months .flatpickr-month {
  color: var(--cream);
  fill: var(--cream);
}
.flatpickr-current-month {
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: transparent;
  color: var(--cream);
}
.flatpickr-current-month .flatpickr-monthDropdown-months option {
  background: var(--navy);
  color: var(--cream);
}
.flatpickr-current-month input.cur-year {
  color: var(--cream);
  font-weight: 600;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  color: var(--ice);
  fill: var(--ice);
  border-radius: var(--radius-sm);
  transition:
    background 0.15s,
    fill 0.15s;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: rgba(255, 255, 255, 0.08);
  fill: var(--copper);
}
.flatpickr-weekdays {
  margin-bottom: 2px;
}
span.flatpickr-weekday {
  background: transparent;
  color: var(--ice);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
}
.flatpickr-days {
  border: none;
}
.dayContainer {
  border: none;
}
.flatpickr-day {
  color: var(--cream);
  border-radius: 999px;
  font-size: 14px;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(246, 236, 220, 0.25);
  cursor: not-allowed;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: rgba(246, 236, 220, 0.25);
}
.flatpickr-day:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--cream);
  transform: scale(1.05);
}
.flatpickr-day.today {
  border: 1px solid var(--copper);
}
.flatpickr-day.today:hover {
  background: var(--copper);
  color: var(--navy);
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: linear-gradient(
    135deg,
    var(--copper) 0%,
    #e8b07d 50%,
    var(--sand) 100%
  );
  border-color: transparent;
  color: var(--navy);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(208, 152, 107, 0.35);
}
.flatpickr-day.week.selected {
  border-radius: 999px;
}
.numInputWrapper span.arrowUp:after {
  border-bottom-color: var(--cream);
}
.numInputWrapper span.arrowDown:after {
  border-top-color: var(--cream);
}
.numInputWrapper:hover {
  background: transparent;
}

.booking-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(
    135deg,
    var(--copper) 0%,
    #e8b07d 50%,
    var(--sand) 100%
  );
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(208, 152, 107, 0.35);
}
.booking-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}
.booking-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(208, 152, 107, 0.45);
}
.booking-submit:hover::before {
  left: 100%;
}
.booking-submit:active {
  transform: translateY(0);
}

/* ============================================================
   RESULTS
============================================================ */

.breadcrumb-container {
  max-width: 100%;
  overflow: hidden;
}
.breadcrumb-edit-wrap {
  padding: 20px 40px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
}
.breadcrumb-period {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(164, 193, 215, 0.85);
  white-space: nowrap;
}
.breadcrumb-period i {
  font-size: 12px;
  opacity: 0.8;
}
@media (max-width: 640px) {
  .breadcrumb-container {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
  }

  .breadcrumb-edit-wrap {
    width: 100%;
    padding: 4px 20px 0;
    flex-direction: column;
  }
  .breadcrumb-period {
    font-size: 14px;
  }
  .breadcrumb-edit-wrap .results-period-edit {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 8px;
    margin-left: 0;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(208, 152, 107, 0.45);
    border-radius: var(--radius-sm);
    background: rgba(208, 152, 107, 0.08);
  }
  .results-period-edit-desk {
    display: none !important;
  }
}
.results-section {
  padding: 0 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
}
.results-header {
  text-align: center;
  padding: 80px 0 48px;
}
.results-period {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(164, 193, 215, 0.12);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ice);
  margin-bottom: 20px;
}
.results-period svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.results-period-edit {
  display: none;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--copper);
  border: 1px solid rgba(208, 152, 107, 0.3);
  border-radius: 50px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.results-period-edit:hover {
  background: rgba(208, 152, 107, 0.1);
  border-color: rgba(208, 152, 107, 0.5);
}
.results-period-edit-desk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--copper);
  border: 1px solid rgba(208, 152, 107, 0.3);
  border-radius: 50px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.results-period-edit-desk:hover {
  background: rgba(208, 152, 107, 0.1);
  border-color: rgba(208, 152, 107, 0.5);
}

.summary-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.results-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 8px;
}
.results-count {
  font-size: 16px;
  color: rgba(221, 202, 168, 0.78);
  font-weight: 300;
}
.camper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .camper-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .camper-grid {
    grid-template-columns: 1fr;
  }
  .results-section {
    padding: 0 16px 60px;
  }
  .results-header {
    padding: 40px 0 32px;
  }
  .results-period {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
  }
  .results-period .results-period-edit {
    display: flex;
    flex-basis: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 10px;
    padding: 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    border-color: rgba(208, 152, 107, 0.45);
  }
}

/* ============================================================
   CAMPER CARD
============================================================ */
.camper-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(28, 52, 88, 0.4);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
  animation: cardIn 0.5s ease both;
}
.camper-card:nth-child(1) {
  animation-delay: 0.05s;
}
.camper-card:nth-child(2) {
  animation-delay: 0.12s;
}
.camper-card:nth-child(3) {
  animation-delay: 0.19s;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.camper-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.14),
    transparent
  );
  pointer-events: none;
}
.camper-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.camper-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.camper-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(22, 40, 70, 0.7) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* ============================================================
   GALLERIA (condivisa)
============================================================ */
.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.gallery-slide.active {
  opacity: 1;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camper-card:hover .gallery-slide.active img {
  transform: scale(1.04);
  transition: transform 0.5s ease;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 30px;
  height: 30px;
  background: rgba(22, 40, 70, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(164, 193, 215, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.2s,
    background 0.2s;
}
.camper-img-wrap:hover .gallery-arrow {
  opacity: 1;
}
.gallery-arrow:hover {
  background: rgba(38, 67, 103, 0.8);
}
.gallery-arrow.prev {
  left: 10px;
}
.gallery-arrow.next {
  right: 10px;
}
.gallery-arrow svg {
  width: 12px;
  height: 12px;
  stroke: var(--sand);
  stroke-width: 2;
  fill: none;
}

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 5px;
}
.gallery-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(246, 236, 220, 0.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition:
    background 0.2s,
    transform 0.2s;
}
.gallery-dot.active {
  background: var(--cream);
  transform: scale(1.3);
}

.badge {
  position: absolute;
  z-index: 2;
  background: rgba(38, 67, 103, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--copper);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.promo-badge {
  top: 14px;
  left: 14px;
}

.camper-body {
  padding: 16px 18px;
  flex: 1;
}
.camper-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 4px;
}
.camper-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 18px;
  line-height: 1.15;
}

.camper-prices {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(164, 193, 215, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.price-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: space-between;
}
.price-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.price-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(164, 193, 215, 0.78);
}
.price-value {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1;
}
.price-value span {
  font-size: 17px;
  font-weight: 600;
  color: rgba(221, 202, 168, 0.85);
  margin-left: 2px;
}
.price-divider {
  width: 1px;
  height: 36px;
  background: rgba(164, 193, 215, 0.15);
  align-self: center;
}
.price-total .price-value {
  color: var(--copper);
}
.price-promo {
  align-items: center;
  gap: 5px;
  background: rgba(208, 152, 107, 0.15);
  margin-bottom: 6px;
}
.price-promo-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
  animation: promoPulse 2s ease-in-out infinite;
}
@keyframes promoPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.price-value.has-promo {
  position: relative;
}
.price-original {
  font-size: 16px;
  font-weight: 400;
  color: rgba(221, 202, 168, 0.78);
  text-decoration: line-through;
  margin-bottom: 2px;
  display: block;
}

/* ============================================================
   SPECS
============================================================ */
.camper-specs {
  display: flex;
  margin-bottom: 20px;
  border: 1px solid rgba(164, 193, 215, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.spec-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 8px;
  text-align: center;
  padding: 6px 2px;
  border-right: 1px solid rgba(164, 193, 215, 0.15);
}
.spec-item:last-child {
  border-right: none;
}
.spec-icon {
  font-size: 20px;
  color: rgba(164, 193, 215, 0.78);
  margin-bottom: 2px;
}
.spec-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(164, 193, 215, 0.78);
  display: block;
  margin-bottom: 3px;
}
.spec-value {
  font-size: 18px;
  font-weight: 500;
  color: var(--sand);
}
.spec-value--dual {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}
.spec-value--dual em {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: rgba(164, 193, 215, 0.72);
  margin-left: 4px;
}

/* ============================================================
   ACCORDION
============================================================ */
.accordion {
  border: 1px solid rgba(164, 193, 215, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}
.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ice);
  transition: background 0.2s;
}
.accordion-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
}
.accordion-toggle .ti {
  margin-right: 7px;
  opacity: 0.8;
  font-size: 15px;
}
.accordion-icon {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(164, 193, 215, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform 0.3s,
    background 0.2s;
}
.accordion-icon svg {
  width: 10px;
  height: 10px;
  transition: transform 0.3s;
}
.accordion-toggle.active .accordion-icon {
  transform: rotate(180deg);
  background: rgba(164, 193, 215, 0.15);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-body.open {
  max-height: 400px;
}
.accordion-inner {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
}
.acc-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--cream);
}
.acc-item-label {
  min-width: 0;
  flex: 1;
}
.acc-item-priced {
  grid-column: 1 / -1;
}
.acc-item-priced + .acc-item-priced {
  border-top: 1px solid rgba(164, 193, 215, 0.12);
  padding-top: 7px;
}
.acc-item-price {
  font-weight: 600;
  color: var(--copper);
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ============================================================
   CTA CAMPER CARD
============================================================ */
.camper-footer {
  padding: 0 18px 22px;
}
.camper-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  background: linear-gradient(
    135deg,
    rgba(208, 152, 107, 0.2),
    rgba(221, 202, 168, 0.1)
  );
  border: 1px solid rgba(208, 152, 107, 0.35);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--copper);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.camper-cta:hover {
  background: linear-gradient(
    135deg,
    rgba(208, 152, 107, 0.35),
    rgba(221, 202, 168, 0.18)
  );
  border-color: rgba(208, 152, 107, 0.6);
  color: var(--sand);
}

/* ============================================================
   EMPTY STATE
============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  grid-column: 1/-1;
}
.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(164, 193, 215, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.empty-state h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--sand);
  margin-bottom: 10px;
}
.empty-state p {
  font-size: 14px;
  color: rgba(221, 202, 168, 0.72);
  font-weight: 300;
  margin-bottom: 24px;
}
.empty-state-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(
    135deg,
    var(--copper) 0%,
    #e8b07d 50%,
    var(--sand) 100%
  );
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(208, 152, 107, 0.35);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.empty-state-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(208, 152, 107, 0.45);
}

/* ============================================================
   ALT DATES PANEL – mezzi disponibili in altre date (stessa durata)
============================================================ */
.alt-dates-panel {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}
.alt-dates-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--sand);
  text-align: center;
  margin-bottom: 24px;
}
.alt-dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.alt-date-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg-lt);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.alt-date-card:hover {
  transform: translateY(-3px);
  border-color: rgba(164, 193, 215, 0.68);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.alt-date-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.alt-date-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.alt-date-info {
  padding: 14px 16px 16px;
}
.alt-date-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.8;
  margin-bottom: 2px;
}
.alt-date-model {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 10px;
}
.alt-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(208, 152, 107, 0.15);
  border: 1px solid rgba(208, 152, 107, 0.35);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sand);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: rgba(15, 28, 50, 0.55);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border-top: 1px solid var(--glass-border);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: auto 0 0 0;
}
.footer-copy {
  font-size: 14px;
  color: rgba(164, 193, 215, 0.68);
  font-weight: 300;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(164, 193, 215, 0.68);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--sand);
}

/* ============================================================
   GLASS SECTION
============================================================ */
.glass-section {
  background: rgba(28, 52, 88, 0.38);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.glass-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  pointer-events: none;
}
.section-header {
  padding: 22px 26px 0;
  margin-bottom: 18px;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 4px;
}
.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
}

/* ============================================================
   PRENOTA – LAYOUT
============================================================ */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px 80px;
  align-items: start;
}
.detail-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-gallery {
  position: relative;
  height: 360px;
  overflow: hidden;
}
.detail-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(22, 40, 70, 0.65) 100%
  );
  pointer-events: none;
  z-index: 1;
}
.detail-gallery .gallery-arrow {
  width: 38px;
  height: 38px;
  background: rgba(22, 40, 70, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(164, 193, 215, 0.28);
  opacity: 0;
}
.detail-gallery:hover .gallery-arrow {
  opacity: 1;
}
.detail-gallery .gallery-arrow.prev {
  left: 14px;
}
.detail-gallery .gallery-arrow.next {
  right: 14px;
}
.detail-gallery .gallery-arrow svg {
  width: 14px;
  height: 14px;
}
.detail-gallery .gallery-dots {
  bottom: 14px;
}
.detail-gallery .gallery-dot {
  width: 6px;
  height: 6px;
}

.camper-info {
  padding: 26px;
}
.ci-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 4px;
}
.ci-model {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 20px;
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(164, 193, 215, 0.15);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
}
.specs-grid .spec-item {
  padding: 12px 10px;
}
.ci-description {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(221, 202, 168, 0.75);
  padding-top: 20px;
  border-top: 1px solid rgba(164, 193, 215, 0.12);
}

.accordions-wrap {
  padding: 0 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accordions-wrap .accordion-toggle {
  padding: 13px 16px;
}

.extras-wrap {
  padding: 0 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.extra-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(164, 193, 215, 0.14);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.extra-item.selected {
  border-color: rgba(208, 152, 107, 0.45);
  background: rgba(208, 152, 107, 0.07);
}
.extra-icon {
  font-size: 22px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(164, 193, 215, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.extra-info {
  min-width: 0;
}
.extra-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 2px;
}
.extra-desc {
  font-size: 14px;
  color: rgba(164, 193, 215, 0.78);
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.extra-price {
  font-family: "Cormorant Garamond", serif;
  font-size: 25px;
  color: var(--copper);
  font-weight: 400;
  white-space: nowrap;
}
.extra-price small {
  font-size: 13.5px;
  color: rgba(221, 202, 168, 0.85);
  font-weight: 600;
}
.extra-controls {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(164, 193, 215, 0.1);
}
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(164, 193, 215, 0.22);
  color: var(--sand);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.qty-btn:hover:not(:disabled) {
  background: rgba(164, 193, 215, 0.15);
  border-color: rgba(164, 193, 215, 0.62);
}
.qty-btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.qty-display {
  font-size: 16px;
  font-weight: 500;
  color: var(--cream);
  min-width: 24px;
  text-align: center;
}
.qty-label {
  font-size: 14px;
  color: rgba(164, 193, 215, 0.72);
  font-weight: 300;
}
.qty-subtotal {
  margin-left: auto;
  font-size: 16px;
  font-weight: 500;
  color: var(--sand);
}
.insurance-select-btn {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(164, 193, 215, 0.22);
  color: var(--sand);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    border-color 0.2s;
  width: fit-content;
  flex-shrink: 0;
  line-height: 1;
}
.insurance-select-btn:hover {
  background: rgba(164, 193, 215, 0.15);
  border-color: rgba(164, 193, 215, 0.62);
}
.row-title {
  font-size: 16px;
}

/* ============================================================
   SUMMARY CARD (prenota)
============================================================ */
/* html/body hanno overflow-x:hidden (vedi sopra): questo li rende
   contenitori di scroll e "cattura" position:sticky, quindi il riepilogo
   non seguiva lo scroll. Nella pagina prenota si usa overflow-x:clip, che
   taglia allo stesso modo ma non crea un contenitore di scroll. */
html.has-sticky-summary,
html.has-sticky-summary body {
  overflow-x: clip;
}
.summary-col {
  position: sticky;
  top: 88px;
  /* Se la card è più alta dello schermo scorre da sola, così il pulsante
     in fondo resta raggiungibile mentre è sticky. */
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  scrollbar-width: none;
}
.summary-col::-webkit-scrollbar {
  display: none;
}
/* Barra totale sticky: solo mobile (vedi media query sotto), su desktop il
   riepilogo prezzi è già sticky per intero tramite .summary-col sopra. */
.mobile-sticky-total {
  display: none;
}
@media (max-width: 640px) {
  .mobile-sticky-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(20, 40, 72, 0.92);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }
  /* Nascosta quando il totale "vero" nel riepilogo è visibile a schermo
     (vedi IntersectionObserver in prenota.js): niente doppione a video. */
  .mobile-sticky-total.mst-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }
  .mst-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }
  .mst-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(164, 193, 215, 0.75);
  }
  .mst-val {
    font-family: "Cormorant Garamond", serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--cream);
  }
  .mobile-sticky-total .cta-book {
    width: auto;
    flex-shrink: 0;
    padding: 13px 22px;
  }
}
.summary-card {
  background: rgba(20, 40, 72, 0.5);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.13),
    transparent
  );
  pointer-events: none;
}
.summary-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(164, 193, 215, 0.12);
}
.summary-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 12px;
}
.date-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(164, 193, 215, 0.1);
  border: 1px solid rgba(164, 193, 215, 0.18);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--ice);
}
.date-pill svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.date-sep {
  color: rgba(164, 193, 215, 0.62);
}
.summary-body {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(164, 193, 215, 0.08);
  font-size: 16px;
  color: rgba(221, 202, 168, 0.7);
}
.price-row:last-child {
  border-bottom: none;
}
.price-row.extra-row {
  align-items: flex-start;
  color: rgba(164, 193, 215, 0.7);
}
.price-row.extra-row .pr-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}
.price-row.extra-row .pr-val {
  color: var(--ice);
  flex-shrink: 0;
  white-space: nowrap;
}
.price-row .pr-val {
  color: var(--sand);
  font-weight: 500;
}
.price-row.promo .pr-label,
.price-row.promo .pr-val {
  color: var(--copper);
}
.summary-divider {
  height: 1px;
  background: rgba(164, 193, 215, 0.15);
  margin: 6px 0;
}
.price-row.total {
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  padding-top: 14px;
  border-bottom: none;
}
.price-row.total .pr-val {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
}
.price-strike {
  text-decoration: line-through;
  opacity: 0.55;
  margin-right: 4px;
  font-weight: 400;
}
.extras-empty {
  font-size: 14px;
  color: rgba(164, 193, 215, 0.62);
  text-align: center;
  padding: 4px 0 8px;
  font-style: italic;
}
.summary-footer {
  padding: 0 24px 22px;
}
.cta-book {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px;
  background: linear-gradient(
    135deg,
    var(--copper) 0%,
    #e8b07d 50%,
    var(--sand) 100%
  );
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(208, 152, 107, 0.35);
  text-decoration: none;
}
/* Quando il bottone sta dentro la stessa card del lettore PDF (es.
   equipaggiamento-noleggio.php) invece che come elemento a sé fuori dalla
   card, gli serve un margine sopra: senza non ha lo spazio che ha altrove. */
.doc-reader + .cta-book {
  margin-top: 24px;
}
.cta-book::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}
.cta-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(208, 152, 107, 0.45);
}
.cta-book:hover::before {
  left: 100%;
}
.summary-note {
  text-align: center;
  padding: 12px 24px 0;
  font-size: 13px;
  color: rgba(164, 193, 215, 0.62);
  line-height: 1.5;
}

/* ============================================================
   PRENOTA – ACCESSORI EXTRA: toggle on/off
============================================================ */
.extra-toggle-item {
  grid-template-columns: auto 1fr auto auto;
  cursor: pointer;
}

.extra-toggle-controls {
  display: flex;
  align-items: center;
}

.extra-toggle-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.extra-toggle-switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 20px;
  background: rgba(164, 193, 215, 0.18);
  border: 1px solid rgba(164, 193, 215, 0.3);
  transition:
    background 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
}
.extra-toggle-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream);
  transition: transform 0.2s;
}

.extra-toggle-checkbox:checked + .extra-toggle-switch {
  background: var(--copper);
  border-color: var(--copper);
}
.extra-toggle-checkbox:checked + .extra-toggle-switch::before {
  transform: translateX(18px);
  background: var(--navy);
}
.extra-toggle-checkbox:focus-visible + .extra-toggle-switch {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* ============================================================
   CONFERMA – LAYOUT
============================================================ */
.confirm-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 40px 80px;
}

/* ============================================================
   CONFERMA – RIEPILOGO
============================================================ */
.recap-section {
  padding: 32px;
}
.recap-camper-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.recap-thumb {
  width: 84px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
}
.recap-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 5px;
}
.recap-model {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.2;
}
.recap-date-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(164, 193, 215, 0.08);
  border: 1px solid rgba(164, 193, 215, 0.18);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--sand);
}
.recap-date-bar .date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-weight: 500;
}
.recap-date-bar .notti-badge {
  font-size: 14px;
  font-weight: 600;
  color: var(--copper);
  background: rgba(208, 152, 107, 0.12);
  border: 1px solid rgba(208, 152, 107, 0.28);
  border-radius: 20px;
  padding: 3px 12px;
  white-space: nowrap;
}

/* ============================================================
   STATUS BADGE (es. stato prenotazione in dashboard)
============================================================ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8fbf8f;
  background: rgba(143, 191, 143, 0.12);
  border: 1px solid rgba(143, 191, 143, 0.3);
  border-radius: 20px;
  padding: 3px 12px;
  white-space: nowrap;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status-badge.is-pending {
  color: var(--copper);
  background: rgba(208, 152, 107, 0.12);
  border-color: rgba(208, 152, 107, 0.3);
}
.status-badge.is-cancelled {
  color: #c98a8a;
  background: rgba(201, 138, 138, 0.12);
  border-color: rgba(201, 138, 138, 0.3);
}
.recap-rows {
  display: flex;
  flex-direction: column;
}
.recap-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(164, 193, 215, 0.1);
  font-size: 16px;
  color: var(--cream);
  line-height: 1.4;
}
.recap-row:last-child {
  border-bottom: none;
}
.recap-row .rr-label {
  flex: 1;
}
.recap-row .rr-val {
  font-weight: 600;
  color: var(--sand);
  white-space: nowrap;
  margin-left: 16px;
}
.recap-row.total-row {
  color: var(--cream);
  font-size: 16px;
  font-weight: 600;
  border-top: 1px solid rgba(164, 193, 215, 0.2);
  padding-top: 16px;
  margin-top: 6px;
  border-bottom: none;
}
.recap-row.total-row .rr-val {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--cream);
}
.recap-divider {
  height: 1px;
  background: rgba(164, 193, 215, 0.12);
  margin: 6px 0;
}
.section-subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
  margin-top: 8px;
}
.age-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(208, 152, 107, 0.08);
  border: 1px solid rgba(208, 152, 107, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 16px;
  color: var(--cream);
  line-height: 1.6;
}
.age-notice i {
  color: var(--copper);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.various-footnote {
  padding: 16px 0 0;
  margin-top: 4px;
  border-top: 1px solid rgba(164, 193, 215, 0.1);
}
/* Diretto in .summary-card (prenota.php): non ha padding proprio come
   .recap-rows in conferma.php, quindi va aggiunto qui. */
.summary-card > .various-footnote {
  padding: 16px 24px 20px;
  margin-top: 0;
}
.various-footnote-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: rgba(164, 193, 215, 0.78);
  margin-bottom: 10px;
}
.various-footnote-head i {
  color: var(--copper);
  font-size: 14px;
  flex-shrink: 0;
}
.various-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.various-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: rgba(221, 202, 168, 0.65);
}
.various-list li strong {
  color: rgba(221, 202, 168, 0.85);
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   CONFERMA – FORM
============================================================ */
.form-col .glass-section {
  position: sticky;
  top: 88px;
}
/* Il widget PayPal (bottoni + eventuale banner "Pay in 3") ha testo nero
   pensato per uno sfondo chiaro: sulla glass-section blu scuro diventa
   illeggibile, quindi gli diamo un fondo chiaro dedicato. */
#paypal-button-container {
  background: #f5f6f8;
  border-radius: var(--radius-md);
  padding: 14px;
}
.form-inner {
  padding: 32px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group.full {
  grid-column: 1/-1;
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(164, 193, 215, 0.85);
}
.form-label .req {
  color: var(--copper);
  margin-left: 2px;
}

.form-input,
.form-select {
  background: rgba(10, 25, 55, 0.55);
  border: 1px solid rgba(164, 193, 215, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--cream);
  outline: none;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: dark;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-input::placeholder {
  color: rgba(164, 193, 215, 0.35);
}
.form-select {
  color: var(--sand);
}
.form-select option {
  background: #0e2040;
  color: var(--cream);
}
.form-input:focus,
.form-select:focus {
  border-color: rgba(208, 152, 107, 0.7);
  box-shadow: 0 0 0 3px rgba(208, 152, 107, 0.12);
  color: var(--cream);
}
.form-input.error,
.form-select.error {
  border-color: rgba(220, 100, 100, 0.65);
}

.form-error-msg {
  font-size: 13px;
  color: rgba(220, 130, 130, 0.9);
  display: none;
  line-height: 1.4;
}
.form-error-msg.visible {
  display: block;
}

.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(164, 193, 215, 0.55);
}

.privacy-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 8px;
}
.privacy-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--copper);
  cursor: pointer;
}
.privacy-row label {
  font-size: 14px;
  color: rgba(164, 193, 215, 0.7);
  line-height: 1.6;
  cursor: pointer;
}
.privacy-row a {
  color: var(--copper);
}
.privacy-row a:hover {
  text-decoration: underline;
}

/* ============================================================
   CONFERMA – ACCOUNT (REGISTRATI / ACCEDI)
============================================================ */
/* Contenitore del modulo account: notice + pannelli + link di switch,
   un unico ritmo verticale invece di margini sparsi sui singoli
   elementi. .auth-panel nascosto (display:none) non riceve gap. */
.account-block {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 22px;
}

/* Niente più glass-card intorno ai pannelli: il padding di .auth-panel
   (pensato per stare dentro .auth-card) va azzerato qui. */
.account-block .auth-panel {
  padding: 0;
}

/* Il pulsante di conferma pagamento resta l'unica CTA "piena" della
   pagina: Registrati/Accedi usano una variante secondaria, così la
   gerarchia visiva tra i due passaggi è chiara. Mantiene comunque un
   feedback hover pieno (lift + glow), solo più discreto del gold. */
.auth-submit-secondary {
  background: rgba(164, 193, 215, 0.08);
  border: 1px solid rgba(164, 193, 215, 0.3);
  color: var(--cream);
  box-shadow: none;
}
.auth-submit-secondary::before {
  display: none;
}
.auth-submit-secondary:hover {
  background: rgba(164, 193, 215, 0.16);
  border-color: rgba(208, 152, 107, 0.55);
  color: var(--sand);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 25, 55, 0.4);
}
.auth-submit-secondary:active {
  transform: translateY(0);
  box-shadow: none;
}
.auth-submit-secondary:disabled {
  transform: none;
  box-shadow: none;
}

.feedback-msg {
  margin-bottom: 0;
}

/* Wrapper dei campi registrazione/login: nascosto in blocco dopo il
   successo, deve ricreare lo stesso gap verticale di .auth-panel */
.auth-fields-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-switch-divider {
  margin: 22px 0;
}

/* ============================================================
   CONFERMA – SEPARATORE PAGAMENTO
============================================================ */
.payment-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(164, 193, 215, 0.78);
}
.payment-sep::before,
.payment-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(164, 193, 215, 0.15);
}

.card-error-msg {
  font-size: 14px;
  color: rgba(220, 130, 130, 0.9);
  margin-top: 4px;
  min-height: 16px;
  line-height: 1.4;
}

/* ============================================================
   CONFERMA – CTA
============================================================ */
.cta-confirm {
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  background: linear-gradient(
    135deg,
    var(--copper) 0%,
    #e8b07d 50%,
    var(--sand) 100%
  );
  color: var(--navy);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    opacity 0.2s;
  box-shadow: 0 4px 20px rgba(208, 152, 107, 0.35);
}
.cta-confirm::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}
.cta-confirm:hover:not(:disabled):not(.is-locked) {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(208, 152, 107, 0.45);
}
.cta-confirm:hover:not(:disabled):not(.is-locked)::before {
  left: 100%;
}
.cta-confirm:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}
/* Come :disabled ma senza l'attributo nativo: il bottone resta cliccabile
   (serve per mostrare all'utente perché non può ancora pagare, un bottone
   davvero disabled non riceve click e non darebbe nessun feedback). */
.cta-confirm.is-locked {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(38, 67, 103, 0.3);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
  flex-shrink: 0;
}
.cta-confirm.loading .spinner {
  display: block;
}
.cta-confirm.loading .btn-label {
  opacity: 0.7;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.cta-note {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(164, 193, 215, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.cta-note i {
  color: var(--copper);
}
.cta-note-locked {
  color: var(--copper);
  font-weight: 600;
}
.cta-note-locked i {
  color: var(--copper);
}
#ctaLockIcon {
  display: none;
}
.cta-confirm.is-locked #ctaLockIcon {
  display: inline;
}

/* ============================================================
   CONFERMA – OVERLAY SUCCESSO
============================================================ */
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 40, 70, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.success-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.success-card {
  background: rgba(28, 52, 88, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(24px);
  transition: transform 0.35s;
  position: relative;
}
.success-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  pointer-events: none;
}
.success-overlay.visible .success-card {
  transform: translateY(0);
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(208, 152, 107, 0.15);
  border: 1px solid rgba(208, 152, 107, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.success-icon i {
  font-size: 36px;
  color: var(--copper);
}
.success-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 12px;
}
.success-code {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--copper);
  background: rgba(208, 152, 107, 0.1);
  border: 1px solid rgba(208, 152, 107, 0.25);
  border-radius: 20px;
  padding: 4px 16px;
  margin: 0 0 16px;
}
.success-text {
  font-size: 14px;
  font-weight: 300;
  color: rgba(221, 202, 168, 0.75);
  line-height: 1.65;
}
.success-home {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 28px;
  background: linear-gradient(
    135deg,
    var(--copper) 0%,
    #e8b07d 50%,
    var(--sand) 100%
  );
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(208, 152, 107, 0.3);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.success-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(208, 152, 107, 0.4);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .navbar {
    padding: 0 20px;
  }
  .breadcrumb {
    padding: 16px 20px 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .breadcrumb::-webkit-scrollbar {
    display: none;
  }
  .breadcrumb a,
  .breadcrumb span {
    flex-shrink: 0;
  }
  .booking-layout {
    grid-template-columns: 1fr;
    padding: 20px 20px 60px;
  }
  .summary-col {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .confirm-layout {
    grid-template-columns: 1fr;
    padding: 16px 20px 60px;
  }
  .form-col .glass-section {
    position: static;
  }
  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .specs-grid .spec-item:nth-child(3) {
    border-right: none;
  }
  .specs-grid .spec-item:nth-child(-n + 3) {
    border-bottom: 1px solid rgba(164, 193, 215, 0.15);
  }
  .section-header {
    padding: 18px 18px 0;
  }
  .camper-info {
    padding: 18px;
  }
  .accordions-wrap {
    padding: 0 18px 18px;
  }
  .summary-head {
    padding: 18px 18px 14px;
  }
  .summary-body {
    padding: 14px 18px;
  }
  .summary-footer {
    padding: 0 18px 18px;
  }
  .recap-section {
    padding: 20px;
  }
  .form-inner {
    padding: 20px;
  }
}
@media (max-width: 640px) {
  .logo-text {
    font-size: 18px;
  }
  /* Spazio per non far finire il contenuto sotto la barra totale sticky. */
  .booking-layout {
    padding-bottom: 96px;
  }
  .booking-card {
    padding: 28px 22px 24px;
  }
  .booking-fields {
    grid-template-columns: 1fr;
  }
  .camper-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .navbar {
    padding: 0 16px;
  }
  .nav-logo img {
    width: 80px;
  }
  .nav-right {
    gap: 8px;
  }
  .nav-link {
    font-size: 14px;
    padding: 6px 10px;
  }
  .nav-greeting {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: 1;
  }
  .extras-wrap {
    padding: 0 18px 20px;
  }
  .extra-item {
    padding: 14px;
  }
  .extra-icon {
    display: none;
  }
  .extra-toggle-item {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "info info"
      "price toggle";
    row-gap: 10px;
  }
  .extra-info {
    grid-area: info;
  }
  .extra-desc {
    white-space: nowrap;
  }
  .extra-price {
    grid-area: price;
    justify-self: start;
    align-self: center;
    font-size: 20px;
  }
  .extra-toggle-controls {
    grid-area: toggle;
    justify-self: end;
    align-self: center;
  }
  .specs-grid .spec-item {
    padding: 10px 4px;
    gap: 5px;
  }
  .spec-label {
    font-size: 11px;
    letter-spacing: 0.6px;
  }
  .spec-value {
    font-size: 15px;
  }
  .spec-value--dual {
    font-size: 13px;
  }
}
@media (max-width: 520px) {
  .detail-gallery {
    height: 240px;
  }
  .ci-model {
    font-size: 28px;
  }
  .accordion-inner {
    grid-template-columns: 1fr;
  }
  .navbar .nav-link-text {
    display: none;
  }
  .navbar .nav-link {
    padding: 8px;
  }
  .navbar .nav-btn-logout {
    padding: 8px;
  }
}

/* ============================================================
   CONTACT FAB
============================================================ */
.contact-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.contact-fab-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(
    135deg,
    var(--copper) 0%,
    #e8b07d 50%,
    var(--sand) 100%
  );
  color: var(--navy);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(208, 152, 107, 0.4);
  transition:
    transform 0.25s,
    box-shadow 0.2s;
  position: relative;
}
.contact-fab-toggle:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 30px rgba(208, 152, 107, 0.5);
}

.contact-fab-icon-close {
  display: none;
  position: absolute;
}
.contact-fab.open .contact-fab-icon-open {
  display: none;
}
.contact-fab.open .contact-fab-icon-close {
  display: block;
}
.contact-fab.open .contact-fab-toggle {
  transform: rotate(90deg);
}
.contact-fab.open .contact-fab-toggle:hover {
  transform: rotate(90deg) translateY(-2px) scale(1.04);
}

.contact-fab-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition:
    opacity 0.2s,
    transform 0.25s;
}
.contact-fab.open .contact-fab-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.contact-fab-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(28, 52, 88, 0.85);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 8px 18px 8px 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition:
    border-color 0.2s,
    transform 0.15s;
}
.contact-fab-option:hover {
  transform: translateX(-3px);
  border-color: rgba(164, 193, 215, 0.68);
}

.contact-fab-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: rgba(164, 193, 215, 0.12);
  color: var(--ice);
}
.contact-fab-whatsapp .contact-fab-icon {
  background: rgba(120, 200, 150, 0.15);
  color: #7ed6a0;
}

.contact-fab-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--cream);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .contact-fab {
    right: 16px;
    bottom: 16px;
  }
  .contact-fab-toggle {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

/* ============================================================
   PAGINE LEGALI (termini, privacy)
============================================================ */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.legal-card {
  padding: 40px;
}
.legal-title {
  margin-bottom: 28px;
}
.legal-card h2 {
  font-size: 22px;
  color: var(--copper);
  margin: 36px 0 12px;
}
.legal-card h2:first-of-type {
  margin-top: 0;
}
.legal-card h3 {
  font-size: 17px;
  color: var(--sand);
  margin: 24px 0 8px;
}
.legal-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream);
  opacity: 0.9;
  margin-bottom: 12px;
}
.legal-card ul {
  margin: 0 0 12px 20px;
  padding: 0;
}
.legal-card li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--cream);
  opacity: 0.9;
  margin-bottom: 6px;
}
.legal-card strong {
  color: var(--ice);
}

@media (max-width: 640px) {
  .legal-card {
    padding: 24px;
  }
}



/* Video di presentazione del mezzo (prenota.php, sotto la galleria) */
.detail-video {
  padding: 18px 22px 0;
}
.detail-video-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--copper);
}
.detail-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(14, 26, 45, 0.6);
}
.detail-video-frame iframe,
.detail-video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
