.article-guide  a:not(.breadcrumbs a, .article-index a) {
    color: var(--green-color-dark);
    text-underline-offset: 3px;
}

.article-guide a:hover:not(.breadcrumbs a, .article-index a) {
    text-decoration: none;
}

.article-guide section[id] {
    scroll-margin-top: 200px;
}

.article-card + p {
   margin-top: 16px; 
}

/* ---- HERO ---- */
.article-hero {
    background: linear-gradient(135deg, #eef9f2 0%, #f7fbf5 58%, #e2f4e8 100%);
}

.article-eyebrow {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--green-color-dark);
}

.article-eyebrow::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 3px;
    background: var(--green-color);
    border-radius: 999px;
    vertical-align: middle;
    margin-right: 8px;
}

.article-title {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.03;
}

.article-deck {
    font-size: 20px;
    line-height: 1.55;
}

/* ---- RISPOSTA RAPIDA ---- */
.article-answer {
    max-width: 1200px;
    background: #fff;
    border: 1px solid var(--gray-color-20);
    border-left: 6px solid var(--green-color);
}

.article-answer-label {
    display: block;
    color: var(--green-color-dark);
    font-size: 14px;
    text-transform: uppercase;
}

.article-answer p {
    font-size: 19px;
    line-height: 1.55;
    margin: 0;
}

/* ---- TOPIC STRIP ---- */
.article-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.article-topic {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--gray-color-10);
    border: 1px solid var(--gray-color-20);
    border-radius: 9px;
    padding: 25px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
}

.article-topic i {
    display: block;
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 4px;
}

/* ---- INDEX ---- */
.article-index {
    border: 1px solid var(--gray-color-20);
    background: #fff;
}

.article-index h2 {
    font-size: 17px;
}

.article-index ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: index;
}

.article-index li {
    counter-increment: index;
    border-top: 1px solid #edf1ee;
}

.article-index li:first-child { 
    border-top: 0; 
}

.article-index a {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 6px;
    padding: 10px 0;
    text-decoration: none;
    color: #3c4942;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.article-index a::before {
    content: counter(index, decimal-leading-zero);
    color: var(--green-color);
    font-weight: 700;
}

.article-index a:hover,
.article-index a.active {
    color: var(--green-color-dark);
}

/* ---- CORPO ---- */
.article-body h2 {
    font-size: clamp(29px, 3.2vw, 42px);
    line-height: 1.15;
}

.article-body h3 {
    font-size: clamp(21px, 3.2vw, 25px);
    line-height: 1.25;
    font-weight: 700;
}

/* ---- BOX INFORMATIVI ---- */
.article-checklist ul {
    list-style: none;
    padding: 0;
}

.article-checklist li {
    position: relative;
    padding-left: 31px;
}

.article-checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green-color);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

/* ---- TABELLE ---- */
.article-table-wrap {
    border: 1px solid var(--gray-color-20);
    border-radius: 16px;
    background: #fff;
    margin: 30px 0;
}

.article-table {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

.article-table p {
    margin: 0;
}

.article-table > tbody > tr:first-child > td {
    background: var(--green-color-dark);
    color: #fff;
    border: 0;
    padding: 15px 17px;
    font-size: 14px;
    font-weight: 700;
    vertical-align: top;
}

.article-table > tbody > tr > td {
    padding: 15px 17px;
    border-top: 1px solid var(--gray-color-20);
    vertical-align: top;
    background: transparent;
    border-bottom: none;
}

.article-table > tbody > tr:nth-child(even) { 
    background: #f8faf8; 
}

.article-table > tbody > tr > td:first-child {
    font-weight: 700;
}

/* ---- CARD ---- */
.article-card {
    border: 1px solid var(--gray-color-20);
    border-radius: 16px;
    background: #fff;
    height: 100%;
}

.article-card:not(.article-card--green, .article-card--gray, .article-card--dark) strong {
    color: var(--green-color-dark);
}

.article-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.article-card p:last-child { 
    margin-bottom: 0; 
}

.article-card--green {
    background: var(--green-color-light);
    border-color: #cfe7d8;
}

.article-card--dark {
    background: #183e2b;
    color: #fff;
    border-color: #183e2b;
}

.article-card--gray {
    background: var(--gray-color-10);
}

.article-card--dark h3,
.article-card--dark a { 
    color: #fff; 
}

.article-card ul {
    margin: 16px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 28px;
}

.article-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--lime-color);
    font-size: 23px;
    color: #173c29;
}

/* ---- STEP ---- */
.article-step {
    border: 1px solid var(--gray-color-20);
    border-radius: 18px;
    background: #fff;
    height: 100%;
}

.article-step h3 {
    font-size: 18px;
    margin-bottom: 7px;
}

.article-step p {
    font-size: 15px;
    margin: 0;
    color: #4b5951;
}

.article-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-color);
    color: #fff;
    font-weight: 900;
}

/* ---- PRICE ---- */
.article-price {
    border: 1px solid var(--gray-color-20);
    border-radius: 17px;
    background: #fff;
    height: 100%;
}

.article-price--featured { 
    border-top: 5px solid var(--green-color); 
}

.article-price-label {
    font-weight: 900;
    font-size: 19px;
    color: var(--green-color-dark);
}

.article-price small {
    display: block;
    color: var(--gray-color-100);
    margin: 3px 0 10px;
}

.article-price p {
    font-size: 15px;
    margin: 0;
}

/* ---- CTA ---- */
.article-cta {
    border-radius: 24px;
    background: linear-gradient(135deg, #183e2b, #249556);
    color: #fff;
    padding: 3rem;
}

.col-md-6 .article-cta,
.col-md-4 .article-cta {
    padding: 2rem;
}

.col-md-4 .article-cta .row {
    flex-direction: column;
    align-items: flex-start !important;
}

.article-cta h2 {
    font-size: 31px;
    color: #fff;
}

.article-cta p {
    margin: 0;
    color: #e9f5ee;
}

.article-cta-btn {
    color: var(--green-color-dark) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .14);
    border-radius: 4px;
}

/* ---- FAQ ---- */
.article-faq details {
    border-top: 1px solid var(--gray-color-20);
}

.article-faq details:last-child {
    border-bottom: 1px solid var(--gray-color-20);
}

.article-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 19px 42px 19px 0;
    font-weight: 700;
    position: relative;
}

.article-faq summary::-webkit-details-marker { 
    display: none; 
}

.article-faq summary::after {
    content: "+";
    position: absolute;
    right: 3px;
    top: 14px;
    font-size: 27px;
    color: var(--green-color);
}

.article-faq details[open] summary::after { 
    content: "\2013"; 
}

.article-faq details p {
    padding: 0 30px 18px 0;
    color: #46534c;
    margin: 0;
}

/* ---- DISCLAIMER ---- */
.article-disclaimer {
    font-size: 13px;
    color: var(--gray-color-100);
    border-top: 1px solid var(--gray-color-20);
}

/* ---- NEWS LISTING ---- */
.news-listing {
    color: var(--gray-color-100);
}

.news-listing__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.news-listing__title {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
    color: var(--main-color);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
}

.news-listing__count {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-color-90);
}

/* ---- FILTRI / TAG ---- */

.news-filters {
    position: relative;
    margin-top: 6px;
}

.news-filters__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--green-color) transparent;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.news-filters__track::-webkit-scrollbar {
    height: 6px;
}
.news-filters__track::-webkit-scrollbar-track {
    background: transparent;
}
.news-filters__track::-webkit-scrollbar-thumb {
    background: var(--green-color);
    border-radius: 999px;
}

.news-filter {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 6px;
    border: 1px solid var(--gray-color-20);
    background: #fff;
    color: var(--gray-color-100);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.news-filter:hover {
    border-color: var(--green-color);
    color: var(--green-color);
}

.news-filter.is-active {
    background: var(--green-color);
    border-color: var(--green-color);
    color: #fff;
}

/* ---- GRIGLIA ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 35px;
}

/* ---- CARD ---- */
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-color-20);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform .2s ease-in-out, box-shadow .2s ease-in-out, border-color .2s ease-in-out;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(24, 62, 43, .13);
    color: inherit;
}

.news-card:focus-visible {
    outline: 3px solid var(--green-color);
    outline-offset: 2px;
}

.news-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 16px 16px 18px;
    flex-grow: 1;
}

.news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-color-90);
    text-transform: uppercase;
    letter-spacing: .02em;
}

.news-card__title {
    font-size: 16px;
    line-height: 1.28;
    font-weight: 600;
    color: var(--black-color);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all .2s ease-in-out;
}

.news-card:hover .news-card__title {
    color: var(--green-color-dark);
    text-decoration: underline;
}

.news-card__excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-color-90);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__tag-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding-top: 8px;
    margin-top: auto;
}

.news-card__tag {
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    color: var(--gray-color-80);
}

.news-card__tag::before {
    content: "#";
    opacity: .7;
}

/* ---- PAGINAZIONE ---- */
.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.news-pagination__list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.news-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid var(--gray-color-20);
    background: #fff;
    color: var(--gray-color-100);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.news-pagination__link:hover {
    border-color: var(--green-color);
    color: var(--green-color);
}

/* Pagina corrente: non è un link */
.news-pagination__current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    background: var(--green-color);
    border: 1px solid var(--green-color);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.news-pagination__arrow {
    font-size: 16px;
}

/* Freccia disabilitata (prima/ultima pagina) */
.news-pagination__link--disabled {
    color: var(--gray-color-20);
    border-color: var(--gray-color-20);
    pointer-events: none;
}

/* Puntini di troncamento */
.news-pagination__ellipsis {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    min-width: 24px;
    height: 42px;
    color: var(--gray-color-90);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 991.98px) and (min-width: 576px) {
    .article-topics {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .article-topic {
        grid-column: span 2;
    }
    
    /* count % 3 == 2 → gli ultimi DUE elementi si estendono a span 3 (metà ciascuno) */
    .article-topic:last-child:nth-child(3n+2),
    .article-topic:nth-last-child(2):nth-child(3n+1) {
        grid-column: span 3;
    }
    
    /* count % 3 == 1 → l'ultimo elemento occupa la riga piena */
    .article-topic:last-child:nth-child(3n+1) {
        grid-column: span 6;
    }
}

@media (min-width: 992px) {
    .article-index {
        position: sticky;
        top: 200px;
    }
}

@media (min-width: 1400px) {
    .news-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 991.98px) {
    .article-cta,
    .col-md-6 .article-cta,
    .col-md-4 .article-cta {
        padding: 1.5rem;
    }

    .col-md-6 .article-cta .row {
        flex-direction: column;
        align-items: flex-start !important;
    }
}

@media (max-width: 575.98px) {
    .article-card ul {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .article-topics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-topic:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-card__img {
        transition: none;
    }
    .news-card:hover {
        transform: none;
    }
    .news-card:hover .news-card__img {
        transform: none;
    }
}