/* ========================================
   CSS PARA PÁGINAS PÚBLICAS - ISOLADO
   ======================================== */
b {color: black !important;}
/* Reset básico para páginas dinâmicas */
.dynamic-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2d3748;
}

/* Classes de tipografia padronizadas - mesmo padrão do site principal */
.main-heading,
.it-content .main-heading,
.ti-content .main-heading,
.block-text .main-heading,
.block-hero .main-heading {
    font-family: 'Raleway', sans-serif !important;
    font-size: 38px !important;
    font-weight: bold !important;
    letter-spacing: 0 !important;
    margin: 20px 0 !important;
}

.sub-heading,
.it-content .sub-heading,
.ti-content .sub-heading,
.block-text .sub-heading,
.block-hero .sub-heading {
    font-family: 'Roboto', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    margin: 20px 0 20px 0px !important;
    line-height: 1.6 !important;
}

.dynamic-page * {
    box-sizing: border-box;
}

/* Container principal */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Bloco Hero */
.block-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #B9CF38 0%, #6fa341 100%);
    border-radius: 15px;
    padding: 60px 40px;
    margin-bottom: 40px;
    overflow: hidden;
}

/* Hero Full Width */
.block-hero.hero-full-width {
    border-radius: 0;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

@media (min-width: 1200px) {
    .block-hero.hero-full-width {
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
    }
}

.block-hero.has-bg {
    background-size: cover;
    background-position: center;
}

.block-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.block-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Alinhamento de Texto do Hero */
.block-hero.text-left {
    text-align: left;
    justify-content: flex-start;
}

.block-hero.text-center {
    text-align: center;
    justify-content: center;
}

.block-hero.text-right {
    text-align: right;
    justify-content: flex-end;
}

.block-hero.text-left .hero-text,
.block-hero.text-right .hero-text {
    margin-left: 0;
    margin-right: 0;
}

.block-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.block-hero .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.block-hero .hero-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.block-hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.block-hero .hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.block-hero .hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Bloco de Texto */
.block-text {
    padding: 40px 0;
    margin-bottom: 40px;
}

.block-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.block-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.block-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 15px;
}

.block-text ul,
.block-text ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.block-text li {
    margin-bottom: 10px;
    color: #4a5568;
}

.block-text a {
    color: #667eea;
    text-decoration: underline;
}

.block-text a:hover {
    color: #764ba2;
}

/* Bloco de Imagem */
.block-image {
    margin-bottom: 40px;
    text-align: center;
}

.block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.block-image .image-caption {
    margin-top: 15px;
    font-style: italic;
    color: #718096;
    font-size: 0.95rem;
}

/* Bloco de Colunas */
.block-columns {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
    padding: 40px 0;
}

.block-columns.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.block-columns.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.block-columns.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.block-column {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.block-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.block-column h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
}

.block-column p {
    color: #4a5568;
    line-height: 1.2;
}

/* Bloco de Galeria */
.block-gallery {
    margin-bottom: 40px;
    padding: 40px 0;
}

.block-gallery h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Bloco de Vídeo */
.block-video {
    margin-bottom: 40px;
    padding: 40px 0;
}

.block-video h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Bloco de Citação */
.block-quote {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 40px;
    border-left: 5px solid #667eea;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.block-quote p {
    font-size: 1.3rem;
    font-style: italic;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.8;
}

.block-quote cite {
    display: block;
    font-size: 1rem;
    color: #718096;
    font-style: normal;
    font-weight: 600;
}

/* Bloco de Separador */
.block-divider {
    margin: 60px 0;
    text-align: center;
}

.block-divider hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #667eea 50%, transparent 100%);
    margin: 0 auto;
    max-width: 300px;
}

/* Bloco de Botão/CTA */
.block-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.block-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.block-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.block-cta .cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.block-cta .cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Informações do Evento */
.event-info {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.event-info h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
}

.event-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #4a5568;
}

.event-detail i {
    font-size: 1.2rem;
    color: #667eea;
    margin-right: 15px;
    width: 25px;
}

.event-detail span {
    font-size: 1.1rem;
}

/* Responsivo para telas médias */
@media (max-width: 991px) {
    .main-heading,
    .it-content .main-heading,
    .ti-content .main-heading,
    .block-text .main-heading,
    .block-hero .main-heading {
        font-size: 32px !important;
    }
    
    .sub-heading,
    .it-content .sub-heading,
    .ti-content .sub-heading,
    .block-text .sub-heading,
    .block-hero .sub-heading {
        font-size: 17px !important;
    }
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .main-heading,
    .it-content .main-heading,
    .ti-content .main-heading,
    .block-text .main-heading,
    .block-hero .main-heading {
        font-size: 28px !important;
    }
    
    .sub-heading,
    .it-content .sub-heading,
    .ti-content .sub-heading,
    .block-text .sub-heading,
    .block-hero .sub-heading {
        font-size: 16px !important;
    }
    
    .block-hero h1 {
        font-size: 2rem;
    }
    
    .block-hero p {
        font-size: 1rem;
    }
    
    .block-columns.cols-2,
    .block-columns.cols-3,
    .block-columns.cols-4 {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .gallery-item img {
        height: 150px;
    }
    
    .block-text h2 {
        font-size: 1.5rem;
    }
    
    .block-cta h2 {
        font-size: 1.8rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Lightbox para galeria */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 100000;
}


.gallery-lightbox-close:hover {
    background: white;
    color: #333;
}

/* Blocos Imagem + Texto / Texto + Imagem */
.block-image-text,
.block-text-image {
    padding: 60px 0;
    background: #fff;
}

.image-text-wrapper,
.text-image-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.it-image img,
.ti-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.it-image img:hover,
.ti-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.it-content,
.ti-content {
    padding: 20px;
}

.it-content h1, .it-content h2, .it-content h3,
.ti-content h1, .ti-content h2, .ti-content h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
}

.it-content h1, .ti-content h1 {
    font-size: 2.5rem;
}

.it-content h2, .ti-content h2 {
    font-size: 2rem;
}

.it-content h3, .ti-content h3 {
    font-size: 1.5rem;
}

.it-content p, .ti-content p {
    color: #grey;
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

.it-content ul, .it-content ol,
.ti-content ul, .ti-content ol {
    margin: 15px 0;
    padding-left: 25px;
    color: #grey;
}

.it-content li, .ti-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsivo */
@media (max-width: 768px) {
    .image-text-wrapper,
    .text-image-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .block-image-text,
    .block-text-image {
        padding: 40px 0;
    }
    
    .it-content h1, .ti-content h1 {
        font-size: 2rem;
    }
    
    .it-content h2, .ti-content h2 {
        font-size: 1.5rem;
    }
}
