/* ---- 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;
    position: relative;
}

.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;
    margin-bottom: -1rem;
}

.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: 300;
    position: absolute;
    top: 0.3rem;
    right: 2.2rem;
}

.caption {
    text-align: center;
    color: var(--text-color);
    width: max-content;
    margin-inline: auto;
    padding: 0.25rem 0.5rem 0.5rem;
    border-radius: 0.7rem;
    background-color: #0000001c;
}

.caption:hover {
    background-color: #0000003d;
}

.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 h3 {
    font-weight: 200;
}

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

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

/* FILTERS */

.card.disabled {
    display: none;
}

.filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.filter {
    cursor: pointer;
    background-color: #FFFC;
    padding: 0.5rem 1.5rem 0.8rem;
    border-radius: 2rem;
    position: relative;
}

.filter img {
    width: 3rem;
    margin-bottom: -0.8rem;
    margin-right: 0.5rem;
}

.filter span {
    font-size: 1.5rem;
    text-transform: uppercase;
}

.filter.disabled {
    opacity: 0.4;
}

.overclick {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

/* CLOSE */
.close {
    position: absolute;
    top: 5px;
    left: 10px;
    z-index: 10;
}

.close img {
    width: 5rem;
}