/* ==========================================================================
   BrewCalc · home del sito (mockup in documentazione/mockup-landing/)
   Caricato solo da index.php ($page['styles']): solo il layout della home.
   Font, colori, header, footer, pulsanti e FAQ sono comuni a tutto il sito in site.css
   ========================================================================== */

.site-home {
  --lp-navy: var(--bc-navy);
  --lp-navy-2: var(--bc-navy-2);
  --lp-navy-3: var(--bc-navy-3);
  --lp-line-dark: var(--bc-line-dark);
  --lp-cream: var(--bc-cream);
  --lp-cream-line: var(--bc-cream-line);
  --lp-ink: var(--bc-ink);
  --lp-muted: var(--bc-muted);
  --lp-on-dark: var(--bc-on-dark);
  --lp-on-dark-2: var(--bc-on-dark-2);
  --lp-on-dark-3: var(--bc-on-dark-3);
  --lp-amber: var(--bc-amber);
  --lp-amber-hover: var(--bc-amber-hover);
  --lp-amber-text: var(--bc-amber-text);
  --lp-amber-soft: var(--bc-amber-subtle);
  --lp-gold: var(--bc-gold);
  --lp-display: var(--bc-display);
  overflow-x: hidden;
}

/* Elementi comuni ------------------------------------------------------------ */
.lp-h1, .lp-h2, .lp-path-title, .lp-value h3, .lp-cta h2, .lp-facts-grid strong, .lp-step-num { font-family: var(--lp-display); }
.lp-h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; color: var(--lp-navy); }
.lp-h2--sm { font-size: clamp(28px, 3.2vw, 40px); }
.lp-kicker { margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-amber-text); }
.lp-lead { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: var(--lp-muted); }
.lp-intro { max-width: 720px; }
.lp-intro--center { margin: 0 auto; text-align: center; }

.lp-section { padding: 104px 0; }
.lp-section--cream { background: var(--lp-cream); }
.lp-section--dark { background: var(--lp-navy); }
.lp-section--dark .lp-h2 { color: #fff; }
.lp-section--dark .lp-kicker { color: var(--lp-amber); }
.lp-section--dark .lp-lead { color: var(--lp-on-dark); }

.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 22px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; transition: background-color .2s ease, border-color .2s ease; }
.lp-btn--lg { min-height: 52px; padding: 16px 26px; font-size: 17px; }
.site-home .lp-btn--amber { background: var(--lp-amber); color: #1A1206; }
.site-home .lp-btn--amber:hover { background: var(--lp-amber-hover); color: #1A1206; }
.site-home .lp-btn--ghost { background: transparent; color: #fff; border-color: var(--lp-line-dark); }
.site-home .lp-btn--ghost:hover { background: var(--lp-navy-3); color: #fff; }
.site-home .lp-btn--navy { background: var(--lp-navy); color: #fff; }
.site-home .lp-btn--navy:hover { background: var(--lp-navy-3); color: #fff; }

.lp-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 0; font-size: 16px; font-weight: 600; color: var(--lp-amber-text); }
.lp-link:hover { color: #6B3F00; }

.lp-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--lp-amber-soft); color: var(--lp-amber-text); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.lp-icon--dark { width: 44px; height: 44px; background: var(--lp-navy-3); color: var(--lp-amber); font-size: 22px; }

.lp-frame { background: var(--lp-cream); border-radius: 20px; padding: 24px; }
.lp-frame img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 40px rgba(14, 24, 40, .12); }
.lp-frame--white { background: #fff; border: 1px solid var(--lp-cream-line); padding: 20px; }
.lp-frame--white img { box-shadow: none; }

.lp-phone { background: #05090F; border: 1px solid #2A3A52; }
.lp-phone img { display: block; width: 100%; object-fit: cover; object-position: top; }

/* Hero ---------------------------------------------------------------------- */
.lp-hero { background: var(--lp-navy); padding-top: calc(var(--bc-header-h) + 64px); position: relative; z-index: 1; }
.lp-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.lp-hero-text { flex: 1 1 440px; min-width: 0; padding-bottom: 72px; }
.lp-pill { margin: 0 0 20px; display: inline-flex; align-items: center; gap: 10px; background: var(--lp-navy-2); color: var(--lp-gold); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.lp-h1 { margin: 0; font-weight: 800; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -0.02em; color: #fff; }
.lp-h1 span { color: var(--lp-amber); }
.lp-hero-lead { margin: 24px 0 0; font-size: 19px; line-height: 1.6; color: var(--lp-on-dark); max-width: 540px; }
.lp-hero-note { margin: 18px 0 0; font-size: 14px; color: var(--lp-on-dark-3); }
.lp-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; align-items: center; }
.lp-stores-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--lp-on-dark-3); }
.lp-store { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--lp-line-dark); border-radius: 10px; padding: 8px 14px; color: #fff; font-size: 14px; font-weight: 600; }
.lp-store i { font-size: 20px; }

.lp-hero-visual { flex: 1 1 560px; min-width: 0; position: relative; align-self: flex-end; }
.lp-browser { background: var(--lp-navy-2); border-radius: 16px 16px 0 0; padding: 12px 12px 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.lp-browser-dots { display: flex; gap: 7px; padding: 2px 4px 12px; }
.lp-browser-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--lp-line-dark); }
.lp-browser img { display: block; width: 100%; height: 420px; object-fit: cover; object-position: left top; border-radius: 8px 8px 0 0; }
.lp-phone--hero { position: absolute; left: -36px; bottom: -40px; width: 210px; border-radius: 34px; padding: 9px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.lp-phone--hero img { height: 400px; border-radius: 26px; }

/* Numeri e bivio ------------------------------------------------------------- */
.lp-facts { background: var(--lp-cream); padding: 72px 0 40px; }
.lp-facts-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.lp-facts-grid li { display: flex; flex-direction: column; gap: 4px; }
.lp-facts-grid strong { font-size: 34px; font-weight: 800; color: var(--lp-navy); line-height: 1.2; }
.lp-facts-grid span { font-size: 15px; color: var(--lp-muted); }

.lp-paths { background: var(--lp-cream); padding: 40px 0 96px; }
.lp-paths-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.lp-path { background: #fff; border: 1px solid var(--lp-cream-line); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.lp-path > p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--lp-muted); }
.lp-tag { align-self: flex-start; background: var(--lp-amber-soft); color: var(--lp-amber-text); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.lp-path-title { margin: 0; font-size: 28px; font-weight: 800; color: var(--lp-navy); }
.lp-checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--lp-ink); }
.lp-checks li { display: flex; gap: 10px; align-items: flex-start; }
.lp-checks i { flex: none; font-size: 20px; line-height: 1.2; color: #C77700; }
.lp-path .lp-link { margin-top: auto; align-self: flex-start; }
.lp-path--dark { background: var(--lp-navy); border-color: var(--lp-navy); }
.lp-path--dark .lp-tag { background: var(--lp-navy-3); color: var(--lp-gold); }
.lp-path--dark .lp-path-title { color: #fff; }
.lp-path--dark > p { color: var(--lp-on-dark); }
.lp-path--dark .lp-checks { color: #E6EBF2; }
.lp-path--dark .lp-checks i { color: var(--lp-amber); }
.site-home .lp-path--dark .lp-link { color: var(--lp-gold); }
.site-home .lp-path--dark .lp-link:hover { color: #fff; }

/* Piattaforma web ------------------------------------------------------------ */
.lp-split { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 56px; align-items: center; }
.lp-split .lp-frame { flex: 1 1 560px; min-width: 0; }
.lp-values { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.lp-value { display: flex; gap: 16px; }
.lp-value h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: var(--lp-navy); }
.lp-value p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--lp-muted); }

.lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 72px; }
.lp-card { display: block; border: 1px solid var(--lp-cream-line); border-radius: 16px; padding: 24px; text-decoration: none; }
.lp-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--lp-navy); }
.lp-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--lp-muted); }
.lp-card--white { background: #fff; border-radius: 14px; padding: 20px; transition: border-color .2s ease, transform .2s ease; }
.lp-card--white h3 { font-size: 16px; margin-bottom: 6px; }
.lp-card--white p { font-size: 14px; line-height: 1.5; }
a.lp-card--white:hover { border-color: var(--lp-amber); transform: translateY(-2px); }

/* App ------------------------------------------------------------------------ */
.lp-app { overflow: hidden; }
.lp-app-row { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.lp-app-text { flex: 1 1 440px; min-width: 0; }
.lp-app-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 32px; margin-top: 44px; }
.lp-app-feature { display: flex; flex-direction: column; gap: 10px; }
.lp-app-feature h3 { margin: 0; font-size: 18px; font-weight: 600; color: #fff; }
.lp-app-feature p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--lp-on-dark-2); }
.lp-app .lp-actions { margin-top: 44px; }
.lp-app-visual { flex: 1 1 460px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; position: relative; min-height: 600px; }
.lp-phone--app { width: 270px; border-radius: 42px; padding: 11px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); position: relative; z-index: 2; }
.lp-phone--app img { height: 560px; border-radius: 32px; }
.lp-notification { width: 232px; background: var(--lp-cream); border-radius: 22px; padding: 22px; margin-left: -36px; margin-bottom: 72px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); position: relative; z-index: 3; display: flex; flex-direction: column; gap: 14px; }
.lp-notification-head { display: flex; align-items: center; gap: 10px; }
.lp-notification-head img { border-radius: 8px; background: #fff; }
.lp-notification-head div { display: flex; flex-direction: column; }
.lp-notification-head strong { font-size: 13px; font-weight: 700; color: var(--lp-navy); }
.lp-notification-head span { font-size: 12px; color: #5A6578; }
.lp-notification p { margin: 0; font-size: 14px; color: #3B4656; line-height: 1.5; }
.lp-notification .lp-notification-title { font-size: 15px; font-weight: 600; color: var(--lp-navy); line-height: 1.4; }

/* Aziende -------------------------------------------------------------------- */
.lp-head-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.lp-head-row .lp-intro { max-width: 680px; }
.lp-biz { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 48px; align-items: stretch; }
.lp-biz .lp-frame { flex: 1 1 520px; min-width: 0; }
.lp-biz-grid { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; align-content: start; }

/* Come funziona -------------------------------------------------------------- */
.lp-steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.lp-steps li { display: flex; flex-direction: column; gap: 12px; }
.lp-step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--lp-amber); color: #1A1206; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.lp-steps h3 { margin: 0; font-size: 20px; font-weight: 600; color: var(--lp-navy); }
.lp-steps p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--lp-muted); }

/* Piani: card generate da includes/plans-cards.php, qui solo il restyling ------ */
.lp-plans { margin-top: 56px; }
.lp-plans .billing-toggle .btn-check:checked + .btn .badge { color: var(--lp-navy) !important; }
.lp-plans .plan-card { border-radius: 20px !important; border: 1px solid var(--lp-cream-line) !important; padding: 32px !important; box-shadow: none; }
.lp-plans .plan-card h3 { font-family: var(--lp-display); font-size: 22px !important; font-weight: 800 !important; color: var(--lp-navy); }
.lp-plans .plan-price .fw-bolder { font-family: var(--lp-display); }
.lp-plans .plan-card--free .plan-price .text-primary,
.lp-plans .plan-card--homebrewer .plan-price .text-primary { color: var(--lp-navy) !important; }
.lp-plans .plan-card--free .btn-outline-primary { --bs-btn-color: var(--lp-navy); --bs-btn-border-color: #C9C1B0; --bs-btn-hover-bg: var(--lp-navy); --bs-btn-hover-border-color: var(--lp-navy); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--lp-navy); --bs-btn-active-color: #fff; }
.lp-plans .plan-card--homebrewer { border: 2px solid var(--lp-amber) !important; }
.lp-plans .plan-card--business { background: var(--lp-navy); border-color: var(--lp-navy) !important; color: #E6EBF2; }
.lp-plans .plan-card--business h3,
.lp-plans .plan-card--business .text-dark { color: #fff !important; }
.lp-plans .plan-card--business .text-muted { color: var(--lp-on-dark-2) !important; }
.lp-plans .plan-card--business .plan-price .text-primary { color: #fff !important; }
.lp-plans .plan-card--business .plan-price-alt { border-color: var(--lp-navy-3) !important; }
.lp-plans .plan-card--business h3 .bg-primary-subtle { background: var(--lp-navy-3) !important; color: var(--lp-gold) !important; }
.lp-plans .plan-card--business .text-success { color: var(--lp-amber) !important; }
.lp-plans .plan-card.plan-card--business .btn.btn-primary { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-color: var(--lp-navy); --bs-btn-hover-bg: var(--lp-cream); --bs-btn-hover-border-color: var(--lp-cream); --bs-btn-hover-color: var(--lp-navy); --bs-btn-active-bg: var(--lp-cream); --bs-btn-active-color: var(--lp-navy); }
.site-home .lp-plans .plan-card--business a:not(.btn) { color: var(--lp-gold); }
.lp-plans .plan-card .btn { border-radius: 12px !important; min-height: 48px; font-weight: 600; }
.lp-plans .plans-compare-toggle { color: var(--lp-amber-text); }

/* FAQ ------------------------------------------------------------------------ */
.lp-faq { max-width: 860px; margin: 0 auto; }
.lp-faq .faq-accordion { margin-top: 48px; }

/* CTA finale -------------------------------------------------------- */
.lp-cta-wrap { padding: 0 0 96px; }
.lp-cta { background: var(--lp-amber); border-radius: 28px; padding: clamp(36px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.lp-cta-text { flex: 1 1 480px; min-width: 0; display: flex; gap: 24px; align-items: center; }
.lp-cta-text img { flex: none; width: 80px; height: 80px; background: #fff; border-radius: 20px; padding: 6px; }
.lp-cta h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; font-weight: 800; color: #1A1206; }
.lp-cta p { margin: 10px 0 0; font-size: 17px; color: #3D2A08; }



/* Smartphone e tablet -------------------------------------------------------- */
@media (max-width: 991.98px) {
  .lp-section { padding: 72px 0; }
  .lp-hero { padding-top: calc(var(--bc-header-h) + 40px); }
  .lp-hero-text { padding-bottom: 8px; }
  .lp-app-visual { min-height: 0; }
}
@media (max-width: 700px) {
  .lp-phone--hero { display: none; }
  .lp-browser img { height: 260px; }
  .lp-path { padding: 28px 24px; }
  .lp-cta-text { flex-direction: column; align-items: flex-start; }
  .lp-notification { margin-left: -90px; margin-bottom: 40px; width: 200px; padding: 18px; }
  .lp-phone--app { width: 230px; }
  .lp-phone--app img { height: 470px; }
  .lp-hero-row, .lp-split, .lp-app-row { gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-btn, .lp-card--white { transition: none; }
  a.lp-card--white:hover { transform: none; }
}
