/* =====================================================================
   CmPOS – Landing (cartella /landingpage di cmpos.it)
   Si aggiunge a site.css del nuovo sito: barra in alto come cmpos.it,
   scelta iniziale, popup del modulo contatti, barra fissa sul telefono.
   ===================================================================== */

/* ---------- Barra in alto: copia della testata WordPress di cmpos.it ---------- */
@font-face { font-family: 'Inter WP'; font-style: normal; font-weight: 100 900; font-display: fallback;
  src: url('/wp-content/themes/twentytwentyfour/assets/fonts/inter/Inter-VariableFont_slnt,wght.woff2') format('woff2'),
       url('https://www.cmpos.it/wp-content/themes/twentytwentyfour/assets/fonts/inter/Inter-VariableFont_slnt,wght.woff2') format('woff2'); }
.wph { position: relative; z-index: 110; background: #111; color: #fff; padding: min(2.5rem, 3vw) 0; font: 400 .9rem/1.55 'Inter WP', Inter, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: auto; }
.wph__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.wph__brand { display: flex; flex-wrap: wrap; align-items: center; }
.wph__sp { display: block; width: min(10.5rem, 13vw); height: 2px; }
.wph__logo { display: block; }
.wph__logo img { display: block; width: 408px; max-width: 100%; height: auto; }
.wph__nav { margin-right: max(0px, calc(50vw - 424px)); }
.wph__nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: min(2.5rem, 3vw); margin: 0; padding: 0; list-style: none; }
.wph__nav a { color: #fff; font-size: .9rem; font-weight: 500; line-height: 1.55; text-decoration: none; }
.wph__nav a:hover { text-decoration: underline; }
.wph__open, .wph__close { display: none; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.wph__open svg, .wph__close svg { display: block; width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 599.98px) {
  .wph__open { display: flex; }
  .wph__menu { display: none; }
  .wph__menu.is-open { display: block; position: fixed; inset: 0; z-index: 100000; padding: 16px; overflow: auto; background: #fff; color: #000; }
  .wph__menu.is-open .wph__close { display: block; position: absolute; top: 16px; right: 16px; }
  .wph__menu.is-open ul { flex-direction: column; align-items: flex-end; gap: 12px; padding-top: 56px; }
  .wph__menu.is-open a { color: #000; font-size: .9rem; }
}

/* ---------- Pagina senza testata fissa ---------- */
.is-landing { --hd: 24px; }
html:has(.is-landing) { scroll-padding-top: 24px; }

/* ---------- Apertura: i tre prodotti su cerchi colorati (come cashmarket.it/it/soluzioni) ---------- */
.lp-open { padding-top: clamp(1.4rem, 3.2vw, 2.6rem); overflow: clip; }
.lp-open__head { text-align: center; }
.lp-open__title { margin-top: .6rem; font-size: clamp(1.8rem, .8rem + 2.6vw, 3.6rem); line-height: 1; }
.lp-open__title .ln { margin-inline: auto; }
.lp-stage { position: relative; z-index: 1; margin-top: clamp(1rem, 2.4vw, 2rem); background: radial-gradient(90% 120% at 50% 100%, #1b1e28, #0d0e13 75%); border-block: 1px solid var(--line); }
.lp-stage::after { content: ''; position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(transparent, rgba(0,0,0,.35)); pointer-events: none; }
.lp-stage__in { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.25fr 1fr; align-items: end; gap: clamp(.5rem, 2vw, 2rem); grid-template-rows: minmax(0, 1fr); height: clamp(400px, calc(100svh - 368px), 700px); padding-top: .5rem; }
.lp-prod { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; padding-bottom: 1.3rem; text-decoration: none; isolation: isolate; }
.lp-prod__orb { position: absolute; z-index: -1; left: 50%; top: 50%; height: 128%; aspect-ratio: 1; border-radius: 50%; translate: -50% -50%;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--tint) 30%, #262a34), color-mix(in srgb, var(--tint) 8%, #14161c) 72%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 28%, transparent), 0 0 90px -20px color-mix(in srgb, var(--tint) 45%, transparent);
  transition: box-shadow .5s, transform .8s var(--ease); }
.lp-prod--kiosk .lp-prod__orb { top: 42%; height: 70%; }
.lp-prod__fig { position: relative; display: flex; justify-content: center; min-height: 0; max-width: 100%; }
.lp-prod__img { position: relative; width: auto; height: 100%; max-width: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 30px 34px rgba(0,0,0,.65)); transition: transform .7s var(--ease); }
.lp-prod--kiosk .lp-prod__fig { flex: none; height: calc(100% - 4.4rem); }
.lp-prod--soft .lp-prod__fig { height: 68%; }
.lp-prod--cash .lp-prod__fig { height: 56%; }
.lp-prod__txt { margin-top: .9rem; text-align: center; }
.lp-prod__name { display: block; font-weight: 700; font-size: clamp(1.1rem, .7rem + 1.3vw, 2.1rem); line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.lp-prod__sub { display: block; margin-top: .35rem; color: var(--fg-2); font-size: clamp(.78rem, .7rem + .25vw, .95rem); }
.lp-prod:hover .lp-prod__img, .lp-prod.is-on .lp-prod__img { transform: translateY(-10px); }
.lp-prod:hover .lp-prod__orb, .lp-prod.is-on .lp-prod__orb { transform: scale(1.06); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tint) 60%, transparent), 0 0 120px -10px color-mix(in srgb, var(--tint) 60%, transparent); }
.lp-prod:hover .lp-prod__name { color: var(--tint); }
/* Entrata: cerchi e prodotti salgono uno dopo l'altro */
.js .lp-prod__orb { transform: scale(.6); opacity: 0; }
.js .lp-prod__img, .js .lp-prod__txt { opacity: 0; transform: translateY(40px); }
.js .lp-open.is-in .lp-prod__orb { opacity: 1; transform: none; transition: opacity .9s, transform 1.1s var(--ease), box-shadow .5s; }
.js .lp-open.is-in .lp-prod__img, .js .lp-open.is-in .lp-prod__txt { opacity: 1; transform: none; transition: opacity .9s, transform 1s var(--ease); }
.js .lp-open.is-in .lp-prod--soft :is(.lp-prod__orb, .lp-prod__img, .lp-prod__txt) { transition-delay: .15s; }
.js .lp-open.is-in .lp-prod--cash :is(.lp-prod__orb, .lp-prod__img, .lp-prod__txt) { transition-delay: .3s; }
.js .lp-open.is-in .lp-prod:hover .lp-prod__img, .js .lp-open.is-in .lp-prod.is-on .lp-prod__img { transition-delay: 0s; transform: translateY(-10px); }

.lp-pick { padding-block: clamp(1.4rem, 3vw, 2.4rem) clamp(3rem, 6vw, 5rem); text-align: center; }
.lp-ask { margin: 0 0 .9rem; font: 500 .8rem/1.4 var(--f-m); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.lp-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.lp-choice { display: inline-flex; align-items: center; gap: .7rem; min-height: 52px; padding: .8rem 1.2rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--ink-2); text-decoration: none; transition: border-color .3s, background .3s, transform .4s var(--ease); }
.lp-choice strong { font-weight: 600; font-size: 1rem; letter-spacing: -.01em; }
.lp-choice .icon { color: var(--acc); transition: transform .4s var(--ease); }
.lp-choice:hover, .lp-choice.is-on { border-color: var(--acc); background: rgba(44,240,44,.09); transform: translateY(-2px); }
.lp-choice:hover .icon { transform: translateX(3px); }
.lp-choice--all { border-color: rgba(44,240,44,.55); }

/* ---------- Altro ---------- */
.lp-after { display: flex; justify-content: center; padding-block: 0 clamp(3rem, 7vw, 6rem); }
.lp-cta__btn { margin-top: 1.8rem; }
.lp-cta .cta__tel { margin-top: 0; }

/* ---------- Piede ---------- */
.lp-ft { padding-block: 1.6rem; border-top: 1px solid var(--line); font: 400 .8rem var(--f-m); color: var(--fg-3); }
.lp-ft .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }
.lp-ft a { text-decoration: none; } .lp-ft a:hover { color: var(--fg); }

/* ---------- Popup del modulo contatti ---------- */
.lp-modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; background: rgba(5,6,8,.74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lp-modal__box { position: relative; display: flex; flex-direction: column; width: min(760px, 100%); max-height: calc(100svh - 32px); overflow: hidden; border-radius: var(--r); background: #111; border: 1px solid var(--line); box-shadow: 0 40px 90px -30px #000; }
.lp-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line); }
.lp-modal__title { font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; }
.lp-modal__close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; }
.lp-modal__close:hover { background: var(--fg); color: var(--ink); }
.lp-modal__frame { position: relative; flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.lp-modal__frame iframe { display: block; width: 100%; height: min(74svh, 760px); border: 0; background: #111; }
.lp-modal__wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fg-2); font: 500 .8rem var(--f-m); letter-spacing: .08em; text-transform: uppercase; }
.lp-modal.is-ready .lp-modal__wait { display: none; }
html.lp-lock, html.lp-lock body { overflow: hidden; }

/* ---------- Barra fissa sul telefono ---------- */
.lp-bar { display: none; }
@media (max-width: 820px) {
  .lp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 400; display: flex; gap: .5rem; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(11,12,16,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .45s var(--ease); }
  .lp-bar.is-on { transform: none; }
  .lp-bar .btn { flex: 1; min-height: 48px; }
  .lp-bar .lp-bar__tel { flex: 0 0 52px; padding: 0; }
  .is-landing { padding-bottom: 72px; }
  /* Apertura sul telefono: kiosk alto a sinistra, software e cassetto uno sopra l'altro a destra */
  .lp-open__title { font-size: clamp(1.65rem, 6.6vw, 2.4rem); }
  .lp-stage__in { grid-template-columns: .8fr 1fr; grid-template-rows: auto auto; height: auto; gap: .2rem .4rem; padding-top: 1rem; }
  .lp-prod { padding-bottom: .9rem; }
  .lp-prod--kiosk { grid-row: 1 / 3; }
  .lp-prod--kiosk .lp-prod__fig { height: min(52svh, 430px); margin-top: 0; }
  .lp-prod--soft .lp-prod__fig { height: auto; width: 78%; } .lp-prod--soft .lp-prod__img { width: 100%; height: auto; }
  .lp-prod--cash .lp-prod__fig { height: auto; width: 58%; } .lp-prod--cash .lp-prod__img { width: 100%; height: auto; }
  .lp-prod--soft .lp-prod__orb, .lp-prod--cash .lp-prod__orb { height: 118%; }
  .lp-prod__txt { margin-top: .5rem; }
  .lp-prod__name { font-size: 1rem; }
  .lp-prod__sub { font-size: .74rem; }
  .lp-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .lp-choice { justify-content: space-between; padding: .7rem 1rem; text-align: left; }
  .lp-choice strong { font-size: .93rem; line-height: 1.2; }
  .lp-cta .cta__grid { grid-template-columns: 1fr; }
}

/* ---------- Cassa automatica: scelta del modello e monete (solo landing) ---------- */
.lp-models { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.lp-models button { display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: .3rem 1.1rem .3rem .35rem; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: .93rem; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.lp-models button:hover { border-color: var(--fg-2); }
.lp-models img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,.08); padding: 3px; }
.lp-models [aria-checked="true"] { background: var(--fg); color: var(--ink); border-color: var(--fg); }
.lp-models [aria-checked="true"] img { background: rgba(0,0,0,.06); }
.is-landing .sim__machine { height: var(--mh, min(72svh, 700px)); transition: height .5s var(--ease); }
.is-landing .sim__machine img { transition: opacity .3s; }
.sim__display[hidden] { display: none !important; }
.sim__slot--coin { border-radius: 50%; }
.sim__slot--coin i { border-radius: 50%; }

.lp-coins { margin-top: .9rem; max-width: 420px; }
.lp-coins__row { display: flex; align-items: center; gap: .55rem; }
.lp-coins__extra { margin-top: .6rem; padding-left: .2rem; }
.lp-coin { --d: 58px; position: relative; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; gap: 1px; width: var(--d); height: var(--d); flex: none; padding: 0; border: 0; border-radius: 50%; color: #3b2c08; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 7px 14px -6px rgba(0,0,0,.7), inset 0 0 0 1px rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.35); transition: transform .35s var(--ease); z-index: 2; }
.lp-coin:hover { transform: translateY(-4px) rotate(-6deg); }
.lp-coin b { font-size: 1.15rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.lp-coin i { font-style: normal; font-weight: 700; font-size: .72rem; opacity: .8; }
.lp-coin--2e { background: radial-gradient(circle, #e7c76a 0 54%, #8f7a3a 55% 57%, #d7dbdf 58% 100%); }
.lp-coin--1e { --d: 54px; background: radial-gradient(circle, #d9dde0 0 54%, #7b7f84 55% 57%, #e2c25f 58% 100%); }
.lp-coin--gold { --d: 52px; background: radial-gradient(circle at 34% 30%, #f6df8e, #caa13a 68%, #a8822a); }
.lp-coin--copper { color: #fff3e6; background: radial-gradient(circle at 34% 30%, #eaa778, #b4612f 68%, #8d4520); }
.lp-coin--s { --d: 48px; } .lp-coin--xs { --d: 42px; }
.lp-coin.is-drag { position: fixed; z-index: 500; margin: 0; cursor: grabbing; transition: none; pointer-events: none; box-shadow: 0 24px 40px -10px #000; }
.lp-coins__more { display: grid; place-items: center; width: 40px; height: 40px; flex: none; margin-left: .1rem; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--fg-2); transition: background .3s, color .3s; }
.lp-coins__more svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.lp-coins__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.lp-coins__more:hover { background: var(--fg); color: var(--ink); }

@media (max-width: 820px) {
  .lp-models { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .lp-models::-webkit-scrollbar { display: none; }
  .lp-models button { flex: none; min-height: 46px; font-size: .86rem; padding-right: .9rem; }
  .lp-models img { width: 36px; height: 36px; }
  .is-landing .sim__machine { height: var(--mhm, min(46svh, 380px)); }
  .lp-coins { margin-top: .55rem; max-width: none; }
  .lp-coins__row { gap: .4rem; }
  .lp-coin { --d: 46px; } .lp-coin--1e { --d: 43px; } .lp-coin--gold { --d: 42px; } .lp-coin--s { --d: 39px; } .lp-coin--xs { --d: 35px; }
  .lp-coin b { font-size: .95rem; } .lp-coin i { font-size: .62rem; }
  .lp-coins__more { width: 36px; height: 36px; }
}
.is-landing .sim__machine { max-width: 100%; }
/* Display verticale (ECO, PLUS): icona sopra, testo centrato */
.sim__display.is-portrait .scr__main { grid-template-columns: 1fr; grid-template-rows: auto auto auto; justify-items: center; align-content: center; gap: 14px; padding: 0 16px; text-align: center; }
.sim__display.is-portrait .scr__ico { grid-row: auto; width: 84px; height: 84px; }
.sim__display.is-portrait .scr__msg { align-self: auto; font-size: 22px; }
.sim__display.is-portrait .scr__amt { align-self: auto; font-size: 48px; }
.sim__display.is-portrait .scr__prog { margin-bottom: 30px; }

/* ---------- Settori: prodotti di riferimento ---------- */
.sect__prods { display: flex; flex-wrap: wrap; gap: .35rem; max-width: 46ch; margin-top: .5rem; opacity: 0; transform: translateY(10px); transition: opacity .5s .3s, transform .6s .3s var(--ease); }
.sect__prods span { padding: .3rem .65rem; border: 1px solid rgba(44,240,44,.45); border-radius: 999px; background: rgba(11,12,16,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 500 .74rem/1.3 var(--f-m); color: var(--fg); white-space: nowrap; }
.sect__p:not(.is-on) .sect__prods { display: none; }
.sect__p.is-on .sect__prods { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .sect__p.is-on { min-height: 340px; }
  .sect__prods span { font-size: .68rem; padding: .25rem .55rem; white-space: normal; }
}
