/* Tutta l'identità sta qui: per cambiare palette o font si modificano
   solo queste variabili. */
:root {
  --violet: #5B21F5;
  --yellow: #FFD93D;
  --ink: #1E1044;
  --white: #FFFFFF;
  --lavender: #F4F0FF;
  --muted: #5B6270;
  --font: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1120px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
figure { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--white); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--yellow); color: var(--ink); padding: 12px 16px; font-weight: 800;
}
.skip:focus { left: 12px; top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.dark { background: var(--violet); color: var(--white); }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.65em 1.5em;
  border-radius: 999px; border: 2px solid var(--yellow);
  background: var(--yellow); color: var(--ink);
  font-weight: 800; text-decoration: none;
}
.btn:hover { background: var(--white); border-color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border: 2px dashed rgba(255, 255, 255, 0.85); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

/* Intestazione */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.brand img { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { text-decoration: underline; }
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
}

/* Hero */
.hero { padding: 40px 0 80px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; }
}
.eyebrow {
  margin: 0 0 16px; color: var(--yellow);
  font-size: 0.85rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 6.4vw, 4.2rem);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 800;
}
.mark {
  background: var(--yellow); color: var(--violet);
  padding: 0 0.14em; border-radius: 0.22em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { max-width: 34em; margin: 0 0 12px; font-size: 1.2rem; }
.tagline { margin: 0 0 28px; color: var(--yellow); font-weight: 800; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sezioni */
.section { padding: 72px 0; }
.section--tint { background: var(--lavender); }
h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.15; letter-spacing: -0.02em; font-weight: 800;
}
.section-intro { max-width: 40em; margin: 0 0 40px; color: var(--muted); }
.dark .section-intro { color: var(--white); }

.steps, .cards { display: grid; gap: 20px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 800px) {
  .steps, .cards { grid-template-columns: repeat(3, 1fr); }
}
.step, .card {
  padding: 28px;
  border: 2px dashed rgba(91, 33, 245, 0.4);
  border-radius: var(--radius);
}
.step { background: var(--lavender); }
.card { background: var(--white); }
.step h3, .card h3 { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; }
.step p, .card p { margin: 0; color: var(--muted); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; height: 36px; padding: 0 14px; margin-bottom: 14px;
  border-radius: 999px; background: var(--violet); color: var(--yellow); font-weight: 800;
}

/* Fascia trasparenza */
.band { background: var(--ink); padding: 64px 0; }
.band p {
  max-width: 30em; margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.4; font-weight: 600;
}

/* Contatti */
.contact { padding: 72px 0; }

/* Piè di pagina */
.site-footer { background: var(--ink); color: #CFC7EA; padding: 28px 0; font-size: 0.95rem; }
.site-footer p { margin: 0; }

/* Aggiunte: app, prezzi */
.cards--two { grid-template-columns: 1fr; }
@media (min-width: 800px) { .cards--two { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }
.price { margin: 0 0 8px; font-size: 2.2rem; font-weight: 800; line-height: 1.1; color: var(--violet); }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.app-cta { margin: 32px 0 0; }
.btn--solid { background: var(--violet); border-color: var(--violet); color: var(--white); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }

/* Logo: testo + cornice tratteggiata "taglio" + forbici */
.logo { --logo-bg: var(--violet); display: inline-block; font-size: 2rem; line-height: 1.2; font-weight: 800;
  letter-spacing: -0.03em; white-space: nowrap; color: var(--white); }
.logo__frame { display: inline-block; position: relative; border: max(2px, 0.03em) dashed currentColor;
  border-radius: 0.34em; padding: 0.07em; line-height: 1; }
.logo__ai { display: block; background: var(--yellow); color: var(--violet); border-radius: 0.26em;
  padding: 0.04em 0.12em; line-height: 1.05; }
.logo__scissors { position: absolute; left: 0.2em; top: -0.18em; width: 0.33em; height: 0.33em;
  background: var(--logo-bg); border-radius: 0.07em; display: flex; align-items: center; justify-content: center; }
.logo__scissors svg { width: 0.26em; height: 0.26em; transform: rotate(90deg); }
.logo--xl { font-size: clamp(3.8rem, 13vw, 7.5rem); }
.logo--sm { font-size: 1.5rem; --logo-bg: var(--ink); }
.hero__lockup { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 48px 20px; }
.hero__sub { margin: 0; color: var(--yellow); font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: 0.02em; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-logo { padding-top: 6px; }

/* Hero centrato e banner delle app */
.hero__center { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 24px; }
.hero__brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 40px; }
.hero__brand .tagline { margin: 6px 0 0; font-size: clamp(1.1rem, 3vw, 1.6rem); color: var(--white); font-weight: 600; }
.hero__center h1 { max-width: 22em; font-size: clamp(1.6rem, 4.2vw, 2.6rem); line-height: 1.25; margin-bottom: 20px; }
.hero__center .lead { margin: 0 auto; }
.apps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.app-banner { display: flex; align-items: center; gap: 20px; padding: 20px 24px; text-decoration: none;
  background: var(--lavender); border: 2px dashed rgba(91, 33, 245, 0.45); border-radius: var(--radius); }
.app-banner:hover { background: #EBE4FF; border-color: var(--violet); }
.app-banner__icon { width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0; }
.app-banner__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.app-banner__title { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.app-banner__desc { color: var(--muted); }
.app-banner__cta { flex-shrink: 0; padding: 0.55em 1.2em; border-radius: 999px; background: var(--violet);
  color: var(--white); font-weight: 800; }
.app-banner:hover .app-banner__cta { background: var(--ink); }
@media (max-width: 560px) {
  .app-banner { flex-wrap: wrap; }
  .app-banner__text { flex-basis: calc(100% - 92px); }
  .app-banner__cta { margin-left: 92px; }
}

/* Barra in alto sempre visibile */
.site-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(30, 16, 68, 0.28); }
.nav { gap: 18px; }
.lang { display: inline-flex; border: 2px solid rgba(255, 255, 255, 0.55); border-radius: 999px; padding: 2px; }
.lang button { font: inherit; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.04em; cursor: pointer;
  min-width: 40px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--white); }
.lang button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.lang button:not([aria-pressed="true"]):hover { background: rgba(255, 255, 255, 0.15); }
@media (max-width: 640px) {
  .nav { gap: 10px; }
  .site-header .wrap { gap: 10px; }
  .brand .logo { font-size: 1.7rem; }
  .nav .btn { padding: 0.55em 1.1em; min-height: 44px; }
}
.nav .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .lang button { min-width: 34px; min-height: 34px; padding: 0 8px; font-size: 0.8rem; }
  .nav .btn { padding: 0.45em 0.95em; font-size: 0.95rem; }
  .brand .logo { font-size: 1.55rem; }
}
