/* Mezzi e attrezzature */

.mezzi-page {
    padding: 2rem 0 4rem;
}

.mezzi-breadcrumb {
    font-size: .9rem;
    margin-bottom: 1.5rem;
    color: var(--gray-medium, #6c757d);
}

.mezzi-breadcrumb a {
    color: var(--primary-dark, #1b4332);
}

.mezzi-header {
    max-width: 820px;
    margin-bottom: 2rem;
}

.mezzi-eyebrow {
    display: inline-block;
    margin-bottom: .6rem;
    color: var(--primary-light, #40916c);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mezzi-header h1 {
    margin: 0 0 .75rem;
    color: var(--primary-dark, #1b4332);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
}

.mezzi-header p {
    margin: 0;
    color: var(--gray-dark, #374151);
    font-size: 1.08rem;
    line-height: 1.7;
}

.mezzi-hero-media {
    width: 100%;
    aspect-ratio: 21 / 8;
    min-height: 260px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef4ef;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12);
    margin-bottom: 2rem;
}

.mezzi-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mezzi-hero-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: var(--gray-medium, #6c757d);
    font-size: 1rem;
}

.mezzi-hero-placeholder i {
    font-size: 3rem;
    color: var(--primary-light, #40916c);
}

.mezzi-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 0 0 2.25rem;
}

.mezzi-summary a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .85rem;
    border: 1px solid rgba(27, 67, 50, .18);
    border-radius: 999px;
    color: var(--primary-dark, #1b4332);
    text-decoration: none;
    font-weight: 600;
    background: #fff;
}

.mezzi-summary span {
    min-width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f5e8;
    font-size: .78rem;
}

.mezzi-category {
    margin: 2.5rem 0;
}

.mezzi-category-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: .7rem;
}

.mezzi-category-header h2 {
    margin: 0;
    color: var(--primary-dark, #1b4332);
    font-size: 1.45rem;
}

.mezzi-category-header span {
    color: var(--gray-medium, #6c757d);
    font-size: .9rem;
}

.mezzi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.mezzo-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(27, 67, 50, .1);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}

.mezzo-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef4ef;
}

.mezzo-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mezzo-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 2rem;
}

.mezzo-card-body {
    flex: 1;
    padding: 1rem;
}

.mezzo-card-body h3 {
    margin: 0 0 .55rem;
    color: var(--primary-dark, #1b4332);
    font-size: 1.08rem;
    line-height: 1.35;
}

.mezzo-card-body p {
    margin: 0;
    color: var(--gray-dark, #374151);
    line-height: 1.55;
    font-size: .95rem;
}

.mezzi-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-medium, #6c757d);
}

.mezzi-empty i {
    display: block;
    margin-bottom: 1rem;
    font-size: 3rem;
    opacity: .45;
}

@media (max-width: 768px) {
    .mezzi-hero-media {
        aspect-ratio: 4 / 3;
        min-height: 220px;
    }

    .mezzi-category-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
