body, html {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
    position: relative;
}

body {
    background: 
        linear-gradient(rgba(175, 228, 179, 0.466), rgba(175, 228, 179, 0.644)), 
        url('../img/imagem-fundo.png');
    background-position: right top; 
    background-size: 130%; 
    background-repeat: no-repeat;
    background-attachment: fixed; 
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(0.7);
    z-index: -2;
}

.main-content-wrapper {
    display: flex;
    justify-content: center;
    padding: 5px;
    gap: 10px;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
}

.left-column {
    align-items: left;
    padding-left: 2.5rem;
}

.right-column {
    align-items: flex-end;
    padding-right: 2.5rem;
}

.logo-sociedade-desktop{
    width: 100%;
    max-width: 140px; 
    height: auto;
}

.logo-tech-desktop {
    width: 100%;
    max-width: 100px; 
    height: auto;
}

.logo-sociedade-mobile, .logo-tech-mobile {
    display: none !important; 
}

.desenvolvido-por-desktop {
    text-align: center; 
    color: #000000;
    font-size: 0.6rem; 
    margin-bottom: -15px; 
}

.desenvolvido-por-mobile {
    display: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.info-card {
    background-color: rgba(0, 0, 0, 0);
    color: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.5rem; /* Diminuído para um encaixe mais apertado */
    position: relative;
    text-align: center;
    height: 100%;
}

.logos-top-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; 
    margin-bottom: 20px; 
}

.logo-top {
    max-width: 120px;
    height: auto;
}

.teatro-div {
    font-size: 2rem;
    background-color: #008C45;
    padding: 0 10px;
}

.teatro-div p {
    margin: 0;
}


.info-card .event-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.info-card h1 {
    font-size: 3rem;
    color: #CE2B37;
    font-weight: bold;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    font-family: 'Baskervville SC';
    font-weight: 1;
}


.info-card .venue {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #000000;
}

.info-card .venue small {
    display: block;
    font-size: 0.8em;
}

.info-card .registration-title {
    font-size: 3rem;
    font-weight: bold;
    color:#008C45;
    margin: 0;
}

.info-card .date-time {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #000000;
}

.info-card .date {
    margin-right: 1.5rem;
}

.info-card .time {
    margin-left: 1.5rem;
}

.form-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.25rem; /* Diminuído para o mínimo */
    position: relative;
    height: 100%;
}

.form-card form {
    background-color: #CE2B37;
    padding: 1rem; /* Diminuído para um encaixe mais justo */
    padding-top: 0.6rem;
    border-radius: 10px;
    box-shadow: 1px 2px 0 0px rgba(0, 0, 0, 0.2);

}

.form-card .form-label {
    color: #ffffff;
    font-weight: bold;
}

.form-label {
    margin-bottom: .2rem;
}

.form-card .form-control, .form-card .form-select {
    border-radius: 8px;
    border: none;
}

.form-card .form-check-label {
    margin-left: 0.5rem;
}

.form-card .valor-pix {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    background-color: #ccc;
}

.form-card .btn-primary {
    background-color: #ffffff;
    border: none;
    color: #212529;
    font-weight: bold;
    border-radius: 8px;
}

.form-card .btn-primary:hover {
    background-color: #AFE4B3;
}

.form-card .bi {
    margin-left: 0.5rem;
}

.italian-flag-container {
    position: fixed; 
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    display: flex;
    flex-direction: column; 
    z-index: 100;
}

.stripe {
    height: 100%;
    flex: 1;
}

.stripe.green {
    background-color: #008C45;
}

.stripe.white {
    background-color: #F4F5F0;
}

.stripe.red {
    background-color: #CD212A;
}

@media (max-width: 1200px) {
    .info-card h1 {
        font-size: 2.2rem;
    }

    .info-card .registration-title {
        font-size: 2.5rem;
    }

    .info-card .venue {
        font-size: 1.4rem;
    }

    .info-card .date-time {
        font-size: 1.8rem;
    }

    .form-card form {
        padding: 1.5rem;
    }
}

@media (max-width: 992px) {
    body {
        background: 
            linear-gradient(rgba(175, 228, 179, 0.466), rgba(175, 228, 179, 0.644)), 
            url('../img/imagem-fundo.png');
        
        background-position: center top; 
        background-size: 400%; 
        background-repeat: no-repeat;
        background-attachment: fixed; 
    }

    .main-container {
        flex-direction: column;
        height: auto;
        justify-content: flex-start;
    }

    .main-content-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }

    .left-column, .right-column {
        width: 100%;
        padding: 0;
    }

    .left-column {
        text-align: center;
    }

    .right-column {
        margin-top: 20px;
    }

    .logo-above-card {
        max-width: 100px;
        margin-bottom: 10px;
    }

    .info-card, .form-card {
        width: 100%;
        min-height: auto;
        padding: 1.5rem;
    }

    .info-card h1 {
        font-size: 3rem;
    }

    .info-card .registration-title {
        font-size: 3rem;
    }

    .info-card .venue {
        font-size: 1.5rem;
    }

    .info-card .date-time {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .info-card .date, .info-card .time {
        margin: 0;
    }
    
    .logo-sociedade-mobile {
        display: block !important;
        width: 100%;
        max-width: 250px;
        height: auto;
        margin-bottom: 20px;
    }
    .desenvolvido-por-desktop {
        display: none;
    }
    .desenvolvido-por-mobile {
        display: block;
        text-align: center; 
        color: #000000;
        font-size: 1rem; 
        margin-bottom: -15px; 
    }
    .logo-tech-mobile {
        display: block !important;
        width: 100%;
        max-width: 120px;
        height: auto;
        margin-bottom: 20px;
    }
    .logo-sociedade-desktop, .logo-tech-desktop {
        display: none;
    }
    .italian-flag-container {
        height: 3rem;
    }
    
    /* Layout mobile - CPF em linha separada */
    .d-md-none {
        display: block !important;
    }
    
    .d-md-block {
        display: none !important;
    }
}

/* Versão desktop - CPF fica na mesma linha do nome */
@media (min-width: 768px) {
    .cpf-field {
        order: unset; /* Remove a ordenação customizada no desktop */
    }
}

/* Estilo para texto em negrito */
.bold-text {
    font-weight: bold !important;
    font-weight: 900 !important;
}

/* Garantir que o negrito funcione no h1 */
h1 strong {
    font-weight: 900 !important;
    font-weight: bold !important;
}


/* Para notebooks - Apenas corrigir altura e scroll */
@media screen and (min-width: 768px) and (max-width: 1366px) {
    .main-container {
        min-height: 120vh !important; 
        padding-bottom: 50px !important; 
    }
    
    .main-content-wrapper {
        min-height: auto !important;
        padding-bottom: 30px !important; 
    }
    
    .form-card {
        min-height: auto !important;
        padding-bottom: 40px !important;
    }
    
    /* Garantir que o botão apareça */
    .btn-pix {
        margin-bottom: 20px !important;
        display: block !important;
        visibility: visible !important;
    }
    
    /* Forçar scroll até o final */
    body {
        min-height: 120vh !important;
    }
}

/* Estilos para o botão de download do regulamento */
.regulamento-download {
    margin: 15px 0;
    text-align: center;
}

.regulamento-btn {
    background: linear-gradient(45deg, #dc3545, #c82333) !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    font-weight: bold !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

.regulamento-btn:hover {
    background: linear-gradient(45deg, #c82333, #a71e2a) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3) !important;
    text-decoration: none !important;
}

.regulamento-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5) !important;
    color: #fff !important;
}

.regulamento-btn i {
    font-size: 1.1em !important;
}

/* Responsividade para mobile */
@media (max-width: 767px) {
    .regulamento-download {
        margin: 10px 0;
    }
    
    .regulamento-btn {
        font-size: 0.9em !important;
        padding: 6px 12px !important;
        border-radius: 20px !important;
    }
}

/* Responsividade para desktop */
@media (min-width: 768px) {
    .regulamento-download {
        margin: 20px 0;
    }
    
    .regulamento-btn {
        font-size: 1em !important;
        padding: 10px 20px !important;
    }
}

/* Estilos para página de inscrições encerradas - VERSÃO ATUALIZADA 2024 */
.inscricoes-encerradas {
    padding: 20px;
    text-align: center;
}

.info-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.regulamento-section {
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
    border: 2px solid #f8d7da;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.regulamento-section h5 {
    color: #721c24;
    font-weight: bold;
}

.regulamento-section .text-muted {
    color: #6c757d !important;
}

/* Responsividade para mobile - inscrições encerradas */
@media (max-width: 767px) {
    .inscricoes-encerradas {
        padding: 15px;
    }
    
    .info-box, .regulamento-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .inscricoes-encerradas h2 {
        font-size: 1.5rem;
    }
    
    .inscricoes-encerradas .lead {
        font-size: 1rem;
    }
}