/* ==========================================================
   SPT SINGLE — ESTRUTURA DOS CARDS DE CONTEÚDO
   ========================================================== */

.spt-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =========================
   CARD
========================= */
.spt-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.2s ease;
}

.spt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}


/* =========================
   HEADER STYLE
========================= */
.spt-card-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 18px 20px 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

/* ÍCONE BASE */
.spt-card-header::before {
    content: "";
    width: 36px;
    height: 36px;
    flex-shrink: 0;

    border-radius: 50%;
    background-color: #EDEDED !important;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   TÍTULO
========================= */
.spt-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* =========================
   BODY
========================= */
.spt-card-body {
    padding: 14px 20px 20px 20px;
    line-height: 1.6;
    color: #374151;
}

.spt-card-body > *:first-child {
    margin-top: 0;
}
.spt-card-body > *:last-child {
    margin-bottom: 0;
}
.spt-card-body p {
    margin-top: 0;
    margin-bottom: 12px;
}

/* =========================
   ÍCONES POR SEÇÃO (MASK)
========================= */

.spt-card-header::before {
    content: "";
    width: 36px;
    height: 36px;
    flex-shrink: 0;

    display: inline-block;
    border-radius: 50%;

    background-color: #f3f4f6;

    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
}

/* =========================
   FAQ
========================= */
.spt-card.faq .spt-card-header::before {
    background-image: url('/wp-content/uploads/icons/faq.svg');
}

/* =========================
   Texto
========================= */
.spt-card.texto .spt-card-header::before {
    background-image: url('/wp-content/uploads/icons/texto.svg');
}

/* =========================
   VÍDEO
========================= */
.spt-card.video .spt-card-header::before {
    background-image: url('/wp-content/uploads/icons/video.svg');
}

/* =========================
   GALERIA
========================= */
.spt-card.galeria .spt-card-header::before {
    background-image: url('/wp-content/uploads/icons/gallery.svg');
}

/* =========================
   MAPA
========================= */
.spt-card.mapa .spt-card-header::before {
    background-image: url('/wp-content/uploads/icons/map.svg');
}

/* =========================
   SERVIÇOS EXTRAS
========================= */
.spt-card.extras .spt-card-header::before {
    background-image: url('/wp-content/uploads/icons/service.svg');
}

/* =========================
   TAGS
========================= */
.spt-card.tags .spt-card-header::before {
    background-image: url('/wp-content/uploads/icons/tag.svg');
}

/* =========================
   POSTS RELACIONADOS
========================= */
.spt-card.relacionados .spt-card-header::before {
    background-image: url('/wp-content/uploads/icons/relacionados.svg');
}


/* =========================
   SIDEBAR WRAPPER
========================= */
.spt-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =========================
   CARD AUTOMÁTICO PARA WIDGETS
========================= */
.spt-sidebar .widget {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    overflow: hidden;

    padding: 0; 
}

/* =========================
   HEADER DO WIDGET
========================= */
.spt-sidebar .widget > h2,
.spt-sidebar .widget > h3,
.spt-sidebar .widget .widget-title {

    font-size: 16px;
    font-weight: 600;
    color: #111827;

    padding: 16px 20px 14px 20px;

    border-bottom: 1px solid #e5e7eb;
    margin: 0;
}

/* =========================
   CORPO DO WIDGET
========================= */
.spt-sidebar .widget > *:not(h2):not(h3):not(.widget-title) {
    padding: 16px 20px 20px 20px;
}


/* =========================
   LIMPAR MARGENS INTERNAS
========================= */
.spt-sidebar .widget p:first-child {
    margin-top: 0;
}

.spt-sidebar .widget p:last-child {
    margin-bottom: 0;
}

/* =========================
   HOVER (OPCIONAL)
========================= */
.spt-sidebar .widget:hover {
    transform: translateY(-2px);
    transition: 0.2s;
}

/* =========================
   CONTAINER DO VÍDEO
========================= */
.spt-section-video .spt-card-body {
    padding: 0; 
}

/* =========================
   WRAPPER RESPONSIVO vídeo (16:9)
========================= */
.spt-section-video iframe,
.spt-section-video .wp-block-embed__wrapper,
.spt-section-video .acf-oembed,
.spt-section-video .acf-embed {
    
    width: 100% !important;
    height: 100% !important;
}

.spt-section-video .spt-card-body > * {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
}

.spt-section-video iframe {
    position: absolute;
    top: 0;
    left: 0;

    width: 100% !important;
    height: 100% !important;

    border: 0;
}


/* ==========================================================
   SPT SINGLE — SERVIÇOS EM DESTAQUE
   ========================================================== */

.spt-servicos {
  margin-top: 10px;
}

.spt-servico-item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  position: relative;
}

.spt-servico-item:last-child {
  border-bottom: none;
}

.spt-servico-nome {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
}

.spt-servico-nome::before {
  content: "✔";
  margin-right: 8px;
  color: #333;
  font-weight: bold;
}

.spt-servico-descricao {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}