/* style.css - Mantido igual ao anterior, com pequenas melhorias para textos longos */
:root {
    --blood: #8b0000;
    --parchment: #f4e9d8;
    --ink: #3c2f2f;
    --gold: #d4af77;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: #2c1e18;
    color: var(--parchment);
    line-height: 1.8;
    overflow-x: hidden;
}

.gothic-title {
    font-family: Georgia, serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 900;
    text-shadow: 3px 3px 0 #00000088;
}

header {
    background: linear-gradient(#3c2f2f, #1f150f);
    border-bottom: 6px solid var(--blood);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo .gothic { font-size: 2.5rem; }
.gothic-title { font-size: 1.8rem; color: var(--gold); }

nav a {
    color: var(--parchment);
    text-decoration: none;
    margin: 0 1.2rem;
    font-size: 1.1rem;
    transition: all 0.3s;
}
nav a:hover { color: var(--gold); text-shadow: 0 0 8px var(--blood); }

.era-badge {
    background: var(--blood);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 0 15px #000;
}

#hero {
    height: 100vh;
    background: linear-gradient(rgba(28, 18, 15, 0.85), rgba(28, 18, 15, 0.9)), url('https://upload.wikimedia.org/wikipedia/commons/thumb/4/4f/The_Triumph_of_Death.jpg/1920px-The_Triumph_of_Death.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay { max-width: 1280px; margin: 0 auto; padding: 0 2rem; text-align: center; }

.seal {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(139, 0, 0, 0.8);
    padding: 15px 40px;
    border-radius: 50%;
    border: 8px double var(--gold);
    margin-bottom: 20px;
}
.seal .gothic { font-size: 3rem; }
.seal .year { font-size: 2rem; font-weight: bold; color: var(--gold); }

.hero-title { font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; color: var(--gold); }
.hero-subtitle { font-size: 1.6rem; max-width: 700px; margin: 0 auto 40px; opacity: 0.95; }

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 18px 40px;
    margin: 0 12px;
    border-radius: 8px;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.4s;
    font-weight: bold;
}
.btn-primary { background: var(--blood); color: white; border: 3px solid var(--gold); }
.btn-primary:hover { transform: scale(1.08); box-shadow: 0 0 25px var(--blood); }
.btn-secondary { background: transparent; color: var(--parchment); border: 3px solid var(--parchment); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.section-title { font-size: 2.8rem; text-align: center; margin-bottom: 1rem; color: var(--gold); }
.section-subtitle { text-align: center; font-size: 1.3rem; margin-bottom: 3rem; opacity: 0.9; }

.intro-title { text-align: center; font-size: 2.4rem; margin-bottom: 1rem; color: var(--gold); }
.intro-text { font-size: 1.25rem; text-align: center; max-width: 900px; margin: 0 auto; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: #f4e9d8;
    color: #3c2f2f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 8px 8px 0 #8b0000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 4px solid #3c2f2f;
}
.card:hover { transform: translateY(-15px) scale(1.05); box-shadow: 15px 15px 0 #8b0000; }

.card-image {
    height: 160px;
    background: #3c2f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.card-content { padding: 1.5rem; text-align: center; }
.card-content h3 { font-size: 1.6rem; margin-bottom: 8px; }
.card-year { color: var(--blood); font-weight: bold; font-size: 1.1rem; }

.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.modal.show { display: flex; }

.modal-content {
    background: #f4e9d8;
    color: #3c2f2f;
    max-width: 900px;
    width: 92%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 12px;
    border: 12px double #8b0000;
    position: relative;
    padding: 40px 50px;
    box-shadow: 0 0 40px #000;
}

.modal-close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 2.5rem;
    background: none;
    border: none;
    color: #8b0000;
    cursor: pointer;
}

.modal-title {
    color: #8b0000;
    font-size: 2.6rem;
    margin-bottom: 30px;
    text-align: center;
}

.modal-text {
    font-size: 1.22rem;
    line-height: 1.9;
}
.modal-text p { margin-bottom: 1.4rem; }
.modal-text ul { margin: 20px 0 20px 30px; }
.modal-text img { display: block; margin: 25px auto; }

.map-section { background: #1f150f; padding: 4rem 0; }
.map-container {
    background: #f4e9d8;
    border: 14px solid #8b0000;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 10px 10px 0 #000;
}

.legado-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}
.legado-item {
    background: rgba(244, 233, 216, 0.1);
    border: 4px solid var(--gold);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

footer {
    background: #1f150f;
    text-align: center;
    padding: 3rem 2rem;
    border-top: 6px solid var(--blood);
    font-size: 1rem;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .hero-title { font-size: 3.2rem; }
    .cards-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 30px 20px; }
}