:root {
  --green: #3e6b3e;
  --green-dark: #294d2f;
  --ink: #1f231f;
  --paper: #faf9f6;
  --canvas: #f0f2eb;
  --sage: #e4eee0;
  --sage-deep: #d8e5d3;
  --sage-active: #d9e7d0;
  --muted: #7a8277;
  --muted-strong: #687265;
  --line: #eef2ea;
  --line-strong: #c5d8bf;
  --lilac: #f7f2fc;
  --lilac-deep: #ede3f7;
  --purple: #6c44bf;
  --warm: #f9ecd3;
  --warm-line: #f2dfb8;
  --coral: #e98a75;
  --blue: #dce8ef;
  --white: #fff;
  --shadow-card: 0 6px 24px rgba(60, 80, 50, .055);
  --shadow-soft: 0 12px 32px rgba(62, 107, 62, .10);
  --radius-card: 24px;
  --radius-featured: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-ui: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Nunito", "Plus Jakarta Sans", sans-serif;
}

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

html {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
  transition: transform .2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.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 {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.app-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Public calculator entry and tool page */
.calculator-entry-link {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid #d0e4c8;
  border-radius: 18px;
  background: linear-gradient(135deg, #e8f4e3, #f8fcf5);
  color: var(--green-dark);
  box-shadow: 0 10px 22px rgba(62, 107, 62, .11);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.calculator-entry-link:hover,
.calculator-entry-link:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #d5ebcd, #f3faef);
  box-shadow: 0 16px 28px rgba(62, 107, 62, .18);
}

.calculator-entry-link span {
  display: grid;
  gap: 1px;
}

.calculator-entry-link b {
  font-size: 15px;
}

.calculator-entry-link small {
  color: var(--muted-strong);
  font-size: 12px;
}

.calculator-entry-link i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-style: normal;
  font-weight: 800;
}

.calculator-page {
  background:
    radial-gradient(circle at 9% 17%, rgba(228, 238, 224, .85), transparent 22rem),
    var(--paper);
}

.calculator-header {
  position: relative;
  background: rgba(250, 249, 246, .86);
  border-bottom: 1px solid var(--line);
}

.calculator-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, .8fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding-block: clamp(72px, 10vw, 132px) 84px;
}

.calculator-copy h1 {
  max-width: 630px;
}

.calculator-copy h1 em {
  color: var(--green);
  font-style: normal;
}

.calculator-copy > p {
  max-width: 590px;
  color: var(--muted-strong);
  font-size: 18px;
}

.calculator-points {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.calculator-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #536151;
  font-size: 14px;
  font-weight: 600;
}

.calculator-points span,
.calculator-method li > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-self: flex-start;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 900;
}

/* ------------------------------------------------------------------
   Calculator-page step list — timeline dinamica
   Scopato su .calculator-page per non interferire con forecast-guide
   ------------------------------------------------------------------ */
.calculator-page .calculator-points {
  position: relative;
  gap: 0;
}

/* Linea verticale che connette i badge */
.calculator-page .calculator-points::before {
  content: "";
  position: absolute;
  top: 15px;          /* metà del primo badge (30px / 2) */
  bottom: 15px;       /* metà dell'ultimo badge */
  left: 14px;         /* centro del badge (30px / 2 - 1px) */
  width: 1px;
  background: linear-gradient(180deg, var(--line-strong) 0%, var(--green) 100%);
  opacity: 0.45;
  pointer-events: none;
}

.calculator-page .calculator-points li {
  position: relative;
  z-index: 1;
  padding: 11px 10px 11px 0;
  border-radius: 12px;
  transition:
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

/* Hover desktop */
@media (hover: hover) {
  .calculator-page .calculator-points li:hover {
    background: rgba(228, 238, 224, 0.72);
    transform: translateX(5px);
  }

  .calculator-page .calculator-points li:hover span {
    background: var(--sage-deep);
    transform: scale(1.12);
    box-shadow: 0 4px 10px rgba(62, 107, 62, 0.15);
  }
}

/* Tap mobile */
.calculator-page .calculator-points li:active {
  background: rgba(197, 216, 191, 0.75);
  transform: translateX(3px);
}

.calculator-page .calculator-points li:active span {
  transform: scale(1.06);
}

/* Transizione sul badge */
.calculator-page .calculator-points span {
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(52, 75, 47, 0.06);
  transition:
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

/* Badge 03 — punto d'arrivo: verde pieno */
.calculator-page .calculator-points li:last-child span {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 4px 12px rgba(62, 107, 62, 0.22);
}

.calculator-page .calculator-points li:last-child {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .calculator-page .calculator-points li,
  .calculator-page .calculator-points span { transition: none; }
}



.calculator-form-card {
  padding: clamp(24px, 4vw, 38px);
  border-color: #d5e4cf;
  box-shadow: 0 24px 60px rgba(62, 107, 62, .13);
}

.calculator-card-heading {
  margin-bottom: 26px;
}

.calculator-card-heading p,
.calculator-card-heading span {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calculator-card-heading h2 {
  margin: 4px 0 1px;
  font-size: clamp(32px, 4vw, 42px);
}

.calculator-card-heading span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .03em;
  text-transform: none;
}

.calculator-field {
  display: grid;
  gap: 7px;
  margin: 0 0 18px;
}

.calculator-field label,
.calculator-field legend {
  color: #465143;
  font-size: 13px;
  font-weight: 800;
}

.calculator-field small,
.calculator-tax-rate > small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.calculator-money-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fbfdf9;
}

.calculator-money-input:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(62, 107, 62, .1);
}

.calculator-money-input span {
  padding-left: 16px;
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
}

.calculator-money-input input,
.calculator-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.calculator-picker {
  position: relative;
}

.calculator-picker-toggle {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px 11px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(135deg, #fbfdf9, #f2f7ee);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  transition: border .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.calculator-picker-toggle:hover,
.calculator-picker-toggle:focus-visible,
.calculator-picker-toggle.is-open {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(62, 107, 62, .1);
}

.calculator-picker-toggle.is-open { background: #eaf4e5; }

.calculator-picker-toggle i {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-style: normal;
  line-height: 1;
  transition: transform .2s var(--ease);
}

.calculator-picker-toggle.is-open i { transform: rotate(180deg); }

.calculator-picker-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: grid;
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 18px;
  background: linear-gradient(145deg, #3e4340, #252926);
  box-shadow: 0 20px 40px rgba(31, 35, 31, .28);
}

.calculator-picker-menu[hidden] { display: none; }

.calculator-picker-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #f7faf5;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.calculator-picker-option:hover,
.calculator-picker-option:focus-visible,
.calculator-picker-option.is-selected {
  background: rgba(255, 255, 255, .13);
}

.calculator-picker-option.is-selected::before {
  content: "✓";
  width: 20px;
  flex: 0 0 20px;
  color: #cbeac2;
  font-size: 18px;
  font-weight: 800;
}

.calculator-picker-option > span { display: grid; gap: 1px; }
.calculator-picker-option b { font-size: 14px; }
.calculator-picker-option small { color: #c2c9c0; font-size: 11px; }

.calculator-money-input input {
  padding: 15px 16px 15px 8px;
  font-size: 22px;
  font-weight: 800;
}

.calculator-field select {
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfdf9;
  font-size: 13px;
}

.calculator-field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(62, 107, 62, .1);
}

.calculator-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calculator-tax-rate-note {
  display: block;
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.ateco-autocomplete {
  position: relative;
}

.ateco-autocomplete input[data-ateco-input] {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fbfdf9;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.ateco-autocomplete input[data-ateco-input]:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(62, 107, 62, .1);
}

.ateco-autocomplete-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  overflow: auto;
  max-height: 280px;
  margin: 0;
  padding: 7px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.ateco-autocomplete-menu[hidden] { display: none; }

.ateco-autocomplete-option {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.ateco-autocomplete-option:hover,
.ateco-autocomplete-option.is-active {
  background: var(--sage);
}

.ateco-autocomplete-option b {
  color: var(--green-dark);
  font-size: 12px;
  letter-spacing: .02em;
}

.ateco-autocomplete-option span {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.ateco-selection-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid #cadfc6;
  border-radius: 14px;
  background: #f2f8ef;
}

.ateco-selection-notice[hidden] {
  display: none;
}

.ateco-selection-notice.is-session {
  border-color: #e2d4f2;
  background: #f8f3fc;
}

.ateco-selection-notice > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ateco-selection-notice span,
.ateco-selection-notice small {
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.4;
}

.ateco-selection-notice strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ateco-selection-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.ateco-selection-actions button {
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  color: var(--green-dark);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ateco-selection-actions button:hover {
  border-color: var(--green);
  background: var(--sage);
}

.ateco-selection-actions button:focus-visible {
  outline: 3px solid rgba(62, 107, 62, .24);
  outline-offset: 2px;
}

.calculator-tax-rate {
  min-width: 0;
  padding: 0;
  border: 0;
}

.calculator-radio-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calculator-radio-group label {
  position: relative;
  display: block;
  cursor: pointer;
}

.calculator-radio-group input {
  position: absolute;
  opacity: 0;
}

.calculator-radio-group span {
  display: grid;
  gap: 1px;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fbfdf9;
}

.calculator-radio-group input:checked + span {
  border-color: var(--green);
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(62, 107, 62, .09);
}

.calculator-radio-group b {
  color: var(--green-dark);
  font-size: 16px;
}

.calculator-radio-group small {
  color: var(--muted);
  font-size: 10px;
}

.calculator-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 3px 0 18px;
  color: #64705f;
  font-size: 11px;
  line-height: 1.45;
}

.calculator-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--green);
}

.calculator-consent a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calculator-submit {
  width: 100%;
  justify-content: center;
}

.calculator-feedback {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.calculator-feedback.is-success { color: var(--green); }
.calculator-feedback.is-error { color: #ab493e; }

.calculator-results {
  padding-block: 42px 92px;
}

.calculator-results[hidden] { display: none; }

.calculator-results-heading {
  max-width: 670px;
  margin-bottom: 26px;
}

.calculator-results-heading h2 {
  margin: 10px 0;
}

.calculator-results-heading p { color: var(--muted-strong); }

.calculator-results-grid {
  display: grid;
  grid-template-columns: minmax(250px, .65fr) minmax(0, 1fr);
  gap: 18px;
}

.calculator-total-card {
  display: grid;
  align-content: center;
  min-height: 265px;
  padding: 32px;
  border-radius: var(--radius-featured);
  background: linear-gradient(145deg, var(--green-dark), var(--green));
  color: #fff;
  box-shadow: 0 20px 34px rgba(41, 77, 47, .2);
}

.calculator-total-card span {
  color: #cfe4ca;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.calculator-total-card strong {
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.06em;
}

.calculator-total-card small { color: #dbead8; font-weight: 700; }

.calculator-breakdown-card { padding: 20px 26px; }

.calculator-breakdown-card > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 14px;
}

.calculator-breakdown-card > div:last-child { border-bottom: 0; }
.calculator-breakdown-card strong { color: var(--ink); font-size: 16px; }
.calculator-breakdown-card .calculator-net { color: var(--green-dark); font-weight: 800; }
.calculator-breakdown-card .calculator-net strong { color: var(--green-dark); }

.calculator-contributions-detail {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 0 14px;
  list-style: none;
}

.calculator-contributions-detail:empty { display: none; }

.calculator-contributions-detail li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.calculator-contributions-detail b { color: var(--muted-strong); font-weight: 700; }

.calculator-disclaimer {
  margin-top: 18px;
  padding: 17px 20px;
  border-left: 4px solid #dca34d;
  border-radius: 0 16px 16px 0;
  background: #fff8e8;
  color: #77623e;
  font-size: 12px;
  line-height: 1.55;
}

.calculator-disclaimer strong { display: block; margin-bottom: 2px; }

.calculator-tool-handoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid #d8e5d3;
  border-radius: 20px;
  background: linear-gradient(135deg, #f3f8f0, #fbf9f4);
}

.calculator-tool-handoff[hidden] {
  display: none;
}

.calculator-tool-handoff > div {
  max-width: 680px;
}

.calculator-tool-handoff > div > span {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calculator-tool-handoff p {
  margin: 6px 0 0;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.6;
}

.calculator-tool-handoff p strong {
  color: var(--ink);
}

.calculator-tool-handoff .button {
  min-height: 48px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.calculator-method {
  --tax-motion-fast: .18s;
  --tax-motion-normal: .52s;
  padding-block: 58px 96px;
}

.calculator-method-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(44px, 7vw, 92px);
  padding: clamp(36px, 5vw, 62px);
  border: 1px solid #e5d9f3;
  border-radius: var(--radius-featured);
  background:
    radial-gradient(circle at 94% 88%, rgba(108, 68, 191, .08), transparent 24rem),
    linear-gradient(135deg, #f8f3fc 0%, #f3ecf9 58%, #f8f6fb 100%);
  box-shadow: 0 28px 72px rgba(91, 63, 130, .11);
}

.calculator-method-card::after {
  position: absolute;
  z-index: 0;
  right: 30px;
  bottom: 30px;
  width: 180px;
  height: 180px;
  border: 42px solid rgba(108, 68, 191, .04);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.calculator-method-intro {
  position: sticky;
  z-index: 2;
  top: clamp(92px, 13vh, 132px);
  align-self: start;
  padding-block: 18px;
}
.calculator-method h2 { margin: 12px 0 14px; text-wrap: balance; }
.calculator-method-intro > p { max-width: 430px; margin: 0; color: var(--muted-strong); font-size: 14px; line-height: 1.65; text-wrap: pretty; }

.calculator-method-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: #7450ad;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calculator-method-scroll-cue i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(108, 68, 191, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  font-size: 14px;
  font-style: normal;
  animation: calculator-method-cue 1.8s var(--ease) infinite;
}

.calculator-method-mobile-nav { display: none; }
.calculator-method-mobile-stage { display: contents; }
.calculator-method-mobile-sticky { display: contents; }

.calculator-method ol {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(26px, 4vw, 40px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.calculator-method li {
  --method-visual-bg: #eee5f8;
  --method-art-width: 360px;
  --method-art-x: 0px;
  --method-art-y: 33px;
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(190px, 1fr) clamp(210px, 31%, 252px);
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
  min-height: clamp(238px, 29vh, 278px);
  padding: 0 0 0 clamp(24px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid rgba(108, 68, 191, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 10px 26px rgba(91, 63, 130, .05);
  transition:
    opacity var(--tax-motion-normal) var(--ease),
    transform var(--tax-motion-normal) var(--ease),
    border-color var(--tax-motion-fast) ease,
    box-shadow var(--tax-motion-normal) var(--ease),
    background-color var(--tax-motion-fast) ease;
}

.calculator-method-step-contributions {
  --method-visual-bg: #e6dbf6;
  --method-art-width: 342px;
  --method-art-x: 4px;
  --method-art-y: 22px;
}

.calculator-method-step-tax {
  --method-visual-bg: #e2eee8;
  --method-art-width: 366px;
  --method-art-x: -4px;
  --method-art-y: 20px;
}

.calculator-method li::before {
  position: absolute;
  inset: 22px auto 22px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--purple);
  content: "";
  opacity: 0;
  transform: scaleY(.35);
  transition: opacity var(--tax-motion-fast) ease, transform var(--tax-motion-normal) var(--ease);
}

.tax-scroll-motion-ready .calculator-method li {
  opacity: .18;
  transform: translateY(28px) scale(.975);
}

.tax-scroll-motion-ready .calculator-method li.is-visible {
  opacity: .58;
  transform: translateY(0) scale(1);
}

.tax-scroll-motion-ready .calculator-method li.is-active {
  opacity: 1;
  border-color: rgba(108, 68, 191, .36);
  background: #fff;
  box-shadow: 0 26px 54px rgba(91, 63, 130, .16);
  transform: translateX(-8px) scale(1.015);
}

.calculator-method li.is-active::before { opacity: 1; transform: scaleY(1); }

.calculator-method li > .calculator-method-index {
  display: grid;
  width: 54px;
  height: 54px;
  align-self: center;
  place-items: center;
  border-radius: 17px;
  background: #e8dcf7;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  transition: color var(--tax-motion-fast) ease, background-color var(--tax-motion-fast) ease, box-shadow var(--tax-motion-normal) var(--ease);
}

.calculator-method li.is-active > .calculator-method-index {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 12px 24px rgba(108, 68, 191, .24);
}

.calculator-method-copy {
  z-index: 1;
  min-width: 0;
  align-self: center;
  padding-block: 28px;
}

.calculator-method-visual {
  position: relative;
  display: flex;
  min-width: 0;
  align-self: stretch;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid rgba(108, 68, 191, .09);
  background:
    radial-gradient(circle at 52% 84%, rgba(255, 255, 255, .84) 0 24%, transparent 25%),
    linear-gradient(155deg, rgba(255, 255, 255, .3), transparent 58%),
    var(--method-visual-bg);
}

.calculator-method-visual::after {
  position: absolute;
  right: 9%;
  bottom: 15px;
  left: 9%;
  height: 20px;
  border-radius: 50%;
  background: rgba(58, 39, 82, .1);
  content: "";
  filter: blur(12px);
}

.calculator-method-visual img {
  position: relative;
  z-index: 1;
  width: var(--method-art-width);
  max-width: none;
  height: auto;
  flex: 0 0 auto;
  transform: translate(var(--method-art-x), var(--method-art-y));
  transform-origin: center bottom;
  transition: transform var(--tax-motion-normal) var(--ease);
}

.calculator-method li.is-active .calculator-method-visual img {
  transform: translate(var(--method-art-x), calc(var(--method-art-y) - 4px)) scale(1.015);
}

.calculator-method h3 { margin: 0 0 7px; font-size: 20px; line-height: 1.25; }
.calculator-method li p { margin: 0; color: var(--muted-strong); font-size: 13px; line-height: 1.6; text-wrap: pretty; }
.calculator-method li small { display: inline-flex; margin-top: 12px; padding: 6px 9px; border-radius: 999px; background: var(--lilac); color: #65439f; font-size: 9px; font-weight: 800; letter-spacing: .02em; }

@keyframes calculator-method-cue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.tax-guide-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px;
  border: 1px solid #e2d8ef;
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 28px rgba(91, 63, 130, .06);
}

.tax-guide-flow div { display: grid; gap: 3px; min-width: 0; padding: 10px 6px; text-align: center; }
.tax-guide-flow span { color: var(--purple); font-size: 8px; font-weight: 900; letter-spacing: .06em; }
.tax-guide-flow strong { color: var(--ink); font-size: 11px; line-height: 1.2; }
.tax-guide-flow > i { color: #a89bb5; font-size: 15px; font-style: normal; font-weight: 900; }
.tax-guide-flow .is-result { border-radius: 13px; background: var(--purple); }
.tax-guide-flow .is-result span { color: #e9dafb; }
.tax-guide-flow .is-result strong { color: #fff; }

@media (max-width: 760px) {
  .calculator-header .policy-nav a:not(.button) { display: none; }
  .calculator-hero { grid-template-columns: 1fr; gap: 34px; padding-block: 56px 56px; }
  .calculator-copy > p { font-size: 16px; }
  .calculator-field-grid,
  .calculator-results-grid,
  .calculator-method-card { grid-template-columns: 1fr; }
  .calculator-method { padding-bottom: 72px; }
  .calculator-total-card { min-height: 210px; }
  .calculator-breakdown-card { padding-inline: 20px; }
  .ateco-selection-notice,
  .calculator-tool-handoff { align-items: stretch; flex-direction: column; }
  .ateco-selection-actions { flex-wrap: wrap; }
  .ateco-selection-actions button { flex: 1 1 150px; }
  .calculator-tool-handoff .button { width: 100%; white-space: normal; text-align: center; }
}

@media (max-width: 420px) {
  .calculator-hero.section,
  .calculator-results.section,
  .calculator-method.section { width: min(100% - 30px, 1180px); }
  .calculator-form-card { padding: 22px 18px; }
  .calculator-field-grid,
  .calculator-radio-group { grid-template-columns: 1fr; }
  .calculator-total-card { padding: 25px; }
}

/* Quarta fase showroom: la card del calcolatore si allarga mentre avanza lo scroll. */
.stage-view.stage-calculator {
  width: calc(100% + (var(--calculator-takeover-progress) * 354px));
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform-origin: left center;
  transition: none;
}

.calculator-takeover-card {
  position: relative;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  overflow: hidden;
  padding: clamp(28px, 3.5vw, 48px);
  border-radius: clamp(24px, calc(28px - (var(--calculator-takeover-progress) * 10px)), 28px);
  background:
    radial-gradient(circle at 88% 18%, rgba(207, 232, 197, .28), transparent 28%),
    linear-gradient(135deg, #214d2d, #3e6b3e 54%, #62975b);
  color: #fff;
  box-shadow: 0 24px 52px rgba(41, 77, 47, .27);
}

.calculator-takeover-card::before,
.calculator-takeover-card::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.calculator-takeover-card::before {
  width: clamp(230px, 30vw, 420px);
  height: clamp(230px, 30vw, 420px);
  right: -9%;
  bottom: -44%;
}

.calculator-takeover-card::after {
  width: 120px;
  height: 120px;
  right: 31%;
  top: -48px;
}

.calculator-takeover-copy,
.calculator-takeover-preview {
  position: relative;
  z-index: 1;
}

.calculator-takeover-kicker {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(226, 243, 218, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #dcefd6;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
}

.calculator-takeover-copy h3 {
  max-width: 580px;
  margin: 16px 0 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 66px);
  letter-spacing: -.055em;
  line-height: .95;
}

.calculator-takeover-copy h3 em { color: #d6eecf; font-style: normal; }

.calculator-takeover-copy p {
  max-width: 530px;
  margin-bottom: 24px;
  color: #dcebd7;
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1.6;
}

.calculator-takeover-cta {
  min-height: 50px;
  border-radius: 16px;
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 12px 22px rgba(22, 50, 28, .2);
}

.calculator-takeover-cta:hover { background: #eff8eb; }

.calculator-takeover-preview {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 265px;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(255, 255, 255, .23), rgba(234, 249, 228, .08));
  box-shadow: inset 0 1px rgba(255, 255, 255, .25), 0 22px 38px rgba(25, 60, 35, .18);
  backdrop-filter: blur(8px);
}

.calculator-takeover-preview > span {
  color: #dcefd7;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.calculator-takeover-preview strong {
  margin: 9px 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 3vw, 44px);
  letter-spacing: -.065em;
  line-height: .92;
  white-space: nowrap;
}

.calculator-takeover-preview strong small { font-size: .52em; }

.calculator-takeover-preview p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #e0f0dc;
  font-size: 11px;
  font-weight: 700;
}

.calculator-takeover-preview p i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #d6eecf;
  color: var(--green-dark);
  font-size: 11px;
  font-style: normal;
}

.calculator-takeover-bars {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 52px;
  margin-top: 20px;
}

.calculator-takeover-bars i {
  width: 20%;
  border-radius: 6px 6px 0 0;
  background: rgba(224, 240, 220, .7);
}

.calculator-takeover-bars i:nth-child(1) { height: 38%; }
.calculator-takeover-bars i:nth-child(2) { height: 63%; }
.calculator-takeover-bars i:nth-child(3) { height: 100%; background: #fff; }

.explainer-calculator {
  border-color: #bad9b1;
  background: #f0f8ed;
}

.explainer-calculator .explainer-number {
  background: #d7ead2;
  color: var(--green-dark);
}

.explainer-calculator.is-active {
  border-color: #8fbd85;
  background: linear-gradient(135deg, #edf8e9, #d8edd2);
  box-shadow: 0 12px 28px rgba(62, 107, 62, .16);
}

.explainer-calculator.is-active .explainer-number { background: var(--green); color: #fff; }

.calculation-section[data-active-stage="4"] .stage-canvas {
  overflow: visible;
  border-color: transparent;
}

.calculation-section[data-active-stage="4"] .method-explainers {
  opacity: calc(1 - var(--calculator-takeover-progress));
  transform: translateX(calc(var(--calculator-takeover-progress) * 42px));
  pointer-events: none;
}

@media (max-width: 760px) {
  .js .calculation-section .calculation-scroll-track { min-height: 300vh; }

  .method-explainers { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .calculation-section[data-active-stage="4"] [data-stage-view="4"] {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: none;
    z-index: auto;
  }

  .stage-view.stage-calculator { width: 100%; }

  .calculator-takeover-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 26px 22px;
  }

  .calculator-takeover-preview { min-height: 185px; }

  .calculation-section[data-active-stage="4"] .method-explainers {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}



.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow>span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(62, 107, 62, .10);
}

.eyebrow-purple {
  color: var(--purple);
}

.eyebrow-purple>span {
  background: var(--purple);
  box-shadow: 0 0 0 5px rgba(108, 68, 191, .10);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -.045em;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(52px, 5.1vw, 76px);
  font-weight: 900;
  line-height: .98;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 900;
  line-height: 1.03;
}

h1 em,
h2 em {
  color: var(--green);
  font-style: normal;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 14px;
  padding: 11px 17px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

.button span {
  font-size: 18px;
  line-height: 1;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 6px 18px rgba(62, 107, 62, .24);
}

.button-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 9px 22px rgba(62, 107, 62, .27);
}

.button-secondary {
  border: 1.5px solid var(--line-strong);
  background: rgba(255, 255, 255, .75);
  color: var(--green);
  box-shadow: none;
}

.button-secondary:hover {
  background: white;
}

.button-large {
  min-height: 52px;
  padding: 14px 20px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(62, 107, 62, .18);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(250, 249, 246, .90);
  backdrop-filter: blur(16px);
  transition: border-color .2s, box-shadow .2s;
}

.site-header.is-scrolled {
  border-color: rgba(31, 35, 31, .07);
  box-shadow: 0 8px 26px rgba(31, 35, 31, .045);
}

.header-inner {
  width: min(100% - 48px, 1240px);
  height: 78px;
  display: flex;
  align-items: center;
  gap: 36px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.045em;
}

.brand-symbol {
  width: 29px;
  height: 28px;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  padding: 4px;
  border-radius: 9px;
  background: var(--sage);
}

.brand-symbol i {
  display: block;
  width: 5px;
  border-radius: 5px 5px 2px 2px;
  background: var(--green);
}

.brand-symbol i:nth-child(1) {
  height: 10px;
}

.brand-symbol i:nth-child(2) {
  height: 18px;
}

.brand-symbol i:nth-child(3) {
  height: 14px;
}

.site-header .brand {
  flex: 0 0 auto;
  gap: 0;
}

.site-header .brand-logo {
  width: auto;
  height: 90px;
  max-width: 750px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-left: auto;
}

.desktop-nav a,
.desktop-nav-menu-toggle,
.desktop-nav-assistant-trigger {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: #687066;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
}

.desktop-nav a::after,
.desktop-nav-menu-toggle::after,
.desktop-nav-assistant-trigger::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav-menu-toggle:hover,
.desktop-nav-assistant-trigger:hover,
.desktop-nav-assistant-trigger:focus-visible,
.desktop-nav-group.is-open .desktop-nav-menu-toggle {
  color: var(--green);
}

.desktop-nav a:hover::after,
.desktop-nav-menu-toggle:hover::after,
.desktop-nav-assistant-trigger:hover::after,
.desktop-nav-assistant-trigger:focus-visible::after,
.desktop-nav-group.is-open .desktop-nav-menu-toggle::after {
  transform: scaleX(1);
}

.desktop-nav a[aria-current="page"] {
  color: var(--green);
}

.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.desktop-nav-group {
  position: relative;
}

.desktop-nav-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.desktop-nav-menu-toggle > span[aria-hidden="true"] {
  font-size: 15px;
  line-height: 1;
  transition: transform .2s var(--ease);
}

.desktop-nav-group.is-open .desktop-nav-menu-toggle > span[aria-hidden="true"] {
  transform: rotate(180deg);
}

.desktop-nav-dropdown {
  position: absolute;
  z-index: 60;
  top: calc(100% + 20px);
  left: 50%;
  display: grid;
  width: max-content;
  min-width: 230px;
  gap: 3px;
  padding: 10px;
  border: 1px solid #dce4d8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(31, 35, 31, .13);
  transform: translateX(-50%);
}

.desktop-nav-dropdown[hidden] {
  display: none;
}

.desktop-nav-dropdown a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
}

.desktop-nav-dropdown a::after {
  display: none;
}

.desktop-nav-dropdown a:hover,
.desktop-nav-dropdown a:focus-visible {
  background: #f1f7ef;
  color: var(--green-dark);
}

.header-cta {
  flex: 0 0 auto;
  font-size: 13px;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

/* Hero */
.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(480px, 1.07fr);
  align-items: center;
  gap: clamp(48px, 6vw, 84px);
  padding-block: 28px 70px;
}

.hero-copy>p {
  max-width: 630px;
  margin-bottom: 30px;
  color: #626b60;
  font-size: 17px;
  line-height: 1.72;
}

.hero-copy .eyebrow {
  margin-bottom: 23px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 20px;
  margin-top: 30px;
  color: #646d62;
  font-size: 12px;
  font-weight: 700;
}

.hero-reassurance span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-reassurance i {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-active);
  color: var(--green);
  font-size: 11px;
  font-style: normal;
}

.hero-product {
  position: relative;
  min-width: 0;
  padding: 24px 0 60px;
}

.hero-mockup-wrapper {
  position: relative;
  z-index: 2;
  width: 135%;
  margin-left: -20%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-mac-card {
  position: relative;
  z-index: 2;
  width: 100%;
}

.mockup-mac-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 32px rgba(45, 65, 38, .14));
}

.mockup-iphone-card {
  position: absolute;
  z-index: 4;
  right: -90px;
  bottom: -40px;
  width: 100%;
  max-width: 500px;
}

.mockup-iphone-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(30, 48, 25, .25));
}

.hero-ai-callout {
  display: contents;
}

.hero-mascot {
  position: absolute;
  z-index: 5;
  right: 400px;
  bottom: 484px;
  width: 250px;
  height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(52, 71, 43, .16));
}


.memphis-shape {
  position: absolute;
  pointer-events: none;
}

.hero-ring {
  top: 2px;
  right: 0;
  width: 185px;
  height: 185px;
  border: 28px solid #f2dfb8;
  border-radius: 50%;
  opacity: .9;
}

.memphis-dots,
.feature-dots,
.final-dots {
  background-image: radial-gradient(rgba(62, 107, 62, .42) 2px, transparent 2.4px);
  background-size: 15px 15px;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 42px;
  width: 112px;
  height: 88px;
}

.audience-strip {
  position: relative;
  padding-block: 28px 32px;
  border-block: 1px solid #cbd8c5;
  background: linear-gradient(180deg, #edf3e9 0%, #f7faf5 100%);
  text-align: center;
  overflow: hidden;
}

.strip-title {
  margin-bottom: 18px;
}

.strip-title span {
  color: #4e5d4c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  padding-block: 6px;
  overflow: hidden;
}

/* Sfumature laterali tramite pseudo-elementi — nessun uso di mask-image/GPU compositing */
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, #edf3e9 0%, transparent 100%);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, #edf3e9 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 16px;
  padding-block: 4px;
  animation: marquee-scroll 40s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid #d0dfcc;
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(60, 90, 50, 0.05);
  white-space: nowrap;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.ribbon-item:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}

.ribbon-item i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-active);
  color: var(--green);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Calculation */
.calculation-section {
  padding-block: 128px;
}

.calculation-scroll-track {
  --scroll-progress: 0;
  --calculator-takeover-progress: 0;
}

.js .calculation-scroll-track {
  min-height: 340vh;
}

.section-intro {
  max-width: 820px;
  margin-bottom: 56px;
}

.section-intro .eyebrow,
.features-heading .eyebrow,
.steps-heading .eyebrow,
.faq-heading .eyebrow {
  margin-bottom: 20px;
}

.section-intro p {
  max-width: 680px;
  margin-bottom: 0;
  color: #626b60;
  font-size: 16px;
}



.calculation-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: stretch;
  gap: 24px;
}

.js .calculation-layout {
  position: sticky;
  top: max(88px, calc(50vh - 310px));
  height: min(620px, calc(100vh - 132px));
}

/* Showroom Interattivo: Tabbed Canvas */
.stage-canvas {
  position: relative;
  display: grid;
  align-items: start;
  padding: 0;
  overflow: hidden;
  border-color: var(--line-strong);
  background: transparent;
  box-shadow: none;
}

/* Transizione cross-fade pulita per ogni scheda */
.stage-view {
  grid-area: 1 / 1;
  height: 100%;
  padding: 28px;
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, #fff 0 70%, #f2f6ef 70% 100%);
  box-shadow: var(--shadow-soft);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

/* Card più piccole (Stage 1 e 2): gradiente verde nella parte inferiore in linea con la palette dell'app */
.stage-current,
.stage-forecast {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  min-height: 100%;
  background: linear-gradient(160deg, #ffffff 0%, #f4f8f2 35%, var(--sage) 75%, var(--sage-deep) 100%);
  border: 1px solid var(--line);
}

.stage-current {
  background:
    radial-gradient(circle at 88% 15%, rgba(126, 166, 116, .16), transparent 25%),
    linear-gradient(155deg, #fff 0%, #f6faf4 54%, #e6efe2 100%);
}

.stage-forecast {
  border-color: #dfd3ef;
  background:
    radial-gradient(circle at 8% 92%, rgba(218, 171, 69, .13), transparent 27%),
    linear-gradient(150deg, #fff 0%, #faf7fe 52%, #eee7f7 100%);
}

.stage-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.stage-heading-row .report-header {
  flex: 1;
  padding: 0;
  border: 0;
}

.live-update,
.forecast-period {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 800;
}

.live-update i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5b9c61;
  box-shadow: 0 0 0 4px rgba(91, 156, 97, .13);
}

.forecast-period {
  border-color: #ded2ef;
  color: var(--purple);
}

.current-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
  gap: 20px;
  padding: 12px 15px;
  border: 1px solid rgba(190, 211, 184, .9);
  border-radius: 20px;
  background: rgba(255, 255, 255, .76);
}

.current-total {
  display: grid;
  align-content: center;
}

.current-total small,
.forecast-value small,
.current-footer small,
.reserve-card p small {
  color: var(--muted-strong);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}

.current-total>strong,
.forecast-value>strong {
  margin-block: 3px 6px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1;
  letter-spacing: -.055em;
}

.current-total>span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--sage-active);
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 700;
}

.tax-donut {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 24.9%, #dfe9dc 24.9% 100%);
  box-shadow: 0 10px 24px rgba(48, 82, 42, .1);
}

.tax-donut::before {
  grid-area: 1 / 1;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.tax-donut>div {
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  text-align: center;
}

.tax-donut strong {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: -.04em;
}

.tax-donut small {
  color: var(--muted-strong);
  font-size: 8px;
}

.current-ledger {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
}

.ledger-head,
.ledger-entry {
  display: grid;
  align-items: center;
}

.ledger-head {
  grid-template-columns: 1fr auto;
  padding: 8px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ledger-entry {
  grid-template-columns: 34px minmax(0, 1fr) auto 68px;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid #edf2eb;
}

.ledger-entry:last-child {
  border-bottom: 0;
}

.ledger-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--sage-active);
  color: var(--green);
  font-size: 8px;
  font-weight: 900;
}

.ledger-icon.warm {
  background: var(--warm);
  color: #856528;
}

.ledger-entry p {
  display: grid;
  margin: 0;
  line-height: 1.35;
}

.ledger-entry p b {
  font-size: 10px;
}

.ledger-entry p small {
  color: var(--muted-strong);
  font-size: 8px;
}

.ledger-entry>strong {
  font-family: var(--font-display);
  font-size: 12px;
}

.ledger-entry>i {
  padding: 4px 7px;
  border-radius: 999px;
  background: #edf5ea;
  color: var(--green);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

.current-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.current-footer>span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .74);
}

.current-footer strong {
  font-family: var(--font-display);
  font-size: 15px;
}

.forecast-badge {
  background: var(--lilac-deep);
  color: var(--purple);
}

.forecast-visual {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid #ded2ef;
  border-radius: 22px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 14px 30px rgba(83, 52, 135, .06);
}

.forecast-value {
  display: grid;
  align-content: center;
}

.forecast-value>span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eee8f7;
  color: var(--purple);
  font-size: 9px;
  font-weight: 800;
}

.forecast-value>span i {
  font-style: normal;
}

.forecast-curve {
  width: 100%;
  height: 150px;
  overflow: visible;
}

.forecast-gridline {
  fill: none;
  stroke: #e8e1ef;
  stroke-width: 1;
}

.forecast-area {
  fill: url(#forecastArea);
}

.forecast-solid,
.forecast-dashed {
  fill: none;
  stroke: var(--purple);
  stroke-linecap: round;
  stroke-width: 4;
}

.forecast-dashed {
  stroke-dasharray: 8 9;
}

.forecast-curve circle {
  fill: #fff;
  stroke: var(--purple);
  stroke-width: 4;
}

.forecast-curve .forecast-end {
  fill: #d9ad45;
  stroke: #fff;
}

.forecast-curve text {
  fill: #81778b;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 800;
}

.forecast-bottom {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 12px;
  margin-top: auto;
}

.forecast-insights {
  min-height: 88px;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, .55fr);
  gap: 12px;
}

.forecast-model,
.forecast-tax-total {
  border: 1px solid #e2d8ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
}

.forecast-model {
  display: grid;
  align-content: center;
  padding: 12px 14px;
}

.forecast-model-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted-strong);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
}

.forecast-model-head i {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eee8f7;
  color: var(--purple);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0;
}

.forecast-model-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.forecast-model-stats>div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
  border-right: 1px solid #e9e2f0;
}

.forecast-model-stats>div:last-child {
  padding-right: 0;
  border: 0;
}

.forecast-model-stats>div>i {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #f0eaf8;
  color: var(--purple);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.forecast-model-stats p {
  min-width: 0;
  display: grid;
  margin: 0;
  line-height: 1.25;
}

.forecast-model-stats strong {
  font-family: var(--font-display);
  font-size: 12px;
  white-space: nowrap;
}

.forecast-model-stats small {
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forecast-tax-total {
  display: grid;
  align-content: center;
  padding: 12px 14px;
}

.forecast-tax-total>span {
  color: var(--muted-strong);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .04em;
}

.forecast-tax-total>strong {
  margin-block: 3px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -.04em;
}

.forecast-tax-total>div {
  height: 5px;
  margin-block: 4px 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe5f1;
}

.forecast-tax-total>div i {
  width: 68%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), #d7ab42);
}

.forecast-tax-total>small {
  color: var(--muted-strong);
  font-size: 7px;
}

.forecast-months,
.reserve-card {
  border: 1px solid #e2d8ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
}

.forecast-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.forecast-months>span {
  display: grid;
  align-content: center;
  padding: 12px;
  border-right: 1px solid #e8e1ef;
}

.forecast-months>span:last-child {
  border: 0;
  background: #f8f0dc;
}

.forecast-months small {
  color: var(--muted-strong);
  font-size: 8px;
  font-weight: 800;
}

.forecast-months strong {
  font-family: var(--font-display);
  font-size: 12px;
}

.reserve-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.reserve-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--warm);
  color: #8a681f;
  font-weight: 900;
}

.reserve-card p {
  display: grid;
  margin: 0;
}

.reserve-card p strong {
  font-family: var(--font-display);
  font-size: 16px;
}

.reserve-card p em {
  color: var(--muted-strong);
  font-family: var(--font-ui);
  font-size: 8px;
  font-style: normal;
}

.reserve-status {
  padding: 5px 7px;
  border-radius: 999px;
  background: #edf5ea;
  color: var(--green);
  font-size: 7px;
  font-weight: 800;
}

/* Scheda Attiva */
.calculation-section[data-active-stage="1"] [data-stage-view="1"],
.calculation-section[data-active-stage="2"] [data-stage-view="2"],
.calculation-section[data-active-stage="3"] [data-stage-view="3"],
.calculation-section[data-active-stage="4"] [data-stage-view="4"] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  z-index: 3;
  pointer-events: auto;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear;
}

.stage-view.is-stage-leaving {
  visibility: visible;
  opacity: 1;
  z-index: 4;
  pointer-events: none;
}

.method-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.method-topline h3 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.method-summary {
  display: grid;
  grid-template-columns: 1fr 145px;
  align-items: end;
  gap: 24px;
  padding-block: 26px 22px;
  border-bottom: 1px solid var(--line);
}

.summary-main {
  display: grid;
}

.summary-main>span {
  color: #667065;
  font-size: 11px;
  font-weight: 700;
}

.summary-main>strong {
  margin-block: 4px;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.05em;
}

.summary-main>small {
  color: var(--muted-strong);
  font-size: 11px;
}

.method-chart {
  height: 82px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid #dbe4d7;
}

.method-chart i {
  width: 100%;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: #cadbc5;
  transition: height .35s var(--ease);
}

.method-chart i:nth-last-child(-n+2) {
  background: var(--green);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-block: 18px;
}

.result-card {
  padding: 15px 16px;
  border: 1px solid #dfebd9;
  border-radius: 18px;
  background: linear-gradient(135deg, #f4f7f2, #ebf2e7);
}

.result-card span {
  display: block;
  color: #5e695d;
  font-size: 11px;
  font-weight: 700;
}

.result-card strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -.04em;
}

.result-card strong small {
  color: var(--muted);
  font-size: 9px;
}

.calculation-assumptions {
  margin: auto 4px 0;
  padding-top: 18px;
  color: var(--muted-strong);
  font-size: 10px;
  line-height: 1.55;
}

.ai-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  flex-shrink: 0;
}

.ai-icon img {
  width: 750px;
  height: auto;
  transform: scale(2);
  object-fit: contain;
  display: block;
}

/* Stage 3: contenuto del report, ospitato dentro il foglio .stage-view */
.final-report-sheet {
  position: relative;
  height: 100%;
  padding-right: 150px;
}

.report-header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.report-badge,
.report-badge-white {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.report-badge {
  background: var(--sage-active);
  color: var(--green);
}

.report-badge-white {
  background: #ffffff;
  color: var(--green);
  border: 1px solid var(--line-strong);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.report-header h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.report-header p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.5;
}

.report-main-metric {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.report-main-metric>small {
  color: #667065;
  font-size: 11px;
  font-weight: 700;
}

.report-price {
  display: block;
  margin-block: 6px 4px;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.05em;
}

.report-price small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.report-note {
  margin: 0;
  color: var(--muted-strong);
  font-size: 11px;
}

.report-breakdown {
  display: grid;
  gap: 10px;
  margin-block: 18px;
}

.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, .78);
}

.report-row span {
  color: #5e695d;
  font-size: 12px;
  font-weight: 700;
}

.report-row strong {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -.02em;
}

.report-ai-callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #e1d3f2;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--lilac), var(--lilac-deep));
}

.report-ai-callout p {
  margin: 0;
  color: #665385;
  font-size: 11px;
  line-height: 1.5;
}

.report-ai-callout b {
  color: #291b42;
}

.report-ai-callout button {
  min-height: 40px;
  border: 1px solid #c9b5ea;
  border-radius: 11px;
  padding-inline: 11px;
  background: white;
  color: var(--purple);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.report-mascot-cutout {
  position: absolute;
  z-index: 1;
  right: -163px;
  bottom: 220px;
  width: 600px;
  max-height: 750px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .1));
}

.method-explainers {
  position: relative;
  display: grid;
  align-content: start;
  gap: 20px;
}

.method-explainers::before,
.method-explainers::after {
  position: absolute;
  z-index: 2;
  top: 34px;
  bottom: 34px;
  left: 34px;
  width: 2px;
  border-radius: 999px;
  content: "";
  pointer-events: none;
  transform-origin: top;
}

.method-explainers::before {
  background: #dce5d8;
}

.method-explainers::after {
  background: var(--green);
  transform: scaleY(var(--scroll-progress));
  transition: transform .12s linear;
}

.method-progress {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 26px;
  padding-inline: 2px;
}

.method-progress-track {
  height: 4px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8df;
}

.method-progress-track i {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #d99b26);
  transform: scaleX(var(--scroll-progress));
  transform-origin: left;
  transition: transform .12s linear;
}

.method-progress-count {
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.method-progress-count b {
  color: var(--green-dark);
  font-size: 12px;
}

.explainer {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  color: inherit;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  text-align: left;
  transition: border .2s, background .2s, transform .2s, opacity .2s;
}

.explainer:focus-visible {
  outline: 3px solid rgba(61, 111, 59, .25);
  outline-offset: 3px;
}

.explainer.is-active {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, var(--sage), #edf3e9);
  transform: translateX(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.explainer:not(.is-active) {
  opacity: .85;
}

.explainer:not(.is-active):hover {
  opacity: 1;
}

.explainer-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf1e9;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.explainer.is-active .explainer-number {
  background: var(--green);
  color: white;
}

.explainer[data-stage-trigger="2"] .explainer-number {
  background: #eee8f7;
  color: var(--purple);
}

.explainer[data-stage-trigger="2"].is-active {
  border-color: #d7c8eb;
  background: linear-gradient(135deg, #f8f5fc, #ebe3f5);
  box-shadow: 0 12px 28px rgba(101, 69, 153, .13);
}

.explainer[data-stage-trigger="2"].is-active .explainer-number {
  background: var(--purple);
  color: #fff;
}

.explainer h3 {
  margin: 2px 0 7px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.25;
}

.explainer p {
  margin: 0;
  color: #697267;
  font-size: 12px;
  line-height: 1.6;
}

/* Card 03 (Stima che si spiega) - Tema Giallo Miele / Ambra */
.explainer-yellow {
  border-color: #f3e8c9;
  background: #fdfaf2;
}

.explainer-yellow .explainer-number-yellow {
  background: #f1d8aa;
  color: #7b6339;
}

.explainer-yellow.is-active {
  border-color: #e2c475;
  background: linear-gradient(135deg, #fff9eb, #fbeec8);
  transform: translateX(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(212, 160, 23, 0.16);
  opacity: 1;
}

.explainer-yellow.is-active .explainer-number-yellow {
  background: #d99b26;
  color: #ffffff;
}

/* AI */
.ai-section {
  position: relative;
  overflow: hidden;
  padding-block: 116px;
  border-block: 1px solid #ebe4f2;
  background: linear-gradient(145deg, #f9f6fc, #f2edf8);
}

.ai-section::before {
  position: absolute;
  top: -150px;
  left: -120px;
  width: 360px;
  height: 360px;
  border: 60px solid rgba(217, 231, 208, .72);
  border-radius: 50%;
  content: "";
}

.ai-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(450px, 1.12fr);
  align-items: center;
  gap: clamp(60px, 8vw, 110px);
}

.ai-copy h2 {
  max-width: 600px;
  margin-top: 22px;
}

.ai-copy h2 em {
  color: var(--purple);
}

.ai-copy>p {
  max-width: 570px;
  color: #665d72;
  font-size: 16px;
  line-height: 1.75;
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 27px 0 31px;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #504958;
  font-size: 13px;
  font-weight: 700;
}

.check-list span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  border-radius: 50%;
  background: #e5daf5;
  color: var(--purple);
  font-size: 11px;
}

.button-ai {
  background: var(--purple);
  color: white;
  box-shadow: 0 7px 19px rgba(108, 68, 191, .22);
}

.button-ai:hover {
  background: #5836a0;
}

.ai-stage {
  position: relative;
  min-width: 0;
  padding: 24px 10px 62px;
}

.ai-carousel { position: relative; z-index: 2; min-width: 0; padding: 4px 10px; }
.ai-carousel-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ai-carousel-track::-webkit-scrollbar { display: none; }
.ai-insight-card { position: relative; min-width: 0; flex: 0 0 100%; overflow: hidden; scroll-snap-align: start; border: 1px solid #ded1ee; border-radius: 28px; background: #fff; box-shadow: 0 20px 52px rgba(75, 47, 109, .12); }
.ai-insight-card::before { position: absolute; top: -88px; right: -58px; width: 180px; height: 180px; border-radius: 50%; background: rgba(118, 82, 181, .08); content: ""; }
.js .ai-carousel-track { position: relative; display: block; height: var(--ai-carousel-height, 362px); overflow: visible; scroll-snap-type: none; touch-action: pan-y pinch-zoom; }
.js .ai-insight-card { position: absolute; inset: 0; display: block; width: 100%; opacity: 0; pointer-events: none; transform: translateX(11%) rotate(.5deg) scale(.97); transition: transform .72s var(--ease), opacity .52s ease; }
.js .ai-insight-card.is-active { z-index: 3; opacity: 1; pointer-events: auto; transform: translateX(0) scale(1); }
.js .ai-insight-card.is-before { z-index: 2; opacity: .22; transform: translateX(-7%) rotate(-.55deg) scale(.96); }
.js .ai-insight-card.is-after { z-index: 1; opacity: .3; transform: translateX(7%) rotate(.55deg) scale(.96); }
.ai-insight-header { position: relative; display: flex; align-items: center; gap: 11px; padding: 16px 19px; border-bottom: 1px solid #ede5f3; background: rgba(255, 255, 255, .82); }
.ai-insight-header > div:not(.assistant-avatar) { min-width: 0; flex: 1; }
.ai-insight-header small { display: block; color: #7a6c87; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.ai-insight-header h3 { margin: 2px 0 0; color: #291b42; font-family: var(--font-display); font-size: 18px; line-height: 1.15; letter-spacing: -.025em; }
.ai-example-pill { padding: 5px 8px; border-radius: 999px; background: #eef7ee; color: #2f7439; font-size: 9px; font-weight: 900; }
.ai-insight-body { position: relative; min-height: 272px; display: flex; flex-direction: column; padding: 22px; background: linear-gradient(145deg, #fff 0%, #fcfbff 100%); }
.ai-card-kicker { margin: 0 0 8px; color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.ai-card-value { color: #291b42; font-family: var(--font-display); font-size: clamp(36px, 4vw, 48px); line-height: 1; letter-spacing: -.04em; }
.ai-card-value small { color: #7a6c87; font-size: 15px; letter-spacing: -.02em; }
.ai-card-note { margin: auto 0 0; color: #70647c; font-size: 12px; line-height: 1.55; }
.ai-card-note b { color: #443064; }
.ai-meter { height: 9px; margin-top: 26px; overflow: hidden; border-radius: 999px; background: #e9dff5; }
.ai-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), #9465df); }
.ai-forecast-chart { width: 100%; height: 122px; margin-top: 16px; }
.ai-chart-grid { fill: none; stroke: #e7ddf1; stroke-width: 1; }
.ai-chart-area { fill: rgba(118, 82, 181, .13); }
.ai-chart-solid { fill: none; stroke: var(--purple); stroke-linecap: round; stroke-width: 5; }
.ai-chart-dashed { fill: none; stroke: #8960cc; stroke-dasharray: 10 10; stroke-linecap: round; stroke-width: 5; }
.ai-forecast-chart circle { fill: #fff; stroke: var(--purple); stroke-width: 4; }
.ai-forecast-chart .ai-chart-end { fill: #d9a83e; stroke: #fff; }
.ai-forecast-chart text { fill: #7a6c87; font-family: var(--font-body); font-size: 10px; font-weight: 800; }
.ai-deadline-list { display: grid; gap: 10px; margin-top: 7px; }
.ai-deadline-list > div { display: flex; gap: 10px; align-items: center; padding-bottom: 9px; border-bottom: 1px solid #eee9e3; }
.ai-deadline-list > div:last-child { border: 0; padding-bottom: 0; }
.ai-deadline-list i { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 26px; border-radius: 9px; background: #f9ecd3; color: #906c1d; font-size: 9px; font-style: normal; font-weight: 900; }
.ai-deadline-list p { display: grid; gap: 1px; margin: 0; }
.ai-deadline-list b { color: #2c3630; font-size: 12px; }
.ai-deadline-list span { color: var(--muted-strong); font-size: 10px; line-height: 1.35; }
.ai-insight-card-reserve { border-color: #d9caee; }
.ai-insight-card-reserve .ai-insight-body { background: linear-gradient(145deg, #fff 0%, #f7f2fc 100%); }
.ai-insight-card-reserve .assistant-avatar { background: var(--purple); }
.ai-insight-card-forecast { border-color: #c8ddc2; }
.ai-insight-card-forecast::before { background: rgba(89, 139, 86, .10); }
.ai-insight-card-forecast .ai-insight-body { background: linear-gradient(145deg, #fff 0%, #f2f8ef 100%); }
.ai-insight-card-forecast .assistant-avatar { background: var(--green); }
.ai-insight-card-forecast .ai-card-kicker { color: var(--green-dark); }
.ai-insight-card-deadlines { border-color: #ead9ad; }
.ai-insight-card-deadlines::before { background: rgba(217, 168, 62, .12); }
.ai-insight-card-deadlines .ai-insight-body { background: linear-gradient(145deg, #fff 0%, #fffaf0 100%); }
.ai-insight-card-deadlines .assistant-avatar { background: #b38428; }
.ai-insight-card-deadlines .ai-card-kicker { color: #916f21; }

.ai-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-color: #e1d3f2;
  box-shadow: 0 18px 46px rgba(75, 47, 109, .11);
}

.ai-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid #ede5f3;
  background: #fcfafd;
}

.assistant-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  overflow: hidden;
}

.assistant-avatar img {
  width: 32px;
  height: 32px;
  transform: scale(2.3);
  object-fit: contain;
  display: block;
}

.ai-card-title {
  flex: 1;
}

.ai-card-title small {
  display: block;
  color: #7a6c87;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.ai-card-title h3 {
  margin: 2px 0 0;
  color: #291b42;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.ai-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf6ec;
  color: #1e7e34;
  font-size: 11px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, .2);
}

.ai-card-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #ffffff;
  gap: 20px;
}

.ai-estimate-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #f7f2fc;
  border: 1px solid #ede5f3;
  border-radius: 16px;
}

.estimate-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.estimate-meta small {
  color: var(--purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}

.estimate-meta strong {
  color: #291b42;
  font-size: 34px;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: -.03em;
}

.estimate-meta strong span {
  font-size: 15px;
  color: #7a6c87;
  font-weight: 700;
  margin-left: 4px;
}

.progress-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed #e2d5f0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.progress-info span {
  color: #7a6c87;
  font-weight: 600;
}

.progress-info strong {
  color: var(--purple);
  font-weight: 800;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: #e6daf5;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), #9061df);
  border-radius: 999px;
}

.ai-advice-block {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: #fffbdf;
  border: 1px solid #fae69e;
  border-radius: 14px;
  color: #483d1c;
}

.advice-icon {
  flex: 0 0 auto;
  font-size: 20px;
  margin-top: 2px;
}

.advice-content small {
  display: block;
  color: #8c7322;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 4px;
}

.advice-content p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #3b3014;
  font-weight: 600;
}

/* La mascotte della sezione AI ha sostituito il video: vedi assets/css/ai-mascot.css.
   Il vecchio riquadro usava right:-40px, che con .ai-section{overflow:hidden} viene
   tagliato fra 960px e 1260px; il video non lo mostrava solo per via della maschera
   radiale sui bordi. Il vettoriale ha bordi netti, quindi ora e' ancorato a right:0. */

.memphis-plus {
  position: absolute;
  z-index: 1;
  color: #d7c6e9;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
}

.plus-one {
  top: 0;
  right: 0;
  transform: rotate(12deg);
}

.plus-two {
  left: 0;
  bottom: 12px;
  color: #c8dec1;
  transform: rotate(-12deg);
}

/* Features */
.features-section {
  padding-block: 128px;
}

.features-heading {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 52px;
}

.features-heading h2 {
  margin-bottom: 0;
}

.features-heading>p {
  margin: 0 0 8px;
  color: #646d62;
  font-size: 15px;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.feature-deadlines,
.feature-documents {
  grid-column: span 3;
}

.feature-card {
  position: relative;
  min-width: 0;
  min-height: 405px;
  overflow: hidden;
  padding: 28px;
}

.feature-copy {
  position: relative;
  z-index: 3;
  max-width: 62%;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 13px;
  font-style: normal;
  font-weight: 800;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-icon.green img {
  padding: 6px;
}

.feature-icon.warm img {
  padding: 2px;
}

.feature-icon.green {
  background: var(--sage-active);
  color: var(--green);
}

.feature-icon.warm {
  background: var(--warm);
  color: #8a6c30;
}

.feature-icon.purple {
  background: var(--lilac-deep);
  color: var(--purple);
}

.feature-card h3 {
  margin-bottom: 9px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.feature-card p {
  margin-bottom: 0;
  color: #687166;
  font-size: 13px;
  line-height: 1.65;
}

.feature-deadlines {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, white, #f4f7f2);
}

.deadline-preview,
.document-preview {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 27px;
  width: 56%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-card);
}

.deadline-preview>div {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid #f1f4ef;
}

.deadline-preview>div:last-child {
  border-bottom: 0;
}

.deadline-preview time {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.deadline-preview time b {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1;
}

.deadline-preview time span {
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}

.deadline-preview p {
  display: grid;
  line-height: 1.4;
}

.deadline-preview p b {
  color: var(--ink);
  font-size: 11px;
}

.deadline-preview p small {
  color: var(--muted-strong);
  font-size: 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6aa56b;
}

.status-dot.warm {
  background: #d5a94c;
}

.feature-ill-deadlines {
  position: absolute;
  z-index: 2;
  right: -105px;
  bottom: -20px;
  width: 455px;
  max-height: 330px;
}

.feature-ill-deadlines>img {
  width: 100%;
  max-width: none;
  max-height: 330px;
  object-fit: contain;
  object-position: bottom;
}

.feature-dots {
  position: absolute;
  z-index: 1;
  right: 21px;
  top: 21px;
  width: 100px;
  height: 82px;
}

.feature-documents {
  background: linear-gradient(145deg, white, #fbf7ed);
}

.document-preview>div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-bottom: 1px solid #f1f4ef;
}

.document-preview>div:last-child {
  border: 0;
}

.document-preview>div>span {
  width: 29px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--warm);
  color: #80662e;
  font-size: 9px;
  font-weight: 800;
}

.document-preview p {
  display: grid;
  line-height: 1.4;
}

.document-preview b {
  color: var(--ink);
  font-size: 11px;
}

.document-preview small {
  color: var(--muted-strong);
  font-size: 10px;
}

.document-preview i {
  color: var(--green);
  font-style: normal;
  font-size: 18px;
}

.feature-ill-documents {
  position: absolute;
  z-index: 2;
  right: 6px;
  bottom: -60px;
  width: 455px;
  max-height: 340px;
}

.feature-ill-documents>img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  object-position: bottom right;
}

.feature-threshold,
.feature-clarity {
  min-height: 300px;
}

.feature-threshold {
  min-height: 280px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 44px;
  background: linear-gradient(145deg, #f7f2fc 0%, #ffffff 55%, #fdfaff 100%);
  border-color: #e1d3f2;
}

.feature-threshold .feature-copy {
  max-width: 100%;
}

.feature-threshold .feature-kicker {
  color: #6a42b0;
}

.feature-threshold h3 {
  font-size: 28px;
  line-height: 1.18;
  max-width: 500px;
}

.feature-threshold p {
  color: #5c645b;
  font-size: 15px;
  line-height: 1.55;
}

/* Dashboard Widget inside Threshold Card */
.threshold-dashboard {
  position: static;
  width: 100%;
  padding: 22px 24px;
  border: 1px solid #e1d3f2;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(108, 68, 191, 0.08);
}

.threshold-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1e9f8;
  margin-bottom: 14px;
}

.threshold-widget-title {
  display: grid;
  gap: 2px;
}

.threshold-widget-title small {
  color: #7952b8;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.threshold-widget-title b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.threshold-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eaf6ec;
  border: 1px solid #c1e7c7;
  color: #217336;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.status-dot.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #27ae60;
  box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.5);
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(39, 174, 96, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
  }
}

/* 2-Column Clean Symmetrical Summary Row */
.threshold-summary-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  padding: 14px 18px;
  background: #faf7fd;
  border: 1px solid #eee4f7;
  border-radius: 14px;
  margin-bottom: 14px;
}

.threshold-stat-block {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.threshold-stat-block:first-child {
  padding-right: 18px;
}

.threshold-stat-block:last-child {
  padding-left: 18px;
}

.threshold-stat-block .stat-label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted-strong);
}

.threshold-stat-block .stat-val-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.threshold-stat-block .stat-val {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.15;
  color: var(--ink);
}

.threshold-stat-block .stat-val.text-green {
  color: #1a7f37;
}

.threshold-stat-block .stat-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: #7952b8;
}

.threshold-stat-block .stat-badge.tag-green {
  color: #1a7f37;
}

.threshold-stat-divider {
  width: 1px;
  height: 36px;
  background: #e5d7f2;
  flex-shrink: 0;
}

/* Dual Track Progress Bar — JS drives width on scroll */
.threshold-bar-container {
  margin-bottom: 12px;
}

.threshold-bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #ece3f5;
  overflow: hidden;
  display: flex;
}

.threshold-bar-fill {
  height: 100%;
}

.threshold-bar-fill.real {
  width: 0%;
  background: var(--purple);
  border-radius: 999px 0 0 999px;
}

.threshold-bar-fill.forecast {
  width: 0%;
  background: repeating-linear-gradient(
    -45deg,
    #ab89df,
    #ab89df 4px,
    #976ed4 4px,
    #976ed4 8px
  );
  opacity: 0.95;
  border-radius: 0 4px 4px 0;
}

.threshold-bar-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted-strong);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-item b {
  color: var(--ink);
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.real {
  background: var(--purple);
}

.legend-dot.forecast {
  background: #a885dc;
}

.legend-line {
  width: 2px;
  height: 9px;
  background: #472b7a;
  display: inline-block;
}

/* AI Insight Box — appears after animation completes */
.threshold-ai-insight {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8f2fd 0%, #ffffff 100%);
  border: 1px solid #e7d6f5;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 2.7s;
}

.feature-threshold.is-visible .threshold-ai-insight {
  opacity: 1;
  transform: translateY(0);
}

.ai-avatar-animated {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c4dff 0%, #5e35b1 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(108, 68, 191, 0.2);
}

.ai-avatar-animated img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transform: scale(2.2);
  display: block;
}

.ai-insight-content {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ai-insight-label {
  color: #7952b8;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ai-insight-content p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #382c48;
}

.ai-insight-content p b {
  color: #1e132b;
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .status-dot.pulse {
    animation: none;
  }
  .threshold-bar-fill.real {
    width: 49.4%;
    transition: none;
  }
  .threshold-bar-fill.forecast {
    width: 34.6%;
    transition: none;
  }
  .threshold-ai-insight {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.feature-clarity {
  background: linear-gradient(145deg, white, #edf3e9);
  border-color: var(--line-strong);
}

.clarity-tags {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clarity-tags span {
  padding: 8px 12px;
  border: 1px solid #d4e1cf;
  border-radius: 20px;
  background: white;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.feature-clarity {
  min-height: 500px;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  padding: clamp(30px, 4vw, 48px);
  background:
    radial-gradient(circle at 92% 10%, rgba(92, 170, 99, .14), transparent 24%),
    linear-gradient(145deg, #fff, #edf5ea);
}

.feature-clarity .feature-copy {
  max-width: 100%;
}

.feature-clarity .feature-copy p {
  max-width: 760px;
}

.feature-icon.whatsapp {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  padding: 8px;
  border-radius: 14px;
  background: #dcf5de;
  box-shadow: inset 0 0 0 1px rgba(36, 122, 56, .1);
  object-fit: contain;
}

.feature-kicker {
  display: block;
  margin-bottom: 9px;
  color: #27783a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}

.feature-clarity h3 {
  max-width: 690px;
  font-size: 30px;
}

.whatsapp-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.whatsapp-benefits span,
.benefit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid #2b9b47;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #edf7ec 100%);
  color: #1e6b30;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 12px rgba(43, 155, 71, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-benefits span:hover,
.benefit-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(43, 155, 71, 0.22);
}

.whatsapp-sync {
  position: static;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 66px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.whatsapp-chat,
.synced-estimate {
  min-width: 0;
  min-height: 265px;
  padding: 15px;
  border: 1px solid #cfe3cb;
  border-radius: 17px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 24px rgba(46, 89, 44, .08);
}

.whatsapp-chat {
  display: flex;
  flex-direction: column;
}

.whatsapp-chat-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
}

.wa-chat-avatar-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2b9b47;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wa-chat-avatar {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.whatsapp-chat-head p {
  display: grid;
  line-height: 1.2;
}

.whatsapp-chat-head b {
  color: var(--ink);
  font-size: 11px;
}

.whatsapp-chat-head small {
  color: #4d965b;
  font-size: 8px;
}

.whatsapp-chat-head>i {
  margin-left: auto;
  color: #8d978b;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 2px;
}

.chat-message,
.chat-reply {
  width: fit-content;
  max-width: 92%;
  padding: 7px 10px;
  border-radius: 11px 11px 3px 11px;
  background: #dff4dc;
  color: #40503e;
  font-size: 9px;
  line-height: 1.4;
}

.chat-message {
  margin-left: auto;
}

.chat-reply {
  margin-top: 6px;
  border-radius: 11px 11px 11px 3px;
  background: #f1f3ef;
}

.chat-reply+.chat-message {
  margin-top: 7px;
}

.chat-reply-highlight {
  border: 1px solid #cfe3cb;
  background: #fff;
  color: var(--green-dark);
}

.chat-message-attachment {
  display: flex;
  align-items: center;
  gap: 6px;
}

.attachment-icon {
  font-size: 16px;
}

.attachment-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.attachment-text b {
  font-size: 9px;
  color: #247a38;
}

.attachment-text small {
  font-size: 7px;
  color: #8d978b;
}

.whatsapp-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(207, 227, 203, 0.5);
}

.wa-icon {
  color: #8d978b;
  font-size: 12px;
}

.wa-icon.send-btn {
  color: #2b9b47;
}

.wa-photo-btn {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-photo-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.wa-input-field {
  flex: 1;
  background: #f1f3ef;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 9px;
  color: #8d978b;
}

.sync-bridge {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--green);
}

.sync-bridge::before,
.sync-bridge::after {
  position: absolute;
  top: 50%;
  width: 16px;
  border-top: 1px dashed #aac9a5;
  content: "";
}

.sync-bridge::before {
  left: 0;
}

.sync-bridge::after {
  right: 0;
}

.sync-bridge i {
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #cbdcc7;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 15px rgba(51, 83, 47, .08);
  font-size: 16px;
  font-style: normal;
}

.sync-bridge small {
  text-align: center;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .03em;
}

.synced-estimate {
  display: grid;
  align-content: center;
}

.synced-estimate>div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 8px;
  font-weight: 800;
}

.synced-estimate>div:first-child i {
  padding: 3px 5px;
  border-radius: 999px;
  background: #dcf5de;
  color: #267a38;
  font-size: 6px;
  font-style: normal;
}

.synced-estimate>strong {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.05em;
}

.synced-estimate>small {
  color: var(--muted-strong);
  font-size: 8px;
}

.sync-summary-list {
  display: grid;
  gap: 0;
  margin-top: 15px;
  border-block: 1px solid #e7eee4;
}

.sync-summary-list>span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 7px;
  border-bottom: 1px solid #edf2eb;
}

.sync-summary-list>span:last-child {
  border: 0;
}

.sync-summary-list small {
  color: var(--muted-strong);
  font-size: 8px;
}

.sync-summary-list b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 10px;
}

.estimate-delta {
  width: fit-content;
  margin-top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--sage-active);
  color: var(--green);
  font-size: 8px;
  font-weight: 800;
}

.estimate-delta i {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 4px;
  border-radius: 50%;
  background: #4c9c59;
  box-shadow: 0 0 0 3px rgba(76, 156, 89, .13);
}

/* Search-focused product context */
.seo-coverage-section {
  position: relative;
  padding-block: 118px;
  border-block: 1px solid #e2e9de;
  background: radial-gradient(circle at 85% 15%, rgba(213, 238, 203, 0.5) 0%, transparent 45%),
              radial-gradient(circle at 10% 85%, rgba(229, 245, 224, 0.6) 0%, transparent 40%),
              linear-gradient(145deg, #f8faf6, #edf4e8);
  overflow: hidden;
}

.seo-shape {
  position: absolute;
  pointer-events: none;
}

.seo-ring {
  top: -50px;
  right: -50px;
  width: 240px;
  height: 240px;
  border: 36px solid rgba(184, 219, 174, 0.28);
  border-radius: 50%;
}

.seo-dots {
  bottom: 25px;
  left: 30px;
  width: 120px;
  height: 75px;
  background-image: radial-gradient(#97c48b 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.35;
}

.seo-coverage-intro {
  max-width: 820px;
  margin-bottom: 46px;
  position: relative;
  z-index: 1;
}

.seo-coverage-intro .eyebrow {
  margin-bottom: 20px;
}

.seo-coverage-intro h2 {
  margin-bottom: 18px;
}

.seo-coverage-intro p {
  max-width: 730px;
  margin: 0;
  color: #5f6b5c;
  font-size: 16px;
  line-height: 1.7;
}

.seo-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}

.js .seo-topic:nth-child(1) {
  transition-delay: 0.05s;
}

.js .seo-topic:nth-child(2) {
  transition-delay: 0.16s;
}

.js .seo-topic:nth-child(3) {
  transition-delay: 0.28s;
}

.seo-topic {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-color: #d5e2cf;
  background: rgba(255, 255, 255, .94);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(46, 91, 56, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.seo-topic:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(39, 174, 96, 0.13);
  border-color: #9ecc8c;
  background: #ffffff;
}

.seo-topic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.seo-topic-num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-active);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.seo-topic-pill {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #27ae60;
  background: #edf7eb;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #d4ecd0;
}

.seo-topic-body {
  margin-bottom: 16px;
  flex-grow: 1;
}

.seo-topic h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--ink);
  transition: color 0.2s ease;
}

.seo-topic:hover h3 {
  color: #1a7f37;
}

.seo-topic p {
  margin: 0;
  color: #667163;
  font-size: 12px;
  line-height: 1.55;
}

/* Mini Preview Widgets */
.tool-mini-preview {
  margin-top: 14px;
  padding: 9px 12px;
  background: #f4f8f2;
  border: 1px solid #e1ece0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.seo-topic:hover .tool-mini-preview {
  background: #edf6eb;
  border-color: #cde4c9;
}

.mini-chip {
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}

.mini-chip-green {
  background: #e1f5dd;
  color: #1a7f37;
}

.mini-chip-soft {
  background: #eef3eb;
  color: #556b50;
}

/* Gauge mini widget */
.tool-preview-gauge {
  display: grid;
  gap: 6px;
  width: 100%;
}

.mini-gauge-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #dae8d8;
  overflow: hidden;
}

.mini-gauge-fill {
  display: block;
  height: 100%;
  width: 74%;
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.mini-gauge-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  color: #5f6b5c;
}

.mini-gauge-meta strong {
  font-weight: 800;
}

/* Search mini widget */
.tool-preview-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.mini-search-fake {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: #586954;
  font-family: var(--font-mono, monospace);
  background: #ffffff;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid #dce9da;
}

.seo-topic-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 900;
  padding-top: 14px;
  border-top: 1px solid #eef3eb;
}

.seo-topic-action b {
  font-size: 15px;
  transition: transform 0.2s ease;
}

.seo-topic:hover .seo-topic-action b {
  transform: translateX(4px);
}

.seo-coverage-note {
  margin: 24px 4px 0;
  color: #697364;
  font-size: 11px;
  position: relative;
  z-index: 1;
}

/* Steps and trust */
.steps-section {
  padding-block: 110px;
  background: var(--canvas);
}

.steps-heading {
  max-width: 760px;
  margin-bottom: 47px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  min-height: 210px;
  display: grid;
  align-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: white;
  box-shadow: var(--shadow-card);
}

.step>span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-active);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.step h3 {
  margin: 26px 0 7px;
  font-family: var(--font-display);
  font-size: 19px;
}

.step p {
  margin: 0;
  color: #687166;
  font-size: 12px;
  line-height: 1.6;
}

.trust-section {
  padding-block: 110px;
}

.trust-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 70px;
  padding: 48px;
  border-color: var(--line-strong);
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  box-shadow: var(--shadow-soft);
}

.trust-card .eyebrow {
  margin-bottom: 20px;
}

.trust-card h2 {
  font-size: clamp(36px, 3.4vw, 50px);
}

.trust-card p {
  max-width: 680px;
  margin: 0;
  color: #586456;
  font-size: 14px;
  line-height: 1.75;
}

.trust-points {
  display: grid;
  gap: 10px;
}

.trust-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(62, 107, 62, .13);
  border-radius: 15px;
  background: rgba(255, 255, 255, .55);
  color: #4f5c4d;
  font-size: 12px;
  font-weight: 700;
}

.trust-points i {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: var(--green);
  font-size: 10px;
  font-style: normal;
}

/* FAQ */
.faq-section {
  display: grid;
  grid-template-columns: .68fr 1.32fr;
  align-items: start;
  gap: 72px;
  padding-block: 96px;
}

.faq-heading p {
  max-width: 400px;
  color: #687166;
  font-size: 14px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
}

.faq-column {
  border-top: 1px solid #d9dfd6;
}

.faq-list details {
  border-bottom: 1px solid #d9dfd6;
}

.faq-list summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green);
  font-size: 19px;
  font-weight: 500;
  transition: transform .2s var(--ease);
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  max-width: 680px;
  margin: -4px 58px 22px 0;
  color: #687166;
  font-size: 13px;
  line-height: 1.7;
}

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  padding-block: 96px;
  background: var(--green-dark);
  color: white;
}

.final-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1140px);
  display: grid;
  grid-template-columns: 440px 1fr;
  align-items: center;
  gap: 40px;
  margin-inline: auto;
}

.final-inner>img {
  width: 900px;
  max-width: none;
  margin-left: -280px;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .20));
  pointer-events: none;
  user-select: none;
}

.final-inner>div {
  position: relative;
  z-index: 1;
}

.final-cta .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(216, 233, 207, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(8px);
  color: #e6f1e1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.final-cta .eyebrow>span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, .8);
}

.final-cta h2 {
  max-width: 720px;
  color: white;
}

.final-cta h2 em {
  color: #d7e9cf;
}

.final-cta p {
  max-width: 680px;
  color: #cfddcc;
  font-size: 14px;
}

.waitlist-form {
  max-width: 680px;
  margin-top: 22px;
}

.waitlist-form label {
  display: block;
  margin-bottom: 9px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.waitlist-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.waitlist-controls input {
  min-width: 0;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.waitlist-controls input::placeholder {
  color: #7d8779;
}

.waitlist-controls input:focus-visible {
  border-color: white;
  box-shadow: 0 0 0 4px rgba(216, 233, 207, .22);
}

.waitlist-controls .button {
  white-space: nowrap;
}

.waitlist-controls .button [data-waitlist-submit-label] {
  font-size: inherit;
  line-height: inherit;
}

.waitlist-controls .button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.waitlist-controls .button.is-loading [data-waitlist-submit-icon] {
  display: inline-block;
  animation: waitlist-loading 1s linear infinite;
}

.waitlist-controls .button.is-success {
  background: #d8efd1;
  color: #234a2a;
  box-shadow: 0 8px 22px rgba(10, 25, 12, .22);
}

.waitlist-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.waitlist-consent {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin-top: 13px;
}

.waitlist-consent input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: #dcebd8;
  cursor: pointer;
}

.waitlist-consent label {
  margin: 0;
  color: #c3d5bd;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.waitlist-consent input:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.waitlist-consent a {
  color: white;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.waitlist-consent a:hover {
  color: #dcebd8;
}

.waitlist-note {
  margin: 9px 0 0;
  color: #c3d5bd !important;
  font-size: 10px !important;
  line-height: 1.45;
}

.waitlist-feedback {
  display: none;
  min-height: 0;
  margin: 12px 0 0;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
  padding: 12px 14px;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.45;
}

.waitlist-feedback.is-success,
.waitlist-feedback.is-error {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  animation: waitlist-feedback-in .48s var(--ease) both;
}

.waitlist-feedback::before {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
}

.waitlist-feedback.is-success {
  border: 1px solid #b9dcae;
  background: #e9f5e4;
  color: #214b29 !important;
  box-shadow: 0 10px 24px rgba(10, 31, 13, .22);
}

.waitlist-feedback.is-success::before {
  background: #3e7a45;
  color: white;
  content: "✓";
  animation: waitlist-check-pop .48s .08s var(--ease) both;
}

.waitlist-feedback.is-error {
  border: 1px solid #efad9f;
  background: #fff0eb;
  color: #8d3127 !important;
  box-shadow: 0 10px 24px rgba(50, 12, 8, .18);
}

.waitlist-feedback.is-error::before {
  background: #d85f4e;
  color: white;
  content: "!";
  animation: waitlist-check-pop .48s .08s var(--ease) both;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.button-light {
  background: white;
  color: var(--green-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.button-ghost-light {
  border: 1px solid rgba(255, 255, 255, .30);
  background: rgba(255, 255, 255, .07);
  color: white;
  box-shadow: none;
}

.button-ghost-light:hover {
  background: rgba(255, 255, 255, .13);
}

.final-shape {
  position: absolute;
  pointer-events: none;
}

.final-ring {
  top: -100px;
  right: -80px;
  width: 310px;
  height: 310px;
  border: 55px solid rgba(216, 229, 211, .11);
  border-radius: 50%;
}

.final-dots {
  left: 4vw;
  bottom: 18px;
  width: 130px;
  height: 90px;
  opacity: .4;
}

.site-footer {
  background: #1f251e;
  color: #dbe3d9;
}

.footer-inner {
  width: min(100% - 48px, 1180px);
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-inline: auto;
}

.site-footer .brand-symbol {
  background: rgba(255, 255, 255, .08);
}

.site-footer .brand-symbol i {
  background: #cfe2c8;
}

.site-footer p {
  margin: 0;
  color: #9da99b;
  font-size: 11px;
}

.footer-note {
  display: flex;
  gap: 18px;
  color: #aab5a8;
  font-size: 10px;
}

.site-footer .brand {
  gap: 0;
  padding: 7px 10px;
  border: 1px solid rgba(211, 229, 204, .64);
  border-radius: 13px;
  background: linear-gradient(135deg, #fff, #edf5e9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.site-footer .brand-logo {
  width: auto;
  height: 65px;
  max-width: 260px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
}

.footer-links a {
  color: #dbe7d7;
  text-decoration: underline;
  text-decoration-color: rgba(219, 231, 215, .45);
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: white;
  text-decoration-color: currentColor;
}

.footer-cookie-button,
.policy-inline-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-cookie-button {
  color: #dbe7d7;
  font-weight: 700;
  text-decoration-color: rgba(219, 231, 215, .45);
}

.footer-cookie-button:hover,
.footer-cookie-button:focus-visible {
  color: #fff;
  text-decoration-color: currentColor;
}

.policy-inline-button {
  color: var(--green);
  font-weight: 800;
}

.policy-inline-button:hover,
.policy-inline-button:focus-visible {
  color: var(--green-dark);
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  z-index: 1000;
  inset: auto 0 0;
  display: grid;
  place-items: end center;
  padding: 18px 24px;
  pointer-events: none;
}

.cookie-consent[hidden],
.cookie-preferences[hidden],
.cookie-consent-actions[hidden] {
  display: none;
}

.cookie-consent-card {
  position: relative;
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(350px, .85fr);
  gap: 24px 34px;
  padding: 25px 28px;
  overflow: hidden;
  border: 1px solid #bcd3b5;
  border-radius: 26px;
  background:
    radial-gradient(circle at 3% 20%, rgba(255, 255, 255, .95) 0 5%, transparent 22%),
    linear-gradient(135deg, rgba(250, 252, 248, .98), rgba(226, 238, 220, .98));
  box-shadow: 0 22px 70px rgba(31, 52, 31, .22), 0 3px 12px rgba(31, 52, 31, .08);
  pointer-events: auto;
}

.cookie-consent-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -52px;
  width: 170px;
  height: 170px;
  border: 28px solid rgba(62, 107, 62, .055);
  border-radius: 50%;
  pointer-events: none;
}

.cookie-watermark-bg {
  position: absolute;
  left: 430px;
  bottom: -10px;
  width: 870px;
  height: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 0.65;
  transform: rotate(-6deg);
}

.cookie-consent-close {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(62, 107, 62, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  color: var(--green-dark);
  cursor: pointer;
}

.cookie-consent-close span {
  margin-top: -2px;
  font-size: 24px;
  line-height: 1;
}

.cookie-consent-close:hover,
.cookie-consent-close:focus-visible {
  background: #fff;
  border-color: var(--green);
}

.cookie-consent-copy {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
  gap: 17px;
}

.cookie-consent-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 9px 20px rgba(62, 107, 62, .18);
}

.cookie-consent-eyebrow {
  margin: 0 0 2px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cookie-consent-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.cookie-consent-copy p:not(.cookie-consent-eyebrow) {
  max-width: 730px;
  margin: 7px 0 0;
  color: #586455;
  font-size: 12px;
  line-height: 1.55;
}

.cookie-consent-copy a {
  display: inline-block;
  margin-top: 5px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 9px;
  padding-right: 30px;
}

.cookie-button {
  min-height: 45px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}

.cookie-button:hover {
  transform: translateY(-1px);
}

.cookie-button:focus-visible,
.cookie-switch:focus-visible,
.cookie-consent-close:focus-visible {
  outline: 3px solid rgba(108, 68, 191, .3);
  outline-offset: 3px;
}

.cookie-button-choice {
  box-shadow: 0 7px 16px rgba(39, 65, 39, .13);
}

.cookie-button-reject {
  border-color: #263026;
  background: #263026;
  color: #fff;
}

.cookie-button-accept,
.cookie-button-save {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.cookie-button-customize {
  grid-column: 1 / -1;
  grid-row: 2;
  border-color: #a9c3a2;
  background: rgba(255, 255, 255, .7);
  color: var(--green-dark);
}

.cookie-preferences {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(62, 107, 62, .18);
}

.cookie-preference-row {
  position: relative;
  z-index: 2;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(62, 107, 62, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
}

.cookie-preference-row>div {
  display: grid;
  gap: 1px;
}

.cookie-preference-row strong {
  font-family: var(--font-display);
  font-size: 14px;
}

.cookie-preference-row span {
  color: #657261;
  font-size: 9px;
}

.cookie-always-on {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--sage-active);
  color: var(--green) !important;
  font-weight: 900;
}

.cookie-switch {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cookie-switch-track {
  width: 47px;
  height: 27px;
  display: block;
  padding: 3px;
  border-radius: 999px;
  background: #c8d0c5;
  transition: background .2s;
}

.cookie-switch-track i {
  width: 21px;
  height: 21px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(29, 40, 29, .2);
  transition: transform .2s var(--ease);
}

.cookie-switch.is-on .cookie-switch-track {
  background: var(--green);
}

.cookie-switch.is-on .cookie-switch-track i {
  transform: translateX(20px);
}

.cookie-preference-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.cookie-button-back {
  border-color: #a9c3a2;
  background: transparent;
  color: var(--green-dark);
}

.cookie-button-save {
  min-width: 190px;
}

/* Legal pages */
.legal-page {
  background: #f5f6f1;
}

/* Pagina dedicata alla disiscrizione: non usa la griglia a due colonne delle policy. */
.unsubscribe-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.unsubscribe-main {
  width: min(100% - 48px, 680px);
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 76px 112px;
  margin-inline: auto;
}

.unsubscribe-card {
  width: 100%;
  padding: clamp(32px, 6vw, 58px);
  border: 1px solid #d6e4d0;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(38, 75, 45, .12);
  text-align: center;
}

.unsubscribe-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 21px;
  border-radius: 50%;
  background: #dcefd5;
  color: #295a37;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
}

.unsubscribe-card .eyebrow {
  justify-content: center;
  margin-bottom: 15px;
}

.unsubscribe-card h1 {
  max-width: 520px;
  margin: 0 auto 15px;
  color: var(--ink);
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.unsubscribe-card > p {
  max-width: 510px;
  margin: 0 auto;
  color: #596957;
  font-size: 15px;
  line-height: 1.72;
}

.unsubscribe-note {
  max-width: 510px;
  margin: 26px auto 0;
  padding: 14px 17px;
  border: 1px solid #e6d7a8;
  border-radius: 14px;
  background: #fff9e9;
  color: #745f31;
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}

.unsubscribe-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}

.unsubscribe-actions .button {
  min-height: 50px;
}

.unsubscribe-support {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(62, 107, 62, .35);
  text-underline-offset: 3px;
}

.policy-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.policy-nav>a:not(.button) {
  color: #5d695b;
  font-size: 12px;
  font-weight: 800;
}

.policy-nav>a:not(.button):hover,
.policy-nav>a[aria-current="page"] {
  color: var(--green);
}

.policy-nav .button {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 12px;
}

.policy-main {
  padding-bottom: 112px;
}

.policy-hero {
  width: min(100% - 48px, 1180px);
  padding-block: 88px 58px;
  margin-inline: auto;
}

.policy-hero .eyebrow {
  margin-bottom: 20px;
}

.policy-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(48px, 5.6vw, 74px);
}

.policy-hero>p {
  max-width: 710px;
  margin-bottom: 0;
  color: #637060;
  font-size: 15px;
  line-height: 1.72;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 23px;
}

.policy-meta span {
  padding: 6px 10px;
  border: 1px solid #d4e1ce;
  border-radius: 999px;
  background: #edf4e9;
  color: #547151;
  font-size: 10px;
  font-weight: 800;
}

.policy-layout {
  width: min(100% - 48px, 1180px);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 38px;
  margin-inline: auto;
}

.policy-toc {
  position: sticky;
  top: 98px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow-card);
}

.policy-toc>strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.policy-toc a {
  display: block;
  padding: 7px 0;
  color: #677263;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.policy-toc a:hover {
  color: var(--green);
}

.policy-content {
  min-width: 0;
}

.policy-card {
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: white;
  box-shadow: var(--shadow-card);
}

.policy-card+.policy-card {
  margin-top: 16px;
}

.policy-card h2 {
  margin-bottom: 15px;
  font-size: clamp(25px, 2.5vw, 34px);
  letter-spacing: -.035em;
}

.policy-card h3 {
  margin: 24px 0 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.policy-card p,
.policy-card li,
.policy-card dd {
  color: #5e695c;
  font-size: 13px;
  line-height: 1.72;
}

.policy-card p:last-child {
  margin-bottom: 0;
}

.policy-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.policy-card li+li {
  margin-top: 6px;
}

.policy-card a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(62, 107, 62, .35);
  text-underline-offset: 3px;
}

.policy-card a:hover {
  text-decoration-color: currentColor;
}

.policy-alert {
  border-color: #ead8ae;
  background: linear-gradient(135deg, #fffdf7, #fff9eb);
}

.policy-alert h2 {
  margin-bottom: 9px;
  color: #725b23;
  font-size: 20px;
}

.policy-alert p {
  color: #74684d;
}

.legal-placeholder {
  display: inline;
  padding: 2px 5px;
  border-radius: 5px;
  background: #fff0c9;
  color: #7b5f1b;
  font-weight: 800;
}

.legal-contact-list {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 8px 20px;
  margin: 0;
}

.legal-contact-list dt {
  color: #425040;
  font-size: 12px;
  font-weight: 800;
}

.legal-contact-list dd {
  margin: 0;
}

.policy-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid #e6ece2;
  border-radius: 16px;
}

.policy-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.policy-table th,
.policy-table td {
  padding: 14px 15px;
  border-bottom: 1px solid #e6ece2;
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  background: #f3f7f1;
  color: #4f5d4d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.policy-table td {
  color: #5e695c;
  font-size: 11px;
  line-height: 1.55;
}

.policy-table tr:last-child td {
  border-bottom: 0;
}

.policy-note {
  margin-top: 16px;
  padding: 14px 15px;
  border-left: 3px solid #89ad83;
  border-radius: 0 12px 12px 0;
  background: #f4f8f1;
  color: #566752;
  font-size: 12px;
  line-height: 1.6;
}

.policy-footer-inner {
  flex-wrap: wrap;
  padding-block: 28px;
}

@keyframes waitlist-feedback-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes waitlist-check-pop {
  0% {
    transform: scale(.35) rotate(-20deg);
  }

  70% {
    transform: scale(1.16) rotate(4deg);
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

@keyframes waitlist-loading {
  to {
    transform: rotate(360deg);
  }
}

/* Motion: content remains crawlable and readable when JavaScript is unavailable. */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 16px;
  }

  .desktop-nav a {
    font-size: 12px;
  }

  .desktop-nav-menu-toggle {
    font-size: 12px;
  }

  .hero {
    grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
    gap: 40px;
  }

  .hero-product {
    padding-inline: 0;
  }

  .calculation-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .final-report-sheet {
    padding-right: 120px;
  }

  .report-mascot-cutout {
    width: 120px;
  }

  .feature-deadlines>img {
    right: -110px;
    width: 420px;
  }

  .feature-documents>img {
    width: 235px;
  }
}

@media (max-width: 960px) {
  /* Evita che il pannello mobile venga ancorato al documento su iOS. */
  .site-header {
    position: fixed;
    inset: 0 0 auto;
  }

  .site-header + main {
    padding-top: 78px;
  }

  .desktop-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 1px solid #dce4d8;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 3px;
    background: var(--ink);
    transition: transform .2s, opacity .2s;
  }

  .menu-toggle.is-open span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle.is-open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    z-index: 49;
    inset: 78px 0 auto;
    display: grid;
    visibility: hidden;
    gap: 9px;
    padding: 16px 24px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 16px 28px rgba(31, 35, 31, .08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }

  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu > a:not(.button) {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #e2e9df;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-nav-assistant-trigger {
    min-height: 48px;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 14px;
    border: 1px solid #e2e9df;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
  }

  .mobile-menu > a:not(.button):hover,
  .mobile-menu > a:not(.button):focus-visible,
  .mobile-nav-assistant-trigger:hover,
  .mobile-nav-assistant-trigger:focus-visible {
    border-color: #a8c59d;
    background: var(--sage);
    color: var(--green-dark);
  }

  .mobile-menu .button {
    margin-top: 9px;
  }

  .mobile-nav-group {
    display: block;
    overflow: hidden;
    border: 1px solid #e2e9df;
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  }

  .mobile-nav-group[open] {
    border-color: #a8c59d;
    box-shadow: 0 10px 22px rgba(31, 35, 31, .07);
  }

  .mobile-nav-group summary {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    list-style: none;
  }

  .mobile-nav-group summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav-group summary::after {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--sage);
    color: var(--green-dark);
    content: '+';
    font-size: 19px;
    font-weight: 700;
    transition: transform .2s var(--ease);
  }

  .mobile-nav-group[open] summary::after {
    content: '−';
    transform: rotate(180deg);
  }

  .mobile-nav-group a {
    min-height: 44px;
    display: flex;
    align-items: center;
    margin: 0 9px 9px;
    padding: 0 12px;
    border-radius: 10px;
    background: #f7faf5;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-nav-group a:hover,
  .mobile-nav-group a:focus-visible {
    background: var(--sage);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 72px 80px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-product {
    width: min(100%, 690px);
    margin-inline: auto;
    padding: 42px 30px 0;
  }

  .hero-ai-callout {
    display: contents;
  }

  .hero-mascot {
    position: absolute;
    top: 12px;
    right: auto;
    bottom: auto;
    left: clamp(-54px, -6vw, -42px);
    width: clamp(160px, 24vw, 190px);
    height: clamp(160px, 24vw, 190px);
    transform: none;
    filter: drop-shadow(0 10px 13px rgba(52, 71, 43, .14));
  }

  .floating-message {
    position: static;
    grid-column: 1;
    grid-row: 1;
    width: auto;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .floating-message>span {
    width: 38px;
    height: 38px;
  }

  .floating-message p {
    align-self: center;
    font-size: 12px;
    line-height: 1.45;
  }

  .hero-dots {
    display: none;
  }



  .calculation-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
  }

  .js .calculation-layout {
    top: 86px;
    height: calc(100vh - 108px);
  }

  .js .calculation-scroll-track {
    min-height: 245vh;
  }

  .stage-canvas {
    grid-row: 2;
    min-height: auto;
  }

  .stage-view {
    position: relative;
    display: none;
    height: 100%;
    overflow: hidden;
    padding: 20px;
  }

  .calculation-section[data-active-stage="1"] [data-stage-view="1"],
  .calculation-section[data-active-stage="2"] [data-stage-view="2"],
  .calculation-section[data-active-stage="3"] [data-stage-view="3"] {
    display: block;
    visibility: visible;
    opacity: 1;
    transform: none;
    z-index: auto;
    filter: none;
    box-shadow: none;
  }

  .calculation-section[data-active-stage="1"] .stage-current,
  .calculation-section[data-active-stage="2"] .stage-forecast {
    display: flex;
  }

  .stage-view.is-stage-leaving {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  .stage-current.is-stage-leaving,
  .stage-forecast.is-stage-leaving {
    display: flex;
  }

  .final-report-sheet {
    padding-right: 0;
  }

  .report-mascot-cutout {
    display: none;
  }

  .method-explainers {
    grid-row: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .method-explainers::before,
  .method-explainers::after {
    display: none;
  }

  .method-progress {
    grid-column: 1 / -1;
    min-height: 18px;
  }

  .explainer {
    min-height: 78px;
    padding: 13px;
  }

  .explainer.is-active {
    transform: none;
  }

  .ai-inner {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .ai-copy {
    max-width: 720px;
  }

  .ai-stage {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .features-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-heading>p {
    max-width: 660px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    grid-column: auto;
    min-height: 0;
  }

  .whatsapp-sync {
    position: static;
    margin-top: 28px;
  }

  .feature-clarity,
  .feature-threshold {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-clarity .feature-copy {
    padding-right: 0;
  }

  .feature-copy {
    max-width: 100%;
    padding-right: 90px;
  }

  .feature-deadlines,
  .feature-documents {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(92px, 18vw, 142px);
    align-items: center;
    gap: 22px 12px;
  }

  .feature-deadlines .feature-copy,
  .feature-documents .feature-copy {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 100%;
    padding-right: 0;
  }

  .deadline-preview,
  .document-preview {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    align-self: center;
  }

  .feature-ill-box {
    position: static;
    grid-column: 2;
    grid-row: 2;
    width: clamp(92px, 18vw, 130px);
    height: 100%;
    min-height: 114px;
    max-height: 136px;
    margin: 0;
    align-self: center;
    overflow: hidden;
    border-radius: 26px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  /* 1. FIGURA SCADENZE (Orologio) */
  .feature-ill-deadlines {
    background: linear-gradient(155deg, var(--sage), #edf3e9);
    border: 1px solid var(--line-strong);
  }
  .feature-ill-deadlines>img {
    width: 120%;
    max-width: none;
    height: auto;
    display: block;
    transform: translateY(14px);
  }

  /* 2. FIGURA DOCUMENTI (Calcolatrice) */
  .feature-ill-documents {
    align-items: center;
    background: linear-gradient(155deg, var(--warm), #fbf7ed);
    border: 1px solid var(--warm-line);
  }
  .feature-ill-documents>img {
    width: auto;
    max-width: none;
    height: 124%;
    display: block;
    transform: translateY(8px);
  }

  .feature-threshold,
  .feature-clarity {
    min-height: 315px;
  }

  .feature-clarity {
    min-height: 360px;
  }

  .seo-topic-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .seo-topic {
    min-height: 0;
    padding: 20px 18px;
    border-radius: 16px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 160px;
  }

  .trust-card {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .faq-section {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 760px) {
  :root {
    --radius-card: 22px;
    --radius-featured: 24px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .site-header + main {
    padding-top: 68px;
  }

  .js .calculation-layout {
    top: 78px;
    height: calc(100vh - 92px);
  }

  .calculation-layout {
    gap: 10px;
  }

  .js .calculation-scroll-track {
    min-height: 230vh;
  }

  .section {
    width: min(100% - 40px, 1180px);
  }

  .header-inner {
    width: calc(100% - 32px);
    height: 68px;
  }

  .brand {
    font-size: 24px;
  }

  .brand-symbol {
    width: 27px;
    height: 27px;
  }

  .site-header .brand-logo {
    height: 48px;
    max-width: 220px;
  }

  .site-footer .brand {
    padding: 6px 9px;
    border-radius: 12px;
  }

  .site-footer .brand-logo {
    height: 33px;
    max-width: 148px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 3px;
    background: var(--ink);
    transition: transform .2s, opacity .2s;
  }

  .menu-toggle.is-open span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle.is-open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-menu {
    inset: 68px 0 auto;
    padding-inline: 20px;
  }

  .mobile-menu > a:not(.button) { min-height: 48px; }

  h1 {
    font-size: clamp(43px, 12.5vw, 60px);
  }

  h2 {
    font-size: clamp(36px, 9.5vw, 48px);
  }

  .hero {
    padding-block: 55px 66px;
  }

  .hero-copy>p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-reassurance {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .hero-product {
    padding: 28px 0 0;
  }

  .hero-mockup-wrapper {
    width: 100%;
    margin-left: 0;
  }

  .mockup-mac-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .mockup-iphone-card {
    display: none !important;
  }

  .product-toolbar {
    grid-template-columns: 1fr auto;
  }

  .toolbar-date {
    display: none;
  }

  .product-body {
    padding: 18px;
  }

  .product-title {
    font-size: 21px;
  }

  .hero-tax-card {
    min-height: 136px;
    padding: 20px;
  }

  .hero-tax-card strong {
    font-size: 36px;
  }

  .tax-meter {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .mini-card {
    min-height: 112px;
    padding: 13px;
  }

  .next-deadline {
    display: none;
  }

  .hero-ai-callout,
  .hero-mascot {
    display: none !important;
  }

  .hero-ring {
    width: 130px;
    height: 130px;
    border-width: 20px;
  }

  .hero-dots {
    bottom: 35px;
    width: 85px;
    height: 65px;
  }

  .audience-strip {
    padding: 22px 0 26px;
  }

  .marquee-wrapper {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  }

  .calculation-section,
  .features-section {
    padding-block: 88px;
  }

  .seo-coverage-section {
    padding-block: 88px;
  }

  .section-intro {
    margin-bottom: 38px;
  }

  .stage-view {
    padding: 18px;
  }

  .stage-current,
  .stage-forecast {
    gap: 10px;
  }

  .live-update,
  .forecast-period {
    display: none;
  }

  .current-overview,
  .forecast-visual {
    padding: 11px 13px;
  }

  .current-overview {
    grid-template-columns: minmax(0, 1fr) 102px;
  }

  .tax-donut {
    width: 92px;
    height: 92px;
  }

  .tax-donut::before {
    width: 66px;
    height: 66px;
  }

  .tax-donut strong {
    font-size: 17px;
  }

  .ledger-entry {
    padding-block: 7px;
  }

  .forecast-visual {
    grid-template-columns: 160px minmax(0, 1fr);
    min-height: 150px;
  }

  .forecast-curve {
    height: 125px;
  }

  .reserve-status {
    display: none;
  }

  .forecast-insights {
    display: none;
  }

  .method-topline {
    display: grid;
  }

  .method-topline .status-chip {
    width: fit-content;
  }

  .method-summary {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .method-chart {
    display: none;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .final-report-sheet {
    padding: 18px;
  }

  .report-price {
    font-size: 36px;
  }

  .report-ai-callout {
    grid-template-columns: auto 1fr;
  }

  .report-ai-callout button {
    grid-column: 1 / -1;
    min-height: 44px;
  }

  .calculation-assumptions {
    font-size: 11px;
  }

  .method-explainers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .method-progress {
    display: flex;
    gap: 9px;
  }

  .explainer {
    min-height: 60px;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 9px 8px;
    border-radius: 15px;
  }

  .explainer-number {
    width: 24px;
    height: 24px;
    font-size: 8px;
  }

  .explainer h3 {
    margin: 0;
    font-size: 11px;
  }

  .explainer p {
    display: none;
  }

  .ai-section {
    padding-block: 88px;
  }

  .ai-stage {
    width: 100%;
    padding: 12px 0 0;
  }

  .ai-carousel { padding-inline: 4px; }
  .ai-carousel-track { padding-inline: 2px 28px; scroll-padding-inline: 2px; }
  .ai-insight-card { flex-basis: calc(100% - 28px); border-radius: 20px; }
  .js .ai-carousel-track { height: var(--ai-carousel-height, 350px); padding: 0; }
  .js .ai-insight-card { width: 100%; flex-basis: auto; }
  .ai-insight-header { padding: 14px 15px; }
  .ai-insight-body { min-height: 252px; padding: 18px; }

  .ai-card-body {
    padding: 16px;
    gap: 16px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
    padding: 22px;
  }

  .feature-copy,
  .feature-deadlines .feature-copy {
    max-width: 100%;
    padding-right: 0;
  }

  .feature-deadlines,
  .feature-documents {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(88px, 24vw, 112px);
    align-items: center;
    gap: 18px 10px;
  }

  .feature-deadlines .feature-copy,
  .feature-documents .feature-copy {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .deadline-preview,
  .document-preview {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    align-self: center;
  }

  .feature-ill-box {
    position: static;
    grid-column: 2;
    grid-row: 2;
    width: clamp(88px, 24vw, 112px);
    height: 100%;
    min-height: 114px;
    max-height: 136px;
    margin: 0;
    align-self: center;
    overflow: hidden;
    border-radius: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  /* 1. FIGURA SCADENZE (Orologio) */
  .feature-ill-deadlines {
    background: linear-gradient(155deg, var(--sage), #edf3e9);
    border: 1px solid var(--line-strong);
  }
  .feature-ill-deadlines>img {
    width: 230%;
    max-width: none;
    height: auto;
    display: block;
    transform: translateY(14px);
  }

  /* 2. FIGURA DOCUMENTI (Calcolatrice) */
  .feature-ill-documents {
    background: linear-gradient(155deg, var(--warm), #fbf7ed);
    border: 1px solid var(--warm-line);
  }
  .feature-ill-documents>img {
    width: 115%;
    max-width: none;
    height: auto;
    display: block;
    transform: translateY(24px);
  }

  .feature-threshold,
  .feature-clarity {
    min-height: 0;
  }

  .feature-threshold {
    gap: 0;
  }

  .whatsapp-sync {
    position: static;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .sync-bridge {
    min-height: 46px;
  }

  .sync-bridge::before,
  .sync-bridge::after {
    display: none;
  }

  .sync-bridge i {
    transform: rotate(90deg);
  }

  .feature-threshold .feature-copy,
  .feature-clarity .feature-copy {
    max-width: 100%;
    padding-right: 0;
  }

  .threshold-dashboard,
  .threshold-meter,
  .clarity-tags {
    position: static;
    width: 100%;
    margin-top: 24px;
  }

  .threshold-dashboard {
    padding: 18px 16px;
  }

  .threshold-summary-row {
    padding: 10px 12px;
    gap: 12px;
  }

  .threshold-stat-block .stat-val {
    font-size: 17px;
  }

  .threshold-bar-legend {
    font-size: 10px;
    gap: 6px;
  }

  .threshold-ai-insight {
    padding: 10px 12px;
    gap: 10px;
  }

  .ai-avatar-animated {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .ai-avatar-animated img {
    width: 26px;
    height: 26px;
  }

  .steps-section {
    padding-block: 82px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    gap: 15px;
    padding: 20px;
  }

  .step h3 {
    margin: 0 0 6px;
  }

  .trust-section {
    padding-block: 82px;
  }

  .trust-card {
    padding: 28px 22px;
  }

  .faq-section {
    padding-block: 88px;
  }

  .faq-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .faq-column+.faq-column {
    border-top: 0;
  }

  .faq-list summary {
    font-size: 13px;
  }

  .final-cta {
    padding-block: 78px;
  }

  .final-inner {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .final-inner>div {
    order: 1;
  }

  .final-inner>img {
    order: 2;
    width: 340px;
    max-width: 100%;
    margin-left: 0;
    margin-inline: auto;
  }

  .final-cta .eyebrow {
    justify-content: center;
  }

  .waitlist-form {
    margin-inline: auto;
    text-align: left;
  }

  .waitlist-controls {
    grid-template-columns: 1fr;
  }

  .waitlist-controls .button {
    width: 100%;
  }

  .final-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-inner {
    width: calc(100% - 40px);
    min-height: 0;
    display: grid;
    gap: 12px;
    padding-block: 32px;
  }

  .footer-note {
    flex-wrap: wrap;
  }

  .policy-main {
    padding-bottom: 76px;
  }

  .policy-hero {
    width: calc(100% - 40px);
    padding-block: 64px 34px;
  }

  .policy-layout {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .policy-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

  .policy-toc>strong {
    grid-column: 1 / -1;
  }

  .policy-card {
    padding: 27px 24px;
  }

  .policy-footer-inner {
    display: grid;
  }
}

@media (max-width: 480px) {
  .section {
    width: calc(100% - 32px);
  }

  .site-header .brand-logo {
    height: 60px;
    max-width: 200px;
  }

  .policy-header .header-inner {
    width: calc(100% - 32px);
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 11px;
  }

  .policy-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    margin-left: 0;
  }

  .policy-nav>a:not(.button) {
    font-size: 11px;
  }

  .policy-nav .button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .policy-nav .button span {
    font-size: 15px;
  }

  .policy-hero,
  .policy-layout {
    width: calc(100% - 32px);
  }

  .policy-toc {
    grid-template-columns: 1fr;
  }

  .policy-card {
    padding: 24px 19px;
  }

  .legal-contact-list {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .legal-contact-list dt:not(:first-child) {
    margin-top: 10px;
  }

  h1 {
    font-size: clamp(40px, 12.8vw, 52px);
  }

  h2 {
    font-size: clamp(34px, 10.3vw, 44px);
  }

  .eyebrow {
    font-size: 10px;
  }

  .hero {
    padding-top: 44px;
  }

  .calculation-section,
  .features-section,
  .ai-section,
  .faq-section {
    padding-block: 64px;
  }

  .seo-coverage-section {
    padding-block: 64px;
  }

  .steps-section,
  .trust-section {
    padding-block: 64px;
  }

  .section-intro {
    margin-bottom: 30px;
  }

  .stage-view {
    padding: 14px;
  }

  .stage-heading-row .report-header h3 {
    font-size: 19px;
  }

  .current-overview {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 8px;
    padding: 9px 10px;
  }

  .current-total>strong,
  .forecast-value>strong {
    font-size: 30px;
  }

  .tax-donut {
    width: 76px;
    height: 76px;
  }

  .tax-donut::before {
    width: 54px;
    height: 54px;
  }

  .tax-donut strong {
    font-size: 14px;
  }

  .ledger-entry {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 7px 9px;
  }

  .ledger-entry:nth-child(3),
  .ledger-entry>i {
    display: none;
  }

  .ledger-icon {
    width: 28px;
    height: 28px;
  }

  .current-footer>span {
    display: grid;
    gap: 2px;
    padding: 8px 9px;
  }

  .current-footer strong {
    font-size: 13px;
  }

  .forecast-visual {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 4px;
    min-height: 128px;
    padding: 8px;
  }

  .forecast-curve {
    height: 105px;
  }

  .forecast-bottom {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .forecast-months>span {
    padding: 7px;
  }

  .reserve-card {
    padding: 7px 9px;
  }

  .reserve-icon {
    width: 28px;
    height: 28px;
  }

  .whatsapp-sync {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sync-bridge small {
    display: none;
  }

  .sync-bridge i {
    width: 28px;
    height: 28px;
  }

  .whatsapp-chat,
  .synced-estimate {
    min-height: 128px;
    padding: 8px;
  }

  .final-report-sheet {
    padding: 0;
  }

  .method-progress {
    min-height: 14px;
  }

  .explainer {
    min-height: 56px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    padding: 7px 4px;
    text-align: center;
  }

  .explainer h3 {
    font-size: 9px;
    line-height: 1.15;
  }

  .report-header {
    padding-bottom: 11px;
  }

  .report-header h3 {
    font-size: 20px;
  }

  .report-header p,
  .report-row span,
  .report-ai-callout p {
    font-size: 10px;
  }

  .report-main-metric {
    padding-block: 12px;
  }

  .report-price {
    font-size: 31px;
  }

  .report-breakdown {
    gap: 6px;
    margin-block: 10px;
  }

  .report-row {
    padding: 9px 10px;
  }

  .report-ai-callout {
    gap: 8px;
    padding: 9px 10px;
  }

  .report-ai-callout button {
    min-height: 36px;
  }

  .calculation-assumptions {
    padding-top: 10px;
  }

  .product-heading {
    display: grid;
  }

  .product-heading .status-chip {
    width: fit-content;
  }

  .hero-tax-card {
    align-items: flex-start;
  }

  .hero-tax-card span {
    font-size: 9px;
  }

  .hero-tax-card strong {
    font-size: 32px;
  }

  .hero-tax-card small {
    max-width: 170px;
  }

  .tax-meter {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .tax-meter span {
    font-size: 11px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .mini-card {
    min-height: 105px;
  }

  .product-grid .next-deadline {
    display: none;
  }

  .hero-mascot {
    width: 104px;
    height: 104px;
  }

  .method-topline h3 {
    font-size: 21px;
  }

  .summary-main>strong {
    font-size: 37px;
  }

  .report-price {
    font-size: 33px;
  }

  .result-grid {
    gap: 8px;
  }

  .result-card {
    padding: 13px 12px;
  }

  .result-card strong {
    font-size: 21px;
  }

  .ai-card-header {
    padding: 14px 16px;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-deadlines>img,
  .feature-documents>img {
    width: clamp(88px, 24vw, 104px);
  }

  .feature-threshold,
  .feature-clarity {
    min-height: 0;
  }

  .faq-list details p {
    margin-right: 8px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 33px;
  }

  .hero-copy>p {
    font-size: 15px;
  }

  .product-body {
    padding: 14px;
  }

  .hero-tax-card {
    padding: 17px 15px;
  }

  .hero-tax-card strong {
    font-size: 29px;
  }

  .tax-meter {
    display: none;
  }

  .floating-message {
    max-width: none;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .floating-message>span {
    width: 34px;
    height: 34px;
  }

  .floating-message p {
    font-size: 11px;
  }

  .hero-ai-callout {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .hero-mascot {
    width: 64px;
    height: 64px;
  }

  .stage-view {
    padding: 15px;
  }

  .final-report-sheet {
    padding: 15px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 19px;
  }

  .feature-deadlines,
  .feature-documents {
    grid-template-columns: minmax(0, 1fr) 78px;
    align-items: center;
    gap: 15px 8px;
  }

  .feature-ill-box {
    width: 78px;
    min-height: 106px;
    max-height: 126px;
    border-radius: 21px;
  }

  .deadline-preview>div,
  .document-preview>div {
    gap: 7px;
    padding-inline: 9px;
  }

  .deadline-preview>div {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .deadline-preview,
  .document-preview {
    left: auto;
    width: 100%;
  }
}

@media (min-width: 761px) and (max-height: 760px) {
  .forecast-insights {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *:not(.marquee-track):not(.marquee-track *),
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .cookie-consent {
    padding: 10px;
  }

  .cookie-consent-card {
    max-height: calc(100dvh - 20px);
    display: block;
    padding: 20px 18px 18px;
    overflow-y: auto;
    border-radius: 22px;
  }

  .cookie-consent-copy {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding-right: 23px;
  }

  .cookie-consent-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    font-size: 21px;
  }

  .cookie-consent-copy h2 {
    font-size: 23px;
  }

  .cookie-consent-copy p:not(.cookie-consent-eyebrow) {
    font-size: 11px;
  }

  .cookie-consent-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 17px;
    padding-right: 0;
  }

  .cookie-button {
    min-height: 43px;
    padding-inline: 12px;
    font-size: 10px;
  }

  .cookie-preferences {
    grid-template-columns: 1fr;
    margin-top: 17px;
    padding-top: 14px;
  }

  .cookie-preference-row {
    min-height: 64px;
  }

  .cookie-preference-actions {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  }

  .cookie-button-save {
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .cookie-consent-copy {
    grid-template-columns: 1fr;
  }

  .cookie-consent-icon {
    display: none;
  }

  .cookie-consent-copy h2 {
    font-size: 21px;
  }
}

/*
 * Takeover continuo del Calcolatore Fiscotto.
 * Il pannello resta nello stesso sticky canvas per tutto il percorso: larghezza,
 * altezza e posizione arrivano da app.js e non esiste alcun salto fixed -> flow.
 */
.calculation-section[data-active-stage="4"] {
  --showroom-header-offset: 78px;
  --showroom-viewport-height: calc(100svh - var(--showroom-header-offset));
  padding-bottom: 0;
}

.js .calculation-section[data-active-stage="4"] .calculation-scroll-track {
  min-height: var(--takeover-track-height, 440vh);
}

.js .calculation-section[data-active-stage="4"] .calculation-layout {
  top: var(--showroom-header-offset);
  height: var(--showroom-viewport-height);
  min-height: var(--showroom-viewport-height);
}

.calculation-section[data-active-stage="4"] .stage-canvas {
  position: relative;
  z-index: 20;
  width: var(--takeover-panel-width, 100%);
  height: var(--takeover-panel-height, 100%);
  min-height: var(--takeover-panel-height, 100%);
  overflow: visible;
  border: 0;
  transform: translate3d(var(--takeover-panel-x, 0), var(--takeover-panel-y, 0), 0);
  transform-origin: left top;
  will-change: width, height, transform;
}

.calculation-section[data-active-stage="4"] .stage-view.stage-calculator {
  width: 100%;
  height: var(--takeover-card-height, 100%);
  min-height: 0;
  align-self: center;
  margin: 0;
  padding: 0;
  overflow: visible;
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .2s linear, visibility 0s linear;
  will-change: height;
}

.calculation-section[data-active-stage="4"] .calculator-takeover-card {
  width: 100%;
  height: 100%;
  min-height: 100%;
  grid-template-columns: minmax(0, 560px) minmax(260px, 480px);
  justify-content: center;
  align-content: center;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(28px, 5vw, 72px);
  border-radius: var(--takeover-panel-radius, 28px);
}

.calculation-section[data-active-stage="4"] .method-explainers {
  z-index: 1;
  opacity: var(--takeover-sidecar-opacity, 1);
  transform: none;
  pointer-events: none;
}

.calculator-takeover-copy {
  min-width: 0;
  container-type: inline-size;
}

.calculator-takeover-copy h3 {
  font-size: clamp(30px, 3vw, 54px);
  font-size: clamp(30px, 9cqi, 54px);
}

.calculator-takeover-copy p {
  max-width: 560px;
  font-size: clamp(14px, 1.25vw, 18px);
}

.calculator-takeover-cta {
  width: min(100%, 380px);
  min-height: 64px;
  justify-content: center;
  padding-inline: 26px;
  border-radius: 19px;
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(10, 42, 20, .36);
}

.calculator-takeover-preview {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  min-height: clamp(280px, 42vh, 460px);
  justify-self: center;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  transform: none;
  container-type: inline-size;
}

.calculator-takeover-preview strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(28px, 12cqi, 72px);
  font-variant-numeric: tabular-nums;
  text-overflow: clip;
  white-space: nowrap;
}

.calculator-takeover-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.calculator-takeover-detail b {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.calculator-takeover-bars i {
  transition: height .28s var(--ease), background .22s ease, box-shadow .22s ease, opacity .22s ease, transform .22s ease;
}

.calculator-takeover-bars i:nth-child(1) { height: 38%; }
.calculator-takeover-bars i:nth-child(2) { height: 63%; }
.calculator-takeover-bars i:nth-child(3) { height: 100%; }

.calculator-takeover-bars i:not(.is-active) {
  background: rgba(220, 239, 215, .38);
  box-shadow: none;
  opacity: .62;
  transform: scaleY(.94);
}

.calculator-takeover-bars i.is-active {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 8px 18px rgba(20, 50, 27, .2);
  opacity: 1;
  transform: scaleY(1);
}

@media (min-width: 761px) {
  .calculator-takeover-copy h3 {
    white-space: nowrap;
  }
}

@media (max-width: 960px) {
  .js .calculation-section[data-active-stage="4"] .calculation-scroll-track {
    min-height: var(--takeover-track-height, 345vh);
  }

  .js .calculation-section[data-active-stage="4"] .calculation-layout {
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
  }

  .calculation-section[data-active-stage="4"] .stage-view.stage-calculator {
    height: 100%;
    min-height: 0;
  }

  .calculation-section[data-active-stage="4"] [data-stage-view="4"] {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .calculation-section[data-active-stage="4"] .stage-canvas {
    width: var(--takeover-panel-width, 100%);
    height: var(--takeover-panel-height, 100%);
    min-height: var(--takeover-panel-height, 100%);
  }

  .calculation-section[data-active-stage="4"] .calculator-takeover-card {
    grid-template-columns: 1fr;
    align-content: center;
    gap: clamp(14px, 2.5vh, 22px);
    overflow-x: hidden;
    overflow-y: hidden;
    padding: clamp(18px, 4vw, 30px);
  }

  .calculator-takeover-copy h3 {
    margin-block: 11px;
    font-size: clamp(32px, 4.5vw, 48px);
  }

  .calculator-takeover-copy p {
    margin-block: 0 16px;
    font-size: clamp(13px, 2vw, 16px);
  }

  .calculator-takeover-cta {
    width: 100%;
    min-height: 58px;
    font-size: 16px;
  }

  .calculator-takeover-preview {
    max-width: 560px;
    min-height: clamp(170px, 28vh, 250px);
    padding: clamp(18px, 4vw, 28px);
  }
}

@media (max-width: 760px) {
  .calculation-section[data-active-stage="4"] {
    --showroom-header-offset: 68px;
  }

  .js .calculation-section[data-active-stage="4"] .calculation-scroll-track {
    min-height: var(--takeover-track-height, 330vh);
  }

  .calculator-takeover-copy h3 {
    font-size: clamp(29px, 8vw, 42px);
  }

  .calculator-takeover-kicker {
    font-size: 8px;
  }

  .calculator-takeover-preview > span {
    font-size: 9px;
  }

  .calculator-takeover-detail {
    margin-top: 12px;
    padding-top: 11px;
  }

  .calculator-takeover-bars {
    height: 42px;
    margin-top: 13px;
  }
}

@media (min-width: 761px) and (max-width: 960px) {
  .calculation-section[data-active-stage="4"] .calculator-takeover-card {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .9fr);
    grid-template-rows: 1fr;
    align-content: center;
    gap: clamp(18px, 3vw, 32px);
    overflow: hidden;
    padding: clamp(24px, 3.5vw, 34px);
  }

  .calculator-takeover-copy h3 {
    font-size: clamp(30px, 4.5vw, 46px);
    font-size: clamp(30px, 9cqi, 46px);
  }

  .calculator-takeover-cta {
    width: min(100%, 340px);
  }

  .calculation-section[data-active-stage="4"] .calculator-takeover-preview {
    max-width: 370px;
    min-height: 280px;
    padding: 22px;
  }
}

@media (max-width: 390px), (max-height: 620px) {
  .calculation-section[data-active-stage="4"] .calculator-takeover-card {
    align-content: start;
    gap: 12px;
    padding: 16px;
  }

  .calculator-takeover-copy h3 {
    margin-block: 8px;
    font-size: clamp(27px, 7.5vw, 36px);
  }

  .calculator-takeover-copy p {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.45;
  }

  .calculator-takeover-cta {
    min-height: 54px;
    font-size: 15px;
  }

  .calculator-takeover-preview {
    min-height: 150px;
    padding: 14px;
  }
}

/* Lo showroom mobile segue l'altezza reale dei contenuti: niente pannelli a tutta viewport vuoti. */
@media (max-width: 760px) {
  .js .calculation-layout {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto;
    align-content: start;
  }

  .stage-canvas,
  .stage-view,
  .final-report-sheet {
    height: auto;
    min-height: 0;
  }

  .stage-view {
    overflow: visible;
  }

  .stage-current,
  .stage-forecast {
    min-height: 0;
  }

  .current-footer,
  .forecast-bottom {
    margin-top: 0;
  }

  .site-footer {
    border-top: 1px solid rgba(162, 190, 153, .24);
    background:
      radial-gradient(circle at 92% 10%, rgba(91, 132, 82, .16), transparent 34%),
      linear-gradient(145deg, #202920, #182019);
  }

  .footer-inner,
  .policy-footer-inner {
    width: calc(100% - 40px);
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "footer-brand"
      "footer-tagline"
      "footer-links"
      "footer-meta";
    align-items: start;
    justify-items: start;
    gap: 0;
    padding-block: 27px 90px;
  }

  .site-footer .brand {
    grid-area: footer-brand;
    width: auto;
    justify-self: start;
    padding: 5px 8px;
    border-color: rgba(211, 229, 204, .38);
    border-radius: 10px;
    background: linear-gradient(135deg, #fff, #edf5e9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
  }

  .site-footer .brand-logo {
    width: auto;
    height: 27px;
    max-width: 118px;
  }

  .site-footer p {
    grid-area: footer-tagline;
    margin-top: 15px;
    color: #b7c2b4;
    font-size: 12px;
    line-height: 1.45;
  }

  .footer-links {
    grid-area: footer-links;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px 18px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid rgba(211, 229, 204, .13);
    font-size: 10px;
  }

  .footer-links a,
  .footer-cookie-button {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0;
    color: #e1eadf;
    text-decoration: none;
  }

  .footer-links a::after,
  .footer-cookie-button::after {
    content: "";
    width: 4px;
    height: 4px;
    margin-left: 18px;
    border-radius: 50%;
    background: #76946f;
  }

  .footer-links> :last-child::after {
    display: none;
  }

  .footer-note {
    grid-area: footer-meta;
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 8px;
    color: #849282;
    font-size: 9px;
    line-height: 1.5;
  }

  .footer-note span+span::before {
    content: "·";
    margin-inline: 8px;
    color: #6f826c;
  }
}

@media (max-width: 390px) {

  .footer-inner,
  .policy-footer-inner {
    width: calc(100% - 32px);
  }

  .footer-links {
    gap: 5px 13px;
  }

  .footer-links a::after,
  .footer-cookie-button::after {
    margin-left: 13px;
  }
}

/* Cascade guard: la geometria scroll-driven deve restare l'ultima autorità CSS. */
.js .calculation-section[data-active-stage="4"] .calculation-layout {
  top: var(--showroom-header-offset);
  height: var(--showroom-viewport-height);
  min-height: var(--showroom-viewport-height);
}

.calculation-section[data-active-stage="4"] .stage-canvas {
  position: relative;
  z-index: 20;
  width: var(--takeover-panel-width, 100%);
  height: var(--takeover-panel-height, 100%);
  min-height: var(--takeover-panel-height, 100%);
  overflow: visible;
  border: 0;
  transform: translate3d(var(--takeover-panel-x, 0), var(--takeover-panel-y, 0), 0);
  transform-origin: left top;
}

.calculation-section[data-active-stage="4"] .stage-view.stage-calculator {
  width: 100%;
  height: var(--takeover-card-height, 100%);
  min-height: 0;
  margin: 0;
  transform: none;
  transition: opacity .2s linear, visibility 0s linear;
}

.calculation-section[data-active-stage="4"] .calculator-takeover-card {
  height: 100%;
  min-height: 100%;
  border-radius: var(--takeover-panel-radius, 28px);
}

.calculator-takeover-preview {
  min-height: clamp(280px, 42vh, 460px);
  transform: none;
}

.calculator-takeover-bars i:nth-child(1) { height: 38%; }
.calculator-takeover-bars i:nth-child(2) { height: 63%; }
.calculator-takeover-bars i:nth-child(3) { height: 100%; }

@media (max-width: 960px) {
  .js .calculation-section[data-active-stage="4"] .calculation-layout {
    height: var(--showroom-viewport-height);
    min-height: var(--showroom-viewport-height);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .calculation-section[data-active-stage="4"] [data-stage-view="4"] {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .calculation-section[data-active-stage="4"] .stage-canvas {
    width: var(--takeover-panel-width, 100%);
    height: var(--takeover-panel-height, 100%);
    min-height: var(--takeover-panel-height, 100%);
  }

  .calculator-takeover-preview {
    min-height: clamp(170px, 28vh, 250px);
  }
}

@media (max-width: 760px) {
  .calculation-section[data-active-stage="4"] .calculator-takeover-card {
    min-height: 100%;
    grid-template-rows: auto auto;
    align-content: space-evenly;
    gap: clamp(12px, 2vh, 18px);
    padding: clamp(14px, 3vw, 22px);
    border-radius: var(--takeover-panel-radius, 28px);
  }

  .calculation-section[data-active-stage="4"] .calculator-takeover-copy {
    align-self: center;
  }

  .calculation-section[data-active-stage="4"] .calculator-takeover-preview {
    height: auto;
    min-height: clamp(200px, 28vh, 245px);
    align-content: space-evenly;
  }
}

@media (max-width: 760px) and (max-height: 620px) {
  .calculation-section[data-active-stage="4"] .calculator-takeover-card {
    grid-template-rows: auto auto;
    align-content: start;
    gap: 10px;
    padding: 12px;
  }

  .calculation-section[data-active-stage="4"] .calculator-takeover-preview {
    height: auto;
    min-height: 140px;
  }
}

/* Assistente Groq: pulsante persistente e chat della landing */
.assistant-widget {
  position: fixed;
  z-index: 90;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
}

.assistant-launcher {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 8px 17px 8px 10px;
  border: 1px solid #c5d8bf;
  border-radius: 999px;
  background: #fdfefb;
  color: var(--green-dark);
  box-shadow: 0 12px 30px rgba(62, 107, 62, .20);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.assistant-launcher:hover,
.assistant-launcher:focus-visible {
  transform: translateY(-2px);
  background: #eff6eb;
  box-shadow: 0 16px 34px rgba(62, 107, 62, .27);
}

.assistant-launcher-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--green-dark);
  color: white;
  overflow: hidden;
}

.assistant-launcher-avatar img {
  width: 26px;
  height: 26px;
  transform: scale(2.2);
  object-fit: contain;
  display: block;
}

.assistant-chat {
  position: absolute;
  right: 0;
  bottom: 62px;
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto auto;
  width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 112px));
  overflow: hidden;
  border: 1px solid #cfe0c9;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(41, 77, 47, .22);
}

.assistant-chat[hidden] { display: none; }

.assistant-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid #e0ebdc;
  background: linear-gradient(135deg, #edf5e9, #fff);
}

.assistant-chat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assistant-chat-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--green-dark);
  color: white;
  overflow: hidden;
}

.assistant-chat-avatar img {
  width: 32px;
  height: 32px;
  transform: scale(2.3);
  object-fit: contain;
  display: block;
}

.assistant-chat-brand strong,
.assistant-chat-brand small { display: block; }
.assistant-chat-brand strong { color: var(--green-dark); font-size: 14px; }
.assistant-chat-brand small { color: var(--muted-strong); font-size: 10px; }

.assistant-chat-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}

.assistant-chat-close span {
  display: block;
  line-height: 1;
  transform: translateY(-1.5px);
}

.assistant-chat-close:hover,
.assistant-chat-close:focus-visible { background: var(--sage); }

.assistant-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  background: #f8faf6;
}

.assistant-message {
  max-width: 88%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.assistant-message-bot {
  align-self: flex-start;
  border: 1px solid #dce7d7;
  border-bottom-left-radius: 4px;
  background: #fff;
  color: #425044;
}

.assistant-message-user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: var(--green);
  color: #fff;
}

.assistant-message.is-loading { color: var(--muted-strong); font-style: italic; }

.assistant-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-article-actions button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #bad3b3;
  border-radius: 999px;
  background: #eff6eb;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.assistant-article-actions button:hover,
.assistant-article-actions button:focus-visible {
  border-color: var(--green);
  background: #dfeeda;
}

.assistant-article-actions button:disabled {
  cursor: wait;
  opacity: .6;
}

.assistant-chat-form {
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e0ebdc;
  background: #fff;
}

.assistant-chat-form textarea {
  width: 100%;
  min-height: 43px;
  max-height: 96px;
  padding: 10px 11px;
  resize: vertical;
  border: 1px solid #c5d8bf;
  border-radius: 12px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
}

.assistant-chat-form textarea:focus { outline: 2px solid rgba(62, 107, 62, .20); border-color: var(--green); }

.assistant-chat-form button {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
}

.assistant-chat-form button:disabled { cursor: wait; opacity: .58; }

.assistant-chat-note {
  margin: 0;
  padding: 0 14px 12px;
  background: #fff;
  color: var(--muted-strong);
  font-size: 9px;
  line-height: 1.4;
}

@media (max-width: 500px) {
  .assistant-widget { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .assistant-launcher { min-height: 46px; padding-right: 14px; }
  .assistant-chat { bottom: 56px; width: min(390px, calc(100vw - 24px)); height: min(540px, calc(100vh - 82px)); }
}

/* ==========================================================================
   Forecast Lite (Modulo 2) — proiezione fatturato, above the fold
   ========================================================================== */

.forecast-lite-section {
  padding-block: 56px 32px;
}

.forecast-simulator-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2d8ef;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}

.forecast-simulator-copy { min-width: 0; display: grid; gap: 3px; }
.forecast-simulator-copy small { color: var(--purple); font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.forecast-simulator-copy strong { font-size: 15px; line-height: 1.3; }
.forecast-simulator-action { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: var(--purple); font-size: 12px; font-weight: 900; }
.forecast-simulator-action i { font-size: 16px; font-style: normal; }

.stage-forecast[aria-hidden="false"] .forecast-simulator-entry { animation: forecast-entry-reveal .42s .12s both; }
.forecast-simulator-entry:hover,
.forecast-simulator-entry:focus-visible { color: var(--purple); }

.forecast-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 2px 0 0;
  color: var(--muted-strong);
  font-size: 11px;
}

.forecast-summary span { white-space: nowrap; }
.forecast-summary b { color: var(--ink); font-weight: 900; }

@keyframes forecast-entry-reveal {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.forecast-page .calculator-hero {
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1fr);
  align-items: stretch;
  gap: clamp(44px, 6vw, 80px);
  padding-top: 72px;
}
.forecast-page .forecast-lite-card { width: 100%; max-width: 620px; margin: 0; }
.forecast-page .forecast-lite-section { max-width: 880px; margin-inline: auto; padding-top: 18px; }
.forecast-page .forecast-lite-results-card { border: 1px solid var(--line); }

/* Forecast guide: dal dato reale alla previsione, in tre passaggi. */
.forecast-guide {
  position: relative;
  max-width: 620px;
  margin-top: 32px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid #dee9da;
  border-radius: 24px;
  background: rgba(255, 255, 255, .68);
  box-shadow:
    0 26px 56px rgba(52, 75, 47, .11),
    0 8px 18px rgba(52, 75, 47, .055),
    inset 0 1px 0 rgba(255, 255, 255, .92);
}

.forecast-guide-presenter {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2.5vw, 22px);
  padding-bottom: 18px;
  border-bottom: 1px solid #e2eae0;
}

.forecast-guide-mascot {
  position: relative;
  display: grid;
  width: 190px;
  height: 176px;
  overflow: hidden;
  place-items: center;
}

.forecast-guide-mascot::after {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(38, 62, 34, 0.26) 0%, rgba(38, 62, 34, 0.08) 55%, transparent 75%);
  filter: blur(1px);
  pointer-events: none;
}

.forecast-guide-image,
.forecast-guide-video {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  width: 220px;
  max-width: none;
  height: 220px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

.forecast-guide-dialog {
  min-width: 0;
}

.forecast-guide-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}

.forecast-guide-dialog p {
  margin: 6px 0 0;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.5;
  text-wrap: pretty;
}

.forecast-guide-steps {
  position: relative;
  display: grid;
  gap: 0;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.forecast-guide-steps::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 15px;
  width: 1px;
  background: linear-gradient(180deg, #d7e4d2 0%, #9fbe96 50%, #d7e4d2 100%);
  background-size: 100% 200%;
  animation: forecast-guide-line-flow 3.2s ease-in-out infinite;
}

.forecast-guide-steps li {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 0;
  border-radius: 12px;
  opacity: 1;
  animation: forecast-guide-step-reveal .48s var(--ease) backwards;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.forecast-guide-steps li:nth-child(1) { animation-delay: .08s; }
.forecast-guide-steps li:nth-child(2) { animation-delay: .2s; }
.forecast-guide-steps li:nth-child(3) { animation-delay: .32s; }

.forecast-guide-index {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #cbdcc5;
  border-radius: 50%;
  background: #fbfdf9;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}

.forecast-guide-steps li:last-child .forecast-guide-index {
  border-color: #b9cfb2;
  background: var(--sage);
  color: var(--green-dark);
}

.forecast-guide-steps strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.forecast-guide-steps p {
  margin: 2px 0 0;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.4;
  text-wrap: pretty;
}

@keyframes forecast-guide-step-reveal {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes forecast-guide-line-flow {
  0%, 100% { background-position: 0 0; }
  50% { background-position: 0 100%; }
}

@media (hover: hover) {
  .forecast-guide-steps li:hover {
    background: rgba(236, 245, 232, .72);
    transform: translateX(5px);
  }

  .forecast-guide-steps li:hover .forecast-guide-index {
    border-color: #a9c69f;
    background: #e5f1e0;
    box-shadow: 0 6px 14px rgba(52, 75, 47, .12);
    transform: scale(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  .forecast-guide-steps::before { animation: none; }
  .forecast-guide-steps li { opacity: 1; animation: none; transition: none; }
  .forecast-guide-index { transition: none; }
}

@media (max-width: 960px) {
  .forecast-guide { margin-inline: auto; }
}

@media (max-width: 560px) {
  .forecast-guide {
    margin-top: 26px;
    padding: 15px 15px 12px;
    border-radius: 20px;
  }

  .forecast-guide-presenter {
    grid-template-columns: clamp(102px, 31vw, 120px) minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 14px;
  }

  .forecast-guide-mascot {
    width: clamp(102px, 31vw, 120px);
    height: 112px;
  }

  .forecast-guide-mascot::after {
    bottom: 8px;
    width: 64px;
    height: 7px;
  }
  .forecast-guide-image,
  .forecast-guide-video {
    width: 140px;
    height: 140px;
  }

  .forecast-guide-dialog h2 { font-size: 15px; }
  .forecast-guide-dialog p { margin-top: 5px; font-size: 10px; line-height: 1.45; }

  .forecast-guide-steps { margin-top: 4px; }
  .forecast-guide-steps::before { top: 23px; bottom: 23px; left: 14px; }
  .forecast-guide-steps li { grid-template-columns: 29px minmax(0, 1fr); gap: 10px; padding: 9px 0; }
  .forecast-guide-index { width: 29px; height: 29px; font-size: 8px; }
  .forecast-guide-steps strong { font-size: 12px; }
  .forecast-guide-steps p { font-size: 10px; }
}


.forecast-method-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  padding: clamp(26px, 5vw, 52px);
  border-radius: var(--radius-card);
  background: var(--ink);
  color: #fff;
}

.forecast-method-card .eyebrow { color: #c8e5bd; }
.forecast-method-card .eyebrow > span { background: #c8e5bd; box-shadow: none; }
.forecast-method-card h2 { margin: 0; color: #fff; font-size: clamp(29px, 4vw, 48px); }
.forecast-method-card ol { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.forecast-method-card li { display: grid; grid-template-columns: 35px 1fr; gap: 12px; }
.forecast-method-card li > span { color: #c8e5bd; font-size: 12px; font-weight: 900; }
.forecast-method-card p { margin: 0; color: #d8e1d5; font-size: 14px; line-height: 1.55; }
.forecast-method-card b { color: #fff; }
.forecast-method-card code { color: #f4d18f; font-family: var(--font-body); font-size: .95em; }

.forecast-lite-intro {
  max-width: 640px;
  margin: 0 auto 34px;
  text-align: center;
}

.forecast-lite-intro p { color: var(--muted-strong); }

.forecast-lite-card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #c5d8bf;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(62, 107, 62, .16);
}

.forecast-lite-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 32px;
  left: 32px;
  height: 3px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #a9c99f, var(--green), #a9c99f);
}

.forecast-lite-card .calculator-card-heading h2 {
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.1;
  text-wrap: balance;
}

.forecast-lite-card .calculator-card-heading > span {
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.5;
  text-wrap: pretty;
}

.forecast-lite-card .calculator-card-heading {
  margin-bottom: 22px;
}

.forecast-lite-card .ateco-selection-notice.is-session {
  padding: 10px 12px;
}

.forecast-lite-card .ateco-selection-notice.is-session strong {
  font-size: 12px;
}

.forecast-lite-card .ateco-selection-notice.is-session .ateco-selection-actions button {
  padding-inline: 12px;
}

.forecast-lite-card .ateco-autocomplete input[data-ateco-input],
.forecast-lite-card .calculator-money-input {
  border-color: #bdd3b6;
  background: #fff;
  box-shadow: 0 5px 14px rgba(52, 75, 47, .04);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.forecast-lite-card .ateco-autocomplete input[data-ateco-input]:focus,
.forecast-lite-card .calculator-money-input:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(62, 107, 62, .11), 0 9px 22px rgba(52, 75, 47, .08);
}

.forecast-lite-months {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0 0 18px;
}

.forecast-lite-months legend {
  width: 100%;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.forecast-lite-months-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.forecast-lite-months-grid .calculator-field {
  margin-bottom: 0;
}

.forecast-lite-submit {
  width: 100%;
  min-height: 56px;
  justify-content: center;
  background: var(--green);
  box-shadow: 0 8px 24px rgba(62, 107, 62, .28);
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}

.forecast-lite-submit:hover,
.forecast-lite-submit:focus-visible {
  background: var(--green-dark);
  box-shadow: 0 12px 30px rgba(47, 74, 42, .32);
  transform: translateY(-1px);
}

.forecast-lite-submit:active { transform: translateY(0) scale(.99); }

.forecast-lite-disclaimer {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f4fb;
  color: #5c4a7a;
  font-size: 11px;
  line-height: 1.5;
}

.forecast-lite-disclaimer > p,
.forecast-lite-disclaimer details p,
.forecast-lite-privacy-details p {
  margin: 0;
  text-wrap: pretty;
}

.forecast-lite-disclaimer > p {
  color: #5c4a7a;
}

.forecast-lite-disclaimer details,
.forecast-lite-privacy-details {
  margin-top: 5px;
}

.forecast-lite-disclaimer summary,
.forecast-lite-privacy-details summary {
  width: fit-content;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forecast-lite-disclaimer summary::-webkit-details-marker,
.forecast-lite-privacy-details summary::-webkit-details-marker {
  display: none;
}

.forecast-lite-disclaimer summary::after,
.forecast-lite-privacy-details summary::after {
  content: "+";
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(62, 107, 62, .1);
  text-decoration: none;
}

.forecast-lite-disclaimer details[open] summary::after,
.forecast-lite-privacy-details[open] summary::after {
  content: "−";
}

.forecast-lite-disclaimer summary:focus-visible,
.forecast-lite-privacy-details summary:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(62, 107, 62, .24);
  outline-offset: 2px;
}

.forecast-lite-disclaimer details p {
  padding: 1px 0 5px;
  color: #5c4a7a;
}

.forecast-lite-privacy-details {
  margin: -14px 0 14px 25px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.forecast-lite-privacy-details p {
  max-width: 58ch;
  padding-bottom: 4px;
}

@media (min-width: 961px) {
  .forecast-page .forecast-lite-card .forecast-lite-disclaimer { margin-top: auto; }
}

.forecast-lite-results {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin: 26px auto 0;
}

.forecast-lite-results[hidden] { display: none; }

.forecast-lite-results-card { padding: clamp(20px, 4vw, 30px); }

.forecast-lite-result-head span {
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.forecast-lite-result-head strong {
  display: block;
  margin: 4px 0 6px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 40px);
}

.forecast-lite-result-head h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 32px);
}

.forecast-lite-result-head p {
  margin: 0 0 22px;
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.5;
}

.forecast-lite-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  margin-bottom: 20px;
  padding: 0 2px;
}

.forecast-lite-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 4px 0 12px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 800;
}

.forecast-lite-legend span { display: inline-flex; align-items: center; gap: 6px; }
.forecast-lite-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--green); }
.forecast-lite-legend i.is-projected { border: 1.5px dashed #7952b8; background: var(--lilac); }

.forecast-lite-bar {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
}

.forecast-lite-bar i {
  width: 100%;
  height: var(--h, 4%);
  border-radius: 6px 6px 2px 2px;
  font-style: normal;
}

.forecast-lite-bar.is-real i { background: var(--green); }

.forecast-lite-bar.is-projected i {
  border: 1.5px dashed #7952b8;
  background: var(--lilac);
}

.forecast-lite-bar small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.forecast-lite-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.forecast-lite-metrics div {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--canvas);
}

.forecast-lite-metrics small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.forecast-lite-metrics strong { color: var(--ink); font-size: 18px; }

.forecast-lite-alert {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warm);
  color: #7a4a10;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.forecast-lite-alert[hidden] { display: none; }

.forecast-lite-note {
  color: var(--muted);
  font-size: 11px;
}

.forecast-lite-note[hidden] { display: none; }

.forecast-lite-hint {
  margin: 0 0 4px;
  padding: 0;
  color: var(--muted-strong);
  font-size: 11px;
  line-height: 1.5;
}

.forecast-lite-hint p {
  margin: 0;
  color: inherit;
  text-wrap: pretty;
}

.forecast-lite-hint strong {
  color: var(--green-dark);
}

.forecast-lite-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 16px 12px 0;
  padding: 24px 28px 24px 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  background: linear-gradient(115deg, #1f231f 0%, #202a20 58%, #294d2f 100%);
  color: #fff;
  box-shadow: 0 22px 42px rgba(31, 35, 31, .14);
}

.forecast-lite-cta::after {
  position: absolute;
  z-index: -1;
  right: 22%;
  bottom: -88px;
  width: 180px;
  height: 180px;
  border: 42px solid rgba(200, 229, 189, .08);
  border-radius: 50%;
  content: "";
}

.forecast-lite-cta-copy { display: grid; max-width: 400px; gap: 4px; }

.forecast-lite-cta-copy > span {
  color: #c8e5bd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.forecast-lite-cta p { margin: 0; font-size: 13px; line-height: 1.55; text-wrap: pretty; }
.forecast-lite-cta b { color: #fff; }
.forecast-lite-cta a {
  min-height: 50px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 24px rgba(12, 18, 12, .18);
  transition: transform .2s var(--ease), background-color .2s ease, box-shadow .2s ease;
}

.forecast-lite-cta a:hover,
.forecast-lite-cta a:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(12, 18, 12, .24); }
.forecast-lite-cta a:active { transform: scale(.98); }

.mobile-menu a[aria-current="page"] {
  border-color: var(--green);
  background: #f1f7ef;
  color: var(--green-dark);
}

@media (max-width: 960px) {
  .forecast-page .calculator-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 56px;
  }

  .forecast-page .forecast-lite-card {
    max-width: 680px;
    margin-inline: auto;
  }

  .forecast-method-card { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .forecast-lite-months-grid { grid-template-columns: 1fr; }
  .forecast-lite-metrics { grid-template-columns: 1fr; }
  .forecast-method-card { grid-template-columns: 1fr; gap: 30px; }
  .forecast-simulator-entry { align-items: flex-start; flex-direction: column; gap: 8px; }
  .forecast-summary { gap: 6px 12px; }
  .forecast-lite-card .ateco-selection-notice.is-session {
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .forecast-lite-cta { gap: 18px; margin-inline: 0; padding: 24px 20px 20px; border-radius: 24px; }
  .forecast-lite-cta a { width: 100%; flex: 1 1 100%; white-space: normal; text-align: center; }
  .forecast-lite-result-head p,
  .forecast-lite-note,
  .forecast-lite-cta p { overflow-wrap: anywhere; }
  .ateco-autocomplete-menu { max-height: min(280px, 45dvh); overscroll-behavior: contain; }
}

@media (max-width: 360px) {
  .forecast-lite-bars { gap: 3px; height: 108px; }
  .forecast-lite-bar small { font-size: 8px; letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-forecast[aria-hidden="false"] .forecast-simulator-entry { animation: none; }
  .forecast-simulator-entry { transition: none; }
  .ai-carousel-track { scroll-behavior: auto; }
  .js .ai-insight-card { transition: none; }
}

/* ==========================================================================
   Case study dinamici (Modulo 2, below the fold)
   ========================================================================== */

.case-study-section { padding-block: 36px 72px; }

.case-study-intro {
  max-width: 620px;
  margin: 0 auto 32px;
  text-align: center;
}

.case-study-intro p { color: var(--muted-strong); }

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 80px;
}

.case-study-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-study-sticker-frame { display: contents; }

.case-study-sticker {
  position: absolute;
  top: -210px;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  height: 240px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 6px 14px rgba(52, 75, 47, .08));
  transition: transform .25s var(--ease);
}

.case-study-card {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
  min-height: 330px;
  padding: 26px;
  overflow: hidden;
  align-content: start;
  border-color: #e4ebe0;
  box-shadow: 0 12px 34px rgba(52, 75, 47, .07);
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s var(--ease);
}

.case-study-wrapper:hover .case-study-card {
  transform: translateY(-6px);
  border-color: #cddfc7;
  box-shadow: 0 20px 42px rgba(52, 75, 47, .12);
}

.case-study-wrapper:hover .case-study-sticker {
  transform: translateX(-50%) translateY(-6px);
}

.case-study-card::before {
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--green);
  content: "";
  opacity: 0;
  z-index: 3;
  transform: scaleX(.55);
  transition: opacity .25s ease, transform .25s var(--ease);
}

.case-study-card:hover { transform: translateY(-6px); border-color: #cddfc7; box-shadow: 0 20px 42px rgba(52, 75, 47, .12); }
.case-study-card:hover::before { opacity: 1; transform: scaleX(1); }

.case-study-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.case-study-index {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: var(--sage);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
}

.case-study-tag {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--lilac);
  color: var(--purple);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.case-study-card h3 { margin: 2px 0 0; font-size: 19px; line-height: 1.3; text-wrap: balance; }
.case-study-card > p { margin: 0; color: var(--muted-strong); font-size: 13px; line-height: 1.6; text-wrap: pretty; }

.case-study-signal {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.case-study-signal-label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.case-study-signal small { color: var(--green-dark); font-size: 9px; font-weight: 800; }

.case-study-spark {
  display: flex;
  grid-column: 1 / -1;
  align-items: end;
  gap: 5px;
  height: 54px;
  padding: 8px 10px 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8faf7, #f0f5ed);
}

.case-study-spark i {
  height: 50%;
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: #b8d0b1;
  transition: height .35s var(--ease), background-color .25s ease;
}

.case-study-card:hover .case-study-spark i { background: var(--green); }
.case-study-card-stable .case-study-spark i:nth-child(1) { height: 48%; }
.case-study-card-stable .case-study-spark i:nth-child(2) { height: 55%; }
.case-study-card-stable .case-study-spark i:nth-child(3) { height: 51%; }
.case-study-card-stable .case-study-spark i:nth-child(4) { height: 57%; }
.case-study-card-stable .case-study-spark i:nth-child(5) { height: 54%; }
.case-study-card-stable .case-study-spark i:nth-child(6) { height: 58%; }
.case-study-card-stable .case-study-spark i:nth-child(7) { height: 56%; }
.case-study-card-seasonal .case-study-spark i:nth-child(1) { height: 28%; }
.case-study-card-seasonal .case-study-spark i:nth-child(2) { height: 34%; }
.case-study-card-seasonal .case-study-spark i:nth-child(3) { height: 42%; }
.case-study-card-seasonal .case-study-spark i:nth-child(4) { height: 49%; }
.case-study-card-seasonal .case-study-spark i:nth-child(5) { height: 62%; }
.case-study-card-seasonal .case-study-spark i:nth-child(6) { height: 78%; }
.case-study-card-seasonal .case-study-spark i:nth-child(7) { height: 94%; }
.case-study-card-project .case-study-spark i:nth-child(1) { height: 72%; }
.case-study-card-project .case-study-spark i:nth-child(2) { height: 24%; }
.case-study-card-project .case-study-spark i:nth-child(3) { height: 88%; }
.case-study-card-project .case-study-spark i:nth-child(4) { height: 36%; }
.case-study-card-project .case-study-spark i:nth-child(5) { height: 61%; }
.case-study-card-project .case-study-spark i:nth-child(6) { height: 30%; }
.case-study-card-project .case-study-spark i:nth-child(7) { height: 74%; }

.case-study-timeline {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.case-study-timeline div { display: flex; gap: 10px; align-items: baseline; }

.case-study-timeline small {
  flex: 0 0 64px;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
}

.case-study-timeline span { color: var(--muted-strong); font-size: 12px; line-height: 1.4; }

.case-study-disclaimer {
  margin: 26px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

/* Lettura della stima: tavola unica, distinta dallo storytelling sticky. */
.tax-reading-section {
  padding-block: 34px 96px;
}

.tax-reading-header {
  max-width: 720px;
  margin-bottom: 34px;
}

.tax-reading-header h2 {
  margin: 12px 0 10px;
  text-wrap: balance;
}

.tax-reading-header > p {
  max-width: 620px;
  margin: 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}

.tax-reading-board {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(250px, .8fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 32px;
  background: linear-gradient(125deg, #202620 0%, #242d24 55%, #2d432f 100%);
  box-shadow: 0 30px 70px rgba(31, 40, 31, .18);
  color: #fff;
}

.tax-reading-board > * {
  min-width: 0;
  padding: clamp(26px, 4vw, 38px);
}

.tax-reading-included,
.tax-reading-limits {
  border-right: 1px solid rgba(220, 235, 214, .12);
}

.tax-reading-label {
  display: block;
  margin-bottom: 12px;
  color: #b9d5b1;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tax-reading-board h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.2;
  text-wrap: balance;
}

.tax-reading-included ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tax-reading-included li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(220, 235, 214, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  color: #dce7d9;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.tax-reading-included li::before {
  content: "✓";
  color: #a9d09d;
  font-weight: 900;
}

.tax-reading-limits p,
.tax-reading-action p {
  margin: 16px 0 0;
  color: #c3cec0;
  font-size: 12px;
  line-height: 1.65;
  text-wrap: pretty;
}

.tax-reading-limits small {
  display: block;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(220, 235, 214, .12);
  color: #eef4ec;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
}

.tax-reading-action {
  display: flex;
  flex-direction: column;
  background: linear-gradient(150deg, #eef7ea, #dcebd6);
  color: var(--ink);
  transition: background-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}

.tax-reading-action .tax-reading-label { color: var(--green-dark); }
.tax-reading-action strong { font-size: 20px; line-height: 1.25; text-wrap: balance; }
.tax-reading-action p { color: #5d6d59; }

.tax-reading-action-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.4;
}

.tax-reading-action-link i {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-style: normal;
  transition: transform .22s var(--ease);
}

.tax-reading-action:hover,
.tax-reading-action:focus-visible {
  outline: 0;
  background: linear-gradient(150deg, #f5fbf2, #e1f0dc);
  box-shadow: inset 0 0 0 3px rgba(122, 164, 110, .2);
}

.tax-reading-action:hover .tax-reading-action-link i,
.tax-reading-action:focus-visible .tax-reading-action-link i { transform: translateX(4px); }

@media (max-width: 900px) {
  .calculator-method { padding-block: 44px 72px; }

  .calculator-method-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: clamp(24px, 5vw, 38px);
    overflow: hidden;
  }

  .calculator-method-intro { position: static; padding-block: 0; }
  .calculator-method-scroll-cue { display: none; }
  .calculator-method ol { gap: 14px; }

  .calculator-method li {
    grid-template-columns: 46px minmax(180px, 1fr) 210px;
    gap: 16px;
    min-height: 220px;
    padding: 0 0 0 20px;
    border-radius: 19px;
  }

  .calculator-method li > .calculator-method-index { width: 46px; height: 46px; border-radius: 15px; }
  .calculator-method-copy { padding-block: 22px; }
  .calculator-method li { --method-art-width: 326px; }
  .calculator-method h3 { font-size: 17px; }

  .tax-scroll-motion-ready .calculator-method li,
  .tax-scroll-motion-ready .calculator-method li.is-visible,
  .tax-scroll-motion-ready .calculator-method li.is-active {
    opacity: 1;
    transform: none;
  }

  .tax-reading-section { padding-block: 24px 76px; }
  .tax-reading-board { grid-template-columns: 1fr; }

  .tax-reading-included,
  .tax-reading-limits {
    border-right: 0;
    border-bottom: 1px solid rgba(220, 235, 214, .12);
  }

  .tax-reading-action { min-height: 260px; }
}

@media (max-width: 560px) {
  .calculator-method-card {
    gap: 24px;
    padding: 24px 20px;
    overflow: visible;
    border-radius: 26px;
  }

  .calculator-method-scroll-cue {
    display: inline-flex;
    margin-top: 18px;
  }

  .calculator-method-scroll-cue i {
    animation: none;
    transform: none;
  }

  .calculator-method-mobile-stage {
    --tax-mobile-panel-height: 418px;
    position: relative;
    display: block;
    min-width: 0;
    min-height: calc(var(--tax-mobile-panel-height) + var(--tax-mobile-scroll-distance, 120svh));
  }

  .calculator-method-mobile-sticky {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 12px;
  }

  .calculator-method-mobile-sticky.is-mobile-pinned {
    position: fixed;
    top: var(--tax-method-header-offset, 68px);
    right: 36px;
    left: 36px;
    transform-origin: 50% 0;
    animation: tax-method-pin-enter .28s var(--ease) both;
  }

  .calculator-method-mobile-sticky.is-mobile-complete {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .calculator-method-mobile-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(108, 68, 191, .13);
    border-radius: 17px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 8px 20px rgba(91, 63, 130, .06);
  }

  .calculator-method-mobile-nav button {
    display: grid;
    min-width: 0;
    min-height: 50px;
    place-content: center;
    gap: 2px;
    padding: 7px 3px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #7f718d;
    cursor: pointer;
    font: inherit;
    text-align: center;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }

  .calculator-method-mobile-nav button span {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;
  }

  .calculator-method-mobile-nav button strong {
    overflow: hidden;
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
  }

  .calculator-method-mobile-nav button[aria-pressed="true"] {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 8px 16px rgba(108, 68, 191, .22);
  }

  .calculator-method-mobile-nav button:focus-visible {
    outline: 3px solid rgba(108, 68, 191, .24);
    outline-offset: 2px;
  }

  .calculator-method-mobile-nav button:active { transform: scale(.97); }

  @keyframes tax-method-pin-enter {
    from {
      opacity: .94;
      transform: translateY(7px) scale(.995);
    }

    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .calculator-method ol {
    grid-auto-columns: 100%;
    grid-auto-flow: column;
    gap: 12px;
    margin-inline: -2px;
    padding: 3px 2px 12px;
    overflow-x: hidden;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 2px;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .calculator-method ol::-webkit-scrollbar { display: none; }

  .calculator-method li {
    --method-art-width: 286px;
    --method-art-x: 0px;
    --method-art-y: 7px;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .calculator-method li > .calculator-method-index {
    width: 40px;
    height: 40px;
    align-self: start;
    margin: 18px 0 0 15px;
    border-radius: 13px;
  }

  .calculator-method-copy { align-self: start; padding: 18px 15px 16px 0; }

  .calculator-method-visual {
    grid-column: 1 / -1;
    height: 176px;
    min-height: 0;
    border-top: 1px solid rgba(108, 68, 191, .09);
    border-left: 0;
  }

  .calculator-method-visual img { max-height: 176px; }
  .calculator-method li.is-active .calculator-method-visual img {
    transform: translate(var(--method-art-x), var(--method-art-y));
  }
  .calculator-method-step-contributions { --method-art-width: 274px; --method-art-y: 6px; }
  .calculator-method-step-tax { --method-art-width: 290px; --method-art-y: 4px; }
  .calculator-method h3 { font-size: 15px; }
  .calculator-method li p { font-size: 11px; }

  .tax-reading-section { padding-block: 18px 64px; }
  .tax-reading-header { margin-bottom: 22px; }
  .tax-reading-header > p { font-size: 13px; }
  .tax-reading-board { border-radius: 24px; }
  .tax-reading-board > * { padding: 24px 20px; }
  .tax-reading-included ul { grid-template-columns: 1fr; gap: 7px; margin-top: 20px; }
  .tax-reading-action { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .calculator-method-scroll-cue i { animation: none; }
  .calculator-method-mobile-sticky.is-mobile-pinned { animation: none; }
  .calculator-method-mobile-nav button { transition: none; }

  .tax-scroll-motion-ready .calculator-method li,
  .tax-scroll-motion-ready .calculator-method li.is-visible,
  .tax-scroll-motion-ready .calculator-method li.is-active {
    opacity: 1;
    transform: none;
    transition: opacity .15s ease;
  }

  .tax-reading-action,
  .tax-reading-action-link i { transition: none; }
}

.tool-seo-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(38px, 7vw, 88px); padding-block: 50px 88px; }
.tool-seo-intro { max-width: 540px; }
.tool-seo-intro h2 { margin: 12px 0; text-wrap: balance; }
.tool-seo-intro p { margin: 0; color: var(--muted-strong); line-height: 1.65; }
.tool-seo-grid { display: grid; gap: 12px; }
.tool-seo-grid .app-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  padding: 20px;
  border-color: #e1e9dd;
  box-shadow: 0 8px 26px rgba(52, 75, 47, .055);
  transition: transform .22s var(--ease), border-color .22s ease, box-shadow .22s var(--ease);
}
.tool-seo-grid .app-card:hover { transform: translateX(5px); border-color: #c8dbc2; box-shadow: 0 12px 30px rgba(52, 75, 47, .09); }
.tool-seo-index { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: var(--sage); color: var(--green-dark); font-size: 11px; font-weight: 900; }
.tool-seo-grid h3 { margin: 0 0 6px; font-size: 17px; }
.tool-seo-grid p { margin: 0; color: var(--muted-strong); font-size: 13px; line-height: 1.6; }
.tool-seo-grid a { color: var(--green-dark); font-weight: 800; }
.tool-seo-grid a:hover,
.tool-seo-grid a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.tool-seo-card-link { background: linear-gradient(135deg, #fff, #f3f8f0); }

.tool-seo-card-featured {
  border-color: #b0d4a5 !important;
  background: linear-gradient(135deg, #f7fbf5 0%, #edf6eb 100%) !important;
  box-shadow: 0 12px 32px rgba(52, 75, 47, .09) !important;
  position: relative;
}

.tool-seo-card-featured:hover {
  transform: translateX(6px) !important;
  border-color: #8bbd7d !important;
  box-shadow: 0 16px 36px rgba(52, 75, 47, .14) !important;
}

.tool-seo-index-featured {
  background: var(--green-dark) !important;
  color: #ffffff !important;
}

.tool-seo-featured-body {
  display: grid;
  gap: 8px;
}

.tool-seo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-seo-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(69, 134, 53, .12);
  border: 1px solid rgba(69, 134, 53, .22);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tool-seo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  margin-top: 4px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(69, 134, 53, .22);
  transition: background-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}

.tool-seo-cta-btn:hover,
.tool-seo-cta-btn:focus-visible {
  background: var(--green-dark);
  transform: translateX(3px);
  box-shadow: 0 8px 20px rgba(41, 77, 47, .30);
  text-decoration: none !important;
}

.tool-seo-cta-btn i {
  font-style: normal;
  font-weight: 900;
  transition: transform .2s var(--ease);
}

.tool-seo-cta-btn:hover i {
  transform: translateX(3px);
}

.tool-seo-card-wrapper {
  position: relative;
}

.tool-seo-card-bg-decoration {
  position: absolute;
  top: 50%;
  left: -125px;
  transform: translateY(-60%) rotate(-10deg);
  width: 190px;
  height: 125px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 10px 22px rgba(45, 65, 40, .10));
  transition: transform .22s var(--ease);
}

.tool-seo-card-wrapper .app-card {
  position: relative;
  z-index: 2;
  background: var(--white);
}

.tool-seo-card-wrapper:hover .app-card {
  transform: translateX(5px);
  border-color: #c8dbc2;
  box-shadow: 0 12px 30px rgba(52, 75, 47, .09);
}

.tool-seo-card-wrapper:hover .tool-seo-card-bg-decoration {
  transform: translateY(-50%) rotate(-7deg) translateX(3px);
}

.forecast-guide-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  padding: 12px;
  border: 1px solid #dce8d7;
  border-radius: 20px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 10px 28px rgba(52, 75, 47, .06);
}

.forecast-guide-flow div { display: grid; min-width: 0; padding: 10px 6px; text-align: center; }
.forecast-guide-flow strong { color: var(--green-dark); font-family: var(--font-display); font-size: 24px; font-variant-numeric: tabular-nums; line-height: 1; }
.forecast-guide-flow span { margin-top: 4px; color: var(--muted-strong); font-size: 9px; font-weight: 800; line-height: 1.2; }
.forecast-guide-flow > i { color: #98a495; font-size: 15px; font-style: normal; font-weight: 900; }
.forecast-guide-flow .is-total { border-radius: 13px; background: var(--green); }
.forecast-guide-flow .is-total strong,
.forecast-guide-flow .is-total span { color: #fff; }

@media (max-width: 960px) {
  .case-study-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .case-study-card { min-height: 0; }
  .case-study-sticker-frame {
    display: block;
    position: absolute;
    top: 114px;
    right: 26px;
    width: 144px;
    height: 166px;
    overflow: hidden;
    z-index: 3;
    border: 1px solid #d6e4d2;
    border-radius: 22px;
    background: linear-gradient(155deg, #eef6eb, #e2efe0);
    box-shadow: 0 8px 20px rgba(52, 75, 47, .09);
  }
  .case-study-wrapper:nth-child(3) .case-study-sticker-frame {
    border-color: #eee0c5;
    background: linear-gradient(155deg, #fbf5e8, #f4ead7);
  }
  .case-study-sticker {
    top: 6px;
    right: auto;
    left: -15px;
    width: 174px;
    height: 188px;
    z-index: auto;
    transform: none;
    object-fit: cover;
    object-position: center bottom;
    filter: drop-shadow(0 6px 12px rgba(52, 75, 47, .08));
  }
  .case-study-wrapper:first-child .case-study-sticker { left: 0; }
  .case-study-wrapper:nth-child(3) .case-study-sticker {
    top: -48px;
    left: -41px;
    width: 226px;
    height: 238px;
    max-width: none;
  }
  .case-study-wrapper:hover .case-study-sticker { transform: none; }
  .case-study-sticker-frame + .case-study-card > p {
    min-height: 166px;
    padding-right: 170px;
  }
  .tool-seo-section { grid-template-columns: 1fr; gap: 30px; }
  .tool-seo-intro { max-width: 680px; }
  .tool-seo-card-bg-decoration { display: none; }
}

@media (max-width: 560px) {
  .case-study-intro { margin-bottom: 24px; }
  .case-study-grid { gap: 16px; margin-top: 24px; }
  .case-study-sticker-frame {
    top: 112px;
    right: 18px;
    width: 112px;
    height: 132px;
    border-radius: 18px;
  }
  .case-study-sticker {
    top: 4px;
    left: -12px;
    width: 136px;
    height: 150px;
  }
  .case-study-wrapper:first-child .case-study-sticker { left: 0; }
  .case-study-wrapper:nth-child(3) .case-study-sticker {
    top: -35px;
    left: -33px;
    width: 178px;
    height: 195px;
  }
  .case-study-card { padding: 22px; }
  .case-study-sticker-frame + .case-study-card > p {
    min-height: 140px;
    padding-right: 128px;
  }
  .case-study-card:hover { transform: none; }
  .tool-seo-section { padding-block: 32px 64px; }
  .tool-seo-grid .app-card { grid-template-columns: 38px 1fr; gap: 13px; padding: 18px; }
  .tool-seo-index { width: 38px; height: 38px; border-radius: 12px; }
  .forecast-guide-flow { gap: 4px; padding: 8px; }
  .forecast-guide-flow strong { font-size: 21px; }
  .forecast-guide-flow span { font-size: 8px; }
  .tax-guide-flow { gap: 4px; padding: 8px; }
  .tax-guide-flow strong { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .case-study-card,
  .case-study-card::before,
  .case-study-spark i,
  .tool-seo-grid .app-card,
  .calculator-method li,
  .forecast-lite-cta a { transition: none; }
}
