:root {
  /* --- COLOR PALETTE --- */
  --ln-color-primary: #7a1b54;
  --ln-color-primary-dark: #5a123f;
  --ln-color-secondary: #2c2c2c;
  --ln-color-accent: #f9f9f9;
  --ln-color-gold: #c5a059;

  /* --- TEXT COLORS --- */
  --ln-text-main: #4a4a4a;
  --ln-text-dark: #1a1a1a;
  --ln-text-white: #ffffff;
  --ln-text-muted: #6c757d;

  /* --- TYPOGRAPHY --- */
  /* --ln-font-heading: "Playfair Display", serif;*/
  --ln-font-heading: "Jost", serif;
  --ln-font-body: "Jost", sans-serif;

  /* Scale (Mobile Base) */
  --ln-h1-size: 3rem;
  --ln-h2-size: 2rem;
  --ln-h3-size: 1.75rem;
  --ln-h4-size: 1.25rem;
  --ln-body-size: 1rem;

  /* --- SPACING & LAYOUT --- */
  --ln-spacing-section: 80px 0;
  --ln-container-max: 1140px;
  --ln-border-radius: 4px;
  --ln-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --ln-transition: all 0.3s ease;
}

@media (min-width: 992px) {
  :root {
    --ln-h1-size: 4rem;
    --ln-h2-size: 2.4rem;
    --ln-h3-size: 2.2rem;
    --ln-h4-size: 1.5rem;
    --ln-body-size: 1.1rem;
    --ln-spacing-section: 120px 0;
  }
}

/* SCOPED ROOT */
#sapiens-landing-page {
  font-family: var(--ln-font-body);
  font-size: var(--ln-body-size);
  font-weight: 400;
  line-height: 1.8;
  color: var(--ln-text-main);
  background-color: #fff;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* --- TYPOGRAPHY SYSTEM --- */
#sapiens-landing-page h1,
#sapiens-landing-page h2 {
  font-family: var(--ln-font-heading);
  color: var(--ln-text-dark);
  font-weight: 500;
  margin-top: 0;
  line-height: 1.2;
}

#sapiens-landing-page h3,
#sapiens-landing-page h4,
#sapiens-landing-page h5,
#sapiens-landing-page h6 {
  font-family: var(--ln-font-body);
  color: var(--ln-text-dark);
  font-weight: 700;
  margin-top: 0;
  line-height: 1.2;
}

#sapiens-landing-page h1 {
  font-size: var(--ln-h1-size);
}
#sapiens-landing-page h2 {
  font-size: var(--ln-h2-size);
}
#sapiens-landing-page h3 {
  font-size: var(--ln-h3-size);
}
#sapiens-landing-page h4 {
  font-size: var(--ln-h4-size);
  letter-spacing: 0.5px;
}

#sapiens-landing-page p {
  margin-bottom: 1.5rem;
}
#sapiens-landing-page .lead {
  font-size: 1.1rem;
  font-weight: 400;
  /* padding: 0 20px; */
  line-height: 1.3 !important;
}
#sapiens-landing-page {
  font-family: var(--ln-font-body);
  font-size: var(--ln-body-size);
  color: #000;
  font-weight: 400;
  line-height: 1.5;
}
p {
  color: #000;
  font-family: "Jost";
  line-height: 1.5;
}
/* --- UTILITIES & HELPERS --- */
#sapiens-landing-page .ln-text-primary {
  color: var(--ln-color-primary) !important;
}
#sapiens-landing-page .ln-text-gold {
  color: var(--ln-color-gold) !important;
}
#sapiens-landing-page .ln-bg-light {
  background-color: var(--ln-color-accent);
}
#sapiens-landing-page .ln-bg-dark {
  background-color: var(--ln-color-secondary);
  color: var(--ln-text-white);
}
#sapiens-landing-page .ln-section {
  padding: var(--ln-spacing-section);
}

/* --- SECTIONS --- */

/* HERO */
#sapiens-landing-page .ln-hero {
  position: relative;
  padding: 180px 0;
  background-size: cover;
  background-position: center;
  color: var(--ln-text-white);
  text-align: center;
  background-color: var(--ln-color-secondary);
}
#sapiens-landing-page .ln-hero-overlay {
  background: linear-gradient(
    360deg,
    #7a1b54 -4.84%,
    rgba(122, 27, 84, 0) 100%
  );
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
#sapiens-landing-page .ln-hero .container {
  position: relative;
  z-index: 2;
}
#sapiens-landing-page .ln-hero h1 {
  color: var(--ln-text-white);
  /* text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); */
  margin-bottom: 1.5rem;
}
#sapiens-landing-page .ln-hero h2 {
  font-family: var(--ln-font-body);
  font-size: 1.2rem;
  font-weight: 400;
  color: rgb(255 255 255);
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* Hero Info Icons */
#sapiens-landing-page .ln-hero-info {
  margin-bottom: 3rem;
}

#sapiens-landing-page .ln-hero-info-item {
  padding: 0 2rem;
}

#sapiens-landing-page .ln-hero-icon {
  width: 30px;
  /* height: 30px; */
  margin-right: 1rem;
  flex-shrink: 0;
}

#sapiens-landing-page .ln-hero-info-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

#sapiens-landing-page .ln-hero-separator {
  width: 2px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 0 1.5rem;
}

/* SECTION TITLES */
#sapiens-landing-page .ln-section-title {
  text-align: center;
  /* margin-bottom: 3rem; */
  color: #000000;
  position: relative;
  font-weight: 400;
  text-transform: uppercase;
  max-width: 750px;
  margin: 0 auto 4rem;
}
#sapiens-landing-page .ln-section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background-color: #7a1b54;
  margin: 25px auto 0;
}

/* CARDS ("La Nostra Proposta") */
#sapiens-landing-page .ln-card {
  background: #ffffff;
  padding: 3rem 2rem;
  border-radius: var(--ln-border-radius);
  box-shadow: var(--ln-box-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: var(--ln-transition);
  border: 1px solid transparent;
}
#sapiens-landing-page .ln-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(122, 27, 84, 0.15);
}
#sapiens-landing-page .ln-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ln-color-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
  opacity: 0.5;
}
#sapiens-landing-page .ln-card h5 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ln-text-dark);
}
#sapiens-landing-page .ln-card.border-primary {
  border: 2px solid var(--ln-color-primary);
  background: #fff;
}
#sapiens-landing-page .ln-card.border-primary h4 {
  font-size: 1.4rem;
  letter-spacing: 1px;
}

/* TIMELINE NEW DESIGN */
#sapiens-landing-page .ln-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 0;
}

/* Background Track (Gray) - 4px width centered in 90px col */
#sapiens-landing-page .ln-timeline-track {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 43px;
  width: 4px;
  background: rgba(122, 27, 84, 0.1);
  z-index: 0;
  border-radius: 4px;
}

/* Progress Bar (Colored - Animated via JS) */
#sapiens-landing-page .ln-timeline-progress {
  position: absolute;
  top: 0;
  left: 43px;
  width: 4px;
  background: var(--ln-color-primary);
  z-index: 1; /* Above track, below items */
  height: 0%; /* JS will change this */
  border-radius: 4px;
  transition: height 0.1s linear;
  max-height: 100%;
}

#sapiens-landing-page .ln-timeline-item {
  display: flex;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
#sapiens-landing-page .ln-timeline-left {
  flex: 0 0 90px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Horizontally center contents */
  justify-content: flex-start;
  padding-top: 0;
  /* Animation Change: Scale up from 0 (Solid) to hide line behind */
  transform: scale(0);
  opacity: 1;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

/* Circle Number */
#sapiens-landing-page .ln-step-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ln-color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1; /* Consistent line-height for perfect centering */
  font-family: var(
    --ln-font-body
  ); /* Sans-serif per numeri perfettamente centrati */
  box-shadow: 0 0 0 8px #fff;
  /* margin-bottom: 15px; */
  position: relative;
  z-index: 5;
}

/* Ensure Strong Tags are Bold */
#sapiens-landing-page strong,
#sapiens-landing-page b {
  font-weight: 700 !important;
}

/* Ensure Strong Tags are Bold */
#sapiens-landing-page strong,
#sapiens-landing-page b {
  font-weight: 700 !important;
}

/* Label PASSO */
#sapiens-landing-page .ln-step-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--ln-color-primary);
  font-weight: 800;
  letter-spacing: 2px;
  background: #fff;
  padding: 5px 10px;
  z-index: 5;
  position: relative;
}

/* Content Box */
#sapiens-landing-page .ln-timeline-content {
  flex: 1;
  background: #fff;
  padding: 40px;
  margin-left: 30px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border-left: unset;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
#sapiens-landing-page .ln-timeline-item:hover .ln-timeline-content {
  transform: translateY(-5px) scale(1);
  box-shadow: 0 20px 50px rgba(122, 27, 84, 0.1);
}

#sapiens-landing-page .ln-theme-title {
  font-size: 1.6rem;
  color: var(--ln-color-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
#sapiens-landing-page .ln-theme-tag {
  font-size: 1rem;
  font-style: italic; /* Requested change */
  color: var(--ln-color-gold);
  font-weight: 500;
  display: block;
  margin-bottom: 25px;
  font-family: var(--ln-font-heading);
}
#sapiens-landing-page .ln-timeline-body p {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
}

/* Bonus item style */
#sapiens-landing-page .ln-bonus-item .ln-step-circle {
  background: var(--ln-color-gold);
  box-shadow:
    0 0 0 8px #fff,
    0 0 20px rgba(197, 160, 89, 0.4);
}
#sapiens-landing-page .ln-bonus-item .ln-timeline-content {
  border-left-color: var(--ln-color-primary);
  background: linear-gradient(135deg, #fff9f9 0%, #ffffff 100%);
}

#sapiens-landing-page .is-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* --- CUSTOM HEADER & HIDING GLOBAL THEME ELEMENTS --- */

/* Hide Default Theme Header & Footer */
/* Targeted via body class injected by WP for this template or general if scoped */
.header,
.topbar-vino,
footer {
  /*display: none !important;*/
}
footer {
  padding: 50px 0 50px 0;
}

#menu-lab .ln-nav-menu {
  display: flex;
  gap: 15px;
  list-style: none;
  margin-bottom: 0;
}

#menu-lab .ln-nav-menu li a {
  display: inline-block;
  text-transform: uppercase;
  text-decoration: none;
  color: #f4f1ec;
  transition: 0.3s;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 15px;
  font-family: "Jost-500-Medium";
}
/* Custom Landing Navbar */
#ln-navbar {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
}
.header {
  top: 0 !important;
}
#ln-navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#ln-navbar .ln-logo {
  font-family: var(--ln-font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ln-color-primary);
  text-decoration: none;
  letter-spacing: 1px;
}
#ln-navbar .ln-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}
#ln-navbar .ln-nav-link {
  font-family: var(--ln-font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--ln-text-main);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 1.5px;
}
#ln-navbar .ln-nav-link:hover {
  color: var(--ln-color-primary);
}
#ln-navbar .ln-btn-get {
  padding: 10px 25px;
  background: var(--ln-color-primary);
  color: #fff !important;
  /* border-radius: 4px; */
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.3s;
}
#ln-navbar .ln-btn-get:hover {
  background: var(--ln-color-primary-dark);
}

/* Page Separation for Fixed Header */
#sapiens-landing-page {
  /* If the header is fixed, we might need padding-top, 
       but currently .ln-hero handles it with padding. 
       Let's ensure hero content isn't covered. */
}

/* Hamburger Menu Button */
#ln-navbar .ln-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  width: 30px;
  height: 22px;
  position: relative;
}
#ln-navbar .ln-hamburger span {
  width: 100%;
  height: 3px;
  background: var(--ln-color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
  position: relative;
}
#ln-navbar .ln-hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9.5px;
}
#ln-navbar .ln-hamburger.active span:nth-child(2) {
  opacity: 0;
}
#ln-navbar .ln-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: -9.5px;
}

/* Mobile Nav Styles */
/* Hide mobile CTA by default */
.ln-mobile-cta-li {
  display: none;
}

@media (max-width: 768px) {
  #ln-navbar .container {
    padding-left: 25px;
    padding-right: 25px;
  }
  #ln-navbar .ln-hamburger {
    display: flex;
  }
  #ln-navbar .ln-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 25px;
    gap: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  #ln-navbar .ln-nav-menu.active {
    transform: translateX(0);
  }
  #ln-navbar .ln-nav-menu li {
    border-bottom: 1px solid #eee;
  }
  /* Remove border for the CTA item */
  #ln-navbar .ln-nav-menu li.ln-mobile-cta-li {
    border-bottom: none;
    padding-top: 20px;
    padding-bottom: 0;
    display: block; /* Show on mobile */
  }

  #ln-navbar .ln-nav-link {
    display: block;
    padding: 15px 0;
  }
  #ln-navbar .ln-logo {
    font-size: 1.2rem;
  }
  #ln-navbar .ln-btn-get {
    display: none;
  }
  /* Style for the mobile CTA button */
  #ln-navbar .mobile-menu-btn {
    display: block;
    background: var(--ln-color-primary);
    color: #fff !important;
    text-align: center;
    padding: 12px 0;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
  }
}

#sapiens-landing-page .producer-section {
  text-align: center;
}
#sapiens-landing-page .producer-section h2 {
  margin-bottom: 1rem;
}
#sapiens-landing-page .producer-section h4 {
  color: var(--ln-color-gold) !important;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
#sapiens-landing-page .producer-section p {
  color: #ddd;
  font-size: 1rem;
}

/* QUOTES & LETTER */
#sapiens-landing-page .ln-quote-box {
  background-color: #fff;
  border: 1px solid #eee;
  border-top: 5px solid var(--ln-color-primary);
  padding: 4rem;
  box-shadow: var(--ln-box-shadow);
}
#sapiens-landing-page .ln-quote-box .lead {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

/* BUTTONS */
#sapiens-landing-page .ln-btn-cta {
  background: RGBA(255, 255, 255, 0);
  opacity: 1;
  padding: 15px 30px 15px 30px;
  box-shadow: none;
  border: 2px solid RGBA(255, 255, 255, 1);
  border-radius: 5px;
  display: inline-block;
  color: #fff;
  font-family: "Jost-600-Semi";
  font-size: 15px;
  text-transform: uppercase;
  text-decoration: none;
}
#sapiens-landing-page .ln-btn-cta:hover {
  background: #fff;
  color: #7a1b54;
}

#sapiens-landing-page .ln-btn-cta-p {
  display: inline-block;
  border: 2px solid #7a1b54;
  color: #000;
  font-size: 14px;
  transition: 0.5s;
  font-family: "Jost-500-Medium";
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 5px;
  background-color: white;
  gap: 15px;
}
#sapiens-landing-page .ln-btn-cta-p:hover {
  background-color: #7a1b54;
  color: #fff;
}
.ln-sapiens-item {
  margin-bottom: 2rem;
}
/* SAPIENS GRID */
#sapiens-landing-page .ln-sapiens-keyword {
  color: var(--ln-color-primary);
  font-family: var(--ln-font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
#sapiens-landing-page .ln-sapiens-highlight {
  color: var(--ln-color-gold);
  /* font-weight: 800; Optional: make it even bolder */
}

/* ================================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ================================================ */

@media (max-width: 768px) {
  /* MENU */

  #menu-lab .ln-nav-menu {
    flex-direction: column;
    padding: 0;
    margin-top: 2.5rem;
  }
  /* HERO SECTION */
  #sapiens-landing-page .ln-hero {
    height: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  #sapiens-landing-page .ln-hero-separator {
    display: none;
  }
  #sapiens-landing-page .ln-hero-info {
    justify-content: flex-start !important;
    gap: 1.2rem;
  }
  #sapiens-landing-page .ln-hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  #sapiens-landing-page .ln-hero h2 {
    font-size: 1.1rem;
  }
  #sapiens-landing-page .ln-hero .lead {
    font-size: 1rem;
  }

  /* SECTION TITLES */
  #sapiens-landing-page .ln-section-title {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    padding: 0 25px;
  }

  /* BUTTONS */
  #sapiens-landing-page .ln-btn-cta {
    padding: 14px 30px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
  }

  /* TIMELINE MOBILE */
  #sapiens-landing-page .ln-timeline {
    padding: 0;
  }
  #sapiens-landing-page .ln-timeline-track {
    left: 27px;
  }
  #sapiens-landing-page .ln-timeline-progress {
    left: 27px;
  }
  #sapiens-landing-page .ln-timeline-left {
    flex: 0 0 54px;
  }
  #sapiens-landing-page .ln-step-circle {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    box-shadow: 0 0 0 6px #fff;
  }
  #sapiens-landing-page .ln-step-label {
    display: none;
  }
  #sapiens-landing-page .ln-timeline-content {
    margin-left: 15px;
    padding: 20px;
  }
  #sapiens-landing-page .ln-theme-title {
    font-size: 1.2rem;
    line-height: 1.3;
  }
  #sapiens-landing-page .ln-theme-tag {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  #sapiens-landing-page .ln-timeline-body p {
    font-size: 1rem;
  }
  #sapiens-landing-page .ln-timeline-item {
    margin-bottom: 50px;
  }

  /* QUOTES & BOXES */
  #sapiens-landing-page .ln-quote-box {
    padding: 1.5rem;
  }
  #sapiens-landing-page .ln-big-quote p {
    font-size: 1.1rem;
  }
  #sapiens-landing-page .ln-quote-footer {
    font-size: 0.9rem;
  }

  /* CARDS */
  #sapiens-landing-page .ln-card {
    /* margin-bottom: 1.5rem; */
    padding: 2rem 1.5rem;
  }

  /* SAPIENS GRID MOBILE */
  #sapiens-landing-page .ln-sapiens-keyword {
    font-size: 1.2rem;
  }
  #sapiens-landing-page .ln-sapiens-desc {
    font-size: 0.95rem;
  }

  /* LETTER SECTION */
  #sapiens-landing-page .ln-signature {
    font-size: 1.4rem;
  }

  /* PRICING CARD MOBILE */
  #sapiens-landing-page .display-3 {
    font-size: 2.5rem;
  }

  /* GENERAL SPACING */
  #sapiens-landing-page .ln-section {
    padding: 60px 0;
  }
  #sapiens-landing-page .container {
    padding-left: 25px;
    padding-right: 25px;
  }
}

/* ================================================
   TABLET ADJUSTMENTS (768px - 991px)
   ================================================ */
@media (min-width: 769px) and (max-width: 991px) {
  #sapiens-landing-page .ln-hero {
    padding: 150px 30px;
  }
  #sapiens-landing-page .ln-section-title {
    margin-bottom: 4rem;
  }
  #sapiens-landing-page .ln-timeline-content {
    padding: 30px;
  }
  #sapiens-landing-page .ln-theme-title {
    font-size: 1.4rem;
  }
}

/* ANIMATION CLASS */
#sapiens-landing-page .is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* --- IMAGE PLACEHOLDERS --- */
#sapiens-landing-page .ln-image-box {
  width: 100%;
  height: 400px; /* Default height */
  background-color: #eee;
  background-size: cover;
  background-position: center;
  border-radius: var(--ln-border-radius);
  box-shadow: var(--ln-box-shadow);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
#sapiens-landing-page .ln-image-box::before {
  content: "Insert Image Here";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ccc;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 0;
}
/* If an actual image is used inside, hide the background/text */
#sapiens-landing-page .ln-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* Value Card Styles */
#sapiens-landing-page .ln-value-card {
  border-radius: 8px;
  padding: 3rem;
}

#sapiens-landing-page .ln-value-card-title {
  font-size: 1.3rem;
}

#sapiens-landing-page .ln-value-items {
  width: 100%;
}

#sapiens-landing-page .ln-value-item {
  width: 100%;
  align-items: center;
}

#sapiens-landing-page .ln-value-item-inner {
  flex: 1;
  min-width: 0;
  gap: 20px;
  align-items: center;
  max-width: fit-content;
  margin-right: auto;
  margin-left: auto;
}

#sapiens-landing-page .ln-value-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sapiens-landing-page .ln-value-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#sapiens-landing-page .ln-value-label {
  font-size: 1rem;
  line-height: 1.5;
  color: #2c2c2c;
  text-align: left;
}

#sapiens-landing-page .ln-value-sublabel {
  font-size: 0.9rem;
  text-align: left;
}

#sapiens-landing-page .ln-value-price {
  white-space: nowrap;
  font-size: 1.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Pricing Card Styles */
#sapiens-landing-page .ln-pricing-card {
  border-radius: 12px;
}

#sapiens-landing-page .ln-pricing-header {
  letter-spacing: 2px;
  font-size: 0.9rem;
  background-color: var(--ln-color-primary) !important;
}

#sapiens-landing-page .ln-pricing-features {
  max-width: 300px;
}

#sapiens-landing-page .ln-pricing-checkmark {
  width: 20px;
}

#sapiens-landing-page .ln-pricing-card .ln-btn-cta {
  border-color: var(--ln-color-primary);
  color: var(--ln-color-primary);
}
#sapiens-landing-page .ln-pricing-card .ln-btn-cta:hover {
  background-color: var(--ln-color-primary);
  color: #fff;
}

/* === LETTER SECTION STYLES === */
#sapiens-landing-page .ln-letter-container {
  background: linear-gradient(135deg, #fdfbf7 0%, #faf8f5 100%);
  border-radius: 12px;
  position: relative;
}

#sapiens-landing-page .ln-letter-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--ln-color-primary) 0%,
    var(--ln-color-gold) 100%
  );
  border-radius: 12px 0 0 12px;
}

#sapiens-landing-page .ln-letter-greeting {
  font-size: 3.2rem;
  color: #7a1b54;
  font-style: italic;
  margin-bottom: 2rem;
  font-family: "RetroSignature";
  padding: 0 15px;
}

#sapiens-landing-page .ln-letter-section {
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid transparent;
  transition: border-color 0.3s ease;
}

#sapiens-landing-page .ln-letter-section:hover {
  border-left-color: var(--ln-color-gold);
}

#sapiens-landing-page .ln-letter-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ln-color-primary);
  margin-bottom: 0.75rem;
  display: block;
  letter-spacing: 0.3px;
  font-family: "Jost", sans-serif;
}

#sapiens-landing-page .ln-letter-text {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #000;
  margin: 0;
}

#sapiens-landing-page .ln-letter-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(139, 69, 19, 0.15);
}

#sapiens-landing-page .ln-signature {
  text-align: right;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #000;
}

#sapiens-landing-page .ln-signature-name {
  font-family: var(--ln-font-body);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ln-color-primary);
  display: inline-block;
  margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Riduco padding della letter container su mobile */
  #sapiens-landing-page .ln-letter-container {
    padding: 30px 20px !important;
  }

  #sapiens-landing-page .ln-letter-section {
    padding-left: 0.5rem;
    margin-bottom: 2rem;
  }

  #sapiens-landing-page .ln-letter-title {
    font-size: 1.05rem;
  }

  #sapiens-landing-page .ln-letter-text {
    font-size: 1rem;
  }

  #sapiens-landing-page .ln-signature-name {
    font-size: 2.5rem;
  }

  /* Aumento gap tra le card "PerchÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â© lo facciamo" su mobile */
  #sapiens-landing-page .row.g-4 {
    row-gap: 2rem !important;
  }
}
.ln-form-input {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  background-color: #faf8f5;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  transition: all 0.3s ease;
}

.ln-form-input:focus {
  outline: none;
  border-color: var(--ln-color-primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(122, 27, 84, 0.1);
}

.ln-form-message {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
}

.ln-form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.ln-form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.ln-btn-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* === CHECKLIST STYLES === */
#sapiens-landing-page .ln-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#sapiens-landing-page .ln-checklist-item {
  position: relative;
  padding: 20px 20px 20px 70px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ln-text-dark);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

#sapiens-landing-page .ln-checklist-item::before {
  content: "ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã¢â‚¬Â¦ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œ";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: linear-gradient(
    135deg,
    var(--ln-color-primary) 0%,
    var(--ln-color-primary-dark) 100%
  );
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(122, 27, 84, 0.25);
  transition: all 0.3s ease;
}

#sapiens-landing-page .ln-checklist-item:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 25px rgba(122, 27, 84, 0.12);
  border-left-color: var(--ln-color-gold);
}

#sapiens-landing-page .ln-checklist-item:hover::before {
  background: linear-gradient(135deg, var(--ln-color-gold) 0%, #d4af6a 100%);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  #sapiens-landing-page .ln-checklist {
    gap: 15px;
  }

  #sapiens-landing-page .ln-checklist-item {
    padding: 16px 16px 16px 60px;
    font-size: 0.95rem;
  }

  #sapiens-landing-page .ln-checklist-item::before {
    width: 32px;
    height: 32px;
    left: 16px;
    font-size: 1.1rem;
  }

  #sapiens-landing-page .ln-checklist-item:hover {
    transform: translateX(4px);
  }
}

/* --- REASONS CLOUD (Compact Pills) --- */
#sapiens-landing-page .ln-reason-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Tighter gap */
  margin-bottom: 2rem;
}

/* No media query needed for grid columns anymore */

#sapiens-landing-page .ln-reason-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-left: 3px solid var(--ln-color-gold); /* Keep slight accent but smaller */
  border-radius: 6px; /* consistent small radius */
  padding: 8px 15px; /* Compact padding */
  font-family: var(--ln-font-body);
  font-size: 0.95rem; /* Slightly smaller text */
  font-weight: 500;
  color: var(--ln-text-main);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  cursor: default;
  line-height: 1.3;
  width: auto; /* Allow auto width */
  flex: 1 1 auto; /* Allow grow but strictly wrap */
}

#sapiens-landing-page .ln-reason-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left-color: var(--ln-color-primary);
  background-color: #fcfcfc;
}

.ln-form-input {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  background-color: #faf8f5;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  transition: all 0.3s ease;
}

.ln-form-input:focus {
  outline: none;
  border-color: var(--ln-color-primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(122, 27, 84, 0.1);
}

.ln-form-message {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
}

.ln-form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.ln-form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.ln-btn-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.card-landing {
  background: #f5f5f5 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.prenotaora {
  border: 1px solid #8e3e56 !important;
  color: #8e3e56 !important;
  transition: 0.2s;
}

.prenotaora:hover {
  background: #8e3e56 !important;
  color: #fff !important;
}
/* Effetto Shine */
.ln-shine-effect {
  position: relative;
  overflow: hidden;
}

.ln-shine-effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  transform: skewX(-25deg);
  animation: shine 3s infinite;
  pointer-events: none;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.ln-shine-effect-gold {
  position: relative;
  overflow: hidden;
}

.ln-shine-effect-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(193, 155, 118, 0.4) 100%
  );
  transform: skewX(-25deg);
  animation: shine 4s infinite;
  pointer-events: none;
  z-index: 1;
}

/* --- CHECKOUT STYLES (MATCHING LANDING) --- */
.woocommerce-checkout {
  background-color: #fff;
  font-family: var(--ln-font-body);
}

.woocommerce-checkout .wp-block-woocommerce-checkout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Titles */
.woocommerce-checkout .wc-block-components-checkout-step__title,
.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
  font-family: var(--ln-font-heading);
  color: var(--ln-color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.5rem;
}

/* Inputs */
.woocommerce-checkout .wc-block-components-text-input input,
.woocommerce-checkout .wc-block-components-combobox-control input,
.woocommerce-checkout select {
  border: 1px solid #e0e0e0;
  border-radius: var(--ln-border-radius);
  padding: 12px 16px;
  background-color: #faf8f5 !important; /* Light cream from landing */
  color: var(--ln-text-main);
}
.woocommerce-checkout .wc-block-components-text-input input:focus {
  border-color: var(--ln-color-primary);
  box-shadow: 0 0 0 1px var(--ln-color-primary);
  outline: none;
}
.woocommerce-checkout .wc-block-components-text-input label {
  color: var(--ln-text-muted);
}
.woocommerce-checkout .wc-block-components-text-input input:focus ~ label,
.woocommerce-checkout
  .wc-block-components-text-input
  input:not(:placeholder-shown)
  ~ label {
  color: var(--ln-color-primary);
}

/* Button (Place Order) */
.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  background-color: var(--ln-color-primary) !important;
  color: #fff !important;
  border-radius: var(--ln-border-radius);
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 30px;
  transition: var(--ln-transition);
  border: none;
  font-family: var(--ln-font-body);
}
.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  background-color: var(--ln-color-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(122, 27, 84, 0.3);
}

/* Return to Cart */
.woocommerce-checkout .wc-block-components-checkout-return-to-cart-button {
  color: var(--ln-text-muted);
  font-weight: 500;
  font-family: var(--ln-font-body);
}
.woocommerce-checkout
  .wc-block-components-checkout-return-to-cart-button:hover {
  color: var(--ln-color-primary);
  text-decoration: underline;
}

/* Sidebar / Order Summary */
.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: #fff !important;
  border: 1px solid #eee;
  border-top: 4px solid var(--ln-color-primary);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Prices */
.woocommerce-checkout .wc-block-formatted-money-amount {
  color: var(--ln-text-dark);
  font-weight: 700;
  font-family: var(--ln-font-heading);
}
.woocommerce-checkout .wc-block-components-totals-item__value,
.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
  color: var(--ln-color-primary);
}
.woocommerce-checkout .wc-block-components-totals-footer-item-tax-value {
  font-size: 1.5rem;
}

/* Checkboxes */
.woocommerce-checkout
  .wc-block-components-checkbox__input[type="checkbox"]:checked {
  background-color: var(--ln-color-primary) !important;
  border-color: var(--ln-color-primary) !important;
}

/* Steps Indicators (if any) */
.woocommerce-checkout .wc-block-components-checkout-step__heading-content {
  color: var(--ln-color-gold);
}

/* Notices */
.woocommerce-checkout .wc-block-components-notice-banner.is-error {
  background-color: #f8dbdb;
  color: #721c24;
  border-left-color: #f5c6cb;
}
.woocommerce-checkout .wc-block-components-notice-banner__content {
  font-family: var(--ln-font-body);
}
/* ==========================================
   COSTANTINA SIGNATURE SECTIONS
   ========================================== */

/* Sezione firma */
.ln-signature-section {
  margin: 0;
}

.ln-signature-section.ln-bg-light {
  background-color: #f9f9f9;
}

/* Contenitore immagine */
.ln-signature-image-container {
  min-height: 750px;
  background-size: cover;
  background-position: center;
}

/* Targhetta nome */
.ln-signature-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.ln-signature-name {
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.ln-signature-role {
  font-size: 1.1rem;
  color: #666;
}

/* Contenitore citazione */
.ln-signature-quote-container {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.ln-signature-quote-container.ln-bg-light {
  background-color: #f9f9f9;
}

/* Testo citazione */
.ln-signature-quote {
  font-family: 'RetroSignature';
  line-height: 1.1;
  color: var(--ln-text-dark);
  margin: 0;
}

.ln-signature-quote.ln-size-large {
  font-size: 4rem;
}

.ln-signature-quote.ln-size-medium {
  font-size: 3rem;
}