/*@import url("style-orcamento.css");*/
/*@import url("sobre.css");*/
/*@import url("portfolio.css");*/

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
}
h1,
   h2, 
      h3,
        li {
            font-family: "Figtree", sans-serif;
        }
p { 
    font-family: "Roboto", sans-serif;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    font-size: 0.1px;
    color: transparent;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap; 
}

.container {
     min-height: 100%;
     display: flex;
     flex-direction: column;
}

header img {
    width: 12em;
    margin-top: 0.5em;
    margin-left: 0.5em;
}


header {
    background-color: #121355;
    width: auto;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 0;
    display: flex;
    align-items:start;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 5px double #ddd;
    transition: opacity 1.0s ease;
} 

.navbar {
    width: 40em;
    margin-right: 8em;  
} 

.menu {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 45em;
}

.menu li {
    list-style: none;
    margin-right: 2em;
}
a:link {
    color: lime;
    text-decoration: none;
    /*font-family: Impact;*/ /*Fonte Figtree em teste*/
    font-size: 1.3rem;
}
a:visited {
    color: lime;
}
a:hover {
    color: red;
    font-weight: bold;
}
a:active {
    color: red;
}

 main {
       padding-top: 8em;
       display: grid;
       grid-template-columns: repeat(4, 1fr);
       gap: 5px;
    }
.sec {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

    
.sec img {
            width: 100%;
            border-width: 1px;
            border-style: ridge;
            border-color:  #555;
        }

article, hgroup {
    line-height: 1.5;
    letter-spacing: 0.1px;
    /*font-family: 'Times New Roman', Times, serif;*/ /*Fonte Roboto em teste*/
    
}
article h1, hgroup h1 {
    color: #000;
    font-size: clamp(1.2rem, 5vw, 1.7rem);
    margin-top: 17px;
}
article h2, hgroup h2{
    color: #111;
    font-size: clamp(1.2rem, 5vw, 1.7rem);
}
article p, article li {
    color: #000;
    font-size: clamp(1rem, 5vw, 1.2rem) ;
    text-align: left;
}
article ul li {
    margin-left: -10px;
}


footer {
    width: auto;
    text-align: center;
    height: 3em;
    border-top: 0.5px ridge #aaa;
}

@media screen and (max-width: 1000px) {
    main {
    width: 100%;
    padding-top: 6em;
    grid-template-columns: repeat(2, 1fr);
}
    header {
        height: auto;
    }
    header img {
        width: 8em;
    }      
    .navbar {
    width: auto;
    height: auto;
    margin-right: 2em;
    margin-top: 1em;
    display: flex;
    flex-direction: column;
    /*justify-content: end;*/
   
}
.menu-toggle {
    display: flex;
    flex-direction: column;
    width: 100%;   
}
.sp {
    width: 30px;
    height: 3px;
    margin: 5px;
    border-radius: 5px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* mod-2025-06-23 .menu {
    position: absolute;
    top: 3.5em;
    right: 0;
    left: 0;
    z-index: 2;
    padding: 0;
    width: 100%;
    height: 200px;
    border-top: 1px solid #777;
    border-bottom: 1px solid #777;
    outline: 2px inset #888;
    list-style: none;
    text-align: center;
    line-height: 2;
    background-color: #03043e;
    display: none;
}*/
.menu {
    position: absolute;
    top: 3.5em;
    right: 0;
    left: 0;
    padding: 5px;
    z-index: 2;
    width: auto;
    border: 1px solid #777;
    outline: 2px inset #888;
    list-style: none;
    text-align: center;
    line-height: 2;
    background-color: #03043e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}
.menu li {
    border-bottom: 1px dotted #aaa;
    margin-bottom: 2px;
    margin-top: 4px;
    margin-left: 1%;
    margin-right: 1%;
    padding-bottom: 7px;
    width: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*today*/
}
.menu li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}
/* today .menu.active {
    display: block;
}*/
.menu.active {
    max-height: 500px;
    opacity: 1;
} /* today */

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);

}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;

}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
    
} /* today */
.menu li a:link {
    font-size: 1.2em;
}
.menu li a:hover {
    background-color: whitesmoke;
}
}

@media screen and (max-width: 916px) {
 
    main {
        display: block;
        width: 100%;
        padding-top: 6em;
    }
    .sec {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    width: 100%;
}
    .sec picture {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sec img {
        order: 2;
        margin-bottom: 20px;
    }
    .sec article {
        order: 1;
    }
    /*.sec img {
        display: flex;
        align-items: center;
        justify-content: center;
    }*/

    .sec:last-of-type {
    border: none;
}
.sec img, article, hgroup {
    width: 85%;
}

    
}

@media screen and (max-width: 600px) {
    
.sec {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.sec img {
        order: 0;
        margin-bottom: auto;
    }
    .sec article, .sec hgroup {
        order: 0;
    }
    .sec img, article, .sec hgroup {
    width: 90%;
}

}
