/* =========================================================================
   FlowerComp — sito vetrina
   Palette: verde bottega #1B3A2E · oro/bronzo #A0793D · écru #DDE3E0 · inchiostro #1A1A1A
   ========================================================================= */

:root {
  --green:        #1B3A2E;
  --green-deep:   #12271F;
  --green-soft:   #2C5344;
  --gold:         #A0793D;
  --gold-light:   #C2A06A;
  --gold-wash:    #EFE6D6;
  --ecru:         #DDE3E0;
  --ecru-warm:    #E6EAE7;
  --paper:        #F3F6F4;
  --ink:          #1A1A1A;
  --ink-soft:     #4A4F4C;
  --ink-faint:    #6E7573;

  --line:         rgba(27, 58, 46, .16);
  --line-strong:  rgba(27, 58, 46, .3);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap:  72rem;
  --radius: 1.25rem;
  --radius-sm: .7rem;
  --nav-offset: 4.75rem;

  --shadow-card: 0 1px 2px rgba(18, 39, 31, .05),
                 0 12px 28px -14px rgba(18, 39, 31, .28);
  --shadow-lift: 0 2px 4px rgba(18, 39, 31, .06),
                 0 26px 50px -22px rgba(18, 39, 31, .4);

  --ease: cubic-bezier(.22, .68, .28, 1);
}

/* ---------------------------------------------------------------- reset -- */

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

html {
  scroll-behavior: smooth;
  /* offset dinamico: JS allinea la sezione sotto la nav (anche mobile) */
  scroll-padding-top: var(--nav-offset);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ecru);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* velo di carta: dà calore all'écru senza immagini */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(70rem 46rem at 12% -8%,  rgba(160, 121, 61, .13), transparent 62%),
    radial-gradient(60rem 44rem at 92% 12%,  rgba(27, 58, 46, .11),  transparent 60%),
    radial-gradient(72rem 52rem at 50% 108%, rgba(27, 58, 46, .12),  transparent 64%);
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  color: var(--green);
  letter-spacing: -.015em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9em;
  background: rgba(160, 121, 61, .13);
  border-radius: .35em;
  padding: .1em .4em;
}

::selection { background: var(--gold); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: .35rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--green);
  color: var(--paper);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 500;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------- campo di fiori -- */

.flower-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

/* con "riduci movimento" il livello smette di essere fisso: i fiori restano
   dove sono e scorrono via con la pagina */
.flower-field--static {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  height: 100vh;
}

.flower {
  position: absolute;
  left: 0;
  top: 0;
  height: calc(var(--size, 30) * 1vmin);
  will-change: transform, opacity;
  /* obbligatorio: la posa termina con translate(-50%,-50%) per portare il centro
     del fiore sulle coordinate volute. Con un'origine diversa da 0 0 il browser
     aggiunge la propria traslazione e la posa finisce altrove. */
  transform-origin: 0 0;
}

.flower img {
  display: block;
  height: 100%;
  width: auto;
  filter: drop-shadow(0 18px 22px rgba(18, 39, 31, .18));
}

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}

.nav.is-stuck {
  background: rgba(221, 227, 224, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(18, 39, 31, .6);
}

.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: .75rem clamp(1.1rem, 4vw, 2.5rem) .65rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1.1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -.01em;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}

.nav__mark { display: inline-flex; color: var(--gold); }
.nav__mark svg { width: 1.35rem; height: 1.35rem; }

.nav__links {
  display: flex;
  gap: .25rem;
  margin-left: auto;
  align-items: center;
}

.nav__links a,
.nav__links button {
  position: relative;
  padding: .45rem .75rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  font-family: var(--sans);
  color: var(--ink-soft);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s var(--ease), background .25s var(--ease);
}

.nav__links a:hover,
.nav__links button:hover { color: var(--green); background: rgba(27, 58, 46, .07); }

.nav__links a.is-active {
  color: var(--green);
  background: rgba(27, 58, 46, .1);
}

.nav__links .nav__request-link {
  color: var(--gold);
  font-weight: 600;
}
.nav__links .nav__request-link:hover {
  color: var(--green);
  background: rgba(160, 121, 61, .12);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: none;
}

.nav__progress {
  height: 2px;
  background: transparent;
}

.nav__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--green));
  transform-origin: 0 50%;
}

/* --------------------------------------------------------------- bottoni -- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--green);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__arrow {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  transition: transform .3s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--primary {
  --btn-bg: var(--green);
  --btn-fg: var(--paper);
  --btn-border: var(--green);
  box-shadow: 0 10px 22px -14px rgba(18, 39, 31, .9);
}
.btn--primary:hover {
  --btn-bg: var(--green-deep);
  box-shadow: 0 16px 30px -16px rgba(18, 39, 31, .95);
}

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, .5);
  --btn-fg: var(--green);
}
.btn--ghost:hover {
  --btn-bg: #fff;
  --btn-border: var(--gold);
  --btn-fg: var(--gold);
}

.btn--sm { padding: .55rem 1.05rem; font-size: .92rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.08rem; }

/* -------------------------------------------------------------- layout -- */

main { position: relative; z-index: 2; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
  width: 100%;
}

.wrap--narrow { max-width: 46rem; }

.section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* spazio contenuto, senza forzare 100vh (creava vuoti enormi fra le sezioni) */
  min-height: auto;
  padding-block: clamp(3.25rem, 7vh, 5.25rem);
}

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.lead-block { max-width: 40rem; margin-bottom: clamp(1.75rem, 4vh, 2.75rem); }

.lead-block--center {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.lead-block h2 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }

.lead {
  margin-top: 1.5rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.lead-block--center .lead { margin-inline: auto; }

/* ---------------------------------------------------------------- hero -- */

.section--hero {
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
  padding-top: clamp(7rem, 14vh, 10rem);
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
}

.hero { max-width: 44rem; }

.hero__title {
  font-size: clamp(2.7rem, 7.4vw, 5rem);
  line-height: 1.02;
}

.hero__title em {
  display: block;
  font-style: normal;
  color: var(--gold);
  font-variation-settings: "SOFT" 60, "WONK" 1;
}

.hero__lede {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 1.9vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.hero__trust {
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  font-size: .9rem;
  color: var(--ink-faint);
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.hero__trust li::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: opacity .4s var(--ease);
}

.scroll-hint i {
  display: block;
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: hint 2.4s var(--ease) infinite;
}

@keyframes hint {
  0%, 100% { transform: scaleY(.35); transform-origin: 50% 0; opacity: .4; }
  50%      { transform: scaleY(1);   transform-origin: 50% 0; opacity: 1; }
}

.scroll-hint.is-hidden { opacity: 0; }

/* --------------------------------------------------------------- carte -- */

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.card h3 { margin-bottom: .7rem; }

/* Tenute sulle varianti e non su `.card`: come `.card p` questa regola pesava
   più delle regole dei piani (`.plan__price`, `.plan__commission`…) e ne
   ribaltava colore e corpo — la commissione del piano Plus finiva grigia su
   verde scuro. */
.card--step h3,
.card--muted h3,
.card--accent h3 { font-size: 1.32rem; }

.card--step p,
.card--muted p,
.card--accent p { color: var(--ink-soft); font-size: 1rem; }

.card--muted { background: var(--ecru-warm); }

.card--accent {
  background: var(--green);
  border-color: var(--green);
  box-shadow: var(--shadow-lift);
}
.card--accent h3 { color: var(--gold-light); }
.card--accent p  { color: rgba(243, 246, 244, .85); }

/* ---------------------------------------------------------------- passi -- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.card--step { padding-top: 2.6rem; }

.step__num {
  position: absolute;
  top: 1.3rem;
  left: clamp(1.5rem, 3vw, 2.1rem);
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .08em;
}

.card--step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* ------------------------------------------------------------ confronto -- */

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

/* --------------------------------------------------------------- piani -- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  --plan-pad: clamp(1.35rem, 2.6vw, 1.85rem);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--plan-pad);
  min-width: 0;
  overflow: visible;
}

.plan--featured {
  background: var(--green);
  border-color: var(--green);
  box-shadow: var(--shadow-lift);
  overflow: visible;
}

.plan__flag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--gold-light);
  padding: .28rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
  pointer-events: none;
}

.plan__head {
  display: flex;
  flex-direction: column;
  min-height: 8.6rem;
}

.plan__name {
  font-size: 1.45rem;
  margin: 0 0 .85rem;
  line-height: 1.15;
}
.plan--featured .plan__name { color: var(--gold-light); }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  font-family: var(--serif);
  color: var(--green);
  min-height: 2.9rem;
}
.plan--featured .plan__price { color: var(--paper); }

.plan__amount {
  font-size: clamp(2.15rem, 4.2vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
}
.plan__period {
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--ink-faint);
  line-height: 1;
}
.plan--featured .plan__period { color: rgba(243, 246, 244, .6); }

.plan__note {
  margin: .55rem 0 0;
  font-size: .88rem;
  color: var(--ink-faint);
  line-height: 1.35;
}
.plan--featured .plan__note { color: rgba(243, 246, 244, .6); }

.plan__flex {
  margin: .2rem 0 0;
  font-size: .82rem;
  color: var(--ink-faint);
  line-height: 1.4;
}
.plan--featured .plan__flex { color: rgba(243, 246, 244, .55); }

.plan__commission {
  margin: 1.15rem 0 0;
  padding: .6rem .75rem;
  border-radius: 999px;
  background: var(--gold-wash);
  border: 1px solid rgba(160, 121, 61, .28);
  color: var(--gold);
  font-size: .86rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan--featured .plan__commission {
  background: rgba(194, 160, 106, .18);
  border-color: rgba(194, 160, 106, .45);
  color: var(--gold-light);
}

.plan__aside {
  margin: .85rem 0 0;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--ink-faint);
  min-height: 3.9rem;
}
.plan--featured .plan__aside { color: rgba(243, 246, 244, .62); }

.plan__perks {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  align-content: start; /* voci dall'alto verso il basso */
  gap: .65rem;
  font-size: .94rem;
  color: var(--ink-soft);
  /* assorbe l'altezza residua: lo spazio vuoto resta SOTTO le voci, non sopra */
  flex: 1 1 auto;
}
.plan--featured .plan__perks { color: rgba(243, 246, 244, .85); }

.plan__perks li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  line-height: 1.4;
}

.plan__perks li::before {
  content: "";
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .15rem;
  border-radius: 50%;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m5 10.5 3.4 3.4L15 6.8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m5 10.5 3.4 3.4L15 6.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan--featured .plan__perks li::before { background: var(--gold-light); }

.plan__cta {
  margin-top: 2rem; /* 32px — respiro fisso sopra il pulsante */
  width: 100%;
  flex: none;
}

.plan--featured .btn--primary {
  --btn-bg: var(--gold);
  --btn-border: var(--gold);
  --btn-fg: #fff;
}
.plan--featured .btn--primary:hover { --btn-bg: #8E6A34; --btn-border: #8E6A34; }

.plans__foot {
  margin-top: 2rem;
  text-align: center;
  font-size: .92rem;
  color: var(--ink-faint);
  max-width: 34rem;
  margin-inline: auto;
  display: grid;
  gap: .55rem;
}

.plans__foot p { margin: 0; }

.plans__foot-iva {
  font-weight: 500;
  color: var(--ink-soft);
}

@media (max-width: 54rem) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-inline: auto;
  }

  .plan__head,
  .plan__aside { min-height: 0; }

  .plan__commission { min-height: 0; }
}

/* ----------------------------------------------------------------- faq -- */

.faq { display: grid; gap: .7rem; }

.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.faq__item[open] {
  border-color: rgba(160, 121, 61, .45);
  box-shadow: var(--shadow-card);
}

.faq__item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--green);
  cursor: pointer;
  list-style: none;
  transition: color .25s var(--ease);
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold); }

.faq__item summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 1.1rem;
  height: 1.1rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M10 4v12M4 10h12'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' d='M10 4v12M4 10h12'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease);
}

.faq__item[open] summary::after { transform: rotate(135deg); }

.faq__body {
  padding: 0 1.3rem 1.2rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.faq__item[open] .faq__body { animation: faqIn .35s var(--ease); }

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- demo -- */

/* la carta sta in alto: sotto resta aria per il mazzo che si compone */
.section--demo {
  justify-content: flex-start;
  padding-top: clamp(3.5rem, 7vh, 5rem);
  padding-bottom: clamp(12rem, 28vh, 20rem);
}

/* --------------------------------------------- approfondimento sui piani -- */

.plans__more {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  text-align: center;
}

.plans__more-hint {
  font-size: .88rem;
  color: var(--ink-faint);
  max-width: 26rem;
}

/* ======================================================================== */
/* Pagina /pricing                                                          */
/* ======================================================================== */

/* solo per lettori di schermo: le celle a spunta hanno bisogno di un testo */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* testata di una sottopagina: senza min-height, ma sotto la nav fissa */
.section--page-head {
  min-height: auto;
  padding-top: clamp(7.5rem, 15vh, 10.5rem);
  padding-bottom: clamp(2rem, 5vh, 3rem);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.35rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color .25s var(--ease), gap .25s var(--ease);
}

.back-link:hover { color: var(--green); gap: .65rem; }

.back-link svg { width: 1.05rem; height: 1.05rem; flex: none; }

/* ---------------------------------------------------- tabella confronto -- */

.cmp-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* su schermi stretti la tabella scorre in orizzontale, non si sbriciola.
   `contain: paint` non è cosmetico: senza, la tabella larga 46rem allarga il
   viewport su mobile (innerWidth passava da 390 a 687) anche restando dentro
   lo scroller, e i fiori — che si posizionano su window.innerWidth — finivano
   fuori squadra su tutta la pagina. */
.cmp-scroll {
  overflow-x: auto;
  contain: paint;
}

.cmp {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: .95rem;
  text-align: center;
}

.cmp thead th {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  background: var(--ecru-warm);
  padding: 1.15rem .9rem .95rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.cmp__price {
  display: block;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-faint);
  margin-top: .15rem;
}

/* prima colonna: resta agganciata mentre si scorre di lato */
.cmp tbody th,
.cmp thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
}

.cmp tbody th {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  padding: .9rem 1.1rem;
  min-width: 15rem;
}

.cmp td {
  padding: .9rem 1.1rem;
  color: var(--ink-soft);
  vertical-align: middle;
}

.cmp tbody tr + tr th,
.cmp tbody tr + tr td { border-top: 1px solid var(--line); }

/* terza colonna = Base, il piano in evidenza (come la card sulla home) */
.cmp thead th:nth-child(3) { background: var(--green); color: var(--gold-light); }
.cmp thead th:nth-child(3) .cmp__price { color: rgba(243, 246, 244, .62); }
.cmp tbody td:nth-child(3) { background: rgba(27, 58, 46, .055); }

.cmp tbody tr:hover th,
.cmp tbody tr:hover td { background-color: rgba(160, 121, 61, .07); }

.cmp__yes,
.cmp__no {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: -.2rem;
}

.cmp__yes {
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m5 10.5 3.4 3.4L15 6.8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m5 10.5 3.4 3.4L15 6.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cmp__no {
  background: var(--ink-faint);
  opacity: .5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' d='m6 6 8 8M14 6l-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' d='m6 6 8 8M14 6l-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cmp__hint {
  font-size: .82rem;
  color: var(--ink-faint);
  display: block;
  margin-top: .1rem;
}

/* solo dove la tabella non ci sta per intero */
.cmp-swipe { display: none; }

.cmp-scroll__note {
  margin-top: .85rem;
  font-size: .85rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ------------------------------------------------------------- la teca -- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.showcase__media { position: relative; min-height: 16rem; }

.showcase__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase__copy { padding: clamp(1.6rem, 3.6vw, 2.7rem); align-self: center; }

.showcase__copy h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  margin-bottom: .9rem;
}

.showcase__copy p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.showcase__copy p + p { margin-top: .85rem; }

.showcase__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.3rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: var(--gold-wash);
  border: 1px solid rgba(160, 121, 61, .28);
  color: var(--gold);
  font-size: .86rem;
  font-weight: 500;
}

.showcase__badge::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m5 10.5 3.4 3.4L15 6.8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m5 10.5 3.4 3.4L15 6.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ------------------------------------------------------- note sui prezzi -- */

.page-notes {
  display: grid;
  gap: .8rem;
  justify-items: center;
  text-align: center;
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
}

.page-notes li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .97rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.page-notes {
  list-style: none;
  padding: 0;
  margin-inline: 0;
}

.page-notes li::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m5 10.5 3.4 3.4L15 6.8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='m5 10.5 3.4 3.4L15 6.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 54rem) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__media { min-height: 13rem; max-height: 20rem; }

  .cmp-swipe {
    display: block;
    margin-bottom: .7rem;
    font-size: .85rem;
    color: var(--ink-faint);
    text-align: center;
  }

  /* la colonna dei nomi si stringe: così accanto resta visibile almeno un piano */
  .cmp { min-width: 40rem; font-size: .9rem; }
  .cmp thead th { font-size: 1.05rem; padding-inline: .7rem; }
  .cmp tbody th { min-width: 11.5rem; padding-inline: .85rem; }
  .cmp td { padding-inline: .7rem; }
}

/* --------------------------------------------------------- richiedi sito -- */

.section--request {
  justify-content: center;
  padding-block: clamp(2.75rem, 6vh, 4rem);
}

.request-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.5rem, 3.5vw, 2.4rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.request-band__copy {
  flex: 1 1 16rem;
  max-width: 36rem;
}

.request-band__copy h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  margin-bottom: .45rem;
}

.request-band__copy p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.request-band .btn { flex: none; }

/* ---------------------------------------------------------------- modal -- */

.request-dialog {
  width: min(28rem, calc(100vw - 2rem));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}

.request-dialog::backdrop {
  background: rgba(18, 39, 31, .48);
  backdrop-filter: blur(4px);
}

.request-dialog__inner {
  padding: clamp(1.4rem, 3vw, 1.9rem);
}

.request-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.request-dialog__head h2 {
  font-size: 1.45rem;
}

.request-dialog__head p {
  margin-top: .4rem;
  font-size: .95rem;
  color: var(--ink-soft);
}

.request-dialog__close {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(27, 58, 46, .08);
  color: var(--green);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.request-dialog__close:hover { background: rgba(27, 58, 46, .14); }

.request-form {
  display: grid;
  gap: .85rem;
}

.request-form label {
  display: grid;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--green);
}

.request-form input,
.request-form textarea,
.request-form select {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .98rem;
  resize: vertical;
}

.request-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%231B3A2E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 1rem;
  padding-right: 2.2rem;
  cursor: pointer;
}

.request-form input:focus,
.request-form textarea:focus,
.request-form select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.request-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .35rem;
}

.request-form__hint {
  font-size: .82rem;
  color: var(--ink-faint);
  margin-top: .15rem;
}

.request-form__status {
  font-size: .92rem;
  color: var(--green);
  min-height: 1.3em;
}

.demo-card {
  background: var(--green);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.4rem);
  text-align: center;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--green);
}

.demo-card .eyebrow { color: var(--gold-light); }
.demo-card h2 { color: var(--paper); font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
.demo-card .lead {
  color: rgba(243, 246, 244, .82);
  margin-inline: auto;
  margin-bottom: 2.1rem;
}

.demo-card .btn--primary {
  --btn-bg: var(--gold);
  --btn-border: var(--gold);
  --btn-fg: #fff;
}
.demo-card .btn--primary:hover { --btn-bg: var(--gold-light); --btn-border: var(--gold-light); --btn-fg: var(--green-deep); }

.demo-card__foot {
  margin-top: 1.4rem;
  font-size: .88rem;
  color: rgba(243, 246, 244, .58);
}
.demo-card__foot strong { color: var(--gold-light); font-weight: 500; }

/* -------------------------------------------------------------- footer -- */

.footer {
  position: relative;
  z-index: 3;
  background: var(--green-deep);
  color: rgba(243, 246, 244, .72);
  padding-block: 3.5rem 2.5rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: baseline;
}

.footer__name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--paper);
}

.footer__tag {
  margin-top: .35rem;
  font-size: .93rem;
  max-width: 22rem;
}

.footer__links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.footer__links a,
.footer__links button {
  font-size: .95rem;
  font-family: var(--sans);
  text-decoration: none;
  color: rgba(243, 246, 244, .72);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color .25s var(--ease);
}
.footer__links a:hover,
.footer__links button:hover { color: var(--gold-light); }

.footer__legal {
  margin: 0;
  font-size: .85rem;
  color: rgba(243, 246, 244, .5);
}

.footer__meta {
  width: 100%;
  margin-top: .25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(243, 246, 244, .14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1.5rem;
}

.footer__powered {
  margin: 0;
  font-size: .85rem;
  letter-spacing: .02em;
}

.footer__powered a {
  color: rgba(243, 246, 244, .5);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.footer__powered a:hover { color: var(--gold-light); }

@media (max-width: 46rem) {
  .footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------- reveal -- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

[data-reveal-delay="1"] { transition-delay: .09s; }
[data-reveal-delay="2"] { transition-delay: .18s; }
[data-reveal-delay="3"] { transition-delay: .27s; }
[data-reveal-delay="4"] { transition-delay: .36s; }

/* --------------------------------------------------------------- media -- */

@media (max-width: 60rem) {
  .nav__links {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .15rem;
    gap: .15rem;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__links a,
  .nav__links button { font-size: .88rem; padding: .4rem .65rem; }
}

@media (max-width: 46rem) {
  body { font-size: 1rem; }
  .section { padding-block: clamp(2.75rem, 6vh, 4.25rem); }
  .section--hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 6.5rem;
    padding-bottom: 3rem;
  }
  .section--demo { padding-bottom: clamp(9rem, 26vh, 14rem); }
  .scroll-hint { display: none; }
  .footer__links { margin-left: 0; }
  .nav__cta span { display: none; }
  .request-band { text-align: left; }
  .request-band .btn { width: 100%; }
}

@media (max-width: 28rem) {
  .nav__actions .nav__cta { display: none; }
}

/* -------------------------------------------------- movimento ridotto -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-hint i { animation: none; }
}
