/* =========================================================
   LANDING — Bonus Casa ed Ecobonus 2027 (bonus-2027.html)
   Estende style.css: stessi token e componenti.
   ========================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: calc(var(--z-header) + 1);
  background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

/* ---------- Hero animato ---------- */
.lp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: #D9D4CD; padding-block: 56px 88px;
}
@media (min-width: 960px) { .lp-hero { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding-block: 72px 104px; } }
.lp-hero__grid {
  position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(149,185,88,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149,185,88,.10) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 50%, #000 15%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 72% 50%, #000 15%, transparent 75%);
  animation: lp-grid 1.6s var(--ease) both;
}
.lp-hero__inner { display: grid; gap: 56px; align-items: center; width: 100%; }
@media (min-width: 960px) { .lp-hero__inner { grid-template-columns: 1.1fr .9fr; gap: 72px; } }

.lp-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; margin-bottom: 24px;
  border-radius: 999px; border: 1px solid rgba(149,185,88,.5); background: rgba(149,185,88,.08);
  color: #E8E4DE; font-size: .875rem; font-family: var(--font-h); letter-spacing: .04em;
  animation: lp-fade-up .7s .05s var(--ease) both;
}
.lp-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: lp-pulse 1.8s 1.8s 3; }
.lp-hero h1 { color: #fff; font-size: clamp(2.25rem, 5.4vw, 4.375rem); line-height: 1.05; margin-bottom: 24px; }
.lp-hero h1 em { font-style: normal; color: var(--brand); font-weight: 400; }
.lp-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.lp-line > span { display: block; animation: lp-rise 1s var(--ease) both; }
.lp-line:nth-child(1) > span { animation-delay: .15s; }
.lp-line:nth-child(2) > span { animation-delay: .27s; }
.lp-line:nth-child(3) > span { animation-delay: .39s; }
.lp-hero__sub { font-family: var(--font-h); font-weight: 300; font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.35; color: #fff; margin-bottom: 16px; animation: lp-fade-up .8s .55s var(--ease) both; }
.lp-hero__lead { max-width: 56ch; color: #CFC9C1; animation: lp-fade-up .8s .65s var(--ease) both; }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: lp-fade-up .8s .8s var(--ease) both; }

/* Visual: la cornice del logo si disegna + contatore */
.lp-visual { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 1; }
.lp-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lp-frame__path { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; animation: lp-draw 1.4s .25s cubic-bezier(.65,0,.35,1) forwards; }
.lp-frame__leaf { fill: var(--brand); transform-box: fill-box; transform-origin: 0% 100%; animation: lp-leaf .8s 1.35s cubic-bezier(.34,1.56,.64,1) both; }
.lp-visual__core {
  position: absolute; inset: 13%; display: flex; flex-direction: column; justify-content: center;
  animation: lp-fade-up .8s .9s var(--ease) both;
}
.lp-visual__kicker { font-family: var(--font-h); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; }
.lp-big { font-family: var(--font-h); font-weight: 300; color: #fff; font-size: clamp(5.5rem, 17vw, 9.5rem); line-height: .9; letter-spacing: -.045em; font-variant-numeric: tabular-nums; margin: 0; white-space: nowrap; }
.lp-big small { font-size: .42em; color: var(--brand); letter-spacing: 0; margin-left: .04em; vertical-align: .9em; }
.lp-visual__text { color: #E8E4DE; font-size: 1rem; margin: 14px 0 0; max-width: 24ch; }
.lp-chips { position: absolute; left: -4%; right: -4%; bottom: -26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.lp-chip {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: var(--r);
  background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-lg); font-size: .9375rem;
  animation: lp-chip .7s var(--ease) both;
}
.lp-chip:nth-child(1) { animation-delay: 1.55s; }
.lp-chip:nth-child(2) { animation-delay: 1.7s; }
.lp-chip strong { font-family: var(--font-h); font-weight: 500; font-size: 1.375rem; color: var(--brand-700); font-variant-numeric: tabular-nums; }
@media (max-width: 639px) {
  .lp-visual { aspect-ratio: auto; padding-top: 12%; }
  .lp-visual__core { position: relative; inset: auto; padding: 0 12% 14%; }
  .lp-chips { position: static; justify-content: flex-start; margin-top: 24px; }
}

.lp-scroll-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 6px; color: #A9A29A; font-size: .8125rem; text-decoration: none;
  animation: lp-fade 1s 2.1s var(--ease) both;
}
.lp-scroll-cue:hover { color: #fff; }
.lp-scroll-cue span { width: 1px; height: 36px; background: linear-gradient(var(--brand), transparent); animation: lp-cue 1.8s 2.6s ease-in-out infinite; transform-origin: top; }
@media (min-width: 960px) and (min-height: 760px) { .lp-scroll-cue { display: flex; } }

@keyframes lp-grid { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes lp-rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes lp-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }
@keyframes lp-leaf { from { opacity: 0; transform: scale(0) rotate(-35deg); } to { opacity: 1; transform: none; } }
@keyframes lp-chip { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 rgba(149,185,88,.7); } 100% { box-shadow: 0 0 0 12px rgba(149,185,88,0); } }
@keyframes lp-cue { 0%, 100% { transform: scaleY(.3); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- Intro + indice ---------- */
.lp-intro { display: grid; gap: 28px; }
@media (min-width: 900px) { .lp-intro { grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: end; } }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--brand-50); color: var(--brand-800); font-size: .9375rem; font-weight: 600; margin-bottom: 14px; }
.lp-pill .icon { width: 18px; height: 18px; }
.eyebrow .icon { width: 18px; height: 18px; }

/* ---------- Bonus Casa: aliquote ---------- */
.lp-rates { display: grid; gap: 20px; margin-bottom: 32px; }
@media (min-width: 760px) { .lp-rates { grid-template-columns: 1fr 1fr; gap: 28px; } }
.lp-rate { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.lp-rate .lp-rate__num { font-family: var(--font-h); font-weight: 300; font-size: clamp(4rem, 9vw, 5.5rem); line-height: 1; color: var(--ink); letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin: 0; }
.lp-rate__num small { font-size: .45em; color: var(--brand-700); margin-left: 2px; }
.lp-rate h3 { font-size: 1.25rem; margin-bottom: 8px; }
.lp-rate p { margin: 0; font-size: 1rem; }
.lp-meter { height: 10px; border-radius: 999px; background: var(--sand); overflow: hidden; margin: 18px 0 20px; }
.lp-meter span { display: block; height: 100%; width: var(--v); background: linear-gradient(90deg, var(--brand-600), var(--brand)); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease) .25s; }
.is-visible .lp-meter span { transform: none; }
.lp-rate--muted .lp-meter span { background: linear-gradient(90deg, #8D867E, #B5AEA5); }
.lp-rate--muted .lp-rate__num small { color: var(--ink-3); }

.lp-conditions { background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); padding: 24px 26px; margin-top: 28px; }
.lp-conditions p { margin-bottom: 14px; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.lp-tags li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--brand-50); color: var(--ink); font-size: .9375rem; }
.lp-tags .icon { color: var(--brand-700); width: 18px; height: 18px; }

/* ---------- Ecobonus: plafond unico ---------- */
.lp-eco { display: grid; gap: 48px; }
@media (min-width: 960px) { .lp-eco { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.section--dark p { color: #D9D4CD; }
.section--dark strong { color: #fff; }
.section--dark h3 { color: #fff; }
.lp-plafond { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 28px 22px; }
@media (min-width: 640px) { .lp-plafond { padding: 36px 34px; } }
@media (min-width: 960px) { .lp-plafond { position: sticky; top: calc(var(--header-h) + 24px); } }
.lp-plafond__label { font-family: var(--font-h); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand) !important; margin: 0 0 4px; }
.lp-plafond__num { font-family: var(--font-h); font-weight: 300; color: #fff !important; font-size: clamp(3rem, 7vw, 4.5rem); line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 0; }
.lp-plafond__num small { font-size: .5em; color: var(--brand); }
.lp-plafond__sub { font-size: .9375rem; color: #B5AEA5 !important; margin: 4px 0 24px; }
.lp-bar { display: flex; gap: 4px; height: 18px; border-radius: 999px; overflow: hidden; margin-bottom: 20px; background: rgba(255,255,255,.06); }
.lp-bar span { flex: 1; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.lp-bar span:nth-child(1) { background: #C9DDA4; transition-delay: .2s; }
.lp-bar span:nth-child(2) { background: var(--brand); transition-delay: .45s; }
.lp-bar span:nth-child(3) { background: #7FA346; transition-delay: .7s; }
.lp-bar span:nth-child(4) { background: #5E8530; transition-delay: .95s; }
.is-visible .lp-bar span { transform: none; }
.lp-works { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (min-width: 520px) { .lp-works { grid-template-columns: 1fr 1fr; } }
.lp-works li {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.05); color: #fff; font-size: 1rem;
  opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.lp-works li:nth-child(1) { transition-delay: .25s; } .lp-works li:nth-child(2) { transition-delay: .5s; }
.lp-works li:nth-child(3) { transition-delay: .75s; } .lp-works li:nth-child(4) { transition-delay: 1s; }
.is-visible .lp-works li { opacity: 1; transform: none; }
.lp-swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.lp-works .icon { color: var(--brand); margin-left: auto; }
.lp-plafond__caption { font-size: .875rem; color: #B5AEA5 !important; margin: 16px 0 0; }

.callout { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--r); padding: 18px 20px; margin: 24px 0; }
.callout .icon { width: 24px; height: 24px; margin-top: 2px; flex: none; }
.callout p { margin: 0; }
.callout--warn { background: #FFF8E6; border: 1px solid #F3D48A; }
.callout--warn p, .section--dark .callout--warn p { color: #5C4310; }
.callout--warn .icon { color: #B7791F; }
.callout--warn strong, .section--dark .callout--warn strong { color: #3E2C08; }
.callout--brand { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--ink); }
.callout--brand .icon { color: var(--brand-700); }
.callout--brand p { color: var(--ink); font-family: var(--font-h); font-size: 1.125rem; line-height: 1.45; }

.lp-mini { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 640px) { .lp-mini { grid-template-columns: 1fr 1fr; } }
.lp-mini__card { border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 22px; }
.lp-mini__card > .icon { color: var(--brand); width: 26px; height: 26px; margin-bottom: 12px; }
.lp-mini__card .lp-mini__num { font-family: var(--font-h); font-weight: 300; font-size: 2.25rem; color: #fff !important; line-height: 1.1; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.lp-mini__card h3 { font-size: 1.125rem; margin-bottom: 6px; }
.lp-mini__card p { font-size: .9875rem; margin: 0; }

/* ---------- Tempistiche ---------- */
.lp-quote { font-family: var(--font-h); font-weight: 300; font-size: clamp(1.625rem, 3.2vw, 2.5rem); line-height: 1.2; color: var(--ink); max-width: 26ch; margin: 0 0 40px; letter-spacing: -.01em; }
.lp-quote em { font-style: normal; color: var(--brand-700); font-weight: 400; }
.lp-cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .lp-cards { grid-template-columns: 1fr 1fr; gap: 28px; } }
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.lp-card__icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); margin-bottom: 18px; }
.lp-card__icon .icon { width: 24px; height: 24px; }
.lp-card h3 { margin-bottom: 10px; }
.lp-card p { font-size: 1rem; margin: 0; }
.lp-card p + p { margin-top: .8em; }
.lp-closing { margin: 32px 0 0; font-weight: 600; color: var(--ink); }

/* ---------- Nota legale ---------- */
.lp-note { background: var(--sand); padding-bottom: 56px; }
.lp-note .callout { margin: 0; background: var(--surface); border: 1px solid var(--line); }
.lp-note .callout p { color: var(--ink-2); font-size: .9375rem; }
.lp-note .callout .icon { color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  .lp-hero *, .lp-hero__grid { animation-delay: 0s !important; }
  .lp-frame__path { stroke-dashoffset: 0; }
  .lp-meter span, .lp-bar span, .lp-works li { transition-delay: 0s !important; }
  .lp-scroll-cue span { animation: none; }
}
.lp-updated { font-size: .9375rem; color: var(--ink-3); margin: 14px 0 0; }
