/* Variáveis CSS */
:root {
    --primary-color: #8B0000;
    --secondary-color: #B22222;
    --accent-color: #FFE4E1;
    --text-color: #333;
    --white: #ffffff;
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 0.97rem;
    background-color: #f8f6f7;
    background-image: 
        linear-gradient(to bottom, rgba(255,255,255,0.7) 0%, rgba(139,0,0,0.07) 100%),
        url('data:image/svg+xml;utf8,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><text x="0" y="40" font-size="40" fill="rgba(180,180,180,0.08)">𝄞</text></svg>');
    background-repeat: repeat;
}

/* Navbar */
.navbar {
    background-color: rgba(139,0,0,0.62); /* vermelho escuro translúcido */
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    padding: 0.5rem 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 50px;
    width: auto;
    margin-right: 1rem;
}

.nav-brand a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links > a,
.nav-links > .dropdown > .dropbtn {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 1rem;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    position: relative;
    font-size: 1.15rem;
    cursor: pointer;
}

.dropbtn i {
    margin-left: 0.5em;
    font-size: 0.8em;
}

.nav-links > a:hover,
.nav-links > .dropdown:hover > .dropbtn {
    background: var(--secondary-color);
    color: var(--accent-color);
    border-radius: 5px 5px 0 0;
}

/* Dropdown funcionalidade: mostrar ao hover */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Por defeito, esconde os submenus */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1;
    top: 48px;
    left: 0;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    flex-direction: column;
    padding: 0;
}

.dropdown-content a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1.5rem;
    color: var(--primary-color);
    background: var(--white);
    transition: background 0.2s, color 0.2s;
    text-align: left;
    font-size: 1.08rem;
}

.dropdown-content.show {
    display: flex;
}

/* Remover hover para dropdown */
.dropdown:hover .dropdown-content {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../images/hero-bg.jpg') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 2rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-color);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.container {
    padding: 0 2rem;
}

.section, .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0 !important;
}

.section h2, .container h2, .section-title {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    margin-top: 0.5rem;
}

.section img, .container img {
    display: block;
    margin: 0.5rem auto 1.5rem auto;
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

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

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 0 0.2rem 0;
    font-size: 0.95rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem !important;
    margin-bottom: 0.7rem;
}
.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.footer-section p, .footer-section a, .footer-bottom p {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}
.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.3rem;
    font-size: 0.92rem;
}
.social-links a {
  color: var(--white) !important;
  font-size: 1.7rem !important;
  transition: color 0.3s;
}
.social-links a:hover {
  color: var(--accent-color) !important;
}
@media (max-width: 900px) {
    .footer-content {
        flex-direction: column !important;
        gap: 0.3rem !important;
    }
    .footer-section {
        margin-bottom: 0.2rem;
    }
}

/* Estilos para a página de Instalações */
.facility-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.facility-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--accent-color);
}

.facility-features li:last-child {
    border-bottom: none;
}

/* Estilos para a página de Missão */
.mission-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.mission-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.mission-statement {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.mission-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.mission-video {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9;
}

.mission-video iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos para a página de Eventos */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.event-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s;
}

.event-card:hover .event-image img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    min-width: 60px;
}

.event-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.event-content {
    padding: 1.5rem;
}

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

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

.event-details {
    margin-bottom: 1rem;
    color: #666;
}

.event-details p {
    margin: 0.5rem 0;
}

.event-details i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.event-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

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

/* Mostra submenu com hover no desktop */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: flex;
    }
}
/* Ajustes responsivos para eventos */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        background-color: transparent;
        box-shadow: none;
    }

    .dropdown-content a {
        color: var(--white);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .mission-statement {
        font-size: 1.5rem;
    }

    .mission-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .commitment-section {
        padding: 1rem;
    }

    .mission-icon {
        font-size: 2rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-image {
        height: 180px;
    }
}

/* Estilos para a página de Instalações */
.facility-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.facility-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.facility-gallery {
    margin-top: 2rem;
}

.main-image {
    margin-bottom: 2rem;
    text-align: center;
}

.featured-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.image-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.image-grid img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .facility-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .image-grid img {
        height: 150px;
    }
}

/* Estilos para a página de História */
.bio-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0 2rem 0;
}

.history-content h2, .section h2 {
    margin-bottom: 0.3rem;
}

.history-text {
    text-align: justify;
    line-height: 1.8;
}

.history-paragraph,
.maestro-bio-text p,
.coordenador-bio-text p,
.facility-description p,
.mission-text p,
.mission-description,
.mission-content p,
.maestro-paragraph,
.coordenador-paragraph {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Estilos para as imagens da página de História */
.history-images {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.history-image-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.history-image-container.right {
    flex-direction: row;
}

.history-image-container.bottom {
    flex-direction: column;
}

.history-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.history-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .bio-content {
        padding: 1rem;
    }

    .history-paragraph {
        font-size: 1rem;
    }

    .history-image-container {
        flex-direction: column;
    }

    .history-image-container.right {
        flex-direction: column;
    }
}

/* Estilos para os eventos */
.events-content {
    display: block;
    padding: 0;
}

.event-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.event-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
}

.event-date .day {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.event-details {
    padding: 1.5rem;
}

.event-details h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.event-location, .event-time {
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-description {
    color: #444;
    margin-top: 1rem;
    line-height: 1.6;
}

/* Estilos para os cards na página principal */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card h3 {
    color: #333;
    margin: 1rem;
    font-size: 1.25rem;
}

.card p {
    color: #666;
    margin: 0.5rem 1rem;
    padding-bottom: 1rem;
    font-size: 0.97rem;
}

/* Media queries para responsividade */
@media (max-width: 768px) {
    .events-content {
        grid-template-columns: 1fr;
    }

    .event-image {
        height: 300px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 250px;
    }
}

/* Estilos para a secção do Maestro */
.maestro-section {
    background: #fff;
    padding: 3rem 0 4rem 0;
}

.maestro-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f6f7;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(123,31,36,0.08);
}

.maestro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2.5rem;
    margin-top: 2rem;
}

.maestro-photo {
    width: 260px;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(123,31,36,0.13);
    object-fit: cover;
}

.maestro-bio {
    flex: 1 1 350px;
    font-size: 1.08rem;
    color: #3a2323;
    line-height: 1.7;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 8px rgba(123,31,36,0.06);
}

.maestro-section .section-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

@media (max-width: 800px) {
    .maestro-content {
        flex-direction: column;
        align-items: center;
    }
    .maestro-bio {
        padding: 1.2rem 1rem;
    }
    .maestro-photo {
        width: 90vw;
        max-width: 340px;
    }
}

/* Justificar texto em todo o site, exceto títulos, menus e rodapé */
html, body, p, li, .section, .container, .card, .maestro-bio, .bio-text, .mission-description, .facility-description, .coordenador-paragraph, .maestro-paragraph {
    text-align: justify;
    font-size: 1rem !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* Layout para a biografia do coordenador */
.maestro-bio-float {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.maestro-photo-float {
    float: right;
    max-width: 5px;
    width: 100%;
    margin-left: 2rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}
.maestro-bio-float-text {
    text-align: justify;
    overflow: hidden;
}
@media (max-width: 700px) {
    .maestro-photo-float {
        float: none;
        display: block;
        margin: 0 auto 1rem auto;
        max-width: 80vw;
    }
    .maestro-bio-float {
        overflow: visible;
    }
}

.section .maestro-image, .container .maestro-image,
.section .coordenador-image, .container .coordenador-image {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

.maestro-paragraph,
.coordenador-paragraph {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.bio-image-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.bio-image-container.right {
    flex-direction: row;
}
.bio-image-container.bottom {
    flex-direction: column;
}
@media (max-width: 768px) {
    .bio-image-container {
        flex-direction: column;
    }
    .bio-image-container.right {
        flex-direction: column;
    }
}

.bio-text {
    text-align: justify;
    line-height: 1.8;
}

.bio-flex-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
@media (max-width: 800px) {
    .bio-flex-container {
        flex-direction: column;
        align-items: center;
    }
} 

/* Contactos */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.contact-info, .contact-form {
  flex: 1 1 350px;
  min-width: 260px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 2rem 1.5rem;
}
.contact-info h3, .contact-form h3 {
  margin-top: 0;
  color: var(--primary-color, #2a3a5e);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.contact-info p, .contact-form label {
  font-size: 0.95rem;
  color: #222;
  margin-bottom: 0.5rem;
}
.contact-form form {
  display: flex;
  flex-direction: column;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #f9f9f9;
}
.contact-form button[type="submit"] {
  background: var(--primary-color, #2a3a5e);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.contact-form button[type="submit"]:hover {
  background: #1a2540;
}
@media (max-width: 900px) {
  .contact-grid {
    flex-direction: column;
    gap: 1.5rem;
  }
  .contact-info, .contact-form {
    padding: 1.2rem 0.8rem;
  }
} 

.contact-maps {
  width: 100%;
  margin: 2rem 0 0 0;
  display: flex;
  justify-content: center;
}
.contact-maps iframe {
  max-width: 800px;
  width: 100%;
  min-height: 250px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
} 

.cabecalho-img {
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 75% 97%, 35% 100%, 25% 97%, 0 92%);
}
.cabecalho-img img {
    animation: cabecalho-zoom 18s ease-in-out infinite alternate;
    width: 100%;
    display: block;
}
@keyframes cabecalho-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.07);
    }
}
.cabecalho-img::before {
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 70%; height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 10s infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes shine {
    0% { left: -75%; }
    100% { left: 125%; }
}
.cabecalho-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.07) 0%, rgba(0,0,0,0.012) 60%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    border-radius: 8px;
    z-index: 1;
}
@keyframes fadeZoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
} 

.section-title {
    text-align: left !important;
    padding-left: 0.5rem;
    margin-left: 0;
}
.event-section-title {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
    text-align: left;
    margin-left: 0;
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}
.events-group, .events-past-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
} 

.container > .section-title,
.container .event-section-title {
    text-align: left !important;
    padding-left: 1.5rem !important;
    margin-left: 0 !important;
}
.container .events-content {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
} 

.event-year-title {
    grid-column: 1 / -1;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: bold;
    margin: 2.5rem 0 1rem 0;
    padding-left: 1.5rem;
    text-align: left;
}

/* Estilos para página de detalhes do evento */
.event-detail-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.event-detail-image {
    text-align: center;
    margin-bottom: 2rem;
}

.event-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.event-detail-image img:hover {
    transform: scale(1.02);
}

.event-detail-info {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.event-detail-info > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f6f7;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.event-detail-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 20px;
}

.event-detail-info span {
    font-weight: 500;
    color: var(--text-color);
}

.event-detail-description {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.event-detail-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: justify;
}

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

.event-detail-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.2);
}

.btn-back:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.3);
}

.btn-back i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .event-detail-content {
        padding: 1rem 0;
    }
    
    .event-detail-info {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .event-detail-description {
        padding: 1.5rem;
    }
    
    .event-detail-description p {
        font-size: 1rem;
    }
    
    .btn-back {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Estilos para o Lightbox/Slider */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: lightboxFadeIn 0.3s ease-in-out;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
}

.lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lightbox-title {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    max-width: 80%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tornar as imagens clicáveis */
.image-grid img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .lightbox-content {
        width: 95%;
        height: 95%;
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-nav {
        font-size: 24px;
        padding: 8px 12px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: 10px;
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .lightbox-title {
        bottom: 50px;
        font-size: 16px;
        padding: 8px 16px;
    }
} 