/*
 * ST OVERRIDES — regole finali che vincono su tutto il CSS accumulato.
 * Caricato per ultimo con handle separato.
 */

/* ══════════════════════════════════════════════════════
   1. RACCOLTA RAPIDA — ticker vicino al top, +10%
   ══════════════════════════════════════════════════════ */

/* Riga con badge eyebrow + ticker affiancati */
.st-pf-hero-eyebrow-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

/* Badge "Portfolio lavori eseguiti" centrato verticalmente */
.st-pf-hero-eyebrow-row .st-pf-hero-eyebrow {
    align-self: center;
    flex: 1;
    min-width: 0;
}

/* Wrapper ticker: al bordo superiore */
.st-pf-hero-eyebrow-row .st-pf-title-ticker-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0;
}

/* Badge "Raccolta rapida" */
.st-pf-hero-eyebrow-row .st-pf-tt-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,140,0,.12);
    border: 1px solid rgba(255,140,0,.28);
    color: #c86000;
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.st-pf-hero-eyebrow-row .st-pf-tt-badge svg {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
}

/* Schermo ticker: 264×167px (+10% rispetto a 240×152) */
.st-pf-hero-eyebrow-row .st-pf-title-ticker {
    position: relative;
    display: block;
    width: 264px;
    height: 167px;
    border-radius: 12px;
    overflow: hidden;
    border: 2.5px solid rgba(255,140,0,.5);
    box-shadow: 0 6px 22px rgba(0,0,0,.35);
    cursor: pointer;
    background: #0d0d0d;
    padding: 0;
    flex: none;
    transition: border-color .2s, box-shadow .2s;
}
.st-pf-hero-eyebrow-row .st-pf-title-ticker:hover {
    border-color: rgba(255,140,0,.85);
    box-shadow: 0 8px 28px rgba(255,140,0,.25);
}

/* Slides */
.st-pf-hero-eyebrow-row .st-pf-title-ticker .st-pf-tt-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
}
.st-pf-hero-eyebrow-row .st-pf-title-ticker .st-pf-tt-slide.active {
    opacity: 1;
}
.st-pf-hero-eyebrow-row .st-pf-title-ticker .st-pf-tt-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Icona espandi */
.st-pf-hero-eyebrow-row .st-pf-title-ticker .st-pf-tt-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.42);
    opacity: 0;
    transition: opacity .2s;
    z-index: 2;
}
.st-pf-hero-eyebrow-row .st-pf-title-ticker:hover .st-pf-tt-hint {
    opacity: 1;
}
.st-pf-hero-eyebrow-row .st-pf-title-ticker .st-pf-tt-hint svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .st-pf-hero-eyebrow-row .st-pf-title-ticker {
        width: 198px;
        height: 125px;
    }
}
@media (max-width: 768px) {
    .st-pf-hero-eyebrow-row .st-pf-title-ticker {
        width: 143px;
        height: 90px;
    }
}
@media (max-width: 640px) {
    .st-pf-hero-eyebrow-row .st-pf-title-ticker-wrap {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════
   2. GALLERIA PROGETTO SINGOLO — layout originale
      Prima foto grande (span2), resto piccole, teaser "+"
   ══════════════════════════════════════════════════════ */

/* Griglia 4 colonne */
.cs-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Scheda base */
.cs-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 3px 12px rgba(0,0,0,.1);
    transition: transform .3s, box-shadow .3s;
    background: #111;
}
.cs-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(255,140,0,.22);
}
.cs-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.cs-gallery-item:hover img {
    transform: scale(1.06);
}

/* Prima foto grande: 2 colonne × 2 righe */
.cs-gallery-span2 {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: unset;
}

/* Overlay con didascalia */
.cs-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity .3s;
}
.cs-gallery-item:hover .cs-gallery-overlay {
    opacity: 1;
}
.cs-gallery-overlay h5 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

/* Responsive galleria */
@media (max-width: 768px) {
    .cs-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cs-gallery-span2 {
        grid-column: span 2;
        grid-row: span 1;
    }
}
@media (max-width: 480px) {
    .cs-gallery-grid {
        grid-template-columns: 1fr;
    }
    .cs-gallery-span2 {
        grid-column: span 1;
        grid-row: span 1;
    }
}


/* ══════════════════════════════════════════════════════
   3. GALLERIA BENTO — 4 colonne, 3 altezze, zero buchi
      Pattern 7: grande(2×2) + tall(1×2) + 2×small(1×1)
                + wide(2×1) + 2×small(1×1)  → ripete
   ══════════════════════════════════════════════════════ */

.cs-gal-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 2 altezze di riga: riga alta (large/tall) e riga bassa (wide/small) */
    grid-auto-rows: 28vh;
    gap: 10px;
}

/* Scheda base */
.cs-gi {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    transition: transform .28s ease, box-shadow .28s ease;
}

.cs-gi:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(255,140,0,.2);
    z-index: 1;
}

.cs-gi img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .4s ease;
}

.cs-gi:hover img {
    transform: scale(1.05);
}

/* Overlay didascalia */
.cs-gi-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 12px 10px;
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
    opacity: 0;
    transition: opacity .25s;
}

.cs-gi:hover .cs-gi-overlay {
    opacity: 1;
}

.cs-gi-overlay span {
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Varianti dimensione ─────────────────────────── */

/* GRANDE: 2 colonne × 2 righe — max 90vh */
.cs-gi-large {
    grid-column: span 2;
    grid-row: span 2;
    max-height: 90vh;
}

/* TALL: 1 colonna × 2 righe */
.cs-gi-tall {
    grid-column: span 1;
    grid-row: span 2;
    max-height: 90vh;
}

/* WIDE: 2 colonne × 1 riga */
.cs-gi-wide {
    grid-column: span 2;
    grid-row: span 1;
}

/* SMALL: 1 colonna × 1 riga */
.cs-gi-small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Teaser "Tutte le foto" */
.cs-gi-more {
    background: #111;
    cursor: pointer;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .cs-gal-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 24vw;
    }
    .cs-gi-large {
        grid-column: span 2;
        grid-row: span 2;
        max-height: 70vw;
    }
    .cs-gi-tall {
        grid-column: span 1;
        grid-row: span 2;
        max-height: 70vw;
    }
    .cs-gi-wide {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .cs-gal-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 38vw;
    }
    .cs-gi-large,
    .cs-gi-tall,
    .cs-gi-wide {
        grid-column: span 2;
        grid-row: span 1;
        max-height: none;
    }
}


/* ══════════════════════════════════════════════════════
   WIDGET HTML — fix layout identico allo shortcode
   ══════════════════════════════════════════════════════ */

/* ── Hero: eyebrow-row con titolo+sub integrati ────────────────
   Il widget ha l'eyebrow-row, poi separati title-row e trust.
   Lo shortcode invece mette tutto in sequenza nella hero-copy.
   Riportiamo il layout corretto.                             */

.st-pf-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 30px 30px 28px;
    border-radius: 24px;
    background: rgba(255,255,255,.90);
    box-shadow: 0 18px 34px rgba(0,0,0,.18);
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 1;
}

/* Eyebrow row: badge sinistra + ticker destra */
.st-pf-hero-eyebrow-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

/* Il titolo-row non ha il ticker — occupa tutta la larghezza */
.st-pf-hero-title-row {
    display: block;
    margin-bottom: 0;
}

.st-pf-hero-title-col {
    display: flex;
    flex-direction: column;
}

/* Titolo hero */
.st-pf-hero-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -.04em;
    color: #18120c;
}

.st-pf-hero-accent { color: var(--acc, #ff8c00); }

/* Divider e sub dentro title-col */
.st-pf-hero-title-col .st-pf-hero-divider {
    width: 74px;
    height: 3px;
    margin: 14px 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8c00, #ffb347);
}

.st-pf-hero-title-col .st-pf-hero-sub {
    margin: 0 0 20px;
    color: #4d433b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Nascondi divider/sub standalone fuori da title-col */
.st-pf-hero-copy > .st-pf-hero-divider,
.st-pf-hero-copy > .st-pf-hero-sub { display: none; }

/* ── Hero aside: griglia categorie ─────────────────────────── */
.st-pf-hero-aside {
    position: relative;
    z-index: 1;
}

.st-pf-cat-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    border: 1px solid rgba(224,109,0,.18);
    background: linear-gradient(180deg, #fff9f1 0%, #f4e8d9 100%);
    box-shadow: 0 18px 32px rgba(0,0,0,.18);
    overflow: hidden;
}

.st-pf-cat-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid rgba(224,109,0,.12);
    background: rgba(255,255,255,.35);
    color: #7b4305;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.st-pf-cat-preview-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.st-pf-cat-preview-note {
    color: rgba(123,67,5,.62);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.st-pf-cat-preview-line {
    flex: 1;
    max-width: 48px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8c00, #f8bf63);
}

.st-pf-cat-preview-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
}

.st-pf-cpc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: transparent;
    color: #1f1710;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .2s;
}

.st-pf-cpc:nth-child(odd)   { border-right: 1px solid rgba(224,109,0,.12); }
.st-pf-cpc:nth-child(-n+2)  { border-bottom: 1px solid rgba(224,109,0,.12); }
.st-pf-cpc:hover             { background: rgba(224,109,0,.08); }

.st-pf-cpc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.st-pf-cpc-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(224,109,0,.12);
    color: #8e4c07;
    font-size: .68rem;
    font-weight: 700;
}
.st-pf-cpc-badge--solid { background: #ffedd3; color: #8a4700; }

.st-pf-cpc-visuals { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }

.st-pf-cpc-ico {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(224,109,0,.16);
    color: #9d5205;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.st-pf-cpc-ico svg { width: 20px; height: 20px; stroke: currentColor; }

.st-pf-cpc-previews { display: flex; align-items: center; gap: 5px; }

.st-pf-cpc-thumb {
    width: 36px; height: 36px;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,.8);
    box-shadow: 0 4px 8px rgba(0,0,0,.08);
    flex-shrink: 0;
}
.st-pf-cpc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-pf-cpc-thumb--empty { background: linear-gradient(135deg, #fff4e2, #f1dcc3); }

.st-pf-cpc-name { color: #1f1710; font-size: .88rem; font-weight: 800; line-height: 1.2; }
.st-pf-cpc-desc {
    color: rgba(31,23,16,.65);
    font-size: .74rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* ── Navigatori galleria nelle card ─────────────────────────── */
.st-pf-gal-slides {
    position: absolute;
    inset: 0;
}

.st-pf-gal-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .5s ease;
}

.st-pf-gal-slide.active { opacity: 1; }

.st-pf-gal-prev,
.st-pf-gal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,.55);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s, background .2s;
    padding: 0;
}

.st-pf-item:hover .st-pf-gal-prev,
.st-pf-item:hover .st-pf-gal-next { opacity: 1; }

.st-pf-gal-prev:hover,
.st-pf-gal-next:hover { background: rgba(255,140,0,.8); }

.st-pf-gal-prev { left: 8px; }
.st-pf-gal-next { right: 8px; }

.st-pf-gal-counter {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 12;
    background: rgba(0,0,0,.5);
    color: rgba(255,255,255,.9);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.st-pf-item:hover .st-pf-gal-counter { opacity: 1; }

.st-pf-gal-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.st-pf-item:hover .st-pf-gal-dots { opacity: 1; pointer-events: auto; }

.st-pf-gal-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    transition: background .2s, transform .2s;
    pointer-events: auto;
}
.st-pf-gal-dot.active { background: #fff; transform: scale(1.4); }

/* il clink sta sotto i navigatori */
.st-pf-clink { z-index: 3; }

/* ── Sidebar filtri ─────────────────────────────────────────── */
.st-pf-layout {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1.25rem;
    align-items: start;
    padding: 0 0 4rem;
}

.st-pf-sidebar {
    position: sticky;
    top: calc(var(--admin-bar-height,0px) + 96px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.st-pf-cat-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 10px 4px 8px;
    border: none;
    border-radius: 14px;
    background: rgba(255,255,255,.88);
    color: #7d7369;
    font-family: inherit;
    cursor: pointer;
    transition: background .18s, color .18s;
}
.st-pf-cat-tile::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    width: 3px;
    height: 62%;
    border-radius: 999px;
    background: var(--acc, #ff8c00);
    transform: translateY(-50%) scaleY(0);
    transition: transform .2s;
}
.st-pf-cat-tile.active { background: #fff1dc; color: #2f241b; }
.st-pf-cat-tile.active::after { transform: translateY(-50%) scaleY(1); }
.st-pf-cat-tile:hover   { background: #fff5e7; color: #3a2f25; }

.st-pf-ct-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,.98);
}
.st-pf-ct-icon svg { width: 18px; height: 18px; stroke: currentColor; }
.st-pf-cat-tile.active .st-pf-ct-icon {
    background: var(--acc, #ff8c00);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255,140,0,.2);
}

.st-pf-ct-name {
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.st-pf-cat-tile em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255,140,0,.10);
    color: #8d4900;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}
.st-pf-cat-tile.active em { background: rgba(255,140,0,.16); color: #7a4100; }

/* ── Griglia progetti 3 colonne bento ───────────────────────── */
.st-pf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.st-pf-item {
    position: relative;
    min-width: 0;
    grid-column: span 1;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    background: #161616;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
    isolation: isolate;
    transition: transform .24s, box-shadow .24s, border-color .24s;
}
.st-pf-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255,140,0,.4);
    box-shadow: 0 24px 42px rgba(0,0,0,.34);
}

/* Bento: 1 grande + 2 piccole */
.st-pf[data-layout-state="all"] .st-pf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.st-pf[data-layout-state="all"] .st-pf-item:nth-child(3n+1) {
    grid-column: span 2;
    height: 380px;
}
.st-pf[data-layout-state="all"] .st-pf-item:nth-child(3n+2),
.st-pf[data-layout-state="all"] .st-pf-item:nth-child(3n+3) {
    grid-column: span 1;
    height: 380px;
}

/* Categoria: 3 colonne uniformi */
.st-pf[data-layout-state="category"] .st-pf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.st-pf[data-layout-state="category"] .st-pf-item {
    grid-column: span 1;
    height: 320px;
}

/* Card body */
.st-pf-cbg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform .35s ease;
}
.st-pf-item:hover .st-pf-cbg { transform: scale(1.06); }

.st-pf-cov {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(8,8,8,.55) 75%, rgba(8,8,8,.92) 100%);
}

.st-pf-clink {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.st-pf-cbody {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    gap: 8px;
    padding: 20px;
}

.st-pf-card-kicker {
    display: block;
    color: #ff8c00;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.st-pf-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 900;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.st-pf-card-desc {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: rgba(255,255,255,.7);
    font-size: .85rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.st-pf-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.st-pf-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}
.st-pf-card-tag svg { width: 10px; height: 10px; flex-shrink: 0; }
.st-pf-card-tag--cat {
    background: rgba(255,140,0,.18);
    border: 1px solid rgba(255,140,0,.35);
    color: #ffb347;
}
.st-pf-card-tag--mq {
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
}

.st-pf-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.st-pf-card-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.10);
    color: #f2f2f2;
    font-size: .72rem;
    font-weight: 600;
}

.st-pf-card-open {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.st-pf-card-open span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: #7d4300;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(16px) scale(.96);
    transition: opacity .22s, transform .22s;
}
.st-pf-item:hover .st-pf-card-open span {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .st-pf[data-layout-state="all"] .st-pf-item:nth-child(3n+1),
    .st-pf[data-layout-state="all"] .st-pf-item:nth-child(3n+2),
    .st-pf[data-layout-state="all"] .st-pf-item:nth-child(3n+3) {
        grid-column: span 1;
        height: 300px;
    }
}
@media (max-width: 860px) {
    .st-pf-layout { grid-template-columns: 1fr; gap: .9rem; }
    .st-pf-sidebar {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
        gap: 8px;
    }
    .st-pf-cat-tile {
        width: auto;
        min-width: 110px;
        flex-direction: row;
        padding: 10px 12px;
        background: rgba(255,255,255,.88);
    }
    .st-pf-cat-tile::after { display: none; }
    .st-pf-ct-name { white-space: normal; text-align: left; text-transform: none; letter-spacing: 0; }
    .st-pf-cat-tile em { margin-left: auto; }
}
@media (max-width: 640px) {
    .st-pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .st-pf-item, .st-pf[data-layout-state="all"] .st-pf-item:nth-child(n) {
        grid-column: span 1;
        height: 240px;
        border-radius: 16px;
    }
    .st-pf-hero-copy { padding: 20px 16px; }
    .st-pf-hero { grid-template-columns: 1fr; }
    .st-pf-hero-aside { display: none; }
}


/* ══════════════════════════════════════════════════════
   HERO COPY — identico al CSS dello shortcode
   Eyebrow in alto, poi h1, divider, sub, trust, CTA badge
   ══════════════════════════════════════════════════════ */

/* Resetta qualsiasi override precedente su hero-copy */
.st-pf-hero-copy {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 30px 30px 28px !important;
    border-radius: 24px !important;
    background: rgba(255,255,255,.90) !important;
    box-shadow: 0 18px 34px rgba(0,0,0,.18) !important;
    backdrop-filter: blur(12px) !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Eyebrow row — flex row, badge a sx, ticker a dx */
.st-pf-hero-copy .st-pf-hero-eyebrow-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 18px !important;
}

.st-pf-hero-copy .st-pf-hero-eyebrow {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 16px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,140,0,.24) !important;
    background: rgba(255,140,0,.12) !important;
    color: #a85c08 !important;
    font-size: .78rem !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    align-self: center !important;
}

/* Titolo H1 — scuro su sfondo chiaro */
.st-pf-hero-copy .st-pf-hero-title {
    margin: 0 0 0 0 !important;
    font-size: clamp(2rem, 4vw, 3.25rem) !important;
    font-weight: 900 !important;
    line-height: 1.04 !important;
    letter-spacing: -.04em !important;
    color: #18120c !important;
    text-transform: none !important;
    display: block !important;
    width: auto !important;
    flex: none !important;
    flex-wrap: unset !important;
}

/* Divider arancio */
.st-pf-hero-copy .st-pf-hero-divider {
    display: block !important;
    width: 74px !important;
    height: 3px !important;
    margin: 16px 0 18px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #ff8c00, #ffb347) !important;
    flex: none !important;
}

/* Sottotitolo */
.st-pf-hero-copy .st-pf-hero-sub {
    display: block !important;
    margin: 0 0 22px !important;
    max-width: 620px !important;
    color: #4d433b !important;
    font-size: 1.08rem !important;
    line-height: 1.65 !important;
}

/* Trust chips */
.st-pf-hero-copy .st-pf-hero-trust {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
}

.st-pf-hero-copy .st-pf-trust-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(24,18,12,.08) !important;
    background: rgba(255,255,255,.78) !important;
    color: #362d26 !important;
    font-size: .83rem !important;
    font-weight: 600 !important;
}
.st-pf-hero-copy .st-pf-trust-chip svg {
    width: 14px !important;
    height: 14px !important;
    stroke: #ff8c00 !important;
    flex-shrink: 0 !important;
}

/* Badge CTA */
.st-pf-hero-copy .st-pf-badge-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    width: fit-content !important;
    padding: 12px 20px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255,140,0,.34) !important;
    background: #fff7ec !important;
    color: #9b5106 !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: transform .2s, background .2s !important;
}
.st-pf-hero-copy .st-pf-badge-cta:hover {
    transform: translateY(-1px) !important;
    background: #fff0d8 !important;
}

/* Ticker wrap dentro eyebrow-row */
.st-pf-hero-copy .st-pf-title-ticker-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 0 !important;
    align-self: flex-start !important;
}

/* Schermo ticker */
.st-pf-hero-copy .st-pf-title-ticker {
    position: relative !important;
    display: block !important;
    width: 240px !important;
    height: 152px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 2.5px solid rgba(255,140,0,.5) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,.32) !important;
    cursor: pointer !important;
    background: #111 !important;
    padding: 0 !important;
    flex: none !important;
}

.st-pf-hero-copy .st-pf-tt-slide {
    position: absolute !important;
    inset: 0 !important;
    opacity: 0 !important;
    transition: opacity .8s ease !important;
}
.st-pf-hero-copy .st-pf-tt-slide.active { opacity: 1 !important; }
.st-pf-hero-copy .st-pf-tt-slide img {
    width: 100% !important; height: 100% !important;
    object-fit: cover !important; object-position: center !important;
    display: block !important;
}
.st-pf-hero-copy .st-pf-tt-hint {
    position: absolute !important; inset: 0 !important; z-index: 2 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    background: rgba(0,0,0,.4) !important;
    opacity: 0 !important; transition: opacity .2s !important;
}
.st-pf-hero-copy .st-pf-title-ticker:hover .st-pf-tt-hint { opacity: 1 !important; }
.st-pf-hero-copy .st-pf-tt-hint svg { width: 22px !important; height: 22px !important; stroke: #fff !important; }

@media (max-width: 960px) {
    .st-pf-hero-copy .st-pf-title-ticker { width: 160px !important; height: 101px !important; }
}
@media (max-width: 640px) {
    .st-pf-hero-copy .st-pf-title-ticker-wrap { display: none !important; }
    .st-pf-hero-copy { padding: 20px 16px !important; }
}
