*{
    margin:0;
    padding:0;
    box-sizing: border-box;   
}
html{
    font-size:  18px;
    scroll-behavior: smooth;
}
/*Colors
Text: #E9F8E3
#2B77C2
*/

:root{
    --main-color: #4CAF50;
    --secondary-color: #8BC34A;
    --text-color: #333;
    --background-color: #F9F2EA;
    --background-secondary: #E9F8E3;
    --font-family: 'Roboto Slab', serif;
    --line-height: 1.6;
    --max-width: 1200px;
}
/*Headers*/
h1, h2, h3, h4, h5, h6, p, summary, li, a{
    margin:0 0 1rem 0;
    font-optical-sizing: auto;
    font-style: normal;
    font-family: 'Roboto Slab', serif;
}

h1, h2, h3, h4, h5, h6{
    margin-top:0.25rem;
    color: var(--secondary-color)
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: 0em;
}

h3 {
  font-size: 1.75rem;
  letter-spacing: 0.01em;
}

h4 {
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

h5 {
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

h6 {
  font-size: 1rem;
  letter-spacing: 0.04em;
}

/*Flex items*/
.flex-item-20{
    flex:1 1 20%;
}
.flex-item-25{
    flex:1 1 25%;
}

.flex-item-30{
    flex:1 1 30%;
}
.flex-item-33{
    flex:1 1 33.33%;
}
.flex-item-50{
    flex:1 1 50%;
}
.flex-item-66{
    flex:1 1 66.66%;
}
.flex-item-75{
    flex:1 1 75%;
}

.flex-item-100{
    flex:1 1 100%;
}

/*Images*/
img{
    width:100%;
    height:auto;
    display:block;
    object-fit: cover;
    object-position: center;
}
/*Flexbox*/
.flex{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}
.v-center{
    align-items: center;
}

.h-center{
    justify-content: center;
}
.center{
    align-items: center;
    justify-content: center;
}
.stretch{
    align-items: stretch;
    justify-content: stretch;
}

.start{
    justify-content: flex-start;
}
.end{
    justify-content: flex-end;
    
}
.text{
    padding: 2rem 1rem;
    width:100%;
}

.no-shrink-grow{
    flex-shrink:0; 
    flex-grow: 0;
}

.full-screen{
    width:100%;
    min-height:100vh;
}

.full-screen img{
    height:100%;
}

.small-padding{
    padding: 2rem 2rem;
}

.large-padding{
    padding: 6rem 2rem;
}


ul{
    list-style: none;
    padding-left:1.5rem;
    margin-bottom:3rem;
    font-family: var(--font-family)
}

ul li{
    padding-left:1.5rem;
    margin-bottom:0.5rem;
}

@font-face {
  font-family: 'Roboto Slab';
  src: url('../fonts/RobotoSlab-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; /* variable range */
  font-style: normal;
}
.intro-panel{
    display: flex;
    align-items: center;
    padding: 1rem;
    border:1px solid white;
    justify-content: center;
    text-align: center;
}
.text-panel{
    display: flex;
    flex-wrap:wrap;
    gap:1rem;
    padding: 1rem;
    border:1px solid white;
    background: var(--background-primary);
    
}
.text-panel .text{
    flex:1 1 100%;
    
}
.image-panel{
    display: flex;
    flex-wrap:wrap;
    padding: 0 1rem;
    margin-bottom: 3rem;
}

.image-panel img{
    flex:1 1 30%;
}
.image-panel .text{
    flex:1 1 70%;
}






/*Sito*/
.bg-alt{
    background-color: var(--background-color);
}
.bg{
    background-color: var(--background-secondary);
}

.opacity{
    opacity:75%
} 

.landing{
    display:flex;
    background: url('../images/back7.jpg') no-repeat center center/cover;
    min-height: 100vh;
    flex-direction:column;
    justify-content: space-between;
    width:100%;
}
.menu{
    width:100%;
    display:flex;
    justify-content: flex-end;
}
.menu .logo{
    width:214px;
    height:auto;    
}
.menu ul{
    display: flex;
    gap:2rem;
    list-style: none;
    background:none;
    width:100%;
    justify-content: flex-end;
    padding:1rem 2rem;
    align-items:center;
}

.menu a{
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
}
ul li:after{
    background:linear-gradient(to right, rgba(0, 20, 80, 0) 0%, rgba(0, 20, 80, 0.2) 50%, rgba(0, 20, 80, 0) 100%);
    content: '';
    height:1px;
}



/*
background: linear-gradient(to right, rgba(0, 20, 80, 0) 0%, rgba(0, 20, 80, 0.2) 50%, rgba(0, 20, 80, 0) 100%);
questo è per il li after
*/
/*Hamburger Menu*/
.hamburger-menu-icon{
    cursor: pointer;
}
.hamburger-menu-icon::before{
    content: '☰';
    font-size: 2rem;
    cursor: pointer;
    margin: 32px;
}
.hamburger-menu-overlay{
    background:  rgba(0, 20, 80, 0.2);
    backdrop-filter: blur(5px);
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    z-index: 10;
    transform:translateX(100%);
    transition: transform 0.3s ease-in-out;
    display:flex;
    align-items: center;
    justify-content: center;
}

.hamburger-menu-overlay.active{
    transform:translateX(0);
}


 button[popovertarget='menu-popover'], #btn-menu-offcanvas{
    border:none;
    background:transparent;
    font-size:2rem;
    text-align:right;
    padding:2rem;
    cursor:pointer;
    text-transform:uppercase;
 }

button[popovertarget='menu-popover']::before{
    content: 'Menù';
    margin:2rem;
    
}
.horizontal{
    flex-direction:row;
    width: 100%;
    height:auto;
}

.vertical{
    width:auto;
    height:100%;
    flex-direction:column;
}
.left{
    left:0;
    transform: translateX(-200%);
}
.right{
    transform: translateX(200%);
    right:0;
}

.top{
    top:0;
    transform: translateY(-200%);
}

.bottom{
    bottom:0;
    transform: translateY(200%);
}
#menu-offcanvas{
    background:var(--background-secondary);
    display:flex;
    opacity:0;
    transition: opacity .5s, transform .5s ease-in-out;
    position:fixed;
    text-transform:uppercase;
    justify-content: space-around;
    border-top-left-radius: 100%;
}


#menu-offcanvas ul{
    padding:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    margin:0;
}

#menu-offcanvas ul > li{
    padding:1rem;
}

#menu-offcanvas ul > li > a {
    color: var(--text-color);
    font-weight: 400;
    text-decoration: none;
    line-height: 1.4;
    font-size: 1.2rem;
}
#menu-offcanvas.open{
    transform:translate(0,0);
    opacity:1;
}

#btn-menu-offcanvas-close{
    background:transparent;
    border:none;
    font-weight:800;
    font-size:1.2rem;
    color:var(--text-color);
    cursor:pointer;
    margin:0.5rem;
}

@keyframes fade-out{
    
    from{
        opacity:1;
        transform: translate3D(0,0,0);
        display:block;
    }
    
    to{
        opacity:0;
        transform: translate3D(200%,0,0);
    }
}


@keyframes fade-in{
    
    from{
        transform: translate3D(200%,0,0);
        opacity:0;
        
    }
    
    to{
        transform: translate3D(0,0,0);
        opacity:1;
    }
}
/*Media Query*/
/* Tablet */
@media (min-width: 768px) {  

  
}

/* Laptop */
@media (min-width: 992px) {
    .image-panel, .text-panel{
        flex-wrap:wrap;
    }
    
    .image-50{
        background:var(--background-color);
        align-items:center;
    }
    .image-50 > div {
    flex: 1 1 50%;
}

.image-50 > img {
    flex: 1 1 50% !important;
}


 }

/* Desktop */
@media (min-width: 1200px) { 
    
   .flex{
        flex-direction: row;
   }

   .reverse{
       flex-direction: row-reverse;
   }
   
   .text.center{
        text-align: center;
    }

   .direction-column{
        flex-direction: column;
   }

   .text{
        padding:3rem 2rem;
   }
 

   
}