/* Sito di presentazione di RF Assistant.
   Colori dell'app: arancio dell'icona, grigio e sezioni bianche dell'iOS, colori degli stati dei lavori. */

:root {
  --orange-light: #FFB733;
  --orange: #F7931E;
  --orange-deep: #E2640A;
  --ink: #1C1C1E;
  --ink-soft: #48484A;
  --secondary: #6E6E73;
  --group: #F2F2F7;
  --card: #FFFFFF;
  --separator: #D8D8DC;
  --blue: #0066D6;
  --status-progress: #FF9500;
  --green: #248A3D;
  --wide: 125%;
  --radius-card: 26px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Archivo", -apple-system, "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--group);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 26px;
  font-weight: 650; font-size: 17px; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { border: 2px solid var(--ink); color: var(--ink); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 16px; }

/* Hero: arancio dell'icona, testo scuro (il bianco sull'arancio non si legge) */
.hero {
  background: radial-gradient(110% 120% at 12% 0%, var(--orange-light) 0%, var(--orange) 50%, var(--orange-deep) 100%);
  overflow: hidden;
}
.bar {
  max-width: 1120px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; text-decoration: none; font-stretch: 110%; }
.brand img { border-radius: 10px; box-shadow: 0 4px 12px rgba(120, 50, 0, .25); }
.bar-links { display: flex; align-items: center; gap: 20px; }
.lang { font-weight: 600; font-size: 16px; text-decoration: none; }
.lang:hover { text-decoration: underline; }

.hero-body {
  max-width: 1120px; margin: 0 auto; padding: 40px 24px 0;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: start;
}
.hero-text { padding: 40px 0 72px; }
h1 {
  font-stretch: var(--wide); font-weight: 800;
  font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.02em;
  max-width: 16ch; text-wrap: balance;
}
.lead { font-size: 20px; line-height: 1.55; max-width: 34em; margin: 26px 0 34px; color: #2C1A08; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.soon { margin: 0; font-weight: 600; font-size: 16px; }

/* Stampante e ticket termico */
.printer { position: relative; justify-self: center; width: 330px; padding-top: 10px; }
.slot {
  position: relative; z-index: 2; height: 26px; margin: 0 -18px;
  border-radius: 14px; background: var(--ink);
  box-shadow: inset 0 -6px 0 #000, 0 10px 24px rgba(90, 30, 0, .35);
}
.ticket { position: relative; z-index: 1; margin: -12px 10px 0; animation: print 1.6s cubic-bezier(.2, .7, .2, 1) .2s both; }
.paper {
  background: #fff; color: #111;
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 14px; line-height: 1.45;
  padding: 34px 26px 40px;
  box-shadow: 0 18px 40px rgba(90, 30, 0, .3);
  /* bordo inferiore strappato a dente di sega */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
}
.paper p { margin: 0; }
.paper hr { border: 0; border-top: 2px dashed #9a9a9a; margin: 16px 0; }
.t-brand { text-align: center; font-weight: 600; letter-spacing: .3em; font-size: 13px; color: #555; margin-bottom: 18px !important; }
.t-label { font-size: 12px; color: #666; }
.t-code { font-size: 24px; font-weight: 600; letter-spacing: .02em; }
.t-date { font-size: 13px; color: #666; }
.paper dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.paper dt { color: #666; }
.paper dd { margin: 0; text-align: right; }
.t-status { display: flex; justify-content: space-between; align-items: center; }
.pill {
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 13px;
  background: var(--status-progress); color: #000; padding: 4px 12px; border-radius: 20px;
}
.barcode {
  height: 54px; margin: 22px 6px 6px;
  background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 4px, #111 4px 5px, #fff 5px 8px, #111 8px 11px, #fff 11px 12px, #111 12px 13px, #fff 13px 16px);
}
.t-barcode { text-align: center; font-size: 12px; letter-spacing: .2em; }
.t-sign { width: 170px; margin: 18px auto 0; display: block; }
.t-sign path { fill: none; stroke: #111; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.t-foot { text-align: center; font-size: 12px; color: #666; }

@keyframes print {
  from { transform: translateY(-62%); clip-path: inset(62% 0 0 0); }
  to { transform: translateY(0); clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ticket { animation: none; }
  .btn { transition: none; }
}

/* In costruzione: tutta la pagina è il banco */
.building .hero { min-height: calc(100vh - 64px); }
.building .hero-body { padding-bottom: 64px; }
.building .ticket { margin-bottom: 0; }

/* Sezioni */
main section { padding: 96px 0; }
h2 {
  font-stretch: var(--wide); font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.015em;
  max-width: 18ch; text-wrap: balance;
}
.section-text { color: var(--secondary); font-size: 19px; max-width: 36em; margin: 16px 0 0; }

/* Flusso: cinque momenti in ordine */
.steps {
  list-style: none; margin: 48px auto 0; padding: 0 24px; max-width: 1360px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
}
.steps img { width: 100%; max-width: 240px; margin: 0 auto 22px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18)); }
.steps h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; }
.num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--ink);
  font-size: 15px; font-weight: 800;
}
.steps p { margin: 8px 0 0; color: var(--secondary); font-size: 16px; line-height: 1.5; }

/* Elenco come nel menu dell'app */
.more { background: var(--card); }
.group {
  list-style: none; margin: 40px 0 0; padding: 0; max-width: 760px;
  background: var(--card); border-radius: var(--radius-card); overflow: hidden;
}
.more .group { background: var(--group); }
.group li { display: flex; gap: 18px; align-items: flex-start; padding: 18px 22px; position: relative; }
.group li + li::before { content: ""; position: absolute; top: 0; right: 0; left: 76px; height: 1px; background: var(--separator); }
.group li img { flex: none; margin-top: 2px; }
.group h3 { font-size: 18px; font-weight: 700; }
.group p { margin: 2px 0 0; color: var(--secondary); font-size: 16px; }

/* Piani */
.plan-table { width: 100%; border-collapse: collapse; display: table; }
.plan-table th, .plan-table td { padding: 15px 22px; text-align: left; font-size: 17px; }
.plan-table thead th { font-stretch: 110%; font-weight: 800; font-size: 18px; }
.plan-table tbody th { font-weight: 500; }
.plan-table td, .plan-table thead th { text-align: center; width: 24%; }
.plan-table tbody tr { border-top: 1px solid var(--separator); }
.plan-table .pro { color: #B5520A; }
.plan-table svg { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }
.plan-table svg path { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ok path { stroke: var(--green); }
.ko path { stroke: #AEAEB2; }
.note { color: var(--secondary); font-size: 15px; margin: 14px 4px 0; max-width: 760px; }

/* Dispositivi */
.devices { background: var(--card); }
.device-list { list-style: none; padding: 0; margin: 30px 0 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.device-list li { background: var(--group); border-radius: 22px; padding: 10px 20px; font-weight: 600; font-size: 17px; }
.devices .btn-line { border-color: var(--ink); }

/* Piè di pagina */
.foot { padding: 24px 0 32px; font-size: 15px; color: var(--secondary); }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot a { color: var(--blue); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.building .foot { background: var(--orange-deep); color: #2C1A08; }
.building .foot a { color: var(--ink); text-decoration: underline; }

/* Tablet e telefono */
@media (max-width: 1100px) {
  .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 230px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; }
  .steps li { scroll-snap-align: start; }
}
@media (max-width: 860px) {
  .hero-body { grid-template-columns: 1fr; gap: 0; padding-top: 8px; }
  .hero-text { padding: 24px 0 40px; }
  .printer { width: min(330px, 100%); }
  .building .hero { min-height: 0; }
  main section { padding: 72px 0; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .wrap, .bar, .hero-body { padding-left: 16px; padding-right: 16px; }
  .steps { padding: 0 16px 16px; grid-auto-columns: 78%; }
  .lang { font-size: 15px; }
  .bar-links { gap: 14px; }
  .brand { font-size: 18px; }
  .btn { width: 100%; }
  .bar .btn { width: auto; }
  .plan-table th, .plan-table td { padding: 13px 12px; font-size: 15px; }
  .group li { padding: 16px; }
  .group li + li::before { left: 70px; }
}
