/* Estratto da rilievo-bim-patrimonio-storico.html per consentire una CSP senza 'unsafe-inline'. */
  /* Hero with static background image */
  .hero-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.42) contrast(1.08) saturate(0.92);
  }

  /* Generic landing section — stessi token di griglia della home */
  .lp-section {
    padding: var(--section-y) var(--gutter);
    max-width: calc(var(--measure) + var(--gutter) * 2);
    margin: 0 auto;
  }

  .lp-section--tight {
    max-width: calc(1040px + var(--gutter) * 2);
  }

  .lp-head {
    max-width: 760px;
    margin-bottom: var(--header-gap);
  }

  .lp-head h2,
  .offer-headline,
  .lp-intro-text {
    font-family: var(--serif);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .lp-head h2 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
  }

  .lp-head h2 em,
  .offer-headline em,
  .lp-intro-text em {
    font-style: italic;
    color: var(--accent-bright);
  }

  .lp-head p {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-top: 24px;
    max-width: 640px;
  }

  /* Hero CTA buttons */
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
  }

  .lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 16px 30px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .35s, color .35s, border-color .35s;
    text-decoration: none;
  }

  .lp-btn--primary {
    background: var(--accent);
    color: var(--bg-deep);
    border-color: var(--accent);
  }

  .lp-btn--primary:hover {
    background: transparent;
    color: var(--accent-bright);
  }

  .lp-btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-strong);
  }

  .lp-btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent-bright);
  }

  /* Intro statement block */
  .lp-intro-text {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
  }

  .lp-intro-text .muted {
    display: block;
    color: var(--ink-muted);
    margin-top: 18px;
  }

  /* Card grids (benefits / audience) */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--border-soft);
    border: 1px solid var(--border-soft);
  }

  .lp-card {
    background: var(--bg);
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .lp-card-num {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--accent);
  }

  .lp-card h4 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 1.32rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .lp-card h4 em {
    font-style: italic;
    color: var(--accent-bright);
  }

  .lp-card p {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--ink-soft);
  }

  /* Offer card */
  .offer-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background:
      radial-gradient(ellipse 80% 120% at 85% -10%, var(--accent-soft) 0%, transparent 55%),
      linear-gradient(160deg, var(--bg-soft) 0%, var(--bg-deep) 100%);
    padding: clamp(40px, 5vw, 72px);
  }

  .offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 14px;
    margin-bottom: 28px;
  }

  .offer-headline {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    margin-bottom: 20px;
  }

  .offer-lead {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 720px;
  }

  .offer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border-soft);
    border: 1px solid var(--border-soft);
    margin: 48px 0 40px;
  }

  .offer-col {
    background: var(--bg-deep);
    padding: 36px 34px;
  }

  .offer-col-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-soft);
  }

  .offer-col--free .offer-col-label {
    color: var(--accent-bright);
  }

  .offer-col--bim .offer-col-label {
    color: var(--ink-muted);
  }

  .offer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .offer-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.96rem;
    line-height: 1.5;
    color: var(--ink-soft);
  }

  .offer-list svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
  }

  .offer-note {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--ink-muted);
    max-width: 760px;
    margin-bottom: 36px;
  }

  /* FAQ */
  .faq-list {
    border-top: 1px solid var(--border-soft);
  }

  .faq-item {
    border-bottom: 1px solid var(--border-soft);
  }

  .faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: -0.01em;
    color: var(--ink);
    transition: color .3s;
  }

  .faq-item summary::-webkit-details-marker {
    display: none;
  }

  .faq-item summary:hover {
    color: var(--accent-bright);
  }

  .faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    position: relative;
    transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .faq-icon::before,
  .faq-icon::after {
    content: '';
    position: absolute;
    background: var(--accent);
    transition: opacity .3s;
  }

  .faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    transform: translateY(-50%);
  }

  .faq-icon::after {
    left: 50%;
    top: 0;
    height: 100%;
    width: 1.5px;
    transform: translateX(-50%);
  }

  .faq-item[open] .faq-icon::after {
    opacity: 0;
  }

  .faq-answer {
    padding: 0 60px 30px 0;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--ink-soft);
  }

  .faq-answer a {
    color: var(--accent-bright);
  }

  /* Responsive */
  @media (max-width: 1000px) {
    /* 2 colonne con la terza card a tutta larghezza: nessuna cella orfana */
    .card-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    /* A tutta larghezza solo se l'ultima resta spaiata: con un numero pari di
       schede la riga e' gia' piena e allargarla aprirebbe un buco */
    .card-grid .lp-card:nth-child(odd):last-child {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 900px) {
    .offer-cols {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @media (max-width: 680px) {
    .card-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @media (max-width: 768px) {
    .lp-card {
      padding: 32px 24px;
    }
    .faq-answer {
      padding-right: 24px;
    }
  }

  /* Custom overrides for Page 2 buttons legibility, hero title size, right-alignment and gradient inversion */
  .lp-btn {
    font-weight: 700;
    animation: none !important; /* Rimosso l'effetto pulsante infinito */
    box-shadow: none !important;
  }
  .lp-btn::after {
    animation: none !important;
    display: none !important;
  }

  /* Primary button: solid white with dark text, turning transparent with white border on hover */
  .lp-btn--primary {
    background: #ffffff !important;
    color: #0a0908 !important;
    border-color: #ffffff !important;
    font-weight: 700;
    animation: none !important;
    box-shadow: none !important;
  }
  .lp-btn--primary::after {
    animation: none !important;
    display: none !important;
  }
  .lp-btn--primary:hover {
    background: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
  }

  /* Ghost button hover style override: turns white instead of gradient accent */
  .lp-btn--ghost:hover {
    border-color: #ffffff !important;
    color: #ffffff !important;
  }

  .hero-title {
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  }

  .hero-center {
    align-self: flex-end;
    align-items: flex-end;
    text-align: right;
  }

  .hero-meta {
    justify-content: flex-end;
  }

  .hero-actions {
    justify-content: flex-end;
  }

  .hero-vignette {
    background:
      linear-gradient(0deg, rgba(10, 9, 8, 0.75) 0%, transparent 22%, transparent 60%, rgba(10, 9, 8, 0.95) 100%),
      radial-gradient(ellipse 100% 70% at 50% 50%, transparent 20%, rgba(10, 9, 8, 0.7) 100%);
  }

  /* Invert the static legend bar gradient */
  .legend-bar {
    background: linear-gradient(to bottom, #0055ff 0%, #00d2ff 25%, #00e664 50%, #ffaa00 75%, #ff1e1e 100%) !important;
  }

  @media (max-width: 768px) {
    .hero-title {
      font-size: clamp(2.0rem, 10vw, 3.0rem);
    }
  }


/* Sostituisce style="margin-top:48px;text-align:center" (CSP) */
.destinatari-cta {
  margin-top: 48px;
  text-align: center;
}
