/* main */

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background-image: url("../risorse/sfumatura rosso nero.jpg");
    background-size: cover;
    background-position: center;
}
/* home page */

.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    transform: translateY(120px);
}

.hero h1 {
    color: #c91900;
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    color: whitesmoke;
    font-size: 18px;
    margin-bottom: 40px;
}

.hero button {
    border-radius: 30px;
    padding: 15px 40px;
    border: none;
    cursor: pointer;
    background: #c91900;
    color: black;
    font-size: 18px;
}

/* MOBILE FIX */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero button {
        font-size: 16px;
        padding: 12px 30px;
    }
}

/* login */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 8px 8px;
    background-color: black;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}

header .navigation ul li a {
    position: relative;
    font-size: 1.1em;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
}

header .navigation ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    border-radius: 5px;
    transform-origin: 50% 50%;
    transform: scaleX(0);
    transition: transform .5s;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    background: linear-gradient(to right, #ffffff, #f3f3f3);
}

header .navigation ul li a:hover::after {
    transform-origin: right;
    transform: scaleX(1);
}


header .navigation ul li .btnLogin-popup {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid #fff;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    color: #fff;
    font-weight: 500;
    margin-left: 40px;
}

/* Responsive Navbar styles */

header .navigation ul {
    float: right;
    margin-right: 20px;
    
}

header .navigation ul li {
    display: inline-block;
    line-height: 50px;
    margin: 0 5px;
}

header .navigation ul li a {
    /* color: white; */
    /* font-size: 17px; */
    padding: 7px 13px;
    border-radius: 3px;
    text-transform: uppercase;
}

 .check_btn {
    font-size: 25px;
    color: white;
    float: left;
    line-height: 50px;
    margin-right: 10px;
    cursor: pointer;
    display: none;
}
 #check {
    display: none;
}

@media (max-width: 858px) {
    .check_btn {
        display: block;
    }
    header .navigation ul {
        position: fixed;
        width:50%;
        height: 70vh;
        background: #2c5038;
        top: 100px;
        left: -100%;
        text-align:left;
        transition: all .5s;
        border: 2px solid #c9c8c8;
        border-radius: 6px;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    }
    header .navigation ul li {
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }
    header .navigation ul li a {
        font-size: 20px;
    }
    #check:checked ~ ul {
        left: 0;
    }
}

.logo {
    /* Your existing logo styles */
    color: rgb(250, 250, 250);
    user-select: none;
    font-size: 25px;
    line-height: 50px;
    padding: 0 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
}

.cover_box {
    position: fixed;              /* popup sopra la pagina */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 400px;
    height: 440px;
    background: transparent;
    border: 2px solid #c9c8c8;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 2000;               /* sopra tutto */
    transition: transform .5s ease, height .2s ease;
}

.cover_box.active-popup{
    transform: translate(-50%, -50%) scale(1);
}
.cover_box.active{
    scale: 1;
}
.cover_box .form-box{
    width: 100%;
    padding: 40px;
}

.cover_box .form-box.login{
    transition: transform .50s ease;
    transform: translateX(0);
}

.cover_box.active .form-box.login{
    transition: none;
    transform: translateX(-400px);
}
.cover_box .form-box.register{
    position: absolute;
    transition: none;
    transform: translateX(400px);
}
.cover_box.active .form-box.register{
    transition: transform .50s ease;
    transform: translateX(0);
}

.cover_box .icon-close{
    position: absolute;
    top: 5px;
    right: 5px;
    width: 45px;
    height: 45px;
    background: white;
    font-size: 2em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    z-index: 1;
}

.form-box h2{
    font-size: 2em;
    color: white;
    text-align: center;
}

.input-box{
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 1em;
    color: white;
    font-weight: 500;
    pointer-events: none;
    transition: .5s;
}

.input-box input:focus~label,
.input-box input:valid~label{
    top: -10px;
}

.input-box input{
    width: 100%;
    height: 100%;
    background: transparent;
    border: 1px solid white;
    border-radius: 10px;
    outline: none;
    font-size: 1em;
    color: white;
    font-weight: 600;
    padding: 0 35px 0 5px;
}
.input-box .icon{
    position: absolute;
    right: 8px;
    font-size: 1.2em;
    color: white;
    line-height: 57px;
}

.remember-forgot{
    font-size: .9em;
    color: white;
    font-weight: 500;
    margin: -15px 0 15px;
    display: flex;
    justify-content: space-between;
}

.remember-forgot label input{
    accent-color: white;
    margin-right: 3px;
}

.remember-forgot a {
    color: white;
    text-decoration: underline;
}
.remember-forgot a:hover {
    text-decoration: underline;
}
.btn{
    width: 100%;
    height: 45px;
    border: none;
    outline: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 1em;
    color: black;
    font-weight: 500;
}

.login-register{
    font-size: .9em;
    color: #c9c8c8;
    text-align: center;
    font-weight: 500;
    margin: 25px 0 10px;
}

.login-register p a {
    color: #9a9a9a;
    text-decoration: none;
    font-weight: 600;
}

.login-register p a:hover {
    text-decoration: underline;
}