/* ==========================================================================
   Palby — foglio di stile del sito
   Il font Manrope viene caricato da Google Fonts nel <head> di ogni pagina.
   ========================================================================== */

/* --------------------------------------------------------------------------
   COLORI — per cambiare palette cambia solo questi valori.
   Palette attuale: "Palby" (21/10, la stessa dell'app). Blu: quello DISEGNATO sulla
   tavola (#0D3F87, fasce scure #063169), non il #1E3A8A scritto. Gli altri:
   Azzurro #3B82F6, Salvia #84C48A, Lime chiaro #E8F5E9, Arancione #FF8A3D,
   Pesca #FFEAD9, Lilla #C4B5FD, Grigio chiaro #F5F7FA, Carbone #111827, Grigio #6B7280.
   Nessun altro punto del sito contiene colori scritti a mano.
   -------------------------------------------------------------------------- */
:root {
  /* Colore principale (bottoni, link, titoli in evidenza) */
  --primary: #0d3f87;
  --primary-hover: #0a3270;
  --primary-soft: #e6effc;      /* sfondi chiari di evidenza, pillole */
  --secondary: #3d8cf5;         /* accenti secondari, bordi di note */

  /* Sfondi */
  --bg: #f5f7fa;                /* avorio: testata, hero, fasce "cream", piè di pagina */
  --surface: #f8fafc;           /* fasce chiare alternate */
  --card: #ffffff;              /* schede, riquadri, moduli */
  --header-bg: rgba(245, 247, 250, .94);  /* testata semitrasparente (= --bg) */

  /* Testi */
  --text: #0f1833;
  --text-soft: #374151;         /* paragrafi lunghi, un filo più chiari del testo */
  --muted: #6b7280;             /* testi secondari, didascalie */

  /* Bordi e ombre */
  --border: #e5e7eb;
  --border-strong: #d1d5db;     /* bordi dei campi del modulo */
  --shadow: rgba(13, 63, 135, .10);
  --shadow-strong: rgba(13, 63, 135, .16);

  /* Fasce scure (sezione "Il cuore di Palby", riquadri finali) */
  --dark: #063169;
  --on-dark: #ffffff;
  --on-dark-muted: #dbe4f7;
  --on-dark-accent: #c4b5fd;
  --on-dark-border: rgba(255, 255, 255, .22);

  /* Accenti del marchio: positivo (salvia), azione (arancione), AI (lilla) */
  --positive: #84c48a;
  --positive-soft: #e8f5e9;
  --positive-ink: #2f7a3a;
  --action: #ff8a3d;
  --action-soft: #ffead9;
  --ai: #c4b5fd;
  --ai-soft: #ede9fe;

  /* Segnaposto da compilare nelle pagine legali (evidenziatore giallo) */
  --todo-bg: #fff1a8;
  --todo-text: #5c4500;
  --todo-border: #e8c840;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--card);
  font-family: Manrope, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 44px)); margin: auto; }

/* --------------------------------------------------------------------------
   Testata e menu
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; }

/* Logo: cartellino a cupola + scritta. Il colore segue --primary. */
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--primary);
  font-size: 30px; font-weight: 800; letter-spacing: -2px; line-height: 1;
}
.brand svg { height: 36px; width: 27px; flex: none; }
.brand .brand-tag { fill: currentColor; }
.brand .brand-hole { fill: var(--bg); }

.nav-links { display: flex; gap: 30px; align-items: center; font-size: 13px; font-weight: 700; }
.nav-links > a:not(.btn):hover,
.nav-links > a[aria-current="page"]:not(.btn) { color: var(--primary); }
.mobile-menu {
  display: none; background: none; border: 0; font-size: 26px;
  color: var(--text); cursor: pointer; padding: 6px 4px;
}

/* --------------------------------------------------------------------------
   Bottoni
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  background: var(--primary); color: var(--on-dark);
  border: 1px solid var(--primary);
  padding: 15px 22px; border-radius: 11px;
  font-weight: 800; font-size: 13px; cursor: pointer; transition: .2s;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); transform: translateY(-1px); }
.btn-small { padding: 10px 16px; }
.btn-light { background: var(--card); color: var(--primary); border-color: var(--primary-soft); }
.btn-light:hover { background: var(--primary-soft); color: var(--primary-hover); border-color: var(--primary-soft); }
.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { color: var(--on-dark); }

/* --------------------------------------------------------------------------
   Hero e testi
   -------------------------------------------------------------------------- */
.hero { background: var(--bg); padding: 85px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero-grid > * { min-width: 0; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 11px; font-weight: 800; color: var(--primary); margin: 0 0 18px;
}
.hero h1, .page-hero h1 {
  font-size: clamp(39px, 5vw, 67px); line-height: 1.11; letter-spacing: -.055em;
  margin: 0 0 25px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.lead { font-size: 18px; line-height: 1.7; color: var(--text-soft); max-width: 640px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 27px; }
.micro { font-size: 12px; color: var(--muted); margin-top: 17px; }

.visual {
  background: var(--card); padding: 12px;
  border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 24px 70px var(--shadow-strong);
  transform: rotate(-1.4deg);
}
.visual img { width: 100%; border-radius: 11px; display: block; }
.visual .visual-label { padding: 12px 8px 3px; font-size: 11px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Sezioni
   -------------------------------------------------------------------------- */
.section { padding: 90px 0; }
.section.soft { background: var(--surface); }
.section.cream { background: var(--bg); }
.section.dark { background: var(--dark); color: var(--on-dark); }
.section-title {
  font-size: clamp(30px, 3.5vw, 47px); line-height: 1.2; letter-spacing: -.045em;
  margin: 0 0 15px; max-width: 800px;
}
.section-sub { color: var(--muted); font-size: 16px; max-width: 740px; margin: 0 0 35px; }
.section-sub.spaced { margin-top: 20px; }
.dark .section-sub { color: var(--on-dark-muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid > * { min-width: 0; }

.tile { background: var(--card); border: 1px solid var(--border); padding: 29px; border-radius: 17px; }
.tile h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.025em; margin: 15px 0 10px; }
.tile p { color: var(--muted); font-size: 14px; margin: 0; }
.tile .eyebrow { color: var(--primary); }
.symbol {
  height: 45px; width: 45px; border-radius: 13px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-size: 23px;
}
.text-link { color: var(--primary); font-weight: 800; font-size: 13px; display: inline-block; margin-top: 20px; }
.text-link:hover { color: var(--primary-hover); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split > * { min-width: 0; }
.split.reverse .screenshot { order: -1; }

.screenshot {
  margin: 0; background: var(--card); padding: 10px;
  border: 1px solid var(--border); border-radius: 17px;
  box-shadow: 0 15px 50px var(--shadow);
}
.screenshot img { display: block; width: 100%; border-radius: 10px; }
.screenshot figcaption { padding: 10px 7px 4px; color: var(--muted); font-size: 11px; }

/* --------------------------------------------------------------------------
   Segnaposto delle schermate
   Ogni riquadro ha data-shot="nome" (dashboard, inbox, guide, ...).
   Quando avremo le nuove schermate SENZA dati reali basta sostituire il
   <div class="shot-placeholder" ...> con <img src="assets/nome.webp" alt="...">.
   -------------------------------------------------------------------------- */
.shot-placeholder {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 16 / 10;
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  /* barra laterale finta a sinistra, area di lavoro a destra */
  background:
    linear-gradient(to right, var(--surface) 0 19%, var(--border) 19% calc(19% + 1px), transparent calc(19% + 1px)),
    var(--card);
}
/* barra superiore con i tre pallini */
.shot-placeholder::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 26px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 14px 13px, var(--border-strong) 0 4px, transparent 4.5px),
    radial-gradient(circle at 28px 13px, var(--border-strong) 0 4px, transparent 4.5px),
    radial-gradient(circle at 42px 13px, var(--border-strong) 0 4px, transparent 4.5px),
    var(--bg);
}
/* righe "scheletro" nell'area di lavoro */
.shot-placeholder::after {
  content: ""; position: absolute; left: 25%; right: 6%; top: calc(26px + 9%); bottom: 9%;
  background:
    linear-gradient(var(--primary-soft), var(--primary-soft)) 0 0 / 38% 12px no-repeat,
    repeating-linear-gradient(to bottom, var(--surface) 0 14px, transparent 14px 30px) 0 34px / 100% calc(100% - 34px) no-repeat;
  border-radius: 6px;
  opacity: .9;
}
.shot-label {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px; padding: 9px 14px;
  background: var(--card); color: var(--primary);
  border: 1px solid var(--primary-soft); border-radius: 50px;
  font-size: 12px; font-weight: 800;
  box-shadow: 0 8px 24px var(--shadow);
}
.shot-label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary);
}
/* proporzioni identiche alle vecchie schermate */
.shot-placeholder[data-shot="dashboard"]  { aspect-ratio: 1500 / 888; }
.shot-placeholder[data-shot="finance"]    { aspect-ratio: 1500 / 881; }
.shot-placeholder[data-shot="inbox"]      { aspect-ratio: 1500 / 862; }
.shot-placeholder[data-shot="houses"]     { aspect-ratio: 1500 / 617; }
.shot-placeholder[data-shot="revenue"]    { aspect-ratio: 1500 / 782; }
.shot-placeholder[data-shot="operations"] { aspect-ratio: 1500 / 755; }
.shot-placeholder[data-shot="reports"]    { aspect-ratio: 1500 / 896; }
.shot-placeholder[data-shot="calculator"] { aspect-ratio: 1500 / 984; }
/* la guida ospiti è una schermata di telefono: verticale e più stretta */
.shot-placeholder[data-shot="guide"] {
  aspect-ratio: 643 / 1400; max-width: 300px; margin: 0 auto;
  border-radius: 22px; background: var(--card);
}
.shot-placeholder[data-shot="guide"]::after { left: 10%; right: 10%; }

/* --------------------------------------------------------------------------
   Elenchi, pillole, citazioni, riquadri finali
   -------------------------------------------------------------------------- */
.bullets { padding-left: 18px; color: var(--text-soft); }
.bullets li { margin: 10px 0; }
.pill {
  display: inline-block; background: var(--primary-soft); border-radius: 50px;
  color: var(--primary); font-size: 11px; font-weight: 800; padding: 7px 12px; margin-bottom: 16px;
}
.page-hero { background: var(--bg); padding: 74px 0 68px; }
.page-hero h1 { max-width: 880px; font-size: clamp(38px, 4.5vw, 60px); }
.page-hero .lead { max-width: 850px; }
.quote { font-size: clamp(25px, 3vw, 40px); font-weight: 800; line-height: 1.35; letter-spacing: -.035em; max-width: 850px; }

.cta-panel {
  padding: 58px; background: var(--dark); color: var(--on-dark); border-radius: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 25px;
}
.cta-panel h2 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.035em; }
.cta-panel p { color: var(--on-dark-muted); margin: 0; }
.cta-panel .btn { background: var(--card); color: var(--primary); border-color: var(--card); white-space: nowrap; }
.cta-panel .btn:hover { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary-hover); }

.case {
  display: grid; grid-template-columns: 60px 1fr; gap: 18px; padding: 30px;
  border: 1px solid var(--border); border-radius: 18px; background: var(--card);
}
.case .num { font-weight: 800; color: var(--primary); font-size: 24px; }
.case h3 { font-size: 21px; margin: 0 0 12px; letter-spacing: -.03em; }
.case p { color: var(--muted); margin: 8px 0; }
.case strong { color: var(--text); }

.notice a { color: var(--primary); text-decoration: underline; }
.notice {
  padding: 15px 19px; border-left: 3px solid var(--secondary);
  background: var(--primary-soft); color: var(--text-soft);
  font-size: 13px; border-radius: 0 9px 9px 0;
}

/* --------------------------------------------------------------------------
   Prezzi
   -------------------------------------------------------------------------- */
.pricing-controls {
  display: flex; gap: 25px; align-items: end; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 23px; margin: 30px 0;
}
.pricing-controls label { font-size: 12px; font-weight: 800; display: block; margin-bottom: 7px; }
.pricing-controls input[type=number] { width: 115px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 9px 12px; }
.pricing-controls input[type=checkbox] { accent-color: var(--primary); height: 17px; width: 17px; vertical-align: middle; }
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pricing-cards > * { min-width: 0; }
.price-card { border: 1px solid var(--border); border-radius: 20px; background: var(--card); padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: 0 16px 35px var(--shadow); }
.price-card h3 { font-size: 23px; margin: 0; }
.price-card .plan-description { min-height: 55px; color: var(--muted); font-size: 13px; }
.price-number { font-size: 43px; line-height: 1.2; letter-spacing: -.05em; font-weight: 800; color: var(--primary); margin: 18px 0 2px; }
.price-number small { font-size: 15px; letter-spacing: 0; color: var(--muted); }
.price-note { font-size: 12px; color: var(--muted); margin-bottom: 23px; }
.price-card ul { padding-left: 20px; flex: 1; color: var(--text-soft); font-size: 13px; }
.price-card li { margin: 10px 0; }
.price-card .btn { width: 100%; margin-top: 15px; }
.price-breakdown { font-size: 12px; color: var(--muted); background: var(--primary-soft); padding: 10px; border-radius: 9px; }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; background: var(--card); }
th, td { border-bottom: 1px solid var(--border); text-align: left; padding: 16px 14px; }
th { color: var(--primary); background: var(--surface); font-size: 12px; }
td:not(:first-child), th:not(:first-child) { text-align: center; }
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
summary { font-weight: 800; cursor: pointer; }
details p { color: var(--muted); font-size: 14px; }

/* --------------------------------------------------------------------------
   Modulo demo
   -------------------------------------------------------------------------- */
.form-card { padding: 35px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; }
.form-card h3 { font-size: 25px; margin: 0; }
.form-card label { display: block; font-size: 12px; font-weight: 800; margin: 18px 0 6px; }
.form-card input, .form-card textarea, .form-card select {
  width: 100%; padding: 12px; border: 1px solid var(--border-strong); border-radius: 9px;
  background: var(--card); color: var(--text);
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus {
  outline: 2px solid var(--primary-soft); border-color: var(--primary);
}
.form-card textarea { min-height: 120px; }
.form-card button { margin-top: 23px; }
.form-card .optional { color: var(--muted); font-weight: 600; }
.form-card .consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; font-weight: 500; color: var(--text-soft); margin-top: 22px;
}
.form-card .consent input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--primary); }
.form-card .consent a { color: var(--primary); text-decoration: underline; }
/* campo trappola per i bot: invisibile alle persone */
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Pagine legali e pagina di ringraziamento
   -------------------------------------------------------------------------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 22px; letter-spacing: -.02em; margin: 38px 0 10px; }
.legal p, .legal li { color: var(--text-soft); line-height: 1.8; }
.legal ul { padding-left: 21px; }
.legal a { color: var(--primary); text-decoration: underline; }
.legal .updated { color: var(--muted); font-size: 13px; }
/* Segnaposto da compilare: evidenziatore giallo ben visibile */
.todo {
  background: var(--todo-bg); color: var(--todo-text);
  border: 1px dashed var(--todo-border); border-radius: 4px;
  padding: 0 5px; font-weight: 700; white-space: nowrap;
}
.todo-box {
  background: var(--todo-bg); color: var(--todo-text);
  border: 1px dashed var(--todo-border); border-radius: 10px;
  padding: 14px 18px; font-size: 13px; margin-bottom: 28px;
}
.thanks { text-align: center; max-width: 640px; margin: 0 auto; }
.thanks .actions { justify-content: center; }
.thanks-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-size: 30px; font-weight: 800;
}

/* --------------------------------------------------------------------------
   Piè di pagina
   -------------------------------------------------------------------------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.footer-grid p, .footer-grid span { color: var(--muted); font-size: 12px; }
.footer-grid a:not(.brand) { font-size: 13px; }
.footer-grid a:not(.brand):hover { color: var(--primary); }
.footer-bottom { padding: 22px 0; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Contenuti editoriali (casi d'uso, problemi, sezione scura)
   -------------------------------------------------------------------------- */
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.problem-card { padding: 27px; border: 1px solid var(--border); border-radius: 17px; background: var(--card); min-height: 210px; }
.problem-card .eyebrow { margin-bottom: 10px; }
.problem-card h3 { font-size: 20px; line-height: 1.3; margin: 0 0 13px; }
.problem-card p { color: var(--muted); font-size: 14px; }

.editorial { max-width: 920px; }
.editorial h3 { font-size: 21px; margin: 20px 0 12px; }
.editorial p, .editorial li { color: var(--text-soft); line-height: 1.85; }
.editorial ul { padding-left: 21px; }
.editorial li { margin: 9px 0; }

.case-long { padding: 42px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 100px; }
.case-long h2 { font-size: clamp(25px, 3vw, 38px); letter-spacing: -.035em; line-height: 1.2; margin: 8px 0 23px; }
.case-long .case-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr); gap: 40px; }
.case-long .screenshot { align-self: start; position: sticky; top: 110px; }
.case-emphasis { background: var(--surface); border-left: 4px solid var(--primary); border-radius: 12px; padding: 20px; margin: 20px 0; }
.case-emphasis h3 { margin-top: 0; }
.case-emphasis li { margin-bottom: 9px; }

.knowledge { background: var(--dark); color: var(--on-dark); padding: 75px 0; }
.knowledge .eyebrow { color: var(--on-dark-accent); }
.knowledge .section-sub { color: var(--on-dark-muted); }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.knowledge-grid > div { padding: 25px; border: 1px solid var(--on-dark-border); border-radius: 14px; }
.knowledge-grid p { color: var(--on-dark-muted); }

.crm-inline {
  margin-top: 22px; border: 1px solid var(--border); background: var(--card); border-radius: 20px; padding: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.crm-inline h3 { font-size: 21px; margin: 10px 0 0; }

/* --------------------------------------------------------------------------
   Calcolatore prezzi
   -------------------------------------------------------------------------- */
.price-slider { accent-color: var(--primary); width: 100%; cursor: pointer; }
.price-settings { display: flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle button { padding: 10px 15px; border: 1px solid var(--border); background: var(--card); color: var(--text); border-radius: 9px; cursor: pointer; }
.toggle button.active { background: var(--primary); border-color: var(--primary); color: var(--on-dark); }
.pricing-meta { background: var(--primary-soft); padding: 14px; border-radius: 12px; font-size: 13px; color: var(--primary); }
.feature-click { font-weight: 700; text-decoration: underline; text-decoration-color: var(--secondary); text-underline-offset: 4px; }
.custom-banner {
  margin-top: 26px; padding: 22px; background: var(--bg); border-radius: 15px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.annual-caption { font-size: 12px; color: var(--muted); }

.price-hero { padding-bottom: 48px; }
.price-hero .lead { max-width: 680px; }
.pricing-main { padding-top: 40px; }
.calc-shell {
  border: 1px solid var(--border); background: var(--card); border-radius: 24px;
  padding: 28px 34px; margin-bottom: 24px; box-shadow: 0 12px 32px var(--shadow);
}
.calc-top, .calc-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.calc-top .eyebrow { margin: 0 0 8px; }
.count-display { display: flex; align-items: baseline; gap: 10px; }
.count-display strong { font-size: 48px; line-height: 1; letter-spacing: -.05em; }
.count-display span { color: var(--muted); }
.calc-shell .price-slider { width: 100%; margin: 24px 0 3px; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.calc-bottom { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 18px; }
.calc-bottom p { font-size: 12px; color: var(--muted); margin: 0; }
.crm-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.crm-switch input { width: 18px; height: 18px; accent-color: var(--primary); }
.crm-switch span { display: flex; gap: 8px; align-items: baseline; }
.crm-switch small { color: var(--muted); }
.discount-pill { background: var(--positive-soft); color: var(--positive-ink); border-radius: 20px; font-size: 11px; padding: 4px 8px; margin-left: 5px; }
.toggle button.active .discount-pill { background: var(--card); }
.pricing-cards-compact { align-items: stretch; }
.pricing-cards-compact .price-card { padding: 28px 25px; }
.plan-head { min-height: 127px; }
.plan-head h3 { font-size: 24px; margin: 8px 0; }
.plan-head > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.pricing-cards-compact .price-number { margin: 8px 0 0; white-space: nowrap; }
.pricing-cards-compact .price-number span { font-size: 39px; letter-spacing: -.05em; }
.pricing-cards-compact .price-number small { font-size: 14px; }
.pricing-cards-compact .price-note { min-height: 38px; font-size: 12px; color: var(--muted); margin: 4px 0 14px; }
.pricing-cards-compact .btn { margin: 0; }
.plan-divider { height: 1px; background: var(--border); margin: 22px 0 15px; }
.include-label { font-size: 12px; font-weight: 800; letter-spacing: .02em; margin: 0 0 12px; }
.compact-features { list-style: none; padding: 0 !important; margin: 0 !important; display: block !important; }
.compact-features li { padding: 0; margin: 0 !important; border-bottom: 1px solid var(--border); }
.compact-features li:last-child { border-bottom: 0; }
.compact-features a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; color: var(--text); text-decoration: none; font-size: 13px; line-height: 1.45; }
.compact-features a:hover { color: var(--primary); }
.compact-features a span { color: var(--primary); }
.recommend-tag { display: inline-block; background: var(--primary-soft); border-radius: 16px; padding: 4px 8px; font-size: 10px; letter-spacing: 0; text-transform: none; }
.pricing-footnote { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 20px 0 30px; color: var(--muted); font-size: 12px; }
.pricing-footnote span { white-space: nowrap; }
.section-intro { margin-bottom: 28px; }
.crm-panel {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  border: 1px solid var(--border); background: var(--card); border-radius: 20px; padding: 30px;
}
.crm-panel h2 { margin: 8px 0; }
.crm-panel p:not(.eyebrow) { color: var(--muted); }
.crm-price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.crm-price strong { font-size: 42px; letter-spacing: -.04em; }
.crm-price span { font-size: 13px; }
.crm-price small { font-size: 11px; color: var(--muted); margin-top: 9px; }
.price-legal { margin-top: 22px; line-height: 1.65; }

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 850px) {
  .hero-grid, .split, .grid.two { grid-template-columns: 1fr; }
  .grid, .grid.four, .pricing-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .hero { padding: 55px 0; }
  .section { padding: 65px 0; }
  .split.reverse .screenshot { order: initial; }
  .nav-links {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 22px; flex-direction: column; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .mobile-menu { display: block; }
  .cta-panel { flex-direction: column; align-items: start; }
}
@media (max-width: 800px) {
  .problem-grid, .knowledge-grid, .case-long .case-layout { grid-template-columns: 1fr; }
  .case-long .screenshot { position: static; }
  .custom-banner { flex-direction: column; align-items: flex-start; }
  .calc-top, .calc-bottom, .crm-panel, .crm-inline { align-items: flex-start; flex-direction: column; }
  .calc-shell { padding: 22px; }
  .pricing-cards-compact .price-card { padding: 23px; }
  .plan-head { min-height: unset; }
  .crm-price { align-items: flex-start; }
  .crm-switch span { flex-wrap: wrap; }
  .pricing-footnote span { white-space: normal; }
}

/* --------------------------------------------------------------------------
   Telefono
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .grid, .grid.two, .grid.four, .pricing-cards, .footer-grid { grid-template-columns: 1fr; }
  .wrap { width: min(100% - 32px, 1180px); }
  .hero h1 { font-size: 39px; }
  .section-title { font-size: 31px; }
  .cta-panel { padding: 30px; }
  .cta-panel .btn { white-space: normal; }
  .form-card { padding: 22px; }
  .page-hero { padding: 50px 0; }
  .nav-links { gap: 15px; }
  .visual { transform: none; }
  .todo { white-space: normal; }
}

/* Schermate vere (dati finti) — la guida ospite e' verticale come un telefono */
.screenshot img.shot--guida-ospite,
.visual img.shot--guida-ospite { max-width: 320px; margin: 0 auto; }
img.shot { height: auto; max-width: 100%; }

/* Riquadro dispari in fondo alla griglia dei problemi: largo quanto la griglia */
.problem-card--intera { grid-column: 1 / -1; min-height: 0; }
/* niente tasto play o comandi sopra il video (gira come un'animazione) */
video.shot { pointer-events: none; }
video.shot::-webkit-media-controls,
video.shot::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

/* Il video della guida dentro un iPhone disegnato (21/10). Per cambiare la
   misura del telefono basta --iphone-w. */
.telefono-figura { margin: 0; display: flex; flex-direction: column; align-items: center; align-self: start; }
.iphone {
  --iphone-w: 250px;
  position: relative; width: var(--iphone-w); padding: 6px;
  background: #11151c; border-radius: 42px;
  box-shadow: 0 0 0 1.5px #3a3f48, 0 24px 60px var(--shadow-strong);
}
/* la fascia in alto e' la "barra di stato": l'isola ci sta sopra senza coprire la guida */
.iphone__schermo { position: relative; overflow: hidden; border-radius: 36px; background: var(--card); padding-top: 36px; }
.iphone__schermo video { display: block; width: 100%; height: auto; aspect-ratio: 480 / 872; object-fit: cover; }
.iphone__isola { position: absolute; z-index: 2; top: 15px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; background: #11151c; border-radius: 999px; }
.telefono-figura figcaption { padding: 14px 7px 4px; color: var(--muted); font-size: 11px; text-align: center; }
@media (max-width: 560px) { .iphone { --iphone-w: 220px; } }

/* Funzionalita': l'elenco completo, area per area (21/10) */
.feat-indice { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.feat-indice a { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 700; color: var(--primary); }
.feat-indice a:hover { background: var(--primary-soft); }
.feat-griglia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.feat-area { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px 24px 18px; scroll-margin-top: 100px; }
.feat-area__piano { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.feat-area h3 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 12px; }
.feat-area ul { list-style: none; padding: 0; margin: 0; }
.feat-area li { padding: 9px 0; border-top: 1px solid var(--border); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.feat-area li strong { display: block; color: var(--text); font-size: 14px; }
@media (max-width: 1000px) { .feat-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feat-griglia { grid-template-columns: 1fr; } }

/* Prezzi: la frase sopra le card e gli esempi che si aprono dalle funzionalita' (21/10) */
.pricing-claim { text-align: center; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--text-soft); max-width: 820px; margin: 8px auto 26px; }
.pricing-claim strong { color: var(--primary); }
.compact-features button.feat-esempio { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 0; border: 0; background: none; color: var(--ink, var(--text)); font: inherit; font-size: 13px; line-height: 1.45; text-align: left; cursor: pointer; }
.compact-features button.feat-esempio:hover { color: var(--primary); }
.compact-features button.feat-esempio span { color: var(--primary); font-weight: 800; }
dialog.esempio { width: min(520px, calc(100% - 32px)); border: 0; border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px var(--shadow-strong); color: var(--text); }
dialog.esempio::backdrop { background: rgba(15, 24, 51, .45); }
dialog.esempio h3 { font-size: 22px; letter-spacing: -.02em; margin: 6px 0 14px; }
dialog.esempio ol { margin: 0; padding-left: 22px; color: var(--text-soft); }
dialog.esempio li { margin: 8px 0; }
.esempio__nota { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; }
.esempio__azioni { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.esempio__azioni .text-link { margin: 0; }
