/* ============================================================
   INFOTRE · Proposta pagamenti B2B
   Stesso sistema della landing consumer, registro più sobrio.
   ============================================================ */

:root {
  --brand: #173a89;
  --brand-600: #1d4bb0;
  --brand-050: #eef3ff;
  --brand-100: #dbe6ff;
  --accent: #de3923;

  --navy-900: #060f24;
  --navy-800: #0b1b3c;
  --navy-700: #122a5c;

  --green: #0b6f57;
  --green-600: #085443;
  --green-050: #e6f7f1;
  --green-bright: #21b98f;

  --ink: #0b1220;
  --ink-2: #26344b;
  --muted: #5b6b86;
  --muted-2: #8496ad;
  --line: #e3e8f0;
  --line-2: #eef2f7;
  --surface: #f6f8fc;

  --sh-xs: 0 1px 2px rgba(11, 18, 32, .05);
  --sh-sm: 0 2px 8px rgba(11, 18, 32, .06);
  --sh-md: 0 10px 30px -12px rgba(11, 27, 60, .18);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-full: 999px;

  --wrap: min(1060px, calc(100% - 2.5rem));

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.wrap { width: var(--wrap); margin-inline: auto; }

.skip {
  position: fixed; left: 1rem; top: -100px; z-index: 200;
  background: #fff; padding: .75rem 1rem; border-radius: var(--r-xs);
  box-shadow: var(--sh-md); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* fascia a tutta larghezza senza wrapper aggiuntivi */
.band { position: relative; clip-path: inset(0 -100vw); }

/* ---------- Tipografia ---------- */
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.85rem); letter-spacing: -.035em; line-height: 1.06; }
h1 em { font-style: normal; display: block; color: #9dc0ff; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }

.eyebrow {
  margin: 0 0 .875rem;
  font-size: .6875rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-600);
}

.lead {
  font-size: clamp(1rem, .95rem + .35vw, 1.15rem);
  line-height: 1.6; margin: 0;
  text-wrap: pretty;
}

/* ---------- Header ---------- */
header { border-bottom: 1px solid var(--line); background: #fff; }
.nav { height: 4.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav img { width: 7.25rem; }
.call {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: .5rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r-full);
  font-size: .875rem; font-weight: 600; color: var(--brand);
  text-decoration: none; box-shadow: var(--sh-xs);
  transition: border-color .18s, transform .18s;
}
.call:hover { border-color: var(--brand-100); transform: translateY(-1px); }

/* ---------- Bottone ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  min-height: 3.25rem; padding: .875rem 1.75rem;
  border: 1px solid transparent; border-radius: var(--r-full);
  background: var(--green); color: #fff;
  font: inherit; font-size: .975rem; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none;
  box-shadow: 0 10px 26px -12px rgba(11, 111, 87, .8);
  transition: transform .18s cubic-bezier(.2,.8,.3,1), background-color .18s;
}
.button:hover { background: var(--green-600); transform: translateY(-2px); }
.button:active { transform: translateY(1px); }

/* ---------- Hero ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(70rem 34rem at 82% -20%, rgba(42, 96, 214, .38), transparent 60%),
    linear-gradient(162deg, var(--navy-800) 0%, var(--navy-900) 100%);
  padding-block: clamp(1.75rem, 4.5vw, 4rem);
}
.hero .eyebrow { color: #9dc0ff; }
.hero .lead { color: #c1cee3; max-width: 38rem; margin-top: 1rem; }
.hero #hero-main-action { margin-top: 1.75rem; }
.hero .button { background: var(--green-bright); color: #04261e; box-shadow: 0 14px 34px -14px rgba(33,185,143,.85); }
.hero .button:hover { background: #2ccfa1; }
.caption { margin: .875rem 0 0; font-size: .8125rem; color: #90a1bc; }

/* ---------- Navigazione alle soluzioni ---------- */
.solution-nav {
  display: grid; gap: .625rem;
  padding-block: 1rem 0;
}
.solution-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3rem; padding: .75rem 1.125rem;
  border: 1px solid var(--line); border-radius: var(--r-full);
  background: #fff; box-shadow: var(--sh-xs);
  font-size: .9375rem; font-weight: 600; color: var(--ink-2);
  text-decoration: none;
  transition: border-color .18s, transform .18s, color .18s;
}
.solution-nav a:hover { border-color: var(--brand-100); color: var(--brand); transform: translateY(-1px); }
.solution-nav span { color: var(--muted-2); font-weight: 400; }

/* ---------- Le due schede ---------- */
.offers {
  display: grid; gap: 1rem;
  align-items: start;
  padding-block: 1rem 0;
}
.offer {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.125rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--sh-md);
  overflow: hidden;
  scroll-margin-top: 1.5rem;
}
.offer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--brand); }
.offer.soft::before { background: var(--green); }
.offer .eyebrow { margin-bottom: .625rem; }
.soft .eyebrow { color: var(--green); }

.offer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; }
.model { margin: .375rem 0 0; font-size: .875rem; font-weight: 500; color: var(--muted); }
.product {
  width: 5rem; height: 5.75rem; flex: none;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(11, 27, 60, .18));
}

.product-intro { margin: 1rem 0 0; font-size: .975rem; line-height: 1.55; color: var(--muted); }

.price {
  display: flex; align-items: baseline; gap: .875rem;
  margin: 1.25rem 0 0;
  padding: .875rem 1.125rem;
  border-radius: var(--r-sm);
  background: var(--brand-050);
}
.soft .price { background: var(--green-050); }
.price strong {
  font-size: clamp(2rem, 1.7rem + 1.2vw, 2.6rem);
  font-weight: 700; line-height: 1; letter-spacing: -.045em;
  color: var(--brand);
}
.soft .price strong { color: var(--green); }
.price span { font-size: .875rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.price b { font-weight: 600; }

.conditions { margin: .75rem 0 0; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.conditions b { font-weight: 600; color: var(--ink-2); }

.features { list-style: none; margin: 1.125rem 0; padding: 0; display: grid; gap: .75rem; }
.features li { position: relative; padding-left: 2rem; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.features li::before {
  content: "";
  position: absolute; left: 0; top: .15rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--brand-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173a89' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / .7rem no-repeat;
}
.soft .features li::before {
  background-color: var(--green-050);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6f57' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.features b { display: block; margin-bottom: .125rem; font-size: .9375rem; font-weight: 650; color: var(--ink); }

.soft-visual { margin: 1.25rem 0 0; }
.soft-visual img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff;
}
.soft-visual figcaption { margin-top: .5rem; font-size: .8125rem; line-height: 1.5; color: var(--muted); }

.product-details {
  margin-top: .25rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface);
}
.product-details summary { padding: .75rem 2.5rem .75rem 1rem; font-size: .875rem; }
.product-details summary::after { right: .875rem; }
.product-details p { margin: 0; padding: 0 1rem 1rem; font-size: .8125rem; line-height: 1.6; color: var(--muted); }

.offer-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; margin-top: 1.5rem; padding: .75rem 1.5rem;
  border: 1px solid var(--brand-100); border-radius: var(--r-full);
  background: #fff; color: var(--brand);
  font-size: .9375rem; font-weight: 600; text-decoration: none;
  box-shadow: var(--sh-xs);
  transition: background-color .18s, border-color .18s, transform .18s;
}
.offer-link:hover { background: var(--brand-050); border-color: var(--brand-600); transform: translateY(-1px); }
.soft .offer-link { color: var(--green); border-color: #bfe6d8; }
.soft .offer-link:hover { background: var(--green-050); border-color: var(--green); }

/* ---------- Strip partner ---------- */
.support {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.125rem;
  margin-top: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--navy-800);
  color: #c6d2e5;
}
.support img { width: 8rem; flex: none; }
.support p { margin: 0; font-size: .875rem; line-height: 1.55; }
.support b { color: #fff; font-weight: 600; }

/* ---------- Metodo ---------- */
.approach { padding-block: clamp(1.5rem, 4vw, 3rem) 0; }
.approach p { margin: .875rem 0 0; font-size: 1rem; line-height: 1.6; color: var(--muted); max-width: 44rem; }

/* ---------- FAQ ---------- */
.detail-section { padding-block: clamp(1.5rem, 4vw, 3rem) 0; }
.detail-section h2 { margin-bottom: 1.25rem; }
.detail-section details {
  margin-bottom: .5rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.detail-section details[open] { border-color: var(--brand-100); box-shadow: var(--sh-sm); }
summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 1rem 3rem 1rem 1.125rem;
  font-size: .9375rem; font-weight: 600; letter-spacing: -.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 1rem; top: 50%;
  width: 1.5rem; height: 1.5rem; margin-top: -.75rem;
  border-radius: 50%; background: var(--brand-050);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173a89' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: .8rem;
  transition: transform .22s ease;
}
details[open] > summary::after { transform: rotate(180deg); }
.detail-section details p {
  margin: 0 0 1rem; padding: 0 1.125rem;
  font-size: .9rem; line-height: 1.6; color: var(--muted);
  max-width: 44rem;
}

/* ---------- Chiusura ---------- */
.closing {
  margin-top: clamp(1.75rem, 5vw, 4rem);
  padding-block: clamp(1.75rem, 4.5vw, 3.5rem);
  background: var(--brand);
  color: #fff;
  text-align: center;
}
.closing h2 { color: #fff; margin-bottom: 1.5rem; max-width: 34rem; margin-inline: auto; }
.closing .button { background: #fff; color: var(--brand); box-shadow: var(--sh-md); }
.closing .button:hover { background: #e8eefc; }
.closing-note { margin: 1rem 0 0; font-size: .8125rem; color: #bccdf0; }

/* ---------- Footer ---------- */
footer { padding-block: 1.5rem 6rem; color: var(--muted); }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
}
.footer-top b { color: var(--ink); font-weight: 600; }
.footer-top a { color: var(--brand); font-weight: 500; text-decoration: none; }
.footer-top a:hover { text-decoration: underline; }
footer p { margin: 0; font-size: .8125rem; line-height: 1.65; color: var(--muted-2); max-width: 58rem; }

/* ---------- Barra fissa mobile ---------- */
.sticky {
  position: fixed; inset: auto 0 0; z-index: 100;
  padding: .75rem 1.25rem calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(11,27,60,.5);
}
.sticky .button { width: 100%; min-height: 3rem; font-size: .9375rem; }

/* ============================================================
   Breakpoint
   ============================================================ */
@media (min-width: 40rem) {
  .solution-nav { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 62rem) {
  .solution-nav { display: none; }
  .offers { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .offer { padding: 2.25rem; }
  .sticky { display: none !important; }
  footer { padding-bottom: 2.5rem; }
}


/* Terminale decorativo nella hero, solo da desktop */
.hero-product { display: none; }
@media (min-width: 62rem) {
  .hero .wrap {
    display: grid;
    grid-template-columns: 1fr 24rem;
    column-gap: 3.5rem;
    align-items: center;
  }
  .hero-product {
    display: block;
    grid-column: 2;
    width: 100%; height: auto;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r-md);
    box-shadow: 0 28px 60px -28px rgba(0, 0, 0, .8);
  }
}
