/* ══════════════════════════════════════════════════════════════════════
   theme.css — Design system condiviso (Fase 0)
   Impianto "outdoor premium" ispirato a REI: neutri caldi, verde bosco,
   spazi ampi, tipografia editoriale, ombre morbide, focus accessibili.

   NOTA: le variabili dinamiche (--primary, --secondary, --font, --primary-rgb)
   sono iniettate inline da header.php partendo dalle impostazioni admin,
   così il colore del brand resta configurabile. Qui restano i valori statici
   e tutti i componenti. I nomi delle classi sono identici a prima: markup e
   stili per-pagina continuano a funzionare senza modifiche.
══════════════════════════════════════════════════════════════════════ */

:root {
    /* Iniettati inline da header.php (dal pannello admin). Default di sicurezza: */
    --primary:     #4a7c2f;
    --secondary:   #10b981;
    --primary-rgb: 74, 124, 47;
    --font:        'Inter', system-ui, sans-serif;

    /* Neutri caldi (impianto editoriale outdoor) */
    --bg:          #f6f4ef;   /* carta calda */
    --bg-2:        #efece4;
    --text:        #21251f;   /* inchiostro caldo */
    --text-muted:  #5f6b60;
    --border:      #e5e1d7;
    --border-soft: #eeeae1;
    --card-bg:     #ffffff;

    --radius:      10px;
    --radius-sm:   6px;
    --radius-lg:   16px;
    --radius-pill: 999px;

    /* Accenti funzionali */
    --price:       #a8471e;   /* rust rifinito per prezzo / CTA d'acquisto */
    --price-dark:  #8a3a17;
    --header-dark: #2b3327;   /* corteccia verde-scuro per barre di servizio */
    --ok:          #2f6b3a;
    --warn:        #b45309;
    --danger:      #b3261e;
    --star:        #e0a41a;

    /* Ombre a strati morbide */
    --shadow-xs: 0 1px 2px rgba(31,42,36,.06);
    --shadow-sm: 0 2px 8px rgba(31,42,36,.07);
    --shadow:    0 8px 24px rgba(31,42,36,.10);
    --shadow-lg: 0 18px 44px rgba(31,42,36,.14);

    /* Movimento */
    --ease: cubic-bezier(.22,.61,.36,1);
    --t-fast: .16s var(--ease);
    --t:      .24s var(--ease);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
img { max-width: 100%; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* Accessibilità: focus visibile coerente su tutto il sito */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 3px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

::selection { background: rgba(var(--primary-rgb), .18); }

/* Utility di rivelazione (progressive enhancement via app.js) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.nb-header {
    position: sticky; top: 0; z-index: 200;
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--t);
}
.nb-header.is-scrolled { box-shadow: 0 4px 18px rgba(31,42,36,.10); }

/* Barra di servizio */
.nb-topbar { background: var(--header-dark); color: rgba(255,255,255,.82); font-size: 12px; letter-spacing: .2px; }
.nb-topbar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; gap: 16px; }
.nb-topbar a { color: rgba(255,255,255,.82); }
.nb-topbar a:hover { color: #fff; }
.nb-topbar-left, .nb-topbar-right { display: flex; align-items: center; gap: 20px; }
.nb-topbar-left span { display: flex; align-items: center; gap: 6px; }

/* Barra principale */
.nb-main { border-bottom: 1px solid var(--border); }
.nb-main .container { display: flex; align-items: center; gap: 24px; height: 80px; }
.nb-logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.4px; color: var(--primary); flex-shrink: 0; }
.nb-logo img { height: 48px; object-fit: contain; }

/* Ricerca */
.nb-search-wrap { flex: 1; max-width: 720px; position: relative; }
.nb-search {
    display: flex; width: 100%;
    border: 1.5px solid var(--border); border-radius: var(--radius-pill);
    overflow: hidden; background: #fff; position: relative;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.nb-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .12); }
.nb-search select {
    border: none; background: transparent; padding: 0 14px 0 18px; font-size: 13px;
    color: var(--text-muted); outline: none; cursor: pointer;
    border-right: 1px solid var(--border); max-width: 190px; font-family: inherit;
}
.nb-search input { flex: 1; border: none; padding: 12px 16px; font-size: 14px; outline: none; min-width: 0; font-family: inherit; background: transparent; }
.nb-search button {
    border: none; background: var(--primary); color: #fff; padding: 0 24px; font-size: 16px;
    cursor: pointer; transition: filter var(--t-fast); margin: 3px; border-radius: var(--radius-pill);
}
.nb-search button:hover { filter: brightness(1.08); }

/* Azioni */
.nb-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nb-action {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text);
    font-size: 11px; font-weight: 600; position: relative; transition: background var(--t-fast), color var(--t-fast);
}
.nb-action i { font-size: 19px; color: var(--text-muted); transition: color var(--t-fast); }
.nb-action:hover { background: var(--bg); color: var(--primary); }
.nb-action:hover i { color: var(--primary); }
.cart-count {
    position: absolute; top: 2px; right: 4px; background: var(--price); color: #fff;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(168,71,30,.4);
}

/* Barra categorie */
.nb-catbar { background: #fff; border-bottom: 1px solid var(--border); }
.nb-catbar .container { display: flex; align-items: center; gap: 2px; height: 46px; }
.nb-catlink {
    padding: 0 15px; height: 46px; display: flex; align-items: center;
    font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap;
    border-bottom: 2.5px solid transparent; transition: color var(--t-fast), border-color var(--t-fast);
}
.nb-catlink:hover { color: var(--primary); border-bottom-color: var(--primary); }
.nb-catlink.hot { color: var(--price); }

/* Mega-menu */
.nb-mega-wrap { position: relative; }
.nb-mega-btn {
    display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px;
    background: var(--primary); color: #fff; font-weight: 700; font-size: 13.5px;
    cursor: pointer; border: none; font-family: inherit; border-radius: 8px 8px 0 0;
}
.nb-mega {
    opacity: 0; visibility: hidden; transform: translateY(6px);
    position: absolute; top: 46px; left: 0; width: min(940px, 92vw);
    background: #fff; border: 1px solid var(--border); border-top: none;
    box-shadow: var(--shadow-lg); padding: 24px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nb-mega-wrap:hover .nb-mega, .nb-mega:hover { opacity: 1; visibility: visible; transform: translateY(0); }
.nb-mega-col h4 { font-size: 13px; font-weight: 800; margin-bottom: 10px; padding-bottom: 7px; border-bottom: 2px solid var(--primary); }
.nb-mega-col h4 a { display: flex; justify-content: space-between; align-items: center; }
.nb-mega-col h4 small { color: var(--text-muted); font-weight: 600; }
.nb-mega-col a.sub { display: block; font-size: 13px; color: var(--text-muted); padding: 4px 0; transition: color var(--t-fast), transform var(--t-fast); }
.nb-mega-col a.sub:hover { color: var(--primary); transform: translateX(3px); }

/* ══════════════════════════════════════════════════
   COMPONENTI CONDIVISI
══════════════════════════════════════════════════ */
.nb-panel { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); }
.nb-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.nb-panel-head h2, .nb-panel-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.nb-panel-head a { font-size: 13px; font-weight: 600; color: var(--primary); }

.nb-section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; }
.nb-section-title h2 { font-size: 22px; font-weight: 800; letter-spacing: -.5px; display: flex; align-items: center; gap: 11px; }
.nb-section-title h2::before { content: ''; width: 4px; height: 22px; background: var(--primary); border-radius: 2px; }
.nb-section-title a { font-size: 13px; font-weight: 600; color: var(--primary); transition: transform var(--t-fast); }
.nb-section-title a:hover { transform: translateX(3px); }

/* Bottoni */
.btn-primary {
    display: inline-block; background: var(--primary); color: #fff; padding: 11px 24px;
    border-radius: var(--radius-sm); font-weight: 700; border: none; cursor: pointer;
    transition: filter var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
    text-align: center; font-family: inherit; font-size: 14px;
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 8px 20px rgba(var(--primary-rgb), .28); }
.btn-primary:active { transform: translateY(1px); }
.btn-outline {
    display: inline-block; border: 1.5px solid var(--primary); color: var(--primary);
    padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 700; background: none;
    cursor: pointer; font-family: inherit; transition: background var(--t-fast), color var(--t-fast);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-buy {
    background: var(--price); color: #fff; border: none; border-radius: var(--radius-sm);
    padding: 12px 22px; font-weight: 800; cursor: pointer; font-family: inherit; font-size: 14px;
    transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn-buy:hover { background: var(--price-dark); box-shadow: 0 8px 20px rgba(168,71,30,.28); }
.btn-buy:active { transform: translateY(1px); }

/* ══════════════════════════════════════════════════
   GRIGLIA E SCHEDA PRODOTTO
══════════════════════════════════════════════════ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

.product-card {
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; position: relative;
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.product-card:hover { border-color: var(--border); box-shadow: var(--shadow); transform: translateY(-4px); }
.product-card-img { aspect-ratio: 1; background: #fff; position: relative; display: block; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .5s var(--ease); }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-ph { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 40px; color: #cbd5cb; }
.product-card-badge {
    position: absolute; top: 10px; left: 10px; background: var(--price); color: #fff;
    font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: var(--radius-pill); letter-spacing: .2px;
}
.product-card-badge.new { background: var(--ok); }
.product-card-badge.out { background: #8a938a; }
.nb-wish {
    position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.96); border: 1px solid var(--border); color: #8a938a;
    cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px;
    transition: color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); box-shadow: var(--shadow-xs);
}
.nb-wish:hover { color: var(--price); border-color: var(--price); transform: scale(1.08); }

.product-card-body { padding: 13px 14px 15px; flex: 1; display: flex; flex-direction: column; }
.product-card-cat { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.product-card-name {
    font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 9px; min-height: 2.8em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color var(--t-fast);
}
.product-card:hover .product-card-name { color: var(--primary); }
.nb-stars { color: var(--star); font-size: 11px; margin-bottom: 7px; letter-spacing: .5px; }
.nb-stars span { color: var(--text-muted); }
.product-card-price { margin-top: auto; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.price-current { font-size: 20px; font-weight: 800; color: var(--price); letter-spacing: -.3px; }
.price-old { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }
.nb-stock { font-size: 11px; font-weight: 600; margin-top: 6px; }
.nb-stock.in { color: var(--ok); }
.nb-stock.low { color: var(--warn); }
.nb-stock.out { color: #8a938a; }
.btn-add-cart {
    width: 100%; margin-top: 11px; background: var(--price); color: #fff; border: none;
    border-radius: var(--radius-sm); padding: 10px; font-weight: 700; cursor: pointer;
    transition: background var(--t-fast), box-shadow var(--t-fast); font-size: 13px; font-family: inherit;
}
.btn-add-cart:hover { background: var(--price-dark); box-shadow: 0 6px 16px rgba(168,71,30,.25); }
.btn-add-cart:disabled { background: #ecebe4; color: #8a938a; cursor: not-allowed; box-shadow: none; }

/* Categorie a griglia */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.cat-card {
    display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 20px 12px;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    text-align: center; font-weight: 600; font-size: 13px;
    transition: border-color var(--t), color var(--t), box-shadow var(--t), transform var(--t);
}
.cat-card:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.cat-card img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; }
.cat-icon { font-size: 30px; }
.cat-card small { color: var(--text-muted); font-weight: 500; font-size: 11px; }

/* Sezioni */
.section { padding: 30px 0; }
.section-alt { background: var(--card-bg); }
.section-title { font-size: 22px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 18px; }

/* Hero */
.hero { position: relative; padding: 52px 34px; overflow: hidden; color: #fff; background: var(--header-dark); border-radius: var(--radius-lg); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .4; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(43,51,39,.72) 0%, rgba(43,51,39,.25) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-content h1 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -1px; margin-bottom: 12px; }
.hero-content p { font-size: 16px; opacity: .9; margin-bottom: 22px; line-height: 1.55; }
.btn-hero {
    display: inline-block; background: var(--price); color: #fff; padding: 13px 30px;
    border-radius: var(--radius-sm); font-weight: 700;
    transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn-hero:hover { background: var(--price-dark); box-shadow: 0 10px 26px rgba(0,0,0,.28); transform: translateY(-2px); }

/* Striscia servizi */
.features-strip { background: var(--card-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.feature-item { display: flex; align-items: center; gap: 13px; }
.feature-icon { font-size: 26px; color: var(--primary); }
.feature-item strong { display: block; font-weight: 700; font-size: 14px; }
.feature-item small { color: var(--text-muted); font-size: 12px; }

/* Newsletter */
.newsletter-section { padding: 44px 0; background: var(--header-dark); color: #fff; }
.newsletter-section h2 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 8px; }
.newsletter-section p { opacity: .82; margin-bottom: 22px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; max-width: 500px; margin: 0 auto; }
.newsletter-form input { flex: 1; border: none; border-radius: var(--radius-sm); padding: 13px 18px; font-size: 14px; outline: none; font-family: inherit; }
.newsletter-form input:focus { box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .35); }
.newsletter-form button { background: var(--price); color: #fff; border: none; border-radius: var(--radius-sm); padding: 13px 26px; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; transition: background var(--t-fast); }
.newsletter-form button:hover { background: var(--price-dark); }

/* Footer */
.footer { background: var(--header-dark); color: rgba(255,255,255,.68); padding: 46px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-brand { font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: 13px; line-height: 1.75; }
.footer-col h4 { color: #fff; font-size: 13.5px; font-weight: 700; margin-bottom: 12px; letter-spacing: .2px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.68); margin-bottom: 8px; transition: color var(--t-fast), transform var(--t-fast); }
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }

/* Breadcrumb */
.breadcrumb-bar { background: var(--card-bg); border-bottom: 1px solid var(--border); padding: 11px 0; }
.breadcrumb-inner { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb-inner a:hover { color: var(--primary); }

/* Flash / alert */
.alert-bar { padding: 12px 20px; text-align: center; font-size: 14px; font-weight: 600; }
.alert-success { background: #e4f2e6; color: #1d6b2c; }
.alert-error { background: #f7e4e2; color: #9d2020; }

/* ══════════════════════════════════════════════════
   MOBILE
══════════════════════════════════════════════════ */
.nb-burger { display: none; flex-direction: column; justify-content: space-between; width: 26px; height: 19px; background: none; border: none; cursor: pointer; padding: 0; }
.nb-burger span { display: block; height: 2.5px; border-radius: 2px; background: var(--text); transition: transform var(--t), opacity var(--t); }
.nb-burger.open span:nth-child(1) { transform: translateY(8.25px) rotate(45deg); }
.nb-burger.open span:nth-child(2) { opacity: 0; }
.nb-burger.open span:nth-child(3) { transform: translateY(-8.25px) rotate(-45deg); }

.mobile-menu { display: none; position: fixed; top: 0; left: 0; bottom: 0; width: 300px; background: #fff; z-index: 1000; overflow-y: auto; transform: translateX(-100%); transition: transform var(--t); box-shadow: 4px 0 30px rgba(0,0,0,.16); }
.mobile-menu.open { transform: translateX(0); }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(31,42,36,.5); z-index: 999; backdrop-filter: blur(2px); }
.mobile-overlay.open { display: block; }
.mobile-nav-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: var(--text); font-size: 14.5px; font-weight: 600; border-bottom: 1px solid var(--border); gap: 8px; }
.mobile-nav-link:hover { background: var(--bg); color: var(--primary); }
.mobile-nav-link small { color: var(--text-muted); font-weight: 500; }

@media (max-width: 1080px) {
    .nb-catbar .container { overflow-x: auto; scrollbar-width: none; }
    .nb-catbar .container::-webkit-scrollbar { display: none; }
}
@media (max-width: 900px) {
    .nb-topbar { display: none; }
    .nb-burger { display: flex; }
    .mobile-menu { display: block; }
    .nb-main .container { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 14px; }
    .nb-search-wrap { order: 3; flex-basis: 100%; max-width: none; }
    .nb-search select { display: none; }
    .nb-logo { font-size: 18px; }
    .nb-logo img { height: 40px; }
    .nb-mega-wrap { display: none; }
    .nb-action span { display: none; }
    .nb-action i { font-size: 21px; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .price-current { font-size: 18px; }
    .section { padding: 22px 0; }
    .hero { padding: 40px 24px; }
}
@media (max-width: 480px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════
   PACCHETTO A — Header/nav, hero fluttuante, badge marketplace, carrello fab
══════════════════════════════════════════════════════════════════════ */

/* ── Hero: prodotto fluttuante ── */
.hero--has-float { padding-right: 300px; }
.hero-float {
    position: absolute; top: 50%; right: 28px; transform: translateY(-50%);
    z-index: 2; width: 232px; background: #fff; color: var(--text);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 16px; display: flex; flex-direction: column; gap: 10px;
    animation: hero-float-bob 4.5s ease-in-out infinite;
    transition: transform var(--t), box-shadow var(--t);
}
.hero-float:hover { transform: translateY(-50%) scale(1.03); box-shadow: 0 26px 60px rgba(31,42,36,.28); }
.hero-float-badge {
    position: absolute; top: -10px; left: -10px; background: var(--price); color: #fff;
    font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-pill);
    box-shadow: 0 4px 10px rgba(168,71,30,.35);
}
.hero-float-media { display: block; aspect-ratio: 1; background: #fff; border-radius: var(--radius); overflow: hidden; }
.hero-float-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.hero-float-info { display: flex; flex-direction: column; gap: 3px; }
.hero-float-name {
    font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-float-price { font-size: 19px; font-weight: 800; color: var(--price); letter-spacing: -.3px; }
@keyframes hero-float-bob { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) { .hero-float { animation: none; } }

/* ── Barra categorie: dropdown sottocategorie ── */
.nb-catitem { position: relative; display: flex; align-items: center; }
.nb-caret { font-size: 9px; opacity: .55; transition: transform var(--t-fast); }
.nb-catitem:hover .nb-caret { transform: rotate(180deg); opacity: 1; }
.nb-subdrop {
    opacity: 0; visibility: hidden; transform: translateY(6px);
    position: absolute; top: 46px; left: 0; min-width: 230px;
    background: #fff; border: 1px solid var(--border); border-top: 2px solid var(--primary);
    border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg);
    padding: 8px; z-index: 210;
    transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nb-catitem:hover .nb-subdrop { opacity: 1; visibility: visible; transform: translateY(0); }
.nb-subdrop a { display: block; padding: 8px 12px; font-size: 13px; color: var(--text-muted); border-radius: var(--radius-sm); transition: background var(--t-fast), color var(--t-fast); }
.nb-subdrop a:hover { background: var(--bg); color: var(--primary); }
.nb-subdrop-all { font-weight: 700; color: var(--primary) !important; border-bottom: 1px solid var(--border-soft); border-radius: 0; margin-bottom: 4px; }

/* Sottovoci nel menu mobile */
.mobile-nav-sub { padding-left: 34px !important; font-size: 13px !important; font-weight: 500 !important; color: var(--text-muted) !important; background: #fbfaf7; }
.mobile-nav-sub::before { content: '↳'; margin-right: 8px; opacity: .5; }

/* ── Badge marketplace (fiducia) ── */
.mkt-trust { background: var(--bg-2); border-top: 1px solid var(--border); }
.mkt-trust-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; }
.mkt-trust-label { font-size: 13px; font-weight: 700; color: var(--text); }
.mkt-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 7px 15px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.mkt-badge::before { content: '\f54e'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; }
.mkt-badge--deca { color: #1b6ca8; }
.mkt-badge--amzn { color: #c1651a; }
.mkt-trust-note { font-size: 12.5px; color: var(--text-muted); }

/* ── Carrello fluttuante ── */
.fab-cart {
    position: fixed; bottom: 24px; right: 24px; z-index: 900;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; box-shadow: 0 10px 30px rgba(31,42,36,.28);
    opacity: 0; visibility: hidden; transform: translateY(20px) scale(.85);
    transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t-fast);
}
.fab-cart.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab-cart:hover { background: var(--price); transform: scale(1.08); }
.fab-cart .cart-count { top: -2px; right: -2px; background: var(--price); border: 2px solid #fff; }

@media (max-width: 991px) {
    .hero--has-float { padding-right: 34px; }
    .hero-float { display: none; }
}
@media (max-width: 768px) {
    .mkt-trust-inner { gap: 10px; }
    .mkt-trust-note { flex-basis: 100%; text-align: center; }
    .fab-cart { width: 52px; height: 52px; font-size: 20px; bottom: 18px; right: 18px; }
}

/* ══════════════════════════════════════════════════════════════════════
   FASE 2 — Ricerca intelligente (dropdown suggerimenti)
══════════════════════════════════════════════════════════════════════ */
.nb-suggest {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 300;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); overflow: hidden; padding: 6px;
    max-height: min(70vh, 520px); overflow-y: auto;
}
.nb-suggest[hidden] { display: none; }

.nb-suggest-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .4px;
    text-transform: uppercase; color: var(--text-muted);
}
.nb-suggest-fuzzy { color: var(--price); font-weight: 700; text-transform: none; letter-spacing: 0; }

.nb-sug-item {
    display: flex; align-items: center; gap: 12px; padding: 9px 12px;
    border-radius: var(--radius-sm); cursor: pointer; transition: background var(--t-fast);
}
.nb-sug-item:hover, .nb-sug-item.is-active { background: var(--bg); }
.nb-sug-thumb {
    width: 46px; height: 46px; flex-shrink: 0; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: #fff; overflow: hidden;
    display: flex; align-items: center; justify-content: center; color: #cbd5cb;
}
.nb-sug-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.nb-sug-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nb-sug-cat { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--text-muted); }
.nb-sug-name {
    font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.35;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nb-sug-name mark { background: rgba(var(--primary-rgb), .16); color: inherit; padding: 0 1px; border-radius: 2px; }
.nb-sug-price { font-size: 14px; font-weight: 800; color: var(--price); white-space: nowrap; }
.nb-sug-price s { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-left: 5px; }

.nb-sug-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px 10px; }
.nb-sug-chip {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
    padding: 5px 12px; border-radius: var(--radius-pill); background: var(--bg);
    border: 1px solid var(--border); color: var(--text); transition: border-color var(--t-fast), color var(--t-fast);
}
.nb-sug-chip:hover { border-color: var(--primary); color: var(--primary); }
.nb-sug-chip i { font-size: 10px; opacity: .6; }

.nb-sug-foot {
    display: block; text-align: center; padding: 10px; margin-top: 4px;
    border-top: 1px solid var(--border-soft); font-size: 13px; font-weight: 700; color: var(--primary);
}
.nb-sug-empty { padding: 22px 14px; text-align: center; color: var(--text-muted); font-size: 13.5px; }
.nb-sug-recent-clear { background: none; border: none; color: var(--text-muted); font-size: 11px; font-weight: 700; cursor: pointer; text-transform: none; letter-spacing: 0; }
.nb-sug-recent-clear:hover { color: var(--price); }

/* ══════════════════════════════════════════════════════════════════════
   FASE 3 — Sezione Promo (home gestibile dal backend)
══════════════════════════════════════════════════════════════════════ */
.promo-grid { display: grid; gap: 16px; }
.promo-grid--1 { grid-template-columns: 1fr; }
.promo-grid--2 { grid-template-columns: repeat(2, 1fr); }
.promo-grid--3 { grid-template-columns: repeat(3, 1fr); }

.promo-card {
    position: relative; display: flex; align-items: flex-end;
    min-height: 210px; border-radius: var(--radius-lg); overflow: hidden;
    color: #fff; box-shadow: var(--shadow-sm); isolation: isolate;
    background: var(--header-dark); transition: box-shadow var(--t), transform var(--t);
}
.promo-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.promo-card-bg {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: center;
    transition: transform .6s var(--ease);
}
.promo-card:hover .promo-card-bg { transform: scale(1.06); }
.promo-card::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(0deg, rgba(20,25,18,.82) 0%, rgba(20,25,18,.32) 55%, rgba(20,25,18,.05) 100%);
}
.promo-card--plain::after { background: linear-gradient(120deg, rgba(0,0,0,.28), rgba(0,0,0,0)); }
.promo-card-body { position: relative; padding: 22px 24px; display: flex; flex-direction: column; gap: 7px; }
.promo-card-title { font-size: 21px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15; }
.promo-card-sub { font-size: 13.5px; opacity: .9; line-height: 1.5; max-width: 42ch; }
.promo-card-btn {
    align-self: flex-start; margin-top: 6px; background: var(--price); color: #fff;
    font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: var(--radius-pill);
    transition: background var(--t-fast);
}
.promo-card:hover .promo-card-btn { background: var(--price-dark); }

@media (max-width: 860px) {
    .promo-grid--2, .promo-grid--3 { grid-template-columns: 1fr; }
    .promo-card { min-height: 180px; }
}

/* ══════════════════════════════════════════════════════════════════════
   FASE 5 — Assistenza / Guide (elenco)
══════════════════════════════════════════════════════════════════════ */
.gd-wrap { padding: 30px 0 60px; }
.gd-head { max-width: 720px; margin: 0 0 30px; }
.gd-head h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.8px; color: var(--text); margin-bottom: 8px; }
.gd-head p { font-size: 16px; color: var(--text-muted); line-height: 1.6; }

.gd-group { margin-bottom: 34px; }
.gd-group-title {
    font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--text);
    display: flex; align-items: center; gap: 11px; margin-bottom: 16px;
}
.gd-group-title::before { content: ''; width: 4px; height: 19px; background: var(--primary); border-radius: 2px; }

.gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.gd-card {
    display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
    transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.gd-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.gd-card-ic {
    font-size: 22px; line-height: 1; flex-shrink: 0; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); border-radius: var(--radius-sm);
}
.gd-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gd-card-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; }
.gd-card:hover .gd-card-title { color: var(--primary); }
.gd-card-excerpt {
    font-size: 13px; color: var(--text-muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gd-card-arrow { color: var(--primary); font-weight: 700; opacity: 0; transform: translateX(-4px); transition: opacity var(--t), transform var(--t); align-self: center; }
.gd-card:hover .gd-card-arrow { opacity: 1; transform: none; }

.gd-empty { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 56px 20px; text-align: center; }
.gd-empty h3 { font-size: 20px; margin: 8px 0 6px; }
.gd-empty p { color: var(--text-muted); margin-bottom: 18px; }

/* ══════════════════════════════════════════════════════════════════════
   FASE 7 — Checkout a step, fattura, barra spedizione gratis
══════════════════════════════════════════════════════════════════════ */
/* Wizard: senza JS tutti gli step restano visibili (fallback) */
.ck-js .ck-step { display: none; }
.ck-js .ck-step.is-active { display: block; }

.ck-stepper {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px;
}
.ck-stepper-item { display: flex; align-items: center; gap: 9px; background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.ck-stepper-num {
    width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); color: var(--text-muted);
    font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--border); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.ck-stepper-lbl { font-size: 13.5px; font-weight: 700; color: var(--text-muted); }
.ck-stepper-item.is-active .ck-stepper-num { background: var(--primary); color: #fff; border-color: var(--primary); }
.ck-stepper-item.is-active .ck-stepper-lbl { color: var(--text); }
.ck-stepper-item.is-done .ck-stepper-num { background: var(--ok); color: #fff; border-color: var(--ok); }
.ck-stepper-line { flex: 1; height: 2px; background: var(--border); }

.ck-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.ck-nav .btn-outline, .ck-nav .btn-buy { padding: 12px 22px; }

/* Richiesta fattura */
.ck-invoice { margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 16px; }
.ck-invoice-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.ck-invoice-toggle input { width: 16px; height: 16px; accent-color: var(--primary); }
.ck-invoice-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.ck-invoice-fields > div { display: flex; flex-direction: column; gap: 5px; }
.ck-invoice-fields label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.ck-invoice-fields input { width: 100%; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; font-family: inherit; box-sizing: border-box; }
.ck-invoice-fields input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); }
.ck-invoice-note { grid-column: 1/-1; font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* Barra "quanto manca alla spedizione gratis" (checkout + carrello) */
.ship-bar { background: rgba(var(--primary-rgb), .06); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.ship-bar-msg { font-size: 13px; color: var(--text); margin-bottom: 8px; }
.ship-bar-msg strong { color: var(--price); }
.ship-bar-msg.ok { color: var(--ok); }
.ship-bar-msg.ok strong { color: var(--ok); }
.ship-bar-track { height: 8px; background: var(--bg-2); border-radius: var(--radius-pill); overflow: hidden; }
.ship-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--ok)); border-radius: var(--radius-pill); transition: width .5s var(--ease); }

@media (max-width: 560px) {
    .ck-invoice-fields { grid-template-columns: 1fr; }
    .ck-stepper { padding: 12px; gap: 6px; }
    .ck-stepper-lbl { display: none; }
    .ck-stepper-line { min-width: 16px; }
}
