/* ==========================================================================
   Incanto — sito pubblico
   ========================================================================== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.eyebrow .dot { background: #e2683c; }
.eyebrow-dark { color: #a6a89f; }
.eyebrow-dark .dot { background: var(--accent); }
.h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.045em; font-weight: 500; }
.h2 .serif { font-size: 1.06em; }
.lead { color: var(--muted); font-size: 16px; max-width: 480px; }
.link-btn { font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 21px; letter-spacing: -.045em; }
.logo b { color: #8cad00; }
.logo-mark { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 18px; }
.logo-mark i { width: 4.5px; border-radius: 3px; background: currentColor; }
.logo-mark i:nth-child(1) { height: 9px; }
.logo-mark i:nth-child(2) { height: 18px; }
.logo-mark i:nth-child(3) { height: 13px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; margin: 12px; border-radius: var(--r-xl); overflow: hidden;
  background: #fff; min-height: max(1060px, 100vh); box-shadow: inset 0 0 0 1px var(--line);
  isolation: isolate; --fs: 600px;
}
.hero-map {
  position: absolute; inset: 0; z-index: 0; background: #fff !important;
  --mask: linear-gradient(180deg, transparent 0, transparent calc(var(--fs) - 150px), rgba(0, 0, 0, .5) calc(var(--fs) - 20px), #000 calc(var(--fs) + 110px), #000 88%, rgba(0, 0, 0, .35) 100%);
  -webkit-mask-image: var(--mask); mask-image: var(--mask);
}
.hero-map .leaflet-control-container { display: none; }
.hero-pins { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-link { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.hero-link path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .55; }
.hero-link circle { fill: var(--ink); }
.hero-link.draw path { animation: linkIn .8s var(--ease) both; }
@keyframes linkIn { from { opacity: 0; } }
.hero-pins .ph-pin { position: absolute; pointer-events: auto; }
.hero-attr { position: absolute; z-index: 3; right: 16px; bottom: 10px; font-size: 10px; color: var(--faint); }
.nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; gap: 16px; }
.nav-links { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(243, 243, 239, .8); }
.nav-links a { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.nav-cta { display: flex; gap: 6px; align-items: center; }

.hero-inner { position: relative; z-index: 4; text-align: center; padding: 46px 20px 0; max-width: 1000px; margin: 0 auto; pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); font-size: 13px; color: var(--ink-2);
  animation: rise .8s var(--ease) both;
}
.hero-title {
  font-size: clamp(42px, 6.6vw, 88px); line-height: 1.0; letter-spacing: -.05em; font-weight: 500;
  margin: 22px 0 20px; animation: rise .9s .05s var(--ease) both;
}
.hero-title .serif { font-size: 1.08em; letter-spacing: -.03em; }
.hero-img {
  display: inline-block; width: 1.55em; height: .8em; border-radius: 999px; overflow: hidden;
  vertical-align: -.04em; transform: rotate(-5deg); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .35);
  animation: wobble 6s ease-in-out infinite;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
@keyframes wobble { 50% { transform: rotate(3deg) translateY(-2px); } }
.hero-sub { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 16.5px; animation: rise .9s .1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.search {
  margin: 32px auto 0; display: flex; align-items: center; background: #fff; border-radius: 22px; padding: 8px;
  box-shadow: 0 2px 6px rgba(15, 16, 13, .04), 0 24px 60px -18px rgba(15, 16, 13, .22), inset 0 0 0 1px var(--line);
  max-width: 800px; text-align: left; animation: rise .9s .15s var(--ease) both;
}
.search-seg { flex: 1; min-width: 0; padding: 6px 16px; border-right: 1px solid var(--line); display: grid; gap: 1px; cursor: pointer; border-radius: 14px; transition: background .2s; }
.search-seg:hover { background: var(--surface-2); }
.search-seg:nth-last-child(2) { border-right: 0; }
.search-seg span { font-size: 11.5px; color: var(--muted); }
.search-seg select {
  border: 0; background: transparent; font-weight: 550; font-size: 14.5px; appearance: none; outline: none; padding: 0 18px 0 0; width: 100%; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%230f100d' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; text-overflow: ellipsis;
}
.search-seg .dd-trigger { padding: 0; font-weight: 550; font-size: 14.5px; color: var(--ink); }
.search-seg .dd-chev { color: var(--ink); }
.sort .dd-trigger { width: auto; font-weight: 500; font-size: 13px; gap: 6px; }
.search-go { width: 54px; height: 54px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; transition: .2s; }
.search-go:hover { background: #2a2c26; transform: scale(1.03); }

/* pin fotografici sulla mappa hero */
.ph-pin { position: relative; width: 50px; height: 50px; transform: translate(-50%, -50%); cursor: pointer; transition: transform .35s var(--ease); animation: pinIn .6s var(--ease) both; }
@keyframes pinIn { from { opacity: 0; transform: translate(-50%, -30%) scale(.6); } }
.ph-pin img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 6px 18px -4px rgba(0, 0, 0, .35); }
.ph-pin:hover { transform: translate(-50%, -50%) scale(1.1); }
.ph-pin.is-on { transform: translate(-50%, -50%) scale(1.18); }
.ph-pin.is-on img { border-color: var(--ink); }
.ph-pin .cnt { position: absolute; top: -4px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.ph-pin::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1.5px solid rgba(15, 16, 13, .25); opacity: 0; }
.ph-pin.is-on::after { opacity: 1; animation: ring 2s infinite; }
@keyframes ring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }

.hero-card {
  position: absolute; z-index: 6; width: 262px; background: #fff; border-radius: 22px; padding: 8px;
  box-shadow: 0 2px 6px rgba(15, 16, 13, .06), 0 30px 60px -20px rgba(15, 16, 13, .35);
  transition: left .6s var(--ease), top .6s var(--ease), opacity .3s;
}
.hero-card.swap .hc-in { animation: fadeSwap .45s var(--ease); }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(6px); } }
.hc-media { position: relative; height: 146px; border-radius: 16px; overflow: hidden; }
.hc-media img { width: 100%; height: 100%; object-fit: cover; }
.hc-media .badge { position: absolute; top: 9px; right: 9px; }
.hc-media .hc-nav { position: absolute; left: 9px; top: 9px; display: flex; gap: 4px; }
.hc-media .hc-nav button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); }
.hc-body { padding: 11px 6px 4px; }
.hc-body h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.hc-loc { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.hc-specs { display: flex; gap: 10px; font-size: 11.5px; color: var(--ink-2); margin: 10px 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hc-specs span { display: inline-flex; align-items: center; gap: 4px; }
.hc-foot { display: flex; align-items: center; justify-content: space-between; }
.hc-price { font-weight: 650; font-size: 15px; letter-spacing: -.02em; }
.hc-price small { color: var(--ok); font-weight: 600; font-size: 11.5px; margin-left: 3px; }
.hc-foot a { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.hero-hint { position: absolute; z-index: 5; left: 24px; bottom: 22px; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(8px); }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 44px; padding-bottom: 44px; }
.stat { display: flex; align-items: center; gap: 12px; }
.stat b { font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.stat span { font-size: 10.5px; color: var(--muted); line-height: 1.35; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }

/* ==========================================================================
   VALUE / BENTO
   ========================================================================== */
.value { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; padding-top: 90px; padding-bottom: 110px; }
.value-copy { display: flex; flex-direction: column; }
.value-copy .h2 { margin-bottom: auto; padding-bottom: 40px; }
.value-copy .lead { margin-bottom: 26px; }
.value-copy .btn { align-self: flex-start; }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bento-card { background: var(--surface); border-radius: var(--r-lg); padding: 18px 20px 22px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.bento-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.bento-card h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; margin: 16px 0 5px; }
.bento-card p { font-size: 13.5px; color: var(--muted); }
.b-visual { height: 150px; border-radius: 16px; background: var(--surface-2); position: relative; overflow: hidden; display: grid; place-items: center; }
.b-docs .b-visual { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 22px; }
.doc-chip { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px 0 12px; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; transform: translateX(calc(var(--d) * 10px)); }
.doc-chip .ok { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.mini-map { width: 100%; height: 100%; }
.mini-map .lasso { stroke-dashoffset: 0; animation: march 12s linear infinite; }
@keyframes march { to { stroke-dashoffset: -200; } }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 110px; }
.bar { width: 42px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar i { display: block; width: 100%; border-radius: 10px; background: #dcddd6; }
.bar.is-hl i { background: var(--accent); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.bar span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.price-badge { position: absolute; top: 14px; right: 14px; }
.b-human .b-visual { gap: 12px; align-content: center; }
.b-human .av { width: 44px; height: 44px; }
.bubble { background: #fff; padding: 9px 13px; border-radius: 14px 14px 14px 4px; font-size: 13px; box-shadow: var(--shadow-sm); }

/* ==========================================================================
   EXPLORE
   ========================================================================== */
.explore { padding: 20px 0 110px; }
.explore-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.explore-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sort { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.sort select { border: 0; background: transparent; outline: none; font-weight: 500; cursor: pointer; }
.explore-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; max-width: 1480px; margin: 0 auto; padding: 0 24px; align-items: start; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; min-height: 24px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.map-col { position: sticky; top: 14px; height: calc(100vh - 28px); min-height: 520px; }
.map-shell { position: relative; height: 100%; border-radius: 28px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); background: #eceee8; }
.explore-map { position: absolute; inset: 0; }
.explore-map.is-drawing { cursor: crosshair; }
.explore-map.is-drawing .leaflet-interactive, .explore-map.is-drawing .leaflet-marker-icon { cursor: crosshair; }
.map-top { position: absolute; z-index: 500; top: 16px; left: 16px; display: flex; gap: 8px; }
.map-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: 13.5px; font-weight: 550; transition: .2s; }
.map-btn.is-primary { background: var(--ink); color: #fff; }
.map-btn.is-primary.is-active { background: var(--accent); color: var(--accent-ink); }
.draw-hint { position: absolute; z-index: 500; top: 68px; left: 16px; display: inline-flex; align-items: center; gap: 7px; background: rgba(15, 16, 13, .82); color: #fff; padding: 8px 12px; border-radius: 12px; font-size: 12.5px; backdrop-filter: blur(6px); animation: rise .4s var(--ease); }
.area-bar { position: absolute; z-index: 500; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); animation: rise .45s var(--ease); }
.area-bar b { display: block; font-size: 15px; letter-spacing: -.01em; }
.area-bar span { font-size: 12.5px; color: var(--muted); }

/* marker prezzo */
.pp {
  position: absolute; left: 0; top: 0; transform: translate(-50%, calc(-100% - 6px)); display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 999px; background: #fff; font-weight: 650; font-size: 12.5px; letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 4px 14px -2px rgba(15, 16, 13, .22), inset 0 0 0 1px rgba(15, 16, 13, .06); transition: transform .25s var(--ease), background .2s, color .2s, opacity .3s;
}
.pp::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.pp .pp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.pp.is-hl, .pp:hover { background: var(--ink); color: #fff; transform: translate(-50%, calc(-100% - 6px)) scale(1.08); }
.pp.is-out { opacity: .32; }
.pp-wrap.is-hl { z-index: 1000 !important; }
.pp-cluster { background: var(--ink); color: #fff; font-weight: 500; cursor: pointer; }
.pp-cluster b { font-weight: 700; }
.pp-cluster:hover { background: var(--accent); color: var(--accent-ink); }

/* card annuncio */
.card { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s; animation: rise .5s var(--ease) both; }
.card:hover, .card.is-hl { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -18px rgba(15, 16, 13, .28); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.card-fav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); transition: .2s; }
.card-fav:hover { transform: scale(1.08); }
.card-fav.is-on { color: #e2683c; }
.card-fav.is-on svg { fill: currentColor; }
.card-when { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(15, 16, 13, .78); color: #fff; font-size: 12px; font-weight: 500; backdrop-filter: blur(8px); }
.card-when.is-soon { background: var(--accent); color: var(--accent-ink); }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.card-loc { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-top: 3px; }
.card-specs { display: flex; gap: 12px; font-size: 12.5px; color: var(--ink-2); margin: 12px 0; flex-wrap: wrap; }
.card-specs span { display: inline-flex; align-items: center; gap: 5px; }
.card-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-price small { display: block; font-size: 11.5px; color: var(--muted); }
.card-price b { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.card-price .stima { text-align: right; font-size: 12px; color: var(--muted); }
.card-price .stima s { display: block; }
.card-file { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.card-file .track { flex: 1; height: 4px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.card-file .track i { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.card-file.is-full .track i { background: var(--ok); }
.empty { text-align: center; padding: 56px 24px; background: #fff; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); display: grid; justify-items: center; gap: 10px; }
.empty h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.empty p { color: var(--muted); max-width: 360px; margin-bottom: 8px; }

/* ==========================================================================
   FASCICOLO (sezione scura)
   ========================================================================== */
.orbit-sec { position: relative; height: 520vh; margin: 0 12px; border-radius: var(--r-xl); background: #10110e; color: #fff; }
.orbit-sticky { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; border-radius: var(--r-xl); }
.orbit-copy { position: absolute; z-index: 5; left: max(24px, calc((100vw - 1240px) / 2 + 12px)); top: 50%; transform: translateY(-50%); width: min(400px, 34vw); }
.orbit-copy .h2 .serif { color: var(--accent); }
.orbit-now { margin-top: 40px; min-height: 230px; }
.on-num { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-style: italic; }
.on-num b { font-size: 68px; font-weight: 400; line-height: .9; color: #fff; letter-spacing: -.02em; }
.on-num span { font-size: 22px; color: #5f6157; }
.on-group { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 10px; height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: #c9cbc2; }
.on-group i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.orbit-now h3 { font-size: 26px; font-weight: 550; letter-spacing: -.035em; line-height: 1.12; }
.orbit-now p { color: #9b9d94; font-size: 14.5px; margin-top: 8px; }
.orbit-now .why { display: flex; gap: 8px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(216, 241, 93, .08); color: #e2f19e; font-size: 13px; line-height: 1.45; }
.orbit-now .swap { animation: nowIn .5s var(--ease) both; }
@keyframes nowIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.orbit-ticks { display: flex; gap: 4px; margin-top: 26px; }
.orbit-ticks button { flex: 1; height: 26px; position: relative; }
.orbit-ticks button::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); transform: translateY(-50%); transition: background .3s, height .3s; }
.orbit-ticks button:hover::before { background: rgba(255, 255, 255, .4); }
.orbit-ticks button.is-done::before { background: rgba(216, 241, 93, .5); }
.orbit-ticks button.is-on::before { background: var(--accent); height: 5px; }
.orbit-ticks button.gap { margin-left: 8px; }

.orbit-stage { position: absolute; inset: 0; perspective: 1600px; perspective-origin: 67% 40%; }
.orbit-spot { position: absolute; left: 67%; top: 46%; width: 1200px; height: 860px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(216, 241, 93, .14), rgba(216, 241, 93, .04) 55%, transparent 75%); pointer-events: none; }
.orbit-fit { position: absolute; left: 67%; top: 46%; transform-style: preserve-3d; transform: scale(var(--os, 1)); }
.orbit-scene { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateX(-22deg); }
#orbitRing { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.orbit-line { position: absolute; left: 0; top: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); }
.orbit-line.l1 { width: 1000px; height: 1000px; transform: translate(-50%, -50%) rotateX(90deg) translateZ(-150px); box-shadow: 0 0 60px rgba(216, 241, 93, .06) inset; }
.orbit-line.l2 { width: 1300px; height: 1300px; border-style: dashed; border-color: rgba(255, 255, 255, .07); transform: translate(-50%, -50%) rotateX(90deg) translateZ(-150px); }
.orbit-core { position: absolute; left: 0; top: 0; transform: translate(-50%, -60%) rotateX(22deg); display: grid; justify-items: center; gap: 14px; }
.core-photo { width: 250px; height: 250px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 10px rgba(255, 255, 255, .04), 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -20px rgba(0, 0, 0, .8); }
.core-photo img { width: 100%; height: 100%; object-fit: cover; animation: coreZoom 18s ease-in-out infinite alternate; }
@keyframes coreZoom { to { transform: scale(1.12); } }
.core-tag { font-size: 12.5px; color: #a6a89f; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); white-space: nowrap; }
.core-tag b { color: #fff; font-weight: 600; }
.orbit-hint { position: absolute; z-index: 5; right: 28px; bottom: 24px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #7e8076; }
.orbit-hint span { width: 18px; height: 28px; border-radius: 10px; border: 1.5px solid #5f6157; position: relative; }
.orbit-hint span::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 6px; border-radius: 2px; background: var(--accent); transform: translateX(-50%); animation: wheel 1.6s infinite; }
@keyframes wheel { 60% { transform: translate(-50%, 8px); opacity: 0; } }

/* fogli in miniatura */
.paper {
  position: absolute; left: 0; top: 0; width: 190px; height: 252px; margin: -126px 0 0 -95px; padding: 13px 13px 12px; border-radius: 12px;
  background: #fbfaf6; color: #2a2b27; font-size: 8px; line-height: 1.35; overflow: hidden; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 30px 60px -18px rgba(0, 0, 0, .75), 0 8px 16px -8px rgba(0, 0, 0, .4);
  will-change: transform; backface-visibility: hidden;
}
.paper::after { content: ''; position: absolute; inset: 0; background: #10110e; opacity: var(--shade, 0); pointer-events: none; transition: opacity .2s; }
.paper.is-front { box-shadow: 0 0 0 2px var(--accent), 0 40px 80px -20px rgba(0, 0, 0, .85); }
.pp-top { display: flex; justify-content: space-between; align-items: center; font-size: 6.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8b8d84; padding-bottom: 7px; border-bottom: 1px solid #e7e5dd; }
.pp-top em { font-style: normal; color: #b0b2a8; }
.pp-title { font-family: var(--serif); font-size: 17px; line-height: 1.05; margin: 9px 0 7px; color: #10110e; letter-spacing: -.01em; }
.pp-lines { display: grid; gap: 4px; margin: 6px 0; }
.pp-lines i { display: block; height: 3.5px; border-radius: 2px; background: #e4e2d9; }
.pp-lines i:nth-child(3n) { width: 82%; } .pp-lines i:nth-child(4n) { width: 64%; }
.pp-box { margin: 7px 0; padding: 7px 8px; border-radius: 7px; background: #eef8c4; display: grid; gap: 2px; }
.pp-box b { font-size: 11px; color: #1d2600; letter-spacing: -.01em; }
.pp-box span { font-size: 6.5px; color: #59633a; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pp-photo { height: 74px; border-radius: 7px; overflow: hidden; margin: 6px 0; }
.pp-photo img, .pp-grid img { width: 100%; height: 100%; object-fit: cover; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; }
.pp-grid img { height: 62px; border-radius: 6px; }
.pp-grid span { font-size: 6.5px; color: #8b8d84; }
.pp-plan { width: 100%; height: 150px; margin-top: 4px; }
.pp-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 7px; }
.pp-table td { padding: 4px 2px; border-bottom: 1px solid #eceae2; }
.pp-table td:last-child { text-align: right; font-weight: 700; }
.pp-table tr.tot td { border-bottom: 0; font-size: 9px; padding-top: 6px; }
.pp-ape { display: grid; gap: 3px; margin-top: 8px; }
.pp-ape div { display: flex; align-items: center; gap: 6px; }
.pp-ape i { height: 11px; border-radius: 0 4px 4px 0; color: #fff; font-style: normal; font-size: 7px; font-weight: 800; padding-left: 4px; line-height: 11px; }
.pp-ape .arrow { margin-left: auto; height: 13px; padding: 0 6px 0 9px; background: #10110e; color: #fff; font-size: 7.5px; font-weight: 800; line-height: 13px; clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 0 50%); }
.pp-stamp { position: absolute; right: 12px; bottom: 34px; width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(60, 111, 216, .55); display: grid; place-items: center; transform: rotate(-14deg); color: rgba(60, 111, 216, .7); font-size: 6.5px; font-weight: 800; letter-spacing: .14em; text-align: center; }
.pp-stamp::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1px dashed rgba(60, 111, 216, .45); }
.pp-sign { width: 90px; height: 30px; margin-top: 6px; }
.pp-steps { display: grid; gap: 6px; margin-top: 8px; }
.pp-steps div { display: flex; align-items: center; gap: 6px; font-size: 7.5px; }
.pp-steps b { width: 15px; height: 15px; border-radius: 50%; background: #10110e; color: #d8f15d; display: grid; place-items: center; font-size: 7px; flex: none; }
.pp-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 4px 8px; border-radius: 999px; font-size: 7.5px; font-weight: 800; letter-spacing: .06em; }
.pp-chip.ok { background: #e6f4ec; color: #2f9a68; }
.pp-chip.warn { background: #fbf0dc; color: #c7801b; }
.pp-key { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #10110e; color: #d8f15d; margin: 10px 0 4px; }
.pp-foot { position: absolute; left: 14px; right: 14px; bottom: 10px; display: flex; justify-content: space-between; font-size: 6.5px; color: #a3a59c; letter-spacing: .06em; }

/* ==========================================================================
   COME FUNZIONA — pannelli in fila che scorrono in orizzontale
   ========================================================================== */
.track-sec { position: relative; height: 400vh; }
.track-sticky { position: sticky; top: 0; height: 100vh; min-height: 620px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 34px; }
.track-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.track-count { font-family: var(--serif); font-style: italic; display: flex; align-items: baseline; gap: 6px; }
.track-count b { font-size: 64px; font-weight: 400; line-height: .9; }
.track-count span { font-size: 22px; color: var(--faint); }
.track { display: flex; gap: 18px; padding: 0 max(24px, calc((100vw - 1240px) / 2 + 24px)); will-change: transform; }
.step-card { position: relative; flex: none; width: min(440px, 78vw); height: min(560px, 60vh); border-radius: 30px; overflow: hidden; background: #1b1c18; color: #fff; transform-origin: center; box-shadow: 0 30px 60px -30px rgba(15, 16, 13, .5); }
.step-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.step-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 16, 13, .1) 0%, rgba(15, 16, 13, 0) 30%, rgba(15, 16, 13, .55) 62%, rgba(15, 16, 13, .92) 100%); }
.step-card.is-on img { transform: scale(1); }
.step-top { position: absolute; z-index: 2; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; }
.step-top .badge { background: rgba(255, 255, 255, .9); color: var(--ink); backdrop-filter: blur(8px); }
.step-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(15, 16, 13, .55); backdrop-filter: blur(8px); color: var(--accent); }
.step-body { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; }
.step-body .n { font-family: var(--serif); font-style: italic; font-size: 46px; line-height: 1; color: var(--accent); }
.step-body h3 { font-size: 26px; font-weight: 550; letter-spacing: -.035em; margin: 8px 0 8px; }
.step-body p { font-size: 14.5px; color: rgba(255, 255, 255, .78); line-height: 1.5; }
.step-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.step-tags span { height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 550; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.step-card.step-end { background: var(--accent); color: var(--accent-ink); display: flex; flex-direction: column; justify-content: space-between; padding: 30px; }
.step-card.step-end::after { display: none; }
.step-end h3 { font-size: 40px; font-weight: 500; letter-spacing: -.045em; line-height: 1.02; }
.step-end p { font-size: 15px; color: #3d4a10; margin: 14px 0 24px; max-width: 320px; }
.track-bar { width: min(1192px, calc(100% - 48px)); height: 3px; margin: 0 auto; border-radius: 3px; background: var(--line); overflow: hidden; }
.track-bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 3px; }

/* ==========================================================================
   CONTATTI
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 100px; padding-bottom: 110px; align-items: start; }
.contact-copy .lead { margin: 22px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.ticks .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.advisor { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.advisor .av { width: 44px; height: 44px; }
.advisor b { display: block; font-size: 14px; }
.advisor span { font-size: 12.5px; color: var(--muted); }
.advisor .badge { margin-left: 10px; }
.contact-form { position: relative; background: #fff; border-radius: 28px; padding: 28px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); display: grid; gap: 14px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; transition: .2s; }
.seg button.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.area-attached { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--accent-2); color: var(--accent-ink); font-size: 13px; font-weight: 500; }
.area-attached .link-btn { margin-left: auto; color: var(--accent-ink); }
.form-error { color: var(--danger); font-size: 13px; }
.cf-success { position: absolute; inset: 0; border-radius: 28px; background: #fff; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 32px; animation: rise .5s var(--ease); }
.cf-success h3 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.cf-success p { color: var(--muted); max-width: 340px; margin-bottom: 10px; }
.cf-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); margin-bottom: 6px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols div { display: grid; gap: 8px; align-content: start; font-size: 13.5px; color: var(--muted); }
.footer-cols h4 { font-size: 13px; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.footer-cols a:hover { color: var(--ink); }
.footer-legal { display: flex; justify-content: space-between; gap: 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.footer-legal p:first-child { max-width: 760px; }

/* ==========================================================================
   SCHEDA LOTTO (modale stile "dashboard")
   ========================================================================== */
.lm { position: fixed; inset: 0; z-index: 2000; }
.lm-backdrop { position: absolute; inset: 0; background: rgba(15, 16, 13, .42); backdrop-filter: blur(8px); animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; } }
.lm-sheet {
  position: absolute; inset: 20px; max-width: 1440px; margin: 0 auto; border-radius: 34px; background: #edf1ec;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg); animation: sheetIn .55s var(--ease) both;
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.985); } }
.lm.closing .lm-sheet { animation: sheetOut .3s ease both; }
.lm.closing .lm-backdrop { animation: fadeOut .3s ease both; }
@keyframes sheetOut { to { opacity: 0; transform: translateY(14px) scale(.99); } }
@keyframes fadeOut { to { opacity: 0; } }

.lm-rail { display: flex; flex-direction: column; align-items: center; padding: 10px 0; gap: 10px; }
.lm-logo { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); }
.lm-tabs { display: grid; gap: 12px; margin: auto 0; }
.lm-tabs button { display: grid; justify-items: center; gap: 5px; font-size: 10.5px; font-weight: 550; color: var(--muted); }
.lm-tabs button .i { width: 46px; height: 46px; padding: 13px; border-radius: 50%; background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: .25s var(--ease); }
.lm-tabs button:hover .i { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-sm); }
.lm-tabs button.is-on { color: var(--ink); }
.lm-tabs button.is-on .i { background: var(--ink); color: #fff; box-shadow: none; }
.lm-rail-bottom { display: grid; gap: 10px; }
.rail-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: .2s; }
.rail-btn.is-dark { background: var(--ink); color: #fff; box-shadow: none; }

.lm-main { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; border-radius: 24px; padding-bottom: 0; }
.lm-gallery { position: relative; height: 330px; flex: none; border-radius: 24px; overflow: hidden; background: #dfe3de; }
.lm-gallery img { width: 100%; height: 100%; object-fit: cover; animation: fade .5s ease; }
.lm-gallery .g-nav { position: absolute; inset: auto 12px 12px auto; display: flex; gap: 6px; align-items: center; }
.lm-gallery .g-nav button { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; backdrop-filter: blur(8px); }
.lm-gallery .g-count { height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(15, 16, 13, .7); color: #fff; font-size: 12.5px; display: inline-flex; align-items: center; backdrop-filter: blur(8px); }
.lm-gallery .g-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.lm-thumbs { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.lm-thumbs button { width: 52px; height: 38px; border-radius: 10px; overflow: hidden; opacity: .7; border: 2px solid transparent; transition: .2s; }
.lm-thumbs button.is-on { opacity: 1; border-color: #fff; }
.lm-thumbs img { animation: none; }

.lm-card { background: #fff; border-radius: 24px; padding: 20px; flex: none; }
.lm-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.lm-title h2 { font-size: 23px; font-weight: 500; letter-spacing: -.035em; line-height: 1.15; }
.lm-title p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.fav-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #e9a23b; flex: none; transition: .2s; }
.fav-btn:hover { background: var(--warn-bg); }
.fav-btn.is-on svg { fill: currentColor; }
.lm-codes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.tile { background: #f1f4f0; border-radius: 18px; padding: 14px; min-height: 124px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .i { color: var(--ink-2); }
.tile small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.tile b { font-size: clamp(20px, 2vw, 28px); font-weight: 400; letter-spacing: -.04em; line-height: 1.05; }
.tile.is-dark { background: var(--ink); color: #fff; }
.tile.is-dark .i, .tile.is-dark small { color: #a6a89f; }
.tile .cd { display: flex; gap: 6px; font-variant-numeric: tabular-nums; }
.tile .cd span { display: grid; }
.tile .cd em { font-style: normal; font-size: 10px; color: #a6a89f; letter-spacing: .04em; text-transform: uppercase; }

.lm-sec-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.lm-sec-h h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.lm-descr { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin-top: 14px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv dt, .kv span { color: var(--muted); }
.kv dd, .kv b { margin: 0; font-weight: 550; text-align: right; }
.kv.one { grid-template-columns: 1fr; }
.flags { display: grid; gap: 8px; margin-top: 6px; }
.flag { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.flag .i { margin-top: 1px; }
.flag.ok { background: var(--ok-bg); color: #1f6b47; }
.flag.warn { background: var(--warn-bg); color: #7d4f0e; }
.flag.info { background: var(--info-bg); color: #24479a; }
.ai-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-2); padding: 4px 9px; border-radius: 999px; }

/* fascicolo nella scheda */
.file-head { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; background: #f1f4f0; margin-bottom: 16px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--ink) calc(var(--p) * 1%), #dfe3de 0); position: relative; }
.ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #f1f4f0; }
.ring b { position: relative; font-size: 14px; font-weight: 650; letter-spacing: -.02em; }
.file-head h4 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.file-head p { font-size: 12.5px; color: var(--muted); }
.file-head .btn { margin-left: auto; }
.doc-group { margin-top: 14px; }
.doc-group h5 { margin: 0 0 6px; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; transition: background .2s; }
.doc-row:hover { background: var(--surface-2); }
.doc-row .d-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #f1f4f0; flex: none; }
.doc-row .d-txt { flex: 1; min-width: 0; }
.doc-row b { display: block; font-size: 13.5px; font-weight: 600; }
.doc-row span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-row .d-act { display: flex; gap: 6px; align-items: center; }
.doc-row.is-missing { opacity: .6; }
.doc-row.is-missing .d-ico { background: var(--warn-bg); color: var(--warn); }
.mini-btn { height: 32px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 550; display: inline-flex; align-items: center; gap: 5px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.mini-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* storico esperimenti */
.history { display: grid; gap: 0; margin-top: 8px; }
.h-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; position: relative; font-size: 13.5px; }
.h-row::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.h-row:first-child::before { top: 50%; }
.h-row:last-child::before { bottom: 50%; }
.h-row i.hd { position: relative; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); }
.h-row.is-now i.hd { border-color: var(--ink); background: var(--accent); }
.h-row b { font-weight: 600; }
.h-row small { color: var(--muted); display: block; font-size: 12px; }

/* calcolatore costi */
.calc-offer { padding: 16px; border-radius: 18px; background: #f1f4f0; }
.calc-offer label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.calc-offer output { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.04em; margin: 4px 0 10px; }
.range { width: 100%; accent-color: var(--ink); }
.calc-toggle { display: flex; gap: 6px; margin: 14px 0 4px; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; font-size: 15px; font-weight: 600; }
.calc-total b { font-size: 24px; letter-spacing: -.03em; }
.fine { font-size: 12px; color: var(--muted); margin-top: 10px; }

.lm-cta { position: sticky; bottom: 0; flex: none; padding-top: 4px; background: linear-gradient(transparent, #edf1ec 30%); }
.lm-cta .btn { height: 58px; border-radius: 18px; width: 100%; font-size: 15px; }

/* lato mappa */
.lm-side { position: relative; border-radius: 24px; overflow: hidden; background: #dfe3de; }
.lm-map { position: absolute; inset: 0; }
.lm-chips { position: absolute; z-index: 500; top: 14px; left: 14px; right: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.lm-chips span { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-sm); }
.lm-chips span .i { color: var(--muted); }
.lm-pin { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
.lm-pin .halo { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(233, 162, 59, .28); animation: halo 2.4s infinite; }
@keyframes halo { 50% { transform: translate(-50%, -50%) scale(1.25); opacity: .6; } }
.lm-pin .core { position: relative; width: 18px; height: 18px; border-radius: 50%; background: #e9a23b; border: 4px solid #1a1b17; }
.lm-tip {
  position: absolute; left: 0; bottom: 30px; transform: translateX(-50%); display: flex; align-items: stretch;
  background: var(--ink); color: #fff; border-radius: 22px; padding: 14px 6px; white-space: nowrap; box-shadow: var(--shadow-lg);
}
.lm-tip::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 16px; height: 16px; background: var(--ink); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
.lm-tip div { padding: 0 16px; text-align: center; }
.lm-tip div + div { border-left: 1px dashed rgba(255, 255, 255, .25); }
.lm-tip b { display: block; font-size: 24px; font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.lm-tip small { font-size: 11px; color: #a6a89f; }

/* chat */
.chat {
  position: absolute; z-index: 600; right: 16px; bottom: 82px; width: 320px; max-width: calc(100% - 32px);
  background: #fff; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform-origin: bottom right; transition: transform .4s var(--ease), opacity .3s;
}
.chat.is-closed { transform: scale(.85) translateY(10px); opacity: 0; pointer-events: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ink); color: #fff; font-size: 14px; }
.chat-logo { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.chat-logo .logo-mark { height: 13px; gap: 2px; }
.chat-logo .logo-mark i { width: 3.5px; }
.chat-logo .logo-mark i:nth-child(1) { height: 7px; } .chat-logo .logo-mark i:nth-child(2) { height: 13px; } .chat-logo .logo-mark i:nth-child(3) { height: 10px; }
.chat-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #a6a89f; }
.chat-body { max-height: 300px; min-height: 140px; overflow-y: auto; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; animation: rise .35s var(--ease) both; }
.msg .av { width: 26px; height: 26px; }
.msg p { padding: 9px 12px; border-radius: 16px 16px 16px 5px; background: #eef2ee; font-size: 13.5px; line-height: 1.4; }
.msg.me { align-self: flex-end; }
.msg.me p { background: var(--ink); color: #fff; border-radius: 16px 16px 5px 16px; }
.typing p { display: flex; gap: 4px; padding: 12px 14px; }
.typing p i { width: 6px; height: 6px; border-radius: 50%; background: #9aa09a; animation: blink 1.2s infinite; }
.typing p i:nth-child(2) { animation-delay: .15s; } .typing p i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 34px; animation: rise .35s var(--ease) both; }
.quick button { height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-2); background: #fff; transition: .2s; }
.quick button:hover { background: var(--ink); color: #fff; box-shadow: none; }
.chat-lead { margin-left: 34px; display: grid; gap: 6px; padding: 10px; border-radius: 16px; background: #f1f4f0; animation: rise .35s var(--ease) both; }
.chat-lead input { height: 38px; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; font-size: 13.5px; outline: none; background: #fff; }
.chat-lead input:focus { border-color: var(--ink); }
.chat-lead .btn { height: 38px; border-radius: 10px; }
.chat-input { display: flex; gap: 6px; padding: 10px 12px 12px; }
.chat-input input { flex: 1; height: 40px; border-radius: 999px; border: 1px solid var(--line); padding: 0 14px; font-size: 13.5px; outline: none; }
.chat-input input:focus { border-color: var(--ink); }
.chat-input button { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.chat-fab { position: absolute; z-index: 600; right: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); }
.chat-fab:hover { transform: scale(1.06); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .explore-body { grid-template-columns: 1fr; }
  .map-col { position: relative; top: 0; height: 62vh; order: -1; }
  .docs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .value { grid-template-columns: 1fr; gap: 40px; }
  .value-copy .h2 { padding-bottom: 20px; }
}
@media (max-width: 1060px) {
  .lm-sheet { inset: 0; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: auto auto auto; overflow-y: auto; padding: 10px; display: block; }
  .lm-rail { position: sticky; top: -10px; z-index: 700; flex-direction: row; justify-content: space-between; padding: 6px 4px 10px; background: #edf1ec; }
  .lm-tabs { display: flex; gap: 6px; margin: 0; }
  .lm-tabs button span { display: none; }
  .lm-tabs button .i { width: 42px; height: 42px; padding: 11px; }
  .lm-rail-bottom { display: flex; }
  .lm-logo { display: none; }
  .lm-main { overflow: visible; }
  .lm-side { height: 560px; margin-top: 10px; }
  .lm-cta { position: static; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .hero { min-height: 940px; }
  .search { flex-direction: column; align-items: stretch; padding: 8px; }
  .search-seg { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .search-seg:nth-last-child(2) { border-bottom: 0; }
  .search-go { width: 100%; border-radius: 14px; height: 50px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .docs-head, .contact { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact { gap: 40px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .explore-body { padding: 0 16px; }
  .hero { margin: 8px; border-radius: 26px; min-height: 0; padding-bottom: 300px; }
  .nav { padding: 14px; }
  .hero-inner { padding-top: 30px; }
  .hero-sub { font-size: 15px; }
  .hero-hint { display: none; }
  .bento, .cards, .steps, .docs-grid, .cf-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .docs-sec { margin: 0 8px; padding: 70px 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:last-child { grid-column: span 2; }
  .kv { grid-template-columns: 1fr; }
  .lm-gallery { height: 250px; }
  .lm-thumbs { display: none; }
  .file-head { flex-wrap: wrap; }
  .file-head .btn { margin-left: 0; width: 100%; }
  .contact-form { padding: 20px; }
  .footer-legal { flex-direction: column; }
  .area-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .lm-tip b { font-size: 18px; }
  .lm-tip div { padding: 0 10px; }
}

/* orbita e pannelli: tablet e telefono */
@media (max-width: 900px) {
  .orbit-copy { top: 56px; transform: none; left: 24px; right: 24px; width: auto; }
  .orbit-copy .h2 { font-size: 34px; }
  .orbit-now { margin-top: 18px; min-height: 0; }
  .orbit-now .why, .orbit-now p { display: none; }
  .on-num b { font-size: 44px; }
  .on-group { margin: 8px 0 6px; }
  .orbit-now h3 { font-size: 21px; }
  .orbit-ticks { margin-top: 14px; }
  .orbit-stage { perspective-origin: 50% 66%; }
  .orbit-fit, .orbit-spot { left: 50%; top: 68%; }
  .orbit-hint { display: none; }
  .track-head { flex-direction: row; align-items: flex-end; }
  .track-count b { font-size: 44px; }
}
@media (max-width: 640px) {
  .orbit-sec { margin: 0 8px; height: 460vh; }
  .track-sec { height: 360vh; }
  .track-head { padding: 0 16px; }
  .track { padding: 0 16px; gap: 12px; }
  .step-body h3 { font-size: 22px; }
}

/* etichetta fascicolo sulle card: sempre su una riga */
.card-file { white-space: nowrap; }

/* ==========================================================================
   PAGINA SERVIZI
   ========================================================================== */
.value-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.sv-hero { margin: 12px; border-radius: var(--r-xl); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sv-hero-in { max-width: 1240px; margin: 0 auto; padding: 84px 28px 72px; }
.sv-hero h1 { font-size: clamp(44px, 7.6vw, 108px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
.sv-hero h1 .serif { font-size: 1.05em; }
.sv-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 48px; }
.sv-hero .lead { font-size: 18px; max-width: 560px; }

/* il percorso: mazzo di fogli guidato dallo scroll */
.path-sec { position: relative; height: 520vh; margin: 0 12px; border-radius: var(--r-xl); background: #10110e; color: #fff; }
.path-sticky { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; border-radius: var(--r-xl); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.path-now { min-height: 276px; }
.path-now h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.04; letter-spacing: -.045em; font-weight: 500; }
.path-now p { color: #a6a89f; font-size: 16.5px; line-height: 1.5; margin-top: 16px; max-width: 480px; }
.path-now .path-you { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.2; color: var(--accent); }
.path-now .swap { animation: nowIn .5s var(--ease) both; }
.path-rail { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; }
.path-rail button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 0; text-align: left; font-size: 14px; color: #6f7168; transition: color .25s; }
.path-rail button:hover { color: #d7d9cf; }
.path-rail em { font-family: var(--serif); font-size: 19px; width: 18px; }
.path-rail .is-done { color: #a6a89f; }
.path-rail .is-on { color: #fff; font-weight: 550; }
.path-rail .is-on em { color: var(--accent); }
.path-stage { position: relative; height: 100%; display: grid; place-items: center; overflow: hidden; }
.path-deck { position: relative; width: min(430px, 100%); height: min(570px, 76vh); }
.sheet { position: absolute; inset: 0; padding: 24px 24px 40px; border-radius: 18px; background: #fbfaf6; color: #2a2b27; font-size: 13px; line-height: 1.4; overflow: hidden; will-change: transform; box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .85); }
.sheet::after { content: ''; position: absolute; inset: 0; background: #10110e; opacity: var(--shade, 0); pointer-events: none; }
.sh-top { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8b8d84; padding-bottom: 11px; border-bottom: 1px solid #e7e5dd; }
.sh-top em { font-style: normal; color: #b0b2a8; }
.sh-title { font-family: var(--serif); font-size: 32px; line-height: 1.05; letter-spacing: -.01em; color: #10110e; margin: 16px 0 14px; }
.sh-lines { display: grid; gap: 7px; margin: 12px 0; }
.sh-lines i { display: block; height: 5px; border-radius: 3px; background: #e7e5dc; }
.sh-lines i:nth-child(3n) { width: 82%; } .sh-lines i:nth-child(4n) { width: 62%; }
.sh-table { width: 100%; border-collapse: collapse; }
.sh-table td { padding: 8px 0; border-bottom: 1px solid #eceae2; }
.sh-table td:last-child { text-align: right; font-weight: 650; }
.sh-found { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 12px 14px; border-radius: 12px; background: #eef8c4; color: #1d2600; font-size: 12.5px; line-height: 1.25; font-weight: 550; }
.sh-found b { font-family: var(--serif); font-size: 42px; font-weight: 400; line-height: 1; }
.sh-rows { display: grid; gap: 8px; font-weight: 550; }
.sh-rows div { display: flex; align-items: center; gap: 9px; }
.sh-rows i { width: 8px; height: 8px; border-radius: 50%; background: #2f9a68; flex: none; }
.sh-rows em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 11.5px; color: #8b8d84; }
.sh-rows .is-off { color: #a3a59c; text-decoration: line-through; text-decoration-color: #cfcdc4; }
.sh-rows .is-off i { background: #cfcdc4; }
.sh-rows .is-off em { text-decoration: none; }
.sh-mark { font-family: var(--serif); font-size: 18px; line-height: 1.3; color: #4c4e45; }
.sh-mark mark { background: #eaf79b; color: #10110e; padding: 0 3px; border-radius: 3px; }
.sh-note { margin: 9px 0 0 18px; padding: 9px 12px; border-left: 2px solid #10110e; font-size: 12.5px; color: #33352f; background: #f3f2ec; border-radius: 0 10px 10px 0; }
.sh-note b { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #8b8d84; margin-bottom: 2px; }
.sh-plan { width: 100%; margin-bottom: 12px; }
.sh-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-weight: 550; }
.sh-check li { display: flex; align-items: center; gap: 9px; }
.sh-check li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #2f9a68; flex: none; }
.sh-check .is-warn { color: #b06e12; }
.sh-check .is-warn::before { background: #e2683c; }
.sh-time { display: grid; gap: 0; margin-bottom: 16px; }
.sh-time div { position: relative; padding: 0 0 15px 26px; }
.sh-time div::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: -6px; width: 2px; background: #e4e2d9; }
.sh-time div:last-child::before { display: none; }
.sh-time i { position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fbfaf6; border: 2px solid #cfcdc4; z-index: 1; }
.sh-time .is-done i { background: #10110e; border-color: #10110e; }
.sh-time .is-now i { background: #d8f15d; border-color: #10110e; }
.sh-time b { display: block; font-weight: 650; }
.sh-time span { color: #8b8d84; font-size: 12.5px; }
.sh-bar { padding: 12px 14px; border-radius: 12px; background: #10110e; color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 12px; }
.sh-bar b { font-family: var(--serif); font-size: 22px; font-weight: 400; color: #d8f15d; line-height: 1; }
.sh-bar div { grid-column: 1 / -1; height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.sh-bar i { display: block; width: 38%; height: 100%; background: #d8f15d; }
.sh-stamp { position: absolute; right: 26px; bottom: 58px; width: 104px; height: 104px; border-radius: 50%; border: 2.5px solid rgba(60, 111, 216, .55); display: grid; place-items: center; transform: rotate(-14deg); color: rgba(60, 111, 216, .72); font-size: 9.5px; font-weight: 800; letter-spacing: .13em; text-align: center; }
.sh-stamp::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(60, 111, 216, .45); }
.sh-sign { width: 130px; height: 44px; margin-top: 16px; }
.sh-foot { position: absolute; left: 24px; right: 24px; bottom: 15px; display: flex; justify-content: space-between; font-size: 10px; color: #a3a59c; letter-spacing: .05em; }

/* ricerca personalizzata */
.sv-search { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; padding-top: 120px; padding-bottom: 120px; }
.sv-search .lead { margin-top: 22px; }
.sv-how { list-style: none; counter-reset: h; margin: 34px 0; padding: 0; }
.sv-how li { counter-increment: h; position: relative; padding: 16px 0 16px 50px; border-top: 1px solid var(--line); }
.sv-how li::before { content: counter(h); position: absolute; left: 0; top: 7px; font-family: var(--serif); font-style: italic; font-size: 38px; line-height: 1.2; color: #8cad00; }
.sv-how b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.sv-how span { color: var(--muted); font-size: 14.5px; }
.mail { background: #fff; border-radius: 26px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); transform: rotate(1.4deg); }
.mail-h { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mail-logo { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.mail-h b { display: block; font-size: 14px; line-height: 1.2; }
.mail-h small { color: var(--muted); font-size: 13px; }
.mail-h time { margin-left: auto; font-size: 12px; color: var(--faint); }
.mail-hi { margin: 16px 0; font-size: 15px; }
.mail-lot { border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.mail-lot img { width: 100%; height: 196px; object-fit: cover; }
.mail-lot-b { padding: 14px; }
.mail-lot-b > b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.mail-lot-b > small { color: var(--muted); font-size: 13px; }
.mail-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.mail-kv small { display: block; font-size: 11.5px; color: var(--muted); }
.mail-kv b { font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; }
.mail-why { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: 13.5px; font-weight: 550; }
.mail-why .i { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.mail-sign { color: var(--muted); font-size: 13.5px; }

/* iscrizione annuale (attivabile) */
.sv-sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: end; padding-bottom: 110px; }
.sv-sub .lead { margin-bottom: 22px; }

/* selezione */
.sv-select { margin: 0 12px; padding: 96px 0; border-radius: var(--r-xl); background: var(--accent); color: var(--accent-ink); }
.sv-select-t { font-size: clamp(30px, 4.6vw, 62px); line-height: 1.06; letter-spacing: -.045em; font-weight: 500; max-width: 1080px; }
.sv-select-t .serif { font-size: 1.05em; }
.sv-select-cta { margin-top: 40px; }
body.sv .footer { border-top: 0; }

@media (max-width: 900px) {
  /* i link restano raggiungibili anche su telefono: Servizi è una pagina a sé */
  .nav { flex-wrap: wrap; }
  .nav-links { display: flex; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav-links a { white-space: nowrap; }
  .sv-hero-in { padding: 48px 20px 48px; }
  .path-sticky { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: 18px; padding: 28px 20px 18px; min-height: 560px; }
  .path-now { min-height: 0; }
  .path-now h2 { font-size: 27px; }
  .path-now p { font-size: 14px; margin-top: 8px; }
  .path-now .path-you { font-size: 18px; }
  .path-rail { display: none; }
  .path-copy .eyebrow { margin-bottom: 10px; }
  .path-deck { width: min(330px, 100%); height: 100%; max-height: 440px; }
  .sheet { padding: 16px 16px 30px; font-size: 11.5px; }
  .sh-title { font-size: 24px; margin: 10px 0; }
  .sh-mark { font-size: 15px; }
  .sh-found b { font-size: 32px; }
  .sh-stamp { width: 80px; height: 80px; font-size: 7.5px; right: 14px; bottom: 40px; }
  .sv-search, .sv-sub { grid-template-columns: 1fr; gap: 44px; padding-top: 72px; padding-bottom: 72px; }
  .sv-sub { padding-top: 0; gap: 22px; }
  .mail { transform: none; }
  .sv-select { padding: 64px 0; }
}
