
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Josefin Sans", sans-serif;
}

/* HEADER/NAVBAR */

header {
    position: fixed;
    
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: transparent;
    z-index: 1000;
}

.logo-wrapper {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(10px);

    /* Padding lato per lato */
    padding-top: 10px;               
    padding-bottom: 4px;               
    padding-left: 10px;                
    padding-right: 10px;                

    text-align: center;
}

.logo-text {
    font-weight: 650;
    font-size: 24px;
    color: #000000;
    line-height: 1;                    
    display: inline-block;
}

nav {
    background: rgba(255, 255, 255, 0.5);
    padding: 8px 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #444444;
    text-decoration: none;
}

.nav-login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.login {
    background-color: rgba(255, 255, 255, 0.5);
    color: black;
    padding: 8px 25px;
    border-radius: 10px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-icon {
    display: none;
}


.btn-text {
    display: inline-block;
}

.login:hover {
    background-color: #9c9c9cb7;
    color: white;
}

.mobile-login {
    display: none;
}

/* HERO SECTION */
.logo-ministero{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    background-color: #0066CC;
    padding: 40px 50px;

}

.logo-ministero img {
    width: 10%;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 70px; 
}  

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-content-e-logo {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
}

.hero-content h1 {
    font-size: 150px;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.hero-content h3 {
    font-weight: 400;
    font-size: 30px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 26px;
    line-height: 1.5;
}

/* SECTIONS */

.section {
    min-height: 100vh;
    padding: 100px 50px;
}

.section:not(#home) {
  scroll-margin-top: 70px;
}

.section h2 {
    width: 40%;
    line-height: 1;
    font-size: 100px;
    margin-bottom: 30px;
    color: #3E3C43;
    font-weight: 450;
    letter-spacing: -5px;
}

.section p {
    margin-bottom: 30px;
    width: 100%;
    padding: 0;
    font-family: "Inter", sans-serif;
    color: rgba(0, 0, 0, 0.6);
}

.section ul {
    margin-bottom: 30px;
    margin-top: -20px;
    width: 100%;
    padding: 0 12px;
    color: rgba(0, 0, 0, 0.6);
    list-style:inside;
}

.section li {
    font-family: "Inter", sans-serif ;
}

.section-speciale {
    min-height: 155vh;
    padding: 100px 50px;
}

.section-speciale h2 {
    width: 20%;
    line-height: 1;
    font-size: 100px;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 450;
    letter-spacing: -5px;
}

.section-speciale p {
    margin-bottom: 30px;
    width: 100%;
    font-family: "Inter", sans-serif;
    color: rgba(255, 255, 255, 0.5);
}

/* DOWNLOADS SECTION */
.downloads {
    background-color: #ffffff;
}

.card-container {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* sempre 3 colonne */
    gap: 70px;
    align-items: stretch;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}


.card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
}

.card h3 {
    margin-top: 15px;
    color: #333;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.card p {
    margin: 10px 0 0px;
    color: #525252;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* OUR PROJECT SECTION */

.columns-wrapper {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 5%;
    width: 100%;
    padding: 0 10%;
    margin-top: 0;
}

.card-container-ourprojectBG {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8%;
}

.col-sx {
    margin-top: 10%;
}

.card_OP {
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;

    background: rgba(0, 0, 0, 0.19);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8.8px);
    -webkit-backdrop-filter: blur(8.8px);
}

.card_OP i {
    font-size: 60px;
    margin-bottom: 15px;
    color: white;
}

.card_OP h3 {
    color: #ffffff;
    font-size: 30px;
    font-weight: 600;
}

.card_OP p {
    color: #ffffff;
    font-size: 20px;
    font-weight: 350;
    font-family: "Inter", sans-serif;
}

/* MAIN OBJECTIVES SECTION */

.card-containerMO {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
}

.cardMO {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    padding: 40px;

    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.9px);
    -webkit-backdrop-filter: blur(7.9px);
    }

.cardMO img {
    display: block;        
    width: 200px;   
    height: 200px;           
    border-radius: 50%;      
    object-fit: cover;
    margin: 20px auto 40px auto;
}

.card-text h3 {
    margin-top: 10px;
    color: #000000;
    font-size: 30px;
    margin-bottom: 20px;
}

.card-text p {
    margin: 10px 0 20px;
    color: #000000;
    font-size: 20px;
}

/* CREDITS SECTION */

.partner {
    display: grid;
    grid-template-columns: 150px 1fr;
    column-gap: 30px;
    margin-top: 50px;
    align-items: center;

}

.logo_partner {   
    display: flex;
    justify-content: center;
}

.logo_partner img {
    width: 110px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.text h3{
    text-transform: uppercase;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
    font-family: "Josefin Sans", sans-serif;  
}

.text p{
    font-family: "Inter", sans-serif;
    font-size: 20px;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #F2F2F2;
    color: #333;
    text-align: center;
    padding: 30px 0;
    font-weight: 300;
    font-size: 14px;
    gap: 20px;
}

.footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.rights {
    font-family: "Inter", sans-serif;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-family: "Inter", sans-serif;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links span {
    opacity: 0.5; 
}

 

/* MEDIA QUERY */

/* Hero e section */

@media (max-width: 768px) {
    header {
        padding: 15px 4%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        font-size: 18px;
        display: block;
    }

    .logo-wrapper {
        padding-top: 8px;                 
        padding-bottom: 3px;             
        padding-left: 8px;                 
        padding-right: 8px;              
    }

    .hero {
        margin-bottom: 90px;
    }

    .hero-content h1 {
        margin-top: 20px;
        font-size: 80px;
        font-weight: 500;
    }

    .hero-content h3 {
        margin-top: -30px;
        font-weight: 400;
        font-size: 20px;
        text-transform: uppercase;
        margin-bottom: 15px;
        padding: 0 30px;
    }

    .hero-content p {
        margin-top: -10px;
        font-size: 15px;
        font-weight: 300;
        padding: 0 20px;
        line-height: 1.2;
    }

    .section {
        padding: 40px 5%;
    }

    .section h2 {
        width: 30%;
        line-height: 1;
        font-size: 50px;
        margin-bottom: 10%;
        color: #000000;
    }

    .section p {
        font-size: 12px;
    }

     .section li {
        font-size: 12px;
    }

    .section-speciale {
        padding: 40px 5% 60px;
        min-height: auto;

    }

    .section-speciale h2 {
        width: 100%;
        line-height: 1;
        font-size: 50px;
        margin-bottom: 10%;
        color: #000000;
    }

    .aggiunta-project {
        height: 50px;
    }

    .aggiunta-credits {
        height: 50px;
    }

    .section:not(#home) {
        scroll-margin-top: 50px;
}
}

/* Card Downloads */

@media (max-width: 768px){ 

    .card-container {
        grid-template-columns: repeat(2, 1fr); 
        gap: 40px;
    }

    .card {
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        max-height: 360px;
    }

    .card img {
        height: 130px;
        border-radius: 8px;
    }

    .card h3 {
        font-size: 14px;
    }

    .card p {
        font-size: 10px;
    }
}

/* Our project */

@media (max-width: 768px){

    .columns-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 0% 0%;
    }

    .card-container-ourprojectBG {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0% -10px;
    }

    .col-sx {
        margin-top: 0;
    }

    .card_OP {
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 5px;

        background: rgba(255, 255, 255, 0.19);
        border-radius: 16px;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(8.8px);
        -webkit-backdrop-filter: blur(8.8px);
    }

    .card_OP i {
        font-size: 30px;
        margin-bottom: 15px;
        color: rgb(0, 0, 0);
    }

    .card_OP h3 {
        color: #000000;
        font-size: 16px;
    }

    .card_OP p {
        color: #000000;
        font-size: 12px;
    }
}

/* Main Objectives */

@media (max-width: 768px){
    .cardMO {
        display: flex;
        flex-direction: row;      
        align-items: center;      
        gap: 25px;              
        padding: 20px;
        border-radius: 16px;
        box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    }

    .cardMO img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;           
    }

    .card-text {
        flex: 1;   
        text-align: left;               
    }

    .card-text h3 {
        margin: 0 0 6px 0;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.2;
    }

    .card-text p {
        margin: 0;
        font-size: 12px;
    }
}

/* Credits */

@media (max-width: 768px){
    .partner{
        grid-template-columns: 60px 1fr;
        margin-top: 20px;
        column-gap: 10px;
        align-items: start;
    }

    .logo_partner {
        display: flex;
        justify-content: center;
        align-items: start;
    }

    .logo_partner img{
        margin-top: 20px;
        width: 60px;
    }

    .text h3{
        font-size: 13px;
        font-weight: 400;
    }

    .text p{
        font-size: 12px;
    }

    .text p + p{
        margin-top: -20px;
    }

    .logo-ministero {
        height: 20px;
        padding: 20px 25px;

    }

    .logo-ministero img{
        width: 15%;
    }
    
    footer {
    padding: 15px 0;
    height: 70px;
    font-size: 8px;
    }
}

.mobile-nav input[type="checkbox"],
.mobile-nav .hamburger-lines {
    display: none;
}

/* NAV MOBILE  */

@media (max-width: 768px) {
    .mobile-nav input[type="checkbox"],
    .mobile-nav .hamburger-lines {
        display: block;
    }

    nav.mobile-nav {
        position: relative;
        width: 100%;
    }

    /* CHECKBOX INVISIBILE */
    nav.mobile-nav input[type="checkbox"] {
        position: absolute;
        width: 32px;
        height: 32px;
        top: 50%;
        right: 0px;
        transform: translateY(-50%);
        opacity: 0;
        z-index: 5;
        cursor: pointer;
    }

    /* ICONA HAMBURGER */
    nav.mobile-nav .hamburger-lines {
        position: absolute;
        top: 50%;
        right: 0px;
        transform: translateY(-50%);
        
        width: 35px;          
        height: 30px;        
        
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        z-index: 4;

        background: rgba(255, 255, 255, 0.5);
        padding:6px 6px 6px;
        border-radius: 6px;
        backdrop-filter: blur(10px); 
        transition: background 0.3s ease;
    }

    nav.mobile-nav .hamburger-lines .line {
        height: 3px;          
        width: 100%;
        background: #000;
        border-radius: 5px;
        
        transition: transform 0.4s ease, opacity 0.30s ease;
        transform-origin: center;  
    }

  /* ANIMAZIONE — BURGER → X */
        input#menu-toggle:checked ~ .hamburger-lines .line1 {
        transform: translateY(7.5px) rotate(45deg);
        }

        input#menu-toggle:checked ~ .hamburger-lines .line2 {
        opacity: 0;
        }

        input#menu-toggle:checked ~ .hamburger-lines .line3 {
        transform: translateY(-7.5px) rotate(-45deg);
        }

        input#menu-toggle:checked ~ .hamburger-lines {
        background: transparent;
        backdrop-filter: none; 
        }


    /* MENU MOBILE */
    nav .nav-links {
        position: fixed;
        top: 0px;
        right: -100vw;         
        width: 100% ;          
        height: 100vh;

        background-color: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(12px);
        padding: 120px 30px 30px;

        display: flex;
        flex-direction: column;
        transition: right 0.4s ease;
        z-index: 3; 
    }


    .nav-links ul li a{
        color: #000000;
        font-size: 16px;
    }
    
    .nav-links{
        display: flex;
        justify-content: left;
        position: fixed;
        background: #ffffff;
        height: 150vh;
        width: 40vw;
        left: auto;
        top: 60px;
        right: -100vw;
        text-align: left;
        padding: 80px 30px 30px;
        z-index: 2000;
        transition: right 0.8s ease;
    }

    nav{
        background: none;
        backdrop-filter: none;
        padding: 0;
    }

    .nav-links ul{
        display: flex;
        flex-direction: column;
        gap: 20px
    }

    .nav-links.active {
        right: 0;
    }

    input#menu-toggle:checked ~ .nav-links {
        right: 0;
    }

    nav .nav-links ul {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    nav .nav-links ul li a {
        color: #000;
        font-size: 20px;
    }

    .login {
        display: none;
    }

   .btn-text  {
        display: none;
   }

    .mobile-login {
        display: block;
        margin-top: auto;
        padding: 8px;
        text-align: center;
        border-radius: 8px;
        font-weight: 600;
        border: 2px solid rgb(0, 0, 0);
    }

    .mobilebtn-text {
        display: inline-block;
        font-size: 18px;
        color: rgb(0, 0, 0);
    }
    
}