/* =============================================
   AREA DOWNLOAD
   ============================================= */

/* ---- HERO ---- */
.download-container {
    background: linear-gradient(155deg, rgba(1, 127, 66, 0.07) 0%, rgba(255,255,255,0) 55%);
    position: relative;
    overflow: hidden;
}

.download-container::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(1, 127, 66, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.download-container h1 {
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.download-container h1 + p,
.download-container .download-empty p {
    color: #6b7280;
    line-height: 1.75;
    max-width: 560px;
}

.download-container .download-empty p {
    margin-inline: auto;
}

.download-sub-container {
    position: relative;
    background: #fff;
}

/* ---- GRUPPI PER CATEGORIA ---- */
.download-group__title {
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.02em;
}

.download-group__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: var(--ciotolandia-green, #017f42);
}

/* ---- CARD ---- */
.download-card {
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: rgba(1, 127, 66, .35);
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.download-card__thumb {
    aspect-ratio: 16 / 9;
    background: #f7f7f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.download-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Documento senza immagine di prodotto: icona al posto della foto. */
.download-card__thumb--generic {
    background: linear-gradient(135deg, rgba(1,127,66,.08), rgba(1,127,66,.02));
}

.download-card__thumb--generic i {
    font-size: 2.6rem;
    color: var(--ciotolandia-green, #017f42);
}

.download-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 0px);
}

.download-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}

.download-card__desc {
    font-size: .92rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 12px;
}

.download-card__meta {
    font-size: .8rem;
    color: #9aa0a6;
    text-transform: uppercase;
    letter-spacing: .04em;
    /* Spinge il pulsante in fondo: le card di una riga restano allineate. */
    margin: auto 0 14px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
    background: var(--ciotolandia-green, #017f42);
    border: 0;
    transition: filter .15s ease;
}

.btn-download:hover,
.btn-download:focus {
    color: #fff;
    filter: brightness(1.1);
}

@media (max-width: 767px) {
    .download-container h1 {
        font-size: 2.6rem;
    }
}
