html {
    scroll-behavior: smooth;
    font-size: 16px;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
        padding-top: 18vh;
        max-width: 3840px; 
        margin: 0 auto;  
}

.caixa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 17%;
    background-color: #f6eee2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
    padding: 0 5%;
    flex-wrap: wrap; 
}

.textoPsi p{
    font-family: 'fontjacy', sans-serif;
    color:black;
    font-size: 3.2vw;
    margin-left: 25vw;
    max-width: 110%;
    font-weight: 400;  
    display: block;
    line-height: 0.8;
}

.crp {
    font-size: 0.4em; 
    font-family: Arial, Helvetica, sans-serif;  
}
  

.imgmenu {
    position: fixed;
    width: 8vw;
    max-width: 20vw; 
    min-width: 5vw;
    height: auto;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 15%; 
}


.menu {
    display: flex;             
    gap: 2rem;                  
    justify-content: center;  
    align-items: center;       
    list-style: none;          
    padding: auto;
    margin: auto;
    margin-top: 3%;
  }
  

.menu li {
    display: inline;
}

.menu a {
    display: inline-block;
    width: 7rem; 
    height: 2.5rem;
    max-width: 150px; 
    min-width: 100px;
    text-decoration: none;
    color: white;
    background-color: #800008;
    font-size: 1rem; 
    padding: 0.6rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    text-align: center;
    
}

.menu a:hover {
    
    transform: scale(1.5);
    border: 3px solid #8B4513;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/imagens/logoJacy.jpeg');
    background-size: 40%;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .icon-open {
    font-size: 27px;
    color: white;
    transition: transform 0.3s ease;
    display: block;
    width: 35px;
}
main {
    flex: 1; 
}



@media (max-width: 768px) {
    .textoPsi p{
        font-size: 36px;
        margin-top: 18px;
    }
    
    body::before {
        background-size: 60%;
    }
    
    .imgmenu {
        position: fixed;
        right: 76vw;
        width: 22vw;
        height: auto; 
    }
    
    .hamburger {
        display: block;
        position: absolute;
        right: 15px;
        top: 10px;
        background-color: #800008;
        border-radius: 5px;
        margin-top: 20px;
        margin-right: 13px;
        width: 35px;
    }
    
   .menu {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        right: -80%; 
        width: 50%; 
        height: 50vh;
        background-color:rgba(246, 238, 226, 0.5); 
        padding: 80px 20px 30px;
        transition: right 0.3s ease; 
        box-shadow: -5px 0 15px rgba(0,0,0,0.5); 
        margin-top: 0;
        gap: 15px;
        z-index: 1000;
    }
    
    .menu.ativo {
        top: 0;
        z-index: 1000;
        right: 0;
        margin-right: 1%;
    }
    
    .menu li {
        display: block;
        width: 80%;
        margin: 5px 0;
    }
    
    .menu a {
        width: 100%;
        max-width: none;
        font-size: 16px;
        padding: 10px 0;
        
    }
    
    /* Estilos para o ícone hamburger/X */
    .hamburger.ativo .icon-open {
        transform: rotate(90deg);
    }
    
    .hamburger .icon-open::before {
        content: "☰";
    }
    
    .hamburger.ativo .icon-open::before {
        content: "✕";
    }
    
    .caixa {
        padding: 0 2%;
        height: 12vh;
    }
    
    body {
        padding-top: 15vh;
    }
    
    /* Previne rolagem horizontal */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Animações de scroll */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.mostrado {
    opacity: 1;
    transform: translateY(0);
}