/* Mestiere in vista: foglio di stile */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("fonts/instrument-sans.woff2") format("woff2");
}

:root {
  /* Colori */
  --ink: #13262B;          /* ardesia: testi e sezioni scure */
  --ink-2: #2E4248;        /* testi secondari */
  --muted: #56696E;        /* note e didascalie */
  --plaster: #F4F6F3;      /* fondo: intonaco chiaro */
  --surface: #FFFFFF;
  --line: #D6DFDB;
  --line-soft: #E6ECE9;
  --green: #1D7563;        /* verde rame: marchio e azioni */
  --green-deep: #0F4D41;
  --mint: #E2F0EB;
  --mint-2: #BFE0D5;
  --bubble: #F2C230;       /* giallo bolla: solo piccoli accenti */
  --bubble-soft: #FBF0C9;
  --night-2: #1C3338;
  --night-line: #2D474D;
  --night-text: #E6EEEB;
  --night-muted: #A9BCB7;
  --night-mint: #8ED1BE;
  --grid: rgba(29, 117, 99, 0.085);

  /* Caratteri */
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;

  /* Misure */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 22px;
  --r-md: 14px;
  --section: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #FFFFFF; padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; color: #FFFFFF; }

/* Tipografia */
h1, h2, h3 { font-family: var(--display); margin: 0; color: inherit; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(40px, 4.7vw, 64px); line-height: 1.02; letter-spacing: -0.028em; }
h2 { font-weight: 700; font-size: clamp(31px, 3.7vw, 50px); line-height: 1.06; letter-spacing: -0.022em; }
h3 { font-weight: 650; font-size: 21px; line-height: 1.25; letter-spacing: -0.008em; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.section-head { max-width: 760px; }
.section-head p { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 38em; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green); color: #FFFFFF; }
.btn-primary:hover { background: var(--green-deep); color: #FFFFFF; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #FFFFFF; }
.btn-wa { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-wa:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { flex: none; }

/* Intestazione */
.site-header { position: relative; z-index: 30; border-bottom: 1px solid var(--line); background: var(--plaster); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(19, 38, 43, 0.45); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.brand-name span { color: var(--green); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--green); }
.header-cta { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Apertura */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 35%, transparent 78%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero .lead { margin-top: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 14px 7px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); box-shadow: 0 8px 20px -16px rgba(19, 38, 43, 0.5); }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; animation: ping 2.4s cubic-bezier(.2, .7, .3, 1) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.assure { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.assure li { display: flex; align-items: center; gap: 8px; }
.assure svg { color: var(--green); }

/* Telefono prima/dopo */
.demo { position: relative; display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative; width: 100%; max-width: 318px; aspect-ratio: 9 / 18.6;
  border-radius: 46px; border: 10px solid var(--ink); background: var(--ink); overflow: hidden;
  box-shadow: 0 60px 90px -50px rgba(19, 38, 43, 0.55), 0 0 0 1px rgba(19, 38, 43, 0.08);
}
.ba { position: absolute; inset: 0; border-radius: 36px; overflow: hidden; container-type: inline-size; background: #FFFFFF; --pos: 50%; }
.ba-after { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top center; }
.ba-before { position: absolute; inset: 0; z-index: 2; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-label { position: absolute; bottom: 14px; z-index: 4; pointer-events: none; background: rgba(19, 38, 43, 0.84); color: #FFFFFF; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.ba-label.left { left: 14px; }
.ba-label.right { right: 14px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(19, 38, 43, 0.22); pointer-events: none; z-index: 3; }
.ba-vial { max-width: none; position: absolute; top: 50%; left: 50%; width: 66px; height: 36px; margin: -18px 0 0 -33px; filter: drop-shadow(0 8px 14px rgba(19, 38, 43, 0.45)); }
.ba-range { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 5; cursor: ew-resize; touch-action: pan-y; background: transparent; }
.ba-range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 72px; height: 2000px; background: transparent; cursor: ew-resize; }
.ba-range::-moz-range-track { height: 100%; background: transparent; }
.ba-range::-moz-range-thumb { width: 72px; height: 2000px; border: 0; background: transparent; cursor: ew-resize; }
.ba-focus { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; border-radius: 36px; box-shadow: inset 0 0 0 3px var(--bubble); }
.ba-range:focus-visible + .ba-focus { opacity: 1; }
.demo-caption { margin-top: 18px; font-size: 14px; color: var(--muted); text-align: center; max-width: 330px; }
.demo-caption a { font-weight: 600; white-space: nowrap; }

.notify {
  position: absolute; left: -36px; bottom: 21%; z-index: 7; width: 252px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 26px 46px -26px rgba(19, 38, 43, 0.5);
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; align-items: start;
  animation: pop .7s cubic-bezier(.2, .8, .2, 1) 2.6s both;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.notify-icon { grid-row: span 3; width: 34px; height: 34px; border-radius: 10px; background: var(--green); display: flex; align-items: center; justify-content: center; }
.notify strong { font-size: 14px; line-height: 1.3; }
.notify span { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.notify .photos { display: flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; }

/* Il sito di esempio */
.example { padding: var(--section) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.example-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.example-text > p { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 34em; }
.example-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.example-points li { position: relative; padding-left: 30px; font-size: 16.5px; }
.example-points li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 12px; border-radius: 6px; border: 2px solid var(--ink); background: radial-gradient(circle at 50% 50%, var(--green) 0 3px, transparent 3.5px); }
.example-text .btn { margin-top: 30px; }
.example-text > .example-note { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.example-shots { position: relative; display: block; padding: 0 0 48px; text-decoration: none; }
.browser { display: block; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 50px 80px -50px rgba(19, 38, 43, 0.55); transition: transform .3s ease; }
.example-shots:hover .browser { transform: translateY(-4px); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #F3F5F6; border-bottom: 1px solid var(--line-soft); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D3DBD8; }
.browser-bar span { margin: 0 auto; padding: 3px 14px; border-radius: 999px; background: #E6EBE9; font-size: 12px; color: var(--muted); }
.browser img { width: 100%; height: auto; }
.mini-phone { position: absolute; right: -8px; bottom: 0; width: 27%; aspect-ratio: 9 / 18.6; border: 7px solid var(--ink); border-radius: 26px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 50px -24px rgba(19, 38, 43, 0.6); }
.mini-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 19px; }

/* Cosa fa il sito */
/* Perché rifare il sito */
.why { padding: var(--section) 0; background: var(--plaster); }
.reasons-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.reasons-head h2 { max-width: 15em; }
.reasons-head p { color: var(--ink-2); font-size: 18px; max-width: 34em; }
.hl { background-image: linear-gradient(transparent 58%, rgba(242, 194, 48, 0.55) 58%, rgba(242, 194, 48, 0.55) 86%, transparent 86%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.05em; }
.why-grid { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 28px 24px; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; }
.why-card::before { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) {
  .why-card:hover { transform: translateY(-4px); border-color: var(--mint-2); box-shadow: 0 22px 44px -28px rgba(19, 38, 43, 0.38); }
  .why-card:hover::before { transform: scaleX(1); }
}
.why-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.why-icon { width: 50px; height: 50px; border-radius: 15px; background: var(--mint); color: var(--green-deep); display: flex; align-items: center; justify-content: center; }
.why-num { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; color: var(--muted); font-variant-numeric: tabular-nums; }
.why-card h3 { font-size: 22px; }
.why-card > p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.why-how { margin-top: auto; padding-top: 22px; }
.why-how p { border-top: 1px dashed var(--line); padding-top: 16px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.why-how-label { margin-right: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--green); }
.pkg { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 4px 12px 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.pkg::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pkg-all { background: var(--mint); color: var(--green-deep); }
.pkg-plus { background: var(--plaster); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pkg-top { background: var(--bubble-soft); color: #5E4700; }
.pkg-top::before { background: var(--bubble); box-shadow: 0 0 0 1.5px #5E4700; width: 6px; height: 6px; }
.why-cta { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 32px; padding: 22px 22px 22px 30px; background: var(--ink); color: var(--night-text); border-radius: var(--r-lg); background-image: linear-gradient(rgba(142, 209, 190, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 209, 190, 0.06) 1px, transparent 1px); background-size: 28px 28px; }
.why-cta p { flex: 1 1 340px; position: relative; padding-left: 26px; font-size: 18px; color: var(--night-muted); }
.why-cta strong { color: #FFFFFF; font-family: var(--display); font-weight: 650; font-size: 20px; letter-spacing: -0.01em; margin-right: 4px; }
.why-cta-dot { position: absolute; left: 0; top: 0.62em; width: 11px; height: 11px; border-radius: 50%; background: var(--bubble); box-shadow: 0 0 0 5px rgba(242, 194, 48, 0.18); }
.why-cta .btn { flex: none; }
.why-cta .btn-primary:hover { background: #FFFFFF; color: var(--ink); }

/* Come funziona */
.how { padding: var(--section) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; left: 24px; right: calc((100% - 96px) / 5 - 24px); height: 2px; background: repeating-linear-gradient(90deg, var(--mint-2) 0 10px, transparent 10px 16px); }
.step { position: relative; }
.step-num { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 2px solid var(--green); color: var(--green-deep); font-family: var(--display); font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.step:last-child .step-num { background: var(--green); color: #FFFFFF; }
.step h3 { margin-top: 20px; font-size: 19px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.why-time { margin-top: clamp(44px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px 48px; padding: clamp(24px, 3vw, 36px); background: var(--plaster); border: 1px solid var(--line); border-radius: var(--r-lg); }
.why-head svg { color: var(--green); }
.why-head h3 { margin-top: 12px; font-size: 24px; }
.why-head p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.why-time ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; }
.why-time li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 16px; }
.why-time li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.why-time li strong { color: var(--ink); font-weight: 600; }
.step-time { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--green-deep); background: var(--mint); padding: 4px 10px; border-radius: 999px; }

/* Richieste in ordine (sezione scura) */
.flow-section { padding: var(--section) 0; background: var(--ink); color: var(--night-text); }
.flow-section .section-head p { color: var(--night-muted); }
.flow { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.flow-node { position: relative; background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-md); padding: 24px 22px 26px; }
.flow-node:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: -14px; width: 10px; height: 10px; z-index: 2;
  border-top: 2px solid var(--night-mint); border-right: 2px solid var(--night-mint); transform: rotate(45deg);
}
.flow-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(142, 209, 190, 0.14); color: var(--night-mint); display: flex; align-items: center; justify-content: center; }
.flow-node h3 { margin-top: 18px; font-size: 18px; color: #FFFFFF; }
.flow-node p { margin-top: 8px; font-size: 15px; color: var(--night-muted); }
.flow-note { margin-top: 28px; font-size: 15px; color: var(--night-muted); max-width: 46em; }

/* Prezzi */
.pricing { padding: var(--section) 0; }
.offer {
  margin-top: clamp(32px, 4vw, 48px); display: flex; align-items: center; gap: 16px 20px;
  background: var(--bubble-soft); border: 1px solid #EBD58A; border-radius: var(--r-md); padding: 16px 20px;
}
.offer svg { flex: none; }
.offer p { flex: 1 1 auto; font-size: 15.5px; line-height: 1.5; }
.offer strong { font-weight: 700; }
.slots { flex: none; font-size: 14px; font-weight: 700; color: #5C4700; background: #FFFFFF; border: 1px solid #EBD58A; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

.picker { margin-top: clamp(32px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.picker-label { font-family: var(--display); font-weight: 650; font-size: 20px; letter-spacing: -0.01em; }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; width: min(100%, 470px); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.2; cursor: pointer; transition: background-color .15s, color .25s; }
.seg input:not(:checked) + label:hover { color: var(--ink); background: var(--plaster); }
.seg input:checked + label { background: var(--ink); color: #FFFFFF; }
.seg input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 2px; }
@supports selector(:has(*)) {
  .seg::before {
    content: ""; position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 24px) / 3);
    border-radius: 999px; background: var(--ink); box-shadow: 0 8px 18px -8px rgba(19, 38, 43, 0.6);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
  }
  .seg:has(#size-m:checked)::before { transform: translateX(calc(100% + 6px)); }
  .seg:has(#size-l:checked)::before { transform: translateX(calc(200% + 12px)); }
  .seg input:checked + label { background: transparent; }
}

.plans { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px 28px;
  transition: border-color .25s, box-shadow .25s, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.plan h3 { font-size: 24px; letter-spacing: -0.015em; }
.plan { scroll-margin-top: 28px; }
.price-block { margin-top: 22px; }
@supports (grid-template-rows: subgrid) {
  .plans { grid-template-rows: repeat(6, auto); row-gap: 0; }
  .plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; align-content: start; }
}
.plan-badge { display: none; position: absolute; top: -13px; left: 26px; background: var(--green); color: #FFFFFF; font-size: 13px; font-weight: 600; padding: 4px 12px 4px 10px; border-radius: 999px; align-items: center; gap: 6px; }
.plan-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bubble); }
.plan-for { margin-top: 8px; font-size: 15px; color: var(--muted); min-height: 3em; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.price-now { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1; letter-spacing: -0.02em; }
.price-now small { font-size: 22px; font-weight: 650; }
.price-old { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.price-tag { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; background: var(--bubble-soft); color: #5C4700; padding: 3px 10px; border-radius: 999px; }
.price-note { margin-top: 8px; font-size: 14px; color: var(--muted); }
.plan .btn { margin-top: 22px; width: 100%; }
.features { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 11px; font-size: 15.5px; }
.features li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.45; }
.features li svg { margin-top: 2px; color: var(--green); }
.features .incl { font-weight: 600; grid-template-columns: minmax(0, 1fr); }
.features li strong { font-weight: 600; color: var(--ink); }
.renew { margin-top: auto; padding-top: 22px; }
.renew div { background: var(--mint); border-radius: 12px; padding: 14px 16px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.renew strong { display: block; font-size: 13px; color: var(--green-deep); margin-bottom: 2px; }

/* Piano consigliato in base alla scelta */
.pricing:has(#size-s:checked) .plan[data-plan="essenziale"],
.pricing:has(#size-m:checked) .plan[data-plan="completo"],
.pricing:has(#size-l:checked) .plan[data-plan="su-misura"] {
  border-color: var(--green); box-shadow: 0 30px 60px -36px rgba(15, 77, 65, 0.55); transform: translateY(-6px);
}
.pricing:has(#size-s:checked) .plan[data-plan="essenziale"] .plan-badge,
.pricing:has(#size-m:checked) .plan[data-plan="completo"] .plan-badge,
.pricing:has(#size-l:checked) .plan[data-plan="su-misura"] .plan-badge { display: inline-flex; }
.pricing:has(#size-s:checked) .plan[data-plan="essenziale"] .btn,
.pricing:has(#size-m:checked) .plan[data-plan="completo"] .btn,
.pricing:has(#size-l:checked) .plan[data-plan="su-misura"] .btn { background: var(--green); border-color: var(--green); color: #FFFFFF; }

.after-plans { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guarantee, .all-plans { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.guarantee { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; }
.g-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--green); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.guarantee p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.all-plans ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.all-plans li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.all-plans li svg { margin-top: 3px; color: var(--green); }
.vat { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Chi sono */
.about { padding: var(--section) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.portrait { width: 100%; height: auto; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: var(--mint); }
.about-text p { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 34em; }
/* Biglietto da visita */
.vcard {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; padding: clamp(28px, 3vw, 38px);
  background: var(--ink); color: var(--night-text); border-radius: var(--r-lg);
  background-image: linear-gradient(rgba(142, 209, 190, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 209, 190, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  box-shadow: 0 50px 80px -48px rgba(19, 38, 43, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.vcard-bg { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.vcard-watermark { position: absolute; right: -96px; top: -46px; width: 300px; height: auto; max-width: none; color: var(--night-mint); opacity: 0.08; pointer-events: none; }
.vcard-brand { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.vcard-brand .brand-name { font-size: 19px; color: #FFFFFF; }
.vcard-brand .brand-name span { color: var(--night-mint); }
.vcard-name { position: relative; margin-top: auto; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 4.2vw, 54px); line-height: 0.95; letter-spacing: -0.03em; color: #FFFFFF; }
.vcard-role { position: relative; margin-top: 14px; font-size: 16px; line-height: 1.45; color: var(--night-muted); max-width: 22em; }
.vcard-lines { position: relative; list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--night-line); display: grid; gap: 10px; font-size: 15.5px; }
.vcard-lines li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: center; min-width: 0; }
.vcard-lines svg { color: var(--night-mint); }
.vcard-lines a { color: #FFFFFF; text-decoration: none; overflow-wrap: anywhere; }
.vcard-lines a:hover { color: var(--night-mint); }
.vcard-foot { position: relative; margin-top: 22px; display: flex; align-items: center; gap: 10px; font-weight: 600; color: #FFFFFF; }
.vcard-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--bubble); box-shadow: 0 0 0 4px rgba(242, 194, 48, 0.18); }
.vcard :focus-visible { outline-color: var(--night-mint); }

/* Domande */
.faq-section { padding: var(--section) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.faq-head .btn { margin-top: 28px; }
.faq { min-width: 0; }
.faq details:first-child { border-top: 0; }
.faq details:first-child summary { padding-top: 4px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--green); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 44em; }

/* Contatti e modulo */
.contact { padding: var(--section) 0; background: var(--mint); border-top: 1px solid var(--mint-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-text p { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 30em; }
.direct { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.direct a.line { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.direct a.line:hover { color: var(--green); }
.reply-note { margin-top: 24px; font-size: 15px; color: var(--ink-2); }

.form-card { background: var(--surface); border: 1px solid var(--mint-2); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: 0 40px 70px -50px rgba(15, 77, 65, 0.5); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; min-height: 50px; padding: 0 14px; width: 100%;
  border: 1.5px solid #C6D2CD; border-radius: 12px; background: #FFFFFF; color: var(--ink);
}
.field textarea { min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: 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='%2313262B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--mint-2); }
.field select.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 40% { border-color: var(--green); box-shadow: 0 0 0 5px var(--mint-2); background-color: var(--mint); } 100% { box-shadow: 0 0 0 0 transparent; } }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.form .btn { grid-column: 1 / -1; width: 100%; min-height: 56px; font-size: 17px; }
.form-small { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Piè di pagina */
.site-footer { background: var(--ink); color: var(--night-muted); padding: 56px 0 40px; font-size: 15px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.site-footer .brand, .site-footer .brand:hover { color: #FFFFFF; }
.site-footer .brand-name span { color: var(--night-mint); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 28px 56px; }
.footer-cols a { color: var(--night-text); text-decoration: none; }
.footer-cols a:hover { color: var(--night-mint); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 13.5px; }
.site-footer :focus-visible { outline-color: var(--night-mint); }

/* Comparsa morbida */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Barra in basso sul telefono */
.mbar { display: none; }

/* Pagine semplici (grazie, privacy, 404) */
.page { padding: clamp(56px, 8vw, 104px) 0; }
.page .narrow { max-width: 760px; }
.page h1 { font-size: clamp(36px, 4.6vw, 58px); }
.page .lead { margin-top: 20px; }
.next-steps { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: s; }
.next-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.next-steps li::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--green-deep); font-family: var(--display); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal p, .legal li { color: var(--ink-2); margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal .draft { margin-top: 24px; background: var(--bubble-soft); border: 1px solid #EBD58A; border-radius: var(--r-md); padding: 14px 18px; font-size: 15px; color: var(--ink); }

/* Adattamento */
@media (min-width: 861px) {
  .site-header { position: sticky; top: 0; background: rgba(244, 246, 243, 0.95); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
  section[id] { scroll-margin-top: 86px; }
  .faq-head { position: sticky; top: 116px; }
}
@media (max-width: 1020px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .steps::before { display: none; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-node:nth-child(2)::after { display: none; }
  .plans { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 28px; }
  .plan { display: flex; grid-row: auto; }
  .after-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .notify { position: relative; left: auto; bottom: auto; order: 2; margin: -56px auto 0; width: min(100%, 300px); }
  .demo-caption { order: 3; }
  .reasons-head, .about-grid, .contact-grid, .faq-grid, .example-grid, .why-time { grid-template-columns: minmax(0, 1fr); }
  .example-shots { max-width: 640px; }
  .faq-grid { gap: 28px; }
  .portrait { max-width: 340px; }
  .vcard { aspect-ratio: auto; min-height: 420px; }
}
@media (max-width: 620px) {
  body { font-size: 16.5px; padding-bottom: 76px; }
  .header-inner { min-height: 64px; }
  .brand-name { font-size: 19px; }
  .brand svg { width: 40px; height: auto; }
  .header-cta { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .why-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .why-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 22px 20px 20px; }
  .why-top { margin-bottom: 0; }
  .why-num { display: none; }
  .why-icon { width: 44px; height: 44px; border-radius: 13px; }
  .why-card h3 { font-size: 20px; }
  .why-card > p, .why-how { grid-column: 1 / -1; }
  .why-card > p { margin-top: 14px; }
  .why-how { padding-top: 18px; }
  .why-card::before { left: 22px; right: 22px; }
  .why-cta { padding: 22px; }
  .why-cta .btn { width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-node:not(:last-child)::after { top: auto; bottom: -15px; right: 50%; transform: translateX(50%) rotate(135deg); }
  .flow-node:nth-child(2)::after { display: block; }
  .seg { width: 100%; }
  .seg label { padding: 0 6px; font-size: 14.5px; }
  .picker-label { font-size: 18px; }
  .offer { flex-wrap: wrap; align-items: flex-start; }
  .offer svg { margin-top: 2px; }
  .offer p { flex-basis: calc(100% - 66px); }
  .slots { margin-left: 66px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .mbar {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(244, 246, 243, 0.96);
    border-top: 1px solid var(--line); backdrop-filter: blur(8px);
  }
  .mbar .btn { flex: 1 1 0; min-height: 50px; padding: 0 12px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
