/* Variáveis CSS */
:root {
    --primary-color: #001990;
    --secondary-color: #2D3142;
    --tertiary-color: #2563eb;
    --accent-color: #FF6B6B;
    --accent-secondary: #2EC4B6;
    --accent-tertiary: #FFD93D;
    --blue-light: #4F69FF;
    --text-dark: #2D3142;
    --text-light: #6b7280;
    --bg-light: #F7F9FC;
    --bg-secondary: #E5E9F2;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #001990 0%, #4F69FF 100%);
    --gradient-vibrant: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
    --gradient-verso: linear-gradient(135deg, #2D3142 0%, #6b7280 100%);
}

/* Base Geral */
* {
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
}

/* Estilos de Seção */
.custom-section {
    padding: 100px 0;
}

.details,
.key-benefits {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    font-style: italic;
    text-align: center;
}

/* Componentes Comuns */
.cta,
.disclaimer,
.benefit,
.service-card {
    text-align: center;
}

.cta,
.cta h3,
.disclaimer,
.disclaimer p,
.benefit-img,
.cta-button,
.portfolio-image,
.service-icon {
    color: var(--white);
}

/* Botão CTA */
.cta-button {
    background-color: var(--accent-color);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: .3s;
    display: inline-block;
    text-decoration: none;
    padding: 12px 24px;
    min-height: 50px;
    width: auto;
    font-size: clamp(14px, 2.5vw, 16px);
    white-space: normal;
    line-height: 1.2;
    margin-top: 8px;
    min-width: 200px; /* Mantido para botões de seção */
}

.cta-button--full {
    width: 100%;
    min-width: unset;
    margin-top: 16px;
}

.cta-button:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, .4);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--blue-light));
    z-index: 9999;
    transition: width .1s ease-out;
}

/* Header */
.custom-header {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 20px rgba(0, 25, 144, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.custom-nav {
    padding: 1rem 0;
}

.navbar-brand img {
    width: 180px;
    height: 45px;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    position: relative;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.event-subscription {
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0.8)) center/cover, url('../img/background.png') center/cover;
    height: 85vh; /* Ajustado para vh para melhor adaptação */
    min-height: 666px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 6.7rem 1rem;
    gap: 2rem;
}

.disclaimer {
    max-width: 500px;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
}

.disclaimer .hero-text {
    font-size: clamp(2rem, 3.5vw, 2.5em);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.disclaimer p {
    font-size: 1.2em;
    margin-bottom: .5em;
}

.disclaimer .event-date {
    font-weight: 600;
    color: var(--accent-secondary);
    font-size: 1.3em;
    margin-top: .5rem;
}

/* Formulário de Inscrição */
.subscription-form {
    max-width: 362px;
    background-color: rgba(255, 255, 255, 0.6); /* Aumentado a opacidade para melhor leitura */
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    padding: 24px; /* Aumentado o padding */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.subscription-form p {
    font-size: 1.3em; /* Reduzido levemente */
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark); /* Corrigido para dark text */
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    width: 100%;
}

.form-group label {
    color: var(--);
    font-size: .85em; /* Aumentado levemente */
    margin-bottom: 3px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 8px 10px; /* Aumentado o padding */
    border-radius: 5px;
    border: 1px solid #ddd;
    outline: 0;
    font-size: .9em; /* Aumentado levemente */
    height: 38px; /* Aumentado a altura */
    background-color: var(--white);
    color: var(--text-dark);
    transition: border-color .3s, box-shadow .3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 25, 144, .1);
}

/* Benefits Section */
.key-benefits {
    padding: 100px 0 70px; /* Ajustado para espaçamento melhor entre seções */
}

.benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.benefit {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.benefit-img {
    height: 200px;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Services Section */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 25, 144, .1);
    transition: transform .3s, box-shadow .3s;
    border: 1px solid var(--bg-secondary);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 25, 144, .15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-vibrant);
    border-radius: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

/* Portfolio Section */
.portfolio-item {
    background: var(--white);
    overflow: hidden;
    transition: transform .3s;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 25, 144, .1);
}

.portfolio-item:hover {
    transform: translateY(-5px); /* Alterado de translateX para translateY para ser mais sutil */
}

.portfolio-image {
    height: 200px;
    background: var(--gradient-verso);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
}

.portfolio-info {
    padding: 1.25rem;
}

/* Details Section (Diferenciais) */
.details {
    padding: 100px 0;
}

.detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 4rem;
    gap: 2rem;
}

.detail:last-child {
    margin-bottom: 0;
}

.image-with-credits {
    flex: 1;
    min-width: 0;
}

.detail-description {
    flex: 1;
    min-width: 0;
}

.detail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 25, 144, .1);
}

.detail-description h4 { /* Alterado de h3 para h4, mais apropriado para o artigo */
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.detail-description p {
    font-size: clamp(.9rem, 2.5vw, 1.1rem);
    line-height: 1.6;
}

.detail-description ul {
    list-style: none;
    padding: 0;
}

.detail-description li {
    margin-bottom: .75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: clamp(.85rem, 2.2vw, 1rem);
}

.detail-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: 700;
}

.image-credits {
    display: block;
    margin-top: .5rem;
    font-size: clamp(.6rem, 1.5vw, .7rem);
    text-align: start;
    line-height: 1.4;
    color: var(--text-light);
}

.image-credits a {
    color: var(--text-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .3s;
}

/* CTA Section (Rodapé) */
.cta {
    padding: 80px 0;
    background: var(--gradient);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
}

.cta h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Footer */
.custom-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.custom-footer p {
    color: var(--white);
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-tertiary);
    text-align: center;
}

.footer-section p,
.address-details p {
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    text-align: center;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-tertiary);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.social-links a:hover {
    background: var(--tertiary-color);
    transform: translateY(-2px);
    color: white;
}

.copyright-text {
    font-size: 0.9rem;
}

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

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* Media Queries para Responsividade */

/* Desktop Médio e Tablets em Paisagem (max-width: 1024px) */
@media (max-width: 1024px) {
    /* Hero Section */
    .event-subscription {
        height: auto;
        min-height: 700px;
        flex-direction: column;
        padding: 5rem 1rem 3rem;
    }

    .disclaimer,
    .subscription-form {
        max-width: 90%;
        margin-bottom: 1.5rem;
    }

    .disclaimer .hero-text {
        font-size: 2.2em;
    }
    
    /* Navbar */
    .custom-header {
        position: static; /* Header estático em telas menores é comum */
        box-shadow: none;
    }

    /* Outras Seções */
    .custom-section,
    .key-benefits,
    .details {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Tablets em Retrato e Mobile Grande (max-width: 768px) */
@media (max-width: 768px) {
    /* Navbar */
    .custom-nav {
        padding: 0.5rem 0;
    }
    
    .navbar-toggler {
        border-color: rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        border-radius: 0 0 8px 8px;
        margin: 0 -12px;
        padding: 10px 15px;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        padding: 0.5rem 0;
    }

    /* Hero Section */
    .event-subscription {
        padding: 2rem 1rem;
        min-height: 550px;
    }

    .disclaimer {
        text-align: center;
    }

    .disclaimer .hero-text {
        font-size: 1.8em;
        margin-bottom: 1rem;
    }
    
    .subscription-form {
        max-width: 100%;
    }

    /* Benefits */
    .benefits {
        flex-direction: column;
        gap: 1.5rem;
    }

    .benefit {
        max-width: 100%;
    }

    /* Details Section */
    .detail {
        flex-direction: column;
        text-align: center;
    }
    
    .detail--reverse-on-mobile {
        flex-direction: column-reverse; /* Reverte a ordem para imagem em cima */
    }

    .image-with-credits,
    .detail-description {
        min-width: 100%;
    }

    .detail-description ul {
        text-align: left;
    }
    
    .detail-description li {
        text-align: left;
        margin: 0 auto 0.75rem;
    }

    /* CTA Section */
    .cta h3 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-section h3,
    .footer-section p,
    .footer-links,
    .copyright-text,
    .social-links {
        text-align: center !important;
    }
    
    .address-details p {
        text-align: center;
    }
}

/* Mobile Padrão (max-width: 480px) */
@media (max-width: 480px) {
    /* Base */
    .custom-section {
        padding: 40px 0;
    }
    
    .section-subtitle {
        margin-bottom: 2rem;
    }

    /* Hero Section */
    .event-subscription {
        padding: 1.5rem 0.5rem;
        min-height: 500px;
    }

    .disclaimer {
        padding: 0;
    }

    .disclaimer .hero-text {
        font-size: 1.6em;
    }

    /* Formulário */
    .subscription-form {
        padding: 15px;
    }
    
    .subscription-form p {
        font-size: 1.1em;
    }

    /* CTA Button */
    .cta-button {
        padding: 10px 20px;
        min-height: 45px;
        font-size: 14px;
    }

    /* Details Section */
    .detail {
        gap: 1.5rem;
    }
    
    .detail-description h4 {
        font-size: 1.4rem;
    }

    /* Footer */
    .custom-footer {
        padding: 2rem 0 0.5rem;
    }
}

/* Mobile Pequeno (max-width: 360px) */
@media (max-width: 360px) {
    /* Base */
    .section-title {
        font-size: 1.8rem;
    }

    /* Hero Section */
    .disclaimer .hero-text {
        font-size: 1.4em;
    }
    
    /* Formulário */
    .form-group input,
    .form-group select {
        font-size: 0.8em;
    }
    
    .cta-button {
        font-size: 12px;
    }
}