/* ==========================================================================
   Prenota Basilicata - style.css
   Palette C "Ulivo e Rame" · Concept "Bottega Digitale"
   ========================================================================== */

/* ---------- Font (self-hosted) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/archivo-700.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/archivo-800.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
}

/* ---------- Token ---------- */
:root {
  --olive: #3E4A2A;
  --olive-deep: #333D22;
  --copper: #9A5426;
  --copper-deep: #7F4520;
  --copper-light: #D9915C;
  --stone: #DDD9CB;
  --bg: #F6F4ED;
  --dark: #20261A;
  --dark-2: #272E1F;
  --ink: #20261A;
  --ink-soft: #5F6654;
  --ink-on-dark: #EDEAE0;
  --ink-on-dark-soft: #C4C2B2;
  --line: #D6D2C2;
  --line-input: #767C66;
  --card: #FDFCF8;
  --radius-sig: 24px 4px 24px 4px;
  --radius-sig-alt: 4px 24px 4px 24px;
  --radius-btn: 16px 4px 16px 4px;
  --font-title: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  --shadow-card: 0 1px 2px rgba(32, 38, 26, 0.06), 0 10px 30px -12px rgba(32, 38, 26, 0.18);
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--noise);
}
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  overflow-wrap: anywhere;
}
p, ul, ol, table { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); }
a:hover { color: var(--copper-deep); }
button { font: inherit; }
:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute;
  top: -60px; left: 12px;
  z-index: 100;
  background: var(--olive);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  vertical-align: -0.22em;
  fill: currentColor;
}

.section { padding-block: clamp(64px, 9vw, 112px); }
.section-alt {
  background-color: var(--stone);
  background-image: var(--noise);
}
.section-dark {
  background-color: var(--dark);
  background-image: var(--noise);
  color: var(--ink-on-dark);
}
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  max-width: 22ch;
}
.section-intro {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.section-dark .section-intro { color: var(--ink-on-dark-soft); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 52px;
  padding: 0.8em 1.6em;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--olive);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(62, 74, 42, 0.7);
}
.btn-primary:hover { background: var(--olive-deep); color: #fff; }
.btn-copper {
  background: var(--copper);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(154, 84, 38, 0.7);
}
.btn-copper:hover { background: var(--copper-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--copper);
  border-color: var(--copper);
}
.btn-ghost:hover { background: var(--copper); color: #fff; }
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(32px, 6vw, 88px) clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.wordmark {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--olive);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.wordmark:hover { color: var(--olive-deep); }
.wordmark .wm-badge {
  display: inline-grid;
  place-items: center;
  width: 2em; height: 2em;
  background: var(--olive);
  color: var(--bg);
  border-radius: 10px 2px 10px 2px;
  font-size: 0.8em;
  letter-spacing: 0;
}
.hero .wordmark { margin-bottom: clamp(28px, 5vw, 56px); }
.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.hero h1 .accent { color: var(--copper); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 1.8em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 1.6em;
}
.hero-trust {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 56ch;
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  margin: 0;
}
.hero-trust .icon { color: var(--copper); margin-top: 0.2em; }

/* Micro-scena chat → agenda */
.scene {
  background: var(--stone);
  background-image: var(--noise);
  border: 1px solid var(--line);
  border-radius: var(--radius-sig);
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow-card);
}
.scene-head {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.scene-head span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-input);
  opacity: 0.55;
}
.scene-head span:first-child { background: var(--copper); opacity: 1; }
.scene-item { position: relative; margin-bottom: 12px; }
.scene-item:last-child { margin-bottom: 0; }
.scene-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px 3px 14px 3px;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-weight: 500;
}
.scene-row .chip {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  background: var(--olive);
  padding: 3px 9px;
  border-radius: 8px 2px 8px 2px;
  flex: none;
}
.scene-row .icon { margin-left: auto; color: var(--copper); }
.scene-bubble {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 4px;
  padding: 12px 16px;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px -8px rgba(32, 38, 26, 0.35);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .scene-row {
    animation: scene-row-in 1.6s cubic-bezier(0.33, 0, 0.2, 1) both;
    animation-delay: calc(var(--i) * 0.28s + 0.25s);
  }
  .scene-bubble {
    animation: scene-bubble-out 1.6s cubic-bezier(0.33, 0, 0.2, 1) both;
    animation-delay: calc(var(--i) * 0.28s + 0.25s);
  }
}
@keyframes scene-bubble-out {
  0%   { opacity: 1; transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); }
  55%  { opacity: 1; }
  100% { opacity: 0; transform: none; }
}
@keyframes scene-row-in {
  0%, 45% { opacity: 0; transform: translateY(8px); }
  100%    { opacity: 1; transform: none; }
}

/* ---------- Barra CTA sticky (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(246, 244, 237, 0.96);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.25s ease;
  display: none;
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-visible { transform: translateY(0); }
@media (max-width: 767px) {
  .sticky-cta { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: none; }
}

/* ---------- Problema ---------- */
.pain-list {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.pain-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sig);
  padding: 20px 22px;
}
.pain-item:nth-child(even) { border-radius: var(--radius-sig-alt); }
.pain-ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px 3px 12px 3px;
  color: var(--copper);
}
.pain-ico .icon { width: 1.4em; height: 1.4em; }
.pain-item p { margin: 0; }
.pain-item strong { display: block; font-family: var(--font-title); font-weight: 700; margin-bottom: 2px; }
.pain-close {
  margin-top: 2rem;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--olive);
  border-left: 4px solid var(--copper);
  padding-left: 16px;
  max-width: 58ch;
}

/* ---------- Soluzione ---------- */
.solution-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.solution-copy p { max-width: 60ch; }
.solution-photo {
  border-radius: var(--radius-sig);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}

/* ---------- Card attività ---------- */
.trades-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 2.6rem;
}
.trade-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sig);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.trade-card:nth-child(even) { border-radius: var(--radius-sig-alt); }
@media (min-width: 901px) {
  .trade-card:nth-child(even) { transform: translateY(28px); }
}
.trade-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.trade-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.trade-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.trade-head .trade-ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  background: var(--copper);
  color: #fff;
  border-radius: 12px 3px 12px 3px;
  margin-top: -43px;
  box-shadow: 0 6px 14px -6px rgba(154, 84, 38, 0.8);
}
.trade-head h3 { margin: 0; font-size: 1.2rem; }
.trade-body > p { margin-bottom: 0.9em; }
.trade-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.trade-tags li {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--olive);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}
.trade-pain {
  margin: auto 0 0;
  font-style: italic;
  color: var(--copper);
  font-weight: 500;
  border-left: 3px solid var(--copper-light);
  padding-left: 12px;
  font-size: 0.95rem;
}

/* ---------- Cosa include ---------- */
.include-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 2.4rem;
  list-style: none;
  padding: 0;
}
.include-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px 4px 16px 4px;
  padding: 18px 20px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.include-item .icon {
  color: var(--olive);
  width: 1.4em; height: 1.4em;
  margin-top: 0.15em;
}
.include-item p { margin: 0; font-size: 0.97rem; }
.include-item strong { display: block; font-family: var(--font-title); font-weight: 700; margin-bottom: 2px; }

/* ---------- Prima / Dopo ---------- */
.ba-hint {
  font-size: 0.92rem;
  color: var(--ink-on-dark-soft);
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 1.4rem 0 1rem;
}
html:not(.js) .ba-hint { display: none; }
.ba {
  position: relative;
  max-width: 920px;
  border-radius: var(--radius-sig);
  border: 1px solid rgba(237, 234, 224, 0.18);
  overflow: hidden;
}
.ba-pane { padding: clamp(20px, 3.5vw, 34px); }
.ba-before { background: #332E20; }
.ba-after { background: var(--dark-2); }
.ba-label {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.ba-before .ba-label { background: rgba(237, 234, 224, 0.14); color: var(--ink-on-dark); }
.ba-after .ba-label { background: var(--copper-light); color: var(--dark); }
.ba-list { list-style: none; padding: 0; margin: 0; }
.ba-chaos li {
  display: inline-block;
  background: rgba(237, 234, 224, 0.1);
  border: 1px solid rgba(237, 234, 224, 0.22);
  border-radius: 16px 16px 16px 4px;
  padding: 9px 15px;
  margin: 0 8px 11px 0;
  font-size: 0.93rem;
  max-width: 34ch;
}
.ba-chaos li:nth-child(odd) { transform: rotate(-1.5deg); }
.ba-chaos li:nth-child(even) { transform: rotate(1.2deg) translateX(14px); }
.ba-chaos li:nth-child(3) { transform: rotate(2deg) translateX(-6px); }
.ba-order li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: rgba(246, 244, 237, 0.07);
  border: 1px solid rgba(217, 145, 92, 0.35);
  border-radius: 12px 3px 12px 3px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 0.93rem;
}
.ba-order li:last-child { margin-bottom: 0; }
.ba-order .icon { color: var(--copper-light); margin-top: 0.18em; }

/* Fallback senza JS: due colonne affiancate */
html:not(.js) .ba {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
html:not(.js) .ba-handle,
html:not(.js) .ba-range { display: none; }
@media (max-width: 700px) {
  html:not(.js) .ba { grid-template-columns: 1fr; }
}

/* Slider attivo (con JS) */
html.js .ba { --pos: 50%; }
html.js .ba-after { position: relative; z-index: 1; }
html.js .ba-before {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
html.js .ba-handle {
  position: absolute;
  z-index: 3;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--copper-light);
  pointer-events: none;
}
html.js .ba-handle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  background: var(--copper-light);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.ba-handle .icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: var(--dark);
  width: 1.5em; height: 1.5em;
}
html.js .ba-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0.001;
  cursor: ew-resize;
}
html.js .ba:has(.ba-range:focus-visible) {
  outline: 3px solid var(--copper-light);
  outline-offset: 3px;
}

/* ---------- Come funziona ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 2.6rem 0 0;
  max-width: 760px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 20px; bottom: 20px;
  width: 2px;
  background: var(--line);
}
.step {
  position: relative;
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  align-items: flex-start;
  padding: 22px 0;
}
.step-num {
  position: relative;
  z-index: 1;
  flex: none;
  width: 90px;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 4.4rem);
  line-height: 1;
  background: var(--bg);
}
.step-num::before,
.step-num::after {
  content: attr(data-n);
  display: block;
}
.step-num::before {
  color: transparent;
  -webkit-text-stroke: 2px var(--copper);
}
.step-num::after {
  position: absolute;
  inset: 0;
  color: var(--copper);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.step.is-active .step-num::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .step-num::after { opacity: 1; transition: none; }
}
.step h3 { font-size: 1.3rem; margin-bottom: 0.35em; }
.step p { margin: 0; max-width: 52ch; color: var(--ink-soft); }

/* ---------- Scheda demo (telefono) ---------- */
.demo-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.phone {
  width: min(360px, 100%);
  background: var(--dark);
  border-radius: 44px;
  padding: 14px;
  box-shadow: 0 30px 60px -25px rgba(32, 38, 26, 0.55);
}
.phone-notch {
  width: 110px; height: 9px;
  background: var(--dark-2);
  border: 1px solid rgba(237, 234, 224, 0.15);
  border-radius: 999px;
  margin: 2px auto 10px;
}
.phone-screen {
  background: var(--bg);
  background-image: var(--noise);
  border-radius: 32px;
  height: 580px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.phone-screen:focus-visible { outline-offset: -3px; }
.demo-badge {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  background: var(--copper);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 12px;
}
.demo-inner { padding: 16px 18px 24px; }
.demo-inner img { border-radius: 16px 4px 16px 4px; margin-bottom: 14px; }
.demo-inner h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
.demo-desc { font-size: 0.93rem; color: var(--ink-soft); }
.demo-inner h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 1.4em 0 0.5em;
}
.demo-note { font-size: 0.8rem; color: var(--ink-soft); margin: -0.3em 0 0.6em; }
.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.demo-table th {
  text-align: left;
  font-weight: 600;
}
.demo-table th, .demo-table td {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.demo-table td:last-child, .demo-table th:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--olive);
  white-space: nowrap;
}
.demo-hours { list-style: none; padding: 0; font-size: 0.93rem; }
.demo-hours li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-bottom: 6px;
}
.demo-hours .icon, .demo-contact .icon { color: var(--copper); margin-top: 0.2em; }
.demo-contact {
  font-size: 0.93rem;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.demo-inner .btn { width: 100%; margin-top: 1.2em; }

/* ---------- Pricing (scontrino) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
  margin-top: 2.4rem;
}
.plan-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  padding: 5px;
  margin: 0 0 1.6rem;
  display: inline-flex;
  gap: 5px;
}
.plan-toggle label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 26px;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-soft);
}
.plan-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0.001;
  margin: 0;
  cursor: pointer;
}
.plan-toggle input:checked + span { color: #fff; }
.plan-toggle label:has(input:checked) { background: var(--copper); color: #fff; }
.plan-toggle label:has(input:focus-visible) {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
}
.receipt {
  background: #FFFEFA;
  padding: 30px 28px;
  max-width: 420px;
  box-shadow: var(--shadow-card);
  position: relative;
  font-variant-numeric: tabular-nums;
}
.receipt::before, .receipt::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 12px;
  background-image: radial-gradient(circle at 8px 0, transparent 7px, #FFFEFA 7.5px);
  background-size: 16px 12px;
  background-repeat: repeat-x;
}
.receipt::before { top: -11px; }
.receipt::after {
  bottom: -11px;
  transform: scaleY(-1);
}
.receipt-brand {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 0.4em;
}
.receipt hr {
  border: none;
  border-top: 2px dashed var(--line);
  margin: 14px 0;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 4px 0;
  transition: opacity 0.2s ease;
}
.receipt-row .receipt-price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  white-space: nowrap;
}
.receipt-row small { color: var(--ink-soft); }
.receipt-alt {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 2px 0;
}
.receipt[data-plan="mese"] .row-anno,
.receipt[data-plan="anno"] .row-mese { opacity: 0.4; }
.receipt[data-plan="mese"] .row-mese .receipt-price,
.receipt[data-plan="anno"] .row-anno .receipt-price { color: var(--copper); }
.pricing-note {
  margin-top: 1.6rem;
  max-width: 420px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--copper-light);
  padding-left: 14px;
}
.pricing-lists {
  display: grid;
  gap: 26px;
}
.pricing-lists h3 { font-size: 1.1rem; }
.pricing-lists ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 20px;
}
.pricing-lists li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.95rem;
}
.pricing-lists .list-in .icon { color: var(--olive); margin-top: 0.22em; }
.pricing-lists .list-out .icon { color: var(--copper); margin-top: 0.22em; }
.pricing-lists .list-out li { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin-top: 2.2rem; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px 4px 16px 4px;
  margin-bottom: 12px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  min-height: 56px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
  color: var(--copper);
  width: 1.5em; height: 1.5em;
  transition: transform 0.25s ease;
}
.faq-item[open] summary .icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .faq-item summary .icon { transition: none; }
}
.faq-item[open] summary { border-bottom: 1px dashed var(--line); }
.faq-body { padding: 16px 22px 20px; }
.faq-body p { margin: 0; color: var(--ink-soft); }

/* ---------- CTA finale + Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-intro .section-title { max-width: 18ch; }
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sig);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 40px);
}
.form-card h3 { font-size: 1.4rem; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.field .opt {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.85em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-input);
  border-radius: 12px 3px 12px 3px;
  padding: 12px 14px;
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 1px;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #A03A1E;
}
.field-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 6px 0 0;
}
.field-err {
  font-size: 0.88rem;
  font-weight: 500;
  color: #A03A1E;
  margin: 6px 0 0;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
.field-err .icon { margin-top: 0.18em; }
.field-err[hidden] { display: none; }
.check-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.check-field input {
  width: 22px; height: 22px;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--olive);
}
.check-field label { font-size: 0.92rem; line-height: 1.5; }
.check-field label .field-hint { margin-top: 2px; }

/* Honeypot: fuori schermo, invisibile ma presente nel DOM */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status { margin: 0 0 16px; }
.form-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #F7E8E1;
  border: 1px solid #A03A1E;
  color: #7C2D16;
  border-radius: 12px 3px 12px 3px;
  padding: 12px 16px;
  font-size: 0.95rem;
  margin: 0;
}
.form-alert .icon { margin-top: 0.2em; flex: none; }
.form-success {
  text-align: center;
  padding: 32px 8px;
}
.form-success .icon {
  width: 56px; height: 56px;
  color: var(--olive);
  margin-bottom: 12px;
}
.form-success p {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}
.spinner {
  width: 1.1em; height: 1.1em;
  flex: none;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .spinner { animation: spin 0.8s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  background-image: var(--noise);
  color: var(--ink-on-dark-soft);
  padding-block: clamp(48px, 7vw, 72px) 36px;
  font-size: 0.93rem;
}
.footer .wordmark { color: var(--ink-on-dark); margin-bottom: 18px; }
.footer .wordmark .wm-badge { background: var(--copper-light); color: var(--dark); }
.footer p { max-width: 68ch; margin-bottom: 0.6em; }
.footer-links {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
}
.footer-links a {
  color: var(--copper-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-links a:hover { text-decoration: underline; color: var(--copper-light); }

/* ---------- Cookie notice ---------- */
.cookie-banner {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 70;
  max-width: 380px;
  background: var(--dark);
  color: var(--ink-on-dark);
  border: 1px solid rgba(237, 234, 224, 0.2);
  border-radius: 16px 4px 16px 4px;
  padding: 16px 18px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
}
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner .btn { min-height: 44px; padding: 0.5em 1.3em; font-size: 0.95rem; }
@media (max-width: 767px) {
  .cookie-banner {
    left: 10px; right: 10px;
    bottom: 10px;
    max-width: none;
  }
}

/* ---------- Pagine legali / 404 ---------- */
.page-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal-body { max-width: 760px; }
.legal-body h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.legal-body h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal-updated { color: var(--ink-soft); font-size: 0.92rem; }
.legal-body ul { padding-left: 1.2em; }
.legal-body ol { padding-left: 1.2em; }
.legal-body li { margin-bottom: 0.4em; }
.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: 64px;
}
.error-page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.error-code {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(4.5rem, 12vw, 7rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 3px var(--copper);
  margin-bottom: 0.15em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .trades-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .include-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (min-width: 901px) {
    .trade-card:nth-child(even) { transform: translateY(24px); }
  }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .scene { max-width: 480px; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-photo { max-width: 560px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .trade-card:nth-child(even) { transform: none; }
}
@media (max-width: 700px) {
  .pain-list { grid-template-columns: 1fr; }
  .trades-grid { grid-template-columns: 1fr; }
  .include-grid { grid-template-columns: 1fr; }
  .pricing-lists ul { grid-template-columns: 1fr; }
  .steps::before { left: 30px; }
  .step-num { width: 62px; font-size: 2.6rem; }
  .phone-screen { height: 520px; }
  .btn { width: 100%; }
  .plan-toggle label { flex: 1; }
  .plan-toggle { display: flex; max-width: 320px; }
}
@media (max-width: 767px) {
  body.has-sticky-cta { padding-bottom: 84px; }
}

/* ---------- Riduzione movimento globale ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
  .receipt-row { transition: none; }
}
