/* ═══════════════════════════════════════════════════════════════════════════
   battistradapro.it — foglio di stile unico
   Il sistema Grafite è definito in identita/sistema.md: i valori qui sotto
   sono quelli, e non se ne inventano altri.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── carattere: servito da noi, non da Google ────────────────────────────────
   Self-hosted di proposito. Chiamare fonts.gstatic.com significa mandare
   l'indirizzo IP di ogni visitatore a un terzo paese: è la cosa che vendiamo
   di non fare, non possiamo farla in home page.                             */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('font/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('font/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── token ─────────────────────────────────────────────────────────────────── */
:root {
  --ink:        #10141A;
  --ink-soft:   #20242A;
  --grey-700:   #44484E;
  --grey-600:   #71757B;
  --grey-500:   #95989F;
  --grey-400:   #BBBEC3;
  --grey-300:   #DCDEE2;
  --grey-200:   #EBEDF0;
  --grey-100:   #F5F7F9;
  --paper:      #FFFFFF;

  --cobalt:       #1566C5;
  --cobalt-dark:  #0050A2;
  --cobalt-light: #61A6FF;
  --cobalt-wash:  #E7F1FF;

  --radius-s:    8px;
  --radius-m:   14px;
  --radius-full: 999px;

  --width:  1200px;
  --gutter: 20px;

  /* La scala tipografica interpola fra l'artboard da 390 e quello da 1440:
     a quelle due larghezze rende i valori approvati, in mezzo scala liscia. */
  --t-h1:        clamp(38px, 3.62vw + 23.9px, 76px);
  /* La crenatura è in em: legata al corpo, non a un valore fisso che a 38px
     chiuderebbe le parole una sull'altra. */
  --kern-tight:  -0.04em;
  --kern:        -0.036em;
  --t-h2:        clamp(30px, 1.33vw + 24.8px, 44px);
  --t-h2-narrow: clamp(28px, 1.14vw + 23.6px, 40px);
  --t-h2-wide:   clamp(32px, 1.71vw + 25.3px, 50px);
  --t-h3:        clamp(18px, 0.29vw + 16.9px, 21px);
  --t-lead:      clamp(16px, 0.38vw + 14.5px, 20px);
  --t-body:      clamp(15px, 0.19vw + 14.3px, 17px);
  --t-card:      15px;
  --t-num:       clamp(30px, 1.14vw + 25.5px, 42px);
  --t-small:     13px;
  --t-eyebrow:   clamp(11px, 0.1vw + 10.6px, 12px);
}

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: Archivo, 'Helvetica Neue', Arial, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }

a { color: var(--cobalt); text-decoration: none; }
a:hover { color: var(--cobalt-dark); }

:focus-visible {
  outline: 3px solid var(--cobalt-light);
  outline-offset: 3px;
  border-radius: 4px;
}

strong { font-weight: 600; }

/* Lo screen reader lo legge, lo schermo no. */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  padding: 12px 20px; border-radius: var(--radius-s);
  background: var(--cobalt); color: #FFF; font-weight: 600;
  transition: top .15s;
}
.skip-link:focus { top: 12px; color: #FFF; }

/* ── impaginato ────────────────────────────────────────────────────────────── */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--width));
  margin-inline: auto;
}

.section { padding-block: clamp(40px, 6.6vw, 100px); }
.section--dark { background: var(--ink); color: var(--grey-100); }
.section--wash { background: var(--grey-100); }
.section--ruled { border-block: 1px solid var(--grey-300); }
.section--figures {
  padding-block: clamp(30px, 4.6vw, 66px);
  border-bottom: 1px solid var(--grey-300);
}

/* Due colonne che a schermo stretto diventano una. Il punto di rottura è a
   900px perché sotto quella misura la colonna di testo scende sotto i 45
   caratteri per riga e si legge peggio affiancata che impilata. */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split--top { align-items: start; }
.split--cta { grid-template-columns: 1.15fr 1fr; }

.stack { display: flex; flex-direction: column; gap: 22px; }
.stack--tight { gap: 14px; }
.stack--head  { gap: 18px; max-width: 760px; }
.stack--wide  { gap: clamp(32px, 3.4vw, 52px); }

/* ── titoli ────────────────────────────────────────────────────────────────── */
.eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--cobalt);
}
.section--dark .eyebrow { color: var(--cobalt-light); }

.h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: var(--kern);
  text-wrap: balance;
}
.h2--narrow { font-size: var(--t-h2-narrow); letter-spacing: -0.035em; line-height: 1.12; }
.h2--wide   { font-size: var(--t-h2-wide);   letter-spacing: var(--kern-tight); line-height: 1.08; color: #FFF; }
.section--dark .h2 { color: #FFF; }

.h3 {
  font-size: var(--t-h3);
  font-weight: 600;
  letter-spacing: -0.029em;
  line-height: 1.25;
}

.body {
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--grey-700);
  text-wrap: pretty;
}
.section--dark .body { color: var(--grey-400); }
.section--dark .body strong { color: #FFF; }

.note {
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--grey-600);
}
.section--dark .note { color: var(--grey-500); }

/* ── bottoni ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  padding-inline: 30px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.btn--primary { background: var(--cobalt); color: #FFF; }
.btn--primary:hover { background: var(--cobalt-dark); color: #FFF; }
.btn--outline { border: 1px solid var(--grey-700); color: var(--grey-100); }
.btn--outline:hover { border-color: var(--grey-500); color: #FFF; }
.btn--small { height: 44px; padding-inline: 22px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 56px;
  color: var(--grey-100);
  font-size: 16px;
  font-weight: 500;
}
.btn-quiet:hover { color: #FFF; }

/* ── testata ───────────────────────────────────────────────────────────────── */
.masthead { background: var(--ink); }
.masthead__inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.masthead__nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 36px);
}
.masthead__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey-400);
}
.masthead__nav a:hover { color: #FFF; }
.masthead__nav .btn--primary { color: #FFF; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.038em;
  color: var(--grey-100);
}
.wordmark:hover { color: var(--grey-100); }
.wordmark em { font-style: normal; color: var(--cobalt-light); }
.wordmark svg { flex-shrink: 0; }

/* ── eroe ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding-block: clamp(40px, 6.6vw, 96px) clamp(44px, 5.8vw, 84px);
}
/* La rigatura obliqua: è la stessa dell'artboard, 101° e 26px di passo. */
.hero::before,
.section--striped::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(101deg,
    rgba(97, 166, 255, .055) 0px, rgba(97, 166, 255, .055) 2px,
    transparent 2px, transparent 26px);
  pointer-events: none;
}
.section--striped { position: relative; overflow: hidden; }
.hero > .wrap, .section--striped > .wrap { position: relative; }

.hero__content { gap: clamp(20px, 2.2vw, 30px); max-width: 940px; }
.demo__title { display: flex; flex-direction: column; gap: 5px; }

.badge {
  align-self: start;
  border: 1px solid rgba(97, 166, 255, .32);
  background: rgba(97, 166, 255, .09);
  color: var(--cobalt-light);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: clamp(11px, .1vw + 10.6px, 12px);
  font-weight: 600;
  letter-spacing: .6px;
}

.hero h1 {
  font-size: var(--t-h1);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: var(--kern-tight);
  color: #FFF;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--cobalt-light); }

.hero__lead {
  font-size: var(--t-lead);
  line-height: 1.6;
  color: var(--grey-400);
  max-width: 760px;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 6px;
}

.proof {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: clamp(4px, 1.6vw, 22px);
  padding-top: clamp(20px, 1.9vw, 26px);
  border-top: 1px solid rgba(255, 255, 255, .10);
}
.proof svg { flex-shrink: 0; margin-top: 3px; }
.proof p { font-size: 14px; line-height: 1.5; color: var(--grey-500); }
.proof strong { color: var(--grey-300); font-weight: 600; }

/* ── dimostrazione: tre offerte, una riga ──────────────────────────────────── */
.demo { gap: 14px; }
.demo__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--grey-600);
}
.demo__rows { display: flex; flex-direction: column; gap: 8px; }
.demo__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-s);
  background: var(--paper);
}
.demo__row span:first-child { font-size: 14px; color: var(--grey-700); }
.demo__row span:last-child  { font-size: 15px; font-weight: 600; }
.demo__row--out span:last-child { color: var(--grey-600); text-decoration: line-through; }

.demo__arrow { display: flex; justify-content: center; padding-block: 6px; }

.demo__card {
  border: 1px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
}
.demo__head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--paper);
}
.demo__name { font-size: 16px; font-weight: 600; }
.demo__spec { font-size: 13px; color: var(--grey-600); }
.demo__price { font-size: 22px; font-weight: 700; letter-spacing: -0.027em; }
.demo__foot {
  padding: 16px 22px;
  background: var(--grey-100);
  border-top: 1px solid var(--grey-300);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo__foot > span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--grey-600);
}
.demo__choices { display: flex; flex-wrap: wrap; gap: 10px; }
.demo__choice {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-s);
  background: var(--paper);
  font-size: 13px;
  color: var(--grey-700);
}
.demo__choice span:last-child { font-weight: 600; }
.demo__choice--picked {
  border: 2px solid var(--cobalt);
  background: var(--cobalt-wash);
  color: var(--cobalt-dark);
  font-weight: 600;
}

.pullquote {
  margin-top: 6px;
  padding: 18px 20px;
  border-left: 3px solid var(--cobalt);
  background: var(--grey-100);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ── carte ─────────────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 26px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-m);
  padding: clamp(22px, 2.2vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card p {
  font-size: var(--t-card);
  line-height: 1.62;
  color: var(--grey-700);
  text-wrap: pretty;
}
.card--outlined {
  border: 2px solid var(--cobalt);
  align-self: start;
  gap: 14px;
}
.card__head { display: flex; align-items: center; gap: 12px; }
.card__head svg { flex-shrink: 0; }
.card strong.claim { color: var(--ink); font-weight: 600; }

/* ── finto browser del white label ─────────────────────────────────────────── */
.browser {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--ink-soft);
}
.browser__bar {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  display: flex;
  align-items: center;
  gap: 10px;
}
.browser__dot { width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--grey-700); }
.browser__url {
  flex-grow: 1;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--ink);
  display: flex;
  align-items: center;
  padding-inline: 12px;
  font-size: 11px;
  color: var(--grey-600);
}
.browser__body { padding: 26px 20px; display: flex; flex-direction: column; gap: 14px; }
.browser__brand { display: flex; align-items: center; gap: 11px; }
.browser__slot {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px dashed var(--grey-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--grey-600);
}
.bar { border-radius: 4px; background: #2C3138; height: 11px; }
.bar--name  { height: 13px; width: 132px; background: var(--grey-700); }
.bar--title { height: 30px; width: 78%; border-radius: 5px; background: #3A3F47; }
.bar--l1 { width: 92%; }
.bar--l2 { width: 84%; }
.browser__swatches { display: flex; gap: 10px; margin-top: 6px; }
.swatch {
  height: 34px; width: 122px;
  border-radius: 7px;
  border: 1px dashed var(--grey-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--grey-600);
}
.swatch--plain { width: 96px; border-style: solid; }

/* ── numeri ────────────────────────────────────────────────────────────────── */
.figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--grey-300);
}
.figure {
  background: var(--paper);
  padding: 4px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.figures > .figure:first-child { padding-left: 0; }
.figures > .figure:last-child  { padding-right: 0; }
.figure dt {
  font-size: var(--t-num);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1;
}
.figure dd {
  margin: 0;
  font-size: clamp(12.5px, .14vw + 12px, 14px);
  line-height: 1.45;
  color: var(--grey-600);
}

/* ── contatti ──────────────────────────────────────────────────────────────── */
.contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: clamp(22px, 2.2vw, 30px);
}
.contact .btn { justify-content: flex-start; padding-inline: 22px; }
.contact svg { flex-shrink: 0; }

/* ── piè di pagina ─────────────────────────────────────────────────────────── */
.colophon {
  background: var(--paper);
  border-top: 1px solid var(--grey-300);
  padding-block: clamp(28px, 3vw, 46px);
}
.colophon__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 40px;
}
.colophon .wordmark { color: var(--ink); font-size: 18px; letter-spacing: -0.033em; }
.colophon .wordmark em { color: var(--cobalt); }
.colophon__domain { font-size: 14px; color: var(--grey-600); margin-left: 6px; }
.colophon__legal { font-size: var(--t-small); color: var(--grey-600); }

/* ═══ punti di rottura ══════════════════════════════════════════════════════ */

@media (min-width: 1180px) {
  /* Sopra questa misura il titolo va su due righe come nell'artboard.
     Sotto torna a flusso, con lo spazio fra le due frasi. */
  .hero h1 em { display: block; }
}

@media (max-width: 900px) {
  .split, .split--cta { grid-template-columns: 1fr; }
  /* Su due colonne i fili di separazione diventano un reticolo: meglio
     lasciarli e distanziare, come fa l'artboard del telefono. */
  .figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 26px);
    background: none;
  }
  .figures > .figure { padding: 0; }
  .masthead__nav a:not(.btn) { display: none; }
  .hero__actions .btn, .hero__actions .btn-quiet { flex: 1 1 240px; }
}

@media (max-width: 560px) {
  .hero__actions .btn-quiet { justify-content: center; }
  /* Affiancate non ci stanno: «5-7 giorni» andava a capo dentro al riquadro. */
  .demo__choice { flex-basis: 100%; }
  .colophon__inner { flex-direction: column; align-items: flex-start; }
  .demo__head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ═══ stampa: la landing su carta è il flyer, non questa ═══════════════════ */
@media print {
  .masthead, .hero__actions, .contact { display: none; }
  body { color: #000; }
}
