:root {
  --navy: #141639;
  --orange: #FF4B2B;
  --orange-ink: #C93116;
  --paper: #F4F4F6;
  --white: #fff;
  --line: rgba(20, 22, 57, .1);
  --muted: #565873;
  --soft: #C3C5DC;
  --pad: clamp(20px, 4.5vw, 72px);
  --display: 'Archivo', 'Arial Black', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font: 500 17px/1.6 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--navy);
  background: #fff;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1:focus { outline: none; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 10px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { padding-inline: var(--pad); }
section { padding-block: clamp(72px, 10vw, 136px); }
.accent { color: var(--orange); }

h1, h2, h3, .banner-title {
  font-family: var(--display);
  font-stretch: 125%;
  font-variation-settings: 'wdth' 125;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0;
}
h1 { font-size: clamp(30px, 3.1vw, 50px); line-height: 1.04; }
h2 { font-size: clamp(30px, 4.4vw, 68px); line-height: 1.03; max-width: 20ch; }
h1 .accent, h2 .accent { display: block; }
h3 { font-size: clamp(24px, 2.5vw, 38px); line-height: 1.08; text-transform: none; font-weight: 700; letter-spacing: -.015em; }
.eyebrow {
  margin: 0 0 16px;
  font: 500 13px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-ink);
}
.big { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 40ch; margin: 22px 0 0; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
/* Sezioni blu: solo tinta piena, nessuna linea. */
.dark { background: var(--navy); color: #fff; }
.dark .eyebrow { color: var(--orange); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 12px;
  background: var(--orange); color: var(--navy);
  font: 500 14px/1 var(--mono);
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform .15s, background .15s;
}
.btn:hover { background: #ff6a4f; transform: translateY(-1px); }
.btn.ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Apertura: il logo si divide a metà e le due parti escono ai lati.
   Tutto in CSS, così finisce da sola anche se lo script non parte. */
.intro { display: none; }
.intro-on .intro {
  --w: min(56vw, 560px, 70svh);
  display: block;
  position: fixed; inset: 0; z-index: 100;
  animation: intro-end 0s linear 2.15s forwards;
}
.intro-half {
  position: absolute; inset: 0;
  background: #fff;
  animation: .48s cubic-bezier(.76, 0, .24, 1) 1.65s forwards;
}
.intro-half.left { clip-path: inset(0 calc(50% - .5px) 0 0); animation-name: intro-left; }
.intro-half.right { clip-path: inset(0 0 0 calc(50% - .5px)); animation-name: intro-right; }
/* Bordo morbido al centro: sul bianco della pagina fa vedere le due metà che si aprono. */
.intro-half::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 22px;
  opacity: 0;
  animation: intro-edge .1s linear 1.65s forwards;
}
.intro-half.left::after { left: calc(50% - 22px); background: linear-gradient(to right, transparent, rgba(20, 22, 57, .14)); }
.intro-half.right::after { left: 50%; background: linear-gradient(to left, transparent, rgba(20, 22, 57, .14)); }
.intro-half img {
  position: absolute; left: 50%; top: 50%;
  width: var(--w); max-width: none;
  transform: translate(-50%, -50%);
  animation: intro-logo .3s ease-out both;
}
.intro.skip { animation: intro-end 0s linear .5s forwards; }
.intro.skip .intro-half { animation-duration: .45s; animation-delay: 0s; }
.intro.skip .intro-half.left { animation-name: intro-left-now; }
.intro.skip .intro-half.right { animation-name: intro-right-now; }
@keyframes intro-left { to { transform: translateX(calc(-50% - 2px)); } }
@keyframes intro-right { to { transform: translateX(calc(50% + 2px)); } }
@keyframes intro-left-now { to { transform: translateX(calc(-50% - 2px)); } }
@keyframes intro-right-now { to { transform: translateX(calc(50% + 2px)); } }
@keyframes intro-edge { to { opacity: 1; } }
@keyframes intro-logo { from { opacity: 0; scale: .94; } }
@keyframes intro-end { to { visibility: hidden; } }
@media (max-width: 859px) {
  .intro-on .intro { --w: min(74vw, 460px, 60svh); }
}

/* Barra: sempre visibile e con le voci in chiaro. */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  width: min(860px, calc(100% - 24px));
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 18px;
  background: #fff;
  backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 6px 26px rgba(20, 22, 57, .13);
}
.brand { flex: none; display: flex; align-items: center; min-height: 44px; margin-right: auto; border-radius: 6px; }
.brand img { height: 30px; width: auto; }
/* I link arrivano a filo della sezione: la barra sta sopra di lei, non su quella prima. */
main > section[id], footer { scroll-margin-top: -96px; }
/* La barra ha sempre il colore opposto allo sfondo: bianca sul blu, blu sul bianco. */
.nav { transition: background-color .2s; }
.brand .logo-for-navy { display: none; }
.nav.on-white { background: rgba(20, 22, 57, .96); box-shadow: 0 6px 26px rgba(20, 22, 57, .22); }
.nav.on-white .brand .logo-for-white { display: none; }
.nav.on-white .brand .logo-for-navy { display: block; }
.nav.on-white .nav-links a { color: #fff; }
.nav.on-white .nav-links a:hover { background: rgba(255, 255, 255, .12); }
.nav.on-white .nav-links a.active { color: var(--orange); }
.nav.on-white .burger span { background: #fff; }
/* In cima c'è già il logo grande: la barra si stringe alle sole voci. */
.nav.at-top { width: fit-content; padding-left: 8px; }
.nav.at-top .brand { display: none; }
.nav-links { display: flex; gap: 2px; margin-right: 10px; }
.nav-links a {
  display: flex; align-items: center; min-height: 44px; padding: 0 13px;
  border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none;
}
.nav-links a:hover { background: var(--paper); }
.nav-links a.active { color: var(--orange-ink); }
.burger {
  display: none; position: relative; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 10px; background: transparent;
}
.burger span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy);
  transition: transform .2s, top .2s;
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded=true] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded=true] span:last-child { top: 21px; transform: rotate(-45deg); }
.only-narrow { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 40;
  padding: 96px var(--pad) 32px;
  background: var(--orange); color: var(--navy);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu nav a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(20, 22, 57, .25);
  font: 800 clamp(26px, 8vw, 40px)/1.1 var(--display);
  font-stretch: 125%; font-variation-settings: 'wdth' 125;
  text-decoration: none; text-transform: uppercase;
}
.menu nav small { font: 500 13px var(--mono); }
.menu p { margin: 24px 0 0; font-weight: 600; }

/* Copertina: il logo è il titolo, e tutto il messaggio entra nella prima schermata. */
.hero { min-height: 100svh; padding: 92px 0 0; overflow: hidden; display: flex; }
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 420px);
  gap: clamp(24px, 3vw, 56px);
  padding-inline: var(--pad);
}
.hero-main { align-self: center; padding-block: 12px clamp(24px, 4vh, 48px); min-width: 0; }
/* La larghezza segue anche l'altezza dello schermo, così titolo e pulsanti restano visibili. */
.hero-logo { width: min(100%, max(420px, calc((100svh - 440px) * 2.76))); margin-left: -1.2%; }
.hero h1 { margin-top: clamp(14px, 2.4vh, 26px); }
.hero-lead { margin: 14px 0 0; max-width: 56ch; color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; }
.hero-note { margin: 16px 0 0; font: 500 13px/1.5 var(--mono); color: var(--orange-ink); }
.hero-visual { position: relative; min-height: 560px; }

.phone {
  width: 280px; height: 560px;
  padding: 10px;
  background: var(--navy);
  border-radius: 40px;
  box-shadow: 0 24px 60px rgba(20, 22, 57, .28);
  flex: none;
}
.screen {
  position: relative; height: 100%;
  background: #fff; color: var(--navy);
  border-radius: 31px;
  padding: 40px 18px 18px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
}
.notch { position: absolute; top: 10px; left: 50%; width: 76px; height: 19px; transform: translateX(-50%); background: var(--navy); border-radius: 10px; }
.tilt {
  position: absolute; left: 50%; top: 0;
  margin-left: -140px;
  top: clamp(8px, 6vh, 56px);
  transform: rotate(-5deg);
  transform-origin: 50% 100%;
}
.float {
  position: absolute; display: flex; gap: 10px; align-items: center;
  padding: 12px 16px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 12px 34px rgba(20, 22, 57, .18);
  font-size: 14px; line-height: 1.3;
  animation: bob 5s ease-in-out infinite;
}
.float small { display: block; color: var(--muted); font-size: 12px; }
.float .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; }
.float.f1 { top: 26%; right: -4%; }
.float.f2 { top: 56%; left: -6%; animation-delay: -2.5s; }
.float.f2 { display: block; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 15px; }
.app-logo { display: grid; place-items: center; width: 46px; height: 46px; padding: 3px; flex: none; border-radius: 12px; background: var(--orange); color: var(--navy); font: 700 9.5px/1.05 'Plus Jakarta Sans', sans-serif; text-align: center; }
.app-hello { margin: 0 0 12px; font-weight: 700; font-size: 18px; }
.app-title { margin: 0 0 12px; font-weight: 700; font-size: 18px; line-height: 1.25; }
.app-title::first-letter { text-transform: uppercase; }
.app-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.app-btn {
  display: block; width: 100%; min-height: 46px; line-height: 46px;
  margin-bottom: 10px; padding: 0;
  border: 0; border-radius: 12px;
  background: var(--orange); color: var(--navy);
  font-weight: 700; font-size: 15px; text-align: center;
}
.app-btn.ghost { background: var(--paper); }
.app-btn:disabled { background: var(--paper); color: #6E708A; cursor: not-allowed; }
.app-btn.pulse { animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 75, 43, .55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255, 75, 43, 0); } }
.app-news { margin-top: 12px; padding: 12px 14px; background: var(--paper); border-radius: 12px; font-size: 14px; }
.app-news small { display: block; color: var(--orange-ink); font-weight: 700; font-size: 12px; }

.view { display: none; }
.view.on { display: block; animation: enter .25s ease-out; }
.view.center.on { display: flex; flex-direction: column; align-items: center; text-align: center; }
@keyframes enter { from { opacity: 0; transform: translateX(10px); } }
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.days button {
  min-height: 66px; padding: 6px 0;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-weight: 700; font-size: 18px; line-height: 1.2;
}
.days small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: capitalize; }
.times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.times button { min-height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; }
.days button:hover, .times button:hover { border-color: var(--orange); }
.days button.sel, .times button.sel { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.days button.sel small { color: var(--navy); }
.done { display: grid; place-items: center; width: 64px; height: 64px; margin: 12px 0 14px; border-radius: 50%; background: var(--orange); }
.done svg { width: 34px; fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.summary { width: 100%; padding: 12px; margin-bottom: 14px; background: var(--paper); border-radius: 12px; }
.summary small { display: block; color: var(--muted); font-size: 12px; }
.summary b::first-letter { text-transform: uppercase; }
.agenda-link { display: flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
.text-btn { min-height: 44px; padding: 0 10px; border: 0; background: none; font-weight: 700; text-decoration: underline; }

/* Il problema */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.messages { display: grid; gap: 14px; }
.messages li { padding: 18px 22px; background: rgba(255, 255, 255, .08); border-radius: 16px; }
.messages li:nth-child(2) { margin-left: 8%; }
.messages li:nth-child(3) { margin-left: 16%; }
.messages small { display: block; margin-bottom: 4px; color: var(--soft); font: 500 13px var(--mono); }
.messages b { font-size: clamp(17px, 1.5vw, 20px); font-weight: 600; }
.banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px;
  margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 3vw, 40px);
  background: var(--orange); color: var(--navy); border-radius: var(--radius);
}
.banner p { margin: 0; font-weight: 600; font-size: clamp(17px, 1.5vw, 20px); }
.banner .banner-title { font-size: clamp(24px, 3vw, 44px); line-height: 1.05; font-weight: 800; }

/* Demo */
.demo {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 280px minmax(280px, 1.15fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(36px, 5vw, 64px);
}
.steps { display: grid; gap: 6px; }
.steps li { display: flex; gap: 14px; padding: 12px 14px; border-radius: 14px; transition: background .2s; }
.steps li.on { background: var(--paper); }
.steps .num { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--navy); font: 500 14px var(--mono); }
.steps li.on .num, .steps li.past .num { background: var(--orange); box-shadow: none; }
.steps b { display: block; font-weight: 700; }
.steps div span { display: block; color: var(--muted); font-size: 15px; line-height: 1.4; }
.board { padding: 22px; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), 0 14px 44px rgba(20, 22, 57, .08); scroll-margin-top: 96px; }
.board-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.board-top b { font-size: 19px; }
.board-top span { color: var(--muted); font-size: 14px; }
.board-top span::first-letter { text-transform: uppercase; }
.board li { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.board time { width: 50px; font: 500 14px var(--mono); }
.board i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); font-style: normal; font-weight: 700; font-size: 12px; }
.board li.new { margin-inline: -10px; padding-inline: 10px; background: #FFEDE8; border-radius: 12px; border-top-color: transparent; animation: arrive .5s ease-out; }
.board li.new i { background: var(--orange); }
.board em { margin-left: auto; font-style: normal; font: 500 12px var(--mono); color: var(--orange-ink); }
@keyframes arrive { from { opacity: 0; transform: scale(.96) translateY(-8px); } }
.board-note { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: 15px; line-height: 1.45; }
.tag { display: block; margin-top: 10px; color: var(--muted); font: 500 12px var(--mono); }

/* Funzioni */
.features { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(230px, 3fr) 9fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.feature-tabs[hidden] { display: none; }
.feature-tabs { display: grid; gap: 2px; position: sticky; top: 96px; }
.feature-tabs button {
  display: flex; gap: 14px; align-items: baseline;
  min-height: 52px; padding: 12px 16px;
  border: 0; border-radius: 12px;
  background: transparent; color: var(--soft);
  font-weight: 600; font-size: 18px; text-align: left;
}
.feature-tabs small { font: 500 12px var(--mono); }
.feature-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.feature-tabs button[aria-selected=true] { background: var(--orange); color: var(--navy); }
.feature-panels { display: grid; gap: 16px; min-width: 0; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(22px, 3.5vw, 48px);
  background: #fff; color: var(--navy);
  border-radius: var(--radius);
  scroll-margin-top: 96px;
}
.feature p { margin: 0; color: var(--muted); }
.fit { margin: 18px 0 8px !important; color: var(--navy) !important; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.4; }
.fit b { color: var(--orange-ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { padding: 6px 12px; background: var(--paper); border-radius: 9px; font-size: 14px; font-weight: 600; }
.features-note { margin: 22px 0 0; color: var(--soft); font-size: 15px; }
.mini { display: grid; place-items: center; min-height: 250px; padding: 22px; background: var(--paper); border-radius: 18px; }
.mini > div { width: min(100%, 300px); }
.mini-times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-times span { padding: 14px 0; background: #fff; border-radius: 12px; text-align: center; font-weight: 700; }
.mini-times .sel { background: var(--orange); }
.mini-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mini-week span { aspect-ratio: 1; background: #fff; border-radius: 10px; }
.mini-week .on { background: var(--orange); }
.mini-week .off { background: repeating-linear-gradient(45deg, #dddbd4 0 4px, transparent 4px 8px); }
.mini-list p { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 10px 12px; background: #fff; border-radius: 12px; color: var(--navy); font-weight: 600; }
.mini-list i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); font-style: normal; font-size: 12px; font-weight: 700; }
.mini-list small { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 500; }
.mini-push p { margin: 0 0 10px; padding: 12px 14px; background: #fff; border-radius: 14px; color: var(--navy); line-height: 1.35; font-size: 15px; }
.mini-push small { display: block; color: var(--orange-ink); font-weight: 700; font-size: 12px; }
.mini-push b { font-weight: 600; }
.mini-stamps { padding: 18px; background: #fff; border-radius: 16px; }
.mini-stamps div { display: flex; justify-content: space-between; margin: 14px 0; }
.mini-stamps i { width: 16%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); }
.mini-stamps i.on { background: var(--orange); box-shadow: none; }
.mini-stamps small { color: var(--muted); font-size: 13px; }
.mini-brand { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mini-brand span { width: 52px; height: 52px; border-radius: 14px; }
.mini-brand b { width: 100%; text-align: center; font: 800 22px var(--display); font-stretch: 125%; font-variation-settings: 'wdth' 125; }

/* Su schermo largo si vede una funzione per volta (solo con JS attivo). */
@media (min-width: 900px) {
  .js .feature { display: none; }
  .js .feature.on { display: grid; animation: enter .25s ease-out; }
  .js .feature-panels { min-height: 420px; }
}
html:not(.js) .features, .features:has(.feature-tabs[hidden]) { grid-template-columns: 1fr; }

/* Domande */
.faq { margin-top: clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: grid; grid-template-columns: minmax(44px, 8%) 1fr 28px; gap: 12px; align-items: center;
  min-height: 72px; padding: 16px 0;
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: clamp(18px, 1.9vw, 26px); line-height: 1.25; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary small { font: 800 clamp(20px, 2.2vw, 32px)/1 var(--display); font-stretch: 125%; font-variation-settings: 'wdth' 125; color: var(--muted); }
.faq summary::after { content: '+'; justify-self: end; font-weight: 400; font-size: 28px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover span { color: var(--orange-ink); }
.faq details p { margin: 0 0 24px calc(max(44px, 8%) + 12px); max-width: 60ch; color: var(--muted); font-size: 18px; }

/* Fondo pagina e contatti */
footer {
  position: relative; overflow: hidden;
  background: #fff;
  padding-top: clamp(56px, 7vw, 104px);
  scroll-margin-top: 80px;
}
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact h2 { font-size: clamp(30px, 3.8vw, 58px); }
.contact-list { margin: 30px 0 0; display: grid; gap: 12px; }
.contact-list dt { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 600; font-size: 18px; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.form { display: grid; gap: 16px; padding: clamp(20px, 2.5vw, 32px); background: var(--paper); border-radius: var(--radius); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.form input, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid rgba(20, 22, 57, .28); border-radius: 12px; background: #fff;
  font-size: 16px; font-weight: 500;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 75, 43, .22); }
.form ::placeholder { color: #6E708A; }
.form textarea { resize: vertical; }
.form-note { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.foot-logo { width: min(100% - 2 * var(--pad), 760px); margin: clamp(48px, 6vw, 88px) auto 0; }
.legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 26px; padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
  align-items: center;
}
.legal a { display: inline-flex; align-items: center; min-height: 44px; }

/* Comparsa: nascosto solo se il JS può mostrarlo. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .5s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

/* Pagina privacy */
.doc { padding: 120px 0 72px; }
.doc .wrap { max-width: 820px; margin-inline: auto; }
.doc h1 { font-size: clamp(30px, 4.4vw, 56px); margin-bottom: 8px; }
.doc h2 { font-size: clamp(20px, 2vw, 26px); max-width: none; margin: 40px 0 10px; line-height: 1.2; scroll-margin-top: 96px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--orange-ink); }
.doc-foot { padding-block: 24px; border-top: 1px solid var(--line); }
.doc-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--muted); }

/* Schermi medi */
@media (max-width: 1180px) {
  .demo { grid-template-columns: 280px minmax(0, 1fr); }
  .steps { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .steps li { flex-direction: column; gap: 8px; }
}

/* Telefono */
@media (max-width: 859px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .nav { padding-left: 14px; }
  .nav.at-top { left: auto; right: 12px; transform: none; }
  .btn.small { min-height: 44px; padding: 0 14px; }
  .hero { min-height: 0; padding-top: 82px; }
  .hero-grid { display: block; }
  /* Due righe esatte, larghe quanto il logo. */
  .hero h1 { font-size: min(calc((100vw - 2 * var(--pad)) / 14.6), 32px); }
  .hero-main { padding-block: 4px 0; }
  .hero-logo { width: min(100%, 460px); margin-left: 0; }
  .hero-visual { height: 430px; min-height: 0; margin-top: 24px; }
  .tilt { top: 18px; }
  .float.f1 { right: 0; top: 34%; }
  .float.f2 { left: 0; top: 62%; }
  .actions .btn { flex: 1 1 auto; }
  .split, .contact { grid-template-columns: minmax(0, 1fr); }
  .messages li:nth-child(n) { margin-left: 0; }
  .demo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .board { width: 100%; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .mini, .feature .chips { display: none; }
  section { padding-block: 92px 64px; }
  .features { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { flex-direction: row; }
  .phone { width: min(280px, 100%); }
}
