body{
    background: #f4f3ec url(img/fundo.png) repeat-x;
    font-size: 12px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

#container{
    width: 1080px;
    margin: 0 auto;
}

a:link,a:active ,a:visited{
    color: #af670a;
    text-decoration: none;
}

a:hover{
    color: #227115;
}

#logo h1{
    float: left;
}

#logo a{
    width: 248px;
    height: 21px;
    text-indent: -9999px;
    display: block;
    background: url(img/logo.png) no-repeat;
}

header{
    padding: 15px 0 ;
    height: 55px;
}

nav ul{
    list-style: none;
    margin: 20px;
    float: right;
}

nav ul li{
    float: left;
}

nav ul li a:link{
    display: block;
    margin-right: 25px;
    padding-bottom: 3px;
    text-transform: uppercase;
}

nav ul li a:hover{
    border-bottom: 1px solid #535858;
    transition-duration: .5s;
}

#conteudo{
    width: 710px;
    float: left;
    margin-bottom: 20px;
}

aside{
    width: 350px;
    float: right;
    background: #ebe7dd;
    padding-bottom:30px ;
    margin-bottom: 20px;
}

section#visita{
    background: #cdc8b1;
    padding: 10px 27px 27px 27px;
    margin-top: 10px;
}

section#galeria{
    padding: 0 27 0 27px;

}

section#galeria a {
    display: block;
    background: url(img/fundo-foto.png) no-repeat;
    float: left;
    padding: 17px 15px 17px 15px;
    margin: 10px 0 0 20px;
}

section#galeria img{
    margin-left: 2px;
    margin-top: 3px;
}

article#video{
    float: left;
    width: 310px;
    margin-left: 25px;
}

article#mapa{
    float: left;
    width: 310px;
    margin-left: 37px;
}

article#exposicoes{
    float: left;
    width: 310px;
    margin: 15px 0 0 25px;
}

article#historia{
    float: left;
    width: 310px;
    margin: 15px 0 0 37px;
}


h3{
    color: #227115;
    font-size: 1.0em;
    margin-bottom: 15px;
    text-transform: uppercase;

}

h4{
    color: #86521a;
    text-transform: uppercase;
    padding-bottom: 3px;
    margin-bottom: 0;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.403);
}

input{
    height: 20px;
    background: #fff;
    border: none;
    font-size: 1em;
    width: 80px;
}

input.campo{
    border: 1px solid #ada484;
}

input.botao{
    background: #9b9271;
    width: 100%;
    height: 40px;
    font-size: 1.2em;
    border: 1px solid #ada484;
}

fieldset{
    border: none;
    
}

legend{
    display: none;
}

footer{
    clear: both;
    padding: 20px 0 30px 0;
    text-align: center;
    background: url(img/fundo-rodape.png) no-repeat top;
}

footer>p a{
    padding: 2px 10px;
}

/* Garante que tudo não estoure a tela */
*,
*:before,
*:after {
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    #container {
        width: 100%;
        min-width: 0;
        padding: 0 5px;
    }
    #conteudo, aside {
        width: 100%;
        float: none;
        margin: 0 0 20px 0;
    }
    #principal {
        display: block;
    }
}

@media (max-width: 900px) {
    nav ul {
        float: none;
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 0 0 10px 0;
    }
    nav ul li {
        float: none;
        margin: 0 0 8px 0;
    }
    nav ul li a {
        margin: 0;
        padding: 12px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 700px) {
    #logo h1 {
        float: none;
        text-align: center;
        margin: 0 auto 10px auto;
    }
    header {
        height: auto;
        text-align: center;
    }
    #conteudo,
    aside {
        padding: 0;
    }
}

@media (max-width: 650px) {
    /* Artigos em bloco */
    article#video,
    article#mapa,
    article#exposicoes,
    article#historia {
        width: 100% !important;
        float: none !important;
        margin: 0 0 15px 0 !important;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    section#galeria {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        padding: 5px 0;
    }
    section#galeria a {
        width: 45%;
        min-width: 120px;
        margin: 5px 2% 0 0;
        float: none;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px;
        box-sizing: border-box;
    }
    section#galeria img {
        width: 100%;
        height: auto;
        max-width: 90px;
    }
    /* Ajusta formulário */
    section#visita input,
    section#visita input.campo {
        width: 100%;
        min-width: 0;
        margin-bottom: 10px;
    }
    /* Ajusta botões */
    input.botao {
        font-size: 1em;
        height: 38px;
    }
}

@media (max-width: 450px) {
    #container {
        font-size: 11px;
        padding: 0;
    }
    section#galeria {
        flex-direction: column;
        align-items: center;
    }
    section#galeria a {
        width: 95%;
        margin: 5px 0;
    }
    article#video iframe,
    article#mapa iframe {
        width: 100% !important;
        height: 140px !important;
    }
}

/* Imagens e iframes sempre responsivos */
img, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Corrige clearfix para floats antigos */
.clearfix::after, .cf::after {
    content: "";
    display: table;
    clear: both;
}

