/*
 * LA RIPARERIA — guides-design.css
 * Copyright (c) 2026 Noccioli Carlo — Noccioli Tecnologie Srl.
 * Tutti i diritti riservati.
 * File CSS documentato e indentato; selettori e dichiarazioni invariati.
 */
/* La Ripareria · nuova esperienza Guide © Carlo Noccioli 2026 */
.knowledge-hero {
    background: #161d18;
    color: #f5f8ef;
    padding: clamp(46px,7vw,108px) 0 clamp(54px,7vw,98px);
    overflow: hidden;
}
.knowledge-hero-grid {
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    gap: clamp(26px,5vw,80px);
    align-items: center;
}
.knowledge-kicker,.knowledge-overline {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.knowledge-kicker {
    color: #c2d0bd;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}
.knowledge-kicker span {
    width: 9px;
    height: 9px;
    background: #c7f36a;
    border-radius: 100%;
}
.knowledge-hero h1 {
    font-size: clamp(42px,5.3vw,79px);
    line-height: 1.045;
    letter-spacing: -.065em;
    max-width: 700px;
    margin: 0 0 27px;
}
.knowledge-hero h1 em {
    font-style: normal;
    color: #c7f36a;
}
.knowledge-hero-grid>div>p:not(.knowledge-kicker) {
    font-size: clamp(16px,1.6vw,19px);
    line-height: 1.8;
    color: #cbd4c8;
    max-width: 630px;
}
.knowledge-hero-actions,.knowledge-bottom-actions,.knowledge-cta-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}
.knowledge-quiet-link {
    font-size: 14px;
    font-weight: 750;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 5px;
}
.knowledge-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 25px;
    margin-top: 52px;
    padding-top: 20px;
    border-top: 1px solid #415043;
}
.knowledge-hero-stats span {
    font-size: 12px;
    color: #bbcab7;
}
.knowledge-hero-stats b {
    font-size: 18px;
    color: #c7f36a;
    margin-right: 5px;
}
.knowledge-featured {
    background: #f4f7ed;
    color: #182219;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 22px 60px #0002;
    transform: rotate(1.2deg);
}
.knowledge-featured-media {
    height: 230px;
    overflow: hidden;
}
.knowledge-featured-media img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.knowledge-featured-content {
    padding: 30px 34px 34px;
}
.knowledge-featured-label {
    font-size: 10px;
    color: #627358;
    letter-spacing: 1.5px;
    font-weight: 800;
}
.knowledge-featured h2 {
    font-size: clamp(24px,2.6vw,36px);
    letter-spacing: -.045em;
    line-height: 1.15;
    margin: 12px 0;
}
.knowledge-featured p {
    font-size: 15px;
    line-height: 1.7;
    color: #546352;
}
.knowledge-featured a {
    display: inline-flex;
    gap: 12px;
    font-weight: 800;
    border-bottom: 2px solid #a3ce5b;
    padding-bottom: 6px;
    margin-top: 9px;
}
.knowledge-list-section {
    padding: clamp(55px,7vw,106px) 0;
}
.knowledge-list-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 31px;
}
.knowledge-overline {
    display: block;
    color: #68745f;
    margin: 0 0 16px;
}
.knowledge-list-heading h2,.knowledge-bottom h2,.knowledge-related h2 {
    font-size: clamp(32px,4vw,54px);
    line-height: 1.12;
    letter-spacing: -.055em;
    margin: 0 0 16px;
}
.knowledge-list-heading p {
    color: #5a665a;
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
}
.knowledge-search {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #d9e1d2;
    padding: 0 17px;
    min-width: min(100%,350px);
    border-radius: 50px;
    min-height: 55px;
    gap: 10px;
}
.knowledge-search:focus-within {
    outline: 3px solid #b1d979;
}
.knowledge-search>span {
    font-size: 27px;
    color: #72806c;
}
.knowledge-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: 0;
    color: #162016;
    font-size: 14px;
}
.knowledge-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 30px;
}
.knowledge-filter {
    border: 1px solid #d7e0d1;
    border-radius: 999px;
    padding: 11px 18px;
    background: #fff;
    cursor: pointer;
    color: #3d4c3b;
    font-size: 13px;
    font-weight: 750;
    transition: .18s;
}
.knowledge-filter:hover {
    background: #e7f5d6;
}
.knowledge-filter.is-active {
    background: #1b271c;
    color: #fff;
    border-color: #1b271c;
}
.knowledge-filter:focus-visible,.knowledge-card-link:focus-visible,.knowledge-related-item:focus-visible {
    outline: 3px solid #8fbf3b;
    outline-offset: 4px;
}
.knowledge-cards {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 22px;
}
.knowledge-card {
    min-width: 0;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e9df;
    transition: transform .2s,box-shadow .2s;
}
.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px #1b2e1714;
}
.knowledge-card[hidden],.knowledge-empty[hidden] {
    display: none!important;
}
.knowledge-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.knowledge-card-image {
    position: relative;
    aspect-ratio: 1.65;
    overflow: hidden;
    background: #e5ebdc;
}
.knowledge-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.knowledge-card:hover img {
    transform: scale(1.045);
}
.knowledge-card-arrow {
    position: absolute;
    right: 17px;
    top: 16px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #c7f36a;
    color: #152316;
    font-size: 20px;
}
.knowledge-card-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 25px 25px 27px;
}
.knowledge-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #66805a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}
.knowledge-card h3 {
    font-size: clamp(21px,2vw,27px);
    letter-spacing: -.04em;
    line-height: 1.22;
    margin: 14px 0;
}
.knowledge-card p {
    font-size: 14px;
    line-height: 1.75;
    color: #607064;
    flex: 1;
}
.knowledge-readmore {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e7ece2;
    padding-top: 17px;
    margin-top: 12px;
    font-weight: 800;
    font-size: 13px;
}
.knowledge-empty {
    padding: 35px;
    border: 1px dashed #a9b5a5;
    border-radius: 18px;
}
.knowledge-empty a {
    text-decoration: underline;
}
.knowledge-bottom {
    background: #dcecc6;
    padding: clamp(55px,6vw,95px) 0;
}
.knowledge-bottom-grid {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: clamp(30px,7vw,100px);
    align-items: center;
}
.knowledge-bottom h2 {
    max-width: 700px;
}
.knowledge-bottom p {
    line-height: 1.8;
    font-size: 17px;
    max-width: 650px;
    color: #455546;
}
.knowledge-promise {
    background: #f6f9ed;
    border-radius: 20px;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 18px;
    align-items: center;
}
.knowledge-promise span {
    color: #52802e;
    font-size: 23px;
    font-weight: 900;
}
.knowledge-promise p {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.35;
}
.knowledge-article-header {
    background: #182219;
    color: #fff;
    padding: clamp(35px,6vw,80px) 0;
}
.knowledge-article-headgrid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: clamp(28px,5vw,75px);
    align-items: center;
}
.knowledge-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #bbcbbb;
    font-size: 12px;
    margin-bottom: 36px;
}
.knowledge-breadcrumbs a {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.knowledge-article-header .knowledge-overline {
    color: #c7f36a;
}
.knowledge-article h1 {
    font-size: clamp(38px,4.9vw,72px);
    line-height: 1.06;
    letter-spacing: -.058em;
    margin: 0 0 27px;
}
.knowledge-article-lead {
    font-size: clamp(17px,1.7vw,21px);
    line-height: 1.75;
    color: #d2ddcc;
    margin-bottom: 25px;
}
.knowledge-article-jump {
    color: #c7f36a;
    border-bottom: 1px solid #c7f36a;
    padding-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
}
.knowledge-article-cover img {
    width: 100%;
    height: auto;
    max-height: 440px;
    object-fit: cover;
    border-radius: 22px;
}
.knowledge-article-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 270px;
    gap: clamp(35px,6vw,90px);
    padding-top: clamp(45px,6vw,85px);
    padding-bottom: clamp(65px,8vw,120px);
}
.knowledge-article-content {
    max-width: 760px;
    min-width: 0;
}
.knowledge-intro-note {
    padding: 24px 27px;
    border-radius: 16px;
    background: #e8f2df;
    margin-bottom: 45px;
}
.knowledge-intro-note span {
    font-weight: 850;
    letter-spacing: 1.8px;
    font-size: 11px;
    color: #477a32;
}
.knowledge-intro-note p {
    font-size: 17px;
    line-height: 1.7;
    margin: 12px 0 0;
}
.knowledge-article-section {
    scroll-margin-top: 100px;
    margin: 0 0 45px;
}
.knowledge-article-section h2 {
    font-size: clamp(25px,3vw,37px);
    letter-spacing: -.045em;
    line-height: 1.2;
    margin-bottom: 14px;
}
.knowledge-article-section p,.knowledge-caution p,.knowledge-faq p,.knowledge-article-cta p {
    font-size: 17px;
    line-height: 1.86;
    color: #536154;
}
.knowledge-caution {
    display: flex;
    gap: 18px;
    background: #fff2e0;
    border: 1px solid #e9d0a6;
    padding: 24px;
    border-radius: 16px;
    margin: 12px 0 53px;
}
.knowledge-caution>span {
    flex: none;
    width: 31px;
    height: 31px;
    background: #9d5c12;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
}
.knowledge-caution h2 {
    font-size: 22px;
    margin-bottom: 7px;
}
.knowledge-caution p {
    margin: 0;
    color: #725536;
}
.knowledge-faq h2 {
    font-size: clamp(27px,3vw,39px);
    letter-spacing: -.04em;
    line-height: 1.15;
}
.knowledge-faq details {
    background: #fff;
    border: 1px solid #dce4d8;
    border-radius: 12px;
    padding: 18px 21px;
    margin: 12px 0;
}
.knowledge-faq summary {
    cursor: pointer;
    font-weight: 800;
    line-height: 1.5;
}
.knowledge-faq p {
    font-size: 15px;
    margin: 12px 0 0;
}
.knowledge-article-cta {
    background: #1c291e;
    color: #f6f8f2;
    padding: clamp(25px,4vw,44px);
    border-radius: 22px;
    margin-top: 55px;
}
.knowledge-article-cta .knowledge-overline {
    color: #b8e886;
}
.knowledge-article-cta h2 {
    font-size: clamp(28px,3vw,40px);
    letter-spacing: -.04em;
}
.knowledge-article-cta p {
    color: #c8d6c7;
}
.knowledge-cta-actions a:not(.button) {
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 5px;
}
.knowledge-sidebar-inner {
    position: sticky;
    top: 24px;
    border: 1px solid #dce5d9;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
}
.knowledge-sidebar nav {
    display: grid;
    gap: 15px;
}
.knowledge-sidebar nav a {
    font-size: 13px;
    font-weight: 700;
    color: #4f604c;
    line-height: 1.5;
}
.knowledge-sidebar nav a:hover {
    text-decoration: underline;
}
.knowledge-sidebar-help {
    background: #eff5e7;
    border-radius: 14px;
    margin-top: 25px;
    padding: 19px;
}
.knowledge-sidebar-help strong {
    font-size: 16px;
}
.knowledge-sidebar-help p {
    font-size: 13px;
    line-height: 1.65;
    color: #546252;
}
.knowledge-sidebar-help a {
    font-weight: 800;
    font-size: 13px;
}
.knowledge-related {
    background: #ecf1e6;
    padding: clamp(55px,6vw,95px) 0;
}
.knowledge-related-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}
.knowledge-related-heading>a {
    font-size: 14px;
    text-decoration: underline;
    font-weight: 800;
}
.knowledge-related-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 17px;
}
.knowledge-related-item {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.knowledge-related-item>span {
    font-size: 12px;
    color: #667760;
    font-weight: 750;
}
.knowledge-related-item h3 {
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.03em;
    margin: 0;
    flex: 1;
}
.knowledge-related-item>span:last-child {
    color: #294e1e;
}
.knowledge-related-item:hover {
    background: #e1f4ca;
}
@media(max-width:1020px) {
    .knowledge-cards {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .knowledge-article-layout {
        grid-template-columns: minmax(0,1fr) 220px;
        gap: 27px;
    }
    .knowledge-hero-grid {
        gap: 30px;
    }
}
@media(max-width:780px) {
    .knowledge-hero-grid,.knowledge-article-headgrid,.knowledge-bottom-grid,.knowledge-article-layout {
        grid-template-columns: 1fr;
    }
    .knowledge-hero h1 {
        font-size: clamp(41px,9vw,60px);
    }
    .knowledge-featured {
        transform: none;
        max-width: 580px;
    }
    .knowledge-list-heading {
        align-items: stretch;
        flex-direction: column;
    }
    .knowledge-search {
        width: 100%;
    }
    .knowledge-sidebar {
        display: none;
    }
    .knowledge-article-cover {
        max-width: 650px;
    }
    .knowledge-related-grid {
        grid-template-columns: 1fr 1fr;
    }
    .knowledge-hero-stats {
        margin-top: 30px;
    }
}
@media(max-width:530px) {
    .knowledge-cards,.knowledge-related-grid {
        grid-template-columns: 1fr;
    }
    .knowledge-hero {
        padding-top: 43px;
    }
    .knowledge-hero-stats {
        gap: 10px 16px;
    }
    .knowledge-featured-media {
        height: 190px;
    }
    .knowledge-featured-content {
        padding: 24px;
    }
    .knowledge-list-section {
        padding-top: 48px;
    }
    .knowledge-card-copy {
        padding: 22px;
    }
    .knowledge-bottom-actions,.knowledge-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .knowledge-bottom-actions .button,.knowledge-cta-actions .button {
        justify-content: center;
    }
    .knowledge-article-header {
        padding-top: 27px;
    }
    .knowledge-article h1 {
        font-size: 38px;
    }
    .knowledge-article-cover img {
        max-height: 260px;
    }
    .knowledge-related-heading {
        align-items: start;
        flex-direction: column;
    }
}
@media(prefers-reduced-motion:reduce) {
    .knowledge-card,.knowledge-card-image img {
        transition: none;
    }
}
