/* =========================================================
   Landing Confident X – Dental Leader
   Tutte le regole sono confinate dentro .lp-cx per non interferire con il sito.
   ========================================================= */

.lp-cx {
  --lp-blue: #0D5AA7;
  --lp-navy: #1C3A66;
  --lp-text: #1F2733;
  --lp-body: #3A4452;
  --lp-muted: #5B6472;
  --lp-lime: #CAD400;
  --lp-lime-bg: #F3F6C8;
  --lp-sky: #EEF3F9;
  --lp-grey: #F6F7F9;
  --lp-border: #D9DDE3;
  --lp-line: #E4E7EC;
  --lp-radius: 12px;

  color: var(--lp-text);
  font-family: Roboto, Arial, Helvetica, sans-serif; /* rimuovere se il sito imposta già Roboto */
  font-size: 17px;
  line-height: 1.55;
  background: #FFFFFF;
}
.lp-cx *, .lp-cx *::before, .lp-cx *::after { box-sizing: border-box; }
.lp-cx img { max-width: 100%; height: auto; display: block; }
.lp-cx :where(p) { margin: 0; } /* :where = specificità bassa, le classi sotto la sovrascrivono */
.lp-cx :where(a) { color: var(--lp-blue); }
.lp-cx :where(a):hover { color: var(--lp-navy); }
.lp-cx a:focus-visible, .lp-cx summary:focus-visible { outline: 3px solid var(--lp-lime); outline-offset: 2px; }

/* ---------- Layout ---------- */
.lp-cx-wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.lp-cx-wrap--narrow { max-width: 880px; }
.lp-cx-section { padding-top: 56px; padding-bottom: 56px; }
.lp-cx-section--bottom { padding-bottom: 56px; }
.lp-cx-stack { display: flex; flex-direction: column; gap: 28px; }
.lp-cx-band { background: var(--lp-grey); }
.lp-cx-band > .lp-cx-wrap { padding-top: 56px; padding-bottom: 56px; }
.lp-cx-grid { display: grid; gap: 16px; }
.lp-cx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Titoli ---------- */
.lp-cx-head { display: flex; flex-direction: column; gap: 10px; }
.lp-cx-head--narrow { max-width: 780px; }
.lp-cx-head p { color: var(--lp-body); }
.lp-cx-h2 { margin: 0; font-weight: 900; font-size: 34px; line-height: 1.15; color: var(--lp-navy); }
.lp-cx-head .lp-cx-h2::after,
.lp-cx-demo__text .lp-cx-h2::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 10px;
  background: var(--lp-lime); border-radius: 2px;
}
.lp-cx-h2--sm { font-size: 26px; line-height: 1.2; }
.lp-cx-h2--plain { font-size: 32px; }

/* ---------- Pulsanti ---------- */
.lp-cx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 13px 24px; border-radius: 4px;
  font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid var(--lp-blue);
}
.lp-cx .lp-cx-btn--primary { background: var(--lp-blue); color: #FFFFFF; }
.lp-cx .lp-cx-btn--primary:hover { background: var(--lp-navy); border-color: var(--lp-navy); color: #FFFFFF; }
.lp-cx .lp-cx-btn--outline { background: #FFFFFF; color: var(--lp-blue); }
.lp-cx .lp-cx-btn--outline:hover { background: var(--lp-sky); color: var(--lp-navy); }
.lp-cx .lp-cx-btn--white { background: #FFFFFF; color: var(--lp-navy); border-color: #FFFFFF; }
.lp-cx .lp-cx-btn--white:hover { background: var(--lp-lime); border-color: var(--lp-lime); color: var(--lp-navy); }

/* ---------- 1. Hero ---------- */
.lp-cx-hero-section { padding-top: 24px; }
.lp-cx-hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center;
  background: var(--lp-sky); border-radius: var(--lp-radius); padding: 40px 40px 40px 48px; overflow: hidden;
}
.lp-cx-hero__text { display: flex; flex-direction: column; gap: 18px; }
.lp-cx-hero__logo { width: 190px; }
.lp-cx-hero__title { margin: 0; font-weight: 900; font-size: 42px; line-height: 1.1; color: var(--lp-navy); }
.lp-cx-hero__lead { font-size: 18px; color: var(--lp-body); }
.lp-cx-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.lp-cx-hero__checks { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--lp-body); }
.lp-cx-hero__checks li::before { content: "✓ "; }
.lp-cx-hero__img { width: 100%; border-radius: var(--lp-radius); box-shadow: 0 18px 40px rgba(28, 58, 102, 0.18); }

/* Barra offerta di lancio */
.lp-cx-promo {
  position: relative; overflow: hidden; margin-top: 14px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px;
  padding: 26px 36px; border-radius: var(--lp-radius);
  background: linear-gradient(110deg, var(--lp-navy) 0%, var(--lp-blue) 100%);
  color: #FFFFFF; text-decoration: none; box-shadow: 0 14px 32px rgba(28, 58, 102, 0.25);
}
.lp-cx .lp-cx-promo, .lp-cx .lp-cx-promo:hover { color: #FFFFFF; }
.lp-cx-promo::before {
  content: ""; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px;
  border-radius: 50%; border: 36px solid rgba(202, 212, 0, 0.22);
}
.lp-cx-promo::after {
  content: ""; position: absolute; left: 150px; bottom: -60px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.06);
}
.lp-cx-promo > * { position: relative; }
.lp-cx-promo__pct { font-weight: 900; font-size: 72px; line-height: 0.9; color: var(--lp-lime); letter-spacing: -0.03em; }
.lp-cx-promo__text { display: flex; flex-direction: column; gap: 6px; }
.lp-cx-promo__kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lp-lime); }
.lp-cx-promo__title { font-size: 25px; font-weight: 900; line-height: 1.15; }
.lp-cx-promo__sub { font-size: 15px; color: #DCE4EF; }
.lp-cx-promo__side { display: flex; flex-direction: column; gap: 10px; }
.lp-cx-promo__date { text-align: center; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 20px; padding: 5px 14px; font-size: 14px; font-weight: 700; }
.lp-cx-promo__btn { text-align: center; background: #FFFFFF; color: var(--lp-navy); border-radius: 4px; padding: 12px 22px; font-weight: 700; white-space: nowrap; }
.lp-cx-promo:hover .lp-cx-promo__btn { background: var(--lp-lime); }

/* ---------- 2. Funzioni ---------- */
.lp-cx-band#funzioni { margin-top: 40px; }
.lp-cx-feature { background: #FFFFFF; border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.lp-cx-feature h3 { margin: 0; font-size: 18px; line-height: 1.3; color: var(--lp-navy); }
.lp-cx-feature p { font-size: 15px; color: var(--lp-body); }
.lp-cx-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #FFFFFF; background: var(--lp-blue); padding: 2px 6px; border-radius: 3px; vertical-align: middle; }
.lp-cx-shot { margin: 0; }
.lp-cx-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; border-radius: 10px; }
.lp-cx-shot--lefttop img { object-position: left top; }
.lp-cx-shot--top img { object-position: center 25%; }
.lp-cx-shot figcaption { font-size: 14px; color: var(--lp-muted); margin-top: 8px; }

/* ---------- 3. Bundle ---------- */
/* Le 3 card condividono le righe (subgrid): titoli, prezzi, liste e pulsanti restano allineati */
.lp-cx-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 0; }
.lp-cx-plan {
  display: grid; grid-row: span 9; grid-template-rows: subgrid; row-gap: 0;
  background: #FFFFFF; border: 1px solid var(--lp-border); border-radius: var(--lp-radius); padding: 28px;
}
.lp-cx-plan--featured { border: 2px solid var(--lp-blue); padding: 27px; }
.lp-cx-plan__badge:not(:empty) { padding-bottom: 8px; }
.lp-cx-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lp-navy); background: var(--lp-lime); padding: 4px 10px; border-radius: 3px; }
.lp-cx-plan__name { margin: 0; font-weight: 900; font-size: 24px; color: var(--lp-navy); }
.lp-cx-plan__desc { margin-top: 4px; color: var(--lp-body); font-size: 15px; }
.lp-cx-plan__promo { margin-top: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--lp-navy); }
.lp-cx-pill { background: var(--lp-lime); color: var(--lp-navy); font-weight: 900; font-size: 15px; padding: 4px 8px; border-radius: 4px; }
.lp-cx-prices { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-cx-price { border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.lp-cx-price--y1 { background: var(--lp-sky); }
.lp-cx-price--y2 { background: var(--lp-lime-bg); }
.lp-cx-price__label { font-size: 13px; font-weight: 700; color: var(--lp-navy); }
.lp-cx-price__old { font-size: 13px; color: var(--lp-muted); }
.lp-cx-price__value { font-weight: 900; font-size: 24px; line-height: 1.1; color: var(--lp-navy); }
.lp-cx-price--y1 .lp-cx-price__value { color: var(--lp-blue); }
.lp-cx-price__note { font-size: 13px; color: var(--lp-body); }
.lp-cx-billing { margin-top: 12px; border: 2px solid var(--lp-navy); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; color: var(--lp-navy); }
.lp-cx-billing__title { font-size: 14px; font-weight: 700; }
.lp-cx-billing__row { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; }
.lp-cx-billing__row + .lp-cx-billing__row { border-top: 1px solid var(--lp-border); padding-top: 6px; }
.lp-cx-plan__small { margin-top: 12px; font-size: 13px; color: var(--lp-muted); }
.lp-cx-plan__more { margin-top: 16px; }
.lp-cx-plan__features { display: flex; flex-direction: column; gap: 18px; }
.lp-cx-plan__cta { margin-top: 20px; align-self: end; width: 100%; padding: 12px 18px; }
/* Pulsante "Vedi cosa include": visibile solo su tablet e mobile */
.lp-cx-more-toggle { display: none; }
.lp-cx-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--lp-blue); margin-bottom: 6px; }
.lp-cx-label--dark { color: var(--lp-navy); }
.lp-cx-sublabel { margin: 14px 0 6px; font-size: 15px; font-weight: 600; color: var(--lp-navy); }
.lp-cx-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: 15px; color: var(--lp-body); }
.lp-cx-extra { background: var(--lp-lime-bg); border-radius: 8px; padding: 12px 14px; }
.lp-cx-extra .lp-cx-list { color: var(--lp-navy); }
.lp-cx-note { font-size: 14px; color: var(--lp-body); }

/* Fallback per browser senza subgrid: card in colonna, pulsante in fondo */
@supports not (grid-template-rows: subgrid) {
  .lp-cx-plans { align-items: stretch; }
  .lp-cx-plan { display: flex; flex-direction: column; grid-row: auto; }
  .lp-cx-plan__features { flex-grow: 1; }
}

/* ---------- 4. Come funziona ---------- */
.lp-cx-steps { margin: 16px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lp-cx-step { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--lp-border); border-radius: 10px; padding: 18px; }
.lp-cx-step__num { width: 36px; height: 36px; border-radius: 18px; background: var(--lp-blue); color: #FFFFFF; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lp-cx-step__title { font-weight: 700; color: var(--lp-navy); }
.lp-cx-step__title + p { font-size: 15px; color: var(--lp-body); }

/* ---------- 5. Jarvis ---------- */
.lp-cx-jarvis { background: var(--lp-navy); color: #FFFFFF; border-radius: 14px; padding: 36px 44px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: center; }
.lp-cx-jarvis__text { display: flex; flex-direction: column; gap: 12px; }
.lp-cx-jarvis__text > p:last-child { color: #DCE4EF; }
.lp-cx-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lp-lime); }
.lp-cx-jarvis__title { margin: 0; font-weight: 900; font-size: 30px; line-height: 1.15; color: #FFFFFF; }
.lp-cx-jarvis__cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.lp-cx-jarvis__claim { font-weight: 900; font-size: 22px; line-height: 1.2; }
.lp-cx-jarvis__webinar { margin-top: 8px; padding-top: 14px; border-top: 1px solid #3E5A85; align-self: stretch; font-size: 14px; color: #DCE4EF; }
.lp-cx .lp-cx-jarvis__webinar a { color: #FFFFFF; font-weight: 700; }

/* ---------- 6. Webinar ---------- */
.lp-cx-webinar__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.lp-cx-webinar__head p { font-size: 14px; color: var(--lp-muted); }
.lp-cx-webinars { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.lp-cx-webinar { text-decoration: none; border: 1px solid var(--lp-border); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: #FFFFFF; }
.lp-cx-webinar:hover { border-color: var(--lp-blue); }
.lp-cx-webinar__date { font-size: 13px; font-weight: 700; color: var(--lp-blue); }
.lp-cx-webinar__title { font-weight: 700; color: var(--lp-navy); line-height: 1.35; }
.lp-cx-webinar__go { font-size: 14px; color: var(--lp-blue); margin-top: auto; }

/* ---------- 7. Demo ---------- */
.lp-cx-demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.lp-cx-demo__text { display: flex; flex-direction: column; gap: 16px; }
.lp-cx-demo__text > p { color: var(--lp-body); }
.lp-cx-contacts { margin-top: 8px; background: var(--lp-sky); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.lp-cx-contacts__title { font-weight: 700; color: var(--lp-navy); }
.lp-cx .lp-cx-contacts a { text-decoration: none; display: flex; align-items: center; gap: 12px; color: var(--lp-text); min-height: 44px; }
.lp-cx-contacts svg { color: var(--lp-blue); flex-shrink: 0; }
.lp-cx-demo__calendar { border: 1px solid var(--lp-border); border-radius: var(--lp-radius); padding: 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; background: #FFFFFF; }
.lp-cx-demo__icon { color: var(--lp-blue); }
.lp-cx-demo__cal-title { font-weight: 900; font-size: 22px; line-height: 1.2; color: var(--lp-navy); }
.lp-cx-demo__cal-text { max-width: 420px; color: var(--lp-body); }
.lp-cx-demo__btn { margin: 6px 0 8px; min-width: 260px; }
.lp-cx-demo__calendar .lp-cx-small { max-width: 460px; }
.lp-cx-small { font-size: 13px; color: var(--lp-muted); }

/* ---------- 8. FAQ ---------- */
.lp-cx-faq { background: #FFFFFF; border-radius: 10px; padding: 0 24px; }
.lp-cx-faq details { padding: 16px 0; border-bottom: 1px solid var(--lp-line); }
.lp-cx-faq details:last-child { border-bottom: 0; }
.lp-cx-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--lp-navy); }
.lp-cx-faq details p { margin-top: 10px; color: var(--lp-body); }

/* Elementi scaduti (gestiti da js/landing-confidentx.js) */
.lp-cx [hidden] { display: none !important; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .lp-cx-hero { grid-template-columns: 1fr; padding: 32px; }
  .lp-cx-hero__img { max-width: 640px; }
  .lp-cx-promo { grid-template-columns: auto minmax(0, 1fr); }
  .lp-cx-promo__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .lp-cx-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-cx-grid--shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* le 3 schermate restano affiancate su tablet */
  .lp-cx-plans { grid-template-columns: 1fr; row-gap: 20px; max-width: 560px; margin: 0 auto; width: 100%; }
  .lp-cx-plan { display: flex; flex-direction: column; grid-row: auto; }
  .lp-cx-plan__badge:empty { display: none; }
  .lp-cx-steps { grid-template-columns: 1fr; }
  .lp-cx-jarvis { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .lp-cx-demo { grid-template-columns: 1fr; gap: 32px; }
  .lp-cx-webinar__head { flex-direction: column; gap: 6px; }

  /* Bundle: funzioni chiuse, si aprono con "Vedi cosa include" (solo se JS attivo) */
  .lp-cx-more-toggle {
    display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px;
    padding: 10px 14px; border: 1px solid var(--lp-border); border-radius: 6px; background: var(--lp-sky);
    font: inherit; font-size: 15px; font-weight: 700; color: var(--lp-blue); cursor: pointer; text-align: left;
  }
  .lp-cx-more-toggle::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .lp-cx-more-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-3px); }
  .lp-cx-more-toggle:hover { background: #E2EAF4; }
  .lp-cx--js .lp-cx-plan__features { display: none; }
  .lp-cx--js .lp-cx-plan__more.is-open .lp-cx-plan__features { display: flex; margin-top: 16px; }
}

@media (max-width: 640px) {
  .lp-cx { font-size: 16px; }
  .lp-cx-wrap { padding-left: 16px; padding-right: 16px; }
  .lp-cx-section, .lp-cx-band > .lp-cx-wrap { padding-top: 40px; padding-bottom: 40px; }
  .lp-cx-section--bottom { padding-bottom: 40px; }
  .lp-cx-hero-section { padding-top: 16px; }
  .lp-cx-hero { padding: 24px 20px; gap: 24px; }
  .lp-cx-hero__title { font-size: 30px; }
  .lp-cx-hero__lead { font-size: 16px; }
  .lp-cx-hero__ctas .lp-cx-btn { width: 100%; }
  .lp-cx-promo { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .lp-cx-promo__pct { font-size: 56px; }
  .lp-cx-promo__title { font-size: 21px; }
  .lp-cx-promo__side { flex-direction: column; align-items: stretch; }
  .lp-cx-band#funzioni { margin-top: 32px; }
  .lp-cx-h2 { font-size: 27px; }
  .lp-cx-h2--sm, .lp-cx-h2--plain { font-size: 23px; }
  .lp-cx-grid--3 { grid-template-columns: 1fr; }
  /* Schermate: striscia scorrevole di lato, la successiva si intravede */
  .lp-cx-grid--shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -16px; padding-right: 16px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .lp-cx-grid--shots .lp-cx-shot { flex: 0 0 78%; scroll-snap-align: start; }
  .lp-cx-plan { padding: 22px 18px; }
  .lp-cx-plan--featured { padding: 21px 17px; }
  .lp-cx-jarvis { padding: 24px 20px; }
  .lp-cx-jarvis__title { font-size: 24px; }
  .lp-cx-jarvis__cta .lp-cx-btn { width: 100%; }
  .lp-cx-webinars { grid-template-columns: 1fr; }
  .lp-cx-demo__calendar { padding: 28px 20px; }
  .lp-cx-demo__btn { width: 100%; min-width: 0; }
  .lp-cx-faq { padding: 0 16px; }
}
