/* gs-downloads.css — Archivi → Downloads (app pubbliche) */

.gs-apps {
    --gs-apps-ink: #151a24;
    --gs-apps-muted: #3f4658;
    --gs-apps-blue: #0345bf;
    --gs-apps-blue-soft: rgba(3, 69, 191, 0.1);
    --gs-apps-line: rgba(3, 69, 191, 0.22);
    --gs-apps-paper: #eef2f9;
    --gs-apps-white: #ffffff;
    color: var(--gs-apps-ink);
    margin: 0 0 1.5rem;
}

.gs-apps__hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.35rem, 3.2vw, 2.1rem);
    margin: 0 0 1.75rem;
    border: 2px solid var(--gs-apps-blue);
    border-radius: 10px;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(3, 69, 191, 0.12) 0%, transparent 55%),
        linear-gradient(165deg, #ffffff 0%, var(--gs-apps-paper) 100%);
    box-shadow: 0 2px 14px rgba(3, 69, 191, 0.08);
    animation: gsAppsFade 0.55s ease both;
}

.gs-apps__eyebrow {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gs-apps-blue);
}

.gs-apps__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 3.4vw, 2.05rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--gs-apps-blue);
}

.gs-apps__lead {
    margin: 0 0 1.25rem;
    max-width: 48rem;
    color: var(--gs-apps-muted);
    font-style: italic;
    line-height: 1.65;
}

.gs-apps__toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.gs-apps__toc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid var(--gs-apps-line);
    border-radius: 8px;
    background: var(--gs-apps-white);
    color: var(--gs-apps-ink) !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.gs-apps__toc-link:hover,
.gs-apps__toc-link:focus {
    border-color: var(--gs-apps-blue);
    background: var(--gs-apps-blue-soft);
    transform: translateY(-1px);
}

.gs-apps__toc-emoji {
    font-size: 1rem;
    line-height: 1;
}

.gs-apps__section {
    margin: 0 0 1.5rem;
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    border: 1px solid var(--gs-apps-line);
    border-radius: 10px;
    background: var(--gs-apps-white);
    scroll-margin-top: 5.5rem;
    animation: gsAppsRise 0.65s ease both;
}

.gs-apps__section:nth-of-type(2) { animation-delay: 0.05s; }
.gs-apps__section:nth-of-type(3) { animation-delay: 0.1s; }
.gs-apps__section:nth-of-type(4) { animation-delay: 0.15s; }
.gs-apps__section:nth-of-type(5) { animation-delay: 0.2s; }
.gs-apps__section:nth-of-type(6) { animation-delay: 0.25s; }
.gs-apps__section:nth-of-type(7) { animation-delay: 0.3s; }
.gs-apps__section:nth-of-type(8) { animation-delay: 0.35s; }

.gs-apps__section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0 0 1.1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--gs-apps-line);
}

.gs-apps__section-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 10px;
    background: var(--gs-apps-blue-soft);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.gs-apps__section-title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    font-weight: 800;
    color: var(--gs-apps-blue);
    line-height: 1.25;
}

.gs-apps__section-lead {
    margin: 0;
    color: var(--gs-apps-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.gs-apps__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 0.75rem;
}

.gs-apps__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.gs-apps__tier {
    margin: 0 0 1.25rem;
}

.gs-apps__tier:last-child {
    margin-bottom: 0;
}

.gs-apps__tier-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gs-apps-muted);
    line-height: 1.35;
}

.gs-apps__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.2;
}

.gs-apps__badge--free {
    color: #0b6b3a;
    background: rgba(11, 107, 58, 0.12);
    border: 1px solid rgba(11, 107, 58, 0.28);
}

.gs-apps__badge--paid {
    color: #8a4b00;
    background: rgba(180, 98, 0, 0.12);
    border: 1px solid rgba(180, 98, 0, 0.3);
}

.gs-apps__item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 100%;
    padding: 1rem 1.05rem;
    border: 1.5px solid rgba(3, 69, 191, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f3f6fc 100%);
    color: var(--gs-apps-ink) !important;
    text-decoration: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gs-apps__item .gs-apps__badge {
    margin-bottom: 0.35rem;
}

.gs-apps__item:hover,
.gs-apps__item:focus {
    border-color: var(--gs-apps-blue);
    box-shadow: 0 6px 18px rgba(3, 69, 191, 0.12);
    transform: translateY(-2px);
}

.gs-apps__item-name {
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--gs-apps-ink);
}

.gs-apps__item-desc {
    font-size: 0.8125rem;
    color: var(--gs-apps-muted);
}

.gs-apps__item-cta {
    margin-top: 0.65rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gs-apps-blue);
}

.gs-apps__note {
    margin: 0.25rem 0 0;
    padding: 0.95rem 1.1rem;
    border-radius: 8px;
    background: var(--gs-apps-blue-soft);
    border: 1px solid var(--gs-apps-line);
}

.gs-apps__note p {
    margin: 0;
    font-size: 0.8125rem;
    color: #4a5163;
    line-height: 1.6;
}

@keyframes gsAppsFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gsAppsRise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gs-apps__hero,
    .gs-apps__section,
    .gs-apps__item,
    .gs-apps__toc-link {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 640px) {
    .gs-apps__toc-link {
        flex: 1 1 calc(50% - 0.55rem);
    }

    .gs-apps__section-head {
        gap: 0.7rem;
    }
}
