/* Caratteri ospitati sul sito (SIL Open Font License, vedi assets/fonts/LICENSE-*.txt) */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/lora-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("fonts/lora-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2"); }

/* Assistella, sito commerciale. Direzione "Salvia e lino": vedi DESIGN.md alla radice del progetto. */
:root {
  --bg: #F6F5EF;
  --surface: #FFFFFF;
  --text: #25352E;
  --muted: #53635A;
  --faint: #6B7A71;
  --primary: #355F4B;
  --primary-hover: #2C503F;
  --primary-ink: #D4E3D9;
  --secondary: #A65A40;
  --secondary-line: #E3C6BA;
  --border: #D9DED4;
  --border-strong: #9DB3A6;
  --sage: #E6EAE1;
  --sage-deep: #DCE3D8;
  --bubble: #E7F0E9;
  --chat-bg: #FAFAF6;
  --select: #CFE0D4;

  --shadow: 0 18px 40px -22px rgb(37 53 46 / 35%), 0 2px 6px -2px rgb(37 53 46 / 10%);
  --shadow-sm: 0 6px 16px -10px rgb(37 53 46 / 30%);
  --r-s: 8px;
  --r-m: 14px;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --wrap: 1200px;
  --gutter: 20px;
  --section: clamp(72px, 9vw, 120px);
  color-scheme: light;
}
@media (min-width: 900px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; scrollbar-color: var(--border-strong) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--primary);
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
p, ul, ol, figure, h1, h2, h3, h4, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }
::selection { background: var(--select); color: var(--text); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.num, time { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: var(--r-s); font-weight: 600; text-decoration: none; }
.skip:focus, .skip:hover { top: 12px; color: #fff; }

/* Tipografia */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem); line-height: 1.06; letter-spacing: -.025em; color: var(--primary); max-width: 14ch; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); line-height: 1.12; letter-spacing: -.02em; color: var(--primary); max-width: 20ch; }
h3 { font-size: 1.35rem; line-height: 1.3; letter-spacing: -.01em; color: var(--text); }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: 44ch; }
.lead strong { color: var(--text); font-weight: 600; }
.body { color: var(--muted); max-width: 60ch; }
.small { font-size: 14px; color: var(--muted); }
.fine { font-size: 13.5px; color: var(--muted); }
.head { margin-bottom: clamp(36px, 5vw, 56px); }
.head .lead { margin-top: 16px; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-s);
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-p { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-p:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-s { background: transparent; color: var(--primary); border: 1px solid var(--border-strong); }
.btn-s:hover { border-color: var(--primary); background: rgb(53 95 75 / 5%); color: var(--primary); }
.btn-w { background: #fff; color: var(--primary); border: 1px solid #fff; }
.btn-w:hover { background: var(--sage); border-color: var(--sage); color: var(--primary-hover); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 420px) { .ctas .btn { flex: 1 1 100%; } }

/* Etichette */
.tag {
  display: inline-flex; align-items: center; flex: none;
  font: 700 12px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  color: var(--secondary); border: 1px solid var(--secondary-line); border-radius: 5px; padding: 4px 7px;
  background: var(--surface);
}
.tag-inline { vertical-align: 2px; margin-right: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.top { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 3px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand svg { width: 23px; height: 23px; flex: none; margin-left: -3px; translate: 0 -1.5px; }
.brand span { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.nav-links { display: none; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--border-strong); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--r-s); background: var(--surface); color: var(--text); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-menu { display: none; padding: 8px 0 20px; border-top: 1px solid var(--border); }
.mobile-menu.open { display: block; }
.mobile-menu a:not(.btn) { display: block; padding: 12px 0; color: var(--text); text-decoration: none; font-weight: 500; font-size: 17px; }
.mobile-menu .btn { margin-top: 12px; }
@media (max-width: 520px) { .nav-end .btn { display: none; } }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-btn, .mobile-menu, .mobile-menu.open { display: none; }
}

section { position: relative; }
.section { padding-block: var(--section); }

/* Hero */
.hero { display: grid; gap: 44px; padding-block: 28px 72px; }
.hero .lead { margin-top: 22px; max-width: 36ch; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; padding-block: 40px 96px; } }

.hero-visual { position: relative; padding-bottom: 40px; }
.linen {
  position: relative; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3.3;
  background:
    repeating-linear-gradient(90deg, rgb(53 95 75 / 2%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgb(53 95 75 / 1.6%) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, #E9ECE3, #DCE3D8);
}
.linen::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgb(53 95 75 / 18%); border-radius: var(--r-s); pointer-events: none; }
@media (min-width: 900px) { .linen { aspect-ratio: auto; min-height: 640px; margin-left: 64px; } .day { z-index: 1; } .hero-visual { padding-bottom: 0; } }

.day {
  position: absolute; bottom: 34px; right: 34px; width: min(300px, 62%);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); box-shadow: var(--shadow-sm); overflow: hidden;
}
.day-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.day-h b { font-weight: 700; }
.day-h small { color: var(--muted); font-size: 13px; }
.day ol { padding: 8px; display: grid; gap: 6px; }
.slot { display: grid; grid-template-columns: 46px 1fr; gap: 8px; align-items: start; padding: 7px 9px; border-radius: var(--r-s); background: var(--sage); font-size: 13.5px; line-height: 1.3; }
.slot time { color: var(--muted); font-size: 13px; padding-top: 1px; }
.slot b { display: block; font-weight: 600; }
.slot small { display: block; color: #4C5C53; font-size: 12.5px; }
.slot.free { background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); }
.slot.free small { color: var(--muted); }
.slot.new { background: var(--primary); color: #fff; }
.slot.new time, .slot.new small { color: var(--primary-ink); }

/* Chat */
.chat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.ava { width: 34px; height: 34px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; flex: none; }
.ava svg { width: 18px; height: 18px; }
.chat-h b { display: block; font-size: 14px; line-height: 1.25; }
.chat-h small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.chat-h .tag { margin-left: auto; }
.msgs { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--chat-bg); }
.m { max-width: 86%; padding: 8px 11px 6px; border-radius: 12px; line-height: 1.45; }
.m time { display: block; text-align: right; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.in { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.out { align-self: flex-end; background: var(--bubble); border-bottom-right-radius: 4px; }
.saved { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--primary); background: var(--surface); }
.saved svg { width: 16px; height: 16px; flex: none; }
.hero .chat { position: absolute; left: 0; top: 36px; width: min(340px, 88%); }
@media (max-width: 899px) {
  .hero-visual { padding-bottom: 0; }
  .linen { aspect-ratio: auto; min-height: 300px; }
  .day { top: 28px; bottom: auto; right: 28px; left: 28px; width: auto; }
  .hero .chat { position: relative; left: auto; top: auto; margin: -40px 0 0 auto; width: 92%; }
}

/* Il momento firmato: l'appuntamento arriva in agenda */
@media (prefers-reduced-motion: no-preference) {
  .js .slot.new { animation: land 1.4s var(--ease) 1.1s both; }
  .js .hero .saved { animation: settle .9s var(--ease) .7s both; }
}
@keyframes land {
  0% { transform: translateY(-8px); box-shadow: 0 0 0 0 rgb(53 95 75 / 45%); }
  45% { transform: translateY(0); }
  100% { transform: translateY(0); box-shadow: 0 0 0 10px rgb(53 95 75 / 0%); }
}
@keyframes settle { from { background: var(--bubble); } to { background: var(--surface); } }

/* Persone vere */
.people { background: var(--surface); border-block: 1px solid var(--border); }
.people .wrap { display: grid; gap: 40px; }
@media (min-width: 900px) { .people .wrap { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; } }
.portrait {
  position: relative; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(90deg, rgb(53 95 75 / 2%) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgb(53 95 75 / 1.6%) 0 1px, transparent 1px 4px),
    linear-gradient(200deg, #E9ECE3, #D5DDD1);
  display: flex; align-items: flex-end; padding: 28px;
}
.portrait::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgb(53 95 75 / 18%); border-radius: var(--r-s); pointer-events: none; }
@media (min-width: 900px) { .portrait { aspect-ratio: 4 / 4.8; } }
.portrait figcaption b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 20px; color: var(--primary); }
.portrait figcaption small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 30ch; }
.portrait.has-img { padding: 0; background: var(--surface); }
.portrait.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.portrait-note { position: absolute; right: 12px; bottom: 10px; z-index: 1; font-size: 12px; color: #fff; background: rgb(31 42 36 / 55%); padding: 3px 8px; border-radius: 999px; }
.people h2 { max-width: 16ch; }
.people-list { margin-top: 32px; display: grid; gap: 26px; }
.people-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.people-list .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; color: var(--primary); }
.people-list .ico svg { width: 20px; height: 20px; }
.people-list p { margin-top: 4px; color: var(--muted); max-width: 48ch; }
.notice { margin-top: 36px; display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 20px 22px; background: var(--sage); border-radius: var(--r-m); color: #3C4D44; }
.notice svg { width: 20px; height: 20px; color: var(--primary); margin-top: 2px; }
.notice strong { color: var(--text); }

/* Giornata: il righello delle ore */
.ruler { display: grid; gap: 0; position: relative; }
.ruler li { position: relative; padding: 0 0 36px 32px; }
.ruler li::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: -10px; width: 1px; background: var(--border-strong); }
.ruler li:last-child::before { display: none; }
.ruler li::after { content: ""; position: absolute; left: 0; top: 9px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); }
.ruler time { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--primary); letter-spacing: -.01em; }
.ruler h3 { margin-top: 14px; }
.ruler p { margin-top: 8px; color: var(--muted); max-width: 44ch; }
.ruler .who { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--primary); }
.ruler .who.you { color: var(--secondary); }
@media (min-width: 900px) {
  .ruler { grid-template-columns: repeat(4, 1fr); gap: 36px; }
  .ruler li { padding: 34px 0 0; }
  .ruler li::before { left: 0; right: -36px; top: 5px; bottom: auto; width: auto; height: 1px; }
  .ruler li:last-child::before { display: block; right: 0; }
  .ruler li::after { left: 0; top: 0; }
}

/* Immagini illustrative (vedi DESIGN.md, Immagini) */
.scene picture, .evening-photo picture, .switch-photo picture { display: block; border-radius: var(--r-m); overflow: hidden; background: var(--sage); }
.scene-img, .evening-img, .switch-img, .apply-img { width: 100%; height: 100%; object-fit: cover; }
.scene { margin-bottom: clamp(40px, 5vw, 64px); }
.scene picture { aspect-ratio: 4 / 3; }
.scene-img { object-position: 62% 50%; }
.scene figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (min-width: 640px) { .scene picture { aspect-ratio: 16 / 8; } }
@media (min-width: 1000px) { .scene picture { aspect-ratio: 21 / 8; } .scene-img { object-position: 50% 58%; } }

.evening { margin-top: clamp(48px, 6vw, 80px); display: grid; gap: 0; }
.evening-photo picture { aspect-ratio: 4 / 3; }
.evening-img { object-position: 64% 40%; }
.evening-mock { width: min(100% - 32px, 400px); margin: -40px auto 0; position: relative; }
.recap { margin: 10px 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.recap li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.recap b { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; line-height: 1.2; color: var(--primary); }
@media (min-width: 1000px) {
  .evening { grid-template-columns: 1.25fr .75fr; align-items: center; }
  .evening-photo picture { aspect-ratio: 16 / 10; }
  .evening-mock { width: auto; margin: 0 0 0 -72px; }
}

.switch-photo { margin-top: 28px; }
.switch-photo picture { aspect-ratio: 4 / 3; }
.switch-img { object-position: 50% 55%; }
@media (min-width: 960px) { .switch-photo picture { aspect-ratio: 16 / 11; } }

.apply-photo { margin: -26px -26px 22px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-m) var(--r-m) 0 0; background: var(--sage); }
.apply-photo picture { display: block; height: 100%; }
.apply-img { object-position: 45% 60%; }

/* Funzioni */
.feature { display: grid; gap: 40px; }
@media (min-width: 1000px) { .feature { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; } }
.feature h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem); line-height: 1.2; color: var(--primary); max-width: 18ch; }
.feature .body { margin-top: 14px; }
.checks { display: grid; gap: 12px; margin-top: 22px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.5; }
.checks svg { width: 18px; height: 18px; margin-top: 3px; color: var(--primary); }
.footnote { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 52ch; }

.mock { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); box-shadow: var(--shadow); overflow: hidden; }
.mock-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.mock-h b { font-weight: 700; }
.mock-note { display: flex; gap: 8px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.mock-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--secondary); }

/* Agenda: tre colonne da tablet in su, elenco del giorno su telefono */
.ag-cols { display: none; }
.ag-list { padding: 8px; display: grid; gap: 6px; }
@media (min-width: 640px) {
  .ag-cols { display: grid; grid-template-columns: 52px repeat(3, 1fr); }
  .ag-list { display: none; }
}
.ag-who { padding: 10px 8px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 13.5px; line-height: 1.25; }
.ag-who small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.ag-grid {
  grid-column: 1 / -1; display: grid; grid-template-columns: 52px repeat(3, 1fr); grid-template-rows: repeat(10, 30px);
  background: repeating-linear-gradient(180deg, transparent 0 59px, var(--border) 59px 60px);
}
.ag-hr { grid-column: 1; font-size: 12px; color: var(--muted); padding: 4px 0 0 10px; line-height: 1; }
.ap { margin: 2px 4px; border-radius: 7px; padding: 6px 8px; line-height: 1.25; background: var(--sage); overflow: hidden; font-size: 12.5px; }
.ap b { display: block; font-weight: 600; font-size: 13px; }
.ap small { font-size: 12px; color: #4C5C53; }
.ap.new { background: var(--primary); color: #fff; }
.ap.new small { color: var(--primary-ink); }
.ap.off { background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); }

/* Griglia delle altre tre funzioni */
.trio { display: grid; gap: 20px; margin-top: clamp(56px, 7vw, 88px); }
@media (min-width: 960px) {
  .trio { grid-template-columns: 1fr 1fr; }
  .trio .cell:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.1fr; column-gap: 56px; align-content: start; }
  .trio .cell:first-child > :not(.mock) { grid-column: 1; }
  .trio .cell:first-child .mock { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; align-self: start; }
}
.cell { border: 1px solid var(--border); border-radius: var(--r-m); padding: clamp(22px, 3vw, 32px); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.cell.tint { background: var(--sage); border-color: var(--sage-deep); }
.cell > p { color: var(--muted); max-width: 52ch; }
.cell.tint > p { color: #41524A; }
.cell .mock { margin-top: 10px; box-shadow: var(--shadow-sm); }

.wa { padding: 14px; background: var(--chat-bg); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.wa-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 10px -11px -6px; border-top: 1px solid var(--border); background: var(--border); border-radius: 0 0 12px 12px; overflow: hidden; }
.wa-btns span { background: var(--surface); text-align: center; padding: 9px 4px; color: #1F7A57; font-weight: 600; font-size: 13.5px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--primary); }
.status svg { width: 15px; height: 15px; }

.cancel { margin: 14px 14px 4px; padding: 10px 12px; border-radius: var(--r-s); background: #F6ECE7; color: #7A3F2B; font-size: 13.5px; }
.cancel b { font-weight: 700; }
.wl { display: grid; }
.wl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; }
.wl-row + .wl-row { border-top: 1px solid var(--border); }
.wl-row b { display: block; font-weight: 600; }
.wl-row small { display: block; color: var(--muted); font-size: 13px; }
.mini-btn { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-s); background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; }
.mini-btn.ghost { background: transparent; color: var(--primary); border: 1px solid var(--border-strong); }

.takeover { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #F6ECE7; color: #7A3F2B; font-size: 13.5px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 14px; background: var(--chat-bg); }
.chips span { font-size: 13px; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }

/* Come provare Stella */
.try { background: var(--sage); }
.try .wrap { display: grid; gap: 36px; }
@media (min-width: 900px) { .try .wrap { grid-template-columns: 1.2fr .8fr; gap: 72px; align-items: center; } }
.try .lead { margin-top: 16px; color: #41524A; }
.try .small { margin-top: 14px; color: #41524A; max-width: 52ch; }
.test-card { background: var(--surface); border: 1px solid var(--sage-deep); border-radius: var(--r-m); box-shadow: var(--shadow); overflow: hidden; }
.test-card .chat-h { border-bottom-color: var(--border); }
.test-body { padding: 18px 16px; display: grid; gap: 12px; font-size: 14.5px; }
.test-num { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .04em; color: var(--muted); }
.test-num small { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: 0; margin-top: 4px; }

/* Cambio agenda e attivazione */
.switch .wrap { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .switch .wrap { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
  .switch .head { position: sticky; top: 108px; margin-bottom: 0; }
}
.steps { display: grid; gap: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--border); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--primary); }
.steps p { margin-top: 6px; color: var(--muted); max-width: 52ch; }
.steps .tag { margin-left: 4px; }

/* Prezzo */
.price-card { display: grid; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 900px) { .price-card { grid-template-columns: .9fr 1.1fr; } }
.price-main { padding: clamp(26px, 4vw, 48px); }
.price-why { padding: clamp(26px, 4vw, 48px); background: var(--chat-bg); border-top: 1px solid var(--border); }
@media (min-width: 900px) { .price-why { border-top: 0; border-left: 1px solid var(--border); } }
.amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 18px; }
.amount b { font-family: var(--serif); font-weight: 500; font-size: clamp(3.2rem, 2.4rem + 3vw, 4.6rem); line-height: 1; letter-spacing: -.03em; color: var(--primary); font-variant-numeric: tabular-nums; }
.amount span { color: var(--muted); font-weight: 500; }
.setup { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); max-width: 40ch; }
.setup b { color: var(--text); font-weight: 700; }
.price-main .ctas { margin-top: 28px; }
.price-terms { margin-top: 18px; gap: 8px; font-size: 15.5px; }
.pilot-note { margin-top: 24px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-s); background: var(--chat-bg); color: var(--text); font-size: 15.5px; }
.pilot-note b { font-weight: 700; }
.price-why h3 { color: var(--primary); font-size: 1.45rem; }
.price-why .checks { margin-top: 18px; }
.price-why .checks b { font-weight: 700; }
.price-why .small { margin-top: 18px; }

/* Centri pilota */
.pilot { background: var(--primary); color: #fff; border-radius: var(--r-m); padding: clamp(28px, 5vw, 64px); display: grid; gap: 36px; }
@media (min-width: 960px) { .pilot { grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; } }
.pilot h2 { color: #fff; max-width: 18ch; }
.pilot > div:first-child > p { margin-top: 16px; color: var(--primary-ink); max-width: 52ch; }
.pilot .checks { margin-top: 24px; }
.pilot .checks svg { color: #BFD6C7; }
.pilot .tag { background: transparent; color: #F2D4C7; border-color: rgb(242 212 199 / 50%); }
.apply { background: var(--surface); color: var(--text); border-radius: var(--r-m); padding: 26px; }
.apply h3 { color: var(--primary); }
.apply ol { margin: 14px 0 20px; display: grid; gap: 10px; counter-reset: a; }
.apply li { counter-increment: a; display: grid; grid-template-columns: 26px 1fr; gap: 8px; color: var(--muted); }
.apply li::before { content: counter(a); font-family: var(--serif); color: var(--primary); font-size: 1.15rem; line-height: 1.35; }
.apply .small { margin-top: 12px; }

/* Domande */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-family: var(--serif); font-size: 1.18rem; font-weight: 500; line-height: 1.35; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primary); }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--primary), var(--primary)) center / 14px 2px no-repeat, linear-gradient(var(--primary), var(--primary)) center / 2px 14px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* Intestazione delle pagine interne */
.page-head { padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 72px); }
.page-head .lead { margin-top: 20px; max-width: 52ch; }

/* Prezzi */
.plan-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .plan-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); box-shadow: var(--shadow); padding: clamp(26px, 4vw, 48px); }
.plan h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.groups { display: grid; gap: 22px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .groups { grid-template-columns: 1fr 1fr; } .groups > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.groups h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: 0; }
.groups .checks { margin-top: 10px; gap: 8px; font-size: 15.5px; }
.limits { background: var(--sage); border-radius: var(--r-m); padding: clamp(24px, 3vw, 36px); }
.limits h2 { font-size: 1.5rem; }
.limits > p { margin-top: 8px; color: #41524A; }
.limit-list { margin-top: 18px; display: grid; gap: 0; }
.limit-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--sage-deep); }
.limit-list li:first-child { border-top: 0; }
.limit-list span { font-weight: 600; }
.limit-list b { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--primary); grid-row: 1 / 3; grid-column: 2; align-self: center; font-variant-numeric: tabular-nums; }
.limit-list small { color: #41524A; font-size: 14px; }
.limits .beyond { margin-top: 16px; padding: 16px 18px; background: var(--surface); border-radius: var(--r-s); font-size: 15px; color: var(--muted); }
.limits .beyond strong { color: var(--text); }

.why { display: grid; gap: 40px; }
@media (min-width: 960px) { .why { grid-template-columns: .9fr 1.1fr; gap: 72px; } }
.why-list { display: grid; gap: 28px; }
@media (min-width: 640px) { .why-list { grid-template-columns: 1fr 1fr; gap: 32px 40px; } }
.why-list li { border-top: 2px solid var(--primary); padding-top: 16px; }
.why-list p { margin-top: 6px; color: var(--muted); }
.honest { margin-top: 24px; color: var(--muted); max-width: 56ch; }
.honest strong { color: var(--text); }

.calc { display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); padding: clamp(22px, 3vw, 36px); }
@media (min-width: 860px) { .calc { grid-template-columns: 1fr 1fr; gap: 40px; } }
.field + .field { margin-top: 20px; }
.field label { display: block; font-weight: 700; font-size: 15px; }
.input-wrap { position: relative; margin-top: 8px; }
.input-wrap span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-wrap input {
  width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r-s);
  background: var(--surface); color: var(--text); font: 600 18px/1 var(--sans); font-variant-numeric: tabular-nums;
}
.input-wrap.euro input { padding-left: 34px; }
.input-wrap input:hover { border-color: var(--primary); }
.input-wrap input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.hint { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.calc-out { background: var(--sage); border-radius: var(--r-m); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.calc-out .tag { align-self: flex-start; }
.calc-out .big { font-family: var(--serif); font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-top: 4px; }
.calc-out p { color: #41524A; }
.calc-out .small { color: #41524A; }

/* Funzionalità */
.group { display: grid; gap: 28px; padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--border); }
.group:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .group { grid-template-columns: .75fr 1.25fr; gap: 64px; }
  .group > div:first-child { position: sticky; top: 108px; align-self: start; }
}
.group .lead { margin-top: 12px; font-size: 1.05rem; }
.feat-list { display: grid; gap: 30px; }
@media (min-width: 640px) { .feat-list { grid-template-columns: 1fr 1fr; gap: 34px 40px; } }
.feat-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.feat-list .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; color: var(--primary); }
.feat-list .ico svg { width: 18px; height: 18px; }
.feat-list h3 { font-size: 1.22rem; }
.feat-list p { margin-top: 4px; color: var(--muted); font-size: 15.5px; }
.later { background: var(--surface); border-block: 1px solid var(--border); }
.later-list { display: grid; gap: 20px; }
@media (min-width: 760px) { .later-list { grid-template-columns: 1fr 1fr; } }
.later-list li { padding: 24px; border: 1px dashed var(--border-strong); border-radius: var(--r-m); }
.later-list h3 { margin-top: 12px; }
.later-list p { margin-top: 6px; color: var(--muted); }
.close { text-align: center; }
.close h2, .close .lead { margin-inline: auto; }
.close .lead { margin-top: 14px; }
.close .ctas { justify-content: center; }

/* Privacy */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); max-width: none; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; }
.prose p { margin-top: 12px; color: var(--muted); }
.draft { margin-bottom: 32px; padding: 16px 18px; border: 1px solid var(--secondary-line); border-radius: var(--r-s); background: #F6ECE7; color: #7A3F2B; font-weight: 600; }

/* Richiesta demo (modulo) */
.nowrap { white-space: nowrap; }
.demo-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .demo-grid { grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; } .demo-intro { position: sticky; top: 108px; } }
.demo .lead { margin-top: 18px; max-width: 40ch; }
.demo-reassure { margin-top: 26px; }
.demo-reassure b { font-weight: 700; }
.demo-next-h { margin-top: 36px; font-size: 1.2rem; }
.demo-next { margin-top: 14px; display: grid; counter-reset: n; }
.demo-next li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.demo-next li:first-child { border-top: 0; padding-top: 4px; }
.demo-next li::before { content: counter(n); font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; color: var(--primary); font-variant-numeric: tabular-nums; }
.demo-next b { font-weight: 700; }
.demo-next p { margin-top: 2px; color: var(--muted); font-size: 15.5px; }
.demo-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); box-shadow: var(--shadow); padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 18px; }
.f-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .f-row { grid-template-columns: 1fr 1fr; } }
.f { display: grid; gap: 6px; align-content: start; }
.f label { font-weight: 700; font-size: 15px; }
.f .opt { font-weight: 500; color: var(--muted); }
.f input, .f select, .f textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--r-s);
  background: var(--surface); color: var(--text); font: 500 16px/1.4 var(--sans);
}
.f textarea { min-height: 96px; resize: vertical; }
.f select { appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23355F4B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.f input::placeholder, .f textarea::placeholder { color: var(--faint); }
.f input:hover, .f select:hover, .f textarea:hover { border-color: var(--primary); }
.f input:focus-visible, .f select:focus-visible, .f textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.f [aria-invalid="true"] { border-color: #A1402A; box-shadow: 0 0 0 1px #A1402A; }
.f-hint { font-size: 14px; color: var(--muted); }
.f-err { font-size: 14px; font-weight: 600; color: #8E3A24; }
.f-err:empty { display: none; }
.f-err-check { margin-top: -10px; }
.f-check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.5; }
.f-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); cursor: pointer; }
.f-check label { cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { padding: 14px 16px; border: 1px solid var(--secondary-line); border-radius: var(--r-s); background: #F6ECE7; color: #7A3F2B; font-size: 15px; }
.form-errors ul { margin-top: 6px; display: grid; gap: 4px; list-style: disc; padding-left: 20px; }
.form-errors a { color: #7A3F2B; }
.demo-form .btn { margin-top: 4px; }
.demo-form .btn[disabled] { opacity: .7; cursor: progress; }
.f-alt { font-size: 14px; color: var(--muted); text-align: center; }

/* Grazie, 404, esito del modulo */
.done { display: grid; gap: 40px; }
@media (min-width: 960px) { .done { grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; } }
.done .lead { margin-top: 20px; max-width: 46ch; }
.done-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-m); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 36px); }
.done-card h2 { font-size: 1.4rem; }
.done-card .demo-next { margin-top: 12px; }
.err-list { margin-top: 18px; display: grid; gap: 6px; list-style: disc; padding-left: 20px; color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 40px; font-size: 15px; color: var(--muted); }
.foot { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot p { margin-top: 12px; max-width: 40ch; }
.foot-h { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: 0; }
.foot ul { margin-top: 12px; display: grid; gap: 8px; }
.foot ul a { color: var(--muted); text-decoration: none; }
.foot ul a:hover { color: var(--text); text-decoration: underline; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
