/*
 * PetsGarden B2B — foglio di stile del portale.
 *
 * L'autorità visiva è il tema Shopify PetsGarden: token e componenti sono
 * ricavati da config/settings_data.json del theme export e dal negozio in
 * produzione, non inventati.
 *
 *   btn1 (CTA)        raggio 50, maiuscolo, peso 600, bordo 2px
 *   btn2 (in card)    raggio 5, maiuscolo, peso 600
 *   prezzo            --color-button-hover, cioè arancio #eb5f0a
 *   section header    Bree Serif 400, text-transform: none
 *   corpo             Sen 400, 16px
 */

/* ================================================================== *
 * 1. Token
 * ================================================================== */

:root {
    /* Brand */
    --pg-green: #69b42e;
    --pg-green-dark: #4f8a22;
    --pg-green-deep: #16391a;
    --pg-green-deeper: #102a10;
    --pg-orange: #eb5f0a;
    --pg-orange-dark: #cc5108;
    --pg-red: #d72433;

    /* Inchiostri */
    --pg-title: #333333;
    --pg-text: #333333;
    --pg-muted: #808080;

    /* Superfici */
    --pg-bg: #ffffff;
    --pg-mint: #f2f8ee;      /* fondo sezione, verde pallido come sul negozio */
    --pg-soft: #f7f7f7;
    --pg-line: #e2e2e2;

    /* Tipografia */
    --pg-font-body: 'Sen', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --pg-font-display: 'Bree Serif', Georgia, serif;

    /* Forma: due raggi distinti, come nel tema */
    --pg-r-pill: 50px;       /* btn1: chiamate all'azione */
    --pg-r: 5px;             /* btn2, tag, label */
    --pg-r-box: 12px;        /* riquadri immagine e pannelli */

    --pg-shadow: 0 2px 14px rgba(51, 51, 51, 0.06);
    --pg-shadow-lg: 0 14px 40px rgba(51, 51, 51, 0.13);

    --pg-container: 1615px;
    --pg-header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    font-family: var(--pg-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--pg-text);
    background: var(--pg-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.6em;
    color: var(--pg-title);
    font-weight: 600;
    line-height: 1.25;
}

a { color: var(--pg-green); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--pg-orange); }
img { max-width: 100%; height: auto; }

:focus-visible {
    outline: 3px solid var(--pg-orange);
    outline-offset: 2px;
}

/* Display serif: il tema lo usa in sentence case, mai maiuscolo. */
.pg-display {
    font-family: var(--pg-font-display);
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.005em;
    line-height: 1.12;
}

/* Etichetta maiuscola spaziata: nav, eyebrow, intestazioni di filtro. */
.pg-eyebrow {
    font-family: var(--pg-font-body);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ================================================================== *
 * 2. Impalcatura
 * ================================================================== */

.pg-container {
    width: 100%;
    max-width: var(--pg-container);
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 1499px) { .pg-container { max-width: 1380px; } }
@media (max-width: 1399px) { .pg-container { max-width: 1160px; } }
@media (max-width: 1199px) { .pg-container { max-width: 980px; padding: 0 20px; } }
@media (max-width: 991px)  { .pg-container { max-width: 760px; } }
@media (max-width: 767px)  { .pg-container { max-width: 100%; padding: 0 16px; } }

.pg-container--narrow { max-width: 760px; }

.pg-page { display: flex; flex-direction: column; min-height: 100vh; }
.pg-main { flex: 1 0 auto; padding: 36px 0 72px; }
.pg-main--flush { padding-top: 0; }

.pg-skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    padding: 14px 22px; background: var(--pg-green); color: #fff;
    font-weight: 700;
}
.pg-skip-link:focus { left: 0; color: #fff; }

.pg-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ================================================================== *
 * 3. Testata
 * ================================================================== */

.pg-topbar {
    background: var(--pg-orange);
    color: #fff;
    font-size: 0.875rem;
}
.pg-topbar__inner {
    display: flex; align-items: center; justify-content: center;
    gap: 10px 32px; min-height: 42px; flex-wrap: wrap; text-align: center;
}
.pg-topbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.pg-topbar a:hover { color: #fff; opacity: 0.85; }

/* Fascia di servizio: ricalca la striscia bianca del negozio. */
.pg-noticebar {
    border-bottom: 1px solid var(--pg-line);
    background: #fff;
}
.pg-noticebar__inner {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 40px; color: var(--pg-muted);
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.pg-noticebar svg { flex-shrink: 0; color: var(--pg-green); }
@media (max-width: 767px) { .pg-noticebar { display: none; } }

.pg-header {
    position: sticky; top: 0; z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--pg-line);
}
.pg-header__inner {
    display: flex; align-items: center; gap: 28px; min-height: var(--pg-header-h);
}
.pg-header__brand { display: flex; align-items: center; gap: 12px; }
.pg-header__brand img { height: 58px; width: auto; }
@media (max-width: 767px) { .pg-header__brand img { height: 46px; } }

.pg-header__badge {
    padding: 4px 11px;
    border: 1.5px solid var(--pg-green);
    border-radius: var(--pg-r);
    color: var(--pg-green-dark);
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
}

.pg-header__nav {
    display: flex; align-items: center; gap: 30px; margin-left: auto;
}
.pg-header__link {
    color: var(--pg-title);
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.pg-header__link:hover { color: var(--pg-green); }
.pg-header__link[aria-current='page'] {
    color: var(--pg-green); border-bottom-color: var(--pg-green);
}
.pg-header__link--icon { display: inline-flex; align-items: center; gap: 8px; }
.pg-header__link svg { flex-shrink: 0; }

.pg-header__count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: var(--pg-r-pill);
    background: var(--pg-green); color: #fff;
    font-size: 0.7rem; font-weight: 700; line-height: 1; letter-spacing: 0;
}
.pg-header__count--accent { background: var(--pg-orange); }

.pg-header__user {
    display: flex; align-items: center; gap: 14px;
    padding-left: 24px; border-left: 1px solid var(--pg-line);
}
.pg-header__user-name { font-size: 0.84rem; line-height: 1.35; }
.pg-header__user-name strong { display: block; color: var(--pg-title); }
.pg-header__user-name span { color: var(--pg-muted); font-size: 0.78rem; }

.pg-header__toggle {
    display: none; margin-left: auto;
    background: none; border: 1px solid var(--pg-line); border-radius: var(--pg-r);
    padding: 9px 13px; cursor: pointer; font-size: 1.1rem; color: var(--pg-title);
}

@media (max-width: 1099px) {
    .pg-header__toggle { display: block; }
    .pg-header__nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 10px 20px 20px; background: #fff;
        border-bottom: 1px solid var(--pg-line); box-shadow: var(--pg-shadow);
    }
    .pg-header__nav.is-open { display: flex; }
    .pg-header__link { padding: 14px 0; border-bottom: 1px solid var(--pg-line); }
    .pg-header__link[aria-current='page'] { border-bottom-color: var(--pg-line); }
    .pg-header__user { padding: 16px 0 0; border-left: 0; justify-content: space-between; }
}

/* ================================================================== *
 * 4. Bottoni — due famiglie distinte, come nel tema
 * ================================================================== */

.pg-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 15px 37px;
    border: 2px solid transparent; border-radius: var(--pg-r-pill);
    font-family: var(--pg-font-body);
    font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    line-height: 1.2; cursor: pointer; text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pg-btn--primary { background: var(--pg-green); border-color: var(--pg-green); color: #fff; }
.pg-btn--primary:hover { background: var(--pg-orange); border-color: var(--pg-orange); color: #fff; }
.pg-btn--outline { background: transparent; border-color: var(--pg-green); color: var(--pg-green-dark); }
.pg-btn--outline:hover { background: var(--pg-green); color: #fff; }
.pg-btn--light { background: #fff; border-color: #fff; color: var(--pg-green-dark); }
.pg-btn--light:hover { background: var(--pg-orange); border-color: var(--pg-orange); color: #fff; }
.pg-btn--onDark { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.pg-btn--onDark:hover { background: #fff; border-color: #fff; color: var(--pg-green-dark); }
.pg-btn--ghost { background: transparent; border-color: var(--pg-line); color: var(--pg-text); }
.pg-btn--ghost:hover { border-color: var(--pg-green); color: var(--pg-green); }
.pg-btn--sm { padding: 10px 22px; font-size: 0.78rem; }
.pg-btn--block { width: 100%; }
.pg-btn[disabled], .pg-btn--disabled { opacity: 0.45; pointer-events: none; }

/* btn2: azione dentro una card. Raggio 5, non pillola. */
.pg-btn-flat {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px 18px;
    border: 0; border-radius: var(--pg-r);
    background: var(--pg-green); color: #fff;
    font-family: var(--pg-font-body);
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer; transition: background-color 0.2s ease;
}
.pg-btn-flat:hover { background: var(--pg-orange); color: #fff; }
.pg-btn-flat[disabled] { background: var(--pg-line); color: var(--pg-muted); cursor: not-allowed; }

.pg-link-button {
    background: none; border: 0; padding: 0;
    color: var(--pg-muted); font: inherit; font-size: 0.85rem;
    cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.pg-link-button:hover { color: var(--pg-orange); }
.pg-inline-form { display: inline; }

/* ================================================================== *
 * 5. Prezzo — arancio, come sul negozio
 * ================================================================== */

.pg-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 9px; }
.pg-price__amount {
    font-size: 1.32rem; font-weight: 700; line-height: 1.15;
    color: var(--pg-orange);
}
.pg-price__amount--lg { font-size: 2rem; }
.pg-price__public {
    font-size: 0.92rem; color: var(--pg-muted); text-decoration: line-through;
}
.pg-price__discount {
    padding: 3px 9px; border-radius: var(--pg-r);
    background: var(--pg-red); color: #fff;
    font-size: 0.72rem; font-weight: 700;
}
.pg-price__notice { color: var(--pg-muted); font-size: 0.92rem; font-style: italic; }
.pg-price__caption { width: 100%; font-size: 0.76rem; color: var(--pg-muted); }

/* ================================================================== *
 * 6. Firma: pillola verde a cavallo del bordo immagine
 * ================================================================== */

.pg-tile { display: block; }
.pg-tile__media {
    /*
     * Nessun overflow qui: la pillola deve poter sbordare dal bordo
     * inferiore. Il ritaglio dell'immagine avviene su .pg-tile__frame.
     */
    position: relative;
    aspect-ratio: 1 / 1;
}
.pg-tile__frame {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    padding: 14px;
    background: var(--pg-soft);
    border: 1px solid var(--pg-line);
    border-radius: var(--pg-r-box);
    overflow: hidden;
}
.pg-tile__frame img {
    width: 100%; height: 100%; object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.45s ease;
}
.pg-tile:hover .pg-tile__frame img { transform: scale(1.05); }
.pg-tile__placeholder { color: #c9c9c9; }

/*
 * Articoli senza fotografia: al posto di un'icona anonima si mette il
 * marchio, tenuto scarico perche' e' un segnaposto e non deve competere
 * con i packshot veri delle caselle accanto.
 */
.pg-noimg {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
}
.pg-noimg img {
    width: auto; height: auto; object-fit: contain;
    opacity: 0.38;
    filter: saturate(0.55);
}
.pg-noimg--sm img { max-width: 40px; max-height: 40px; }
.pg-noimg--md img { max-width: 58%; max-height: 58%; }
.pg-noimg--lg img { max-width: 44%; max-height: 44%; }

/* La pillola sborda: è il device del tema, e porta un dato reale. */
.pg-pill {
    position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%);
    z-index: 2; white-space: nowrap;
    padding: 7px 18px; border-radius: var(--pg-r-pill);
    background: var(--pg-green); color: #fff;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(105, 180, 46, 0.32);
}
.pg-pill--muted { background: var(--pg-muted); box-shadow: none; }
.pg-pill--warn { background: var(--pg-orange); box-shadow: 0 4px 12px rgba(235, 95, 10, 0.3); }

.pg-flags {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.pg-flag {
    padding: 4px 11px; border-radius: var(--pg-r);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: #fff;
}
.pg-flag--sale { background: var(--pg-red); }
.pg-flag--out { background: var(--pg-muted); }

/* ================================================================== *
 * 7. Icone a filo dentro cerchio — sostituiscono le emoji
 * ================================================================== */

.pg-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; flex-shrink: 0;
    border: 1.5px solid var(--pg-green);
    border-radius: 50%;
    color: var(--pg-green);
    background: #fff;
}
.pg-icon--sm { width: 42px; height: 42px; }
.pg-icon svg { width: 24px; height: 24px; }
.pg-icon--sm svg { width: 18px; height: 18px; }

/* ================================================================== *
 * 8. Sezioni
 * ================================================================== */

.pg-section { padding: 84px 0; }
.pg-section--tight { padding: 56px 0; }
.pg-section--mint {
    background: var(--pg-mint);
    box-shadow: 0 0 0 100vmax var(--pg-mint);
    clip-path: inset(0 -100vmax);
}

.pg-section__head { margin-bottom: 46px; max-width: 56ch; }
.pg-section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.pg-section__head .pg-eyebrow { color: var(--pg-green-dark); display: block; margin-bottom: 12px; }
.pg-section__head h2 {
    font-family: var(--pg-font-display); font-weight: 400;
    font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.14; margin-bottom: 12px;
}
.pg-section__head p { color: var(--pg-muted); margin: 0; font-size: 1.02rem; }

/* ================================================================== *
 * 9. Hero
 * ================================================================== */

.pg-hero {
    position: relative;
    background: var(--pg-green-deep);
    background-image: linear-gradient(115deg, var(--pg-green-deeper) 0%, var(--pg-green-deep) 62%, #1d4a22 100%);
    color: #fff;
    overflow: hidden;
}
.pg-hero__inner {
    display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 64px; align-items: center;
    padding: 76px 0 84px;
}
@media (max-width: 1099px) {
    .pg-hero__inner { grid-template-columns: 1fr; gap: 44px; padding: 52px 0 60px; }
}
.pg-hero .pg-eyebrow { color: #b7e78c; display: block; margin-bottom: 20px; }
.pg-hero h1 {
    font-family: var(--pg-font-display); font-weight: 400; color: #fff;
    font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.08; letter-spacing: -0.01em;
    margin-bottom: 20px;
}
.pg-hero h1 em { font-style: normal; color: #a5df74; }
.pg-hero__lead {
    font-size: 1.1rem; line-height: 1.65; color: rgba(255,255,255,0.82);
    max-width: 46ch; margin: 0 0 32px;
}
.pg-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.pg-hero__facts {
    display: flex; gap: 44px; flex-wrap: wrap;
    padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.18);
}
.pg-hero__fact strong {
    display: block; font-family: var(--pg-font-display); font-weight: 400;
    font-size: 2rem; line-height: 1.05; color: #fff;
}
.pg-hero__fact span {
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

/* Griglia di packshot reali: il magazzino, non uno stock. */
.pg-hero__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.pg-hero__cell {
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    padding: 14px; background: #fff; border-radius: var(--pg-r-box);
    overflow: hidden;
}
.pg-hero__cell img { width: 100%; height: 100%; object-fit: contain; }
.pg-hero__cell:nth-child(2) { transform: translateY(-16px); }
.pg-hero__cell:nth-child(5) { transform: translateY(-16px); }
@media (max-width: 575px) {
    .pg-hero__grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .pg-hero__cell:nth-child(n) { transform: none; }
    .pg-hero__cell { padding: 8px; }
}

/* ================================================================== *
 * 10. Griglie di contenuto
 * ================================================================== */

/*
 * Colonne esplicite, non auto-fit: su un container da 1615px l'auto-fit
 * generava cinque colonne e lasciava l'ultima voce orfana su una riga tutta
 * sua. Sei voci vogliono 3x2, quattro vogliono 4x1.
 */
.pg-grid-3 {
    display: grid; gap: 40px 44px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pg-grid-4 {
    display: grid; gap: 34px 30px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1099px) {
    .pg-grid-3, .pg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
}
@media (max-width: 575px) {
    .pg-grid-3, .pg-grid-4 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* Voce con icona a filo: allineata a sinistra, come sul negozio. */
.pg-point { display: flex; gap: 18px; align-items: flex-start; }
.pg-point h3 { font-size: 1.02rem; margin: 4px 0 6px; }
.pg-point p { margin: 0; color: var(--pg-muted); font-size: 0.93rem; line-height: 1.62; }

/* Riquadro tipologia cliente: foto + pillola + nome */
.pg-audience { text-align: center; }
.pg-audience .pg-tile__media { margin-bottom: 26px; }
.pg-audience h3 { font-size: 1.05rem; margin: 0 0 6px; }
.pg-audience p { margin: 0; color: var(--pg-muted); font-size: 0.9rem; }

/* Percorso in passi: numerato perché è davvero una sequenza. */
.pg-path { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.pg-path__step { padding: 0 28px; border-left: 1px solid var(--pg-line); }
.pg-path__step:first-child { padding-left: 0; border-left: 0; }
.pg-path__n {
    font-family: var(--pg-font-display); font-size: 2.4rem; line-height: 1;
    color: var(--pg-green); display: block; margin-bottom: 14px;
}
.pg-path__step h3 { font-size: 1rem; margin-bottom: 8px; }
.pg-path__step p { margin: 0; color: var(--pg-muted); font-size: 0.92rem; }
@media (max-width: 767px) {
    .pg-path__step { padding: 22px 0; border-left: 0; border-top: 1px solid var(--pg-line); }
    .pg-path__step:first-child { padding-top: 0; border-top: 0; }
}

.pg-brands {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
}
.pg-brands span {
    color: var(--pg-muted);
    font-size: 0.86rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}

/* Banda di chiusura */
.pg-cta {
    background: var(--pg-green);
    color: #fff;
    padding: 64px 48px;
    border-radius: var(--pg-r-box);
    text-align: center;
}
.pg-cta h2 {
    font-family: var(--pg-font-display); font-weight: 400; color: #fff;
    font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 12px;
}
.pg-cta p { color: rgba(255,255,255,0.9); margin: 0 auto 30px; max-width: 54ch; }
.pg-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 575px) { .pg-cta { padding: 44px 24px; } }

/* ================================================================== *
 * 11. Catalogo
 * ================================================================== */

.pg-page-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 22px; flex-wrap: wrap; margin-bottom: 32px;
    padding-bottom: 22px; border-bottom: 1px solid var(--pg-line);
}
.pg-page-head h1 {
    font-family: var(--pg-font-display); font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0;
}
.pg-page-head p { margin: 6px 0 0; color: var(--pg-muted); font-size: 0.94rem; }

.pg-catalog { display: grid; grid-template-columns: 264px 1fr; gap: 40px; align-items: start; }
@media (max-width: 991px) { .pg-catalog { grid-template-columns: 1fr; gap: 20px; } }

.pg-filters { position: sticky; top: calc(var(--pg-header-h) + 16px); }
@media (max-width: 991px) { .pg-filters { position: static; } }
.pg-filters__group { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--pg-line); }
.pg-filters__group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.pg-filters__title {
    margin: 0 0 12px; color: var(--pg-title);
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.pg-filters__toggle { display: none; }

@media (max-width: 991px) {
    .pg-filters__toggle {
        display: flex; align-items: center; justify-content: space-between;
        width: 100%; padding: 14px 18px;
        border: 1px solid var(--pg-line); border-radius: var(--pg-r);
        background: var(--pg-mint); color: var(--pg-title);
        font-family: var(--pg-font-body);
        font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
        cursor: pointer;
    }
    .pg-filters__toggle em { font-style: normal; color: var(--pg-green); }
    .pg-filters__body {
        display: none; margin-top: 14px; padding: 22px;
        border: 1px solid var(--pg-line); border-radius: var(--pg-r-box);
    }
    .pg-filters__body.is-open { display: block; }
}

.pg-product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 26px;
}

/* Card prodotto: solo il riquadro immagine è bordato, il testo respira. */
.pg-card-product { display: flex; flex-direction: column; height: 100%; }
.pg-card-product__vendor {
    margin: 26px 0 6px;
    color: var(--pg-green-dark);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.pg-card-product__title { margin: 0 0 8px; font-size: 0.98rem; font-weight: 600; line-height: 1.4; }
.pg-card-product__title a { color: var(--pg-title); }
.pg-card-product__title a:hover { color: var(--pg-green); }
.pg-card-product__meta { margin-bottom: 12px; font-size: 0.79rem; color: var(--pg-muted); }
.pg-card-product__foot { margin-top: auto; padding-top: 14px; }

.pg-stock { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; font-weight: 600; }
.pg-stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.pg-stock--in { color: var(--pg-green-dark); }
.pg-stock--in::before { background: var(--pg-green); }
.pg-stock--low { color: var(--pg-orange-dark); }
.pg-stock--low::before { background: var(--pg-orange); }
.pg-stock--out { color: var(--pg-muted); }
.pg-stock--out::before { background: var(--pg-muted); }

/* ================================================================== *
 * 12. Scheda prodotto
 * ================================================================== */

.pg-product { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 56px; margin-bottom: 64px; }
@media (max-width: 991px) { .pg-product { grid-template-columns: 1fr; gap: 32px; } }

.pg-gallery__main {
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    padding: 28px; background: var(--pg-soft);
    border: 1px solid var(--pg-line); border-radius: var(--pg-r-box); overflow: hidden;
}
.pg-gallery__main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pg-gallery__thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pg-gallery__thumb {
    width: 76px; height: 76px; padding: 6px;
    border: 2px solid var(--pg-line); border-radius: var(--pg-r);
    background: #fff; cursor: pointer; transition: border-color 0.2s ease;
}
.pg-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pg-gallery__thumb.is-active, .pg-gallery__thumb:hover { border-color: var(--pg-green); }

.pg-product__vendor {
    color: var(--pg-green-dark);
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 10px;
}
.pg-product__title {
    font-family: var(--pg-font-display); font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.16; margin-bottom: 14px;
}
.pg-product__meta {
    display: flex; flex-wrap: wrap; gap: 8px 30px;
    padding: 16px 0; margin: 0 0 22px;
    border-top: 1px solid var(--pg-line); border-bottom: 1px solid var(--pg-line);
    font-size: 0.86rem; color: var(--pg-muted);
}
.pg-product__meta strong { color: var(--pg-title); font-weight: 600; }
.pg-product__pricebox {
    padding: 24px; margin-bottom: 24px;
    background: var(--pg-mint); border-radius: var(--pg-r-box);
}

.pg-variants { margin: 26px 0; }
.pg-variants__title {
    margin-bottom: 12px; color: var(--pg-title);
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.pg-variants__list { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-variant {
    padding: 11px 20px; border: 2px solid var(--pg-line); border-radius: var(--pg-r);
    background: #fff; font-family: var(--pg-font-body);
    font-size: 0.88rem; font-weight: 600; color: var(--pg-text); cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.pg-variant:hover { border-color: var(--pg-green); }
.pg-variant.is-active { border-color: var(--pg-green); background: var(--pg-green); color: #fff; }
.pg-variant.is-unavailable { opacity: 0.45; text-decoration: line-through; }

.pg-spec {
    display: grid; grid-template-columns: minmax(160px, 240px) 1fr;
    margin: 0; border: 1px solid var(--pg-line); border-radius: var(--pg-r-box); overflow: hidden;
}
.pg-spec dt, .pg-spec dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--pg-line); font-size: 0.9rem; }
.pg-spec dt { background: var(--pg-mint); font-weight: 700; color: var(--pg-title); }
.pg-spec dd { color: var(--pg-text); white-space: pre-line; }
.pg-spec dt:nth-last-of-type(1), .pg-spec dd:nth-last-of-type(1) { border-bottom: 0; }
@media (max-width: 575px) {
    .pg-spec { grid-template-columns: 1fr; }
    .pg-spec dd { border-bottom: 1px solid var(--pg-line); }
}

.pg-rte { font-size: 0.96rem; line-height: 1.7; color: var(--pg-text); }
.pg-rte img { border-radius: var(--pg-r); }
.pg-rte table { width: 100%; border-collapse: collapse; }
.pg-rte td, .pg-rte th { border: 1px solid var(--pg-line); padding: 9px 11px; }

/* ================================================================== *
 * 13. Azioni su articolo
 * ================================================================== */

.pg-actions { display: flex; align-items: stretch; gap: 10px; }
.pg-actions__add { display: flex; align-items: stretch; gap: 8px; flex: 1 1 auto; }
.pg-qty-input {
    width: 68px; padding: 0 8px; text-align: center;
    border: 1px solid var(--pg-line); border-radius: var(--pg-r);
    font-family: var(--pg-font-body); font-size: 0.9rem; font-weight: 600;
}
.pg-save-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; flex-shrink: 0;
    border: 1px solid var(--pg-line); border-radius: var(--pg-r);
    background: #fff; color: var(--pg-muted); cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.pg-save-btn svg { width: 19px; height: 19px; }
.pg-save-btn:hover, .pg-save-btn.is-saved { color: var(--pg-red); border-color: var(--pg-red); }
.pg-save-btn.is-saved svg { fill: currentColor; }

/* ================================================================== *
 * 14. Carrello, account, moduli, legale
 * ================================================================== */

.pg-cart { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 991px) { .pg-cart { grid-template-columns: 1fr; } }

.pg-line {
    display: grid; grid-template-columns: 96px minmax(0,1fr) auto; gap: 20px; align-items: center;
    padding: 22px 0; border-bottom: 1px solid var(--pg-line);
}
.pg-line:last-child { border-bottom: 0; }
.pg-line__media {
    aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
    padding: 8px; background: var(--pg-soft);
    border: 1px solid var(--pg-line); border-radius: var(--pg-r); overflow: hidden;
}
.pg-line__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pg-line__title { font-weight: 600; margin-bottom: 5px; }
.pg-line__title a { color: var(--pg-title); }
.pg-line__title a:hover { color: var(--pg-green); }
.pg-line__meta { font-size: 0.81rem; color: var(--pg-muted); }
.pg-line__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.pg-line__total { min-width: 116px; text-align: right; font-weight: 700; font-size: 1.1rem; color: var(--pg-orange); }
@media (max-width: 575px) {
    .pg-line { grid-template-columns: 76px minmax(0,1fr); }
    .pg-line__actions { grid-column: 1/-1; justify-content: flex-start; }
    .pg-line__total { text-align: left; }
}

.pg-qty { display: inline-flex; align-items: center; gap: 6px; }
.pg-qty input {
    width: 72px; padding: 9px 10px; text-align: center;
    border: 1px solid var(--pg-line); border-radius: var(--pg-r);
    font-family: var(--pg-font-body); font-size: 0.9rem;
}

.pg-summary {
    position: sticky; top: calc(var(--pg-header-h) + 16px);
    padding: 28px; background: var(--pg-mint); border-radius: var(--pg-r-box);
}
@media (max-width: 991px) { .pg-summary { position: static; } }
.pg-summary h2 { font-family: var(--pg-font-display); font-weight: 400; font-size: 1.25rem; margin-bottom: 16px; }
.pg-summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 0.94rem; }
.pg-summary__row--total {
    margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--pg-line);
    font-size: 1.2rem; font-weight: 700;
}
.pg-summary__row--total span:last-child { color: var(--pg-orange); }

.pg-account { display: grid; grid-template-columns: 252px minmax(0,1fr); gap: 40px; align-items: start; }
@media (max-width: 991px) { .pg-account { grid-template-columns: 1fr; } }
.pg-account__nav { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 991px) { .pg-account__nav { flex-direction: row; flex-wrap: wrap; } }
.pg-account__link {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-radius: var(--pg-r); color: var(--pg-text);
    font-size: 0.87rem; font-weight: 600;
}
.pg-account__link svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--pg-muted); }
.pg-account__link:hover { background: var(--pg-mint); color: var(--pg-green-dark); }
.pg-account__link:hover svg { color: var(--pg-green); }
.pg-account__link[aria-current='page'] { background: var(--pg-green); color: #fff; }
.pg-account__link[aria-current='page'] svg { color: #fff; }

.pg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-bottom: 32px; }
.pg-stat { padding: 24px; border: 1px solid var(--pg-line); border-radius: var(--pg-r-box); }
.pg-stat__label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--pg-muted); margin-bottom: 10px;
}
.pg-stat__value { font-family: var(--pg-font-display); font-weight: 400; font-size: 1.9rem; line-height: 1.05; }

.pg-panel { padding: 30px; border: 1px solid var(--pg-line); border-radius: var(--pg-r-box); }
.pg-panel--mint { background: var(--pg-mint); border-color: transparent; }
.pg-panel h2 { font-family: var(--pg-font-display); font-weight: 400; font-size: 1.25rem; }

/* Moduli */
.pg-field { margin-bottom: 20px; }
.pg-label { display: block; margin-bottom: 7px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--pg-title); }
.pg-label__optional { color: var(--pg-muted); font-weight: 400; letter-spacing: 0; }
.pg-input, .pg-select, .pg-textarea {
    width: 100%; padding: 14px 16px;
    border: 1px solid var(--pg-line); border-radius: var(--pg-r);
    background: #fff; color: var(--pg-text);
    font-family: var(--pg-font-body); font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pg-input:focus, .pg-select:focus, .pg-textarea:focus {
    outline: none; border-color: var(--pg-green);
    box-shadow: 0 0 0 3px rgba(105, 180, 46, 0.16);
}
.pg-input--error, .pg-select--error { border-color: var(--pg-red); }
.pg-textarea { min-height: 112px; resize: vertical; }
.pg-error { display: block; margin-top: 6px; color: var(--pg-red); font-size: 0.82rem; }
.pg-help { display: block; margin-top: 6px; color: var(--pg-muted); font-size: 0.82rem; }
.pg-checkbox { display: flex; align-items: flex-start; gap: 11px; font-size: 0.9rem; }
.pg-checkbox input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--pg-green); flex-shrink: 0; }

.pg-grid { display: grid; gap: 0 20px; grid-template-columns: repeat(12, 1fr); }
.pg-col-12 { grid-column: span 12; }
.pg-col-8 { grid-column: span 8; }
.pg-col-6 { grid-column: span 6; }
.pg-col-4 { grid-column: span 4; }
.pg-col-3 { grid-column: span 3; }
@media (max-width: 767px) { .pg-col-8, .pg-col-6, .pg-col-4, .pg-col-3 { grid-column: span 12; } }

.pg-fieldset { margin: 0 0 34px; padding: 0; border: 0; }
.pg-fieldset__legend {
    display: flex; align-items: center; gap: 12px; width: 100%;
    margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--pg-line);
    font-family: var(--pg-font-display); font-weight: 400; font-size: 1.1rem; color: var(--pg-title);
}
.pg-fieldset__step {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
    background: var(--pg-green); color: #fff;
    font-family: var(--pg-font-body); font-size: 0.8rem; font-weight: 700;
}

/* Riscontri */
/*
 * Avvisi: fondo tinto e bordo sottile su tutto il perimetro. Il bordo
 * laterale spesso e' un vezzo che qui non aggiunge informazione.
 */
.pg-alert {
    display: flex; align-items: flex-start; gap: 13px;
    padding: 15px 19px; margin-bottom: 22px;
    border: 1px solid; border-radius: var(--pg-r); font-size: 0.92rem;
}
.pg-alert--success { background: #eef8e7; border-color: #c7e5ae; color: #35610f; }
.pg-alert--error   { background: #fdecee; border-color: #f2c2c7; color: #8c1622; }
.pg-alert--warning { background: #fdf0e6; border-color: #f5cfae; color: #8a3805; }
.pg-alert--info    { background: var(--pg-mint); border-color: #d3e8c6; color: var(--pg-text); }

.pg-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 13px; border-radius: var(--pg-r-pill);
    font-size: 0.74rem; font-weight: 700;
}
.pg-badge--success { background: #e6f4dc; color: #3f7517; }
.pg-badge--warning { background: #fdefe3; color: #a8460a; }
.pg-badge--danger  { background: #fbe3e5; color: #a51825; }
.pg-badge--muted   { background: var(--pg-soft); color: var(--pg-muted); }
.pg-badge--info    { background: #e6f0fb; color: #1d5fa8; }

.pg-empty {
    padding: 72px 28px; text-align: center; color: var(--pg-muted);
    border: 1px dashed var(--pg-line); border-radius: var(--pg-r-box);
}
.pg-empty h3 { color: var(--pg-title); font-family: var(--pg-font-display); font-weight: 400; font-size: 1.25rem; margin-bottom: 10px; }

.pg-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 52px; flex-wrap: wrap; }
.pg-pagination a, .pg-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 13px;
    border: 1px solid var(--pg-line); border-radius: var(--pg-r);
    color: var(--pg-text); font-size: 0.9rem; font-weight: 600;
}
.pg-pagination a:hover { border-color: var(--pg-green); color: var(--pg-green); }
.pg-pagination .is-current { background: var(--pg-green); border-color: var(--pg-green); color: #fff; }
.pg-pagination .is-disabled { opacity: 0.35; }

/* ------------------------------------------------------------------ *
 * Accesso e registrazione: pannello scuro a sinistra, modulo a destra.
 * Il pannello porta i numeri veri del catalogo, non uno slogan.
 * ------------------------------------------------------------------ */

.pg-auth-body { background: #fff; }

.pg-split { display: grid; grid-template-columns: 460px minmax(0, 1fr); min-height: 100vh; }
@media (max-width: 1099px) { .pg-split { grid-template-columns: 1fr; min-height: 0; } }

.pg-split__aside {
    display: flex; flex-direction: column; justify-content: space-between;
    /* Resta a vista anche su moduli lunghi come la registrazione. */
    position: sticky; top: 0; align-self: start; min-height: 100vh;
    padding: 44px 48px;
    background: var(--pg-green-deep);
    background-image: linear-gradient(160deg, var(--pg-green-deeper) 0%, var(--pg-green-deep) 60%, #1d4a22 100%);
    color: #fff;
}
@media (max-width: 1099px) {
    .pg-split__aside { position: static; min-height: 0; padding: 30px 24px 34px; }
}

.pg-split__brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 56px; }
.pg-split__brand img { height: 62px; width: auto; background: #fff; padding: 6px; border-radius: var(--pg-r); }
.pg-split__brand .pg-header__badge { border-color: rgba(255,255,255,0.5); color: #fff; }
@media (max-width: 1099px) { .pg-split__brand { margin-bottom: 26px; } }

.pg-split__pitch .pg-eyebrow { color: #b7e78c; display: block; margin-bottom: 16px; }
.pg-split__pitch h2 {
    font-family: var(--pg-font-display); font-weight: 400; color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.16; margin-bottom: 14px;
}
.pg-split__pitch p { color: rgba(255,255,255,0.78); margin: 0 0 30px; font-size: 0.98rem; line-height: 1.65; }

.pg-pills { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0; padding: 0; }

/* Variante statica della pillola: qui non sborda da una foto, elenca dati. */
.pg-pill--static {
    position: static; transform: none; box-shadow: none;
    background: rgba(255,255,255,0.14); color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
}
.pg-pill--ghost { background: transparent; color: rgba(255,255,255,0.75); }

.pg-split__aside-foot {
    margin-top: 44px; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.16);
    font-size: 0.86rem; color: rgba(255,255,255,0.6);
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pg-split__aside-foot a { color: rgba(255,255,255,0.82); }
.pg-split__aside-foot a:hover { color: #a5df74; }

.pg-split__main { display: flex; align-items: center; justify-content: center; padding: 56px 40px; }
@media (max-width: 767px) { .pg-split__main { padding: 36px 16px 48px; } }

.pg-split__inner { width: 100%; max-width: 420px; }
.pg-split__inner--wide { max-width: 880px; }

.pg-split__legal {
    display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
    margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--pg-line);
    font-size: 0.8rem;
}
.pg-split__legal a { color: var(--pg-muted); }
.pg-split__legal a:hover { color: var(--pg-green); }

.pg-auth__title {
    font-family: var(--pg-font-display); font-weight: 400;
    font-size: 1.85rem; line-height: 1.18; margin-bottom: 10px;
}
.pg-auth__subtitle { margin: 0 0 30px; color: var(--pg-muted); font-size: 0.95rem; line-height: 1.6; }
.pg-auth__foot {
    margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--pg-line);
    font-size: 0.92rem; color: var(--pg-muted);
}

/* Legale */
.pg-legal { max-width: 760px; margin: 0 auto; }
.pg-legal h1 { font-family: var(--pg-font-display); font-weight: 400; font-size: 2.1rem; margin-bottom: 10px; }
.pg-legal__updated { color: var(--pg-muted); font-size: 0.88rem; margin-bottom: 36px; }
.pg-legal h2 { font-size: 1.12rem; margin: 36px 0 12px; padding-top: 22px; border-top: 1px solid var(--pg-line); }
.pg-legal p, .pg-legal li { font-size: 0.95rem; line-height: 1.75; }
.pg-legal ul { padding-left: 20px; }
.pg-legal li { margin-bottom: 7px; }
.pg-legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.9rem; }
.pg-legal th, .pg-legal td { border: 1px solid var(--pg-line); padding: 11px 13px; text-align: left; vertical-align: top; }
.pg-legal th { background: var(--pg-mint); }
.pg-legal code { background: var(--pg-soft); padding: 2px 6px; border-radius: 3px; font-size: 0.88em; }

/* ================================================================== *
 * 15. Piede e cookie
 * ================================================================== */

.pg-footer {
    flex-shrink: 0; padding: 60px 0 0;
    background: var(--pg-green-deep); color: rgba(255,255,255,0.7); font-size: 0.88rem;
}
.pg-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
@media (max-width: 767px) {
    .pg-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .pg-footer__brand { grid-column: 1/-1; }
}
.pg-footer__brand img { height: 76px; width: auto; margin-bottom: 16px; background: #fff; padding: 8px; border-radius: var(--pg-r); }
.pg-footer__brand p { max-width: 36ch; margin: 0; line-height: 1.65; }
.pg-footer__title {
    color: #fff; margin-bottom: 16px;
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.pg-footer__list { list-style: none; margin: 0; padding: 0; }
.pg-footer__list li { margin-bottom: 10px; line-height: 1.5; }
.pg-footer__list a { color: rgba(255,255,255,0.7); }
.pg-footer__list a:hover { color: #a5df74; }
.pg-footer__bottom {
    display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.14);
    font-size: 0.82rem; color: rgba(255,255,255,0.55);
}

/*
 * Banner cookie: fascia sottile ancorata in basso, non un riquadro che
 * galleggia sopra il contenuto. Il portale usa solo cookie tecnici, quindi
 * l'avviso informa e basta: non deve rubare la scena.
 */
.pg-cookie {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--pg-line);
    box-shadow: 0 -6px 24px rgba(51, 51, 51, 0.08);
}
.pg-cookie__inner {
    display: flex; align-items: center; gap: 24px;
    max-width: var(--pg-container); margin: 0 auto; padding: 14px 24px;
}
.pg-cookie__text {
    font-size: 0.85rem; color: var(--pg-muted); line-height: 1.5; margin: 0;
}
.pg-cookie__text strong { color: var(--pg-title); font-weight: 700; }
.pg-cookie__btn { flex-shrink: 0; white-space: nowrap; }
.pg-cookie__close {
    flex-shrink: 0; background: none; border: 0; padding: 6px;
    color: var(--pg-muted); cursor: pointer; line-height: 1;
}
.pg-cookie__close:hover { color: var(--pg-title); }
@media (max-width: 767px) {
    .pg-cookie__inner { flex-wrap: wrap; gap: 12px 16px; padding: 14px 16px; }
    .pg-cookie__text { flex: 1 1 100%; }
}

/* ================================================================== *
 * 16. Utility
 * ================================================================== */

.pg-muted { color: var(--pg-muted); }
.pg-small { font-size: 0.86rem; }
.pg-mt-1 { margin-top: 8px; }
.pg-mt-2 { margin-top: 14px; }
.pg-mt-3 { margin-top: 24px; }
.pg-mt-4 { margin-top: 40px; }
.pg-mb-3 { margin-bottom: 24px; }
.pg-mb-4 { margin-bottom: 40px; }
.pg-flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ================================================================== *
 * 17. Ingresso cliente: ricerca, scorciatoie, reparti, marche
 * ================================================================== */

.pg-entry {
    padding: 44px 0 52px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--pg-line);
}
.pg-entry__head { margin-bottom: 28px; }
.pg-entry__head .pg-eyebrow { color: var(--pg-green-dark); display: block; margin-bottom: 10px; }
.pg-entry__head h1 {
    font-family: var(--pg-font-display); font-weight: 400;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.14; margin: 0;
}

/* La ricerca è lo strumento primario: dimensione da protagonista. */
.pg-searchbar {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 8px 8px 20px;
    border: 2px solid var(--pg-line); border-radius: var(--pg-r-pill);
    background: #fff; max-width: 780px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pg-searchbar:focus-within {
    border-color: var(--pg-green);
    box-shadow: 0 0 0 4px rgba(105, 180, 46, 0.14);
}
.pg-searchbar__icon { color: var(--pg-muted); flex-shrink: 0; }
.pg-searchbar__input {
    flex: 1 1 auto; min-width: 0; border: 0; padding: 12px 0; background: none;
    font-family: var(--pg-font-body); font-size: 1rem; color: var(--pg-text);
}
.pg-searchbar__input:focus { outline: none; }
.pg-searchbar .pg-btn { flex-shrink: 0; padding: 13px 30px; }
@media (max-width: 575px) {
    .pg-searchbar { flex-wrap: wrap; border-radius: var(--pg-r-box); padding: 12px; }
    .pg-searchbar__input { flex: 1 1 auto; padding: 8px 0; }
    .pg-searchbar .pg-btn { width: 100%; }
}

.pg-shortcuts {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px; margin-top: 26px; max-width: 780px;
}
@media (max-width: 767px) { .pg-shortcuts { grid-template-columns: 1fr; } }
.pg-shortcut {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--pg-line); border-radius: var(--pg-r-box);
    color: var(--pg-text); font-size: 0.85rem; line-height: 1.45;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.pg-shortcut:hover { border-color: var(--pg-green); background: var(--pg-mint); color: var(--pg-text); }
.pg-shortcut strong { display: block; color: var(--pg-title); font-size: 0.92rem; }
.pg-shortcut span:last-child { color: var(--pg-muted); }
.pg-shortcut .pg-icon { flex-shrink: 0; }

/* Riquadro reparto: foto a sinistra, nome e sottocategorie a destra. */
.pg-dept {
    display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px;
    align-items: center; padding: 14px;
    border: 1px solid var(--pg-line); border-radius: var(--pg-r-box);
    color: var(--pg-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pg-dept:hover { border-color: var(--pg-green); box-shadow: var(--pg-shadow); color: var(--pg-text); }
.pg-dept__media { position: relative; aspect-ratio: 1 / 1; }
.pg-dept__body { display: block; min-width: 0; }
.pg-dept__body strong {
    display: block; font-family: var(--pg-font-display); font-weight: 400;
    font-size: 1.2rem; color: var(--pg-title); margin-bottom: 4px;
}
.pg-dept__count {
    display: inline-block; margin-bottom: 8px;
    color: var(--pg-green-dark);
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.pg-dept__subs {
    display: block; color: var(--pg-muted); font-size: 0.84rem; line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 16px;
    border: 1px solid var(--pg-line); border-radius: var(--pg-r-pill);
    color: var(--pg-text); font-size: 0.85rem; font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.pg-chip span {
    color: var(--pg-muted); font-size: 0.76rem; font-weight: 700;
}
.pg-chip:hover { border-color: var(--pg-green); color: var(--pg-green-dark); }
.pg-chip:hover span { color: var(--pg-green); }

/* ------------------------------------------------------------------ *
 * Navigazione a categorie nel catalogo
 * ------------------------------------------------------------------ */

.pg-breadcrumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-bottom: 18px; font-size: 0.84rem; color: var(--pg-muted);
}
.pg-breadcrumb a { color: var(--pg-muted); }
.pg-breadcrumb a:hover { color: var(--pg-green); }
.pg-breadcrumb [aria-current] { color: var(--pg-title); font-weight: 600; }

.pg-cattree { list-style: none; margin: 0; padding: 0; }
.pg-cattree li { margin: 0; }
.pg-cattree a {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding: 8px 10px; border-radius: var(--pg-r);
    color: var(--pg-text); font-size: 0.88rem; line-height: 1.4;
}
.pg-cattree a:hover { background: var(--pg-mint); color: var(--pg-green-dark); }
.pg-cattree a[aria-current='page'] { background: var(--pg-green); color: #fff; font-weight: 700; }
.pg-cattree a[aria-current='page'] em { color: rgba(255,255,255,0.8); }
.pg-cattree em { font-style: normal; color: var(--pg-muted); font-size: 0.76rem; flex-shrink: 0; }
.pg-cattree__sub { list-style: none; margin: 2px 0 8px; padding-left: 12px; border-left: 1px solid var(--pg-line); }
.pg-cattree__sub a { font-size: 0.84rem; color: var(--pg-muted); }
.pg-cattree__sub a:hover { color: var(--pg-green-dark); }
.pg-cattree__back {
    display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--pg-muted);
}
.pg-cattree__back:hover { color: var(--pg-green); }

/* ================================================================== *
 * 18. Menu reparti
 * ================================================================== */

.pg-mega { position: static; }

.pg-mega__trigger {
    display: inline-flex; align-items: center; gap: 7px;
    background: none; border: 0; border-bottom: 2px solid transparent;
    cursor: pointer; font-family: var(--pg-font-body);
}
.pg-mega__trigger svg { transition: transform 0.2s ease; }
.pg-mega.is-open .pg-mega__trigger { color: var(--pg-green); border-bottom-color: var(--pg-green); }
.pg-mega.is-open .pg-mega__trigger svg { transform: rotate(180deg); }

/*
 * Pannello a tutta larghezza sotto la testata: con sette reparti una tendina
 * stretta costringerebbe a scorrere, e il compratore perderebbe la visione
 * d'insieme che è tutto il motivo per cui apre il menu.
 */
.pg-mega__panel {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 39;
    background: #fff;
    border-top: 1px solid var(--pg-line);
    border-bottom: 1px solid var(--pg-line);
    box-shadow: 0 18px 40px rgba(51, 51, 51, 0.12);
}
.pg-mega__grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 36px; padding-top: 34px; padding-bottom: 34px;
}
@media (max-width: 1399px) { .pg-mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pg-mega__head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding-bottom: 10px; margin-bottom: 12px;
    border-bottom: 1px solid var(--pg-line);
    color: var(--pg-title);
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.pg-mega__head:hover { color: var(--pg-green); border-bottom-color: var(--pg-green); }
.pg-mega__head em,
.pg-mega__list em {
    font-style: normal; color: var(--pg-muted); font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}

.pg-mega__list { list-style: none; margin: 0; padding: 0; }
.pg-mega__list li { margin-bottom: 3px; }
.pg-mega__list a {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding: 5px 0; color: var(--pg-text); font-size: 0.87rem; line-height: 1.4;
}
.pg-mega__list a:hover { color: var(--pg-green); }
.pg-mega__more { color: var(--pg-green-dark) !important; font-weight: 700; font-size: 0.82rem !important; }

.pg-mega__foot {
    padding: 16px 0; background: var(--pg-mint); border-top: 1px solid var(--pg-line);
}

/* Su mobile il pannello vive dentro il menu a scomparsa: niente overlay. */
@media (max-width: 1099px) {
    .pg-mega { width: 100%; }
    .pg-mega__trigger {
        width: 100%; justify-content: space-between;
        padding: 14px 0; border-bottom: 1px solid var(--pg-line);
    }
    .pg-mega__panel {
        position: static; box-shadow: none; border: 0;
        background: var(--pg-mint); margin: 0 -20px; padding: 4px 20px 12px;
    }
    .pg-mega__grid { grid-template-columns: 1fr; gap: 18px; padding: 18px 0; }
    .pg-mega__foot { margin: 0 -20px; padding: 14px 20px; }
    .pg-mega__foot .pg-container { padding: 0; }
}

/* Piede del menu: selezioni di marca e scorciatoia al catalogo. */
.pg-mega__foot-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
}
.pg-mega__selections {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pg-mega__selections .pg-eyebrow { color: var(--pg-muted); margin-right: 4px; }
.pg-mega__selections .pg-chip { background: #fff; padding: 7px 14px; font-size: 0.81rem; }

/* Il pannello non deve mai coprire l'intera finestra. */
.pg-mega__panel { max-height: calc(100vh - var(--pg-header-h) - 42px); overflow-y: auto; }
@media (max-width: 1099px) { .pg-mega__panel { max-height: none; overflow: visible; } }
