/* design-bundles — ported from design-bundles-standalone.css, scoped under #bt-root. Font from theme.css. */
#bt-root {
  /* Brand */
  --c-blue:        #00517D;
  --c-blue-2:      #1B3E70;
  --c-blue-3:      #203C86;
  --c-navy:        #0A142F;
  --c-black:       #000000;
  --c-white:       #FFFFFF;

  /* Surfaces */
  --c-bg:          #FFFFFF;
  --c-bg-soft:     #F6F6F6;
  --c-bg-soft-2:   #F2F2F2;

  /* Text */
  --c-text:        #0A142F;
  --c-text-muted:  #656464;
  --c-text-faint:  #A9A9A9;

  /* Lines */
  --c-border:      #E4E3E3;
  --c-border-2:    #E7E7E7;

  /* Accents */
  --c-star:        #FBBC04;
  --c-link:        #0081FE;

  /* Layout */
  --maxw: 1320px;          /* content max-width (1512 canvas - ~96px gutters) */
  --gutter: 24px;
  --radius-pill: 50px;
  --radius-card: 16px;

  /* Type */
  --font: 'Mulish', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* --- componenti da base.css --- */
#bt-root .db-container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Layout helper */
#bt-root .container {
  width: 100%;
  /* max-width: var(--maxw); */
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Reusable pill button */
#bt-root .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 30px;
  padding: 16px 28px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
#bt-root .btn--dark { background: var(--c-black); color: #fff; }
#bt-root .btn--ghost { background: #fff; color: var(--c-black); border: 1px solid var(--c-black); }
#bt-root .btn--blue { background: var(--c-blue);  color: #fff; }

#bt-root .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Back-to-top button (shown after scrolling) */
#bt-root .back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-blue); color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(10,20,47,.25);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
#bt-root .back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================================
   Design Bundles page  (values from Figma Dev Mode MCP)
   ========================================================================== */

/* ---------- Overlay nav sits INSIDE the light hero (dark logo/text) ---------- */
#bt-root .site-header--overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 100; }
/* match the hero's wider container so the nav aligns inside the hero card */
#bt-root .site-header--overlay .nav { padding-inline: 80px; padding-top: 47px; }
/* light hero → keep the colored logo + dark nav text (no inversion) */
#bt-root .site-header--overlay .nav__logo img { filter: none; }
#bt-root .site-header--overlay .nav__pill { background: #fff; }
#bt-root .site-header--overlay .nav__pill a { color: #000; }
#bt-root .site-header--overlay .nav__pill a.is-active { background: var(--c-bg-soft); }
#bt-root .site-header--overlay .nav__phone { background: #fff; color: #000; border-color: var(--c-border); }
#bt-root .site-header--overlay .nav__phone img { filter: brightness(0); }
#bt-root .site-header--overlay .nav__quote { background: #000; color: #fff; }
#bt-root .site-header--overlay .nav__burger span { background: #000; }

/* ---------- Hero (light gradient, blue title) + SUMMARY inside ---------- */
#bt-root .db-hero-wrap { padding-top: 24px; padding-inline: 24px; }
#bt-root .db-hero {
  position: relative; overflow: hidden;
  background: #F6F6F6; border-radius: 40px;
  padding: 12% 0 4%;   /* top room for the overlay nav; bottom room for summary */
}
#bt-root .db-hero__inner {
  position: relative;
  display: flex; flex-direction: column; gap: 72px;
}
/* Figma: #00517D ellipse, 70% fill × 40% layer ≈ soft blue glow, 1512×630, upper-mid of hero */
#bt-root .db-hero__glow {
  position: absolute; left: 50%; top: 42%;
  width: 1500px; height: 660px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 46% 50% at 50% 50%,
              rgba(0,81,125,.30) 0%,
              rgba(0,81,125,.14) 36%,
              rgba(0,81,125,.04) 60%,
              rgba(0,81,125,0) 78%);
  filter: blur(70px); pointer-events: none;
}
#bt-root .db-hero__content {
  position: relative; width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 40px;
  padding: 0 7%;
}
#bt-root .db-hero__title {
  font-size: clamp(64px, 9vw, 130px); font-weight: 500; line-height: 1.15; color: var(--c-blue);
}
#bt-root .db-hero__tag {
  font-size: clamp(20px, 2.6vw, 38px); font-weight: 500; line-height: 1.3;
  color: #000; text-align: right; margin-top: 12px;
}
#bt-root .db-hero__tag span { color: rgba(0,0,0,.4); }

/* ---------- Summary (inside the hero) ---------- */
#bt-root .db-summary { padding: 0 7%; }
#bt-root .db-summary__label { font-size: 35px; font-weight: 500; color: rgba(0,0,0,.8); margin-bottom: 14px; }
#bt-root .db-summary__text { font-size: 18px; line-height: 1.66; color: rgba(0,0,0,.6); max-width: 1237px; }

/* ---------- The bundles, in full (table) ---------- */
#bt-root .db-full-wrap { position: relative; overflow: hidden; padding-block: 86px 56px; padding-inline: 5% }
/* Figma: #00517D ellipse, 80% fill × 40% layer, frame 1533×630 spanning the FULL section width
   → a wide soft blue wash that bleeds on BOTH sides of the table (left + right), not just right. */
#bt-root .db-full__glow {
  position: absolute; left: 50%; top: 50%;
  width: 110%; max-width: 1680px; height: 720px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 56% 56% at 50% 50%,
              rgba(0,81,125,.34) 0%,
              rgba(0,81,125,.20) 30%,
              rgba(0,81,125,.09) 52%,
              rgba(0,81,125,.02) 70%,
              rgba(0,81,125,0) 82%);
  filter: blur(90px); pointer-events: none;
}
#bt-root .db-full { position: relative; }
#bt-root .db-full__title { font-size: 54px; font-weight: 500; color: #000; margin-bottom: 30px; }
/* light card panel behind the table (Figma Rectangle 72, ~941px wide) —
   slightly translucent so the blue glow reads through and around it */
#bt-root .db-full__card {
  background: rgba(246,246,246,.55); border-radius: 20px;
  max-width: 941px; padding: 6px 50px;
}
#bt-root .db-full__row {
  display: grid; grid-template-columns: 1fr 420px; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--c-border);
}
#bt-root .db-full__row:last-child { border-bottom: 0; }
#bt-root .db-full__row--head { border-bottom: 1px solid var(--c-border); }
#bt-root .db-full__row--head span:last-child { font-weight: 500; color: #000; font-size: 20px; }
#bt-root .db-full__name { font-size: 20px; font-weight: 500; color: #000; }
#bt-root .db-full__price { font-size: 20px; color: #656464; white-space: pre; }
#bt-root .db-full__price.is-dark { color: #000; }

/* ---------- What's in each bundle ---------- */
#bt-root .db-included { padding-block: 40px; }
#bt-root .db-included__card {
  position: relative;
  background: #F6F6F6; border-radius: 40px; padding: 36px; padding-inline: 52px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
#bt-root .db-included__title { font-size: 58px; font-weight: 500; color: #000; line-height: 1.1; }
/* inline blue right-arrow after "bundle" */
#bt-root .db-included__arrow { display: inline-block; margin-left: 18px; vertical-align: baseline; }
#bt-root .db-included__panel { background: rgba(255,255,255,.7); border-radius: 24px; padding: 32px; width: 460px; }
#bt-root .db-included__panel-title { font-size: 24px; font-weight: 500; color: #000; margin-bottom: 18px; }
#bt-root .db-included__list { display: flex; flex-direction: column; gap: 12px; }
#bt-root .db-included__list li { font-size: 18px; color: rgba(0,0,0,.7); padding-left: 16px; position: relative; }
#bt-root .db-included__list li::before { content: "–"; position: absolute; left: 0; }

/* ---------- A worked example ---------- */
#bt-root .db-example-wrap { position: relative; overflow: hidden; padding-block: 56px; padding-inline: 5%; }
/* Figma: #00517D ellipse, 50% fill × 40% layer, frame 1533×630 spanning the FULL section width
   → a wide soft blue wash that bleeds on both sides (lighter than the table's 80% glow). */
#bt-root .db-example__glow {
  position: absolute; left: 50%; top: 50%;
  width: 110%; max-width: 1680px; height: 250px; transform: translate(-50%, -35%);
  background: radial-gradient(ellipse 56% 56% at 50% 50%,
              rgba(0,81,125,.22) 0%,
              rgba(0,81,125,.12) 32%,
              rgba(0,81,125,.05) 54%,
              rgba(0,81,125,.01) 72%,
              rgba(0,81,125,0) 84%);
  filter: blur(90px); pointer-events: none;
}
#bt-root .db-example { position: relative; }
#bt-root .db-example__title { font-size: 50px; font-weight: 500; color: #000; margin-bottom: 28px; }
#bt-root .db-example__lead { font-size: 20px; color: #000; margin-bottom: 20px; }
#bt-root .db-example__detail { font-size: 18px; line-height: 1.6; color: rgba(0,0,0,.7); margin-bottom: 16px; max-width: 1200px; }
#bt-root .db-example__detail b { font-weight: 600; color: #000; }

/* ---------- After the drawings (split) ---------- */
#bt-root .db-after { padding-block: 84px; padding-top: 40px; padding-inline: 5%; }
#bt-root .db-after__title { font-size: 55px; font-weight: 500; color: #000; line-height: 1.1; margin-bottom: 36px; }
#bt-root .db-after__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
#bt-root .db-after-card { display: block; background: rgba(246,246,246,.7); border-radius: 30px; padding: 40px 50px; transition: background .15s ease; }
#bt-root .db-after-card[href]:hover { background: rgba(0,81,125,.10); }
#bt-root .db-after-card__arrow { display: inline-block; margin-bottom: 70px; }
#bt-root .db-after-card__title { font-size: 23px; font-weight: 600; color: #000; margin-bottom: 10px; }
#bt-root .db-after-card__body { font-size: 18px; color: rgba(0,0,0,.6); line-height: 1.5; }

/* ---------- FAQ ---------- */
#bt-root .db-faq-wrap { padding-bottom: 72px; }
#bt-root .db-faq { background: #F6F6F6; border-radius: 50px; padding: 48px; padding-inline: 52px; }
#bt-root .db-faq__title { font-size: 55px; font-weight: 500; color: #000; margin-bottom: 36px; }
#bt-root .db-faq__list { display: flex; flex-direction: column; gap: 20px; }
#bt-root .faq-item { background: #fff; border-radius: 30px; overflow: hidden; }
#bt-root .faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 30px 32px; cursor: pointer; list-style: none; font-size: 22px; color: #000;
  /* no blue tap-highlight or text-selection when tapping to expand */
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}
#bt-root .faq-item__q::-webkit-details-marker { display: none; }
#bt-root .faq-item__icon {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%;
  background: var(--c-blue); display: flex; align-items: center; justify-content: center; transition: transform .2s ease;
}
#bt-root .faq-item[open] .faq-item__icon { transform: rotate(45deg); }
#bt-root .faq-item__a { padding: 0 32px 28px; font-size: 17px; color: rgba(0,0,0,.6); line-height: 1.6; }
#bt-root .db-faq__cta { text-align: center; margin-top: 48px; }
#bt-root .db-faq__cta .btn { padding: 24px 44px; font-size: 20px; }

/* ==========================================================================
   Mobile (≤900px)
   ========================================================================== */
@media (max-width: 900px) {
  /* overlay nav: align with the 24px content gutter now the hero card is flat */
  #bt-root .site-header--overlay .nav { padding-inline: 0px; padding-top: 20px; }

  /* mobile hero: no card border/outline, flat against the page (per design) */
  #bt-root .db-hero-wrap { padding-inline: 0; padding-top: 0; }
  #bt-root .db-hero { border-radius: 0; padding: 88px 0 24px; background: transparent; }
  #bt-root .db-hero__inner { gap: 32px; padding-block: 40px; }
  #bt-root .db-hero__content { flex-direction: column; padding: 0 24px; gap: 16px; }
  #bt-root .db-hero__tag { text-align: left; }

  /* SUMMARY block is hidden on mobile (design shows hero → tagline → next section) */
  #bt-root .db-summary { display: none; }

  /* every hero wrapper must be allowed to shrink to the viewport (flex children default to min-width:auto) */
  .db-hero, .db-hero__inner, .db-hero__content,
  #bt-root .db-hero__title, #bt-root .db-hero__tag {
    min-width: 0; max-width: 100%; box-sizing: border-box;
  }
  #bt-root .db-hero__inner { width: 100%; }
  #bt-root .db-hero__tag { font-size: 20px; }

  #bt-root .db-full-wrap { padding-inline: 5%; padding-block: 32px; }
  #bt-root .db-full__title { font-size: 30px; }
  #bt-root .db-full__row { grid-template-columns: 1fr auto; gap: 12px; padding: 16px 12px; }
  #bt-root .db-full__name, #bt-root .db-full__price { font-size: 16px; }

  #bt-root .db-full__card { padding: 6px; }
  #bt-root .db-included__card { grid-template-columns: 1fr; padding: 28px 24px; }
  #bt-root .db-included__title { font-size: 30px; }
  #bt-root .db-included__arrow { display: none; }
  #bt-root .db-included__panel { width: 100%; padding: 24px; }
  #bt-root .db-included__panel-title { font-size: 20px; margin-bottom: 12px; }
  #bt-root .db-included__list li { font-size: 16px; padding-left: 12px; }

  #bt-root .db-example-wrap { padding-inline: 5%; padding-block: 32px; }
  #bt-root .db-example__title { font-size: 30px; }
  #bt-root .db-example__lead { font-size: 15px; }
  #bt-root .db-example__detail { font-size: 15px; }

  #bt-root .db-after { padding-inline: 5%; padding-block: 32px; padding-bottom: 56px; }
  #bt-root .db-after__title { font-size: 30px; }
  #bt-root .db-after__cards { grid-template-columns: 1fr; gap: 16px; }
  #bt-root .db-after-card { padding: 28px 24px; }
  #bt-root .db-after-card__arrow { margin-bottom: 30px; }
  #bt-root .db-after-card__title { font-size: 20px; margin-bottom: 8px; }
  #bt-root .db-after-card__body { font-size: 15px; }

  #bt-root .db-faq { padding: 28px 20px; border-radius: 28px; }
  #bt-root .db-faq__title { font-size: 30px; }
  #bt-root .faq-item__q { font-size: 17px; padding: 22px 20px; }
  #bt-root .faq-item__q span { font-size: 15px; }
  #bt-root .faq-item__icon { width: 32px; height: 32px; flex: 0 0 auto; }
  #bt-root .faq-item__icon img { width: 13px; height: 13px; }
  #bt-root .faq-item__a { font-size: 15px; padding: 0 20px 20px; }
  /* CTA button: smaller, hugs its label (not full-width) */
  #bt-root .db-faq__cta { margin-top: 32px; }
  #bt-root .db-faq__cta .btn {
    display: inline-flex; width: auto;
    padding: 13px 22px; font-size: 12px; line-height: 1.3;
    text-align: center; white-space: normal; border-radius: 26px;
  }
}


/* --- OVERRIDE LEGACY (new_design.css riga 9-12, site.css riga 67-72) --- */
section[class*="db-"], section[class*="db-"] *,
#bt-root .db-container, #bt-root .db-container * { box-sizing: border-box; }
#bt-root section[class*="db-"] img, #bt-root section[class*="db-"] svg { display: block; max-width: 100%; }
#bt-root section[class*="db-"] ul { margin: 0; padding: 0; list-style: none; }
#bt-root section[class*="db-"] a { text-decoration: none; }
#bt-root section[class*="db-"] h1 {
  font-family: 'Mulish', sans-serif !important;
  padding-bottom: 0 !important; margin-bottom: 0 !important; font-weight: inherit;
}
#bt-root h1.db-hero__title { font-size: clamp(56px, 8.6vw, 130px) !important; line-height: 1.02 !important; }
@media (max-width: 900px) { h1.db-hero__title { font-size: clamp(40px, 11vw, 64px) !important; } }
#bt-root section[class*="db-"][class*="grid"], #bt-root section.db-split { display: grid !important; }


/* --- hero: il flex non wrappa e il tag di destra esce dal contenitore --- */
#bt-root .db-hero__content { flex-wrap: wrap; }
#bt-root .db-hero__title { flex: 1 1 auto; min-width: 0; }
#bt-root .db-hero__tag { flex: 0 1 auto; min-width: 0; max-width: 100%; }

/* il contenitore e' flex item di .db-hero__inner: senza min-width:0 non si
   restringe sotto il proprio contenuto, quindi flex-wrap non scatta mai */
#bt-root .db-hero__inner { min-width: 0; }
#bt-root .db-hero__content { min-width: 0; padding-inline: 4%; }
#bt-root .db-hero__glow { max-width: 100%; }

/* style.css riga 1311 impone `* {box-sizing: inherit !important}`: senza
   !important il nostro border-box perde e il padding si somma alla larghezza */
section[class*="db-"], section[class*="db-"] *,
#bt-root .db-container, #bt-root .db-container * { box-sizing: border-box !important; }

/* glow decorativi: non devono generare scroll a viewport stretti */
#bt-root .db-hero__glow, #bt-root .db-full__glow, #bt-root .db-example__glow { max-width: 100%; }
#bt-root section[class*="db-"] { overflow-x: clip; }
