/* Hubot Sans (GitHub, OFL-1.1) — self-hosted variable font used for display type */
@font-face {
  font-family: "Hubot Sans";
  src: url("assets/fonts/HubotSans-Variable.woff2") format("woff2-variations"),
       url("assets/fonts/HubotSans-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: oblique 0deg 12deg;
  font-display: swap;
}

/* ==========================================================================
   subito-online.it — Design tokens & base
   Look & feel modelled on finom.co: white canvas, ultra-condensed black
   uppercase display type, Poppins body, hot-pink accent, pill buttons,
   soft-grey bento cards.
   ========================================================================== */

:root {
  --ink: #242424;
  --ink-soft: #5c5c5c;
  --muted: #8a8a8a;
  --bg: #ffffff;
  --card: #f5f5f5;
  --card-2: #efefef;
  --border: #e6e6e6;
  --pink: #ff5a36;          /* brand accent (coral); variable name kept for brevity */
  --pink-dark: #e6482a;
  --pink-soft: #ffe9e3;
  --green: #00b67a;
  --md-teal: #00c3b0;            /* MioDottore-like teal, used sparingly */
  --radius-card: 28px;
  --radius-pill: 999px;     /* buttons are full pills */
  --radius-chip: 99px;
  --font-display: "Hubot Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 100%;      /* full-bleed layout; prose blocks keep their own max-width */
  --gutter: 48px;
  --shadow-soft: 0 10px 40px rgba(0,0,0,.08);
  --rule: rgba(36,36,36,.12);        /* hairline between list rows */
  --overlay: #1a1a1a;                /* full-screen menu */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wash: radial-gradient(60% 55% at 15% 0%, rgba(255,90,54,.10) 0%, rgba(255,90,54,0) 70%);
}

/* Accent word set in the display face's oblique axis (no second family). */
.obl { font-style: oblique 10deg; }

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  text-transform: none;
  line-height: 1.0;
  letter-spacing: -.03em;
}

.display--xl { font-size: clamp(46px, 7vw, 88px); }
.display--lg { font-size: clamp(40px, 5.8vw, 76px); }
.display--md { font-size: clamp(32px, 4.4vw, 56px); }

/* Every heading uses the display face at 800, like the hero. */
.h2, .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
}

.h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -.03em;
}

.h3 {
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); }
.small { font-size: 13px; color: var(--muted); }
.accent { color: var(--pink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
}

/* Star bullet list (Finom uses a 4-point sparkle) */
.stars {
  display: grid;
  gap: 14px;
}
.stars li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--ink);
}
.stars li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--pink { background: var(--pink); color: #fff; box-shadow: 0 8px 24px rgba(255,90,54,.28); }
.btn--pink:hover { background: var(--pink-dark); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--pink); }
.btn--outline:hover { background: var(--pink-soft); }

.btn--light { background: #fff; color: var(--ink); }

.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; }

/* CTA pills carry a circular arrow badge, like the reference's buttons. */
.btn--pink, .btn--outline { padding-right: 8px; }
.btn--pink::after, .btn--outline::after {
  content: "→";
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  font-size: 15px; line-height: 1;
  transition: transform .22s var(--ease);
}
.btn--pink::after { background: rgba(255,255,255,.2); color: #fff; }
.btn--outline::after { background: var(--pink); color: #fff; }
.btn--pink:hover::after, .btn--outline:hover::after { transform: translateX(3px); }
.btn--sm.btn--pink::after, .btn--sm.btn--outline::after { width: 30px; height: 30px; font-size: 13px; }
.btn--sm.btn--pink, .btn--sm.btn--outline { padding-right: 7px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.logo { display: inline-flex; align-items: center; line-height: 1; }
.logo__img { display: block; height: 22px; width: auto; }
.header__actions { display: flex; align-items: center; gap: 10px; }

/* Pills (header): a light CTA with an arrow badge, a dark menu trigger. */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: .08em 8px 0 20px;
  border-radius: 999px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.pill--light { background: #fff; color: var(--ink); border-color: var(--border); }
.pill--light:hover { border-color: var(--ink); transform: translateY(-1px); }
.pill--light::after {
  content: "→"; width: 30px; height: 30px; border-radius: 50%;
  background: var(--pink); color: #fff; font-size: 14px;
  display: grid; place-items: center; flex: none;
  transition: transform .2s var(--ease);
}
.pill--light:hover::after { transform: translateX(2px); }
.pill--dark { background: var(--ink); color: #fff; padding-right: 16px; }
.pill--dark:hover { background: #000; transform: translateY(-1px); }
.nav-toggle__label { min-width: 48px; text-align: left; }
.pill__dots { display: inline-flex; gap: 5px; }
.pill__dots i { width: 7px; height: 7px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease), background .25s var(--ease); }
.nav-toggle[aria-expanded="true"] .pill__dots i:first-child { transform: translateX(2.5px); background: var(--pink); }
.nav-toggle[aria-expanded="true"] .pill__dots i:last-child { transform: translateX(-2.5px); }

/* ----- Full-screen menu ------------------------------------------------ */
.nav {
  position: fixed; inset: 0; z-index: 60;
  background: var(--overlay); color: #fff;
  display: grid; grid-template-rows: 1fr auto;
  padding: 104px 0 32px;
  overflow-y: auto;                  /* six rows, short laptops */
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.nav[data-open="true"] { opacity: 1; visibility: visible; }
.nav__inner { align-self: center; width: 100%; }
.nav__list { display: grid; }
.nav__item { border-top: 1px solid rgba(255,255,255,.14); }
.nav__item:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.nav__item a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: clamp(10px, 1.5vw, 22px) 0;
  transition: opacity .3s var(--ease);
}
.nav__num { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: rgba(255,255,255,.45); }
.nav__label {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 6.6vw, 96px); line-height: 1.02; letter-spacing: -.03em;
  text-align: right;
}
/* dim the siblings of whichever row the pointer is on */
@media (hover: hover) {
  .nav__list:hover .nav__item a { opacity: .34; }
  .nav__list .nav__item a:hover { opacity: 1; }
}
.nav__item a:focus-visible { outline: 2px solid var(--pink); outline-offset: 6px; opacity: 1; }
.nav__item a[aria-current="page"] .nav__num { color: var(--pink); }
.nav__foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.55);
}
.nav__foot a:hover { color: #fff; }
/* rows rise into place when the overlay opens */
.nav[data-open="true"] .nav__item { animation: nav-in .5s var(--ease) both; }
.nav__item:nth-child(1) { animation-delay: .04s; }
.nav__item:nth-child(2) { animation-delay: .08s; }
.nav__item:nth-child(3) { animation-delay: .12s; }
.nav__item:nth-child(4) { animation-delay: .16s; }
.nav__item:nth-child(5) { animation-delay: .20s; }
.nav__item:nth-child(6) { animation-delay: .24s; }
@keyframes nav-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
html.is-menu-open { overflow: hidden; }
html.is-menu-open .header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.is-menu-open .header { z-index: 61; }
html.is-menu-open .header .logo__img { filter: brightness(0) invert(1); }
html.is-menu-open .pill--dark { background: #fff; color: var(--ink); }
html.is-menu-open .pill__dots i { background: var(--ink); }
html.is-menu-open .pill--light { display: none; }
@media (prefers-reduced-motion: reduce) {
  .nav, .nav[data-open="true"] .nav__item { transition: none; animation: none; }
}

/* ----- Back to top ------------------------------------------------------ */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  font-size: 18px; display: grid; place-items: center;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease);
}
.to-top[data-on="true"] { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--pink); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: clamp(72px, 9vw, 132px) 0; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.section__head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section__head .lead { margin-top: 16px; }
.section__head .btn { margin-top: 28px; }

/* ----- Hero ------------------------------------------------------------ */

.hero { padding-top: clamp(24px, 4vw, 56px); overflow: hidden; position: relative; }
/* soft coral wash behind the first screen */
.hero::before {
  content: ""; position: absolute; inset: -84px 0 auto 0; height: 760px;
  background: var(--wash); pointer-events: none; z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero__title { max-width: 760px; }
.hero__lead { margin-top: 28px; max-width: 560px; }
.hero__list { margin-top: 32px; }
.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { margin-top: 20px; }

.trust {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.trust__word { font-weight: 700; font-size: 18px; text-decoration: underline; text-underline-offset: 4px; }
.trust__stars { display: inline-flex; gap: 3px; }
.trust__stars i {
  width: 22px; height: 22px;
  background: var(--md-teal);
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 14px;
}
.trust__brand { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }

/* Hero visual: blob-shaped stage, like Finom's photo cut-out */
.hero__visual { position: relative; min-height: 520px; }
.blob {
  position: absolute;
  inset: 4% 2% 6% 6%;
  background: linear-gradient(160deg, rgba(255,90,54,.10) 0%, rgba(255,90,54,.03) 55%, rgba(255,255,255,0) 100%);
  border-radius: 42px;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) rotate(-4deg);
}
.blob--pink {
  inset: auto -6% -4% auto;
  width: 46%; height: 46%;
  background: radial-gradient(circle at 30% 30%, var(--pink) 0%, var(--pink-dark) 100%);
  border-radius: 50%;
  opacity: .85;
  filter: blur(2px);
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
}

.mock {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  overflow: hidden;
}
.mock--site {
  left: 16%; right: 4%; top: 6%; bottom: 22%;
  display: flex; flex-direction: column;
}
.mock__bar {
  height: 34px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ddd; }
.mock__bar .url {
  margin-left: 10px; flex: 1;
  height: 18px; border-radius: 9px;
  background: #fff; border: 1px solid var(--border);
  font-size: 10px; color: var(--muted);
  display: flex; align-items: center; padding: 0 10px;
}
.mock__body { padding: 22px 24px; flex: 1; display: grid; gap: 14px; }
.mock__nav { display: flex; justify-content: space-between; align-items: center; }
.mock__logo { font-weight: 700; font-size: 13px; }
.mock__pill { height: 22px; padding: 0 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 10px; display: inline-flex; align-items: center; }
.mock__h { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; margin-top: 6px; letter-spacing: -.02em; }
.mock__p { font-size: 11px; color: var(--ink-soft); max-width: 260px; }
.mock__row { display: flex; gap: 8px; margin-top: 4px; }
.mock__row span { height: 26px; padding: 0 12px; border-radius: 99px; font-size: 10px; display: inline-flex; align-items: center; }
.mock__row .a { background: var(--pink); color: #fff; }
.mock__row .b { border: 1px solid var(--border); color: var(--ink); }
.mock__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.mock__grid div { height: 44px; border-radius: 10px; background: var(--card); }

.mock--review {
  right: 0; bottom: 4%; width: 290px;
  padding: 18px 20px;
  border-radius: 20px;
}
.mock__review-head { display: flex; align-items: center; gap: 12px; }
.mock__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink) 0%, #ffa387 100%);
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px;
}
.mock__name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.mock__role { font-size: 11px; color: var(--muted); }
.mock__score { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.mock__score b { font-size: 30px; font-weight: 600; line-height: 1; }
.mock__score .trust__stars i { width: 18px; height: 18px; font-size: 11px; }
.mock__score small { font-size: 11px; color: var(--muted); }
.mock__quote { font-size: 11px; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }

.mock--phone {
  left: 0; bottom: 0; width: 150px; height: 300px;
  border-radius: 26px; border: 6px solid #1c1c1c; background: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}
.mock--phone::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 6px; border-radius: 3px; background: #1c1c1c;
}
.phone__body { padding: 28px 12px 12px; display: grid; gap: 8px; }
.phone__h { font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1; letter-spacing: -.02em; }
.phone__btn { height: 28px; border-radius: 99px; background: var(--pink); color: #fff; font-size: 10px; display: grid; place-items: center; }
.phone__line { height: 8px; border-radius: 4px; background: var(--card); }
.phone__line.short { width: 60%; }
.phone__card { height: 54px; border-radius: 10px; background: var(--card); }

/* ----- Badges row (like Finom's award cards) --------------------------- */

.badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.badge {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 20px;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
  background: #fff;
}
.badge__big { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.03em; }
.badge__logo { font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.badge__label { font-size: 13px; color: var(--ink-soft); }

/* ----- Split section: display headline + 2x2 cards ---------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.split__copy .lead { margin-top: 28px; }

.cards-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card__title { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.15; letter-spacing: -.02em; }
.card__text { font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.card__icon {
  position: absolute;
  right: 20px; bottom: 16px;
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #ffb59f, #ff5a36);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 10px 24px rgba(255,90,54,.28);
  transform: rotate(-8deg);
}
.card__icon svg { width: 30px; height: 30px; }

/* ----- Bento grid (Finom "IBAN senza problemi") ------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 16px;
}
.bento > .card { min-height: 0; }
.bento .card--dark { background: linear-gradient(145deg, #3a3a3a, #1c1c1c); color: #fff; }
.bento .card--dark .card__text { color: rgba(255,255,255,.72); }
.bento .card--pink { background: linear-gradient(160deg, #ffece6 0%, #ffd2c4 100%); }
.bento .card--outline { background: #fff; border: 1px solid var(--border); }
.bento .card--photo {
  grid-column: span 2;
  grid-row: span 2;
  background: #1c1c1c;
  color: #fff;
  justify-content: flex-end;
}
.bento .card--photo::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(255,90,54,.55), transparent 70%),
    radial-gradient(50% 60% at 20% 80%, rgba(255,255,255,.12), transparent 70%),
    linear-gradient(180deg, #2b2b2b 0%, #101010 100%);
}
.bento .card--photo > * { position: relative; }
.bento .card--photo .card__text { color: rgba(255,255,255,.75); }
.bento .card--wide { grid-column: span 2; }
.bento .big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 5.4vw, 80px);
  line-height: 1;
  letter-spacing: -.03em;
}
.bento .card__title { font-size: 22px; }
.bento .card--photo .card__title { font-size: 26px; }
.bento .card__title--center { text-align: center; margin: auto; font-size: 22px; }

/* ----- Feature split with phone (Finom "Il tuo commercialista") -------- */

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature__copy .h2 { max-width: 520px; }
.feature__copy .lead { margin-top: 22px; max-width: 480px; font-size: 16px; }
.feature__copy .stars { margin-top: 32px; }
.feature__visual { position: relative; min-height: 480px; }
.feature__visual .blob { inset: 6% 4%; border-radius: 36px; transform: rotate(3deg); }

.compare {
  position: absolute;
  inset: 8% 6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.compare__col {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.compare__tag {
  display: inline-flex; justify-self: start; width: max-content;
  height: 24px; padding: 0 10px; border-radius: 99px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.compare__tag--old { background: #f1f1f1; color: var(--muted); }
.compare__tag--new { background: var(--pink); color: #fff; }
.compare__row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; font-size: 12px; }
.compare__row b { font-weight: 500; }
.compare__val { font-size: 12px; font-weight: 600; }
.compare__val--bad { color: #d64545; }
.compare__val--good { color: var(--green); }
.compare__meter { height: 8px; border-radius: 4px; background: var(--card); overflow: hidden; }
.compare__meter i { display: block; height: 100%; border-radius: 4px; }
.compare__meter--bad i { width: 32%; background: #d64545; }
.compare__meter--good i { width: 92%; background: var(--green); }
.compare__sketch { display: grid; gap: 6px; margin-top: 4px; }
.compare__sketch i { display: block; height: 7px; border-radius: 4px; background: var(--card); }
.compare__sketch i:nth-child(2) { width: 75%; }
.compare__sketch i:nth-child(3) { width: 55%; }
.compare__sketch--new i:first-child { height: 22px; background: var(--ink); width: 70%; }
.compare__sketch--new i:nth-child(3) { height: 20px; border-radius: 99px; background: var(--pink); width: 45%; }

/* ----- Big statement with floating avatars ----------------------------- */

.statement { text-align: center; position: relative; padding: clamp(60px, 8vw, 110px) 0; }
.statement .display { max-width: 980px; margin: 0 auto; }
.statement .lead { margin-top: 24px; }
.float {
  position: absolute;
  border-radius: 16px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 22px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.float--1 { left: 6%; top: 18%; }
.float--2 { left: 12%; bottom: 22%; }
.float--3 { right: 8%; top: 14%; }
.float--4 { right: 14%; bottom: 20%; }
.float--5 { left: 28%; top: 6%; }
.float--6 { right: 30%; bottom: 6%; }

/* ----- Process steps -------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 32px 28px 36px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 48px;
  line-height: 1;
  color: var(--pink);
}
.step__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.12; letter-spacing: -.02em; }
.step__text { font-size: 15px; color: var(--ink-soft); }
.step__time {
  display: inline-flex; justify-self: start; width: max-content;
  height: 28px; padding: 0 12px; border-radius: var(--radius-chip);
  background: #fff; border: 1px solid var(--border);
  font-size: 12px; font-weight: 500;
}

/* ----- Checklist two columns (Finom "Carte di debito") ----------------- */

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; margin-top: 40px; }
.checklist .stars { gap: 16px; }

/* ----- Partners ------------------------------------------------------- */

.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.partner {
  background: var(--card);
  border-radius: 28px;
  padding: 36px;
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 28px;
  align-items: start;
}
.partner__photo {
  width: 148px; height: 148px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink), #ffa387);
  display: grid; place-items: center;
  color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 44px;
  border: 6px solid #fff;
  box-shadow: var(--shadow-soft);
}
.partner__photo img { width: 100%; height: 100%; object-fit: cover; }
.partner__body { display: grid; gap: 14px; }
.partner__role {
  display: inline-flex; justify-self: start; width: max-content;
  height: 28px; padding: 0 12px; border-radius: 99px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 500;
}
.partner__name { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -.025em; line-height: 1.08; }
.partner__tag { font-size: 14px; color: var(--ink-soft); margin-top: -8px; }
.partner__bio { font-size: 15px; color: var(--ink-soft); }
.partner__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.partner__facts span {
  display: inline-flex; align-items: center;
  height: 32px; padding: 0 12px; border-radius: 99px;
  background: #fff; border: 1px solid var(--border);
  font-size: 12px; font-weight: 500;
}
.partner__links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.partner__links a { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.partner__links a:hover { color: var(--pink); }

.press {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
.press__label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.press__logos { display: flex; flex-wrap: wrap; gap: 16px 36px; align-items: center; }
.press__logos img { display: block; width: auto; opacity: .75; filter: grayscale(1); transition: opacity .2s ease, filter .2s ease; }
.press__logos img:hover { opacity: 1; filter: none; }

/* ----- Plans ------------------------------------------------------------ */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  display: grid;
  gap: 18px;
  align-content: start;
  background: #fff;
}
.plan--featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan--featured .plan__for, .plan--featured .stars li { color: rgba(255,255,255,.8); }
.plan--featured .stars li::before { color: var(--pink); }
.plan__name { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.plan__for { font-size: 14px; color: var(--ink-soft); }
.plan__tag { display: inline-flex; justify-self: start; width: max-content; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.plan .stars { margin: 4px 0 8px; }
.plan .stars li { font-size: 14px; }
.plan .btn { align-self: end; justify-self: start; width: max-content; }

/* ----- FAQ ------------------------------------------------------------ */

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 24px;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 500;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--card);
  display: grid; place-items: center;
  font-size: 20px;
  flex: none;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details.is-closing summary::after { transform: rotate(0deg); }
.faq summary::after { transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .2s ease; }
.faq details[open] summary::after { background: var(--pink-soft); color: var(--pink-dark); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); font-size: 15px; max-width: 720px; }
.faq details[open]:not(.is-closing) p { animation: faq-in .42s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .faq details[open]:not(.is-closing) p { animation: none; }
  .faq summary::after { transition: none; }
}

/* ----- Contact / final CTA ------------------------------------------- */

.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -160px; top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,54,.5) 0%, rgba(255,90,54,0) 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta .lead { color: rgba(255,255,255,.75); margin-top: 20px; }
.cta .stars { margin-top: 28px; }
.cta .stars li { color: rgba(255,255,255,.9); }
.cta .stars li::before { color: var(--pink); }

.form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: 28px;
  display: grid;
  gap: 14px;
}
.form label { display: grid; grid-template-rows: auto 1fr; gap: 6px; font-size: 13px; font-weight: 500; align-content: start; }
.form input, .form select, .form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fafafa;
  color: var(--ink);
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}
/* Fixed control height so browser autofill/password-manager icons can't change it */
.form input, .form select { height: 52px; padding-top: 0; padding-bottom: 0; line-height: 50px; border-radius: 999px; }
.form input::-webkit-contacts-auto-fill-button,
.form input::-webkit-credentials-auto-fill-button { align-self: center; }
.form__row { align-items: start; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--pink); outline-offset: 0; border-color: transparent; }
.form textarea { min-height: 96px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { width: 100%; margin-top: 6px; }
.form .small { text-align: center; }
.form__ok { display: none; text-align: center; padding: 24px 0; }
.form[data-sent="true"] > *:not(.form__ok) { display: none; }
.form[data-sent="true"] .form__ok { display: block; }

/* ----- Footer --------------------------------------------------------- */

.footer { border-top: 1px solid var(--border); padding: 56px 0 96px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px 48px; }
.footer h4 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer li { margin-bottom: 8px; font-size: 14px; }
.footer li a:hover { color: var(--pink); }
.footer__about { font-size: 14px; color: var(--ink-soft); max-width: 340px; margin-top: 14px; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card--photo { grid-column: span 2; grid-row: span 1; min-height: 320px; }
  .plans { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero__grid, .split, .feature, .cta { grid-template-columns: 1fr; }
  .hero__visual { min-height: 460px; margin-top: 12px; }
  .steps { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .press { grid-template-columns: 1fr; }
  .float { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --radius-card: 20px; }
  .badges { grid-template-columns: 1fr 1fr; gap: 10px; }
  .badge { padding: 20px 12px; }
  .cards-2x2 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .card--photo, .bento .card--wide { grid-column: span 1; }
  .partner { grid-template-columns: 1fr; padding: 24px; }
  .partner__photo { width: 120px; height: 120px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 420px; }
  .mock--site { left: 12%; right: 0; bottom: 26%; }
  .mock--review { width: 230px; right: 0; bottom: 0; }
  .mock--phone { width: 120px; height: 240px; }
  .pill--light { display: none; }
  .hero__cta .btn { width: 100%; }
}

/* Initials fallback only when the photo failed to load */
.partner__photo img + span { display: none; }

/* Optical vertical centring for pill labels.
   Poppins reserves a lot of descender space, so text sits visibly high inside
   short pills; tighten the line box and nudge it down slightly. */
.partner__facts span,
.partner__role,
.step__time,
.plan__tag,
.compare__tag,
.mock__pill,
.mock__row span,
.badge__label,
.header__link {
  line-height: 1;
  align-items: center;
  padding-top: .08em;
}
.partner__facts span { height: 34px; padding-top: .1em; }
.btn { line-height: 1; padding-top: .06em; }
.btn--sm { padding-top: .08em; }
.trust__brand, .trust__word { padding-top: .08em; }

/* --------------------------------------------------------------------------
   Parallax (driven by main.js via the CSS `translate` property, which
   composes with the existing `transform`s on blobs, icons and mocks)
   -------------------------------------------------------------------------- */
[data-parallax] { will-change: translate; }
[data-depth] { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.mock[data-depth] { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { translate: none !important; will-change: auto; }
  [data-depth] { transition: none; --mx: 0px; --my: 0px; }
}

/* --------------------------------------------------------------------------
   Come lavoriamo: one standard, three depths
   -------------------------------------------------------------------------- */

.method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.method__card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 28px 28px 24px;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;   /* the list takes the slack, so footers line up */
  gap: 20px;
  position: relative;
  overflow: hidden;
}
/* the three cards climb in tone as well as in weight: grey, coral wash, ink */
.method__card--mid { background: var(--pink-soft); }
.method__card--top { background: var(--ink); color: #fff; }
.method__card--top .method__tag, .method__card--top .method__for { color: rgba(255,255,255,.72); }
.method__card--top .method__stack li { border-color: rgba(255,255,255,.12); }
.method__card--top .method__stack li.is-inherited { color: rgba(255,255,255,.55); }
.method__card--mid .method__stack li { border-color: rgba(255,90,54,.2); }
.method__card--mid .method__tag, .method__card--mid .method__for { color: #6b4a42; }

.method__top { display: flex; align-items: center; justify-content: space-between; }
.method__level {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .06em;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 10px;
}
.method__level::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .4; }
.method__card--top .method__level { color: rgba(255,255,255,.6); }
/* weight meter: one, two or three bars filled */
.method__meter { display: inline-flex; align-items: flex-end; gap: 4px; height: 22px; }
.method__meter i { width: 8px; border-radius: 3px; background: rgba(36,36,36,.14); }
.method__meter i:nth-child(1) { height: 9px; }
.method__meter i:nth-child(2) { height: 15px; }
.method__meter i:nth-child(3) { height: 22px; }
.method__meter i.on { background: var(--pink); }
.method__card--mid .method__meter i:not(.on) { background: rgba(255,90,54,.22); }
.method__card--top .method__meter i:not(.on) { background: rgba(255,255,255,.18); }

.method__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4.2vw, 56px); line-height: 1; letter-spacing: -.035em; }
.method__tag { font-size: 15px; font-weight: 500; color: var(--ink-soft); margin-top: 8px; }
.method__for { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

.method__stack { display: grid; gap: 0; align-content: start; }
.method__stack li {
  position: relative;
  padding: 11px 0 11px 28px;
  font-size: 14px;
  line-height: 1.45;
  border-top: 1px solid var(--border);
}
.method__stack li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 16px; height: 16px; border-radius: 5px;
  background: #fff; border: 1px solid var(--border);
}
.method__stack li.is-inherited { color: var(--muted); font-weight: 500; }
.method__stack li.is-inherited::before { background: var(--border); border-color: var(--border); }
.method__stack li.is-new::before { background: var(--pink); border-color: var(--pink); }
.method__stack li.is-new::after {
  content: "+";
  position: absolute; left: 0; top: 13px;
  width: 16px; height: 16px;
  display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
}
.method__card--top .method__stack li::before { background: transparent; border-color: rgba(255,255,255,.25); }
.method__card--top .method__stack li.is-new::before { background: var(--pink); border-color: var(--pink); }

.method__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.method__card--mid .method__foot { border-color: rgba(255,90,54,.2); }
.method__card--top .method__foot { border-color: rgba(255,255,255,.14); }
.method__rank { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.method__card--mid .method__rank { color: #9a6a5e; }
.method__card--top .method__rank { color: rgba(255,255,255,.6); }

.always {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr);
  gap: 32px;
  align-items: start;
}
.always__copy p { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.always__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.always__list li { font-size: 14px; }

@media (max-width: 1080px) {
  .method { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .always { grid-template-columns: 1fr; padding: 24px; }
  .always__list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Landing v2 (copy "anteprima già pronta"): problem list, 4 steps,
   Smart offer, add-on plans, comparison table, guarantee, P.S.
   -------------------------------------------------------------------------- */
.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;
}

.hero__lead strong { color: var(--ink); font-weight: 600; }
.feature__copy .lead + .lead { margin-top: 16px; }

.recognize {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 22px;
}
.recognize .stars { gap: 14px; }

.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step--dark { background: var(--ink); color: #fff; }
.step--dark .step__text { color: rgba(255,255,255,.75); }

.versus {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px 32px;
  align-items: center;
}
.versus p { font-size: 15px; color: var(--ink-soft); }
.versus__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.versus__label--us { color: var(--pink); }

.section__cta { margin-top: 40px; text-align: center; }
.section__head--spaced { margin-top: clamp(72px, 9vw, 120px); }

.offer {
  background: var(--card);
  border-radius: 32px;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.offer__copy { display: grid; gap: 20px; }
.offer__copy .eyebrow { justify-self: start; margin-bottom: 0; }
.offer__price {
  margin-top: 12px;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 28px;
  display: grid;
  gap: 10px;
}
.offer__price .btn { margin-top: 10px; justify-self: start; }
.offer__anchor { font-size: 14px; color: var(--ink-soft); }
.offer__list { gap: 14px; }
.offer__list li, .plan .stars li { font-size: 15px; }
.offer__list b, .plan .stars b { font-weight: 600; color: var(--ink); }

.price { font-size: 18px; color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price b { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.price span { font-size: 14px; color: var(--muted); }

.plans--2 { grid-template-columns: 1fr 1fr; }
.plan__title { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.18; letter-spacing: -.02em; }
.plan__note { font-size: 14px; color: var(--ink-soft); padding-top: 18px; border-top: 1px solid var(--border); }
.plan__note b { color: var(--ink); }
.plan__price { display: grid; gap: 6px; }
.plan--featured .plan__note { border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.75); }
.plan--featured .plan__note b,
.plan--featured .stars b,
.plan--featured .price b { color: #fff; }
.plan--featured .price, .plan--featured .price span, .plan--featured .small { color: rgba(255,255,255,.7); }

.table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.compare-table tbody th { font-weight: 500; color: var(--ink-soft); width: 28%; }
.compare-table .is-featured { background: var(--pink-soft); }
.compare-table .yes { color: var(--green); font-weight: 600; }
.compare-table .no { color: var(--muted); }

.cta .form .h3 { margin-bottom: 4px; }
.ps { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: 12px; }
.ps p { font-size: 14px; color: rgba(255,255,255,.7); }
.ps b { color: #fff; }

@media (max-width: 1080px) {
  .steps--4 { grid-template-columns: 1fr 1fr; }
  .plans--2 { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr 1fr; }
  .versus .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 900px) {
  .offer { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .steps--4, .versus { grid-template-columns: 1fr; }
  .versus .btn, .offer__price .btn, .section__cta .btn { width: 100%; }
  .offer { border-radius: var(--radius-card); }
}
@media (max-width: 900px) {
  .cta { grid-template-columns: minmax(0, 1fr); }
  .form input, .form textarea { min-width: 0; width: 100%; }
}
@media (max-width: 640px) {
  .cta { padding: 32px 20px; border-radius: var(--radius-card); }
  .form { padding: 20px; }
}

/* Page variants: [data-show="anteprima"] by default, [data-show="nuovo"] on /nuovo-sito */
html:not([data-variant="nuovo"]) [data-show="nuovo"],
html[data-variant="nuovo"] [data-show="anteprima"] { display: none !important; }

/* --------------------------------------------------------------------------
   Landing v3 (tono "tu", pacchetto Smart "a partire da", blocco servizio)
   -------------------------------------------------------------------------- */
.service {
  margin-top: 24px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px 48px;
  align-items: start;
}
.service > div { display: grid; gap: 16px; }
.service .eyebrow { color: rgba(255,255,255,.7); margin-bottom: 0; }
.service .h3 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); }
.service p { font-size: 15px; color: rgba(255,255,255,.75); }
.service .stars { gap: 16px; }
.service .stars li { color: rgba(255,255,255,.85); font-size: 15px; }
.service .stars li::before { background: var(--pink); color: #fff; }
.service .stars b { color: #fff; font-weight: 600; }
.price__from { font-size: 16px; font-weight: 500; color: var(--ink-soft); flex-basis: 100%; }
@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Long CTA labels ("Sono interessato! Fammi una proposta") wrap instead of overflowing their card */
  .hero__cta .btn, .versus .btn, .offer__price .btn, .section__cta .btn, .form .btn {
    white-space: normal; height: auto; min-height: 56px; padding: 14px 24px; line-height: 1.25; text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Landing v4: press strip above the fold, "Chi siamo" timeline,
   inner pages (dal vecchio al nuovo, pacchetti)
   -------------------------------------------------------------------------- */
/* Press logos under the hero CTAs (explicitly placed in the copy column) */
.hero__press { grid-column: 1; grid-row: 2; margin-top: 40px; display: grid; gap: 12px; }
.hero__press .press__label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero__press .press__logos { gap: 14px 24px; }
.hero__press .press__logos img { height: 17px; }
.hero__press .press__logos img[alt="Thrive Global"] { height: 28px; }
.hero__press .press__logos img[alt="Medium"] { height: 13px; }
@media (min-width: 901px) {
  /* keep the visual centred against copy + logos, not just the copy */
  .hero__visual { grid-row: 1 / span 2; }
}
@media (max-width: 640px) {
  .hero__press { margin-top: 28px; }
  .hero__press .press__logos { gap: 10px 22px; }
  .hero__press .press__logos img { height: 15px; }
  .hero__press .press__logos img[alt="Thrive Global"] { height: 24px; }
  .hero__press .press__logos img[alt="Medium"] { height: 12px; }
}

.textlink, .offer__more { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.textlink:hover, .offer__more:hover { color: var(--pink); }
.service .textlink { color: #fff; }
.offer__more { font-size: 14px; margin-top: 4px; }

/* Timeline: two parallel vertical lines that merge into one point */
.tl { margin-top: clamp(56px, 7vw, 96px); --tl-gap: 120px; --tl-line: 2px; }
.tl__title, .tl__lead { text-align: center; }
.tl__lead { margin: 12px auto 40px; max-width: 560px; }
.tl__grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--tl-gap) minmax(0, 1fr); }
.tl__col { display: grid; grid-template-rows: auto 1fr; }
.tl__who { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; margin-bottom: 20px; }
.tl__col--l .tl__who { text-align: right; padding-right: 32px; }
.tl__col--r .tl__who { padding-left: 32px; }
.tl__list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.tl__col--l .tl__list { border-right: var(--tl-line) solid var(--ink); }
.tl__col--r .tl__list { border-left: var(--tl-line) solid var(--ink); }
.tl__list li { position: relative; padding: 0 32px 28px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.tl__col--l li { text-align: right; }
.tl__list li::before {
  content: ""; position: absolute; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: var(--tl-line) solid var(--ink);
}
.tl__col--l li::before { right: -7px; }
.tl__col--r li::before { left: -7px; }
.tl__list b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.tl__year {
  display: block; margin-bottom: 4px;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .02em;
  color: var(--pink-dark);
}
.tl__merge { grid-column: 2; grid-row: 2; width: 100%; height: 110px; display: block; overflow: visible; }
.tl__merge path { fill: none; stroke: var(--ink); stroke-width: var(--tl-line); }
.tl__origin { grid-column: 1 / -1; grid-row: 3; justify-self: center; text-align: center; max-width: 440px; margin-top: -2px; }
.tl__origin::before {
  content: ""; display: block; width: 22px; height: 22px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--pink);
  box-shadow: 0 0 0 6px var(--pink-soft);
}
.tl__origin .tl__year { font-size: 16px; }
.tl__origin b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; line-height: 1.1; }
.tl__origin p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 640px) {
  .tl { --tl-gap: 44px; }
  .tl__who { font-size: 17px; }
  .tl__col--l .tl__who { padding-right: 16px; }
  .tl__col--r .tl__who { padding-left: 16px; }
  .tl__list li { padding: 0 16px 22px; font-size: 12.5px; }
  .tl__list b { font-size: 13px; }
  .tl__merge { height: 80px; }
}

/* Inner pages */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: -84px 0 auto 0; height: 620px;
  background: var(--wash); pointer-events: none; z-index: -1;
}
.page-hero .display { max-width: 900px; }
.page-hero .lead { margin-top: 24px; max-width: 680px; }
.page-hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* before/after pair */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba__col { border-radius: var(--radius-card); padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; align-content: start; background: var(--card); }
.ba__col--new { background: var(--ink); color: #fff; }
.ba__tag { display: inline-flex; width: max-content; height: 28px; padding: .08em 12px 0; align-items: center; border-radius: 99px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: #fff; color: var(--muted); border: 1px solid var(--border); }
.ba__col--new .ba__tag { background: var(--pink); color: #fff; border-color: var(--pink); }
.ba__col .stars li { color: var(--ink-soft); }
.ba__col .stars li::before { content: "×"; background: #ececec; color: #d64545; font-size: 15px; }
.ba__col--new .stars li { color: rgba(255,255,255,.88); }
.ba__col--new .stars li::before { content: "✓"; background: var(--pink); color: #fff; font-size: 12px; }

/* the owned-booking flow */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: flow; }
.flow__step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px; display: grid; gap: 10px; align-content: start; }
.flow__step::before { counter-increment: flow; content: "0" counter(flow); font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--pink); letter-spacing: -.03em; }
.flow__step h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.15; letter-spacing: -.02em; }
.flow__step p { font-size: 15px; color: var(--ink-soft); }
.flow__note { margin-top: 16px; border-radius: var(--radius-card); background: var(--pink-soft); padding: 22px 28px; font-size: 15px; }

.dark-band { background: var(--ink); color: #fff; border-radius: 32px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.dark-band .lead { color: rgba(255,255,255,.75); margin-top: 16px; }
.dark-band .stars li { color: rgba(255,255,255,.9); }
.dark-band .stars li::before { background: var(--pink); color: #fff; }

.entry-price { text-align: center; max-width: 760px; margin: 0 auto; display: grid; gap: 14px; justify-items: center; }
.entry-price .price b { font-size: clamp(52px, 8vw, 88px); }
.entry-price .price { justify-content: center; }

@media (max-width: 900px) {
  .ba, .flow, .dark-band { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Restyle v5 — menu/pills live above; here: ribbon, marquee, numbered badges,
   section headings that mix accent + oblique words.
   -------------------------------------------------------------------------- */

/* A single coral ribbon, dropped behind two or three sections. Decorative. */
.ribbon { position: relative; overflow: hidden; }  /* the bleed below must not widen the page */
.ribbon::before {
  content: "";
  position: absolute; inset: -10% -6%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 600' preserveAspectRatio='none'%3E%3Cpath d='M-60 470 C 220 470, 240 120, 500 140 C 760 160, 720 500, 980 470 C 1120 455, 1180 380, 1260 330' fill='none' stroke='%23ff5a36' stroke-width='96' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .07;
  pointer-events: none;
  z-index: -1;
}
.ribbon--flip::before { transform: scaleX(-1); }
.ribbon > * { position: relative; }

/* Marquee: alternating accent and ink words, one slow pass. */
.marquee { overflow: hidden; padding: 28px 0; border-block: 1px solid var(--border); }
.marquee__track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee__group span {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.8vw, 38px); line-height: 1; letter-spacing: -.02em;
  white-space: nowrap;
}
.marquee__group span:nth-of-type(even) { color: var(--pink); font-style: oblique 10deg; }
.marquee__group i { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* KPI cards: softer surface, a numbered dark chip instead of a border. */
.badge {
  border: 0;
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 30px 22px;
  position: relative;
}
.badge__big { color: var(--ink); }
.badge::before {
  counter-increment: badge; content: "0" counter(badge);
  position: absolute; top: 16px; left: 16px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: .04em;
  display: grid; place-items: center;
}
.badges { counter-reset: badge; }

/* Cards and panels pick up the larger radius; keep surfaces quiet. */
.step, .recognize, .offer__price, .flow__step, .plan, .method__card { border-radius: var(--radius-card); }
.faq details { border-radius: 20px; }

/* --------------------------------------------------------------------------
   Pacchetti: split hero with the entry-price card, split section heads
   -------------------------------------------------------------------------- */
.pk-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.pk-hero .display { max-width: none; }
.entry {
  background: var(--ink); color: #fff;
  border-radius: 32px;
  padding: clamp(28px, 3vw, 40px);
  display: grid; gap: 18px;
  position: relative; overflow: hidden;
}
.entry::before {                       /* the same coral wash as the hero, on dark */
  content: ""; position: absolute; inset: auto -20% -50% auto; width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,90,54,.35), rgba(255,90,54,0) 65%); pointer-events: none;
}
.entry > * { position: relative; }
.entry__label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.entry .price, .entry .price span, .entry .price__from { color: rgba(255,255,255,.7); }
.entry .price b { color: #fff; font-size: clamp(56px, 6vw, 84px); }
.entry__note { font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.72); }
/* three rising bars: the "depth" the page talks about */
.entry__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; height: 96px; margin-top: 6px; }
.entry__steps span {
  height: var(--h); border-radius: 12px 12px 6px 6px;
  background: rgba(255,255,255,.1);
  display: flex; align-items: flex-end; padding: 8px 10px;
  transform-origin: bottom; animation: entry-rise .9s var(--ease) both;
}
.entry__steps span:nth-child(1) { animation-delay: .35s; }
.entry__steps span:nth-child(2) { animation-delay: .45s; background: rgba(255,255,255,.18); }
.entry__steps span:nth-child(3) { animation-delay: .55s; background: var(--pink); }
.entry__steps i { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
@keyframes entry-rise { from { transform: scaleY(.15); opacity: 0; } to { transform: none; opacity: 1; } }

.section__head--split {
  max-width: none; margin: 0 0 40px; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(32px, 6vw, 96px); align-items: end;
}
.section__head--split .lead { margin-top: 0; max-width: 520px; }
.pk-more { margin-top: 28px; }
.flow--plain .flow__step::before { display: none; }

@media (max-width: 900px) {
  .pk-hero, .section__head--split { grid-template-columns: 1fr; }
  .section__head--split { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .entry__steps span { animation: none; }
}

/* --------------------------------------------------------------------------
   Page transition: two curtains (coral, then ink with the wordmark) rise over
   the page, the next page loads behind them and they lift away. Built from
   html::before / ::after, driven by classes set in main.js and the inline
   script in each <head>. Skipped entirely for reduced-motion users.
   -------------------------------------------------------------------------- */
html::before, html::after {
  content: "";
  position: fixed; left: 0; width: 100%;
  top: -12vw; height: calc(100vh + 24vw + 8px);
  z-index: 200; pointer-events: none; visibility: hidden;
  border-radius: 50% / 12vw;                      /* soft curved leading edge */
  transform: translateY(calc(100vh + 12vw + 8px));
}
html::before { background: var(--pink); }
html::after {
  background: var(--overlay); color: transparent;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(32px, 5vw, 64px);
  content: "subito.online";
}
html.is-leaving::before, html.is-leaving::after,
html.is-arriving::before, html.is-arriving::after { visibility: visible; }
html.is-leaving { pointer-events: none; }

html.is-leaving::before { animation: curtain-in .62s cubic-bezier(.76, 0, .24, 1) both; }
html.is-leaving::after  { animation: curtain-in .62s cubic-bezier(.76, 0, .24, 1) .11s both, curtain-word .35s ease .6s both; }
html.is-leaving main { animation: page-away .62s cubic-bezier(.76, 0, .24, 1) both; }

/* new page: start covered (set before first paint), then lift */
html.is-arriving::before, html.is-arriving::after { transform: none; }
html.is-arriving::after { color: #fff; }
html.is-revealing::before { animation: curtain-out .7s cubic-bezier(.76, 0, .24, 1) .14s both; }
html.is-revealing::after  { animation: curtain-out .7s cubic-bezier(.76, 0, .24, 1) both, curtain-word-out .25s ease both; }
html.is-revealing main    { animation: page-rise .9s var(--ease) .3s both; }

@keyframes curtain-in  { from { transform: translateY(calc(100vh + 12vw + 8px)); } to { transform: none; } }
@keyframes curtain-out { from { transform: none; } to { transform: translateY(calc(-100vh - 12vw - 8px)); } }
@keyframes curtain-word { from { color: transparent; } to { color: #fff; } }
@keyframes curtain-word-out { from { color: #fff; } to { color: transparent; } }
@keyframes page-away { to { transform: translateY(-4vh) scale(.985); opacity: .5; } }
@keyframes page-rise { from { transform: translateY(6vh); opacity: .2; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html::before, html::after { display: none; }
  html.is-leaving main, html.is-revealing main { animation: none; }
}

/* --------------------------------------------------------------------------
   Privacy: sticky index on the left, readable column on the right
   -------------------------------------------------------------------------- */
.legal { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 720px); gap: clamp(32px, 7vw, 120px); align-items: start; }
.legal__toc { position: sticky; top: 104px; }
.legal__toc ol { counter-reset: toc; display: grid; list-style: none; margin: 0; padding: 0; }
.legal__toc li { counter-increment: toc; border-top: 1px solid var(--rule); }
.legal__toc li:last-child { border-bottom: 1px solid var(--rule); }
.legal__toc a {
  display: flex; gap: 14px; align-items: baseline; padding: 11px 0; font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.legal__toc a::before { content: "0" counter(toc); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--pink); }
.legal__toc a:hover { color: var(--ink); padding-left: 6px; }
.legal__body { display: grid; gap: 48px; }
.legal__body section { display: grid; gap: 14px; scroll-margin-top: 104px; }
.legal__body p, .legal__list li { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.legal__body b { color: var(--ink); font-weight: 600; }
.legal__body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 3px; }
.legal__sub { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; margin-top: 6px; }
.legal__list { display: grid; gap: 10px; }
.legal__list li { position: relative; padding-left: 22px; }
.legal__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal__toc { position: static; }
}
