/* Importação de fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap'); /* Uma opção secundária */

/* Cores e Variáveis para facilitar a manutenção */
:root {
    --primary-color: #007bff; /* Azul vibrante */
    --secondary-color: #6c757d; /* Cinza para botões secundários */
    --accent-color: #28a745; /* Verde para sucesso/destaque */
    --text-dark: #333;
    --text-light: #f8f9fa;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --font-family-primary: 'Open Sans', sans-serif;
    --font-family-secondary: 'Roboto', sans-serif;
    --font-size-base: 1.25rem; /* Fonte base maior */
    --font-size-large: 1.75rem;
    --font-size-xl: 2.5rem;
    --padding-section: 40px 0;
}

/* Reset básico e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base); /* Aumenta o tamanho da fonte padrão */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-secondary);
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 { font-size: var(--font-size-xl); }
h2 { font-size: var(--font-size-large); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 15px;
    font-size: var(--font-size-base); /* Garante que parágrafos sejam grandes */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: darken(var(--primary-color), 10%); /* Escurece a cor no hover */
}

ul {
    list-style: none;
}

/* Botões */
.btn-primary, .btn-secondary, .btn-calendar-nav {
    display: inline-block;
    padding: 15px 30px;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: darken(var(--secondary-color), 10%);
}

.btn-large {
    padding: 20px 40px;
    font-size: var(--font-size-large);
}

.btn-small {
    padding: 8px 15px;
    font-size: 1rem;
}

.arrow-icon {
    margin-left: 10px;
    font-size: 1.5rem;
    vertical-align: middle;
}

/* Ícones (usar fontes de ícones como Font Awesome ou criar seus próprios) */
.icon-phone::before { content: '📞'; margin-right: 8px; }
.icon-mail::before { content: '✉️'; margin-right: 8px; }
.icon-map::before { content: '📍'; margin-right: 8px; }
.icon-calendar::before { content: '📅'; margin-right: 8px; }
.icon-location::before { content: '🗺️'; margin-right: 8px; }
.icon-pix::before { content: '💳'; margin-right: 8px; } /* Ícone genérico de pagamento */
.icon-bank::before { content: '🏦'; margin-right: 8px; }
.icon-credit-card::before { content: '💰'; margin-right: 8px; }

/* Header */
.main-header {
    background-color: var(--bg-white);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    display: flex;
    align-items: center;
}

.main-header .logo img {
    height: 60px; /* Tamanho do logo */
    margin-right: 15px;
}

.main-header .logo h1 {
    font-size: var(--font-size-large);
    margin: 0;
    color: var(--text-dark);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Hero Section (Página Inicial) */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/background.jpg') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 80px 0;
    display: flex;
    align-items: center;
    min-height: 500px;
}

.hero-content h2 {
    color: var(--text-light);
    font-size: var(--font-size-xl);
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: var(--font-size-large);
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Seções gerais */
section {
    padding: var(--padding-section);
    background-color: var(--bg-white);
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

section:last-of-type {
    margin-bottom: 0;
}

/* Destaques (Página Inicial) */
.highlight-events {
    background-color: var(--bg-light);
    text-align: center;
}

.highlight-events h3 {
    margin-bottom: 40px;
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.event-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-bottom: 20px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.event-card h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 15px 0 10px;
    padding: 0 20px;
}

.event-card p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    padding: 0 20px;
}

.event-card .btn-secondary {
    margin-top: 15px;
}

/* Contato */
.contact-section {
    text-align: center;
    background-color: var(--bg-white);
}

.contact-info p {
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
    margin-top: auto; /* Empurra o footer para baixo */
}

/* Calendário de Eventos */
.calendar-section {
    text-align: center;
}

.calendar-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-calendar-nav {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%; /* Botões redondos */
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-calendar-nav:hover {
    background-color: darken(var(--primary-color), 10%);
}

#currentMonthYear {
    font-size: var(--font-size-xl);
    color: var(--text-dark);
    margin: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    max-width: 900px; /* Limita a largura do calendário */
    margin: 0 auto 30px;
}

.day-name, .calendar-day {
    padding: 15px 5px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.day-name {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: bold;
}

.calendar-day {
    background-color: var(--bg-white);
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-height: 80px; /* Altura mínima para os dias */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 10px;
}

.calendar-day:hover {
    background-color: var(--bg-light);
    transform: scale(1.02);
}

.calendar-day.empty {
    background-color: var(--bg-light);
    cursor: default;
    opacity: 0.7;
}

.calendar-day.current-month {
    color: var(--text-dark);
}

.calendar-day.other-month {
    color: var(--secondary-color); /* Dias de outros meses mais claros */
}

.calendar-day span {
    font-size: 1.8rem; /* Tamanho grande para o número do dia */
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    z-index: 1; /* Para garantir que o número fique sobre o indicador */
}

.calendar-day.has-event {
    background-color: #e6f7ff; /* Fundo mais claro para dias com evento */
    border: 2px solid var(--primary-color);
}

.calendar-day.has-event span {
    color: var(--primary-color);
}

.event-indicator {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--accent-color); /* Bolinha verde para evento */
    border-radius: 50%;
    z-index: 2;
}

.calendar-day.selected {
    background-color: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
}

.calendar-day.selected span {
    color: var(--text-light);
}

.calendar-day.selected .event-indicator {
    background-color: var(--text-light);
}


/* Lista de Eventos Diários */
.events-list-daily {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    text-align: left;
}

.events-list-daily h3 {
    text-align: center;
    margin-bottom: 20px;
}

.events-list-daily ul {
    list-style: none;
    padding: 0;
}

.events-list-daily li {
    background-color: var(--bg-light);
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite quebrar linha em telas pequenas */
    gap: 10px;
}

.events-list-daily li p {
    margin: 0;
    font-size: 1.15rem;
}

.events-list-daily li .btn-small {
    white-space: nowrap; /* Evita que o botão quebre linha */
}

/* Detalhes do Evento */
.event-details-section {
    padding-top: 30px;
    text-align: left;
}

.back-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: darken(var(--primary-color), 10%);
}

.event-details-section h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.event-hero-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.event-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-info-block {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.event-info-block p {
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.event-info-block p i {
    font-size: 1.6rem;
    margin-right: 10px;
    color: var(--primary-color);
}

.event-description h3, .event-price-info h3, .event-registration h3, .event-payment-info h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.event-description p {
    font-size: 1.15rem;
    line-height: 1.8;
}

.event-price-info p {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
}

/* Formulários */
.registration-form .form-group {
    margin-bottom: 20px;
}

.registration-form label {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="tel"] {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.registration-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

.registration-form .btn-primary {
    width: 100%;
    margin-top: 20px;
}

.registration-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
}

.registration-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.registration-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Informações de Pagamento */
.payment-option {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--accent-color);
}

.payment-option h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.payment-option p {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.payment-option .btn-copy {
    background-color: var(--accent-color);
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.payment-option .btn-copy:hover {
    background-color: darken(var(--accent-color), 10%);
}

.payment-option .btn-primary.btn-large {
    background-color: var(--accent-color);
    width: auto;
    font-size: 1.25rem;
    padding: 15px 30px;
}

.payment-option .btn-primary.btn-large:hover {
    background-color: darken(var(--accent-color), 10%);
}

.payment-instructions {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-top: 30px;
    text-align: center;
}

/* Responsividade Básica */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .main-header .logo {
        margin-bottom: 15px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 1.25rem;
    }

    .event-cards {
        grid-template-columns: 1fr;
    }

    .calendar-navigation {
        flex-direction: column;
        gap: 15px;
    }

    #currentMonthYear {
        font-size: 2rem;
    }

    .calendar-grid {
        max-width: 100%;
    }

    .day-name, .calendar-day {
        padding: 10px 2px;
        font-size: 0.9rem;
        min-height: 60px;
    }

    .calendar-day span {
        font-size: 1.4rem;
    }

    .events-list-daily li p, .events-list-daily li .btn-small {
        font-size: 1rem;
    }

    .event-details-section h2 {
        font-size: 1.8rem;
    }

    .event-info-block p, .event-description p, .payment-option p {
        font-size: 1rem;
    }

    .registration-form label, .registration-form input {
        font-size: 1.1rem;
    }

    .payment-option h4 {
        font-size: 1.2rem;
    }
}