/* ---- CARDS ---- */

.container {
    width: 90%;
    margin: 0 auto;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-evenly;
}

.card {
    background-color: var(--card-color);
    margin: 1.5rem;
    flex: 1 1 30rem;
    max-width: 100%;
    box-shadow: 5px 5px 20px 0 rgba(0, 0, 0, 0.18);
    border-radius: 1.5rem;
    transition: color .3s ease-in-out, background .3s ease-in-out;
    height: fit-content;
}

.card a {
    color: var(--text-color);
    text-decoration: none;
}

.card:hover {
    background-color: var(--main);
}

.card:hover a {
    color: var(--card-color);
}

.inner-card {
    padding: 1.5rem;
}

.inner-card img {
    border-radius: 1rem;
    width: 100%;
}

.preview {
    margin: 1rem 0;
    box-shadow: 5px 5px 20px 0 rgba(0, 0, 0, 0.17);
}

.line {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    margin-bottom: 0.2rem;
}


.line img {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0;
}

.line-page {
    justify-content: center;
}

.line-page img {
    width: 8rem;
    height: 8rem;
    margin: auto 0;
    margin-bottom: 4rem;
    margin-right: 1rem;
}

.servizi {
    margin: auto 0;
    position: relative;
}

.servizi img {
    width: 2rem;
    height: 2rem;
}

.servizi span {
    font-size: 1.5rem;
    font-weight: 200;
    position: absolute;
    top: 0.3rem;
    right: 2.2rem;
}

.caption {
    text-align: center;
}

.caption img {
    width: 1.5rem;
    margin-bottom: -0.3rem;
}

/* FORM */

.navbar form {
    margin: 0;
}

.navbar input {
    width: 4rem;
    transition: none;
}

.navbar input:focus {
    width: 20rem;
    transition: width 1s ease;
}

.navbar .form-item:hover {
    border-bottom: none;
}

.navbar .menu .form-item img {
    margin-bottom: -0.4rem;
}

/* NOT FOUND */

.line.not-found {
    font-size: 3.5rem;
    font-weight: 200;
    background-color: #FFFFFF54;
    padding: 1rem 2rem;
}

.not-found img {
    margin-right: 1rem;
}