/* Vetrina (pagina iniziale) e pagine legali. Usa i colori del marchio: --brand, --accent. */
.vetrina main { overflow-x: clip; }
.v-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.v-narrow { max-width: 780px; }
.v-center { text-align: center; }
.v-kicker { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 14px; }
.vetrina h1, .vetrina h2 { font-family: var(--f-display); font-weight: 500; letter-spacing: -.015em; }
.vetrina h1 em, .vetrina h2 em { font-style: italic; color: var(--brand); }
.v-lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 54ch; line-height: 1.6; }
.v-small { font-size: 14px; color: var(--muted); margin-top: 14px; }
.v-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.v-cta.col { flex-direction: column; align-items: stretch; }

/* apertura */
.v-hero { padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 6vw, 80px);
  background: radial-gradient(80% 70% at 85% 30%, var(--accent-soft) 0%, transparent 60%), radial-gradient(60% 60% at 0% 100%, var(--brand-soft) 0%, transparent 60%); }
.v-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.v-hero h1 { font-size: clamp(46px, 7vw, 88px); line-height: .98; margin-bottom: 22px; }
.v-hero h1 em { display: block; }
.v-partner-logo { max-height: 64px; max-width: 220px; width: auto; margin-bottom: 26px; display: block; }
.v-hero-ph { display: grid; justify-items: center; gap: 12px; }
.v-ph-note { font-size: 13px; color: var(--muted); font-style: italic; font-family: var(--f-display); font-size: 17px; }
.v-phone { --k: .74; width: calc(390px * var(--k) + 24px); padding: 12px; border-radius: 46px; background: #1d1a17;
  box-shadow: 0 50px 80px -40px rgb(40 30 20 / .55), inset 0 0 0 2px #3a342e; position: relative; }
.v-phone-screen { width: calc(390px * var(--k)); height: calc(844px * var(--k)); border-radius: 34px; overflow: hidden; background: #fbf8f2; }
.v-phone iframe { width: 390px; height: 844px; border: 0; transform: scale(var(--k)); transform-origin: 0 0; display: block; }

.v-switch { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: -10px; }
.v-switch a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; text-decoration: none; color: var(--ink); background: var(--card); font-size: 15px; }
.v-switch a:hover { border-color: var(--brand); color: var(--brand); }

/* sezioni */
.v-sec { padding: clamp(64px, 9vw, 120px) 0; }
.v-alt { background: var(--bg-2); }
.v-head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.v-head h2, .v-final h2, .v-loc h2 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; }

.v-feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.v-feat:first-of-type { border-top: 0; }
.v-feat.rev .v-feat-txt { order: 2; }
.v-feat h3 { font: 500 clamp(30px, 3.4vw, 40px)/1.05 var(--f-display); margin-bottom: 14px; }
.v-feat p { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 48ch; }
.v-num { display: block; font: italic 500 22px/1 var(--f-display); color: var(--accent); margin-bottom: 12px; }

.v-swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.v-sw { background: var(--b); border-radius: 14px; padding: 14px; display: grid; gap: 22px; border: 1px solid rgb(0 0 0 / .06); min-height: 96px; align-content: space-between; }
.v-sw i { display: flex; gap: 5px; }
.v-sw i::before, .v-sw i::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--a); }
.v-sw i::after { background: var(--i); }
.v-sw b { color: var(--i); font: 500 17px/1.1 var(--f-display); }

.v-mock { background: var(--card); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line-2); display: grid; gap: 8px; }
.v-mock-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.v-mock-row.sm { font-size: 14px; color: var(--muted); padding-top: 4px; }
.v-mock-row.done { text-decoration: line-through; opacity: .7; }
.v-mock-sub { font-size: 14px; color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.v-mock-meter { margin-top: 8px; }
.v-allg { background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 1px 6px; }

.v-tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; justify-items: center; align-items: center; padding: 10px; }
.v-tbl { width: 118px; aspect-ratio: 1; border-radius: 50%; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; place-content: center; text-align: center; position: relative; }
.v-tbl.long { aspect-ratio: auto; height: 74px; border-radius: 14px; width: 100%; grid-column: span 1; }
.v-tbl b { font: 500 20px/1.1 var(--f-display); }
.v-tbl span { font-size: 13px; color: var(--muted); }
.v-alert { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 12px; background: var(--warn-bg); color: var(--warn); border-radius: 99px; padding: 2px 8px; }

.v-steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.v-steps li { counter-increment: s; padding: 0 22px; border-left: 1px solid var(--line); }
.v-steps li:first-child { border-left: 0; padding-left: 0; }
.v-steps li::before { content: counter(s); display: block; font: 400 64px/1 var(--f-display); color: var(--accent); margin-bottom: 12px; }
.v-steps b { font: 500 26px/1.1 var(--f-display); display: block; margin-bottom: 8px; }
.v-steps p { color: var(--muted); font-size: 16px; }

.v-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; justify-content: center; margin-bottom: 18px; }
.v-plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.v-plan.hl { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.v-plan .btn { margin-top: 10px; justify-self: start; }
.v-plan-name { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.v-price { font: 500 46px/1 var(--f-display); }
.v-price small { font: 400 15px var(--f-ui); color: var(--muted); }

.v-dark { background: var(--brand); color: var(--brand-ink); }
.v-dark .v-kicker { color: var(--accent); }
.v-dark h2 em { color: var(--accent); }
.v-dark .v-lead { color: inherit; opacity: .85; }
.v-loc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.v-loc h2 { margin-bottom: 18px; }
.v-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; }
.v-list li { padding: 14px 0; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); line-height: 1.5; opacity: .92; }
.v-list b { font-weight: 500; opacity: 1; }
.v-loc-card { background: color-mix(in srgb, var(--brand-ink) 8%, transparent); border: 1px solid color-mix(in srgb, var(--brand-ink) 22%, transparent); border-radius: 22px; padding: 28px; display: grid; gap: 10px; }
.muted-l { opacity: .75; }
.btn.ghost-l { background: transparent; color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand-ink) 45%, transparent); }

.v-faq { border-top: 1px solid var(--line); }
.v-faq details { border-bottom: 1px solid var(--line); padding: 18px 2px; }
.v-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font: 500 22px/1.25 var(--f-display); }
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after { content: "+"; color: var(--accent); font-size: 26px; line-height: 1; }
.v-faq details[open] summary::after { content: "–"; }
.v-faq p { color: var(--muted); margin-top: 10px; max-width: 64ch; }

.v-final { padding: clamp(64px, 9vw, 110px) 0; background: radial-gradient(70% 90% at 50% 100%, var(--accent-soft), transparent 70%); }
.v-final .v-lead { margin: 12px auto 26px; }

@media (max-width: 900px) {
  .v-hero-in, .v-feat, .v-loc { grid-template-columns: minmax(0, 1fr); }
  .v-feat.rev .v-feat-txt { order: 0; }
  .v-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .v-steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .v-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .v-phone { --k: .66; }
  .v-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v-tbl { width: 92px; }
  .v-tbl b { font-size: 17px; }
  .v-steps { grid-template-columns: minmax(0, 1fr); }
  .v-steps li { border-left: 0; padding: 0; }
  .v-cta .btn { flex: 1 1 auto; }
}

/* barra in alto su telefono stretto */
@media (max-width: 420px) {
  .pub-bar-in { padding: 10px 14px; gap: 10px; }
  .pub-nav { gap: 10px; font-size: 14px; }
  .pub-nav .btn.small { padding: 6px 12px; font-size: 13px; }
  .brandmark img { max-width: 120px; max-height: 34px; }
}

/* pagine legali */
.legal { max-width: 720px; margin: 40px auto 20px; padding: 0 20px; }
.legal h1 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 8px; }
.legal .lead { color: var(--muted); font-size: 18px; margin-bottom: 26px; }
.legal h2 { font-size: 26px; margin: 28px 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal .btn { margin-top: 26px; }
.kicker-sm { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }

/* area location e amministrazione */
.qr-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr-box canvas, .qr-box img, .qr-box svg { width: 128px; height: 128px; border-radius: 10px; background: #fff; padding: 6px; border: 1px solid var(--line); }
.linkbox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.linkbox code { background: var(--bg-2); border-radius: 8px; padding: 8px 12px; font: 14px/1.4 var(--f-ui); overflow-wrap: anywhere; flex: 1 1 100%; }
.card.stat { align-content: start; }
.stat b small { font-size: 18px; color: var(--muted); }
.brand-preview { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.brand-preview .bp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand-preview .bp-bar img { max-height: 36px; max-width: 150px; }
.brand-preview .bp-name { font: 600 22px/1 var(--f-display); }
.brand-preview .bp-body { padding: 18px 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.brand-preview .bp-nav { background: var(--bp-brand); color: var(--bp-brand-ink); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.brand-preview .bp-btn { background: var(--bp-brand); color: var(--bp-brand-ink); border-radius: 999px; padding: 9px 18px; font-size: 14px; }
.brand-preview .bp-acc { background: var(--bp-accent); color: var(--bp-accent-ink); border-radius: 999px; padding: 9px 18px; font-size: 14px; }
.logo-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.logo-row .f { flex: 1 1 220px; }
.logo-row input[type=file] { max-width: 100%; }
.logo-now { max-height: 60px; max-width: 200px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 12px 12px; border-radius: 8px; padding: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
fieldset > .seg { justify-self: start; }
