/* ==========================================================================
   Turismo Verde — Mockup dimostrativo
   Foglio unico condiviso. Zero dipendenze esterne.
   Palette: verdi CIA + neutri caldi. Tipografia: system-ui.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token e reset
   -------------------------------------------------------------------------- */
:root {
  --verde-900: #1b5e20;
  --verde-800: #20692a;
  --verde-700: #2e7d32;
  --verde-600: #388e3c;
  --accent: #66bb6a;
  --accent-soft: #e6f4e7;
  --verde-050: #f2f8f2;
  --cream: #faf7f1;
  --sand: #efe8da;
  --ink: #20301f;
  --ink-soft: #37472f;
  --muted: #5f705b;
  --line: #e3e7df;
  --white: #ffffff;
  --amber-bg: #f7ecd2;
  --amber-ink: #6b5320;
  --danger: #b03a2e;
  --danger-bg: #fbeae8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(27, 94, 32, 0.06), 0 10px 28px rgba(27, 94, 32, 0.08);
  --shadow-hover: 0 2px 4px rgba(27, 94, 32, 0.08), 0 16px 40px rgba(27, 94, 32, 0.14);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--verde-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--verde-900); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.015em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   2. Utility
   -------------------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.section { padding: 64px 0; }
.section-tint { background: var(--verde-050); }
.section-cream { background: var(--cream); }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--verde-700); margin-bottom: 8px;
}
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   3. Barra mockup (ogni pagina)
   -------------------------------------------------------------------------- */
.demo-bar {
  background: var(--amber-bg);
  color: var(--amber-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 6px 16px;
  border-bottom: 1px solid #e8dcbd;
}

/* --------------------------------------------------------------------------
   4. Header e navigazione
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand-leaf { color: var(--verde-700); flex: none; }
.brand-name {
  font-size: 1.28rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--verde-900);
}
.brand-payoff {
  display: block;
  font-size: 0.68rem; font-weight: 500; color: var(--muted);
  letter-spacing: 0.02em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 13px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600; font-size: 0.92rem;
}
.nav a:hover { background: var(--accent-soft); color: var(--verde-900); }
.nav a[aria-current="page"] { color: var(--verde-900); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-select {
  font: inherit; font-size: 0.85rem; font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--white);
  padding: 7px 8px;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px; cursor: pointer; color: var(--verde-900);
}

/* --------------------------------------------------------------------------
   5. Bottoni e badge
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--verde-700); color: var(--white); }
.btn-primary:hover { background: var(--verde-900); color: var(--white); }

.btn-outline {
  background: var(--white); color: var(--verde-800);
  border-color: var(--verde-700);
}
.btn-outline:hover { background: var(--verde-050); color: var(--verde-900); }

.btn-ghost { background: transparent; color: var(--verde-800); border-color: var(--line); }
.btn-ghost:hover { background: var(--verde-050); color: var(--verde-900); }

.btn-danger-ghost { background: transparent; color: var(--danger); border-color: #e5c6c2; }
.btn-danger-ghost:hover { background: var(--danger-bg); color: var(--danger); }

.btn-sm { padding: 8px 14px; font-size: 0.86rem; }
.btn-block { width: 100%; }

.badge-socio {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--verde-700); color: var(--white);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-socio svg { flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--verde-050); color: var(--verde-800);
  border: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.chip-sand { background: var(--cream); color: var(--ink-soft); }
.chip-ok { background: var(--accent-soft); color: var(--verde-900); border-color: #cde6cf; }
.chip-warn { background: var(--amber-bg); color: var(--amber-ink); border-color: #e8dcbd; }
.chip-off { background: #f1f1ef; color: var(--muted); }

.demo-tag {
  display: inline-block;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--amber-ink); background: var(--amber-bg);
  border: 1px solid #e8dcbd; border-radius: 5px;
  padding: 1px 6px; margin-left: 6px;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   6. Placeholder fotografici (SVG generati, zero asset esterni)
   -------------------------------------------------------------------------- */
.ph {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ph-card { aspect-ratio: 16 / 10; border-radius: var(--radius) var(--radius) 0 0; }
.ph-hero { min-height: 100%; }
.ph-thumb { aspect-ratio: 16 / 10; border-radius: var(--radius-sm); }

.ph-a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500' viewBox='0 0 800 500'%3E%3Crect width='800' height='500' fill='%23d8ecd9'/%3E%3Ccircle cx='620' cy='110' r='52' fill='%23ffd54f'/%3E%3Cpath d='M0 320 Q 200 240 400 300 T 800 280 V500 H0 Z' fill='%2366bb6a'/%3E%3Cpath d='M0 380 Q 220 320 460 370 T 800 350 V500 H0 Z' fill='%2343a047'/%3E%3Cpath d='M0 445 Q 260 405 520 438 T 800 425 V500 H0 Z' fill='%232e7d32'/%3E%3C/svg%3E"); }
.ph-b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500' viewBox='0 0 800 500'%3E%3Crect width='800' height='500' fill='%23fdf3d8'/%3E%3Ccircle cx='180' cy='120' r='56' fill='%23ffca28'/%3E%3Cpath d='M0 300 Q 240 250 480 300 T 800 285 V500 H0 Z' fill='%23d4b96a'/%3E%3Cpath d='M0 365 Q 220 320 460 362 T 800 348 V500 H0 Z' fill='%23b89b4e'/%3E%3Cpath d='M0 435 Q 260 400 520 432 T 800 420 V500 H0 Z' fill='%238f7a3a'/%3E%3C/svg%3E"); }
.ph-c { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500' viewBox='0 0 800 500'%3E%3Crect width='800' height='500' fill='%23eef3e2'/%3E%3Ccircle cx='400' cy='105' r='50' fill='%23ffe082'/%3E%3Cpath d='M0 315 Q 200 255 420 305 T 800 290 V500 H0 Z' fill='%239caf88'/%3E%3Cpath d='M0 375 Q 230 330 470 368 T 800 352 V500 H0 Z' fill='%237d8f69'/%3E%3Cpath d='M0 442 Q 260 408 520 438 T 800 428 V500 H0 Z' fill='%235c6e4a'/%3E%3C/svg%3E"); }
.ph-d { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500' viewBox='0 0 800 500'%3E%3Crect width='800' height='500' fill='%23ffe4c8'/%3E%3Ccircle cx='590' cy='130' r='60' fill='%23ff8a65'/%3E%3Cpath d='M0 310 Q 220 250 430 300 T 800 282 V500 H0 Z' fill='%237ba05b'/%3E%3Cpath d='M0 372 Q 230 325 465 365 T 800 350 V500 H0 Z' fill='%235b7f42'/%3E%3Cpath d='M0 440 Q 260 405 520 436 T 800 424 V500 H0 Z' fill='%233e5c2e'/%3E%3C/svg%3E"); }
.ph-e { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500' viewBox='0 0 800 500'%3E%3Crect width='800' height='500' fill='%23d7edf5'/%3E%3Ccircle cx='210' cy='115' r='52' fill='%23fff176'/%3E%3Cpath d='M0 305 Q 230 248 450 298 T 800 285 V500 H0 Z' fill='%235fa88f'/%3E%3Cpath d='M0 370 Q 225 322 465 363 T 800 350 V500 H0 Z' fill='%23438a72'/%3E%3Cpath d='M0 440 Q 260 405 520 435 T 800 422 V500 H0 Z' fill='%232f6b57'/%3E%3C/svg%3E"); }
.ph-f { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='500' viewBox='0 0 800 500'%3E%3Crect width='800' height='500' fill='%23e3ecef'/%3E%3Ccircle cx='640' cy='100' r='46' fill='%23ffe082'/%3E%3Cpath d='M0 290 L 220 170 L 420 265 L 610 160 L 800 260 V500 H0 Z' fill='%237e9c6d'/%3E%3Cpath d='M0 370 Q 230 325 470 362 T 800 348 V500 H0 Z' fill='%235e7d4f'/%3E%3Cpath d='M0 440 Q 260 405 520 435 T 800 424 V500 H0 Z' fill='%23415c37'/%3E%3C/svg%3E"); }

/* --------------------------------------------------------------------------
   7. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--verde-900) 0%, var(--verde-700) 55%, var(--verde-600) 100%);
  color: var(--white);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='420' viewBox='0 0 1200 420' preserveAspectRatio='none'%3E%3Cpath d='M0 260 Q 300 170 600 240 T 1200 210 V420 H0 Z' fill='%23ffffff' fill-opacity='0.06'/%3E%3Cpath d='M0 320 Q 320 250 640 310 T 1200 290 V420 H0 Z' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/svg%3E");
  background-size: cover; background-position: bottom;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 84px 0 96px; max-width: 820px; }
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.15rem; color: #e2f0e3; max-width: 560px; }

.hero-form {
  margin-top: 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr auto;
  gap: 12px;
  align-items: end;
}
.hero-form .field label { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   8. Form
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.field .hint { font-size: 0.76rem; color: var(--muted); }

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
  font: inherit; font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfd6cb;
  border-radius: 9px;
  padding: 10px 12px;
  width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--accent); }
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--verde-600);
}

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--verde-700); }

.form-ok {
  background: var(--accent-soft);
  border: 1px solid #cde6cf;
  border-radius: var(--radius);
  padding: 26px;
  color: var(--verde-900);
}
.form-ok h3 { color: var(--verde-900); }
.form-ok p { color: var(--ink-soft); margin-bottom: 0.4em; }

/* --------------------------------------------------------------------------
   9. Card
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.card-photo { position: relative; }
.card-photo .badge-socio { position: absolute; top: 12px; left: 12px; }
.card-photo .score {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--verde-900);
  font-size: 0.8rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
}

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.05rem; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--verde-700); }
.card-loc { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; color: var(--muted); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.price { font-size: 0.82rem; color: var(--muted); }
.price strong { font-size: 1.12rem; color: var(--verde-900); font-weight: 800; }

/* Card modalità (home, 3 modi) */
.mode-card { padding: 28px 26px; }
.mode-card .mode-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); color: var(--verde-700);
  display: grid; place-items: center; margin-bottom: 16px;
}
.mode-card p { color: var(--muted); font-size: 0.94rem; }
.mode-card .more { font-weight: 700; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   10. Catalogo
   -------------------------------------------------------------------------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  position: sticky; top: 92px;
}
.filters h2 { font-size: 1.05rem; margin-bottom: 16px; }
.filter-group { padding: 14px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group legend,
.filter-group .group-title {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px; padding: 0;
}
.filter-group fieldset { border: 0; margin: 0; padding: 0; }
.filter-check { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 0.9rem; color: var(--ink-soft); cursor: pointer; }
.filter-check input { width: 16px; height: 16px; accent-color: var(--verde-700); }

.catalog-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 20px;
}
.result-count { font-weight: 700; color: var(--verde-900); }

.empty-state {
  text-align: center;
  background: var(--cream);
  border: 1px dashed #d9d2c2;
  border-radius: var(--radius);
  padding: 56px 32px;
  color: var(--muted);
}
.empty-state h3 { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   11. Scheda agriturismo
   -------------------------------------------------------------------------- */
.scheda-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 14px 0 6px; }
.scheda-head h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.scheda-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.scheda-meta span { display: inline-flex; align-items: center; gap: 6px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 30px; }
.gallery .ph { border-radius: var(--radius); min-height: 170px; }
.gallery .ph-main { grid-row: span 2; min-height: 352px; }

.scheda-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }

.side-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  position: sticky; top: 92px;
}
.side-box h3 { margin-bottom: 6px; }
.side-box .note { font-size: 0.84rem; color: var(--muted); }
.side-box .locked {
  margin-top: 14px;
  background: var(--cream);
  border: 1px dashed #d9d2c2;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.84rem; color: var(--muted);
  display: flex; gap: 10px; align-items: flex-start;
}

/* Tabs */
.tabs { border-bottom: 2px solid var(--line); display: flex; gap: 4px; margin: 26px 0 24px; }
.tab {
  font: inherit; font-weight: 700; font-size: 0.96rem;
  background: none; border: 0; cursor: pointer;
  color: var(--muted);
  padding: 10px 18px 12px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.tab:hover { color: var(--verde-800); }
.tab[aria-selected="true"] { color: var(--verde-900); border-bottom-color: var(--verde-700); }
.tab-panel:focus { outline: none; }

/* Righe offerta (soggiorni / prodotti / eventi) */
.offer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.offer-row:last-child { border-bottom: 0; }
.offer-row h4 { margin: 0 0 2px; font-size: 1rem; }
.offer-row .desc { font-size: 0.88rem; color: var(--muted); margin: 0; }
.offer-price { text-align: right; white-space: nowrap; }
.offer-price strong { display: block; font-size: 1.05rem; color: var(--verde-900); }
.offer-price span { font-size: 0.76rem; color: var(--muted); }
.offer-actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.request-box {
  background: var(--verde-050);
  border: 1px solid #d8e8da;
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 26px;
}
.request-box h3 { color: var(--verde-900); }
.request-box .disclaimer {
  font-size: 0.86rem; color: var(--ink-soft);
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 14px 0;
}
.rtb-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* --------------------------------------------------------------------------
   12. Territori
   -------------------------------------------------------------------------- */
.territorio-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.stat-pill {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 20px;
  min-width: 130px;
}
.stat-pill strong { display: block; font-size: 1.5rem; color: var(--verde-900); }
.stat-pill span { font-size: 0.8rem; color: var(--muted); }

.regioni-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------------------------------------------------
   13. Numeri canonici (home)
   -------------------------------------------------------------------------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.numbers .num strong {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--verde-900);
  letter-spacing: -0.02em;
}
.numbers .num span { font-size: 0.88rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   14. Trust / claim fattuale
   -------------------------------------------------------------------------- */
.trust-box {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--verde-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.trust-box h3 { margin-bottom: 4px; }
.trust-box p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.5em; }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(110deg, var(--verde-900), var(--verde-700));
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px 40px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: #d9ecdb; margin: 0; }
.cta-band .btn-light { background: var(--white); color: var(--verde-900); }
.cta-band .btn-light:hover { background: var(--accent-soft); color: var(--verde-900); }

/* --------------------------------------------------------------------------
   16. Claim
   -------------------------------------------------------------------------- */
.claim-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.claim-steps { counter-reset: step; margin: 18px 0 0; padding: 0; list-style: none; }
.claim-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 46px;
  color: var(--ink-soft);
}
.claim-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--verde-700); color: var(--white);
  font-size: 0.85rem; font-weight: 800;
  display: grid; place-items: center;
}
.claim-steps strong { color: var(--ink); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.form-card form { display: grid; gap: 16px; }

/* --------------------------------------------------------------------------
   17. Area Host
   -------------------------------------------------------------------------- */
.host-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--verde-050);
  border: 1px solid #d8e8da;
  border-radius: var(--radius);
  padding: 16px 22px;
  margin-bottom: 28px;
}
.host-bar .who { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--verde-900); }

.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.kpi {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px;
}
.kpi .kpi-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.kpi .kpi-value { font-size: 2rem; font-weight: 800; color: var(--verde-900); letter-spacing: -0.02em; margin-top: 4px; }
.kpi .kpi-sub { font-size: 0.8rem; color: var(--muted); }

.table-wrap {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow-x: auto;
}
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
table.data th {
  text-align: left; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: var(--cream);
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 8px; }

.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
  margin-bottom: 24px;
}
.panel h2 { font-size: 1.2rem; }

.fee-box {
  border: 1px solid #e8dcbd;
  background: var(--amber-bg);
  border-radius: var(--radius);
  padding: 24px;
}
.fee-box h3 { color: var(--amber-ink); }
.fee-box p { color: #57451c; font-size: 0.92rem; margin-bottom: 0.5em; }

.concierge-box {
  border: 1px solid #cde6cf;
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.concierge-box h3 { color: var(--verde-900); }
.concierge-box p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.4em; }

/* --------------------------------------------------------------------------
   18. Toast demo
   -------------------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--white);
  font-size: 0.88rem; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: var(--shadow-hover);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  max-width: min(92vw, 520px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--verde-900);
  color: #cfe3d0;
  margin-top: 72px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 56px 24px 40px;
}
.site-footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #cfe3d0; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { font-size: 0.9rem; max-width: 340px; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 18px 24px 26px;
  font-size: 0.82rem;
  color: #a9c8ab;
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between;
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 240px 1fr; gap: 24px; }
  .scheda-layout { grid-template-columns: 1fr; }
  .side-box { position: static; }
  .territorio-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: stretch;
    padding: 12px 18px 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .header-inner { gap: 12px; min-height: 60px; }
  .brand-payoff { display: none; }

  .hero-inner { padding: 56px 0 64px; }
  .hero-form { grid-template-columns: 1fr 1fr; }
  .hero-form .btn { grid-column: 1 / -1; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .ph-main { grid-column: 1 / -1; }
  .claim-layout { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .rtb-grid { grid-template-columns: 1fr; }
  .trust-box { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}

@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-form { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
}

/* Riduzione movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
