:root {
    --primary-color: #8b5e3c;
    --secondary-color: #c19a6b;
    --accent-color: #e28743;
    --text-color: #333;
    --light-bg: #f8f5f2;
    --white: #fff;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Base styles */
body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Lora', serif;
    color: var(--primary-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Header styles - Move navigation to the right */
header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Navigation styles - Align to the right */
nav {
    justify-self: end; /* Change from center to end (right) */
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Change from center to flex-end (right) */
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: flex-end; /* Align tabs to the right */
}

nav li {
    margin: 0 1.5rem; /* Increase margin between nav items */
}

nav li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600; /* Make text bold */
    font-size: 1rem;
    transition: color 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

nav li a:hover,
nav li a.active {
    color: var(--accent-color);
}

/* Add underline effect on hover and for active item */
nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

nav li a:hover::after,
nav li a.active::after {
    width: 100%;
}

/* Estilos para o logo e nome da paróquia */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.logo-container img {
    width: 80px;
    height: auto;
    border-radius: 50%;
}

/* Diocese logo styles */
.diocese-logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.diocese-logo {
    max-height: 60px;
}

.parish-name {
    display: flex;
    flex-direction: column;
}

.parish-name a {
    text-decoration: none;
}

.parish-name h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s;
}

.parish-name p {
    margin: 0;
    font-size: 0.9rem;
    color: var (--secondary-color);
    transition: color 0.3s;
}

.parish-name a:hover h1,
.parish-name a:hover p {
    color: var(--accent-color);
}

/* Main content sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* Remove padding superior quando há banner carousel */
main .banner-carousel:first-child {
    margin-top: -2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    width: calc(100% + 4rem);
}

/* Welcome section */
.welcome-section {
    text-align: center;
    margin: 1rem 0 3rem; /* Reduzido de 3rem 0 para 1rem 0 3rem */
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    order: initial;
    margin-top: 0;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Schedule section */
.schedule-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.schedule-card {
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.schedule-card:hover {
    transform: translateY(-5px);
}

.schedule-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Events section */
.events-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.event-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.9rem;
}

.event-card h3 {
    margin-top: 0.5rem;
    color: var (--accent-color);
}

/* Contact section */
.contact-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    order: 5;
}

.contact-section p {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.contact-section i {
    color: var(--accent-color);
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

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

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--white);
    opacity: 0.8;
}

.footer-column a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Estilos para o Banner Carrossel */
.carousel-container {
    width: 100%;
    position: relative;
    overflow: visible;
}

.carousel-slide {
    width: 100%;
    display: none;
    position: relative;
    animation-duration: 1.5s;
}

.carousel-slide.active {
    display: block;
    animation-name: fade;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px;
    border-radius: 0;
    display: block;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    text-align: center;
}

.carousel-caption h2 {
    margin-top: 0;
    font-size: 2rem;
    font-family: 'Lora', serif;
}

.btn-banner {
    display: inline-block;
    background-color: #9c6644;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn-banner:hover {
    background-color: #7d4f32;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.carousel-btn.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.indicator.active {
    opacity: 1;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

/* Ajuste do Banner Carrossel */
.banner-carousel {
    width: 100%;
    margin: 0;
    overflow: hidden;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    order: initial;
    margin-bottom: 2rem;
    background-color: transparent;
}

/* Calendário de Eventos */
.calendar-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    order: 3;
}

.calendar-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
}

.calendar-tab {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
}

.calendar-tab.active {
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
}

.calendar-content {
    display: none;
}

.calendar-content.active {
    display: block;
}

/* Fade in effect for calendar tabs */
.calendar-content {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: none;
}

.calendar-content.active {
    display: block;
}

.calendar-content.fade-in {
    opacity: 1;
}

.event-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-card-highlight {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-card-highlight:hover {
    transform: translateY(-5px);
}

.event-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.event-details {
    padding: 1rem;
    background-color: white;
}

.event-details h3 {
    margin-top: 0;
    color: var(--primary);
    font-family: 'Lora', serif;
}

.event-details p {
    margin-bottom: 1rem;
    color: var(--text);
}

.event-link {
    display: inline-block;
    margin-top: auto;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.event-link:hover {
    background-color: var(--primary-dark);
}

/* Estilos para a exibição da imagem do evento */
.event-image-container {
    padding: 1rem;
    border-radius: 8px;
    background-color: var(--light-bg);
    box-shadow: var(--shadow);
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s;
}

.event-full-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.event-image-details {
    text-align: center;
    width: 100%;
}

.event-image-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-theme {
    color: #e63946;
    font-weight: bold;
    margin: 0.5rem 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Seção de missas ao vivo */
.live-mass-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.live-mass-container {
    max-width: 800px;
    margin: 0 auto;
}

.live-mass-container iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.live-status {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
}

.live-now {
    background-color: #e74c3c;
    color: white;
}

.no-live {
    background-color: #95a5a6;
    color: white;
}

/* Basic Calendar Styles */
.basic-calendar {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: var(--primary-color);
    border-radius: 8px;
}

.calendar-header h3 {
    margin: 0;
    color: #ffffff; /* White text */
    padding: 8px 15px;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    flex-grow: 1;
}

.calendar-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin: 0 0.5rem;
    transition: background-color 0.3s;
}

.calendar-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #eee;
}

.day-name {
    background-color: var(--light-bg);
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.day {
    background-color: var(--white);
    padding: 0.5rem;
    min-height: 60px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.day:hover {
    background-color: var(--light-bg);
}

.day.selected {
    background-color: rgba(139, 94, 60, 0.2);
    border: 2px solid var(--primary-color);
}

.day.empty {
    background-color: #f9f9f9;
    cursor: default;
}

.day.today {
    background-color: rgba(226, 135, 67, 0.1);
}

.day.has-events .date-number {
    font-weight: 600;
}

.date-number {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.event-indicator {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.day-events {
    padding: 1rem;
    border-top: 1px solid #eee;
}

.day-events h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.events-list {
    max-height: 200px;
    overflow-y: auto;
}

.calendar-event {
    background-color: var(--light-bg);
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
}

.calendar-event h5 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.calendar-event p {
    margin: 0;
    font-size: 0.9rem;
    color: var (--text-color);
}

#calendario {
    margin-top: 2rem;
}

/* Calendário básico (para calendário de Junho) */
.basic-calendar {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.calendar-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.calendar-nav {
    background-color: var(--light-bg);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-nav:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.calendar-days {
    width: 60%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day-name {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    padding: 0.5rem 0;
}

.day {
    border-radius: 5px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    background-color: var(--light-bg);
    transition: all 0.3s;
}

.day.empty {
    background-color: transparent;
    cursor: default;
}

.day:hover:not(.empty) {
    background-color: var(--secondary-color);
    color: var(--white);
}

.day.has-events {
    border: 2px solid var(--accent-color);
}

.event-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.date-number {
    font-weight: 600;
}

.day-events {
    width: 40%;
    padding-left: 1.5rem;
}

.day-events h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.calendar-event {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    background-color: var(--light-bg);
    transition: all 0.3s;
}

.calendar-event:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.calendar-event h5 {
    margin: 0 0 0.5rem 0;
    color: var(--accent-color);
}

.calendar-event p {
    margin: 0;
    font-size: 0.9rem;
}

/* Style the event image and text for June 1 */
.day-events .event-image-container {
    margin-top: 1rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.day-events .event-full-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.day-events .event-details-text {
    padding: 1rem;
    text-align: center;
}

.day-events .event-theme {
    color: #e63946;
    font-weight: bold;
    margin: 0.5rem 0;
}

.day-events h3 {
    color: var(--primary-color);
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .basic-calendar {
        flex-direction: column;
    }
    
    .calendar-days,
    .day-events {
        width: 100%;
    }
    
    .day-events {
        padding-left: 0;
        margin-top: 1.5rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
    }
    
    header img {
        margin: 0 auto 1rem;
    }
    
    nav ul {
        flex-direction: column;
        margin: 1rem 0;
        justify-content: center; /* Keep centered on mobile for better appearance */
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    .carousel-slide img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: cover;
        background-color: transparent;
        padding: 0;
        margin: 0;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .banner-carousel {
        padding: 0;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .logo-container,
    nav,
    .diocese-logo-container {
        justify-self: center;
        margin: 0.5rem 0;
    }
    
    .diocese-logo-container {
        margin-right: 0;
    }

    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .parish-name h1 {
        font-size: 1.2rem;
    }
    
    .calendar-tabs {
        flex-direction: column;
    }
    
    .calendar-tab {
        text-align: center;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .event-highlights {
        grid-template-columns: 1fr;
    }
    
    /* Modificação do logo no header */
    .logo-container {
        width: 100%;
        justify-content: center;
        padding-right: 50px; /* Espaço para o botão */
    }
    
    /* Esconder o nome da paróquia em dispositivos móveis */
    .parish-name {
        display: none;
    }
    
    /* Ajustar o tamanho da logo e transformá-la em link para home */
    .logo-container img {
        width: 70px;
        height: auto;
        cursor: pointer;
    }
    
    /* Adicionar um container de link em volta da logo */
    .logo-link {
        display: block;
        text-align: center;
    }
}

/* Ajuste adicional para telas muito pequenas */
@media (max-width: 480px) {
    .carousel-slide img {
        max-height: 250px;
        object-fit: cover;
        background-color: transparent;
        padding: 0;
        margin: 0;
    }
    
    .banner-carousel {
        margin-top: 0;
        margin-bottom: 1rem;
    }
}

/* Parish page image container styles */
.parish-main-image {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}

.parish-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
    border-radius: 8px;
}

/* Additional styles for parish content */
.parish-section {
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.parish-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Styles for parish information */
.parish-info {
    padding: 1rem;
}

.info-section {
    margin-bottom: 2rem;
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.info-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.info-section ul {
    padding-left: 1.2rem;
}

.info-section ul li {
    margin-bottom: 0.5rem;
}

.info-section ul ul {
    margin-top: 0.5rem;
}

.contact-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-border);
}

.contact-info h3 {
    margin-bottom: 0.5rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--accent-color);
}

/* Estilo para a nova seção de calendário */
.calendar-only-section {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.calendar-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    background: var(--white);
}

/* Estilos para o calendário da paróquia */
.parish-calendar-section {
    padding: 2rem 0;
    margin: 2rem 0;
    background-color: var(--white);
    order: 4;
}

.calendar-container {
    display: grid;
    grid-template-areas:
        "calendar image"
        "details image";
    grid-template-columns: 1fr 1fr; /* Changed from 2fr 1fr to equal parts */
    grid-template-rows: auto auto;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-height: 600px; /* Set minimum height for the entire container */
}

@media (min-width: 992px) {
    .calendar-container {
        flex-direction: row;
    }
}

#calendar-wrapper {
    flex: 1;
    min-width: 300px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--light-border);
}

.calendar-nav-btn {
    background: transparent;
    border: none;
    font-size: 1rem;
    color: var(--primary-color);
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.calendar-nav-btn:hover {
    background-color: var(--light-bg);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.calendar-day:hover {
    background-color: var(--light-bg);
}

.calendar-day.has-event {
    font-weight: bold;
    color: var(--primary-color);
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
}

.calendar-day.different-month {
    color: #ccc;
}

.event-details-panel {
    grid-area: image;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Remove padding to maximize space */
    background-color: var(--light-bg);
    border-radius: 8px;
    min-height: 100%; /* Take full height of grid area */
    overflow: hidden; /* Prevent image from spilling out */
}

.event-details-panel h3 {
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 1px solid var(--light-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.select-date-prompt {
    color: var(--secondary-color);
    font-style: italic;
    text-align: center;
    margin-top: 2rem;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed from 'contain' to 'cover' to fill space */
    border-radius: 8px;
    margin: 0; /* Remove margins */
    max-height: none; /* Remove max-height limitation */
}

.event-list {
    list-style: none;
    padding: 0;
}

.event-list-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--accent-color);
    background-color: white;
    border-radius: 0 5px 5px 0;
}

.event-time {
    font-weight: bold;
    color: var(--primary-color);
}

/* Correção para o calendário interativo */
.parish-calendar-section .calendar-header {
    background-color: transparent;
    border-radius: 0;
    padding: 0.5rem 0;
}

.parish-calendar-section .calendar-header h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.parish-calendar-section .calendar-nav-btn {
    background: var(--light-bg);
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parish-calendar-section .calendar-nav-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Correção do alinhamento do calendário */
.parish-calendar-section .calendar-weekdays,
.parish-calendar-section .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 5px; /* Espaçamento consistente */
}

.parish-calendar-section .calendar-weekdays div {
    padding: 10px 0;
    font-weight: bold;
    color: var (--primary-color);
}

.parish-calendar-section .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    border-radius: 5px;
    transition: all 0.2s ease;
    margin: 2px;
    background-color: #f5f5f5; /* Fundo sutil para visualização */
}

/* Garantir que os dias do mês atual sejam claramente visíveis */
.parish-calendar-section .calendar-day:not(.different-month) {
    background-color: #f9f9f9;
    border: 1px solid #e6e6e6;
}

/* Melhorar a visualização do dia selecionado */
.parish-calendar-section .calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Ajuste para visualização em dispositivos móveis */
@media (max-width: 768px) {
    .parish-calendar-section .calendar-container {
        flex-direction: column;
    }
    
    .parish-calendar-section #calendar-wrapper,
    .parish-calendar-section .event-details-panel {
        width: 100%;
    }
    
    .parish-calendar-section .calendar-day {
        padding: 8px 0;
    }
    
    .parish-calendar-section .calendar-weekdays div {
        padding: 10px 0;
    }
}

/* Reset completo para o calendário da paróquia */
.parish-calendar-section .calendar-weekdays,
.parish-calendar-section .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0; /* Sem gap para evitar problemas de alinhamento */
    width: 100%; /* Garante largura total */
}

.parish-calendar-section .calendar-weekdays div {
    padding: 10px 0;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    border-bottom: 1px solid #eee;
    margin: 0; /* Sem margens */
}

/* Caixas dos dias com tamanho fixo em vez de aspect-ratio */
.parish-calendar-section .calendar-day {
    height: 40px; /* Altura fixa para todos os dias */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0; /* Sem margens */
    border: none; /* Sem bordas que possam afetar o layout */
}

/* Bordas internas em vez de externas */
.parish-calendar-section .calendar-days {
    border: 1px solid #eee;
    border-bottom: none;
}

.parish-calendar-section .calendar-day {
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.parish-calendar-section .calendar-day:nth-child(7n) {
    border-right: none; /* Remove borda direita do último dia de cada linha */
}

.parish-calendar-section .calendar-day.has-event::after {
    bottom: 2px; /* Ajusta posição do indicador de evento */
}

/* Corrige seleção de dia */
.parish-calendar-section .calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
    z-index: 1; /* Sobrepõe borders */
}

/* Reset calendar grid to remove all spacing */
.parish-calendar-section .calendar-weekdays,
.parish-calendar-section .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0; /* Remove all gaps */
    width: 100%;
}

/* Make day numbers touch each other */
.parish-calendar-section .calendar-day {
    height: 50px; /* Taller for better visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    margin: 0; /* No margins */
    padding: 0; /* No padding */
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    font-size: 1.25rem; /* Bigger numbers */
    font-weight: 500;
}

/* Weekday header labels */
.parish-calendar-section .calendar-weekdays div {
    padding: 12px 0; /* Aumento de padding vertical */
    height: 44px; /* Altura explícita */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-top-width: 0;
    margin: 0;
}

/* Remove double borders */
.parish-calendar-section .calendar-days {
    border: 1px solid #eee;
    border-bottom: none;
    border-right: none;
}

/* Keep event indicators visible */
.parish-calendar-section .calendar-day.has-event::after {
    bottom: 5px;
    width: 8px;
    height: 8px;
}

/* Fixed grid alignment for calendar */
.parish-calendar-section .calendar-weekdays,
.parish-calendar-section .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Unified styling for weekday headers and day cells */
.parish-calendar-section .calendar-weekdays div,
.parish-calendar-section .calendar-day {
    box-sizing: border-box;
    width: 100%; /* Force full width in the grid cell */
    text-align: center;
}

/* Fixed weekday headers */
.parish-calendar-section .calendar-weekdays div {
    height: 44px; /* Match day cell height */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-right: none; /* Remove right border to prevent doubling */
}

/* Last column right border restoration */
.parish-calendar-section .calendar-weekdays div:last-child {
    border-right: 1px solid #eee;
}

/* Reset calendar day properties */
.parish-calendar-section .calendar-day {
    height: 50px; /* Aumento de 40px para 50px */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-top: none; /* Remove top border to avoid doubling with weekdays */
    border-right: none; /* Remove right border to prevent doubling */
    font-size: 1.25rem;
    font-weight: 500;
}

/* Right border for last column */
.parish-calendar-section .calendar-day:nth-child(7n) {
    border-right: 1px solid #eee;
}

/* Reorganized calendar layout - info below calendar */
.calendar-container {
    display: grid;
    grid-template-areas:
        "calendar image"
        "details image";
    grid-template-columns: 1fr 1fr; /* Changed from 2fr 1fr to equal parts */
    grid-template-rows: auto auto;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem; /* Aumento do padding geral */
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-height: 650px; /* Aumento da altura mínima */
}

/* Calendar takes full width in its grid area */
#calendar-wrapper {
    grid-area: calendar;
    width: 100%;
}

/* Event text details appear below calendar */
#event-text-details {
    grid-area: details;
    padding: 1rem; /* Reduced padding to maximize content space */
    background-color: var(--light-bg);
    border-radius: 8px;
}

/* Image panel only shows images on the right */
.event-details-panel {
    grid-area: image;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Remove padding to maximize space */
    background-color: var(--light-bg);
    border-radius: 8px;
    min-height: 100%; /* Take full height of grid area */
    overflow: hidden; /* Prevent image from spilling out */
}

/* Style the date title that appears below calendar */
#event-text-details h3 {
    color: var(--primary-color);
    margin-top: 0;
    border-bottom: 1px solid var(--light-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Style the event content below calendar */
#event-text-content {
    margin-top: 1rem;
}

#event-text-content h4 {
    font-size: 1.2rem; /* Slightly smaller heading */
    margin-bottom: 0.4rem;
}

/* Make event time stand out */
.event-time {
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.8rem;
}

/* Improve image display */
.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed from 'contain' to 'cover' to fill space */
    border-radius: 8px;
    margin: 0; /* Remove margins */
    max-height: none; /* Remove max-height limitation */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Handle prompt for no events */
.select-date-prompt {
    color: var(--secondary-color);
    font-style: italic;
    text-align: center;
    margin: 2rem 0;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .calendar-container {
        grid-template-areas:
            "calendar"
            "image"
            "details";
        grid-template-columns: 1fr;
    }
}

/* Redução da altura dos cards de destaque */
.event-card-highlight {
    display: flex;
    flex-direction: row;
    max-height: 180px; /* Altura máxima reduzida */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

/* Estilos para cards clicáveis */
.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.event-card-link:hover .event-card-highlight {
    transform: translateY(-5px);
}

.event-card-highlight .event-image {
    flex: 0 0 180px; /* Largura fixa para imagem */
    position: relative;
    max-height: 180px; /* Mesma altura do card */
    overflow: hidden;
}

.event-card-highlight .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-highlight .event-details {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-card-highlight .event-details h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem; /* Título menor */
}

.event-card-highlight .event-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem; /* Texto menor */
    line-height: 1.4;
    flex-grow: 1;
}

.event-card-highlight .event-date-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Correção definitiva para texto marrom em cartões de eventos */
.event-card a,
.event-card a h3,
.event-card a p,
.event-card a .saiba-mais,
.event-card-link a,
.event-card-link a h3,
.event-card-link a p,
.event-card-link a .saiba-mais {
    color: #8B5A2B !important;
    text-decoration: none !important;
}

.event-card:hover a,
.event-card:hover a h3,
.event-card:hover a p,
.event-card:hover a .saiba-mais,
.event-card-link:hover a,
.event-card-link:hover a h3,
.event-card-link:hover a p,
.event-card-link:hover a .saiba-mais {
    color: #8B5A2B !important;
}

/* Remover qualquer cor de fundo dos links */
.event-link {
    background-color: transparent !important;
}

/* Melhorar visualização do mês atual */
#calendar-month-year {
    font-size: 1.4rem; /* Título do mês um pouco maior */
    padding: 0.5rem 0;
}

/* Otimizações para dispositivos móveis */
@media (max-width: 768px) {
    /* Header mais compacto para celular */
    header {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 0.5rem 1rem;
    }
    
    .logo-container {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .logo-container img {
        width: 60px;
    }
    
    .parish-name h1 {
        font-size: 1.2rem;
    }
    
    .parish-name p {
        font-size: 0.8rem;
    }
    
    .diocese-logo-container {
        display: none; /* Oculta o logo da diocese em celulares */
    }
    
    /* Ajustes para navegação */
    nav {
        justify-content: center;
        padding: 0.5rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    nav ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 5px;
        width: max-content;
    }
    
    nav li {
        margin: 0 0.8rem;
    }
    
    /* Ajuste do calendário para celular */
    .calendar-container {
        grid-template-areas:
            "calendar"
            "details"
            "image";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1rem;
        padding: 1rem;
        min-height: auto;
    }
    
    /* Ajuste para células do calendário */
    .parish-calendar-section .calendar-day {
        height: 40px;
        font-size: 1rem;
    }
    
    .parish-calendar-section .calendar-weekdays div {
        height: 30px;
        font-size: 0.9rem;
    }
    
    /* Imagem do evento adaptada para celular */
    .event-details-panel {
        min-height: 200px;
        max-height: 300px;
        margin-top: 1rem;
    }
    
    /* Ajustes para eventos destacados */
    .event-card-highlight {
        flex-direction: column;
        max-height: none;
    }
    
    .event-card-highlight .event-image {
        flex: none;
        height: 180px;
        width: 100%;
    }
    
    /* Ajuste para seções principais */
    main {
        padding: 1rem;
    }
    
    .welcome-section,
    .calendar-section,
    .events-section,
    .schedule-section {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }
    
    /* Melhorar visualização de datas no calendário */
    #calendar-month-year {
        font-size: 1.2rem;
    }
    
    /* Melhorar detalhes dos eventos */
    #event-text-details {
        padding: 0.8rem;
    }
    
    #event-text-content h4 {
        font-size: 1.1rem;
    }
}

/* Ajustes adicionais para telas muito pequenas */
@media (max-width: 480px) {
    .parish-calendar-section .calendar-day {
        height: 35px;
        font-size: 0.9rem;
    }
    
    .parish-calendar-section .calendar-weekdays div {
        height: 25px;
        font-size: 0.8rem;
    }
    
    /* Ajuste de menu para telas muito pequenas */
    nav li {
        margin: 0 0.5rem;
    }
    
    nav li a {
        font-size: 0.9rem;
    }
}

/* Botão de menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1000;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 90;
}

.menu-overlay.active {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

/* Adaptação para telas móveis */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    header {
        padding: 0.5rem 1rem;
        position: relative;
    }
    
    .logo-container {
        width: 100%;
        justify-content: center;
        padding-right: 50px; /* Espaço para o botão */
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        z-index: 95;
        padding-top: 70px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0 20px;
    }
    
    nav li {
        width: 100%;
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    nav li a {
        display: block;
        width: 100%;
        padding: 5px 0;
    }
    
    .diocese-logo-container {
        display: none;
    }
}

/* Adaptação para telas móveis - Logo preenchendo o header */
@media (max-width: 768px) {
    /* Ajuste da logo no header para mobile */
    header {
        padding: 0.5rem 0; /* Redução do padding horizontal */
        position: relative;
        height: 80px; /* Altura fixa para o header */
        display: flex;
        align-items: center;
    }
    
    .logo-container {
        width: 100%;
        justify-content: center;
        padding-right: 0; /* Removido padding para maximizar espaço da logo */
        margin: 0 auto;
    }
    
    .logo-link {
        display: flex;
        justify-content: center;
        width: 100%;
        height: 100%;
        align-items: center;
    }
    
    .logo-link img {
        width: auto; /* Auto width */
        height: 70px; /* Altura maior */
        max-width: calc(100% - 70px); /* Espaço para o botão de menu */
        margin: 0 auto;
    }
    
    /* Posicionamento absoluto para o botão de menu */
    .mobile-menu-toggle {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }
    
    /* Esconder o nome da paróquia em dispositivos móveis */
    .parish-name {
        display: none;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    header {
        height: 70px; /* Header um pouco menor */
    }
    
    .logo-link img {
        height: 60px; /* Logo um pouco menor */
    }
    
    .mobile-menu-toggle {
        right: 5px; /* Menu mais próximo da borda */
    }
}

/* Estilo para seção do pároco e da padroeira */
.priest-info, .patroness-info {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Reduzir o tamanho da imagem do padre */
.priest-image {
    flex: 0 0 200px; /* Tamanho reduzido */
    max-width: 200px;
}

/* Ajustar o tamanho da imagem da padroeira */
.patroness-image {
    flex: 0 0 300px;
    max-width: 300px;
}

/* Conteúdo textual ao lado direito */
.priest-content, .patroness-content {
    flex: 1;
}

/* Estilização das imagens */
.priest-image img, .patroness-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .priest-info, .patroness-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .priest-image, .patroness-image {
        max-width: 250px;
        margin-bottom: 1rem;
    }
    
    .patroness-content h3, .priest-content h3 {
        margin-top: 0.5rem;
    }
}

/* Estilo para a seção de contribuições */
.contributions-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.contribution-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contribution-text {
    flex: 1;
}

.blessing-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.2rem;
    margin: 1.5rem 0;
    color: var(--primary-color);
}

.pix-info {
    background-color: var(--light-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.pix-info p {
    margin: 0.5rem 0;
}

.contribution-qrcode {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code-image {
    width: 220px;
    height: 220px;
    margin-bottom: 1rem;
}

.pix-logo-img {
    width: 150px;
    height: auto;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .contribution-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contribution-qrcode {
        margin-top: 1.5rem;
    }
    
    .pix-info {
        text-align: center;
    }
}

/* Ajustar a visualização de imagens do calendário no mobile */
@media (max-width: 768px) {
    /* Garantir que o contêiner de imagem tenha altura adequada */
    .event-details-panel {
        min-height: auto;
        max-height: none;
        height: auto;
        overflow: visible;
    }
    
    /* Ajustar a imagem para mostrar completamente */
    .event-image, 
    #event-details-content img {
        width: 100%;
        height: auto;
        object-fit: contain !important; /* Forçar contain para mostrar imagem inteira */
        max-height: none;
    }
    
    /* Garantir que o contêiner do calendário tenha espaço adequado */
    .calendar-container {
        grid-template-areas:
            "calendar"
            "image"
            "details";
        grid-template-rows: auto auto auto;
        min-height: auto;
    }
    
    /* Ajustar altura do painel de detalhes de eventos */
    #event-text-details {
        padding-top: 1rem;
    }
    
    /* Garantir que o painel de imagem se ajuste ao conteúdo */
    #event-details-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Ajuste para dispositivos móveis em orientação horizontal (landscape) */
@media (max-width: 896px) and (orientation: landscape) {
    /* Ajustar altura do header para não ocupar muito espaço vertical */
    header {
        height: 60px;
        padding: 0.3rem 0;
    }
    
    /* Esconder completamente textos no header */
    .parish-name, 
    header p,
    header h1,
    .diocese-logo-container {
        display: none;
    }
    
    /* Configurar o logo para ficar centralizado */
    .logo-container {
        width: 100%;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    
    /* Ajustar tamanho e alinhamento da logo */
    .logo-container img,
    .logo-link img {
        height: 50px;
        width: auto;
        margin: 0 auto;
        display: block;
    }
    
    /* Garantir que o botão de menu fique bem posicionado */
    .mobile-menu-toggle {
        top: 50%;
        transform: translateY(-50%);
        right: 10px;
    }
    
    /* Ajustar o menu mobile para não ocupar toda a tela */
    nav.active {
        max-height: calc(100vh - 60px);
        top: 60px;
    }
}

/* Ajustes específicos para banners em telas grandes */
@media (min-width: 1200px) {
    .banner-carousel {
        max-width: none;
        width: 100%;
        padding: 0;
        margin: 0;
        margin-bottom: 2rem;
    }
    
    .carousel-slide img {
        max-height: 500px;
        width: 100%;
        margin: 0;
        padding: 0;
        display: block;
        object-fit: cover;
        background-color: transparent;
    }
}

@media (min-width: 1400px) {
    .banner-carousel {
        padding: 0;
    }
    
    .carousel-slide img {
        max-height: 550px;
        object-fit: cover;
    }
}