/* Global styles | Responsive properties are below */

html {
    scroll-behavior: smooth;
  }

/* Colours */
:root {
    --main-blue:rgba(0,51,102,1);
    --gray:#afafaf;
    --secondary-blue:#2c3c7d;
}

/* Text */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,200;0,400;0,600;0,800;1,200;1,400;1,600;1,800&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
}

/*Font sizes are responsive, see media queries below */

a {
    color: var(--secondary-blue);
    text-decoration: none;
}

a:hover {
    color: var(--main-blue);
}

#ets-first {
    min-height: 100vh;
    position: relative;
}

.menu-desktop-logo img {
    height: 50px;
}

#menu-desktop {
    background-color: var(--secondary-blue);
    position: fixed;
    top: 0; 
    height: 100px;
    width: 100vw;
    z-index: 1000;
}

#menu-desktop p {
    display: inline !important;
    cursor: pointer;
}

.menu-desktop-items a {
    text-decoration: none;
    color: white;
}

.menu-desktop-items a:hover {
    text-decoration: none;
    color: #cccccc;
}

.sticky-menu {
    position: fixed;
    bottom: 0px; /* Initially hides the menu below the viewport */
    left: 0;
    width: 100%;
    background-color: var(--secondary-blue);
    height: 60px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    transition: bottom 0.3s ease-out;
    z-index: 1000;
  }

  .menu-item {
    color: white;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
  }

.hr-ets-first {
    border: 3px solid white;
    opacity: .5 !important;
    width: 150px;
}

.hr-ets-general {
    border: 2px solid var(--main-blue);
    opacity: .5 !important;
    width: 100px;
}

.hr-ets-general-white {
    border: 2px solid white;
    opacity: .5 !important;
    width: 100px;
}


.btn-ets-first {
    background-color: rgba(0,0,0,0.25);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    padding: 10px 16px 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
}

.btn-ets-first a {
    color: white;
    text-decoration: none;
}

.btn-ets-first:hover {
    background-color: rgba(0,0,0,0.4);
    text-decoration: none;
}


.person {
    position: relative;
    filter: grayscale(0);
}

.person-overlay {

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.05);
    color: #fff;
    display: none; /* Initially hide the overlay */
    justify-content: center;
    align-items: end;
    text-align: center;
}

.ifom {
    background-color: #1890c4;
}

#footer p {
    color: #cccccc;
}

#footer a {
    color: #cccccc;
    text-decoration: none;
}

#footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.logo-footer {
    width: 170px;
}

/* Show the overlay on hover */
.person:hover .person-overlay {
    display: flex;
}

.person:hover {
    filter: grayscale(1);
}


#silviaMarcolini {
    background-image: url(/assets/people/silviaMarcolini-ets.jpg);
    background-size: cover;
}

#ginevraBargiacchi {
    background-image: url(/assets/people/ginevraBargiacchi-ets.jpg);
    background-size: cover;
}

#camillaRossi {
    background-image: url(/assets/people/camillaRossi-ets.jpg);
    background-size: cover;
}

#faustaPina {
    background-image: url(/assets/people/faustaPina-ets.jpg);
    background-size: cover;
}

#tarcisioMoreschi {
    background-image: url(/assets/people/dontarcisio-ets.jpg);
    background-size: cover;
}

#silviaCroci {
    background-image: url(/assets/people/silviaCroci-ets.jpg);
    background-size: cover;
}

#footer {
    background-color: var(--main-blue);
}

.main-content-pages {
    position: relative;
    top: 90px;
}



/* Responsive styles for desktop | Larger than md breakpoint */
@media only screen and (min-width: 768px) {
    #ets-first {
        background-image: url(/assets/intro/algebrisets-introimage-tanzania.jpg);        
        background-size: cover;
        background-position: center;
    }
    #people-list > .row > .person {
        width: calc((100vw-100%)/6);
        height: calc(100vw/6);
        margin: 0 !important;
    }
    #contact {
        background-image: url(/assets/contact/contacts.jpg);        
        background-size: cover;
        background-position: right;
    }    
    h1 {
        font-size: 3.50rem;
        line-height: 3.7rem;
        font-weight: 800;
    }
    
    h3 {
        color: var(--main-blue);
        font-size: 2.4rem;
        font-weight: 800;
    }
    
    h5 {
        color: var(--main-blue);    
        font-size: 1.75rem;
        font-weight: 800;
    }         
    p, ul, ol {
        font-family: 'Barlow', sans-serif;
        font-size: 1.4rem;
    }    
    .ets-first-content {
        position: absolute;
        bottom: 0;
        left: 0;
        max-width: 50vw;
    }
    #causes, #people, #donate, #contact {
        scroll-margin-top: 90px;
    }
    

}



/* Responsive styles for mobile | below md breakpoint */

@media only screen and (max-width: 767px) {
    #ets-first {
        background-image: url(/assets/intro/algebrisets-introimage-tanzania-mobile.jpg);        
        background-size: cover;
        background-position: bottom right;
    }
    #people-list > .row > .person {
        width: calc((100vw-100%)/2);
        height: calc(100vw/2);
        margin: 0 !important;
    }
    h1 {
        font-size: 2.25rem;
        line-height: 2.4rem;
        font-weight: 800;
    }
    
    h3 {
        color: var(--main-blue);
        font-size: 1.75rem;
        font-weight: 800;
    }
    
    h5 {
        color: var(--main-blue);    
        font-size: 1.25rem;
        font-weight: 800;
    }        
    p, ul, ol {
        font-family: 'Barlow', sans-serif;
        font-size: 1.15rem;
    }     
    .ets-first-content {
        position: absolute;
        top: 0;
        left: 0;
        max-width: 100vw;
    }       
    #causes, #people, #donate, #contact {
        scroll-margin-top: 0px;
    }

}
