:root {
    --whatsapp-green: #25D366;
    --whatsapp-dark-green: #128C7E;
    --whatsapp-teal-green: #075E54;
    --whatsapp-light: #dcf8c6;
    --whatsapp-gray: #ece5dd;
    --shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

@media (max-width: 768px) {
    .single-post-content h1 {
        font-size: 32px;
    }
}

.post-content img{
    border-radius: 64px;
}

/* Blog - Artigo Singular */
.single-post-content {
    color: #444;
}

/* Parágrafos */
.single-post-content p {
    margin-bottom: 24px;
}

/* Títulos */
.single-post-content h1,
.single-post-content h2,
.single-post-content h3,
.single-post-content h4,
.single-post-content h5,
.single-post-content h6{
    color: #484E83;
    font-weight: 700;
}

.single-post-content h2 {
    margin: 48px 0 20px;
    font-size: 2rem;
    line-height: 1.3;
}

.single-post-content h3 {
    margin: 36px 0 16px;
    font-size: 1.5rem;
    line-height: 1.4;
}

/* Links */
.single-post-content a {
    color: #D65237;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: opacity .2s ease;
}

.single-post-content a:hover {
    opacity: 0.8;
}

/* Imagens */
.single-post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 32px;
    margin: 32px auto;
}

/* Listas */
.single-post-content ul,
.single-post-content ol {
    margin: 24px 0;
    padding-left: 32px;
}

.single-post-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Blockquote */
.single-post-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;

    background: #F2EEE9;
    border-left: 5px solid #D65237;
    border-radius: 16px;

    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;

    position: relative;
}

/* Aspas decorativas */
.single-post-content blockquote::before {
    content: "“";
    position: absolute;
    top: 8px;
    left: 18px;

    font-size: 3rem;
    line-height: 1;
    color: rgba(214, 82, 55, .2);
}

.single-post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Separadores */
.single-post-content hr {
    margin: 48px 0;
    border: none;
    border-top: 1px solid #e5e5e5;
}

/* Home Site*/
main .elementor {
    overflow: hidden;
}
.edn-frase-rotativa {
    display: block;
    width: 100vw !important;
    position: relative;
    left: 50%;
    transform: translatex(-50%);
    overflow: hidden;
    
}
.edn-frase-rotativa span {
        font-family: 'Bricolage Grotesque';
        font-size: 80px;
        font-weight: 700;
        color: #484e83;
    }

@media screen and (max-width: 768px){
     .edn-frase-rotativa span {
        font-size: 60px;
        }
}

/* Overlay */
.whatsapp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    
    &.open {
        opacity: 1;
        visibility: visible;
    }
}

.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    
    & .chat-container {
        width: 300px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        background: white;
        
        &.open {
            max-height: 80vh !important;
            opacity: 1;
            overflow-y: auto !important;
            transform: translateY(0);
        }
        
        & .chat-header {
            background: var(--whatsapp-teal-green);
            color: white;
            padding: 12px 15px;
            border-radius: 10px 10px 0 0;
            display: flex;
            align-items: center;
            gap: 10px;
            
            & .avatar {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background: white;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 5px;
                
                & img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                    padding: 3px;
                }
            }
            
            & .header-text {
                flex: 1;
                
                & h4 {
                    margin: 0;
                    font-size: 14px;
                }
                
                & p {
                    margin: 0;
                    font-size: 11px;
                    opacity: 0.8;
                }
            }
            
            & .close-btn {
                background: none;
                border: none;
                color: white;
                cursor: pointer;
                font-size: 24px;
            }
        }
        
        & .chat-messages {
            padding: 15px;
            background: var(--whatsapp-gray);
            max-height: 300px;
            overflow-y: auto;
            
            & .message {
                margin-bottom: 15px;
                display: flex;
                
                &.received {
                    justify-content: flex-start;
                    
                    & .bubble {
                        background: white;
                        border-radius: 0 8px 8px 8px;
                        color: #333;
                    }
                }
                
                &.sent {
                    justify-content: flex-end;
                    
                    & .bubble {
                        background: var(--whatsapp-light);
                        border-radius: 8px 0 8px 8px;
                        color: #333;
                    }
                }
                
                & .bubble {
                    padding: 8px 12px;
                    max-width: 90%;
                    box-shadow: var(--shadow);
                    
                    & p {
                        margin: 0;
                        font-size: 13px;
                    }
                }
            }
        }
        
        & .chat-form {
            padding: 15px;
            background: white;
            border-radius: 0 0 10px 10px;
            
            .input-group {
                position: relative;
            }
            
            .erro-validacao {
                background: rgb(220, 53, 69);
                font-size: 10px;
                margin-top: 0;
                position: absolute;
                color: white;
                padding: 0 6px;
                border-radius: 4px;
                bottom: -7px;
                right: 0;
                pointer-events: none;
                user-select: none;
            }
            
            & form {
                display: flex;
                flex-direction: column;
                gap: 10px;
                
                & input, & textarea {
                    padding: 8px 10px !important;
                    border: 1px solid #ddd !important;
                    border-radius: 12px !important;
                    font-size: 14px !important;
                    resize: none !important;
                    
                    &:focus {
                        outline: none  !important;
                        border-color: var(--whatsapp-green)  !important;
                    }
                }
                
                & button {
                    background: var(--whatsapp-green);
                    color: white;
                    border: none;
                    padding: 10px;
                    border-radius: 20px;
                    cursor: pointer;
                    font-weight: bold;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 8px;
                    transition: background 0.2s;
                    
                    &:hover {
                        background: var(--whatsapp-dark-green);
                    }
                    
                    &:disabled {
                        opacity: 0.7;
                        cursor: not-allowed;
                    }
                }
            }
        }
    }
    
    & .whatsapp-button {
        width: 60px;
        height: 60px;
        background: var(--whatsapp-green);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transition: all 0.2s;
        
        &:hover {
            transform: scale(1.1);
            background: var(--whatsapp-dark-green);
        }
        
        & .whatsapp-icon {
            color: white;
            font-size: 30px;
        }
    }
}

/* Spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}


/* Carrossel */
.carrossel-auditorio {
  width: 100%;
  position: relative;
  padding: 40px 0 60px;
  background: transparent;
}

/* Permite ver os slides vizinhos */
.carrossel-auditorio .splide__track {
  overflow: visible !important;
}

/* Mascara o que vazar para fora do wrapper */
.carrossel-img-container {
  overflow: hidden;
  padding: 0 80px; /* espaço lateral para o peek */
}

.carrossel-auditorio .splide__slide {
  height: 420px;
  border-radius: 56px;
  overflow: hidden;
  position: relative;
  transition: transform .5s ease, opacity .5s ease;
}

.carrossel-auditorio .splide__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carrossel-auditorio .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carrossel-auditorio .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.75) 0%,
    rgba(0,0,0,.35) 40%,
    rgba(0,0,0,.10) 70%,
    transparent 100%
  );
}

.carrossel-auditorio .slide-texto {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 40px;
  color: #fff;
  z-index: 2;
}

.carrossel-auditorio .slide-texto h3 {
  margin: 0 0 12px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.carrossel-auditorio .slide-texto p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255,255,255,.95);
}

/* Setas — ficam fora do clip, no wrapper externo */
.carrossel-auditorio .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f2f2f2 !important;
  opacity: 1 !important;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .3s ease;
  z-index: 10;
}

.carrossel-auditorio .splide__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #000;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carrossel-auditorio .splide__arrow--prev { left: 16px; }
.carrossel-auditorio .splide__arrow--next { right: 16px; }

.carrossel-auditorio .splide__arrow:disabled {
  opacity: 0 !important;
  pointer-events: none;
}

/* Dots */
.carrossel-auditorio .splide__pagination {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.carrossel-auditorio .splide__pagination__page {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #d7d7d7;
  border: none;
  padding: 0;
  opacity: 1;
  cursor: pointer;
  transition: all .3s ease;
  display: block;
}

.carrossel-auditorio .splide__pagination__page.is-active {
  width: 42px;
  background: #7d7d7d;
  transform: none;
}

/* Responsivo */
@media (max-width: 1024px) {
  .carrossel-auditorio-wrapper-clip { padding: 0 60px; }
  .carrossel-auditorio .splide__slide  { height: 320px; border-radius: 40px; }
  .carrossel-auditorio .slide-texto h3 { font-size: 32px; }
  .carrossel-auditorio .slide-texto p  { font-size: 16px; }
}

@media (max-width: 767px) {
  .carrossel-auditorio { padding: 20px 0 50px; }
  .carrossel-auditorio-wrapper-clip { padding: 0 36px; }
  .carrossel-auditorio .splide__slide  { height: 220px; border-radius: 24px; }
  .carrossel-auditorio .splide__arrow--prev { left: 4px; }
  .carrossel-auditorio .splide__arrow--next { right: 4px; }

  .carrossel-auditorio .slide-texto {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .carrossel-auditorio .slide-texto h3 {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .carrossel-auditorio .slide-texto p {
    font-size: 13px;
    line-height: 1.4;
  }

  .carrossel-auditorio .splide__arrow {
    width: 36px;
    height: 36px;
  }

  .carrossel-auditorio .splide__arrow svg {
    width: 15px;
    height: 15px;
  }
}


.busca-blog-v2 {
    display: flex;
    gap: 8px;
    
    input {
        border: none !important;
        outline: none !important;
        border-radius: 16px !important;
        background: #F2EEE9 !important;
        padding: 12px 16px !important;
        font-weight: 500 !important;
    }
    
    button {
        border: none !important;
        outline: none !important;
        background: #d65237 !important;
        color: white !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
    }
}

.blog-list__card-v2 {
    background: #F2EEE999;
    padding: 16px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    
    .blog-list__image-v2 {
        margin-bottom: 8px;
        
        img {
            width: 100%;
            aspect-ratio: 5/3;
            object-fit: cover;
            border-radius: 16px;
            margin: 0 !important;
            opacity: 1 !important;
        }
    }
    
    .blog-list__content-v2 {
        display: flex;
        flex-direction: column;
        flex: 1;
        height: 100%;
        
        .blog-list__categories-v2 {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            
            .blog-list__category-v2 {
                color: #D65237;
                text-decoration: none;
                font-size: 13px;
                font-weight: 600;
                line-height: 1.2;
                
                &:not(:last-of-type):after {
                    content: "•";
                    color: #444;
                }
            }
        }
        
        .blog-list__title-v2 {
            font-size: 20px;
            line-height: 1.2;
            margin: 4px 0 8px !important;
            font-weight: bold;
            
            a {
                color: #484e83;
            }
        }
        
        .blog-list__summary-v2 {
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 2;
              overflow: hidden;
              font-size: 14px;
              font-weight: 400;
              height: 100%;
        }
        
        .blog-list__date-v2 {
            font-size: 12px;
        }
        
        .blog-list__link-v2 {
            color: #D65237;
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
        }
    }
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;

    .page-numbers {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        min-width: 40px;
        height: 40px;
        padding: 0 12px;

        border: 1px solid #e4e4e4;
        border-radius: 8px;

        color: #222;
        background-color: transparent;

        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        text-decoration: none;

        transition:
            color 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease;

        &:hover {
            color: #fff;
            background-color: #484E83;
            border-color: #484E83;
        }

        &:focus-visible {
            outline: 2px solid #222;
            outline-offset: 3px;
        }

        &.current {
            color: #fff;
            background-color: #484E83;
            border-color: #484E83;
            cursor: default;
        }

        &.dots {
            min-width: auto;
            padding: 0 4px;
            border-color: transparent;

            &:hover {
                color: #222;
                background-color: transparent;
                border-color: transparent;
            }
        }

        &.prev,
        &.next {
            font-size: 18px;
        }
    }
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 32px;
}


@media(max-width:1024px){
    .blog-list{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:767px){
    .blog-list{
        grid-template-columns:1fr;
    }

    .blog-list__title{
        font-size:20px;
    }

    .blog-list__content{
        padding:18px;
    }
}