/* 1. Paletas: somente o catálogo. Overrides do Elementor usam estas variáveis. */
.sdd {
  --sdd-background: #f2f3f5;
  --sdd-accent: #c24b00;
  --sdd-radius: 16px;
  --sdd-height: 420px;
  --sdd-ratio: 8 / 3;
  --sdd-fit: contain;
  --sdd-position: center center;
  --sdd-overlay: #000b;
  --sdd-arrow-bg: #13242fcc;
  --sdd-arrow-color: #fff;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--sdd-radius);
  background: var(--sdd-background);
  color: #334451;
  font: 400 14px/1.5 Inter,"Segoe UI",Arial,sans-serif;
}
.sdd *, .sdd *::before, .sdd *::after { box-sizing: border-box; }
.sdd [hidden] { display: none !important; }
.sdd.sdd-theme-siloe { --sdd-background: #191f25; --sdd-accent: #9cc9e3; --sdd-button-text: #13242f; color: #f3f5f7; }
.sdd.sdd-theme-mercado { --sdd-background: #fff159; --sdd-accent: #2968c8; --sdd-radius: 6px; }
.sdd :is(a,button):focus-visible, .sdd:focus-visible { outline: 3px solid var(--sdd-accent); outline-offset: -4px; }

/* 2. A arte é uma imagem principal opaca. A mesma área é usada em cada slide. */
.sdd .sdd-slide { position: relative; min-width: 0; margin: 0; background: var(--sdd-background); }
.sdd .sdd-media { position: relative; width: 100%; overflow: hidden; aspect-ratio: var(--sdd-ratio); }
.sdd.sdd-size-height .sdd-media { aspect-ratio: auto; height: var(--sdd-height); }
.sdd .sdd-media > .sdd-image,
.sdd .sdd-media > .sdd-image-link { position: absolute; inset: 0; }
.sdd .sdd-image, .sdd .sdd-image-link {
  display: block; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; border-radius: 0; opacity: 1; filter: none;
}
.sdd .sdd-image { object-fit: var(--sdd-fit); object-position: var(--sdd-position); }
/* Sem JS todos os slides são legíveis. Com JS, sobreposição só entre slides. */
.sdd.is-ready .sdd-track { display: grid; align-items: stretch; }
.sdd.is-ready .sdd-slide { grid-area: 1/1; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .55s ease, visibility .55s ease; }
.sdd.is-ready .sdd-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }

/* 3. Texto opcional; o modo somente imagem não renderiza legenda ou degradê. */
.sdd .sdd-caption { position: relative; padding: 28px 64px 56px; overflow-wrap: anywhere; }
.sdd.sdd-mode-overlay .sdd-caption { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; max-height: 100%; overflow: auto; padding: 60px 64px 56px; background: linear-gradient(transparent,var(--sdd-overlay)); pointer-events: none; color: #fff; }
.sdd .sdd-caption h2 { margin: 0 0 12px; color: var(--sdd-title-color,inherit); font-family: inherit; font-size: clamp(24px,3.5vw,46px); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
.sdd .sdd-caption p { margin: 0 0 18px; color: var(--sdd-description-color,inherit); font-family: inherit; font-size: 15px; line-height: 1.6; }
.sdd .sdd-cta { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 10px 20px; border-radius: 6px; background: var(--sdd-accent); color: var(--sdd-button-color,var(--sdd-button-text,#fff)); font: inherit; font-weight: 650; text-decoration: none; pointer-events: auto; }

/* 4. Navegação: ícones SVG no centro exato dos botões, sem Pausar/Iniciar. */
.sdd .sdd-arrows { position: absolute; z-index: 3; inset: 0 0 auto; aspect-ratio: var(--sdd-ratio); pointer-events: none; }
.sdd.sdd-size-height .sdd-arrows { aspect-ratio: auto; height: var(--sdd-height); }
.sdd .sdd-arrows button { position: absolute; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0; padding: 0; border: 1px solid #ffffff55; border-radius: 50%; background: var(--sdd-arrow-bg); color: var(--sdd-arrow-color); cursor: pointer; pointer-events: auto; line-height: 1; transition: filter .2s ease; }
.sdd .sdd-arrows button svg { display: block; width: 24px; height: 24px; flex: 0 0 24px; margin: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sdd .sdd-arrows button[data-direction='-1'] { inset-inline-start: 12px; }
.sdd .sdd-arrows button[data-direction='1'] { inset-inline-end: 12px; }
.sdd .sdd-arrows button:hover { filter: brightness(1.2); }
.sdd .sdd-controls { position: absolute; z-index: 3; inset-inline: 56px; bottom: 10px; display: flex; justify-content: center; align-items: center; }
.sdd .sdd-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.sdd .sdd-dots button { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.sdd .sdd-dots button::after { content: ''; width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; background: #13242faa; }
.sdd .sdd-dots button[aria-current='true']::after { background: var(--sdd-accent); width: 18px; border-radius: 5px; }
.sdd .sdd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.sdd { touch-action: pan-y; }
.sdd-empty { padding: 24px; border: 1px dashed #9cc9e3; border-radius: 8px; background: #f2f3f5; color: #334451; font: 14px/1.6 Arial,sans-serif; }

/* 5. A proporção acompanha a largura também no celular, sem altura mínima imposta. */
@media(max-width:1024px) { .sdd { --sdd-height: 320px; } }
@media(max-width:767px) {
  .sdd { --sdd-height: 240px; }
  .sdd .sdd-caption { padding: 20px 24px 48px; }
  .sdd.sdd-mode-overlay .sdd-caption { padding: 20px 48px 40px; }
  .sdd .sdd-caption h2 { font-size: 23px; margin-bottom: 7px; }
  .sdd .sdd-caption p { font-size: 12px; margin-bottom: 10px; }
  .sdd .sdd-cta { min-height: 36px; padding: 8px 12px; font-size: 11px; }
  .sdd .sdd-arrows button { width: 36px; height: 36px; }
  .sdd .sdd-arrows button[data-direction='-1'] { inset-inline-start: 6px; }
  .sdd .sdd-arrows button[data-direction='1'] { inset-inline-end: 6px; }
}
@media(prefers-reduced-motion:reduce) { .sdd *, .sdd *::before, .sdd *::after { transition: none !important; animation: none !important; } }
