/* Estilos gerais */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url('../images/HOME.PROVA3_-1-scaled.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: Arial, sans-serif;
}

/* Cabeçalho e menu */
.logo-container {
    margin-top: 20px;
    text-align: center;
}

.logo-container img {
    max-width: 200px;
    height: auto;
    display: block;
}

.menu {
    margin-top: 20px;
}

.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.menu li {
    padding: 8px 0;
    position: relative;
}

.menu a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.menu a:hover {
    color: #f8f8f8;
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: white;
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

.menu a:hover::after {
    width: 100%;
}

/* Estilos para o submenu */
.menu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 25, 70, 0.95);
    min-width: 220px;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 0 0 5px 5px;
    border-top: 2px solid #0052a3;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu .submenu li {
    padding: 0;
    display: block;
    transition: all 0.2s;
}

.menu .submenu li:hover {
    background-color: rgba(0, 82, 163, 0.3);
}

.menu .submenu a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    font-size: 15px;
    color: #f8f8f8;
    transition: all 0.2s;
}

.menu .submenu a:hover {
    color: white;
    background-color: transparent;
    padding-left: 25px;
}

.menu .submenu a::after {
    display: none;
}

/* Mostrar submenu ao passar o rato */
.menu li:hover > .submenu {
    display: block;
}

/* Para dispositivos móveis */
@media (max-width: 768px) {
    .menu {
        position: relative;
    }
    
    .menu ul {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .menu li {
        width: 100%;
        text-align: center;
    }
    
    .menu li.active > .submenu {
        display: block;
        position: static;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        background-color: rgba(0, 25, 70, 0.85);
        animation: none;
    }
}

/* Seção de missão */
.mission-text {
    color: white;
    text-align: center;
    font-weight: bold;
    margin-top: 150px;
    max-width: 600px;
    line-height: 1.5;
    font-size: 25px;
}

.saber-mais-btn {
    margin-top: 159px;
    background-color: #001946;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.saber-mais-btn:hover {
    background-color: #0052a3;
}

/* Caixa branca */
.white-box {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 60px 0;
    margin-top: 235px;
    text-align: center;
}

.white-box-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.white-box h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
}

.white-box p {
    color: #792a05;
    font-size: 25px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.white-box-btn {
    background-color: #001946;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.white-box-btn:hover {
    background-color: #0052a3;
}

/* Galeria */
.black-transparent-box {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 60px 0;
    text-align: center;
    margin-top: 0px;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-title {
    color: white;
    font-size: 28px;
    margin-bottom: 15px;
}

.gallery-subtitle {
    color: #ccc;
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-item {
    position: relative;
    width: 30%;
    min-width: 300px;
    cursor: pointer;
    transition: transform 0.3s;
    overflow: hidden;
    border-radius: 5px;
}

.gallery-item a {
    display: block;
    text-decoration: none;
}

.gallery-item img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 25, 70, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: white;
    text-align: center;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.overlay-text {
    font-size: 24px;
    font-weight: bold;
    padding: 20px;
}

/* Documentação */
.spacing-before-documentation {
    height: 0px;
    width: 100%;
}

.documentation-section {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 80px 0;
}

.documentation-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
}

.documentation-content {
    flex: 1;
    padding-top: 20px;
}

.documentation-title {
    color: #792a05;
    font-size: 32px;
    margin-bottom: 40px;
    text-align: left;
}

.documentation-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 0;
}

.documentation-item {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.documentation-item a {
    display: flex;
    text-decoration: none;
    color: #333;
    align-items: center;
    padding: 10px 0;
}

.documentation-icon {
    margin-right: 20px;
    color: #792a05;
    font-size: 24px;
    min-width: 30px;
    text-align: center;
}

.documentation-name {
    font-size: 20px;
    font-weight: bold;
    color: #792a05;
    margin: 0;
}

.documentation-image {
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.documentation-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

/* Horário de visitas */
.visiting-hours {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 60px 0;
    text-align: center;
    margin-top: 0;
}

.visiting-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.visiting-title {
    color: white;
    font-size: 32px;
    margin-bottom: 20px;
}

.visiting-subtitle {
    color: #ccc;
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Footer */
footer {
    width: 100%;
    background-color: #9f3809;
    color: white;
    padding: 60px 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-list i {
    margin-right: 15px;
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #001946;
    color: white;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 250px;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cookie-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cookie-btn.accept {
    background-color: #0052a3;
    color: white;
}

.cookie-btn.reject {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-link {
    color: #ccc;
    text-decoration: underline;
    font-size: 13px;
}

.cookie-link:hover {
    color: white;
}

/* Footer Links Styles */
.footer-links {
    margin-top: 15px;
    font-size: 14px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 5px;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-links a:first-child {
    margin-left: 0;
}

.footer-links a:last-child {
    margin-right: 0;
}