.elementor-1192 .elementor-element.elementor-element-e8a61f2{--display:flex;}/* Start custom CSS for html, class: .elementor-element-51be032 *//* ============================================================
   BLOG ARCHIVE — hero compatta + layout editoriale
   (articoli a sx + sidebar categorie a dx).
   Palette brand only (coastal, forest, solar, ground, slate, light).
   ============================================================ */

/* Header scuro da subito (no hero full-screen sotto). */
body.lop-page-blog .lop-header,
body.lop-page-blog [data-lop-header],
body.blog .lop-header,
body.blog [data-lop-header] {
    background-color: rgba(24, 31, 28, 0.92) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

/* ── Utility locali ─────────────────────────────────────── */

.lop-section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-forest);
    margin-bottom: var(--sp-s);
}

/* ============================================================
   1. HERO — pretitolo solar, titolone, sottotitolo
   ============================================================ */

.lop-blog-hero {
    position: relative;
    min-height: clamp(340px, 52vh, 500px);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(110px, 15vh, 150px) 0 clamp(40px, 6vh, 64px);
}

.lop-blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(24, 31, 28, 0.45) 0%,
        rgba(24, 31, 28, 0.78) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.lop-blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--c-coastal) 0%, var(--c-forest) 50%, var(--c-solar) 100%);
    z-index: 2;
}

.lop-blog-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 960px;
    color: var(--c-light);
    text-align: left;
}

/* Pretitolo — pill solar, ben visibile sullo sfondo scuro */
.lop-blog-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-solar);
    margin-bottom: clamp(14px, 2vw, 22px);
    padding: 8px 16px;
    background: rgba(24, 31, 28, 0.42);
    border: 1px solid rgba(233, 226, 28, 0.55);
    border-radius: var(--radius-pill);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lop-blog-hero__kicker::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-solar);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(233, 226, 28, 0.3);
}

/* Titolone — grande, bold, bianco */
.lop-blog-hero__title {
    margin: 0 0 clamp(14px, 2vw, 22px);
    font-size: clamp(2.4rem, 5.2vw + 0.3rem, 4.4rem);
    font-weight: var(--fw-bold);
    line-height: 1.02;
    letter-spacing: -0.8px;
    color: var(--c-light);
    text-shadow: 0 3px 22px rgba(24, 31, 28, 0.38);
    max-width: 18ch;
}

/* Sottotitolo — calmo, leggibile */
.lop-blog-hero__subtitle {
    margin: 0;
    max-width: 62ch;
    font-size: clamp(1.05rem, 1.45vw, 1.22rem);
    line-height: 1.6;
    color: rgba(253, 253, 255, 0.94);
    font-weight: var(--fw-regular);
}

/* ============================================================
   2. BODY — layout 2 colonne (articoli + sidebar dx)
   ============================================================ */

.lop-blog-body {
    background: var(--c-light);
    padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 10vw, 120px);
}

.lop-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.lop-blog-main__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-m);
    margin-bottom: var(--sp-l);
    flex-wrap: wrap;
}

.lop-blog-main__head h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    line-height: 1.1;
    color: var(--c-ground);
    font-weight: var(--fw-bold);
    letter-spacing: -0.3px;
}

.lop-blog-count {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    padding-bottom: 4px;
}

.lop-blog-count__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-forest);
    font-weight: var(--fw-semibold);
}

.lop-blog-count__num {
    font-size: 1.4rem;
    font-weight: var(--fw-bold);
    color: var(--c-ground);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.5px;
}

/* ============================================================
   3. GRID — 3 colonne nella main (sidebar a dx)
   ============================================================ */

.lop-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 26px);
}

.lop-blog-grid.is-hydrating {
    visibility: hidden;
}

/* ── Card ── */

.lop-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(24, 31, 28, 0.07);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
}

.lop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(24, 31, 28, 0.14);
}

.lop-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    background-color: #e9ecef;
    text-decoration: none;
}

.lop-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(24, 31, 28, 0);
    transition: background 0.3s ease;
}

.lop-card:hover .lop-card__media::after {
    background: rgba(24, 31, 28, 0.08);
}

.lop-card__media .lop-badge {
    position: absolute;
    top: var(--sp-s);
    left: var(--sp-s);
    z-index: 2;
}

.lop-card__body {
    padding: var(--sp-m);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lop-card__meta {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(57, 64, 83, 0.1);
}

.lop-card__meta span {
    font-size: 0.8125rem;
    color: var(--c-slate);
    font-weight: var(--fw-semibold);
}

.lop-card__meta span + span::before {
    content: '·';
    margin: 0 8px;
    color: var(--c-slate);
    opacity: 0.5;
}

.lop-card__title {
    font-size: 1.0625rem;
    font-weight: var(--fw-bold);
    color: var(--c-ground);
    margin: 0 0 var(--sp-s);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lop-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

.lop-card:hover .lop-card__title a {
    color: var(--c-coastal);
}

.lop-card__desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--c-slate);
    margin: 0 0 var(--sp-s);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lop-card__cta,
a.lop-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: var(--fw-bold);
    color: var(--c-coastal) !important;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s var(--ease-out), gap 0.2s var(--ease-out);
    margin-top: auto;
    align-self: stretch;
    padding-top: var(--sp-xs);
    border: 0;
    border-top: 1px solid rgba(24, 31, 28, 0.08);
    background: transparent;
    border-radius: 0;
    min-height: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.lop-card:hover .lop-card__cta,
.lop-blog-grid .lop-card:hover .lop-card__cta {
    gap: 10px;
    color: var(--c-forest) !important;
    background: transparent;
    border-color: rgba(24, 31, 28, 0.08);
}

.lop-blog-grid .lop-card__cta:hover,
.lop-blog-grid .lop-card__cta:active,
.lop-blog-grid a.lop-card__cta:hover,
.lop-blog-grid a.lop-card__cta:active {
    background: transparent;
    border-color: rgba(24, 31, 28, 0.08);
}

/* Placeholder */
.lop-card--placeholder {
    grid-column: 1 / -1;
    background: transparent;
    border: 1px dashed rgba(24, 31, 28, 0.18);
    box-shadow: none;
}

.lop-card--placeholder:hover {
    transform: none;
    box-shadow: none;
}

.lop-card--placeholder .lop-card__body {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.lop-card--placeholder p {
    margin: 0;
    color: var(--c-slate);
    font-size: 0.9375rem;
}

/* ============================================================
   4. SIDEBAR CATEGORIE (destra, editoriale)
   ============================================================ */

.lop-blog-sidebar {
    position: sticky;
    top: 96px;
}

.lop-blog-sidebar__card {
    background:
        radial-gradient(110% 130% at 0% 0%, rgba(16, 161, 190, 0.08), rgba(16, 161, 190, 0)),
        radial-gradient(110% 130% at 100% 100%, rgba(93, 183, 119, 0.08), rgba(93, 183, 119, 0)),
        #ffffff;
    border: 1px solid rgba(24, 31, 28, 0.1);
    border-radius: var(--radius-card);
    padding: clamp(20px, 2.4vw, 26px);
    box-shadow: 0 4px 18px rgba(24, 31, 28, 0.06);
}

.lop-blog-sidebar__kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-coastal);
    margin-bottom: 6px;
}

.lop-blog-sidebar__title {
    margin: 0 0 var(--sp-m);
    font-size: 1.2rem;
    font-weight: var(--fw-bold);
    color: var(--c-ground);
    letter-spacing: -0.2px;
}

.lop-blog-sidebar__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.lop-blog-sidebar__list li {
    border-top: 1px solid rgba(24, 31, 28, 0.08);
}

.lop-blog-sidebar__list li:first-child {
    border-top: 0;
}

.lop-blog-sidebar__list a,
.lop-blog-sidebar__list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    padding: 10px 2px;
    font-size: 0.95rem;
    font-weight: var(--fw-semibold);
    color: var(--c-ground);
    text-decoration: none;
    background: transparent;
    border: 0;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
    transition: color 0.2s var(--ease-out), padding-left 0.2s var(--ease-out);
}

.lop-blog-sidebar__list a:hover,
.lop-blog-sidebar__list a.is-active,
.lop-blog-sidebar__list button:hover,
.lop-blog-sidebar__list button.is-active {
    color: var(--c-coastal);
    padding-left: 6px;
    background: transparent;
    outline: none;
}

.lop-blog-sidebar__list a .count,
.lop-blog-sidebar__list button .count {
    font-size: 0.78rem;
    color: var(--c-slate);
    font-weight: var(--fw-regular);
    background: color-mix(in srgb, var(--c-coastal) 10%, #ffffff);
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    font-variant-numeric: tabular-nums;
    transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.lop-blog-sidebar__list a:hover .count,
.lop-blog-sidebar__list a.is-active .count,
.lop-blog-sidebar__list button:hover .count,
.lop-blog-sidebar__list button.is-active .count {
    background: var(--c-coastal);
    color: var(--c-light);
}

.lop-blog-sidebar__placeholder {
    padding: 10px 2px;
    color: var(--c-slate);
    font-size: 0.9rem;
    border: 0 !important;
}

/* ============================================================
   5. LOAD MORE — stesso brand CTA primary, nessuna fucsia in nessuno stato
   ============================================================ */

.lop-blog-main__more {
    margin-top: var(--sp-l);
    display: flex;
    justify-content: center;
}

/* Lock colori su TUTTI gli stati (anti-tema Hello Elementor magenta). */
#lop-blog-load-more,
button#lop-blog-load-more,
#lop-blog-load-more:hover,
button#lop-blog-load-more:hover,
#lop-blog-load-more:focus,
button#lop-blog-load-more:focus,
#lop-blog-load-more:focus-visible,
button#lop-blog-load-more:focus-visible,
#lop-blog-load-more:active,
button#lop-blog-load-more:active,
#lop-blog-load-more:visited,
button#lop-blog-load-more:visited {
    background-color: var(--c-solar) !important;
    border: 1.5px solid var(--c-solar) !important;
    color: var(--c-slate) !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Hover: solar leggermente più scuro */
#lop-blog-load-more:hover,
button#lop-blog-load-more:hover,
#lop-blog-load-more:focus-visible,
button#lop-blog-load-more:focus-visible {
    background-color: color-mix(in srgb, var(--c-solar) 85%, black) !important;
    border-color: color-mix(in srgb, var(--c-solar) 85%, black) !important;
    color: var(--c-ground) !important;
    transform: translateY(-1px);
}

#lop-blog-load-more:active,
button#lop-blog-load-more:active {
    transform: scale(0.97);
}

/* Hidden (nessun altro articolo) — invisibile davvero */
.lop-blog-main__more #lop-blog-load-more[hidden],
.lop-blog-load-more[hidden] {
    display: none !important;
}

/* Stato loading durante fetch */
.lop-blog-load-more.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

/* ============================================================
   6. RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .lop-blog-layout {
        grid-template-columns: 1fr;
    }

    .lop-blog-sidebar {
        position: static;
        order: 2;
        margin-top: var(--sp-l);
    }
}

@media (max-width: 900px) {
    .lop-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: riduce stacco hero→body e trasforma la sidebar categorie
   in chips posizionate subito sotto la hero; nessun elemento della
   pagina puo' creare scroll orizzontale. */
@media (max-width: 768px) {
    /* Safety net: clip di qualsiasi elemento che sforerebbe orizzontalmente */
    .lop-blog-hero,
    .lop-blog-body {
        overflow-x: clip;
    }

    /* Parole lunghe, URL e titoli non devono sforare le card o l'hero */
    .lop-blog-hero__title,
    .lop-blog-hero__subtitle,
    .lop-card__title,
    .lop-card__desc,
    .lop-blog-main__head h2 {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Immagini/iframe contenuti nel body */
    .lop-blog-body img,
    .lop-blog-body iframe {
        max-width: 100%;
        height: auto;
    }

    .lop-blog-body {
        padding-top: var(--sp-m);
    }

    /* Layout 1-col compatto fra chips e articoli */
    .lop-blog-layout {
        gap: 0;
    }

    /* Sidebar PRIMA del main (in flusso grid 1-col gia' attivo da 1100px);
       il gap del layout e' gia' sufficiente, nessun margin extra sotto. */
    .lop-blog-sidebar {
        order: -1;
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Head "Ultimi articoli" + titolo: meno aria prima della griglia card.
       margin-top negativo per assorbire line-height del .lop-section-label
       (inline-block con line-height 1.6 della body). */
    .lop-blog-main__head {
        margin-top: -6px;
        margin-bottom: var(--sp-m);
    }

    .lop-blog-main__head .lop-section-label {
        line-height: 1;
    }

    /* Toglie l'aspetto "card" e azzera il contorno della sidebar */
    .lop-blog-sidebar__card {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    /* Niente titolo/kicker sopra le chips: informazione ridondante */
    .lop-blog-sidebar__kicker,
    .lop-blog-sidebar__title {
        display: none;
    }

    /* Lista → chips che vanno a capo, senza overflow laterale */
    .lop-blog-sidebar__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        padding: 0;
        margin: 0;
        justify-content: flex-start;
    }

    .lop-blog-sidebar__list li,
    .lop-blog-sidebar__list li:first-child {
        border-top: 0;
        flex: 0 1 auto;
        max-width: 100%;
    }

    /* Ogni voce diventa una chip pill; la label si tronca
       se il nome categoria e' molto lungo, così la chip
       non sfora mai la larghezza dello schermo. */
    .lop-blog-sidebar__list a,
    .lop-blog-sidebar__list button {
        width: auto;
        max-width: 100%;
        padding: 6px 12px;
        border-radius: var(--radius-pill);
        background: #ffffff;
        border: 1.5px solid rgba(24, 31, 28, 0.12);
        font-size: 0.8125rem;
        color: var(--c-slate);
        gap: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .lop-blog-sidebar__list a:hover,
    .lop-blog-sidebar__list a.is-active,
    .lop-blog-sidebar__list button:hover,
    .lop-blog-sidebar__list button.is-active {
        padding-left: 12px;
        background: var(--c-solar);
        border-color: var(--c-solar);
        color: var(--c-ground);
    }

    .lop-blog-sidebar__list a .count,
    .lop-blog-sidebar__list button .count {
        padding: 2px 7px;
        font-size: 0.72rem;
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .lop-blog-hero {
        min-height: clamp(280px, 46vh, 400px);
        padding-top: 100px;
    }

    .lop-blog-hero__title {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
        max-width: none;
    }

    .lop-blog-grid {
        grid-template-columns: 1fr;
    }

    .lop-blog-main__head {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-s);
    }
}

/* Mobile stretto (≤480px): compattare card, sidebar, paginazione */
@media (max-width: 480px) {
    .lop-blog-hero { min-height: clamp(220px, 38vh, 320px); padding-top: 96px; }
    .lop-blog-hero__title { font-size: clamp(1.6rem, 8vw, 2.1rem); }
    .lop-blog-hero__subtitle { font-size: 0.9375rem; }
    .lop-blog-layout { gap: var(--sp-m); }
    .lop-blog-main { padding: var(--sp-l) 0; }
    .lop-blog-sidebar { margin-top: var(--sp-m); }
    .lop-card__content { padding: var(--sp-s) var(--sp-m) var(--sp-m); }
    .lop-card__title { font-size: 1.0625rem; line-height: 1.3; }
    #lop-blog-load-more { width: 100%; }
}

/* ============================================================
   7. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .lop-card,
    .lop-card__media::after,
    .lop-card__title a,
    .lop-card__cta,
    .lop-blog-sidebar__list a,
    .lop-blog-sidebar__list button,
    #lop-blog-load-more {
        transition: none !important;
    }

    .lop-card:hover,
    #lop-blog-load-more:hover {
        transform: none !important;
    }
}/* End custom CSS */