.elementor-1264 .elementor-element.elementor-element-6a8fe13{--display:flex;}/* Start custom CSS for html, class: .elementor-element-d389529 *//* ============================================================
   BLOG SINGLE — stili coerenti con home / blog archive.
   Layout: hero full-screen, breadcrumb strip, colonna di
   lettura ben contrastata, correlati in fondo.
   ============================================================ */

body.lop-page-blog-single [data-lop-header],
body.single-post [data-lop-header] {
    background-color: rgba(24, 31, 28, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ── Utility locali (replicate dalla home) ─────────────────── */

.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);
}
.lop-section-label--light { color: var(--c-solar); }

.lop-section-header {
    text-align: center;
    margin-bottom: var(--sp-l);
}
.lop-section-header h2 { margin-top: 0; }

.lop-section-header--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
    gap: var(--sp-m);
}
.lop-section-header--split h2 { margin-top: 0; }

.lop-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c-coastal);
    font-weight: var(--fw-semibold);
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding-bottom: 4px;
    border-bottom: 1.5px solid transparent;
    transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.lop-link-arrow::after { content: '→'; }
.lop-link-arrow:hover {
    color: var(--c-forest);
    border-color: var(--c-forest);
}

/* ============================================================
   1. HERO — full screen, stessa pattern home
   ============================================================ */

.lop-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

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

.lop-hero--article .lop-hero__content {
    max-width: 920px;
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--c-light);
    padding: 0 clamp(80px, 10vw, 140px);
}

.lop-hero--article .lop-hero__title {
    font-size: clamp(2rem, 4vw + 0.6rem, 3.6rem);
    line-height: 1.1;
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

.lop-article-hero__meta {
    margin: var(--sp-s) 0 0;
    color: rgba(253, 253, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
}

/* ── Scroll indicator (clone home) ── */
.lop-hero__scroll {
    position: absolute;
    bottom: var(--sp-l);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.lop-hero__scroll span {
    display: block;
    width: 22px;
    height: 36px;
    border: 2px solid rgba(253, 253, 255, 0.5);
    border-radius: 11px;
    position: relative;
}
.lop-hero__scroll span::after {
    content: '';
    display: block;
    width: 4px;
    height: 8px;
    background: var(--c-solar);
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: lop-scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes lop-scroll-bounce {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50%       { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}

/* ── Prev / next nav (solar) ── */

.lop-article-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--c-solar);
    color: var(--c-slate);
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(24, 31, 28, 0.35);
    transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.lop-article-nav--prev { left: clamp(14px, 3vw, 44px); }
.lop-article-nav--next { right: clamp(14px, 3vw, 44px); }

.lop-article-nav:hover {
    background: color-mix(in srgb, var(--c-solar) 88%, black);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 16px 38px rgba(24, 31, 28, 0.42);
}

.lop-article-nav:active {
    transform: translateY(-50%) scale(0.98);
}

.lop-article-nav:focus-visible {
    outline: 3px solid rgba(253, 253, 255, 0.9);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .lop-article-nav {
        width: 46px;
        height: 46px;
    }
    .lop-article-nav svg { width: 18px; height: 18px; }
    .lop-article-nav--prev { left: 12px; }
    .lop-article-nav--next { right: 12px; }
    .lop-hero--article .lop-hero__content {
        padding: 0 70px;
    }
}

@media (max-width: 520px) {
    .lop-article-nav {
        width: 40px;
        height: 40px;
    }
    .lop-article-nav svg { width: 16px; height: 16px; }
    .lop-hero--article .lop-hero__content {
        padding: 0 60px;
    }
}

/* ============================================================
   2. BREADCRUMB STRIP
   ============================================================ */

.lop-article-crumbs {
    background: #F4F6F4;
    border-bottom: 1px solid rgba(24, 31, 28, 0.08);
    padding: 16px 0;
}

.lop-article-crumbs__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--c-slate);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.02em;
}

.lop-article-crumbs__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c-coastal);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

.lop-article-crumbs__back:hover { color: var(--c-forest); }

.lop-article-crumbs__sep {
    color: rgba(24, 31, 28, 0.3);
}

.lop-article-crumbs__meta {
    color: var(--c-slate);
}

@media (max-width: 520px) {
    .lop-article-crumbs {
        padding: 14px 0;
    }
    .lop-article-crumbs__inner {
        font-size: 0.8125rem;
        gap: 8px;
    }
}

/* ============================================================
   3. ARTICLE — colonna di lettura
   ============================================================ */

.lop-article {
    background: var(--c-light);
    padding: clamp(56px, 8vw, 96px) 0;
}

.lop-article__body {
    max-width: 740px;
    margin: 0 auto;
}

.lop-article__content {
    color: #1f2a2b;
    font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
    line-height: 1.78;
}

/* Lead / excerpt paragraph — con barretta solar.
   Si applica al primo <p> del corpo (lead) oppure a un .lop-article__excerpt
   (campo ACF "estratto" inserito sopra il contenuto). */
.lop-article__content > p:first-of-type,
.lop-article__excerpt {
    font-size: clamp(1.1875rem, 1.5vw, 1.4rem);
    line-height: 1.6;
    color: var(--c-ground);
    font-weight: var(--fw-regular);
    margin: 0 0 1.4em;
    padding-top: var(--sp-s);
    position: relative;
}

.lop-article__content > p:first-of-type::before,
.lop-article__excerpt::before {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    background: var(--c-solar);
    margin-bottom: var(--sp-m);
    border-radius: 2px;
}

/* Estratto ACF in grassetto */
.lop-article__excerpt {
    font-weight: var(--fw-bold);
    letter-spacing: -0.2px;
}

/* Se l'estratto è presente, il primo <p> del corpo torna allo stile normale */
.lop-article__excerpt + p {
    font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
    line-height: 1.78;
    color: #2d3642;
    font-weight: var(--fw-regular);
    padding-top: 0;
}

.lop-article__excerpt + p::before {
    content: none;
}

.lop-article__content p {
    margin: 0 0 1.25em;
    color: #2d3642;
}

.lop-article__content strong,
.lop-article__content b {
    color: var(--c-ground);
    font-weight: var(--fw-bold);
}

.lop-article__content em,
.lop-article__content i {
    color: inherit;
}

.lop-article__content ul,
.lop-article__content ol {
    margin: 1.3em 0;
    padding-left: 1.6em;
    color: #2d3642;
}

.lop-article__content ul { list-style: disc; }
.lop-article__content ol { list-style: decimal; }

.lop-article__content li {
    margin-bottom: 0.55em;
    line-height: 1.72;
}

.lop-article__content li::marker {
    color: var(--c-coastal);
    font-weight: var(--fw-bold);
}

.lop-article__content h2,
.lop-article__content h3,
.lop-article__content h4 {
    color: var(--c-ground);
    line-height: 1.2;
    margin-top: 2.2em;
    margin-bottom: 0.6em;
    letter-spacing: -0.3px;
    font-weight: var(--fw-semibold);
}

.lop-article__content h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.125rem);
}

.lop-article__content h3 {
    font-size: clamp(1.25rem, 1.9vw, 1.5rem);
}

.lop-article__content h4 {
    font-size: 1.125rem;
}

.lop-article__content h2:first-child,
.lop-article__content h3:first-child {
    margin-top: 0;
}

.lop-article__content a {
    color: var(--c-coastal);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2.5px;
    transition: color 0.2s var(--ease-out);
}

.lop-article__content a:hover {
    color: var(--c-forest);
}

.lop-article__content blockquote {
    margin: 2em 0;
    padding: var(--sp-m) var(--sp-l);
    border-left: 4px solid var(--c-solar);
    background: #fbfcf2;
    color: var(--c-ground);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
    line-height: 1.6;
    font-weight: var(--fw-regular);
}

.lop-article__content blockquote p {
    color: var(--c-ground);
    margin-bottom: 0.5em;
}

.lop-article__content blockquote p:last-child { margin-bottom: 0; }

.lop-article__content img,
.lop-article__content .wp-block-image img {
    border-radius: var(--radius-card);
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 26px rgba(24, 31, 28, 0.1);
}

.lop-article__content figure,
.lop-article__content .wp-block-image {
    margin: 1.8em 0;
}

.lop-article__content figcaption {
    margin-top: var(--sp-xs);
    font-size: 0.875rem;
    color: var(--c-slate);
    text-align: center;
    line-height: 1.5;
}

.lop-article__content hr {
    border: 0;
    border-top: 1px solid rgba(24, 31, 28, 0.12);
    margin: 2.4em 0;
}

.lop-article__content code {
    background: #f2f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
    color: var(--c-ground);
    font-family: 'SF Mono', Menlo, Consolas, monospace;
}

.lop-article__content pre {
    background: #1e232b;
    color: #e6e9ef;
    padding: var(--sp-m);
    border-radius: var(--radius-card);
    overflow-x: auto;
    margin: 1.6em 0;
    font-size: 0.9rem;
    line-height: 1.65;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
}

.lop-article__content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.lop-article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 0.9375rem;
}

.lop-article__content table th,
.lop-article__content table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(24, 31, 28, 0.1);
    text-align: left;
}

.lop-article__content table th {
    font-weight: var(--fw-semibold);
    color: var(--c-ground);
    background: #f7f9f7;
}

.lop-blog-single__error,
.lop-article__error {
    padding: var(--sp-m);
    border: 1px solid rgba(24, 31, 28, 0.1);
    border-radius: var(--radius-card);
    background: #fff;
    color: var(--c-slate);
    text-align: center;
}

/* ── Share (riga fra linee) ── */

.lop-article__share {
    margin-top: clamp(40px, 6vw, 72px);
    padding: var(--sp-m) 0;
    border-top: 1px solid rgba(24, 31, 28, 0.1);
    border-bottom: 1px solid rgba(24, 31, 28, 0.1);
    display: flex;
    align-items: center;
    gap: var(--sp-m);
    flex-wrap: wrap;
    justify-content: space-between;
}

.lop-article__share-label {
    margin: 0;
    color: var(--c-forest);
    font-weight: var(--fw-bold);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.lop-article__share-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Colore brand per ogni canale (testo + icona + hover) */
.lop-share-btn--facebook  { --share: #1877f2; }
.lop-share-btn--whatsapp  { --share: #128c7e; }
.lop-share-btn--instagram { --share: #c13584; }
.lop-share-btn--copy      { --share: var(--c-coastal); }

.lop-article__share .lop-share-btn,
.lop-article__share button.lop-share-btn,
.lop-article__share a.lop-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(24, 31, 28, 0.14);
    background: #ffffff;
    color: var(--share, var(--c-ground));
    border-radius: var(--radius-pill);
    padding: 9px 16px;
    font-size: 0.875rem;
    font-weight: var(--fw-semibold);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), transform 0.15s var(--ease-out);
}

.lop-article__share .lop-share-btn svg {
    color: var(--share, var(--c-slate));
    transition: color 0.2s var(--ease-out);
    flex-shrink: 0;
}

/* Hover / focus / active: border + tint del brand (mai fucsia) */
.lop-article__share .lop-share-btn:hover,
.lop-article__share .lop-share-btn:focus,
.lop-article__share .lop-share-btn:focus-visible,
.lop-article__share button.lop-share-btn:hover,
.lop-article__share button.lop-share-btn:focus,
.lop-article__share a.lop-share-btn:hover,
.lop-article__share a.lop-share-btn:focus {
    border-color: var(--share, var(--c-coastal));
    color: var(--share, var(--c-coastal));
    background: color-mix(in srgb, var(--share, var(--c-coastal)) 8%, #ffffff);
    transform: translateY(-1px);
    outline: none;
}

.lop-article__share .lop-share-btn:hover svg,
.lop-article__share .lop-share-btn:focus svg,
.lop-article__share .lop-share-btn:focus-visible svg {
    color: var(--share, var(--c-coastal));
}

.lop-article__share .lop-share-btn:active {
    transform: translateY(0);
}

/* Stato "copiato" — verde forest */
.lop-article__share .lop-share-btn.is-copied,
.lop-article__share .lop-share-btn.is-copied:hover,
.lop-article__share .lop-share-btn.is-copied:focus {
    border-color: var(--c-forest);
    color: var(--c-forest);
    background: color-mix(in srgb, var(--c-forest) 10%, #ffffff);
}

.lop-article__share .lop-share-btn.is-copied svg {
    color: var(--c-forest);
}

/* ── Back button ── */

.lop-article__back {
    margin-top: clamp(36px, 5vw, 56px);
    text-align: center;
}

/* ============================================================
   4. RELATED — altri articoli (replica pattern .lop-card)
   ============================================================ */

.lop-blog-related {
    background: #F4F6F4;
    padding: clamp(56px, 8vw, 120px) 0;
    border-top: 1px solid rgba(24, 31, 28, 0.06);
}

.lop-blog-related[hidden] { display: none; }

.lop-blog-related .lop-section-header--split {
    margin-bottom: var(--sp-l);
}

#lop-blog-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-m);
}

.lop-blog-related .lop-card {
    background: #fff;
    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-blog-related .lop-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(24, 31, 28, 0.14);
}

.lop-blog-related .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-blog-related .lop-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(24, 31, 28, 0);
    transition: background 0.3s ease;
}

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

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

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

.lop-blog-related .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-blog-related .lop-card__meta span {
    font-size: 0.8125rem;
    color: var(--c-slate);
    font-weight: var(--fw-semibold);
}

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

.lop-blog-related .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-blog-related .lop-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

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

.lop-blog-related .lop-card__cta,
.lop-blog-related a.lop-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: var(--fw-bold);
    color: var(--c-coastal) !important;
    text-decoration: none;
    margin-top: auto;
    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%;
    transition: color 0.2s var(--ease-out), gap 0.2s var(--ease-out);
}

.lop-blog-related .lop-card:hover .lop-card__cta {
    gap: 10px;
    color: var(--c-forest) !important;
}

/* ============================================================
   5. RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    #lop-blog-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lop-article__share {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-s);
    }
    .lop-article__share-links {
        gap: 8px;
    }
    .lop-share-btn {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }
    .lop-blog-related {
        padding: var(--sp-xl) 0;
    }
    #lop-blog-related-grid {
        grid-template-columns: 1fr;
    }
    .lop-blog-related .lop-section-header--split {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-s);
    }
}

@media (max-width: 520px) {
    .lop-article {
        padding: var(--sp-xl) 0;
    }
    .lop-article__content {
        font-size: 1rem;
    }
    .lop-article__content blockquote {
        padding: var(--sp-s) var(--sp-m);
    }
    .lop-article__back .lop-btn {
        width: 100%;
    }
}

/* Mobile stretto (≤480px): tipografia comoda, hero compatto */
@media (max-width: 480px) {
    .lop-hero--article .lop-hero__title { font-size: clamp(1.6rem, 7vw, 2rem); line-height: 1.18; }
    .lop-hero--article .lop-hero__subtitle { font-size: 0.9375rem; }
    .lop-article__content { font-size: 1.0625rem; line-height: 1.72; }
    .lop-article__content h2 { font-size: 1.375rem; line-height: 1.25; }
    .lop-article__content h3 { font-size: 1.125rem; }
    .lop-article__content p { margin-bottom: 1em; }
    .lop-article__share-links { width: 100%; }
    .lop-share-btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   6. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .lop-hero__scroll span::after,
    .lop-article-nav,
    .lop-share-btn,
    .lop-blog-related .lop-card,
    .lop-blog-related .lop-card__media::after,
    .lop-blog-related .lop-card__title a,
    .lop-blog-related .lop-card__cta {
        animation: none !important;
        transition: none !important;
    }
    .lop-article-nav:hover,
    .lop-share-btn:hover,
    .lop-blog-related .lop-card:hover {
        transform: translateY(-50%) !important;
    }
    .lop-share-btn:hover,
    .lop-blog-related .lop-card:hover {
        transform: none !important;
    }
}/* End custom CSS */