.dd-blocks-root {
  padding-top: 0;
}

.dd-chrome-header-wrap {
  padding: 0 !important;
  min-height: 0 !important;
}

.dd-chrome-header-wrap .dd-section-row,
.dd-chrome-header-wrap .dd-column,
.dd-chrome-header-wrap .dd-widget {
  margin: 0;
}

.dd-chrome-footer a {
  color: inherit;
  text-decoration: none;
}

.dd-builder-region.is-dim-region {
  opacity: 0.42;
  filter: grayscale(0.15);
  pointer-events: none;
}

.dd-builder-region.is-editing-region {
  outline: 2px dashed rgba(37, 99, 235, 0.45);
  outline-offset: 4px;
}

.bb-menu-item-card {
  border: 1px solid var(--admin-border, #e5e7eb);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
}

.dd-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Mantém o visual original do tema quando a seção usa .hero */
.dd-section.hero {
  color: #fff;
}

.dd-section.hero .dd-widget-text .lead,
.dd-section.hero .dd-text.lead {
  color: rgba(255, 255, 255, 0.9);
}

.dd-section[style*="background-image"]:not(.hero)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.72));
  z-index: 0;
  pointer-events: none;
}

.dd-section[style*="background-image"]:not(.hero) > .container,
.dd-section[style*="background-image"]:not(.hero) > .container-fluid {
  position: relative;
  z-index: 1;
}

.dd-column.card {
  background: #fff;
}

.dd-section-row > .dd-column[style*="flex:0 0 100%"] {
  margin-bottom: 0.5rem;
}

.dd-section-row {
  width: 100%;
}

.dd-column {
  min-width: 0;
}

/* Mobile: empilha em 1 coluna (PC/tablet respeitam 1/2/3 do builder) */
@media (max-width: 767.98px) {
  .dd-section-row .dd-column {
    grid-column: span 12 !important;
  }
}

.dd-widget {
  margin-bottom: 0.75rem;
}

.dd-widget:last-child {
  margin-bottom: 0;
}

.dd-widget-button {
  display: inline-block;
}

.dd-widget-image img,
.dd-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.dd-carousel {
  max-width: 920px;
  margin: 0 auto;
}

.dd-carousel .app-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 0.5rem 0.5rem 0 0;
}

.dd-carousel .app-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dd-carousel .carousel-item {
  padding: 1rem;
}

.dd-carousel .carousel-control-prev,
.dd-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  top: 40%;
  bottom: auto;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 50%;
  opacity: 0.9;
}

.dd-carousel .carousel-control-prev { left: 8px; }
.dd-carousel .carousel-control-next { right: 8px; }

.dd-carousel .carousel-indicators {
  margin-bottom: 0;
}

.dd-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #94a3b8;
}

.dd-column-empty {
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
  background: rgba(148, 163, 184, 0.08);
}

.dd-hide-desktop { }
.dd-hide-tablet { }
.dd-hide-mobile { }

@media (min-width: 992px) {
  .dd-hide-desktop { display: none !important; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .dd-hide-tablet { display: none !important; }
}

@media (max-width: 767.98px) {
  .dd-hide-mobile { display: none !important; }
}

/* Widgets tech (templates) */
.dd-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.dd-badge-primary { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.dd-badge-accent { background: rgba(243, 156, 18, 0.18); color: #b45309; }
.dd-badge-light { background: rgba(255, 255, 255, 0.18); color: #fff; }

.dd-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(44, 62, 80, 0.08);
  color: #2c3e50;
  font-size: 1.5rem;
}

.dd-feature-link {
  font-weight: 600;
  text-decoration: none;
}

.dd-pricing-card.dd-pricing-highlight {
  border: 2px solid #2563eb;
  transform: translateY(-4px);
}

.dd-pricing-value .dd-price {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
}

.dd-pricing-features li {
  margin-bottom: 0.5rem;
}

.dd-testimonial blockquote {
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.dd-testimonial-avatar,
.dd-team-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.dd-team-photo {
  width: 96px;
  height: 96px;
}

.dd-stats-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: #27ae60;
  line-height: 1.1;
}

.dd-stats-icon {
  font-size: 1.4rem;
  color: #f39c12;
}

.dd-cta-box {
  background: linear-gradient(135deg, #1f2937 0%, #0f172a 55%, #1d4ed8 140%);
}

.dd-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
}

.dd-logo-item img {
  max-height: 42px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(0.2);
  opacity: 0.9;
}

.dd-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}

.dd-video-playlist-card {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.8fr);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.dd-video-playlist-side {
  display: flex;
  flex-direction: column;
  height: 0;
  min-height: 100%;
  background: #f8fafc;
  border-left: 1px solid #e5e7eb;
}

.dd-video-playlist-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.dd-video-playlist-stage > .dd-video-playlist-media,
.dd-video-playlist-stage > .dd-video-playlist-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dd-video-playlist-media {
  border: 0;
  display: block;
  background: #0f172a;
}

.dd-video-playlist-empty {
  color: #cbd5e1;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  background: #0f172a;
}

.dd-video-playlist-side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.dd-video-playlist-side-head span {
  color: #64748b;
  font-size: 0.8rem;
}

.dd-video-playlist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
}

.dd-playlist-item {
  width: 100%;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  background: transparent;
  text-align: left;
  color: #0f172a;
}

.dd-playlist-item.is-active {
  background: #e8f1ff;
}

.dd-playlist-thumb {
  width: 92px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: #1e293b;
  display: grid;
  place-items: center;
}

.dd-playlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dd-playlist-fallback {
  color: #fff;
  font-size: 0.85rem;
}

.dd-playlist-label {
  font-size: 0.92rem;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .dd-video-playlist-card {
    grid-template-columns: 1fr;
  }

  .dd-video-playlist-side {
    height: auto;
    min-height: 0;
    max-height: 280px;
    border-left: 0;
    border-top: 1px solid #e5e7eb;
  }
}

.dd-image-text {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: #f3f5f7;
  overflow: hidden;
  min-height: 260px;
}

.dd-image-text.is-image-right .dd-image-text-media {
  order: 2;
}

.dd-image-text-media {
  position: relative;
  min-height: 240px;
  background: #e5e7eb;
}

.dd-image-text-media img,
.dd-image-text-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dd-image-text-media img {
  object-fit: cover;
  display: block;
}

.dd-image-text-empty {
  display: grid;
  place-items: center;
  color: #64748b;
  padding: 1rem;
  text-align: center;
}

.dd-image-text-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.25rem 2.75rem;
  background: #f3f5f7;
}

.dd-image-text-title {
  margin: 0 0 0.7rem;
  color: #1f2937;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.dd-image-text-text {
  margin: 0;
  color: #6b7280;
  font-size: 0.98rem;
  line-height: 1.5;
}

.dd-image-text-rule {
  width: 100%;
  margin: 1.15rem 0 0;
  border: 0;
  border-top: 1px solid #d5dbe3;
}

@media (max-width: 768px) {
  .dd-image-text,
  .dd-image-text.is-image-right {
    grid-template-columns: 1fr;
  }

  .dd-image-text.is-image-right .dd-image-text-media {
    order: 0;
  }

  .dd-image-text-media {
    min-height: 200px;
  }

  .dd-image-text-copy {
    padding: 1.5rem 1.25rem 1.75rem;
  }
}

.dd-link-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem 1.5rem;
}

.dd-link-grid-col {
  min-width: 0;
}

.dd-link-grid-col-name {
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.dd-link-grid-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
}

.dd-link-grid-btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 576px) {
  .dd-link-grid-row {
    grid-template-columns: 1fr;
  }
}

.dd-faq .accordion-button:not(.collapsed) {
  background: rgba(37, 99, 235, 0.08);
  color: #1e3a8a;
  box-shadow: none;
}

.dd-faq-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  background: #f4f7fb;
  padding: 1.75rem 1.25rem 2rem;
}

.dd-faq-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dd-faq-card {
  background: #fff;
  border: 1px solid #d7dee8;
  padding: 0.85rem 1rem 0.9rem;
}

.dd-faq-card-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: #243044;
  font-weight: 600;
  line-height: 1.35;
}

.dd-faq-card-q {
  min-width: 0;
}

.dd-faq-card-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}

.dd-faq-card-icon::before,
.dd-faq-card-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: #243044;
}

.dd-faq-card-icon::after {
  transform: rotate(90deg);
}

.dd-faq-card.is-open .dd-faq-card-icon::after {
  display: none;
}

.dd-faq-card-a {
  display: none;
  margin: 0.75rem 0 0.15rem;
  color: #5f7390;
  font-size: 0.92rem;
  line-height: 1.45;
}

.dd-faq-card.is-open .dd-faq-card-a {
  display: block;
}

.dd-faq-board-empty {
  margin: 0;
  color: #5f7390;
}

@media (max-width: 768px) {
  .dd-faq-board {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem 0.85rem 1.5rem;
  }
}

.dd-benefit-grid {
  background: #f4f7fb;
  padding: 2.75rem 1.5rem 3rem;
  text-align: center;
}

.dd-benefit-grid-title {
  margin: 0 0 2.25rem;
  color: #1b2437;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.dd-benefit-grid-row {
  display: grid;
  grid-template-columns: repeat(var(--dd-benefit-cols, 4), minmax(0, 1fr));
  gap: 1.75rem 1rem;
  align-items: start;
}

.dd-benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.dd-benefit-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 0.7rem;
  border-radius: 16px;
  background: #fff;
  color: #9aa6b5;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.dd-benefit-name {
  margin: 0;
  color: #1b2437;
  font-size: 1.02rem;
  font-weight: 700;
}

.dd-benefit-text {
  margin: 0.2rem 0 0;
  max-width: 15rem;
  color: #8b97a8;
  font-size: 0.86rem;
  line-height: 1.45;
}

.dd-benefit-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #8b97a8;
}

@media (max-width: 768px) {
  .dd-benefit-grid {
    padding: 2rem 1rem 2.25rem;
  }

  .dd-benefit-grid-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  .dd-benefit-grid-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .dd-benefit-grid-row {
    grid-template-columns: 1fr;
  }
}

/* Tipografia da aba Estilo: só entra quando o bloco tem o valor preenchido. */
.dd-has-color :is(
  .dd-heading, .dd-text, h1, h2, h3, h4, h5, h6, p, li, label,
  .dd-benefit-grid-title, .dd-benefit-name, .dd-benefit-text,
  .dd-image-text-title, .dd-image-text-text,
  .dd-faq-card-toggle, .dd-faq-card-q, .dd-faq-card-a,
  .dd-playlist-label, .dd-price, .dd-period,
  .dd-stats-value, .dd-stats-label,
  .dd-feature-card h3, .dd-feature-card p,
  .dd-testimonial blockquote, .dd-testimonial figcaption,
  .dd-team-card h3, .dd-team-card p,
  .dd-checklist, .dd-checklist li,
  .accordion-button, .accordion-body,
  .dd-link-grid-title, .dd-link-grid-col-name,
  .dd-cta-box, .dd-cta-box h2, .dd-cta-box p,
  .navbar-brand, .nav-link, .dd-badge,
  .dd-contact-info-title, .dd-contact-info h4, .dd-contact-info p,
  .dd-site-info, .form-label, .card-title
),
.dd-has-color.dd-widget-button .btn {
  color: var(--dd-color) !important;
}

.dd-has-font-size :is(
  .dd-heading, .dd-text, h1, h2, h3, h4, h5, h6, p, li, label,
  .dd-benefit-grid-title, .dd-benefit-name, .dd-benefit-text,
  .dd-image-text-title, .dd-image-text-text,
  .dd-faq-card-toggle, .dd-faq-card-q, .dd-faq-card-a,
  .dd-playlist-label, .dd-price, .dd-period,
  .dd-stats-value, .dd-stats-label,
  .dd-feature-card h3, .dd-feature-card p,
  .dd-testimonial blockquote, .dd-testimonial figcaption,
  .dd-team-card h3, .dd-team-card p,
  .dd-checklist, .dd-checklist li,
  .accordion-button, .accordion-body,
  .dd-link-grid-title, .dd-link-grid-col-name,
  .dd-cta-box h2, .dd-cta-box p,
  .navbar-brand, .nav-link, .dd-badge,
  .dd-contact-info-title, .dd-contact-info h4, .dd-contact-info p,
  .form-label, .card-title
),
.dd-has-font-size.dd-widget-button .btn {
  font-size: var(--dd-font-size) !important;
}

.dd-has-font-weight :is(
  .dd-heading, .dd-text, h1, h2, h3, h4, h5, h6, p, li,
  .dd-benefit-grid-title, .dd-benefit-name, .dd-benefit-text,
  .dd-image-text-title, .dd-image-text-text,
  .dd-faq-card-toggle, .dd-faq-card-a,
  .dd-playlist-label, .dd-price, .dd-stats-value,
  .accordion-button, .dd-link-grid-col-name, .dd-badge, .card-title
) {
  font-weight: var(--dd-font-weight) !important;
}

.dd-has-font-style :is(
  .dd-heading, .dd-text, h1, h2, h3, h4, h5, h6, p, li,
  .dd-benefit-grid-title, .dd-benefit-name, .dd-benefit-text,
  .dd-image-text-title, .dd-image-text-text,
  .dd-faq-card-toggle, .dd-faq-card-a,
  .dd-playlist-label, .accordion-button, .card-title
) {
  font-style: var(--dd-font-style) !important;
}

.dd-has-font-family :is(
  .dd-heading, .dd-text, h1, h2, h3, h4, h5, h6, p, li, label, button,
  .dd-benefit-grid-title, .dd-benefit-name, .dd-benefit-text,
  .dd-image-text-title, .dd-image-text-text,
  .dd-faq-card-toggle, .dd-faq-card-a,
  .dd-playlist-label, .accordion-button, .navbar-brand, .nav-link,
  .form-label, .card-title, .btn
) {
  font-family: var(--dd-font-family) !important;
}

.dd-has-align :is(
  .dd-benefit-grid, .dd-image-text-copy, .dd-faq-board, .dd-cta-box,
  .text-center, .text-start, .text-end, .dd-stats
) {
  text-align: inherit !important;
}
