/* hasset-commerce — vetrina pubblica
   Riferimento: WordPress Twenty Twenty-Five — pulito, minimale, aria, neutro.
   Mobile-first. Zero CDN font esterni. */

:root {
    --hs-bg:           #ffffff;
    --hs-surface:      #ffffff;
    --hs-surface-soft: #f6f6f6;
    --hs-border:       #e0e0e0;
    --hs-text:         #111111;
    --hs-text-muted:   #6b6b6b;
    --hs-primary:      #111111;
    --hs-primary-dark: #000000;
    --hs-accent:       #111111;
    --hs-danger:       #b32d2e;
    --hs-success:      #008a20;
    --hs-radius:       0;
    --hs-radius-sm:    0;
    --hs-shadow:       none;
    --hs-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --hs-max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--hs-bg);
    color: var(--hs-text);
    font-family: var(--hs-font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--hs-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--hs-text-muted); }
img { max-width: 100%; display: block; }

h1, h2, h3 {
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 0;
}

/* ---------- Header ---------- */

.hs-header {
    background: var(--hs-surface);
    border-bottom: 1px solid var(--hs-border);
    z-index: 20;
}

/* sticky = default storico; autohide parte sticky e si nasconde via JS */
.hs-header--sticky,
.hs-header--autohide {
    position: sticky;
    top: 0;
}

.hs-header--static {
    position: relative;
    top: auto;
}

.hs-header--autohide {
    transition: transform 0.22s ease;
    will-change: transform;
}

.hs-header--autohide.is-hidden {
    transform: translateY(-100%);
    pointer-events: none;
}

/* Barra "modalità amministratore" (stile WordPress admin bar): solo per chi ha anche una
   sessione admin valida — vedi includes/layout_pub.php. Fascia scura per distinguerla subito
   dal tema della vetrina, sempre sopra a tutto (cookie banner, chat, header sticky). */
body.hc-has-adminbar { padding-top: 32px; }
body.hc-has-adminbar .hs-header--sticky,
body.hc-has-adminbar .hs-header--autohide { top: 32px; }
.hc-adminbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: #1d2327;
    z-index: 100000;
    font-size: 13px;
    line-height: 1;
}
.hc-adminbar-inner {
    max-width: var(--hs-max-width);
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    overflow-x: auto;
}
.hc-adminbar-link {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: .85;
}
.hc-adminbar-link:hover { opacity: 1; text-decoration: underline; }
.hc-adminbar-edit { margin-left: auto; font-weight: 600; opacity: 1; }

/* Anteprima admin di un prodotto/pagina disattivato: visibile solo a chi ha il permesso di
   modificarlo (mai al pubblico né a Google, che non ha una sessione admin — vedi hasPermission()
   nei rispettivi pages/pub/*.php). */
.hs-anteprima-banner {
    background: #fff8e1;
    color: #9a6400;
    border: 1px solid #f0d78c;
    border-radius: 6px;
    padding: 10px 16px;
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
}

.hs-header-inner {
    position: relative;
    max-width: var(--hs-max-width);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
/* Icona ricerca header: subito prima del carrello, con margine extra da desktop (dove è
   affiancata all'icona account a fine nav) per evitare click accidentali tra le due. */
.hs-header-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    display: inline-flex;
}
@media (min-width: 860px) {
    .hs-header-search-toggle { margin-left: 10px; }
}
/* Barra di ricerca a tendina, larghezza piena sotto l'header — mai nel flusso finché non è
   aperta (hidden di default): zero impatto su layout/CLS al caricamento pagina. */
.hs-header-search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--hs-surface);
    border-bottom: 1px solid var(--hs-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}
.hs-header-search-panel-inner {
    max-width: var(--hs-max-width);
    margin: 0 auto;
    padding: 16px 24px;
}
/* Carrello + hamburger fuori dal nav (mai dentro il menu chiuso). */
.hs-header-end {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
}
.hs-header-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    line-height: 0;
    padding: 0;
    gap: 0;
}
.hs-header-cart[hidden] {
    display: none !important;
}
.hs-header-cart svg {
    display: block;
    width: 20px;
    height: 20px;
}
.hs-header-cart--sm svg { width: 18px; height: 18px; }
.hs-header-cart--md svg { width: 20px; height: 20px; }
.hs-header-cart--lg svg { width: 24px; height: 24px; }

.hs-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--hs-text);
    text-decoration: none;
    min-width: 0;
    flex: 0 0 auto;
}
.hs-brand:hover { text-decoration: none; color: var(--hs-text); }
.hs-brand-logo {
    /* height fissata: riserva spazio CLS; width/height HTML → aspect-ratio browser */
    display: block;
    height: 64px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}
.hs-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}
.hs-brand-name {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.02em;
}
.hs-brand-tag {
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0em;
    text-transform: uppercase;
    color: var(--hs-text-muted);
    margin-top: 2px;
}

.hs-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.hs-menu-item > a,
.hs-menu-item > span.hs-menu-label {
    display: block;
    padding: 8px 0;
    font-weight: 600;
    font-size: 16px;
    color: var(--hs-text);
    text-decoration: none;
}
.hs-menu-item > a:hover { color: var(--hs-accent); }
/* Voce menù senza collegamento (tipo "nessuno"): solo etichetta, mai a forma di link cliccabile —
   eccetto le voci con sottomenu, dove il testo apre/chiude il sottomenu (v. shop.js). */
.hs-menu-item > span.hs-menu-label { cursor: default; }
.hs-menu-item.has-children > span.hs-menu-label {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.hs-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 12px;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.hs-menu-item.has-children.is-open > .hs-submenu {
    display: flex;
    margin: 0 0 8px;
}
.hs-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--hs-border);
    border-radius: var(--hs-radius-sm);
    background: var(--hs-surface);
    color: var(--hs-text);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}
.hs-menu-item.has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.hs-menu-item.has-children > a,
.hs-menu-item.has-children > span.hs-menu-label {
    flex: 1 1 auto;
    min-width: 0;
}
.hs-menu-item.has-children > .hs-submenu {
    flex: 1 1 100%;
}
.hs-submenu a,
.hs-submenu span.hs-menu-label {
    display: block;
    padding: 6px 0;
    font-size: 15px;
    color: var(--hs-text-muted);
    text-decoration: none;
}
.hs-submenu a:hover { color: var(--hs-accent); }

.hs-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--hs-border);
    border-radius: var(--hs-radius-sm);
    background: var(--hs-surface);
    cursor: pointer;
    flex: 0 0 auto;
}
.hs-menu-toggle span { display: block; height: 2px; margin: 0 8px; background: var(--hs-text); border-radius: 2px; }

/* Mobile/tablet: nav nascosto — si apre SOLO con .is-open (hamburger). */
.hs-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--hs-surface);
    border-bottom: 1px solid var(--hs-border);
    padding: 16px 24px;
    flex-direction: column;
    gap: 14px;
}
.hs-nav.is-open {
    display: flex;
}
@media (max-width: 859.98px) {
    .hs-nav {
        display: none !important;
        position: absolute !important;
        flex-direction: column !important;
    }
    .hs-nav.is-open {
        display: flex !important;
    }
}

/* Select nativi (lingua/valuta) senza riquadro: sembrano piccoli link col testo + freccia,
   non caselle di form — restano <select> nativi (tastiera/accessibilità), zero JS in più. */
.hs-select-inline {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 10px;
    padding: 6px 16px 6px 2px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--hs-text);
    cursor: pointer;
    width: auto;
    max-width: 60px;
}
.hs-select-inline:hover { color: var(--hs-accent); }
.hs-select-inline:focus-visible { outline: 2px solid var(--hs-accent); outline-offset: 2px; }

/* Lingua/valuta: un'unica voce staccata dal menu ("IT · EUR ▾", testo piccolo e discreto) che
   riusa lo stesso meccanismo has-children/hs-submenu già usato per le voci con sottomenu.
   Dentro: le stesse <select> native di sempre, ma non più larghe quanto il pannello. */
.hs-locale-trigger-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--hs-text-muted);
    cursor: default;
}
.hs-menu-item--locale {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--hs-border);
}
/* Pannello sempre con padding vero (mai a filo bordo) e mai largo quanto lo schermo. */
.hs-submenu--locale {
    padding: 12px 14px !important;
    gap: 12px;
}
.hs-locale-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hs-locale-group-label {
    flex: 0 0 auto;
    width: 52px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--hs-text-muted);
}
.hs-select-inline--locale {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    border: 1px solid var(--hs-border);
    padding: 5px 22px 5px 10px;
    background-position: right 8px center;
}
@media (min-width: 860px) {
    .hs-menu-item--locale {
        margin-top: 0;
        margin-left: 8px;
        padding-top: 0;
        padding-left: 14px;
        border-top: 0;
        border-left: 1px solid var(--hs-border);
    }
    .hs-locale-trigger-label {
        display: inline-flex;
        align-items: center;
        min-height: 2.5rem;
        padding: 0;
        font-size: 12px;
    }
    /* Ultima voce del menu, vicina al bordo destro: il pannello si apre allineato a destra
       (cresce verso sinistra) invece che a sinistra — altrimenti sbordava fuori dalla finestra. */
    .hs-menu-item--locale .hs-submenu {
        left: auto;
        right: 0;
        min-width: 0;
        width: max-content;
    }
}

.hs-cart-link {
    font-weight: 600;
    color: var(--hs-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}
.hs-cart-link:hover { color: var(--hs-accent); }
.hs-icon-link { padding: 4px; }
.hs-icon-link svg { display: block; flex: 0 0 auto; }

.hs-cart-count {
    position: absolute;
    top: -5px;
    right: -7px;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: var(--hs-text);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    /* Contro line-height:0 su .hs-header-cart: senza line-height esplicito il badge collassa. */
    line-height: 1;
    letter-spacing: 0;
    pointer-events: none;
}
.hs-header-cart--sm .hs-cart-count {
    min-width: 1rem;
    height: 1rem;
    font-size: 9px;
    top: -4px;
    right: -6px;
}
.hs-header-cart--lg .hs-cart-count {
    min-width: 1.25rem;
    height: 1.25rem;
    font-size: 11px;
    top: -6px;
    right: -8px;
}

/* ---------- Layout generale ---------- */

.hs-main {
    max-width: var(--hs-max-width);
    margin: 0 auto;
    padding: 32px 24px 80px;
    min-height: 60vh;
}
/* Home a blocchi: main a tutta larghezza (niente 100vw breakout che si spezza) */
.hs-main:has(> .hs-home) {
    max-width: none;
    padding: 0 0 80px;
}

.hs-footer {
    border-top: 1px solid var(--hs-border);
    margin-top: 60px;
    background: var(--hs-surface);
    /* Spazio sotto al ©: il pulsante «Gestisci cookie» è fixed in basso e altrimenti lo copre. */
    padding-bottom: 100px;
}
.hs-footer-inner {
    max-width: var(--hs-max-width);
    margin: 0 auto;
    padding: 36px 24px 20px;
    color: #5c5c54;
    font-size: 14px;
}
.hs-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px 32px;
}
@media (min-width: 720px) {
    .hs-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}
.hs-footer-brand-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--hs-text);
}
.hs-footer-logo {
    display: block;
    height: 64px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}
.hs-footer-tagline {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    max-width: 280px;
    color: #5c5c54;
}
.hs-footer-col-title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hs-text);
}
.hs-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hs-footer-links a {
    font-size: 14px;
    color: #3a3a34;
    text-decoration: none;
}
.hs-footer-links a:hover { color: var(--hs-accent); text-decoration: underline; }
.hs-footer-note-wrap {
    max-width: var(--hs-max-width);
    margin: 0 auto;
    padding: 4px 24px 16px;
}
.hs-footer-note {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #5c5c54;
    white-space: pre-wrap;
}
.hs-footer-bottom {
    max-width: var(--hs-max-width);
    margin: 0 auto;
    padding: 12px 24px 16px;
    border-top: 1px solid var(--hs-border);
    color: #6b6b63;
    font-size: 12px;
    line-height: 1.45;
}
.hs-footer-meta { min-width: 0; }
.hs-footer-copy {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #6b6b63;
}
.hs-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ---------- Catalogo ---------- */

.hs-presentazione {
    margin: 0 0 28px;
    line-height: 1.55;
}
.hs-presentazione > *:first-child { margin-top: 0; }
.hs-presentazione > *:last-child { margin-bottom: 0; }
.hs-presentazione img {
    max-width: 100%;
    height: auto;
}
.hs-primo-piano {
    margin: 0 0 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--hs-border);
}
.hs-primo-piano .hs-catalogo-titolo {
    margin-bottom: 18px;
}
.hs-filtri--dopo-primo-piano {
    margin-top: 2rem;
}
.hs-filtri {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}
.hs-catalogo-titolo {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--hs-text);
}

.hs-pill:hover { border-color: var(--hs-text); }

.hs-pill.is-active {
    background: var(--hs-text);
    border-color: var(--hs-text);
    color: #fff;
}

.hs-grid-prodotti {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
}

.hs-card-prodotto {
    color: var(--hs-text);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.hs-card-prodotto:hover { text-decoration: none; }
.hs-card-prodotto:hover .hs-card-prodotto-nome { text-decoration: underline; text-decoration-color: var(--hs-border); }

.hs-card-prodotto-img {
    aspect-ratio: 1 / 1;
    background: transparent;
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hs-card-prodotto-img img { width: 100%; height: 100%; object-fit: contain; }
.hs-card-prodotto-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #b0b0a8;
    background: #fafafa;
    border: 1px solid var(--hs-border);
}
.hs-no-photo-icon {
    width: 40px;
    height: 40px;
    display: block;
    opacity: 0.85;
}

.hs-card-prodotto-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

/* Placeholder "scheletro" del blocco Primo piano (v. homeBlocchiRenderPrimoPiano) — stesse
   classi/dimensioni delle card vere, riserva lo spazio mentre il JS carica i prodotti reali. */
.hs-card-prodotto--skeleton .hs-card-prodotto-img {
    background: color-mix(in srgb, var(--hs-text) 6%, transparent);
}
.hs-skeleton-line {
    height: 13px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--hs-text) 8%, transparent);
}

.hs-card-prodotto-nome {
    font-size: 15px;
    font-weight: 500;
    color: var(--hs-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-prezzo {
    font-weight: 600;
    font-size: 15px;
}
.hs-prezzo-pieno {
    text-decoration: line-through;
    color: var(--hs-text-muted);
    font-weight: 400;
    font-size: 13px;
    margin-left: 6px;
}

/* Prezzo scheda prodotto — indipendente da .hs-prezzo/.hs-prezzo-pieno (carrello, catalogo) */
.hs-prodotto-prezzo {
    font-weight: 600;
    font-size: 15px;
}
.hs-prodotto-prezzo-pieno {
    text-decoration: line-through;
    color: var(--hs-text-muted);
    font-weight: 400;
    font-size: 13px;
    margin-left: 6px;
}

.hs-badge-non-disponibile {
    font-size: 12px;
    color: var(--hs-danger);
    font-weight: 600;
}

/* ---------- Bottoni / form ---------- */

.hs-btn[hidden] { display: none !important; }
.hs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: var(--hs-radius-sm);
    border: 1px solid var(--hs-text);
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    background: var(--hs-text);
    color: #fff;
    width: 100%;
    text-decoration: none;
    letter-spacing: -.01em;
}
.hs-btn:hover { background: #333; border-color: #333; color: #fff; text-decoration: none; }
.hs-btn:disabled { opacity: .5; cursor: not-allowed; }

.hs-btn-secondary {
    background: var(--hs-surface);
    color: var(--hs-text);
    border-color: var(--hs-border);
}
.hs-btn-secondary:hover { border-color: var(--hs-text); background: var(--hs-surface-soft); color: var(--hs-text); }

.hs-btn-sm { padding: 8px 12px; font-size: 13px; width: auto; }

/* Dopo .hs-btn: altrimenti width:100% del bottone mangia lo spazio dell'input. */
.hs-search {
    margin: 28px 0 8px;
    max-width: 28rem;
}
.hs-search--dopo {
    padding-top: 20px;
    border-top: 1px solid var(--hs-border);
}
.hs-search-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
}
.hs-search-row .hs-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 10px 12px;
    font-size: 14px;
}
.hs-search-row .hs-btn,
.hs-search-row .hs-search-btn {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.hs-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }

.hs-card-titolo {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 18px;
    line-height: 1.3;
}

.hs-input, .hs-select, .hs-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--hs-border);
    border-radius: var(--hs-radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--hs-surface);
    color: var(--hs-text);
}
.hs-input:focus, .hs-select:focus, .hs-textarea:focus {
    outline: none;
    border-color: var(--hs-text);
}

.hs-form-group { margin-bottom: 20px; }
.hs-form-group:last-child { margin-bottom: 0; }

/* Opzione di pagamento come riquadro selezionabile, non un radio+testo che si confonde con gli
   altri campi del form — deve essere la scelta più visibile della pagina, è quella che decide
   cosa succede al clic su "Conferma ordine". */
.hs-payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--hs-border);
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 10px;
}
.hs-payment-option:last-child { margin-bottom: 0; }
/* Nota facoltativa sotto una singola opzione di pagamento (es. "rate disponibili") — deve
   risaltare (non è un hint secondario), non lo stile grigio/piccolo di hs-text-hint. */
.hs-payment-option-note {
    margin: 4px 0 10px 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hs-text);
}
.hs-payment-option-note:last-child { margin-bottom: 0; }
.hs-card-titolo + .hs-payment-option,
.hs-card-titolo + .hs-input,
.hs-card-titolo + .hs-text-hint,
.hs-card-titolo + #hs-checkout-consensi-list {
    margin-top: 2px;
}

.hs-login-prompt {
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--hs-surface-soft);
    border: 1px solid var(--hs-border);
    font-size: 13px;
    line-height: 1.5;
}
.hs-login-prompt button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--hs-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.hs-login-prompt-code {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.hs-login-prompt-code .hs-input {
    max-width: 140px;
    flex: 1;
}
.hs-payment-option:has(input:checked) {
    border-color: var(--hs-text);
    background: var(--hs-surface-soft);
}
.hs-payment-option input { width: auto; margin: 0; }

/* Card unica in vetrina: stesso bordo/padding ovunque. Varianti solo max-width o sfondo soft
   quando serve davvero (form stretti, avvisi). */
.hs-card {
    background: var(--hs-surface);
    border: 1px solid var(--hs-border);
    border-radius: var(--hs-radius);
    padding: 24px;
    margin-bottom: 20px;
}

/* ---------- Prodotto ---------- */

/* DOM: media → buy → dettagli. Desktop: foto+desc a sx, buy a dx. Mobile: foto → buy → desc. */
.hs-prodotto-layout {
    display: grid;
    gap: 20px;
}
.hs-prodotto-media { min-width: 0; }
.hs-prodotto-buy { min-width: 0; }
.hs-prodotto-dettagli { min-width: 0; }
.hs-prodotto-breve {
    color: var(--hs-text-muted);
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 12px;
}
.hs-prodotto-breve > *:first-child { margin-top: 0; }
.hs-prodotto-breve > *:last-child { margin-bottom: 0; }
.hs-prodotto-breve p,
.hs-prodotto-breve ul,
.hs-prodotto-breve ol {
    margin: 0 0 0.45em;
}
.hs-prodotto-breve h1,
.hs-prodotto-breve h2,
.hs-prodotto-breve h3,
.hs-prodotto-breve h4 {
    margin: 0.55em 0 0.3em;
    font-size: 1em;
    font-weight: 650;
    line-height: 1.3;
}
#hs-prodotto-varianti {
    margin: 4px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#hs-prodotto-varianti .hs-form-group {
    margin: 0;
}
#hs-prodotto-varianti .hs-label {
    margin-bottom: 6px;
}
.hs-prodotto-disponibile {
    margin: 4px 0 12px;
    font-size: 14px;
    color: var(--hs-text-muted);
}
.hs-prodotto-backorder {
    margin: 4px 0 12px;
    font-size: 14px;
    color: #9a6400;
    font-weight: 600;
}
#hs-prodotto-disp.hs-badge-non-disponibile {
    display: block;
    margin: 4px 0 12px;
    font-size: 14px;
}
.hs-prodotto-non-vendibile {
    margin: 12px 0 0;
    padding: 12px 14px;
    background: var(--hs-bg-muted, #f4f4f4);
    border-radius: 8px;
    font-size: 14px;
    color: var(--hs-text-muted);
}
.hs-prodotto-consegna,
.hs-prodotto-soglia {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.45;
}
.hs-prodotto-soglia {
    font-weight: 600;
    color: var(--hs-text);
}
.hs-prodotto-spedizione-costo {
    color: #2db35e;
    font-size: 15px;
	font-weight: 600;
    line-height: 1.5;
    margin: 0 0 12px;
}
.hs-prodotto-spedizione-costo:empty,
.hs-prodotto-spedizione-costo[hidden] {
    display: none;
    margin: 0;
}
.hs-prodotto-meta {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    font-size: 13px;
    color: var(--hs-text-muted);
    line-height: 1.55;
}
.hs-prodotto-meta strong {
    color: var(--hs-text);
    font-weight: 600;
}
.hs-prodotto-lunga {
    color: var(--hs-text);
    font-size: 15px;
    line-height: 1.75;
}
.hs-prodotto-breve {
    color: var(--hs-text);
}
.hs-prodotto-lunga table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 16px;
    font-size: 14px;
}
.hs-prodotto-lunga th,
.hs-prodotto-lunga td {
    border: 1px solid var(--hs-border);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}
.hs-prodotto-lunga th {
    font-weight: 600;
    background: var(--hs-surface-2, #f4f5f7);
}
.hs-prodotto-lunga + .hs-specifiche { margin-top: 20px; }

.hs-recensioni-summary { margin: 0 0 10px; font-size: 14px; }
.hs-recensioni-stars { color: #c9a227; letter-spacing: 0.06em; }
.hs-prodotto-rec-summary-hint {
    color: var(--hs-text-muted);
    font-size: 13px;
    line-height: 1.5;
}
.hs-recensioni { margin-top: 2rem; }
.hs-recensione { margin-bottom: 12px; }
.hs-recensione .hs-h3 { margin: 6px 0; font-size: 16px; }
.hs-recensione-autore {
    color: var(--hs-text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px;
}
.hs-recensioni-vuoto {
    color: var(--hs-text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px;
}
.hs-recensioni-form { margin-top: 16px; }
.hs-recensioni-form .hs-h3 { margin-top: 0; }
.hs-prodotto-rec-otp-hint {
    color: var(--hs-text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px;
}
.hs-prodotto-rec-moderazione {
    color: var(--hs-text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px;
}
.hs-rating {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}
.hs-rating__star {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0 1px;
    border: 0;
    background: transparent;
    color: #d4d4d8;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}
.hs-rating__star.is-on { color: #c9a227; }
.hs-rating__star:focus-visible {
    outline: 2px solid var(--hs-accent, #1a1a1a);
    outline-offset: 2px;
    border-radius: 2px;
}

.hs-prodotto-galleria-wrap { margin-bottom: 8px; }
.hs-prodotto-galleria {
    position: relative;
    aspect-ratio: 1 / 1;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hs-badge-offerta {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: var(--hs-text);
    color: var(--hs-surface, #fff);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 5px 9px;
}
.hs-prodotto-galleria img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.hs-prodotto-galleria-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #b0b0a8;
    background: #fafafa;
    border: 1px solid var(--hs-border);
}
.hs-prodotto-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.hs-prodotto-thumb {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 1px solid var(--hs-border);
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}
.hs-prodotto-thumb.is-active { border-color: var(--hs-text); }
.hs-prodotto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.hs-prodotto-titolo {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 4px 0 12px;
    line-height: 1.25;
}
/* Titolo H1 scheda prodotto — indipendente dagli H2 di sezione (upsell, recensioni)
   che restano su .hs-prodotto-titolo */
.hs-prodotto-titolo-principale {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 4px 0 12px;
    line-height: 1.25;
}
.hs-prodotto-descrizione { color: var(--hs-text-muted); font-size: 15px; line-height: 1.7; }

@media (min-width: 900px) {
    .hs-prodotto-layout {
        grid-template-columns: 1fr minmax(280px, 480px);
        grid-template-areas:
            "media buy"
            "dettagli buy";
        gap: 28px 32px;
        align-items: start;
    }
    .hs-prodotto-media { grid-area: media; }
    .hs-prodotto-buy { grid-area: buy; position: sticky; top: 88px; }
    .hs-prodotto-dettagli { grid-area: dettagli; }
}

/* ---------- Kit compositi ---------- */
.hs-prodotto-componenti { margin: 12px 0 8px; }
.hs-kit-comp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    flex-wrap: nowrap;
    padding: 12px 0;
    border-bottom: 1px solid var(--hs-border, #e5e5e5);
}
.hs-kit-comp.is-disabled { opacity: 0.55; }
.hs-kit-comp-check {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 10px;
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}
.hs-kit-comp-check input { margin-top: 3px; flex-shrink: 0; }
.hs-kit-comp-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid var(--hs-border);
    background: var(--hs-surface-soft, #f6f6f6);
    object-fit: contain;
}
.hs-kit-comp-thumb-empty { display: inline-block; }
/* Badge stato/backorder sotto il nome: colore diverso dal testo, nessun rientro necessario. */
.hs-kit-comp-check .hs-badge-non-disponibile,
.hs-kit-comp-check .hs-kit-comp-backorder {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: -2px;
}
.hs-kit-comp:last-child { border-bottom: none; }
.hs-kit-comp-nome { font-weight: 500; font-size: 14px; line-height: 1.4; min-width: 0; }
.hs-kit-comp-var { width: 100%; margin: 0.35rem 0 0.25rem; display: grid; gap: 0.5rem; }
.hs-kit-var-group { margin: 0; }
.hs-var-sel option:disabled,
.hs-kit-var-sel option:disabled { color: #9a9a9a; }
.hs-kit-comp-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
    white-space: nowrap;
}
.hs-kit-comp-prezzo {
    font-size: 13px;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.hs-kit-qty-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: 0 0 auto;
}
.hs-kit-qty.hs-input-narrow {
    width: 4.5rem;
    max-width: 5rem;
    text-align: center;
    flex: 0 0 auto;
}
.hs-kit-qty:disabled {
    opacity: 0.45;
}
.hs-kit-qty.is-invalid,
.hs-input.is-invalid {
    border-color: #c0392b;
    outline-color: #c0392b;
}
.hs-field-err,
.hs-kit-qty-err {
    margin: 0;
    font-size: 12px;
    line-height: 1.3;
    color: #c0392b;
    font-weight: 500;
    max-width: 14rem;
    text-align: right;
}
#hs-prodotto-kit-err {
    text-align: left;
    max-width: none;
    margin: 0 0 8px;
}
@media (max-width: 560px) {
    .hs-kit-comp {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .hs-kit-comp-check { width: 100%; }
    .hs-kit-comp-meta {
        width: 100%;
        justify-content: flex-start;
        padding-left: 26px;
        flex-wrap: wrap;
        white-space: normal;
    }
}
.hs-prodotto-totale-kit {
    margin: 10px 0 4px;
    line-height: 1.4;
}
.hs-prodotto-kit-totale-label {
    font-weight: 600;
    font-size: 15px;
}
.hs-prodotto-kit-totale-prezzo {
    font-weight: 600;
    font-size: 15px;
	color: #0051c3;
}
.hs-prodotto-kit-totale-selezionati {
    font-weight: 400;
    font-size: 13px;
    color: var(--hs-text-muted);
}
.hs-riepilogo-comp {
    font-size: 13px;
    color: var(--hs-text-muted);
    padding-left: 12px;
}

/* ---------- Carrello (tabella Woo/TT5) ---------- */

.hs-cart-table-wrap {
    width: 100%;
    margin: 0 0 1.25rem;
    overflow-x: auto;
}
.hs-cart-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--hs-border);
}
.hs-cart-table th,
.hs-cart-table td {
    padding: 1rem 0.85rem;
    border-bottom: 1px solid var(--hs-border);
    border-right: 1px solid var(--hs-border);
    text-align: left;
    vertical-align: middle;
    background: transparent;
}
.hs-cart-table th:last-child,
.hs-cart-table td:last-child {
    border-right: 0;
}
.hs-cart-table thead th {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--hs-text-muted);
    border-bottom: 1px solid var(--hs-border);
}
.hs-cart-table tbody tr:last-child td {
    border-bottom: 0;
}
.hs-cart-col-price,
.hs-cart-col-qty,
.hs-cart-col-sub {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.hs-cart-col-price {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--hs-text);
}
.hs-cart-col-sub {
    font-size: 1.15rem;
    font-weight: 700;
    text-align: right;
    color: var(--hs-text);
}
.hs-cart-table thead th:last-child {
    text-align: right;
}
.hs-cart-product {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}
.hs-cart-foto {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border: 0;
    background: transparent;
    overflow: hidden;
    border-radius: 0;
    display: block;
}
.hs-cart-foto img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.hs-cart-foto--empty {
    background: var(--hs-surface-soft);
}
.hs-cart-product__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}
.hs-cart-product__name {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.35;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.hs-cart-row--comp .hs-cart-col-product {
    padding-left: 2rem;
}
.hs-cart-row--comp .hs-cart-product__name {
    font-weight: 500;
    font-size: 1.05rem;
}
.hs-cart-collegato-hint {
    font-size: 12.5px;
    color: var(--hs-text-muted);
    margin-top: 2px;
}
.hs-cart-row--comp .hs-cart-col-price,
.hs-cart-row--comp .hs-cart-col-sub {
    font-weight: 500;
    font-size: 1rem;
    color: var(--hs-text-muted);
}
.hs-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--hs-text-muted);
    cursor: pointer;
    border-radius: var(--hs-radius-sm);
    line-height: 0;
}
.hs-icon-btn:hover,
.hs-icon-btn:focus-visible {
    color: var(--hs-danger, #b42318);
    outline: none;
}
.hs-cart-qty-ro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    color: var(--hs-text-muted);
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}
.hs-cart-qty {
    width: 3.5rem;
    padding: 0.5rem;
    border: 1px solid var(--hs-border);
    border-radius: var(--hs-radius-sm);
    text-align: center;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}
.hs-cart-totals .hs-riepilogo-riga {
    font-size: 1rem;
}
.hs-cart-totals .hs-riepilogo-totale {
    font-size: 1.25rem;
}
.hs-cart-pay {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--hs-border, #ddd);
}
.hs-cart-pay__title {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hs-muted, #666);
}
.hs-cart-pay__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hs-cart-pay__list li {
    padding: 2px 0;
    font-size: 14px;
}
.hs-cart-pay__list li.is-default { font-weight: 650; }
.hs-cart-pay__mark {
    font-weight: 400;
    font-size: 12px;
    color: var(--hs-muted, #666);
}

@media (max-width: 720px) {
    .hs-cart-table thead {
        display: none;
    }
    .hs-cart-table,
    .hs-cart-table tbody,
    .hs-cart-table tr,
    .hs-cart-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
    }
    .hs-cart-table {
        border: 0;
    }
    .hs-cart-row {
        border: 1px solid var(--hs-border);
        margin: 0 0 0.75rem;
        padding: 0.85rem;
    }
    .hs-cart-row--comp {
        margin-left: 0;
    }
    .hs-cart-table td {
        border: 0;
        padding: 0.4rem 0;
        text-align: left;
    }
    /* Specificità > .hs-cart-table td { display:block } — evita «PrezzoInclusa» attaccato */
    .hs-cart-table td.hs-cart-col-price,
    .hs-cart-table td.hs-cart-col-qty,
    .hs-cart-table td.hs-cart-col-sub {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        white-space: normal;
    }
    .hs-cart-table td.hs-cart-col-price::before,
    .hs-cart-table td.hs-cart-col-qty::before,
    .hs-cart-table td.hs-cart-col-sub::before {
        content: attr(data-label);
        color: var(--hs-text-muted);
        font-size: 0.875rem;
        font-weight: 500;
        flex: 0 0 auto;
    }
    .hs-cart-table td.hs-cart-col-sub {
        font-weight: 700;
        text-align: left;
    }
}

.hs-riepilogo-riga {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 5px 0;
    color: var(--hs-text-muted);
}
.hs-riepilogo-totale { font-size: 18px; font-weight: 600; color: var(--hs-text); border-top: 1px solid var(--hs-border); margin-top: 10px; padding-top: 14px; }

.hs-empty { text-align: center; color: var(--hs-text-muted); padding: 60px 20px; }
.hs-catalogo-msg {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--hs-border, #ddd);
    border-radius: 6px;
    background: var(--hs-bg, #f7f7f7);
    color: var(--hs-text-muted, #555);
    font-size: 0.95rem;
    line-height: 1.4;
}

.hs-text-hint {
    color: var(--hs-text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.hs-text-hint:empty,
.hs-text-hint[hidden] {
    display: none;
    margin: 0;
}

.hs-checkout-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hs-checkout-aside .hs-btn {
    width: 100%;
}

/* ---------- Toast ---------- */

.hs-toast {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    padding: 14px 18px;
    border-radius: var(--hs-radius-sm);
    font-size: 14px;
    font-weight: 500;
    background: var(--hs-text);
    color: #fff;
    text-align: center;
}
.hs-toast-error { background: var(--hs-danger); }

/* Avviso aggiunto al carrello — copia fedele stile messaggio Woo */
.hs-cart-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.5rem;
    padding: 1em 1.25em;
    border: 1px solid #46b450;
    background: #f0faf1;
    color: #1a1a17;
    font-size: 1rem;
    line-height: 1.5;
    list-style: none;
    /* Backup se qualcosa richiama scrollIntoView: lascia spazio sotto header sticky */
    scroll-margin-top: 6.5rem;
}
body.hc-has-adminbar .hs-cart-notice {
    scroll-margin-top: calc(6.5rem + 32px);
}
.hs-cart-notice__check {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #46b450;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}
.hs-cart-notice__text {
    flex: 1 1 14rem;
    margin: 0;
    min-width: 0;
    color: #1a1a17;
}
.hs-cart-notice__collegati {
    display: inline-block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.8;
}
.hs-cart-notice__link {
    flex: 0 0 auto;
    margin-left: auto;
    font-weight: 600;
    color: #1a1a17;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    white-space: nowrap;
}
.hs-cart-notice__link:hover {
    color: #0a0a0a;
}

/* ---------- Utility (pub) ---------- */

.hs-hidden { display: none !important; }

.hs-input-narrow { max-width: 100px; }

.hs-text-hint-spaced { margin: 10px 0 0; }
.hs-text-hint-spaced-top { margin-top: 12px; }
.hs-text-hint-flush { margin: 0; }
.hs-text-hint-offset { margin-top: -8px; }
.hs-text-error { color: var(--hs-danger); }

.hs-payment-option-top { align-items: flex-start; }

/* Tabella semplice (specifiche prodotto): stessi token delle altre tabelle/testi shop. */
.hs-specifiche {
    width: 100%;
    margin-top: 20px;
    font-size: 14px;
    border-collapse: collapse;
}
.hs-specifiche td {
    padding: 10px 0;
    border-bottom: 1px solid var(--hs-border);
    vertical-align: top;
}
.hs-specifiche tr:last-child td { border-bottom: none; }
.hs-specifiche td:first-child {
    color: var(--hs-text-muted);
    padding-right: 16px;
    width: 40%;
}

.hs-upsell { margin-top: 32px; }
.hs-upsell .hs-prodotto-titolo,
.hs-cross-sell .hs-prodotto-titolo {
    font-size: 1.15rem;
}

.hs-cross-sell { margin-top: 24px; }

.hs-prezzo-block { 

	margin-bottom: 14px; 
	color: #0051c3;
    font-size: 16px;
    font-weight: 600;

}
.hs-block-spaced { margin-top: 20px; }

/* Unici scostamenti ammessi dalla card standard */
.hs-card-soft { background: var(--hs-surface-soft); }
.hs-card-form { max-width: 420px; }
.hs-card-summary { max-width: 480px; }
.hs-card-summary-spaced {
    max-width: 480px;
    margin-top: 16px;
}

.hs-btn-block-spaced { margin-top: 14px; }

.hs-carrello-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}
.hs-carrello-cta .hs-btn-block-spaced { margin-top: 0; }
.hs-btn-share {
    background: #1f7a3a;
    border-color: #1f7a3a;
    color: #fff;
}
.hs-btn-share:hover {
    background: #17632e;
    border-color: #17632e;
    color: #fff;
}
/* Desktop: misura naturale (come prima), affiancati — non stirati a tutta card */
@media (min-width: 640px) {
    .hs-carrello-cta {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
    }
    .hs-carrello-cta .hs-btn {
        width: auto;
        flex: 0 0 auto;
    }
}

/* Pagine legali: stessa larghezza utile dell'header (hs-main), sinistra allineata, si allarga a destra */
.hs-pagina-legale,
.hs-pagina-legale__corpo {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.hs-pagina-legale__titolo {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    font-weight: 700;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
    color: var(--hs-text);
}
.hs-pagina-legale__corpo,
.hs-pagina-blocchi .hs-home-html__inner {
    color: var(--hs-text);
    font-size: 1.02rem;
    line-height: 1.75;
}
.hs-pagina-blocchi .hs-home { margin-top: 0; }
.hs-pagina-blocchi .hs-home-html { margin: 0 0 1.5rem; }
.hs-pagina-legale__corpo h1,
.hs-pagina-legale__corpo h2,
.hs-pagina-blocchi .hs-home-html__inner h1,
.hs-pagina-blocchi .hs-home-html__inner h2 {
    font-size: clamp(1.35rem, 2vw, 1.55rem);
    margin: 1.75rem 0 0.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--hs-text);
}
.hs-pagina-legale__corpo h1:first-child,
.hs-pagina-legale__corpo h2:first-child,
.hs-pagina-blocchi .hs-home-html__inner h1:first-child,
.hs-pagina-blocchi .hs-home-html__inner h2:first-child { margin-top: 0; }
.hs-pagina-legale__corpo h3,
.hs-pagina-blocchi .hs-home-html__inner h3 {
    font-size: 1.12rem;
    margin: 1.4rem 0 0.55rem;
    font-weight: 650;
    color: var(--hs-text);
}
.hs-pagina-legale__corpo p,
.hs-pagina-blocchi .hs-home-html__inner p { margin: 0 0 0.95rem; }
.hs-pagina-legale__corpo ul,
.hs-pagina-legale__corpo ol,
.hs-pagina-blocchi .hs-home-html__inner ul,
.hs-pagina-blocchi .hs-home-html__inner ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.hs-pagina-legale__corpo li,
.hs-pagina-blocchi .hs-home-html__inner li { margin-bottom: 0.4rem; }
.hs-pagina-legale__corpo a,
.hs-pagina-blocchi .hs-home-html__inner a { color: var(--hs-link, #0b5fff); text-decoration: underline; text-underline-offset: 2px; }
.hs-pagina-legale__corpo em,
.hs-pagina-blocchi .hs-home-html__inner em { color: var(--hs-text-muted); }
.hs-pagina-legale__corpo .hs-cookie-table-wrap,
.hs-pagina-legale__corpo .hs-text-hint,
.hs-pagina-blocchi .hs-home-html__inner .hs-cookie-table-wrap,
.hs-pagina-blocchi .hs-home-html__inner .hs-text-hint { margin: 1rem 0 1.25rem; }
.hs-pagina-legale__corpo table,
.hs-pagina-legale__corpo .hs-cookie-table,
.hs-pagina-blocchi .hs-home-html__inner table,
.hs-pagina-blocchi .hs-home-html__inner .hs-cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.95rem;
    display: table;
}
.hs-pagina-legale__corpo th,
.hs-pagina-legale__corpo td,
.hs-pagina-blocchi .hs-home-html__inner th,
.hs-pagina-blocchi .hs-home-html__inner td {
    border: 1px solid var(--hs-border, rgba(0,0,0,0.12));
    padding: 0.55rem 0.7rem;
    text-align: left;
    vertical-align: top;
}
.hs-pagina-legale__corpo th,
.hs-pagina-blocchi .hs-home-html__inner th {
    background: rgba(0,0,0,0.035);
    font-weight: 650;
}
@media (max-width: 720px) {
    .hs-pagina-legale__corpo .hs-cookie-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .hs-pagina-legale__corpo table { min-width: 520px; }
}

.hs-center-actions {
    text-align: center;
    margin-top: 24px;
}

.hs-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.hs-actions-row .hs-btn { width: auto; flex: 1; }

.hc-login-error {
    background: var(--hs-surface-soft);
    color: var(--hs-danger);
    padding: 10px 14px;
}

.hs-form-success {
    background: var(--hs-surface-soft);
    color: var(--hs-success);
    padding: 10px 14px;
}

.hs-account-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.hs-account-header .hs-prodotto-titolo { margin: 0; }

.hs-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.hs-card-header-row .hs-card-titolo { margin: 0; }
.hs-card-header-row + .hs-text-hint { margin-top: 10px; }

.hs-account-modifica-body { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hs-border); }
.hs-account-modifica-body .hs-payment-option { margin-top: 4px; }

/* Lista ordini account (riusa classi storiche, non è il carrello). */
.hs-riga-carrello.hs-order-link {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--hs-border);
    text-decoration: none;
    color: inherit;
}
.hs-riga-carrello.hs-order-link:last-child { border-bottom: 0; }
.hs-order-link:hover { text-decoration: none; color: inherit; }
.hs-riga-carrello-nome { font-weight: 500; font-size: 15px; min-width: 0; }
.hs-riga-carrello-azioni {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: flex-end;
}

.hs-order-amount { font-weight: 600; }

.hs-form-footer { margin: 14px 0 0; }
.hs-text-last { margin-bottom: 0; }

.hs-login-prompt-action { margin-top: 10px; }

/* ---------- Tablet / desktop ---------- */

@media (min-width: 640px) {
    .hs-prodotto-titolo { font-size: 32px; }
    .hs-prodotto-titolo-principale { font-size: 32px; }

    .hs-grid-prodotti { grid-template-columns: repeat(3, 1fr); }
    .hs-toast { left: auto; right: 24px; bottom: 24px; max-width: 340px; }
}

@media (min-width: 860px) {
    .hs-menu-toggle { display: none; }
    .hs-header-end {
        margin-left: 0.75rem;
        align-self: center;
    }
    .hs-header-cart {
        min-height: 2.5rem;
    }
    .hs-nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        align-self: center;
        border: none;
        box-shadow: none;
        padding: 0;
        background: none;
        gap: 18px;
        flex: 1 1 auto;
        justify-content: flex-end;
        margin-left: 24px;
        z-index: auto;
        min-height: 2.5rem;
    }
    .hs-menu {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px 18px;
        width: auto;
        margin: 0;
    }
    .hs-menu-item {
        position: relative;
    }
    .hs-menu-item > a,
    .hs-menu-item > span.hs-menu-label {
        display: inline-flex;
        align-items: center;
        min-height: 2.5rem;
        padding: 0;
    }
    .hs-menu-item.has-children {
        display: block;
        position: relative;
    }
    .hs-submenu-toggle { display: none; }
    .hs-submenu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        margin: 0;
        padding: 8px 0;
        background: var(--hs-surface);
        border: 1px solid var(--hs-border);
        box-shadow: none;
        z-index: 30;
    }
    .hs-submenu a { padding: 8px 14px; }
    .hs-menu-item.has-children:hover > .hs-submenu,
    .hs-menu-item.has-children:focus-within > .hs-submenu,
    .hs-menu-item.has-children.is-open > .hs-submenu {
        display: flex;
    }
    .hs-brand-name { font-size: 20px; }
    .hs-brand-logo,
    .hs-footer-logo { height: 155px; max-width: 157px; }
    .hs-grid-prodotti { grid-template-columns: repeat(4, 1fr); }
    .hs-btn { width: auto; }

    .hs-checkout-layout {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 28px;
        align-items: start;
    }
    .hs-checkout-aside {
        position: sticky;
        top: 88px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .hs-checkout-main {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
}

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

/* Tabella registro cookie (pagine legali) */
.hs-cookie-table-wrap { overflow-x: auto; margin: 1rem 0; }
.hs-cookie-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hs-cookie-table th, .hs-cookie-table td {
    border: 1px solid var(--hs-border, #ddd);
    padding: 0.5rem 0.65rem;
    text-align: left;
    vertical-align: top;
}
.hs-cookie-table th { background: var(--hs-surface, #f7f7f7); font-weight: 650; }

/* WhatsApp chat (Join.chat-like) — fisso, compare dopo delay */
.hs-wa {
    --hs-wa-green: #25d366;
    --hs-wa-green-dark: #128c7e;
    position: fixed;
    bottom: 20px;
    z-index: 99950;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .45s ease, transform .45s ease;
}
.hs-wa--left { left: 20px; right: auto; align-items: flex-start; }
.hs-wa--right { right: 20px; left: auto; align-items: flex-end; }
.hs-wa.is-ready {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.hs-wa-fab {
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    background: var(--hs-wa-green);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(18, 140, 126, .35);
    transition: transform .2s ease, background .2s ease;
}
.hs-wa-fab:hover { background: var(--hs-wa-green-dark); transform: scale(1.04); }
.hs-wa-fab:focus-visible { outline: 2px solid #0b5; outline-offset: 3px; }
.hs-wa-panel {
    width: min(320px, calc(100vw - 40px));
    background: #f0f2f5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .18);
}
.hs-wa-panel[hidden] { display: none !important; }
.hs-wa-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    background: var(--hs-wa-green);
    color: #fff;
    font-weight: 650;
}
.hs-wa-panel-brand { display: inline-flex; align-items: center; gap: 8px; }
.hs-wa-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.hs-wa-panel-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.hs-wa-bubble {
    align-self: flex-start;
    max-width: 92%;
    background: #fff;
    color: #222;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: .92rem;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.hs-wa-privacy {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: .78rem;
    color: #444;
    line-height: 1.35;
    cursor: pointer;
}
.hs-wa-privacy input { margin-top: 2px; }
.hs-wa-privacy a { color: inherit; text-decoration: underline; }
.hs-wa-actions { display: flex; justify-content: flex-end; }
.hs-wa-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4a4a4a;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: .9rem;
    font-weight: 650;
}
.hs-wa-open.is-disabled {
    opacity: .45;
    pointer-events: none;
    cursor: not-allowed;
}
@media (max-width: 480px) {
    .hs-wa { bottom: 14px; }
    .hs-wa--right { right: 14px; }
    .hs-wa--left { left: 14px; }
    .hs-wa-fab { width: 56px; height: 56px; }
}

/* ---------- Home a blocchi (struttura; layout = campi stile + shop) ---------- */
.hs-home { display: flex; flex-direction: column; gap: 0; width: 100%; }
.hs-b { box-sizing: border-box; }
.hs-b--pieno { width: 100%; max-width: none; }
/*
 * Larghezza “contenuto” + catalogo/ricerca: max-width negozio + gutter 24px.
 * “Pieno” non usa queste regole (fondo edge-to-edge; inset via layout PHP / __inner).
 */
.hs-home > .hs-home-catalogo,
.hs-b--contenuto {
    width: 100%;
    max-width: var(--hs-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
	padding-top: 34px;
    box-sizing: border-box;
}
.hs-main:has(> .hs-home) > .hs-search {
    width: 100%;
    max-width: var(--hs-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}
.hs-home-claim {
    width: 100%;
    box-sizing: border-box;
}
/* Claim pieno: testo inset; claim contenuto: niente doppio gutter (lo dà .hs-b--contenuto) */
.hs-home-claim.hs-b--pieno .hs-home-claim__text {
    max-width: var(--hs-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}
.hs-home-claim.hs-b--contenuto .hs-home-claim__text {
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}
.hs-home-section-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.35rem, 2.4vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -.02em;
}
.hs-home-kicker {
    margin: 0 0 .5rem;
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hs-text-muted);
}
.hs-home-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    margin-right: .75rem;
    padding: .7rem 1.15rem;
    background: var(--hs-text);
    color: #fff;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 550;
}
.hs-home-btn:hover { filter: brightness(1.08); }
.hs-home-btn--ghost {
    background: transparent;
    color: inherit;
    box-shadow: inset 0 0 0 1px currentColor;
}
.hs-home-btn--ghost:hover { background: rgba(0,0,0,.04); }

/* Fasce full-width: 100% del main (non 100vw) */
.hs-home-hero,
.hs-home-editorial,
.hs-home-cta {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.hs-home-hero {
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hs-home-hero__bg,
.hs-home-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hs-home-hero__bg {
    background-image: var(--hs-home-img);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.hs-home-hero__overlay { background: #000; opacity: .45; }
.hs-home-hero__title {
    margin: 0 0 .75rem;
    font-size: clamp(2.1rem, 5.2vw, 3.5rem);
    font-weight: 500;
    line-height: 1.12;
}
.hs-home-hero__sub {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    opacity: .92;
}
/* Inner: inset solo su fascia pieno; su contenuto il gutter è sul blocco */
.hs-home-hero__inner,
.hs-home-editorial__inner,
.hs-home-cta__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}
.hs-b--pieno .hs-home-hero__inner,
.hs-b--pieno .hs-home-editorial__inner,
.hs-b--pieno .hs-home-cta__inner,
.hs-b--pieno .hs-home-html__inner,
.hs-b--pieno .hs-home-youtube__inner {
    max-width: var(--hs-max-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
    width: 100%;
}
.hs-b--contenuto .hs-home-hero__inner,
.hs-b--contenuto .hs-home-editorial__inner,
.hs-b--contenuto .hs-home-cta__inner,
.hs-b--contenuto .hs-home-html__inner,
.hs-b--contenuto .hs-home-youtube__inner {
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}
.hs-home-html__inner,
.hs-home-youtube__inner {
    width: 100%;
    box-sizing: border-box;
}
.hs-home-yt {
    position: relative;
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}
.hs-home-yt__placeholder {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #111;
}
.hs-home-yt__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
}
.hs-home-yt__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    border-radius: 12px;
    background: rgba(204, 0, 0, .92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.hs-home-yt__play::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
}
.hs-home-yt iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.hs-home-hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; }

/* Colonne: default 1; desktop le imposta il layout PHP del blocco */
.hs-home-cards__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.hs-home-card {
    min-width: 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--hs-border);
}
.hs-home-card--foto { border-top: 0; padding-top: 0; }
.hs-home-card__media {
    margin: 0 0 1rem;
    overflow: hidden;
    background: transparent;
}
.hs-home-card__media img {
    display: block;
    width: 100%;
    height: auto;
}
.hs-home-card__title {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
    font-weight: 550;
}
.hs-home-card__text {
    margin: 0 0 .75rem;
    color: var(--hs-text-muted);
    font-size: .95rem;
    line-height: 1.5;
}
.hs-home-card__link {
    font-size: .92rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hs-home-editorial__inner--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}
/* Senza foto: una colonna. Su pieno l’inner resta larghezza pagina (non max-width:none). */
.hs-home-editorial:not(.hs-home-editorial--con-foto) .hs-home-editorial__inner {
    display: block;
    width: 100%;
    grid-template-columns: none;
}
.hs-home-editorial:not(.hs-home-editorial--con-foto).hs-b--contenuto .hs-home-editorial__inner {
    max-width: none;
}
.hs-home-editorial:not(.hs-home-editorial--con-foto) .hs-home-editorial__copy {
    width: 100%;
    max-width: none;
}
.hs-home-editorial:not(.hs-home-editorial--con-foto) .hs-home-editorial__title,
.hs-home-editorial:not(.hs-home-editorial--con-foto) .hs-home-editorial__text {
    max-width: none;
}
.hs-home-editorial__media {
    margin: 0;
    padding: 0;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    background: none;
    border: 0;
    align-self: start;
}
.hs-home-editorial__media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}
.hs-home-editorial__copy { min-width: 0; }

/* Foto a filo: riempie la colonna (cover). Override: decommenta FOTO INTERA nel CSS del blocco. */
@media (min-width: 860px) {
    .hs-home-editorial--foto-filo.hs-home-editorial--con-foto .hs-home-editorial__inner--grid {
        align-items: stretch;
    }
    .hs-home-editorial--foto-filo .hs-home-editorial__media {
        display: flex;
        align-self: stretch;
        height: auto;
    }
    .hs-home-editorial--foto-filo .hs-home-editorial__media img {
        flex: 1 1 auto;
        width: 100%;
        height: auto;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/*
 * Mobile obbligatorio (vince sul CSS avanzato / layout campi).
 * Sotto 860px: editoriale 1 col; card 1 col (<560) o 2 (560–859).
 */
@media (max-width: 859px) {
    .hs-home-editorial__inner,
    .hs-home-editorial__inner--grid {
        display: block !important;
        grid-template-columns: none !important;
        gap: 1.25rem !important;
    }
    .hs-home-editorial__copy,
    .hs-home-editorial__media {
        width: 100% !important;
        max-width: none !important;
    }
    .hs-home-editorial--foto-filo .hs-home-editorial__media img {
        height: auto;
        object-fit: unset;
        min-height: 0;
    }
    .hs-home-cards__grid,
    .hs-home-quotes__grid {
        grid-template-columns: 1fr !important;
    }
    .hs-b--pieno .hs-home-hero__inner,
    .hs-b--pieno .hs-home-editorial__inner,
    .hs-b--pieno .hs-home-cta__inner,
    .hs-b--pieno .hs-home-html__inner,
    .hs-b--pieno.hs-home-claim .hs-home-claim__text {
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box;
    }
}
@media (min-width: 560px) and (max-width: 859px) {
    .hs-home-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .hs-home-quotes__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
.hs-home-editorial__title,
.hs-home-cta__title {
    margin: 0 0 .85rem;
    font-size: clamp(1.5rem, 3vw, 2.7rem);
    font-weight: 500;
}
.hs-home-editorial__text,
.hs-home-cta__text,
.hs-home-card__text,
.hs-home-faq__a,
.hs-home-hero__sub {
    margin: 0;
    line-height: 1.55;
}
.hs-home-editorial__text,
.hs-home-cta__text { opacity: .9; }
.hs-home-editorial__text p,
.hs-home-cta__text p,
.hs-home-card__text p,
.hs-home-faq__a p,
.hs-home-hero__sub p {
    margin: 0 0 .75em;
}
.hs-home-editorial__text p:last-child,
.hs-home-cta__text p:last-child,
.hs-home-card__text p:last-child,
.hs-home-faq__a p:last-child,
.hs-home-hero__sub p:last-child { margin-bottom: 0; }
.hs-home-editorial__text ul,
.hs-home-editorial__text ol,
.hs-home-cta__text ul,
.hs-home-cta__text ol,
.hs-home-card__text ul,
.hs-home-card__text ol,
.hs-home-faq__a ul,
.hs-home-faq__a ol,
.hs-home-hero__sub ul,
.hs-home-hero__sub ol {
    margin: 0 0 .75em;
    padding-left: 1.25em;
}
.hs-home-editorial__text a,
.hs-home-cta__text a,
.hs-home-card__text a,
.hs-home-faq__a a,
.hs-home-hero__sub a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hs-home-faq__list { border-top: 1px solid var(--hs-border); }
.hs-home-faq__item { border-bottom: 1px solid var(--hs-border); }
.hs-home-faq__q {
    cursor: pointer;
    list-style: none;
    padding: 1rem 0;
    font-weight: 550;
}
.hs-home-faq__q::-webkit-details-marker { display: none; }
.hs-home-faq__a {
    padding: 0 0 1.1rem;
    color: var(--hs-text-muted);
    line-height: 1.55;
}

/* Colonne citazioni: le imposta il layout PHP (min(3, N)). Fallback 1. */
.hs-home-quotes__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.hs-home-quote {
    margin: 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--hs-border);
}
.hs-home-quote__text {
    margin: 0 0 .75rem;
    font-size: 1.05rem;
    line-height: 1.45;
}
.hs-home-quote__author {
    font-size: .9rem;
    color: var(--hs-text-muted);
}
.hs-home-catalogo { margin: 1rem 0 2rem; }

/* Riga colonne (stile.colonna 50/33/25).
   justify-content / align-self arrivano inline da allineamento_h / allineamento_v. */
.hs-home-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--hs-max-width);
    margin: 0 auto 1.5rem;
    padding: 0 24px;
}
.hs-home-col {
    box-sizing: border-box;
    min-width: 0;
}
.hs-home-col--50 { flex: 0 1 calc(50% - .75rem); max-width: calc(50% - .75rem); }
.hs-home-col--33 { flex: 0 1 calc(33.333% - 1rem); max-width: calc(33.333% - 1rem); }
.hs-home-col--25 { flex: 0 1 calc(25% - 1.125rem); max-width: calc(25% - 1.125rem); }
.hs-home-col > .hs-b {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .hs-home-col--50,
    .hs-home-col--33,
    .hs-home-col--25 {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.hs-home-form,
.hs-home-map { margin: 0 0 1.5rem; }

/* Form contatto — stesso linguaggio campi della vetrina (hs-input / hs-label / hs-btn).
   Larghezza: quella del blocco/colonna (niente max-width forzato qui). */
.hs-home-form__inner {
    width: 100%;
}
.hs-home-form__intro {
    margin: 0 0 1.5rem;
    color: var(--hs-text-muted);
    line-height: 1.55;
}
.hs-home-form__intro p { margin: 0 0 .75em; }
.hs-home-form__intro p:last-child { margin-bottom: 0; }
.hs-home-form__form {
    position: relative;
    width: 100%;
}
.hs-home-form__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.25rem;
    margin-bottom: 1.25rem;
}
.hs-home-form__cols .hs-form-group {
    margin-bottom: 0;
    min-width: 0;
}
.hs-home-form .hs-form-group {
    margin-bottom: 1.25rem;
}
.hs-home-form .hs-label {
    margin-bottom: 6px;
}
.hs-home-form .hs-input,
.hs-home-form .hs-textarea {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    /* Solo colore bordo (riferimento utente) */
    border-color: #8c8f94;
}
.hs-home-form__message {
    min-height: 10rem;
    resize: vertical;
    line-height: 1.5;
}
.hs-home-form__consensi {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin: .25rem 0 1.25rem;
}
.hs-home-form__check {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--hs-text);
    cursor: pointer;
}
.hs-home-form__check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin: .15rem 0 0;
    accent-color: var(--hs-text);
}
.hs-home-form__check a {
    text-underline-offset: 2px;
}
.hs-home-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.hs-home-form__turnstile {
    margin: 0 0 1.25rem;
}
.hs-home-form__actions {
    margin: 0;
}
.hs-home-form__actions .hs-btn {
    width: auto;
    min-width: 11rem;
    max-width: 100%;
}
.hs-home-form__msg {
    margin: .85rem 0 0;
    font-size: 14px;
    line-height: 1.4;
}
.hs-home-form__msg.is-ok { color: var(--hs-success); }
.hs-home-form__msg.is-err { color: var(--hs-danger); }
@media (max-width: 640px) {
    .hs-home-form__cols {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    .hs-home-form__cols .hs-form-group {
        margin-bottom: 1.25rem;
    }
    .hs-home-form__actions .hs-btn {
        width: 100%;
    }
}
