/* style.css – Estilo para o Baronato de Tavaquara */

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

body.tavaquara {
    font-family: 'IM Fell English SC', Georgia, 'Times New Roman', serif;
    background: #faf8f5;
    color: #1a1a1a;
    line-height: 1.8;
    padding: 0 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 2.5rem 0 1.5rem;
    border-bottom: 2px solid #1a1a1a;
}

.header-content {
    margin-bottom: 1rem;
}

.site-title {
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-decoration: none;
    color: #1a1a1a;
    text-transform: uppercase;
}

.site-title:hover {
    color: #555;
}

.site-desc {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid #d0d0d0;
}

.main-nav a {
    color: #444;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: color 0.15s;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
}

.main-nav a:hover {
    color: #000;
}

.main-nav a.active {
    color: #000;
    border-bottom-color: #000;
}

main {
    flex: 1;
    padding: 2rem 0 3rem;
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* INFOBOX */
.infobox {
    background: #ffffff;
    border: 2px solid #1a1a1a;
    padding: 1.5rem 2rem;
    position: relative;
    max-width: 100%;
}

.infobox::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid #1a1a1a;
    pointer-events: none;
}

.infobox-title {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.infobox-flags {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.flag-item {
    text-align: center;
}

.flag-item img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    filter: none;
}

.flag-label {
    display: block;
    font-size: 0.8rem;
    color: #555;
    letter-spacing: 0.5px;
    margin-top: 0.3rem;
}

.infobox-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.infobox-table tr {
    border-bottom: 1px solid #e0dcd5;
}

.infobox-table td {
    padding: 0.4rem 0.5rem 0.4rem 0;
}

.infobox-table td:first-child {
    font-weight: 400;
    color: #555;
    width: 38%;
    letter-spacing: 0.5px;
}

.infobox-table td:last-child {
    color: #1a1a1a;
}

.infobox-table tr:last-child {
    border-bottom: none;
}

.infobox-map {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #d0d0d0;
}

.infobox-map img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    filter: none;
}

.map-label {
    display: block;
    font-size: 0.8rem;
    color: #555;
    letter-spacing: 0.5px;
    margin-top: 0.3rem;
}

/* PREÂMBULO */
.preambulo {
    margin: 0 0 1.5rem 0;
    padding: 1.5rem 2rem;
    background: #f5f3ef;
    border-left: 4px solid #1a1a1a;
    font-style: italic;
    color: #333;
    line-height: 1.9;
}

.preambulo p {
    margin: 0;
    font-size: 1.05rem;
}

.preambulo cite {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #555;
    font-style: normal;
    letter-spacing: 0.5px;
}

/* TEXTO INTRODUTÓRIO */
.intro-text {
    background: #ffffff;
    border: 2px solid #1a1a1a;
    padding: 2rem 2.5rem;
    position: relative;
}

.intro-text::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid #1a1a1a;
    pointer-events: none;
}

.intro-text p {
    margin-bottom: 1.2rem;
    color: #2a2a2a;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.intro-text strong {
    font-weight: 400;
    color: #1a1a1a;
}

.intro-text a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.intro-text a:hover {
    color: #555;
}

/* PÁGINAS SECUNDÁRIAS */
.page-header {
    background: #ffffff;
    border: 2px solid #1a1a1a;
    padding: 2rem 2.5rem;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid #1a1a1a;
    pointer-events: none;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.page-header p {
    color: #777;
    font-style: italic;
}

.page-content-simple {
    background: #ffffff;
    border: 2px solid #1a1a1a;
    padding: 2rem 2.5rem;
    position: relative;
}

.page-content-simple::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid #1a1a1a;
    pointer-events: none;
}

.page-content-simple p {
    margin-bottom: 1.2rem;
    color: #2a2a2a;
}

.page-content-simple p:last-child {
    margin-bottom: 0;
}

.page-content-simple h2 {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 1.5rem 0 0.5rem;
}

.page-content-simple h3 {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 1rem 0 0.3rem;
}

.page-content-simple h4 {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0.8rem 0 0.2rem;
}

.page-content-simple ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0 1rem;
}

.page-content-simple ul li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0ede8;
}

.page-content-simple ul li strong {
    font-weight: 400;
    color: #1a1a1a;
}

.page-content-simple .artigo {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: #f5f3ef;
    border-left: 3px solid #1a1a1a;
}

.page-content-simple .artigo strong {
    font-weight: 400;
    color: #1a1a1a;
}

.page-content-simple .artigo p {
    margin-bottom: 0.5rem;
}

.page-content-simple .artigo p:last-child {
    margin-bottom: 0;
}

.page-content-simple .artigo ul {
    margin: 0.3rem 0 0 1.5rem;
}

.page-content-simple .artigo ul li {
    border-bottom: none;
    padding: 0.1rem 0;
}

/* CARTA MAGNA */
.page-content-simple.magna h2 {
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 2rem;
}

.page-content-simple.magna h3 {
    font-size: 1.3rem;
    text-align: center;
    letter-spacing: 2px;
    margin: 2rem 0 1rem;
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 0.3rem;
}

.page-content-simple.magna hr {
    border: none;
    border-top: 2px solid #1a1a1a;
    margin: 2rem 0;
}

.page-content-simple.magna .artigo {
    background: #f5f3ef;
    border-left: 3px solid #1a1a1a;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.page-content-simple.magna .artigo strong {
    font-weight: 400;
    color: #1a1a1a;
}

.page-content-simple.magna .artigo p {
    margin-bottom: 0.5rem;
}

.page-content-simple.magna .artigo p:last-child {
    margin-bottom: 0;
}

.page-content-simple.magna .artigo ul {
    margin: 0.3rem 0 0 1.5rem;
}

.page-content-simple.magna .artigo ul li {
    border-bottom: none;
    padding: 0.1rem 0;
}

/* FOOTER */
footer {
    padding: 2rem 0;
    border-top: 2px solid #1a1a1a;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
}

footer a {
    color: #555;
    text-decoration: none;
}

footer a:hover {
    color: #000;
}

/* RESPONSIVO */
@media (max-width: 800px) {
    body.tavaquara {
        padding: 0 1rem;
    }

    .site-title {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }

    .main-nav {
        gap: 0.8rem;
    }

    .main-nav a {
        font-size: 0.75rem;
    }

    .infobox {
        padding: 1.2rem 1.2rem;
    }

    .infobox-title {
        font-size: 1.4rem;
    }

    .infobox-flags {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .flag-item img {
        max-height: 120px;
    }

    .infobox-table td:first-child {
        width: 40%;
    }

    .intro-text {
        padding: 1.2rem 1.5rem;
    }

    .page-header {
        padding: 1.2rem 1.5rem;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .page-content-simple {
        padding: 1.2rem 1.5rem;
    }

    .infobox-map img {
        max-height: 200px;
    }

    .preambulo {
        padding: 1rem 1.2rem;
    }

    .preambulo p {
        font-size: 0.95rem;
    }

    .page-content-simple .artigo {
        padding: 0.8rem 1rem;
    }

    .page-content-simple.magna h2 {
        font-size: 1.4rem;
    }

    .page-content-simple.magna h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 500px) {
    body.tavaquara {
        padding: 0 0.8rem;
    }

    .site-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .main-nav {
        gap: 0.5rem;
    }

    .main-nav a {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .infobox {
        padding: 1rem;
    }

    .infobox-title {
        font-size: 1.2rem;
    }

    .infobox-table {
        font-size: 0.8rem;
    }

    .infobox-table td:first-child {
        width: 45%;
    }

    .intro-text {
        padding: 1rem;
    }

    .intro-text p {
        font-size: 0.9rem;
    }

    .page-header {
        padding: 1rem;
    }

    .page-header h1 {
        font-size: 1.2rem;
    }

    .page-content-simple {
        padding: 1rem;
    }

    .page-content-simple p {
        font-size: 0.9rem;
    }

    .flag-item img {
        max-height: 100px;
    }

    .infobox-map img {
        max-height: 150px;
    }

    .preambulo {
        padding: 0.8rem 1rem;
    }

    .preambulo p {
        font-size: 0.85rem;
    }

    .preambulo cite {
        font-size: 0.75rem;
    }

    .page-content-simple .artigo {
        padding: 0.6rem 0.8rem;
    }

    .page-content-simple.magna h2 {
        font-size: 1.2rem;
    }

    .page-content-simple.magna h3 {
        font-size: 1rem;
    }

    .page-content-simple.magna .artigo {
        padding: 0.6rem 0.8rem;
    }
}