@charset 'utf-8';
:root {
    --primary-light: rgba(241, 241, 241, 0.831);
    --primary: #d7d7d7;
    --primary-dark: #fff;
    --white: #fff;
    --black: #000000;
    --greyblack-1: #2c2c2c;
    --greyblack-2: #787878;
    
}
p {
    font-family: Arial, 'Helvetica', sans-serif;
    font-size: 24px;
}
a {
    text-decoration: none;
    color: var(--black);
}
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}
body{
    background: var(--white);
    /* sfondo che cambia colore*/
    background-color: #fff;
    -webkit-animation: random 10s infinite;
    animation: random 10s infinite;    
}

@keyframes  random {
   15% { background-color: rgb(255, 220, 137); } 
   30% { background-color: rgb(251, 251, 155); } 
   45% { background-color: rgb(156, 212, 156); } 
   60% { background-color: rgb(163, 163, 249); }
   75% { background-color: rgb(249, 163, 169); }
   95% { background-color: white; }  
}

/************ form ************/


.container .contenitore_form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2%;    
}

.components, form {
    width: 100%;
    height: 40%;
    border-radius: 1%;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2%;
}
input, select, textarea, input {
    border: 0px;
    padding: 0 10px 0;
  
}
 input, select, textarea {
    width: 300px;
    height: 50px;
    margin-top: 3%;
    border-radius: 20px;
    box-shadow: 0.8px 0.8px 1.4px var(--primary-light), -2px -2px 5px var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
}
.full input{
    box-shadow: none;
}
label {
    font-family: Arial, 'Helvetica', sans-serif;
    align-items: center;
    color: var(--black);
    
}

summary {list-style: none}
summary::-webkit-details-marker {display: none; }


/************ BOTTONE ************/
.btn {
    width: 300px;
    height: 50px;
    border-radius: 1rem;
    box-shadow: 0.3rem 0.3rem 0.6rem var(--primary-light), -0.2rem -0.2rem 0.5rem var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s ease;
    margin: 30px;
    background-color: var(--primary-dark);
}

.btn__secondary, input {
    margin: 8px;
    grid-column: 0.5;
    grid-row: 0.8333333333;
    color: var(--black);
}

.btn__secondary:hover  {
    color: var(--greyLight-1);
}

.btn__secondary:active {
    box-shadow: inset 0.2rem 0.2rem 0.5rem var(--primary-light), inset -0.2rem -0.2rem 0.5rem var(--white);
}

.btn p {
    font-size: 1.6rem;
}

input, select, textarea {
    background-color: var( --primary-dark);
    
}

input[type=submit] {
    margin-left: 20px;
    grid-column: 0.5;
    grid-row: 0.8333333333;
    color: var(--black);
    margin-top: 40px;
}

input[type=submit]:hover {
    color: var(--greyblack-1);
}

input[type=submit]:active {
    color: var(--greyblack-1);
}

textarea[id=messaggio_for] {
    height: 50px;
    color: var(--black);
    margin-left: 3%;
}
input[checked] {
    box-shadow: none;
}

select{
    color: var(--black);
}
/************ logo ************/
#sfondo-logo{
    z-index: 1;
    background-image: url(..img/icona.png);
    background-repeat: no-repeat, repeat;
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}



/************ responsive ************/

@media screen and (width: 400px) {
    .components, form {
        width: 100%;
    }

    .btn {
        width: 150px;
    }

    input, select, textarea {
        width: 150px;
    }
    textarea[id=messaggio_for] {
        height: 150px;
        color: var(--primary-dark);
        margin-left: 0%;
    }
}