* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    min-height: 100vh;

}

.box_presentazione {
    position: static;
    align-items: center;
    justify-content: space-around;
    gap: 5rem;
    width: 50vw;
    height: fit-content;
    background: #8c0605;
    color: #fcf7f8;
    scroll-behavior: smooth;
    box-shadow: 12px 0 12px rgba(193, 193, 193, 0.3);
}

.container_accesso {
    position: fixed;
    /* container fisso */
    top: 0;
    right: 0;
    width: 50vw;
    /* metà schermo */
    height: 100vh;
    /* tutta l'altezza */
    background-image: url('../Immagini_sito/Img_accesso/shutterstock_1572382495-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    /* centra il box orizzontalmente */
    align-items: center;
    /* centra il box verticalmente */
}

.col_presentazione {
    z-index: 10;
    display: flex;
    flex-direction: column;
    margin-left: 60px;
    margin-right: 60px;
    margin-top: 100px;
    margin-bottom: 100px;
}

.row {
    align-items: center;
    justify-content: center;
    margin-bottom: 90px;
}

.row_ultima {
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.title {
    text-align: center;
    font-size: clamp(27px, 4vw, 45px);
    font-weight: 800;
}

.subtitle {
    text-align: center;
    text-decoration: none;
    font-size: clamp(13pt, 4vw, 20px);
    font-weight: 300;
    margin-top: 20px;
    padding-left: 40px;
    padding-right: 40px;
}

.box {
    width: 460px;
    height: fit-content;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    padding: 30px 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.box h1 {
    color: #8c0605;
    padding-top: 20px;
    font-size: 38px;
    text-align: center;
    font-weight: bold;
    justify-content: space-between;
}

.box .input-box {
    width: 100%;
    height: 60px;
    margin: 15px 0;

}

.input-box input {
    width: 100%;
    height: 100%;
    background: #fcf7f8;
    border: none;
    outline: none;
    border: 2px solid #8c0605;
    border-radius: 40px;
    font-size: 16px;
    padding: 0 45px 0 30px;
}

.input-box input::placeholder {
    color: black 50%;
}

input.errore {
    border: 2px solid red !important;
    background-color: #ffe6e6;
}

.errore-msg {
    display: flex;
    color: red;
    font-size: 14px;
    margin-top: 5px;
    justify-content: center;
    margin-bottom: 10px;
}


.box .Ricordati-di-me {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    margin: 15px 10 15px;
}

.Ricordati-di-me label input {
    accent-color: #8c0605;
    margin: 5px;
}

.Ricordati-di-me a {
    color: #8c0605;
    text-decoration: none;
}

.Ricordati-di-me a:hover {
    text-decoration: underline;
}

.box .registrazione {
    display: flex;
    justify-content: space-evenly;
    font-size: 15px;
    margin: 15px 10px 15px;
}

.registrazione label input {
    accent-color: #8c0605;
    text-decoration: none;
}

.registrazione a {
    color: #8c0605;
    text-decoration: none;
}

.registrazione a:hover {
    text-decoration: underline;
}


.box .btn {
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    background: #8c0605;
    border: none;
    outline: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    color: #fcf7f8;
    font-weight: 300;
    margin-top: 15px;
    margin-bottom: 15px;
}

.box .btn:hover {
    background-color: #8c0605;
    color: #fcf7f8;
    font-weight: 500;
}

.col_accesso {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.accedi-con-apple {
    width: 250px;
    height: 35px;
    background-color: #fcf7f8;
    color: #8c0605;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    box-sizing: border-box;
    border: none;
}

.accedi-con-apple:hover {
    background-color: black;
    color: #fcf7f8;
    border: none;
}

.accedi-con-Google {
    width: 250px;
    height: 35px;
    background-color: #fcf7f8;
    color: #8c0605;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    box-sizing: border-box;
    border: 1px, #8c0605;
    border: none;
}

.accedi-con-Google:hover {
    background: linear-gradient(90deg, rgba(37, 133, 244, 1) 0%, rgba(52, 168, 83, 1) 33%, rgba(251, 188, 5, 1) 66%, rgba(234, 67, 53, 1) 100%);
    color: #fcf7f8;
    border: none;
}

.accedi-con-Facebook {
    width: 250px;
    height: 35px;
    background-color: #fcf7f8;
    color: #8c0605;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    box-sizing: border-box;
    border: 1px, #8c0605;
    border: none;
}

.accedi-con-Facebook:hover {
    background-color: #1877F2;
    color: #fcf7f8;
    border: none;
}

.foto {
    display: block;
    margin: 50px auto 0 auto;
    /* centrata orizzontalmente */
    max-width: 100%;
    /* l’immagine si adatta al contenitore */
    height: auto;
    /* mantiene le proporzioni */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- RESPONSIVE --- */

/* ≤1200px: da desktop ampio a laptop */
@media (max-width: 1200px) {
    .box_presentazione {
        width: 50vw;
        padding: 30px;
    }

    .container_accesso {
        width: 50vw;
    }

    .box {
        width: 85%;
        max-width: 500px;
    }
}

/* 1199px → 701px: tablet / schermi medi */
@media (max-width: 1199px) and (min-width: 701px) {
    body {
        flex-direction: column;
        align-items: stretch;
    }

    .box_presentazione {
        width: 100%;
        height: auto;
        box-shadow: none;
        padding: 30px 20px;
    }

    .container_accesso {
        position: relative;
        width: 100%;
        height: auto;
        padding: 40px 20px;
    }

    .col_presentazione {
        margin-left: 40px;
        margin-right: 40px;

    }

    .box {
        width: 90%;
        max-width: 480px;
        margin: 20px auto;
    }

    .foto {
        max-width: 85%;
        margin: 20px auto;
    }
}

/* ≤700px: smartphone */
@media (max-width: 700px) {
    body {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .box_presentazione {
        order: 1;
        /* prima la descrizione */
        width: 100%;
        padding: 20px;
        margin: 0 0 20px 0;
        text-align: center;
    }

    .col_presentazione {
        margin-top: 30px;
        margin-left: 5px;
        margin-right: 5px;

    }

    .container_accesso {
        order: 2;
        position: static;
        width: 100%;
        height: auto;
        padding: 20px;
        background-image: none;
        background: #fdfdfd;
        box-shadow: none;
    }

    .title {
        font-size: clamp(20px, 6vw, 28px);
    }

    .subtitle {
        font-size: clamp(14px, 4vw, 16px);
        padding: 0 15px;
    }

    .foto {
        max-width: 90%;
        margin: 10px auto;
    }

    .box {
        width: 95%;
        padding: 20px 15px;
        border-radius: 20px;
    }

    .input-box input {
        font-size: 14px;
        padding: 0 15px;
    }

    .box .btn {
        height: 42px;
        font-size: 14px;
    }

}