/* ==========================================================
   WALTER NCC - Stile basato sul Brand Manual (v. 01.02.2024)
   e allineato al sito principale walterncc.com (header bianco con
   filetti beige, titoli Playfair Display, testo Rubik, bottoni maiuscoli).
   Colori: Blu #1E3845, Beige #C5A989. Mobile-first.
   ========================================================== */

:root {
  /* Brand */
  --blue: #1E3845;
  --blue-dark: #162A34;          /* blu scurito per footer / barre secondarie */
  --beige: #C5A989;
  --beige-20: #F3EEE7;           /* beige al 20%: sfondi chiari */
  --beige-10: #F9F6F3;           /* beige al 10%: sfondo pagina */
  --beige-text: #86694A;         /* beige scurito: testo/icone beige leggibili su chiaro */
  --white: #FFFFFF;

  /* Testo */
  --text: #1E3845;
  --text-muted: #5D6E76;

  /* Superfici */
  --bg: #F4F2EF;
  --card-bg: var(--white);
  --surface-inset: var(--beige-20);
  --border: rgba(30, 56, 69, 0.14);

  /* Stato */
  --danger: #B3413A;
  --success: #2F7D52;
  --warning: #9A700C;

  /* Forma */
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 6px 20px rgba(30, 56, 69, 0.08);
  --shadow-sm: 0 2px 8px rgba(30, 56, 69, 0.06);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-title: 'Playfair Display', Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body { overflow-x: clip; }

::selection { background: var(--beige); color: var(--blue); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: var(--blue); text-decoration: underline; text-decoration-color: var(--beige); text-underline-offset: 3px; transition: color 0.15s var(--ease); }
a:hover { color: var(--beige-text); }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.2;
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--blue);
}
.eyebrow {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--beige-text);
  margin-bottom: 0.6em;
}
p { margin: 0 0 1em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes priceBump { 0% { transform: scale(1); } 35% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* ---------- Logo ---------- */
.logo { display: block; height: auto; }

/* ---------- Header (come walterncc.com: bianco, filetti beige) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-top: 3px solid var(--beige);
  border-bottom: 2px solid var(--beige);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(30, 56, 69, 0.12); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
  position: relative;
}
.brand { display: inline-flex; align-items: center; text-decoration: none !important; }
.site-header .brand .logo { width: 112px; }
@media (min-width: 900px) { .site-header .brand .logo { width: 132px; } }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #000 !important;
  text-decoration: none !important;
  padding: 10px 14px;
  position: relative;
  transition: color 0.15s var(--ease);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--beige);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--beige-text) !important; }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }
.site-nav .nav-main-site { color: var(--text-muted) !important; font-size: 0.78rem; }
.site-nav .nav-main-site i { margin-right: 4px; font-size: 0.75em; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone {
  color: var(--blue) !important;
  background: var(--beige);
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.9rem;
  height: 42px;
  min-width: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.15s var(--ease);
}
.header-phone:hover { background: #B89B79; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--blue); transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .header-phone { padding: 0; }
  .header-phone-text { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    margin-top: 2px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 2px solid var(--beige);
    box-shadow: 0 14px 24px rgba(30, 56, 69, 0.12);
    padding: 6px 0 10px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav a { padding: 14px 20px; font-size: 0.95rem; }
  .site-nav a::after { left: 20px; right: auto; width: 32px; bottom: 8px; }
  .site-nav .nav-main-site { border-top: 1px solid var(--border); margin-top: 6px; font-size: 0.85rem; }
}

/* ---------- Main / Footer ---------- */
.main-content { padding: 32px 16px 56px; min-height: 60vh; }

.site-footer {
  background: var(--beige);
  color: var(--blue);
  padding: 40px 16px;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 48px;
}
.site-footer .logo { width: 150px; margin: 0 auto 18px; }
.site-footer p { margin: 0.25em 0; }
.footer-small { color: rgba(30, 56, 69, 0.8); font-size: 0.85rem; }
.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(30, 56, 69, 0.35);
  color: var(--blue) !important;
  font-size: 0.8rem;
  text-decoration: none !important;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.footer-admin-link:hover { background: var(--blue); color: var(--white) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease), opacity 0.15s var(--ease);
  font-family: var(--font);
}
.btn-primary { background: var(--blue); color: var(--white) !important; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-gold { background: var(--beige); color: var(--blue) !important; }
.btn-gold:hover { background: #B89B79; }
.btn-outline { background: transparent; border-color: var(--blue); color: var(--blue) !important; }
.btn-outline:hover { background: var(--blue); color: var(--white) !important; }
.btn-danger { background: rgba(179, 65, 58, 0.08); color: var(--danger) !important; border-color: rgba(179, 65, 58, 0.35); }
.btn-danger:hover { background: var(--danger); color: var(--white) !important; }
.btn-success { background: rgba(47, 125, 82, 0.08); color: var(--success) !important; border-color: rgba(47, 125, 82, 0.35); }
.btn-success:hover { background: var(--success); color: var(--white) !important; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--beige); outline-offset: 2px; }

/* ---------- Cards / Sections ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 22px;
}
@media (max-width: 480px) { .card { padding: 18px; } }

/* Hero a tutta larghezza con foto (come l'apertura di walterncc.com) */
.hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin: -32px calc(50% - 50vw) 0;
  min-height: 500px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--blue-dark);
}
.hero::before, .hero::after { content: ''; position: absolute; inset: 0; }
.hero::before {
  inset: -8% 0; /* margine per la parallasse */
  background: url('../img/hero.jpg') center / cover no-repeat;
  translate: 0 var(--hero-shift, 0px);
  animation: heroZoom 20s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: translate;
}
.hero::after {
  background: linear-gradient(90deg, rgba(22, 42, 52, 0.92) 0%, rgba(22, 42, 52, 0.7) 45%, rgba(22, 42, 52, 0.15) 100%);
}
@keyframes heroZoom { from { scale: 1.12; } to { scale: 1; } }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 56px 16px 110px; }
.hero-inner > * { animation: heroIn 0.9s var(--ease) both; }
.hero-inner > :nth-child(1) { animation-delay: 0.1s; }
.hero-inner > :nth-child(2) { animation-delay: 0.25s; }
.hero-inner > :nth-child(3) { animation-delay: 0.4s; }
.hero-inner > :nth-child(4) { animation-delay: 0.55s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-inner > * { max-width: 600px; }
.hero .eyebrow { color: var(--beige); }
.hero h1 { color: var(--white); font-size: 2.2rem; }
@media (min-width: 640px) { .hero h1 { font-size: 3.2rem; } }
.hero h1 span { color: var(--beige); font-style: italic; }
.hero p { color: rgba(255, 255, 255, 0.88); font-size: 1.05rem; margin-bottom: 1.6em; }
@media (max-width: 639px) {
  .hero { min-height: 0; }
  .hero::before { background-image: url('../img/hero-mobile.jpg'); background-position: center top; }
  .hero::after { background: linear-gradient(180deg, rgba(22, 42, 52, 0.55) 0%, rgba(22, 42, 52, 0.92) 70%); }
  .hero-inner { padding: 72px 16px 40px; }
}

/* Comparsa degli elementi durante lo scorrimento (attiva solo se JS e' disponibile) */
.js .reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

/* Come funziona (home) */
.how-it-works { text-align: center; margin: 56px auto 8px; max-width: 1000px; }
.how-it-works h2 { font-size: 2rem; margin-bottom: 28px; }
.how-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; grid-template-columns: 1fr; text-align: left; }
@media (min-width: 760px) { .how-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.how-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.how-steps .how-num {
  grid-row: span 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--beige);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
}
.how-steps strong { color: var(--blue); font-weight: 500; }
.how-steps li > span:last-child { color: var(--text-muted); font-size: 0.92rem; }
.how-note { color: var(--text-muted); font-size: 0.9rem; }
.how-note i { color: var(--beige-text); margin-right: 4px; }

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
  position: relative;
  z-index: 2;
  scroll-margin-top: 100px;
}
@media (min-width: 760px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -72px; }
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 22px;
  text-align: center;
  text-decoration: none !important;
  color: var(--text) !important;
  display: block;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.service-card { box-shadow: var(--shadow); }
.service-card:hover, .js .service-card.reveal.is-visible:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(30, 56, 69, 0.14); border-color: var(--beige); }
.service-card > i {
  font-size: 1.6rem;
  color: var(--blue);
  background: var(--beige-20);
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  margin-bottom: 16px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-card:hover > i { background: var(--blue); color: var(--beige); transform: scale(1.08); }
.service-card h3 { margin-bottom: 8px; font-size: 1.4rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 14px; }
.service-cta {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--beige-text);
}
.service-cta i { margin-left: 6px; transition: transform 0.25s var(--ease); }
.service-card:hover .service-cta i { transform: translateX(5px); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--blue);
}
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="number"], input[type="password"], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input::placeholder, textarea::placeholder { color: #95A2A8; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(197, 169, 137, 0.45);
}
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231E3845' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea { resize: vertical; min-height: 80px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .form-row.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.form-hint { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; font-weight: 400; }
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-group label {
  display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 0.95rem;
  background: var(--white); border: 1px solid var(--border);
  padding: 11px 16px; border-radius: var(--radius); cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
  flex: 1 1 auto; color: var(--text); margin-bottom: 0;
}
.radio-group label:has(input:checked) { border-color: var(--blue); background: var(--beige-20); font-weight: 500; }
.radio-group input { width: auto; accent-color: var(--blue); }

fieldset { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin: 0 0 18px; }
legend { font-weight: 700; font-style: italic; color: var(--blue); padding: 0 8px; font-size: 1rem; }

/* ---------- Pagine di prenotazione ---------- */
.page-head { max-width: 720px; margin: 8px 0 22px; }
.page-head h1 { font-size: 2rem; margin-bottom: 0.3em; }
@media (min-width: 640px) { .page-head h1 { font-size: 2.5rem; } }
.page-head p:last-child { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 0; }
.page-head .eyebrow i { margin-right: 6px; }

/* Passaggi 1-2-3 */
.booking-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  gap: 8px;
  counter-reset: none;
}
.booking-steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 3px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.booking-steps li.is-current { border-top-color: var(--beige); color: var(--blue); font-weight: 500; }
.booking-steps li.is-done { border-top-color: var(--blue); color: var(--blue); }
.booking-step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 500;
  background: var(--white);
  border: 1px solid var(--border);
}
.booking-steps li.is-current .booking-step-num { background: var(--beige); border-color: var(--beige); color: var(--blue); }
.booking-steps li.is-done .booking-step-num { background: var(--blue); border-color: var(--blue); color: var(--white); }
@media (max-width: 520px) {
  .booking-steps li:not(.is-current) .booking-step-label { display: none; }
  .booking-steps li { flex: 0 0 auto; }
  .booking-steps li.is-current { flex: 1; }
}

/* Form a sinistra, prezzo a destra (desktop) */
.booking-layout, .summary-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 960px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .summary-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
}

.form-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px;
  margin: 0 0 16px;
  min-width: 0;
}
@media (min-width: 640px) { .form-section { padding: 26px 28px; } }
.form-section > legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--blue);
}
.form-section > legend + * { clear: both; }
.section-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--beige-20);
  color: var(--beige-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
}
.optional { font-weight: 400; color: var(--text-muted); font-size: 0.85em; }
.optional::before { content: '· '; }

/* Campo con icona */
.input-icon { position: relative; }
.input-icon > i {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--beige-text);
  font-size: 0.95rem;
  pointer-events: none;
  width: 18px; text-align: center;
}
.input-icon > input, .input-icon > select { padding-left: 42px; }
input, select { min-height: 48px; }

/* Suggerimenti indirizzi */
.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 6px 0 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 32px rgba(30, 56, 69, 0.16);
  max-height: 320px;
  overflow-y: auto;
  animation: slideDown 0.2s var(--ease);
}
.suggest-group {
  padding: 8px 14px 4px;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.suggest-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  min-height: 48px;
}
.suggest-option > i { color: var(--beige-text); width: 18px; text-align: center; flex-shrink: 0; }
.suggest-option > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggest-option strong { font-weight: 500; color: var(--blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-option small { color: var(--text-muted); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-option:hover, .suggest-option.is-active { background: var(--beige-20); }
.suggest-tag {
  flex-shrink: 0;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--beige);
  color: var(--blue);
  padding: 2px 8px;
  border-radius: 99px;
}
.suggest-status { padding: 12px 14px; color: var(--text-muted); font-size: 0.9rem; }
.suggest-attrib { padding: 6px 14px; font-size: 0.68rem; color: var(--text-muted); border-top: 1px solid var(--border); margin-top: 6px; text-align: right; }

/* Mappa del percorso */
.route-map { margin: 4px 0 18px; animation: slideDown 0.35s var(--ease); }
.route-map-canvas {
  position: relative;
  z-index: 0; /* tiene i livelli della mappa sotto header, suggerimenti e barra prezzo */
  height: 240px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--beige-20);
}
@media (min-width: 640px) { .route-map-canvas { height: 300px; } }
.route-map-info { margin: 8px 0 0; font-size: 0.92rem; color: var(--blue); min-height: 1.4em; }
.route-map-info i { color: var(--beige-text); margin-right: 6px; }
.map-pin span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid var(--white);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
}
.map-pin-a span { background: var(--blue); color: var(--white); }
.map-pin-b span { background: var(--beige); color: var(--blue); }
.map-pin b { transform: rotate(45deg); font-weight: 700; }
.manual-km { margin-top: 4px; animation: slideDown 0.3s var(--ease); }

/* Contatore - / + */
.stepper { display: flex; align-items: stretch; max-width: 220px; }
.stepper input {
  text-align: center;
  border-radius: 0;
  border-left: none; border-right: none;
  font-weight: 500;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-btn {
  flex-shrink: 0;
  width: 48px;
  border: 1px solid var(--border);
  background: var(--beige-20);
  color: var(--blue);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s var(--ease);
}
.stepper-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stepper-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.stepper-btn:hover:not(:disabled) { background: var(--beige); }
.stepper-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* Schede di scelta (pacchetti orari) */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  cursor: pointer;
  margin: 0;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.choice-card:hover { border-color: var(--beige); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 12px; right: 12px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: transparent;
  font-size: 0.65rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s var(--ease);
}
.choice-card:has(input:checked) { border-color: var(--blue); background: var(--beige-10); }
.choice-card:has(input:checked)::after { background: var(--blue); border-color: var(--blue); color: var(--white); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--beige); outline-offset: 2px; }
.choice-title { font-family: var(--font-title); font-size: 1.25rem; font-weight: 600; color: var(--blue); }
.choice-price { font-size: 1.1rem; font-weight: 500; color: var(--beige-text); }
.choice-meta { font-size: 0.85rem; color: var(--text-muted); }

/* Sezione facoltativa richiudibile */
.more-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--blue);
}
.more-details > summary::-webkit-details-marker { display: none; }
.more-details > summary .optional { font-family: var(--font); font-size: 0.85rem; }
.more-details > summary .section-num i { transition: transform 0.25s var(--ease); font-size: 0.8rem; }
.more-details[open] > summary .section-num i { transform: rotate(45deg); }
.more-details-body { padding-top: 18px; }

/* Riquadro prezzo + pulsante */
.booking-aside { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 960px) { .booking-aside { position: sticky; top: 96px; } }
.booking-aside .price-box { margin: 0; }
.price-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.8; margin-bottom: 4px; }
.reassurance { list-style: none; margin: 4px 0 0; padding: 0; font-size: 0.88rem; color: var(--text-muted); }
.reassurance li { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.reassurance i { color: var(--beige-text); width: 16px; text-align: center; }

/* Mobile: prezzo e pulsante in una barra fissa in basso, sempre a portata di pollice */
@media (max-width: 959px) {
  .booking-aside {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 2px solid var(--beige);
    box-shadow: 0 -8px 24px rgba(30, 56, 69, 0.12);
  }
  .booking-aside .price-box {
    flex: 1;
    min-width: 0;
    background: transparent !important;
    color: var(--blue);
    padding: 0;
    text-align: left;
  }
  .booking-aside .price-box .price-label { font-size: 0.68rem; margin-bottom: 0; }
  .booking-aside .price-box .price-value { font-size: 1.45rem; color: var(--blue); white-space: nowrap; line-height: 1.2; }
  .booking-aside .price-box.is-empty .price-value { font-size: 1rem; }
  .booking-aside .price-breakdown, .booking-aside .reassurance { display: none; }
  .booking-aside .urgent-flag { margin-top: 2px; padding: 2px 8px; font-size: 0.7rem; }
  .booking-aside .btn { width: auto; flex-shrink: 0; padding: 13px 18px; }
  body:has(.booking-aside) .site-footer { padding-bottom: 110px; }
}
@media (max-width: 360px) {
  .booking-aside { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .booking-aside .price-box .price-value { font-size: 1.15rem; }
  .booking-aside .btn { padding: 12px 12px; letter-spacing: 0.04em; }
}

/* Micro-animazioni */
.btn-gold, .btn-primary { box-shadow: 0 0 0 rgba(30, 56, 69, 0); transition: background 0.15s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.btn-gold:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(30, 56, 69, 0.18); }
.btn-gold:active, .btn-primary:active { transform: none; box-shadow: none; }
.btn .fa-arrow-right { transition: transform 0.2s var(--ease); }
.btn:hover .fa-arrow-right { transform: translateX(4px); }
.choice-card:has(input:checked)::after { animation: popIn 0.3s var(--ease); }
@keyframes popIn { 0% { transform: scale(0.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.more-details[open] .more-details-body { animation: slideDown 0.35s var(--ease); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.booking-steps li.is-current .booking-step-num { animation: stepPulse 2.4s ease-in-out infinite; }
@keyframes stepPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(197, 169, 137, 0.55); } 50% { box-shadow: 0 0 0 7px rgba(197, 169, 137, 0); } }
.stepper input.bump { animation: priceBump 0.25s var(--ease); }
.thankyou-box > i { animation: popIn 0.6s var(--ease) 0.2s both; }

/* Riepilogo */
.summary-card h2, .contact-card h2 { font-size: 1.5rem; }
.summary-card .price-box { margin-bottom: 10px; }
.summary-edit { font-size: 0.9rem; }
.summary-edit i { margin-right: 4px; font-size: 0.85em; }
.narrow-card { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Price box ---------- */
.price-box {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-align: center;
  margin: 22px 0;
  transition: opacity 0.2s var(--ease);
}
.price-box.is-loading { opacity: 0.6; }
.price-box .price-value {
  font-size: 2.4rem;
  font-weight: 700;
  font-style: italic;
  color: var(--beige);
  display: inline-block;
}
.price-box .price-value.bump { animation: priceBump 0.35s var(--ease); }
.price-box .price-breakdown { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); margin-top: 8px; }
.price-box.is-empty { background: var(--beige-20); color: var(--blue); }
.price-box.is-empty .price-value { color: var(--text-muted); font-size: 1.15rem; font-weight: 400; font-style: normal; }
.price-box.is-empty .price-breakdown { color: var(--text-muted); }

.urgent-flag {
  display: inline-block;
  background: var(--danger);
  color: var(--white);
  padding: 5px 12px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 10px;
}

/* ---------- Summary / thank you ---------- */
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table td { padding: 12px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.summary-table td:first-child { font-weight: 500; color: var(--text-muted); width: 40%; font-size: 0.9rem; }

.thankyou-box { text-align: center; padding: 36px 16px; }
.thankyou-box i { font-size: 3.4rem; color: var(--success); margin-bottom: 18px; }
.booking-ref {
  display: inline-block;
  background: var(--beige-20);
  border: 2px dashed var(--beige);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin: 16px 0;
}

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.95rem; animation: fadeIn 0.3s var(--ease); }
.alert-error { background: rgba(179, 65, 58, 0.07); color: var(--danger); border: 1px solid rgba(179, 65, 58, 0.3); }
.alert-success { background: rgba(47, 125, 82, 0.07); color: var(--success); border: 1px solid rgba(47, 125, 82, 0.3); }
.alert-info { background: var(--beige-20); color: var(--blue); border: 1px solid var(--beige); }

/* ---------- Badges (status) ---------- */
.badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 0.76rem; font-weight: 500; }
.badge-pending { background: rgba(154, 112, 12, 0.1); color: var(--warning); border: 1px solid rgba(154, 112, 12, 0.3); }
.badge-confirmed { background: rgba(47, 125, 82, 0.1); color: var(--success); border: 1px solid rgba(47, 125, 82, 0.3); }
.badge-rejected { background: rgba(179, 65, 58, 0.1); color: var(--danger); border: 1px solid rgba(179, 65, 58, 0.3); }
.badge-paid { background: rgba(30, 56, 69, 0.08); color: var(--blue); border: 1px solid rgba(30, 56, 69, 0.3); }
.badge-urgent { background: var(--danger); color: var(--white); }

/* ==========================================================
   ADMIN
   ========================================================== */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-wrapper { display: flex; min-height: 100vh; flex-direction: column; }

.admin-topbar {
  background: var(--blue);
  color: var(--white);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-topbar .brand { gap: 12px; color: var(--white) !important; font-size: 0.9rem; }
.admin-topbar .brand .logo { width: 104px; }
.admin-topbar .brand-label { color: var(--beige); font-style: italic; font-weight: 500; }
.admin-topbar .admin-user { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.admin-topbar .admin-user a { color: var(--beige) !important; font-weight: 500; }

.admin-nav {
  background: var(--blue-dark);
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.admin-nav a {
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 13px 16px;
  font-size: 0.9rem;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.admin-nav a.active, .admin-nav a:hover { color: var(--white) !important; border-bottom-color: var(--beige); }

.admin-main { flex: 1; padding: 24px 16px 60px; max-width: 1300px; margin: 0 auto; width: 100%; }

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beige-20);
  padding: 16px;
}
.admin-login-card { max-width: 380px; width: 100%; }
.admin-login-card .logo { width: 190px; margin: 0 auto 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr; } }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--beige);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  text-align: center;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; font-style: italic; color: var(--blue); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.table-wrap { overflow-x: auto; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 600px; }
table.data-table th, table.data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
table.data-table th { background: var(--beige-20); color: var(--blue); font-weight: 500; font-size: 0.8rem; white-space: nowrap; }
table.data-table tr:hover td { background: rgba(197, 169, 137, 0.08); }
table.data-table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
table.data-table input[type="text"], table.data-table input[type="number"], table.data-table select {
  padding: 8px 10px; font-size: 0.85rem;
}
.toggle-label { display: none; }

/* Sotto i 780px le tabelle admin diventano card impilate (etichette da data-label). */
@media (max-width: 780px) {
  .table-wrap { overflow-x: visible; background: transparent; border: none; box-shadow: none; }
  table.data-table { min-width: 0; }
  table.data-table thead { display: none; }
  table.data-table, table.data-table tbody, table.data-table tr { display: block; width: 100%; }
  table.data-table tr:not(.detail-row) {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 6px 14px;
    margin-bottom: 14px;
  }
  table.data-table tr:hover td { background: transparent; }
  table.data-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-align: right;
  }
  table.data-table tr td:last-child { border-bottom: none; }
  table.data-table td[data-label]::before {
    content: attr(data-label);
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.78rem;
    flex-shrink: 0;
    text-align: left;
  }
  table.data-table td.js-toggle-cell { justify-content: flex-end; padding-top: 12px; }
  table.data-table td.js-toggle-cell .btn { width: auto; }
  .toggle-label { display: inline; }
  table.data-table td.actions, table.data-table td:has(> .actions) {
    flex-direction: column; align-items: stretch; gap: 8px; padding-top: 14px;
  }
  table.data-table td.actions::before, table.data-table td:has(> .actions)::before { text-align: left; }
  table.data-table .actions { justify-content: stretch; width: 100%; flex-direction: column; }
  table.data-table .actions form { width: 100%; }
  table.data-table .actions .btn { width: 100%; }
  table.data-table input[type="text"], table.data-table input[type="number"], table.data-table select {
    max-width: 60%; margin-left: auto;
  }
  .detail-row td { display: block; text-align: left; }
  .detail-row td::before { content: none; }
  .detail-row.open { border-radius: var(--radius-lg); margin: -8px 0 14px; }
  .detail-row.open td { border-radius: var(--radius-lg); }
}

.filters-bar { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; align-items: end; }
.filters-bar .form-group { margin-bottom: 0; min-width: 150px; }

.tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tabs a {
  padding: 11px 18px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted) !important;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.tabs a.active { color: var(--blue) !important; border-bottom-color: var(--beige); }
.tabs a:hover { color: var(--blue) !important; }

.detail-row { display: none; background: var(--beige-20); }
.detail-row.open { display: table-row; }
.detail-row.open td { animation: fadeIn 0.25s var(--ease); }
.detail-row td { padding: 18px !important; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
.detail-grid div { font-size: 0.9rem; color: var(--text); }
.detail-grid div strong { color: var(--blue); font-weight: 500; }

.section-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.on-request-tag { background: var(--beige); color: var(--blue); padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 500; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.hidden { display: none !important; }
.small { font-size: 0.85rem; }

/* ==========================================================
   RIFINITURE PREMIUM
   ========================================================== */
html { scroll-behavior: smooth; }
h1, h2, h3 { text-wrap: balance; }
.price-value, .choice-price, .stat-value { font-variant-numeric: tabular-nums; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #D8CBBB; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--beige); }

/* Entrata e uscita di pagina */
.js body { animation: pageIn 0.6s var(--ease) both; }
.js body.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* Header che si compatta scorrendo */
.header-inner { transition: padding 0.35s var(--ease); }
.site-header .brand .logo { transition: width 0.35s var(--ease); }
.site-header.is-scrolled .header-inner { padding-top: 6px; padding-bottom: 6px; }
@media (min-width: 900px) { .site-header.is-scrolled .brand .logo { width: 108px; } }

/* Scritta piccola con filetto beige che si disegna */
.eyebrow { display: flex; align-items: center; gap: 12px; }
.text-center .eyebrow, .how-it-works .eyebrow { justify-content: center; }
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
  transform-origin: left;
  animation: lineGrow 0.9s var(--ease) 0.3s both;
}
.page-head .eyebrow i { display: none; }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Titolo dell'apertura che emerge da una maschera */
.hero h1 { animation: maskUp 1.1s var(--ease) 0.25s both !important; }
@keyframes maskUp {
  from { clip-path: inset(0 0 100% 0); transform: translateY(40px); opacity: 0; }
  to { clip-path: inset(0 0 -20% 0); transform: none; opacity: 1; }
}
.hero h1 span { background: linear-gradient(90deg, var(--beige), #E3D2BD, var(--beige)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: goldSheen 6s ease-in-out 1.4s infinite; }
@keyframes goldSheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* Riflesso di luce sui pulsanti beige */
.btn-gold { position: relative; overflow: hidden; isolation: isolate; }
.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  z-index: -1;
  transition: left 0s;
}
.btn-gold:hover::after { left: 130%; transition: left 0.8s var(--ease); }

/* Schede dei servizi: filetto beige che cresce e anello sull'icona */
.service-card { position: relative; overflow: hidden; }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--beige);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card > i { box-shadow: 0 0 0 0 rgba(197, 169, 137, 0.5); }
.service-card:hover > i { animation: ring 1.2s var(--ease); }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(197, 169, 137, 0.55); } to { box-shadow: 0 0 0 16px rgba(197, 169, 137, 0); } }

/* Passi di "Come funziona": numero che si accende al passaggio */
.how-steps li { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease); }
.how-steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--beige); }
.how-steps .how-num { transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.how-steps li:hover .how-num { background: var(--beige); color: var(--blue); }

/* Moduli: campi che reagiscono, sezioni completate */
.input-icon > i { transition: color 0.2s var(--ease), transform 0.3s var(--ease); }
.input-icon:focus-within > i { color: var(--blue); transform: translateY(-50%) scale(1.12); }
.form-group:focus-within > label { color: var(--beige-text); }
label { transition: color 0.2s var(--ease); }
.form-section { transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.form-section:focus-within { border-color: rgba(197, 169, 137, 0.7); box-shadow: 0 10px 28px rgba(30, 56, 69, 0.08); }
.section-num { position: relative; transition: background 0.35s var(--ease), color 0.35s var(--ease); }
.form-section.is-complete > legend .section-num { background: var(--blue); color: transparent; }
.form-section.is-complete > legend .section-num::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--beige);
  font-size: 0.8rem;
  animation: popIn 0.4s var(--ease);
}

/* Passaggi 1-2-3: la barra del passo corrente si riempie */
.booking-steps li { position: relative; }
.booking-steps li.is-current::before {
  content: '';
  position: absolute;
  top: -3px; left: 0;
  height: 3px; width: 100%;
  background: var(--blue);
  transform-origin: left;
  animation: stepFill 1.2s var(--ease) 0.3s both;
}
@keyframes stepFill { from { transform: scaleX(0); } to { transform: scaleX(0.5); } }

/* Prezzo: riflesso mentre calcola */
.price-box { position: relative; overflow: hidden; }
.price-box.is-loading { opacity: 1; }
.price-box.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.14) 50%, transparent 80%);
  animation: sheen 1s linear infinite;
}
.price-box.is-empty.is-loading::after { background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.6) 50%, transparent 80%); }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Barra prezzo mobile: entra dal basso */
@media (max-width: 959px) {
  .booking-aside { animation: barUp 0.6s var(--ease) 0.4s both; }
  @keyframes barUp { from { transform: translateY(100%); } to { transform: none; } }
}

/* Conferma: spunta disegnata */
.check-draw { width: 84px; height: 84px; margin: 0 auto 18px; display: block; }
.check-draw circle { fill: none; stroke: var(--success); stroke-width: 3; stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 0.9s var(--ease) 0.2s forwards; }
.check-draw path { fill: none; stroke: var(--success); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.5s var(--ease) 0.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.booking-ref { animation: popIn 0.6s var(--ease) 1.1s both; }

#submit-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ==========================================================
   TOUR: catalogo a schede e pagina del singolo tour
   ========================================================== */
.tc-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 680px) { .tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1040px) { .tc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tc {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--text) !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tc:hover { transform: translateY(-5px); box-shadow: 0 22px 44px rgba(30, 56, 69, 0.15); }
.tc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blue); }
.tc-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.tc:hover .tc-media > img { transform: scale(1.06); }
.tc-placeholder, .td-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(197, 169, 137, 0.25), transparent 60%),
    linear-gradient(135deg, var(--blue) 0%, #2B4F60 100%);
}
.tc-placeholder img, .td-placeholder img { opacity: 0.85; height: auto; }
.tc-badge, .tc-duration {
  position: absolute;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 99px;
  font-size: 0.78rem; font-weight: 500;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tc-badge { top: 12px; left: 12px; background: var(--beige); color: var(--blue); }
.tc-badge i { font-size: 0.7rem; }
.tc-duration { bottom: 12px; left: 12px; background: rgba(22, 42, 52, 0.7); color: var(--white); }
.tc-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.tc-body h2 { font-size: 1.45rem; margin: 0 0 6px; }
.tc-body p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.tc-price { color: var(--text-muted); font-size: 0.9rem; }
.tc-price strong { font-family: var(--font-title); font-size: 1.25rem; color: var(--blue); font-weight: 600; }
.tc-go { font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--beige-text); }
.tc-go i { margin-left: 4px; transition: transform 0.25s var(--ease); }
.tc:hover .tc-go i { transform: translateX(5px); }

/* Pagina del tour */
.td { max-width: 960px; margin: 0 auto; }
.td-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.td-gallery { position: relative; border-radius: 20px; overflow: hidden; background: var(--blue); aspect-ratio: 4 / 3; margin: 0 -16px 24px; border-radius: 0; }
@media (min-width: 640px) { .td-gallery { margin: 0 0 28px; border-radius: 20px; aspect-ratio: 16 / 9; } }
.td-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.td-track::-webkit-scrollbar { display: none; }
.td-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; border: none; padding: 0; background: none; cursor: zoom-in; }
.td-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.9); color: var(--blue);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer; display: none; align-items: center; justify-content: center;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.td-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.06); }
.td-prev { left: 14px; }
.td-next { right: 14px; }
@media (hover: hover) and (min-width: 640px) { .td-arrow { display: flex; } }
.td-count { position: absolute; right: 12px; bottom: 12px; padding: 6px 11px; border-radius: 99px; background: rgba(22, 42, 52, 0.7); color: var(--white); font-size: 0.8rem; backdrop-filter: blur(6px); }
.td-count i { margin-right: 4px; }
.td-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 6px; }
.td-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transition: background 0.3s, width 0.3s var(--ease); }
.td-dots span.is-active { width: 20px; border-radius: 4px; background: var(--white); }

.td-head h1 { font-size: 2.2rem; margin-bottom: 12px; }
@media (min-width: 640px) { .td-head h1 { font-size: 2.8rem; } }
.td-facts { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.td-facts li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; background: var(--white); border: 1px solid var(--border); font-size: 0.88rem; color: var(--blue); }
.td-facts i { color: var(--beige-text); }
.td-lead { font-size: 1.15rem; line-height: 1.6; color: var(--text); margin-bottom: 20px; }
.td-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; background: var(--white); border: 1px solid var(--border); margin-bottom: 34px; }
.td-from { color: var(--text-muted); }
.td-from strong { font-family: var(--font-title); font-size: 1.5rem; color: var(--blue); font-weight: 600; margin: 0 2px; }

.td-section { margin-bottom: 36px; }
.td-section h2 { font-size: 1.6rem; margin-bottom: 14px; }
.td-text p { font-size: 1.02rem; line-height: 1.75; margin-bottom: 1em; }
.td-about.is-collapsed .td-text { max-height: 220px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.td-more { border: none; background: none; padding: 6px 0; font-family: var(--font); font-size: 0.95rem; font-weight: 500; color: var(--beige-text); cursor: pointer; }
.td-more i { margin-left: 4px; font-size: 0.8em; }

.td-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.td-timeline::before { content: ''; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--beige), rgba(197, 169, 137, 0.2)); }
.td-timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 22px 40px; }
.td-timeline li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--blue); box-sizing: border-box; }
.td-timeline li:last-child { padding-bottom: 0; }
.td-timeline li:last-child::before { background: var(--beige); border-color: var(--beige); }
.td-time { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; color: var(--beige-text); }
.td-step { font-size: 1.05rem; color: var(--blue); }

.td-incl { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .td-incl { grid-template-columns: 1fr 1fr; } }
.td-incl > div { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.td-incl h2 { font-size: 1.25rem; }
.td-list { list-style: none; margin: 0; padding: 0; }
.td-list li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; }
.td-list i { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; margin-top: 1px; }
.td-yes i { background: rgba(47, 125, 82, 0.12); color: var(--success); }
.td-no i { background: rgba(179, 65, 58, 0.1); color: var(--danger); }

.td-book { scroll-margin-top: 90px; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 10px; }
.td-book .page-head h2 { font-size: 2rem; }
.td-label { margin: 0 0 8px; font-size: 0.9rem; font-weight: 500; color: var(--blue); }
.td-cities { margin-bottom: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.td-durations { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.td-durations .choice-card[hidden] { display: none; }

/* Foto a schermo intero */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: none; background: #0B1418; color: var(--white); }
.lightbox::backdrop { background: #0B1418; }
.lightbox[open] { display: flex; animation: fadeIn 0.25s ease; }
.lightbox-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-track figure { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.lightbox-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.14); color: var(--white); font-size: 1.2rem; cursor: pointer; }
.lightbox-count { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.lightbox .td-arrow { background: rgba(255, 255, 255, 0.14); color: var(--white); }

/* ==========================================================
   PAGINA PERSONALE DELLA PRATICA
   ========================================================== */
.pr { max-width: 640px; margin: 0 auto; }
.pr-head { text-align: center; margin: 8px 0 22px; }
.pr-head .eyebrow { justify-content: center; }
.pr-head h1 { font-size: 2rem; margin: 0; }
@media (min-width: 640px) { .pr-head h1 { font-size: 2.5rem; } }

.pr-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.pr-steps::before { content: ''; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 2px; background: var(--border); }
.pr-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 0.75rem; color: var(--text-muted); line-height: 1.25; padding: 0 2px; }
.pr-dot {
  position: relative; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 2px solid var(--border);
  font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
}
.pr-steps li.is-done { color: var(--blue); }
.pr-steps li.is-done .pr-dot { background: var(--blue); border-color: var(--blue); color: var(--beige); }
.pr-steps li.is-current { color: var(--blue); font-weight: 500; }
.pr-steps li.is-current .pr-dot { background: var(--beige); border-color: var(--beige); color: var(--blue); animation: stepPulse 2.4s ease-in-out infinite; }

.pr-box { display: flex; gap: 16px; padding: 20px; border-radius: 18px; margin-bottom: 16px; animation: fadeInUp 0.6s var(--ease) both; }
.pr-box h2 { font-size: 1.35rem; margin: 0 0 6px; }
.pr-box p { margin: 0 0 10px; }
.pr-box-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.pr-hold { background: var(--blue); color: rgba(255, 255, 255, 0.88); }
.pr-hold h2 { color: var(--white); }
.pr-hold strong { color: var(--beige); }
.pr-hold .pr-box-icon { background: rgba(197, 169, 137, 0.18); color: var(--beige); }
.pr-hold .pr-note { color: rgba(255, 255, 255, 0.7); }
.pr-pay { background: var(--white); border: 2px solid var(--beige); box-shadow: 0 16px 36px rgba(30, 56, 69, 0.12); }
.pr-pay .pr-box-icon, .pr-done .pr-box-icon { background: rgba(47, 125, 82, 0.12); color: var(--success); }
.pr-done { background: var(--white); border: 1px solid var(--border); }
.pr-no { background: var(--white); border: 1px solid rgba(179, 65, 58, 0.3); }
.pr-no .pr-box-icon { background: rgba(179, 65, 58, 0.1); color: var(--danger); }
.pr-note { font-size: 0.88rem; color: var(--text-muted); }
.pr-paystate { padding: 10px 12px; border-radius: 10px; background: var(--beige-20); color: var(--blue); font-size: 0.92rem; }
.pr-paystate i { margin-right: 6px; color: var(--beige-text); }
.pr-paystate.is-bad { background: rgba(179, 65, 58, 0.07); color: var(--danger); }
.pr-paystate.is-bad i { color: var(--danger); }
.pr-note i { margin-right: 4px; }
.pr-amounts { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
.pr-amounts div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--beige-10); }
.pr-amounts span { font-size: 0.78rem; color: var(--text-muted); }
.pr-amounts strong { font-family: var(--font-title); font-size: 1.6rem; color: var(--blue); }
.pr-amounts div:first-child { background: var(--beige-20); }
.pr-bill { border: 0; border-radius: 0; padding: 16px 0 0; margin: 4px 0 14px; border-top: 1px solid var(--border); min-width: 0; scroll-margin-top: 96px; }
.pr-bill legend { float: left; width: 100%; padding: 0 0 12px; font-family: var(--font-title); font-style: normal; font-size: 1.15rem; font-weight: 600; color: var(--blue); }
.pr-bill legend + * { clear: both; }
.pr-bill [hidden] { display: none !important; }
.pr-bill .form-group { margin-bottom: 14px; }
.pr-bill .form-row .form-group { margin-bottom: 0; }
.pr-bill .form-row { margin-bottom: 14px; }
.pr-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: var(--beige-20); }
.pr-seg label { margin: 0; position: relative; cursor: pointer; }
.pr-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pr-seg span { display: block; padding: 10px; border-radius: 9px; text-align: center; font-weight: 500; color: var(--text-muted); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.pr-seg input:checked + span { background: var(--white); color: var(--blue); box-shadow: var(--shadow-sm); }
.pr-seg input:focus-visible + span { outline: 3px solid var(--beige); outline-offset: 1px; }
.pr-bill-hint { margin: -6px 0 14px; }
.pr-bill-errors { margin: 0 0 14px; }
.pr-bill-errors p { margin: 0 0 4px; font-size: 0.92rem; }
.pr-bill-errors p:last-child { margin: 0; }
@media (min-width: 420px) { .pr-bill-place { grid-template-columns: 7rem minmax(0, 1fr) 5.5rem; } .pr-bill-place:has(> [hidden]) { grid-template-columns: 7rem minmax(0, 1fr); } }
.pr-paybtn { min-height: 54px; font-size: 1.02rem; margin-bottom: 10px; text-transform: none; letter-spacing: 0.01em; display: flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 420px) { .pr-box { flex-direction: column; gap: 12px; padding: 18px; } }

.pr-card { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; }
.pr-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.pr-rows { margin: 0; }
.pr-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pr-rows > div:last-child { border-bottom: none; }
.pr-rows dt { color: var(--text-muted); font-size: 0.9rem; flex-shrink: 0; }
.pr-rows dt i { width: 18px; color: var(--beige-text); margin-right: 4px; text-align: center; }
.pr-rows dd { margin: 0; text-align: right; color: var(--blue); font-weight: 500; word-break: break-word; }
.pr-rows dd small { display: block; font-weight: 400; color: var(--text-muted); }

.pr-help { text-align: center; padding: 8px 0; }
.pr-help > p:first-child { margin-bottom: 10px; color: var(--text-muted); }
.pr-help-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pr-save { font-size: 0.85rem; color: var(--text-muted); }
.pr-head .check-draw { margin-bottom: 10px; }
