/* NavalHEAD — Sezione Trusted by (template-parts/trusted-by.php) */
.nh-trusted {
    padding: clamp(4rem, 10vw, 7rem) 0.5rem;
    background: rgb(255, 255, 255);
    background-image:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3)), url(../img/CB22935-originale.jpg);
    background-size: auto auto, clamp(800px, 100%, 2900px) auto;
    background-position: center center;
    background-repeat: no-repeat;
}

.nh-trusted__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.nh-trusted__title {
    margin: 0 0 clamp(2.5rem, 5vw, 4rem);
    color: var(--nh-blue);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 0 40px rgba(10, 61, 85, 0.49);
}

/*
 * Elenco elastico: 2 colonne su mobile, 4 da 768 px; qualsiasi numero di nomi.
 * L'ultima riga incompleta si centra (es. il 9° nome sta al centro della terza riga).
 */
.nh-trusted__list {
    --nh-trusted-gap: clamp(0.5rem, 2vw, 1.5rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--nh-trusted-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nh-trusted__item {
    flex: 0 0 calc((100% - var(--nh-trusted-gap)) / 2);
    background: rgba(255, 255, 255, 0.80);
    border-radius: 2px;
    box-shadow: 0 0 100px rgba(10, 61, 85, 0.59);
    padding: 0 10px !important;
}

@media (min-width: 768px) {
    .nh-trusted__item {
        flex-basis: calc((100% - 3 * var(--nh-trusted-gap)) / 4);
    }
}

@media (max-width: 768px) {
    .nh-trusted__inner {
        padding: 0 100px;
    }

    .nh-trusted__name {
        font-size: 0.87375rem !important;
    }
}

@media (max-width: 620px) {
    .nh-trusted__inner {
        padding: 0 50px;
    }
}

@media (max-width: 480px) {
    .nh-trusted__inner {
        padding: 0 10px;
    }

    .nh-trusted__item {
        padding: 0 !important;
    }
}

.nh-trusted__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    padding: 0;
    text-align: center;
}

.nh-trusted__name {
    color: var(--nh-ink);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    text-decoration: none;
}

a.nh-trusted__name:hover, a.nh-trusted__name:focus-visible {
    color: var(--nh-blue);
}
