/* BeautyMio, sito del prodotto. Colori e font del design system v4 (palette-colori.md), solo tema chiaro. */
:root {
  --page: #f7f2ec;
  --raised: #fffdfa;
  --sunken: #efe8df;
  --ink: #2b2030;
  --ink-muted: #64565c;
  --border: #e5ddd3;
  --accent: #714574;
  --accent-strong: #5a305c;
  --accent-soft: #f9ebfa;
  --on-accent: #ffffff;
  --success: #007a2a;
  --op-1: #ca3134; --op-1-soft: #ffebe9;
  --op-2: #a95703; --op-2-soft: #ffece0;
  --op-3: #047e39; --op-3-soft: #e3f6e6;
  --op-4: #06797e; --op-4-soft: #daf7f8;
  --op-5: #046cd1; --op-5-soft: #e7f1fe;
  --op-6: #814ec6; --op-6-soft: #f2edfe;
  --brand-prugna: #2b2030;
  --brand-avorio: #efe8df;
  --brand-sabbia: #d9c4b4;
  --font: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Testata: resta in alto. */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 242, 236, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 900; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.top nav a:hover { color: var(--accent); }
.top nav .login { border: 1.5px solid var(--ink); border-radius: 10px; padding: 7px 14px; }
@media (max-width: 760px) { .top nav a:not(.login) { display: none; } }

/* Apertura: il testo, poi il gestionale su iPad, computer e iPhone. */
.hero { background: var(--sunken); color: var(--ink); overflow: hidden; padding-block: 64px 56px; }
.hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.04; font-weight: 900; margin-top: 14px; max-width: 16em; }
.hero .lead { font-size: clamp(17px, 2vw, 19px); margin-top: 18px; color: var(--ink-muted); max-width: 38em; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: rgba(43, 32, 48, 0.06); }
.btn svg { width: 20px; height: 20px; }
.note { margin-top: 16px; font-size: 14px; color: var(--ink-muted); }

/* I tre dispositivi, da sinistra: iPad, computer, iPhone. Il computer al centro, gli altri davanti. */
.devices { position: relative; margin: 48px auto 0; max-width: 1080px; aspect-ratio: 1080 / 600; }
.device { position: absolute; margin: 0; overflow: hidden; background: #19131b; box-shadow: 0 24px 60px rgba(43, 32, 48, 0.22); }
.device img { width: 100%; }
.device.desktop { left: 13%; top: 0; width: 74%; border-radius: 14px; border: 1px solid #19131b; background: #f7f2ec; }
.device.desktop .bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #ece4da; border-bottom: 1px solid var(--border); }
.device.desktop .bar span { width: 10px; height: 10px; border-radius: 50%; background: #d2c6b9; }
.device.desktop .bar em { font-style: normal; font-size: 12px; color: var(--ink-muted); margin: 0 auto; padding: 2px 14px; background: var(--raised); border-radius: 6px; }
.device.ipad { left: 0; bottom: 0; width: 24%; border-radius: 6% / 4.5%; border: 6px solid #19131b; z-index: 2; }
.device.iphone { right: 1%; bottom: 0; width: 15%; border-radius: 16% / 7.5%; border: 5px solid #19131b; z-index: 2; }
.device.ipad img { border-radius: 4.6% / 3.5%; }
.device.iphone img { border-radius: 13% / 6%; }
@media (max-width: 700px) {
  .hero { padding-block: 40px 40px; }
  .devices { margin-top: 32px; aspect-ratio: 1 / 0.86; }
  .device.desktop { left: 0; width: 100%; border-radius: 10px; }
  .device.desktop .bar { height: 20px; }
  .device.desktop .bar em { font-size: 10px; }
  .device.ipad { width: 38%; border-width: 4px; }
  .device.iphone { right: 0; width: 25%; border-width: 4px; }
}

/* Per ogni tipo di salone: le categorie dei servizi, come nell'app. */
.sectors { background: var(--page); }
.cats { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cats li { display: flex; align-items: center; gap: 14px; hyphens: auto; overflow-wrap: anywhere; background: var(--raised); border: 1px solid var(--border); border-radius: 14px; padding: 10px 16px 10px 10px; font-weight: 700; font-size: 17px; min-width: 0; }
.cats .tile { flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--tile-soft); color: var(--tile); }
.cats .tile svg { width: 26px; height: 26px; }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr 1fr; } .cats li { font-size: 15px; gap: 10px; padding: 8px 10px 8px 8px; } .cats .tile { width: 42px; height: 42px; } }

/* Invito alla lingua del browser, sulla pagina italiana. */
.langbar { background: var(--accent); color: var(--on-accent); font-size: 15px; }
.langbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.langbar a { color: inherit; font-weight: 700; }
.langbar button { background: none; border: 0; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; padding: 8px; }

.notfound { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.notfound h1 { font-size: 36px; font-weight: 900; }

/* Sezioni */
section { padding-block: 84px; }
.section-head { max-width: 40em; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; font-weight: 900; }
.section-head p { margin-top: 12px; color: var(--ink-muted); font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.card { background: var(--raised); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-top: 16px; font-size: 19px; font-weight: 900; }
.card p { margin-top: 8px; color: var(--ink-muted); font-size: 16px; }

/* App per i clienti */
.clients { background: var(--raised); border-block: 1px solid var(--border); }
.clients .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.phone { width: 280px; margin: 0 auto; border-radius: 42px; border: 9px solid #19131b; background: #19131b; box-shadow: 0 30px 60px rgba(43, 32, 48, 0.22); overflow: hidden; }
.phone img { border-radius: 33px; width: 100%; }
.clients ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.clients li { display: flex; gap: 12px; align-items: flex-start; }
.check { flex: none; width: 22px; height: 22px; color: var(--success); margin-top: 3px; }
.app-row { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.app-row img { width: 56px; height: 56px; border-radius: 13px; border: 1px solid var(--border); }
.app-row a { font-weight: 700; }
@media (max-width: 800px) { .clients .wrap { grid-template-columns: 1fr; } .clients .phone { width: 240px; order: 2; } }

/* Prezzi */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan.featured { border: 2px solid var(--accent); }
.plan .name { font-size: 22px; font-weight: 900; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge { font-size: 13px; font-weight: 700; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 3px 10px; }
.price { font-size: 38px; font-weight: 900; font-variant-numeric: tabular-nums; margin-top: 6px; }
.price small { font-size: 16px; font-weight: 400; color: var(--ink-muted); }
.plan .sub { color: var(--ink-muted); font-size: 15px; }
.plan .who { font-weight: 700; margin-top: 8px; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: 16px; }
.plan li { display: flex; gap: 10px; }
.plan li .check { width: 20px; height: 20px; margin-top: 3px; }
.fine { margin-top: 20px; font-size: 14px; color: var(--ink-muted); max-width: 52em; }

/* Domande */
.faq-section { padding-top: 0; }
.faq { margin-top: 32px; display: grid; gap: 10px; max-width: 760px; }
details { background: var(--raised); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 900; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--ink-muted); }

/* Piede */
footer { background: var(--sunken); color: var(--ink-muted); padding-block: 40px; font-size: 15px; border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
footer a { color: var(--ink); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .links, footer .langs { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer .langs a[aria-current] { font-weight: 900; text-decoration: underline; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
