/* Estilos para a página de Palestras e Treinamentos */

.intro-palestras {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.intro-palestras::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23dee2e6" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.intro-palestras>* {
    position: relative;
    z-index: 2;
}

.intro-palestras h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.intro-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: #7A5BA0;
    margin-bottom: 30px;
    line-height: 1.4;
}

.intro-description {
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 20px;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.intro-highlight {
    font-size: 1.1rem;
    color: #7A5BA0;
    font-weight: 600;
    margin-top: 30px;
    padding: 20px;
    background: rgba(122, 91, 160, 0.1);
    border-radius: 12px;
    border-left: 4px solid #7A5BA0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Seções de Treinamentos e Palestras */
.treinamentos-section,
.palestras-section {
    padding: 80px 20px;
    background: #fff;
}

.treinamentos-section {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #7A5BA0, #9b7bb8);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Grid de Treinamentos */
.treinamentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.treinamento-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(122, 91, 160, 0.1);
    opacity: 0;
    transform: translateY(50px);
}

.treinamento-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.treinamento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7A5BA0, #9b7bb8);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.treinamento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(122, 91, 160, 0.05), rgba(155, 123, 184, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.treinamento-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(122, 91, 160, 0.15);
}

.treinamento-card:hover::before {
    transform: scaleX(1);
}

.treinamento-card:hover::after {
    opacity: 1;
}

.treinamento-card>* {
    position: relative;
    z-index: 2;
}

.treinamento-card .card-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.treinamento-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.treinamento-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.treinamento-card:hover h3 {
    color: #7A5BA0;
}

.treinamento-card p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.treinamento-card:hover p {
    color: #495057;
}

/* Grid de Palestras */
.palestras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.palestra-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(40, 167, 69, 0.1);
    opacity: 0;
    transform: translateY(50px);
}

.palestra-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.palestra-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.palestra-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.palestra-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(40, 167, 69, 0.15);
}

.palestra-card:hover::before {
    transform: scaleX(1);
}

.palestra-card:hover::after {
    opacity: 1;
}

.palestra-card>* {
    position: relative;
    z-index: 2;
}

.palestra-card .card-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.palestra-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.palestra-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.palestra-card:hover h3 {
    color: #28a745;
}

.palestra-card .speaker {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 15px;
    font-style: italic;
    transition: all 0.3s ease;
}

.palestra-card:hover .speaker {
    color: #20c997;
    transform: translateX(5px);
}

.palestra-card p:not(.speaker) {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.palestra-card:hover p:not(.speaker) {
    color: #495057;
}

/* Seção CTA */
.cta-section {
    background: linear-gradient(135deg, #7A5BA0 0%, #9b7bb8 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-section p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

.cta-highlight {
    font-weight: 600;
    font-size: 1.2rem !important;
    margin: 25px 0 !important;
}

.cta-response {
    font-size: 1rem !important;
    margin-bottom: 40px !important;
    opacity: 0.9;
}

/* Formulário de Contato */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px;
    margin-top: 40px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-of-type {
    grid-template-columns: 1fr;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    color: #495057;
    background: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #7A5BA0;
    box-shadow: 0 0 0 3px rgba(122, 91, 160, 0.1);
    transform: translateY(-2px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: linear-gradient(135deg, #7A5BA0 0%, #9b7bb8 100%);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    box-shadow: 0 8px 24px rgba(122, 91, 160, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(122, 91, 160, 0.4);
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Responsividade */
@media (max-width: 768px) {
    .intro-palestras h1 {
        font-size: 2.5rem;
    }

    .intro-subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .treinamentos-grid,
    .palestras-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .intro-palestras {
        padding: 60px 15px;
    }

    .treinamentos-section,
    .palestras-section {
        padding: 60px 15px;
    }

    .cta-section {
        padding: 60px 15px;
    }

    .treinamento-card,
    .palestra-card {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 25px 15px;
    }
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animações específicas para cada card */
.treinamento-card:nth-child(1).animate-in {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.treinamento-card:nth-child(2).animate-in {
    animation: slideInLeft 0.6s ease forwards;
    animation-delay: 0.2s;
}

.treinamento-card:nth-child(3).animate-in {
    animation: slideInRight 0.6s ease forwards;
    animation-delay: 0.3s;
}

.treinamento-card:nth-child(4).animate-in {
    animation: scaleIn 0.6s ease forwards;
    animation-delay: 0.4s;
}

.palestra-card:nth-child(1).animate-in {
    animation: slideInLeft 0.6s ease forwards;
    animation-delay: 0.1s;
}

.palestra-card:nth-child(2).animate-in {
    animation: slideInRight 0.6s ease forwards;
    animation-delay: 0.2s;
}

/* Efeitos de pulso para ícones */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.treinamento-card:hover .card-icon,
.palestra-card:hover .card-icon {
    animation: pulse 2s infinite;
}

/* Compatibilidade com o CSS existente */
.cta {
    background: #7A5BA0;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.cta .btn {
    background: white;
    color: #7A5BA0;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}