/* ==========================================================================
   Embeds (acordeão, carrossel, contatos)
   CSS original dos blocos "Incorporar HTML" do Wix, mantido para fidelidade.
   ========================================================================== */

/* ---------- accordion ---------- */
#ad-accordion * { box-sizing: border-box; }

#ad-accordion {
  --azul: #0091d9;
  --azul-escuro: #006ba8;
  --vermelho: #e4032e;
  --vermelho-escuro: #c2021f;
  --cinza-texto: #58585a;
  --cinza-borda: #e7e7e7;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 640px;
  margin: 0 auto;
}

#ad-accordion .ad-item {
  border-bottom: 1px solid var(--cinza-borda);
}

#ad-accordion .ad-item:first-child {
  border-top: 1px solid var(--cinza-borda);
}

#ad-accordion .ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #4a4a4a;
  transition: color 0.2s ease;
}

#ad-accordion .ad-item.active .ad-header {
  color: var(--azul);
}

#ad-accordion .ad-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  position: relative;
}

#ad-accordion .ad-icon::before,
#ad-accordion .ad-icon::after {
  content: "";
  position: absolute;
  background: var(--cinza-texto);
  transition: transform 0.25s ease, background 0.25s ease;
  top: 50%;
  left: 50%;
}

#ad-accordion .ad-icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

#ad-accordion .ad-icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

#ad-accordion .ad-item.active .ad-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

#ad-accordion .ad-item.active .ad-icon::before,
#ad-accordion .ad-item.active .ad-icon::after {
  background: var(--azul);
}

#ad-accordion .ad-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

#ad-accordion .ad-panel-inner {
  padding: 0 8px 28px 8px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

#ad-accordion .ad-bar {
  flex: 0 0 auto;
  width: 4px;
  align-self: stretch;
  background: var(--azul);
  border-radius: 2px;
  min-height: 100%;
}

#ad-accordion .ad-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

#ad-accordion .ad-text {
  font-size: 16px;
  line-height: 1.55;
  color: var(--cinza-texto);
  margin: 0;
}

#ad-accordion .ad-list { padding-left: 20px; }
#ad-accordion .ad-list li + li { margin-top: 8px; }
#ad-accordion .ad-text strong {
  color: #3a3a3c;
  font-weight: 600;
}

#ad-accordion .ad-placeholder {
  color: #a3660c;
  background: #fff6e0;
  padding: 1px 6px;
  border-radius: 4px;
  font-style: italic;
  font-size: 0.95em;
}

#ad-accordion .ad-cta {
  align-self: flex-start;
  margin-top: 6px;
  background: var(--vermelho);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 24px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}
#ad-accordion .ad-cta:hover { background: var(--vermelho-escuro); }

#ad-accordion .ad-ajuda {
  font-size: 14px;
  color: #8a8a8d;
  margin: 4px 0 0 0;
}

#ad-accordion .ad-link {
  color: var(--azul);
  text-decoration: underline;
}
#ad-accordion .ad-link:hover { color: var(--azul-escuro); }

@media (max-width: 480px) {
  #ad-accordion .ad-header { font-size: 18px; padding: 18px 4px; }
  #ad-accordion .ad-text { font-size: 15px; }
}

/* ---------- carrossel ---------- */
#cc-carrossel * { box-sizing: border-box; }

#cc-carrossel {
  --vermelho: #e4032e;
  --vermelho-escuro: #c2021f;
  --preto: #1a1a1a;
  --cinza-texto: #6b6b70;
  --borda: #ececec;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 44px;
}

#cc-carrossel .cc-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px 2px 20px 2px;
  cursor: grab;
  scrollbar-width: none;
}
#cc-carrossel .cc-track::-webkit-scrollbar { display: none; }
#cc-carrossel .cc-track.cc-dragging { cursor: grabbing; scroll-snap-type: none; }

#cc-carrossel .cc-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 240px;
  background: #ffffff;
  border: 1px solid var(--borda);
  border-radius: 20px;
  padding: 30px 22px 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  user-select: none;
}
#cc-carrossel .cc-card:hover {
  box-shadow: 0 10px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

#cc-carrossel .cc-icon { width: 64px; height: 64px; }
#cc-carrossel .cc-icon svg { width: 100%; height: 100%; display: block; }

#cc-carrossel .cc-titulo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--preto);
  line-height: 1.25;
}

#cc-carrossel .cc-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--cinza-texto);
  margin: -6px 0 2px 0;
}

#cc-carrossel .cc-cta {
  margin-top: auto;
  background: var(--vermelho);
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  white-space: normal;
  transition: background 0.2s ease;
}
#cc-carrossel .cc-cta:hover { background: var(--vermelho-escuro); }

#cc-carrossel .cc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--borda);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 2;
}
#cc-carrossel .cc-arrow:hover { background: #faf5f5; }
#cc-carrossel .cc-arrow svg { width: 16px; height: 16px; }
#cc-carrossel .cc-arrow.cc-prev { left: 0; }
#cc-carrossel .cc-arrow.cc-next { right: 0; }
#cc-carrossel .cc-arrow[disabled] { opacity: 0.25; cursor: default; pointer-events: none; }

@media (max-width: 640px) {
  #cc-carrossel { padding: 8px 40px; }
  #cc-carrossel .cc-card { width: 210px; padding: 24px 18px 20px 18px; }
  #cc-carrossel .cc-icon { width: 54px; height: 54px; }
  #cc-carrossel .cc-titulo { font-size: 14px; }
  #cc-carrossel .cc-desc { font-size: 13px; }
}

/* ---------- contatos ---------- */
#cc2-secoes * { box-sizing: border-box; }

#cc2-secoes {
  --azul: #1b2a5e;
  --vermelho: #e4032e;
  --vermelho-escuro: #c2021f;
  --preto: #1a1a1a;
  --cinza-texto: #6b6b70;
  --fundo-card: #f7f7f9;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- GRID (desktop / tablet) ---------- */
#cc2-secoes .cc2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

#cc2-secoes .cc2-card {
  background: var(--fundo-card);
  border-radius: 20px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#cc2-secoes .cc2-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

#cc2-secoes .cc2-badge {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 2.5px solid var(--azul);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
#cc2-secoes .cc2-badge svg { width: 24px; height: 24px; display: block; }

#cc2-secoes .cc2-titulo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--preto);
}

#cc2-secoes .cc2-texto {
  font-size: 15px;
  line-height: 1.55;
  color: var(--cinza-texto);
  margin: 0;
}

#cc2-secoes .cc2-texto strong {
  color: #3a3a3c;
  font-weight: 600;
}

#cc2-secoes .cc2-contato {
  font-size: 14px;
  color: #8a8a8d;
  margin: 0;
}

#cc2-secoes .cc2-contato-lista {
  font-size: 13px;
  line-height: 1.6;
  color: #8a8a8d;
  margin: 0;
}

#cc2-secoes .cc2-contato-lista strong {
  color: #5c5c60;
  font-weight: 600;
}

#cc2-secoes .cc2-placeholder {
  color: #a3660c;
  background: #fff6e0;
  padding: 1px 6px;
  border-radius: 4px;
  font-style: italic;
  font-size: 0.95em;
}

#cc2-secoes .cc2-cta {
  align-self: flex-start;
  margin-top: 2px;
  background: var(--vermelho);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}
#cc2-secoes .cc2-cta:hover { background: var(--vermelho-escuro); }

#cc2-secoes .cc2-link {
  color: var(--azul);
  text-decoration: underline;
}
#cc2-secoes .cc2-link:hover { color: #101a42; }

/* ---------- Dots (só aparecem no mobile) ---------- */
#cc2-secoes .cc2-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
#cc2-secoes .cc2-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d9d9de;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
#cc2-secoes .cc2-dot.cc2-active {
  background: var(--vermelho);
  transform: scale(1.3);
}

/* ---------- MOBILE: vira carrossel ---------- */
@media (max-width: 880px) {
  #cc2-secoes .cc2-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  #cc2-secoes .cc2-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding: 4px 4px 8px 4px;
    scrollbar-width: none;
  }
  #cc2-secoes .cc2-grid::-webkit-scrollbar { display: none; }

  #cc2-secoes .cc2-card {
    flex: 0 0 82%;
    scroll-snap-align: center;
  }

  #cc2-secoes .cc2-dots { display: flex; }
}
