/* =========================
   FONT + RESET
========================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 14px;
    background: #fffef9;
    color: #111;
}


a { color: inherit; text-decoration: none; }

/* =========================
   CONTAINER
========================= */
.container {
    max-width: 100%;
    padding: 0 20px;
}

/* =========================
   HEADER (200px)
========================= */
.header {
    height: 210px;
    background: linear-gradient(180deg, #2b2e31 0%, #1e2124 100%);
    border-bottom: 1px solid #111;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: visible;
}
.header .container {
    overflow: visible;
}
/* =========================
   TOP ROW (LOGO / SEARCH / ACTIONS)
========================= */
.search-bar {
    height: 200px;
    display: flex;
    align-items: center;
    overflow: visible;
    position: relative;
    z-index: 2;
}

/* LOGO SINISTRA */
.logo {
    overflow: visible;
}

.logo img {
    height: 190px;
    width: auto;
    display: block;
}


/* =========================
   ACTIONS DESTRA
========================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 13px;
    white-space: nowrap;
}

.header-actions a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    transition: background .2s;
}

.header-actions a:hover {
    background: #c62828;
}

.cart-icon {
    font-size: 20px;
}

/* =========================
   NAVBAR CATEGORIE
========================= */
.mega-navbar {
    background: linear-gradient(180deg, #24272a 0%, #1a1d20 100%);
    border-top: 1px solid #111;
}

.mega-menu {
    height: 50px;
    display: flex;
    align-items: center;
    list-style: none;
}

/* VOCE */
.mega-item {
    position: relative;
}

/* SEPARATORE */
.mega-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: rgba(255,255,255,0.15);
}

.mega-item > a {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s;
}

.mega-item > a:hover {
    background: #c62828; /* ROSSO ACCESO */
}

/* =========================
   DROPDOWN
========================= */
.mega-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #1f2225;
    border: 1px solid #111;
    list-style: none;
    z-index: 100;
}

.mega-submenu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
}

.mega-submenu a:hover {
    background: #c62828;
}

.mega-item:hover .mega-submenu {
    display: block;
}

/* =========================
   MAIN
========================= */
main.container {
    padding-top: 30px;
}
/* MENU ALTO ORIZZONTALE */
.topbar nav ul {
    display: flex;
    flex-direction: row;   /* FORZA ORIZZONTALE */
    align-items: center;
    list-style: none;
    gap: 0;                /* gestiamo spazio via padding link */
}
.topbar nav li {
    display: inline-flex;
}
.topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 20px;
    height: 40px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.topbar nav ul {
    display: flex;
    gap: 24px;                   /* SPAZIO TRA LINK */
    list-style: none;
}

.topbar nav a {
    padding: 8px 12px;           /* NON ATTACCATI */
    font-size: 13px;
    color: #eee;
}

.topbar nav a:hover {
    background: #c62828;         /* rosso hover */
}
.search-bar button {
    background: #c62828;         /* ROSSO */
}

.search-bar button:hover {
    background: #b71c1c;
}
.search-bar form {
    border-radius: 10px;         /* PIÙ TONDA */
}

.search-bar input[type="text"] {
    border-radius: 10px 0 0 10px;
}

.search-bar button {
    border-radius: 0 10px 10px 0;
}
.header {
    background: linear-gradient(
        180deg,
        rgba(40,40,40,0.85),
        rgba(20,20,20,0.85)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 8px 30px rgba(0,0,0,0.6);
}
.search-bar form {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        0 4px 12px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.6);
}
.search-bar button {
    background: linear-gradient(180deg, #e53935, #b71c1c);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.3),
        0 3px 0 #8e1515,
        0 6px 14px rgba(0,0,0,0.45);
}

.search-bar button:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 1px 0 #8e1515,
        0 3px 8px rgba(0,0,0,0.4);
}
.mega-navbar {
    background: linear-gradient(
        180deg,
        rgba(35,35,35,0.9),
        rgba(20,20,20,0.9)
    );
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 -2px 12px rgba(0,0,0,0.6);
}
.topbar nav a:hover,
.mega-item > a:hover,
.header-actions a:hover {
    box-shadow:
        inset 0 0 0 999px rgba(198,40,40,0.85),
        inset 0 1px 0 rgba(255,255,255,0.25);
}
/* =========================
   SEARCH + ACTIONS DESTRA
========================= */
.search-bar {
    display: flex;
    align-items: center;
    height: 120px;
}

.logo img {
    width: 270px;
    display: block;
}

/* azioni a destra */
.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #eee;
}

/* =========================
   SEARCH ECUHELP STYLE
========================= */
.header-search {
    display: flex;
    align-items: center;
    position: relative;
}

/* LENTE TRASPARENTE */
.search-toggle {
    background: transparent;      /* NIENTE ROSSO */
    border: none;
    font-size: 20px;
    color: #eee;
    cursor: pointer;
    padding: 6px;
}

.search-toggle:hover {
    color: #ffeb3b;
}

/* campo nascosto */
.search-form {
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: width .25s ease, opacity .2s ease;
    margin-left: 6px;
}

.search-form input {
    width: 220px;
    height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    border: none;
    outline: none;
    font-size: 14px;
}

/* attivo */
.header-search.active .search-form {
    width: 220px;
    opacity: 1;
}

/* =========================
   AREA CLIENTI
========================= */
.action-link {
    padding: 6px 10px;
}

.action-link:hover {
    background: #c62828;
}

/* =========================
   CARRELLO
========================= */
.cart-icon {
    font-size: 26px;   /* più grande */
    line-height: 1;
}

.cart-icon:hover {
    color: #ffeb3b;
}
.search-icon {
    font-size: 26px;          /* come il carrello */
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #eee;
}

.search-icon:hover {
    color: #ffeb3b;
}
.header-search {
    display: flex;
    align-items: center;
    position: relative;
}
/* icona lente */
.search-icon {
    font-size: 26px;
    line-height: 1;
    color: #eee;
    cursor: pointer;
}

.search-icon:hover {
    color: #ffeb3b;
}

/* search nascosta */
.search-form {
    width: 0;
    opacity: 0;
    overflow: hidden;
    margin-left: 6px;
    transition: width .25s ease, opacity .2s ease;
}

.search-form input {
    width: 220px;
    height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    border: none;
    outline: none;
    font-size: 14px;
}

/* attiva */
.header-search.active .search-form {
    width: 220px;
    opacity: 1;
}
.icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #eee;
}

.icon-btn:hover {
    color: #ffeb3b;
}
.header-search {
    display: flex;
    align-items: center;
    position: relative;
}

/* FORM NASCOSTO */
.search-form {
    width: 0;
    overflow: hidden;
    opacity: 0;
    margin-right: 6px;              /* spazio dalla lente */
    transition: width .25s ease, opacity .2s ease;
}

/* INPUT */
.search-form input {
    width: 220px;
    height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    border: none;
    outline: none;
    font-size: 14px;
}


/* ATTIVO → SI APRE A SINISTRA */
.header-search.active .search-form {
    width: 280px;
    opacity: 1;
}

/* ORDINE: FORM A SINISTRA, ICONA A DESTRA */
.header-search {
    flex-direction: row-reverse;
}
/* =========================
   FOOTER
========================= */
.footer {
    background: linear-gradient(180deg, #24272a 0%, #1a1d20 100%);
    color: #ccc;
    border-top: 1px solid #111;
    padding: 40px 0 20px;
    font-size: 14px;
}

/* colonne */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

/* singola colonna */
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
}

/* linea sotto titolo */
.footer-col h4::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: #c62828;
    margin-top: 6px;
}

.footer-col p {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #bbb;
}

/* link footer */
.footer-col a {
    color: #bbb;
    transition: color .2s, padding-left .2s;
}

.footer-col a:hover {
    color: #ffeb3b;
    padding-left: 4px;
}

/* =========================
   FOOTER BOTTOM
========================= */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 15px;
    font-size: 13px;
    color: #888;
    text-align: center;
}
main.container {
    padding-bottom: 60px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-col h4::after {
        margin-left: auto;
        margin-right: auto;
    }
}
/* =========================
   HOME – STRUTTURA
========================= */
.home-hero,
.home-banner {
    border-radius: 6px;
    margin-bottom: 40px;
}

/* =========================
   CATEGORIE HOME (ICON GRID)
========================= */
.home-categories-bar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin: 30px 0 40px;
}

.home-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: #111;
}

.home-cat-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.home-cat-name {
    font-size: 13px;
    font-weight: 500;
}

/* =========================
   HERO
========================= */
/* HERO PRINCIPALE - VERDE */
.home-hero {
    background: #16a34a; /* verde */
    color: #fff;
}

/* testo hero */
.home-hero h1 {
    color: #fff;
}

.home-hero p {
    color: rgba(255,255,255,0.9);
}

/* bottone dentro hero */
.home-hero .btn-primary {
    background: #0f172a; /* scuro */
    color: #fff;
}

.home-hero .btn-primary:hover {
    background: #020617;
}
.home-hero {
    min-height: 200px;
    padding: 40px 30px;
    display: flex;
    align-items: center;
}

/* =========================
   TITOLI SEZIONE
========================= */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 40px 0 16px;
    color: #111;
}

/* =========================
   CARD PRODOTTO (EBAY STYLE)
========================= */
.product-card {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    color: #111;
}

.product-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    transform: translateY(-2px);
}

/* immagine */
.pc-image {
    position: relative;
}

.pc-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f2f2f2;
}

/* badge sconto */
.badge-product {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #c62828;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 4px;
}

/* info */
.pc-info {
    padding: 12px;
}

.pc-info h3 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
    margin-bottom: 6px;
}

/* prezzo */
.pc-price {
    margin-bottom: 6px;
}

.pc-price .old {
    font-size: 13px;
    color: #777;
    text-decoration: line-through;
    margin-right: 6px;
}

.pc-price .current {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

/* =========================
   GRID OFFERTE / CONSIGLIATI
========================= */
.home-offers-grid,
.home-recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* =========================
   BANNER GIALLO
========================= */
.yellow-banner {
    background: #ffeb3b;
    color: #111;
    padding: 40px;
    text-align: center;
}

.yellow-banner h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
}

.yellow-banner p {
    font-size: 15px;
    margin-bottom: 16px;
}

.yellow-banner .btn-primary {
    background: #111;
}

.yellow-banner .btn-primary:hover {
    background: #000;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .home-hero,
    .yellow-banner {
        padding: 24px;
    }

    .home-hero-content h1 {
        font-size: 24px;
    }
}

/* =========================================================
   PRODUCT CARD – EBAY STYLE (CMS)
========================================================= */

/* GRID */
.home-offers-grid,
.home-recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* CARD */
.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}

.product-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.15);
    transform: translateY(-2px);
}

/* LINK PRODOTTO */
.pc-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* IMAGE BOX */
.pc-image {
    position: relative;
    padding: 10px;
}

.pc-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f3f3f3;
    border-radius: 6px;
}

/* =========================================================
   RIBBON DIAGONALE
========================================================= */
.pc-ribbon {
    position: absolute;
    top: 12px;
    right: -32px;
    padding: 4px 34px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* COLORI DINAMICI */
.pc-ribbon.offer {
    background: #c62828; /* rosso */
}

.pc-ribbon.warning {
    background: #f57c00; /* arancione */
}

.pc-ribbon.info {
    background: #1976d2; /* blu */
}

/* =========================================================
   INFO PRODOTTO
========================================================= */
.pc-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pc-info h3 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    max-height: 38px;
    overflow: hidden;
    color: #111;
}

/* DESCRIZIONE BREVE */
.pc-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    max-height: 38px; /* 2 righe */
    overflow: hidden;
}

/* PREZZI */
.pc-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.pc-price .old {
    font-size: 13px;
    color: #777;
    text-decoration: line-through;
}

.pc-price .current {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

/* =========================================================
   CTA – AGGIUNGI AL CARRELLO
========================================================= */
.btn-add-cart {
    margin: 10px 12px 14px;
    background: #3665f3;
    color: #fff;
    text-align: center;
    padding: 9px 0;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s ease;
}

.btn-add-cart:hover {
    background: #1e49c5;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    .pc-price .current {
        font-size: 16px;
    }

    .btn-add-cart {
        font-size: 12px;
    }
}
.pc-tag {
    margin-left: 8px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    vertical-align: middle;
}

.pc-tag-ultimi-pezzi { background:#c1121f; color:#fff; }
.pc-tag-affare       { background:#f59e0b; color:#000; }
.pc-tag-pochi-pezzi  { background:#dc2626; color:#fff; }
.pc-tag-offerta      { background:#16a34a; color:#fff; }
/* =========================
   TAG PRODOTTO (ACCANTO AL NOME)
========================= */
.pc-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* stile base */
.pc-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

/* ===== COLORI FISSI ===== */

/* OFFERTA */
.pc-tag-offerta {
    background-color: #16a34a; /* verde */
}

/* ULTIMI PEZZI */
.pc-tag-ultimi-pezzi {
    background-color: #facc15; /* giallo */
    color: #000;
}

/* SOLO UNO */
.pc-tag-solo-uno {
    background-color: #dc2626; /* rosso */
}

/* NOVITÀ */
.pc-tag-novità,
.pc-tag-novita {
    background-color: #2563eb; /* blu */
}
/* spazio tra griglia offerte e banner */
.home-offers-grid {
    margin-bottom: 40px;
}
.yellow-banner .btn-primary {
    background: #111;             /* nero */
    color: #fff;
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 700;
}

.yellow-banner .btn-primary:hover {
    background: #000;
}
.home-hero .btn-primary {
    background: #dc2626;          /* rosso */
    color: #fff;
    border-radius: 8px;           /* angoli stondati */
    padding: 10px 22px;
    font-weight: 700;
}

.home-hero .btn-primary:hover {
    background: #b91c1c;
}
/* =========================
   CAROSELLO ULTIMI VISTI
========================= */
.recent-carousel {
    overflow: hidden;
    width: 100%;
    margin-bottom: 40px;
}

.recent-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s ease;
}

.recent-track .product-card {
    flex: 0 0 calc(20% - 16px); /* 5 card */
}

/* =====================================================
   MOBILE LAYOUT DEFINITIVO
===================================================== */
@media (max-width: 768px) {

    /* ================= BASE ================= */
    body {
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    /* ================= HEADER ================= */
    .header {
        height: auto;
    }

    /* struttura header */
    .search-bar {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    /* riga logo */
    .logo {
        display: flex;
        justify-content: center;
    }

    .logo img {
        max-width: 250px;
        height: auto;
    }

    /* riga azioni */
    .header-actions {
        display: flex;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }

    .header-actions a,
    .header-actions button {
        width: 40px;
        height: 40px;
        font-size: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    /* ================= SEARCH ================= */
    .header-search {
        display: flex;
        justify-content: center;
        position: relative;
        width: 100%;
    }

    .search-toggle {
        font-size: 22px;
        background: transparent;
        border: none;
    }

    .search-form {
        position: absolute;
        top: 44px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 260px;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .search-form input {
        width: 100%;
        height: 38px;
        border-radius: 6px;
        padding: 0 12px;
        font-size: 14px;
    }

    .header-search.active .search-form {
        opacity: 1;
        pointer-events: auto;
    }

    /* ================= NAVBAR ================= */
    .mega-navbar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .mega-menu {
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        width: max-content;
    }

    .mega-menu li {
        flex: 0 0 auto;
    }

    .mega-menu a {
        padding: 12px 14px;
        font-size: 14px;
    }

    /* ================= HERO ================= */
    .home-hero {
        min-height: 200px;
        padding: 24px 16px;
        text-align: center;
    }

    .home-hero h1 {
        font-size: 20px;
    }

    .home-hero p {
        font-size: 14px;
    }

    /* ================= CARD GRID ================= */
    .home-offers-grid,
    .home-recommended-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    /* ================= CAROSELLO ULTIMI VISTI ================= */
    .recent-carousel {
        overflow: hidden;
        width: 100%;
    }

    .recent-track {
        display: flex;
        gap: 14px;
    }

    .recent-track .product-card {
        flex: 0 0 calc(50% - 7px);
    }

    /* ================= CARD ================= */
    .product-card {
        font-size: 14px;
    }

    .pc-desc {
        font-size: 12px;
        line-height: 1.3;
    }

    .btn-primary {
        font-size: 13px;
        padding: 10px;
    }
}
@media (max-width: 768px) {

    /* alzo tutto il blocco azioni */
    .search-bar {
        margin-top: -24px;
    }

    /* alzo riga icone */
    .header-actions {
        margin-top: -30px;
    }

    /* alzo barra di ricerca */
    .header-search {
        margin-top: -18px;
    }

}
@media (max-width: 768px) {

    /* ================= HEADER PIÙ ALTO ================= */
    .header {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    /* aumenta respiro interno */
    .search-bar {
        gap: 14px;
    }

    /* ================= AREA CLIENTI PIÙ A SINISTRA ================= */
    .header-actions {
        justify-content: center;
        gap: 50px; /* più spazio tra area clienti e carrello */
    }

    /* sposto SOLO area clienti leggermente a sinistra */
    .header-actions a:first-child {
        margin-right: 12px;
    }

}
/* SHOP layout */
.shop-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.shop-controls{ display:flex; align-items:center; gap:12px; }

.shop-layout{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap:18px;
}



/* Meta + pagination */
.shop-meta{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin: 0 0 12px; }
.pagination{ display:flex; gap:8px; justify-content:center; margin:18px 0 0; }
.pg-btn{ padding:8px 12px; border-radius:10px; border:1px solid rgba(255,255,255,0.12); }
.pg-btn.active{ font-weight:700; }
.pg-btn.disabled{ pointer-events:none; opacity:0.45; }

/* View toggle buttons */
.vt-btn{ padding:8px 12px; border-radius:10px; border:1px solid rgba(255,255,255,0.12); background:transparent; cursor:pointer; }
.vt-btn.active{ font-weight:700; }

/* Responsive */
@media (max-width: 980px){
  .shop-layout{ grid-template-columns: 1fr; }
  .cats-tree{ max-height:240px; }
}
/* =========================================================
   CATEGORY / SHOP – LAYOUT CATALOGO
========================================================= */

.category-page,
.shop-page {
    margin-top: 10px;
}

/* titolo pagina */
.category-page .section-title,
.shop-page .section-title {
    margin-top: 10px;
    margin-bottom: 18px;
}

/* GRID CATALOGO (riusa le card home) */
.category-page .product-grid,
.shop-page .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

/* override SOLO per catalogo (niente CTA sotto) */
.category-page .product-card,
.shop-page .product-card {
    height: 100%;
}



/* =========================================================
   PAGINAZIONE
========================================================= */

.pagination .pg-btn {
    background: #fff;
    color: #111;
}

.pagination .pg-btn.active {
    background: #c62828;
    color: #fff;
}

/* =========================
   SHOP LAYOUT
========================= */
.shop-layout{
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.shop-results{
    min-width: 0;
}

/* =========================
   GRID PRODOTTI
========================= */
.product-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

/* =========================
   CARD BASE
========================= */
.product-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
}

/* IMMAGINE */
.pc-image img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
}

/* INFO */
.pc-info{
    padding:12px;
    flex:1;
}

.pc-title{
    font-size:14px;
    font-weight:600;
    display:flex;
    gap:6px;
    align-items:center;
}

/* TAG */
.pc-tag{
    font-size:11px;
    font-weight:700;
    padding:3px 6px;
    border-radius:4px;
    text-transform:uppercase;
    color:#fff;
}
.pc-tag-offerta{ background:#16a34a; }
.pc-tag-novita{ background:#2563eb; }
.pc-tag-solo-uno{ background:#dc2626; }
.pc-tag-ultimi-pezzi{ background:#facc15; color:#000; }

/* PREZZO + AZIONI */
.pc-actions{
    padding:12px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.pc-price .old{
    text-decoration:line-through;
    color:#777;
    font-size:13px;
}
.pc-price .current{
    font-size:18px;
    font-weight:700;
}

/* CTA */
.btn-add-cart{
    background:#2563eb;
    color:#fff;
    padding:8px;
    border-radius:6px;
    text-align:center;
    font-weight:600;
}
.btn-buy-now{
    background:#16a34a;
    color:#fff;
    padding:8px;
    border-radius:6px;
    text-align:center;
    font-weight:600;
}

/* ===============================
   TAG PILL – COLORI DEFINITIVI
================================ */

.tag-pill {
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    color: #fff;
    background: #9e9e9e;
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
    transition: all .2s ease;
}

.tag-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,.28);
}

/* OFFERTA → VERDE */
.tag-pill[data-tag*="OFFERTA"],
.tag-pill[data-tag*="offerta"] {
    background: linear-gradient(135deg,#1b9a48,#3ddc84);
}

/* NOVITÀ → BLU */
.tag-pill[data-tag*="NOVITA"],
.tag-pill[data-tag*="novita"] {
    background: linear-gradient(135deg,#1e63ff,#4f8cff);
}

/* SOLO UNO → ROSSO */
.tag-pill[data-tag*="SOLO"],
.tag-pill[data-tag*="solo"] {
    background: linear-gradient(135deg,#c62828,#ff5252);
}

/* ULTIMI PEZZI → GIALLO */
.tag-pill[data-tag*="ULTIMI"],
.tag-pill[data-tag*="ultimi"] {
    background: linear-gradient(135deg,#f4b400,#ffd54f);
    color: #000;
}

/* ETICHETTA → VIOLA */
.tag-pill[data-tag*="ETICHET"],
.tag-pill[data-tag*="etiche"] {
    background: linear-gradient(135deg,#7b1fa2,#ba68c8);
}


/* THUMB */
.price-range input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #d32f2f;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: none;        /* 🔥 NIENTE GLOW */
}

/* DISTANZA VERTICALE */
.price-range .min-range {
    top: 0;
}

.price-range .max-range {
    top: 34px;               /* DISTANZA NETTA */
}

/* LABEL SOTTO */
.price-label {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    text-align: center;
}

/* ETICHETTA */
.price-label {
    margin-top: 6px;
    font-size: 13px;
    color: #555;
    text-align: center;
}
/* =====================================================
   PRODUCT LIST VIEW (COLONNA)
   ===================================================== */

.shop-layout.is-list .product-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CARD */
.shop-layout.is-list .product-card {
    display: flex;
    width: 100%;
    height: 200px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* LINK AREA (info + immagine) */
.shop-layout.is-list .product-card .pc-link {
    display: flex;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

/* INFO SINISTRA */
.shop-layout.is-list .product-card .pc-info {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* TITOLO */
.shop-layout.is-list .pc-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.2;
}

/* TAG COLORI */
.pc-tag {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    color: #fff;
    vertical-align: middle;
}

.pc-tag-novita {
    background: #2979ff;
}

.pc-tag-offerta {
    background: #2ecc71;
}

.pc-tag-solo-uno {
    background: #e53935;
}

.pc-tag-ultimi-pezzi {
    background: #fbc02d;
    color: #111;
}
-weight: 700;
}

/* DESCRIZIONE */
.shop-layout.is-list .pc-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
}

/* IMMAGINE DESTRA */
.shop-layout.is-list .product-card .pc-image {
    position: relative;
    width: 200px;
    min-width: 200px;
    height: 100%;
    overflow: hidden;
}

.shop-layout.is-list .pc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RIBBON DIAGONALE */
.shop-layout.is-list .pc-ribbon {
    position: absolute;
    top: 12px;
    right: -42px;
    width: 140px;
    text-align: center;
    transform: rotate(45deg);
    background: #e53935;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 0;
    z-index: 5;
}

/* AZIONI DESTRA */
.shop-layout.is-list .pc-actions {
    width: 240px;
    padding: 16px;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

/* PREZZI */
.shop-layout.is-list .pc-price {
    margin-bottom: 12px;
    line-height: 1.2;
}

.shop-layout.is-list .pc-price .current {
    font-size: 22px;
    font-weight: 800;
    color: #111;
}

.shop-layout.is-list .pc-price .old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}

/* BOTTONI */
.shop-layout.is-list .pc-actions a {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 6px;
}
/* BOTTONI */
.shop-layout.is-list .btn-add-cart,
.shop-layout.is-list .btn-buy-now {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 8px;
}

.shop-layout.is-list .btn-add-cart {
    background: #2979ff;
    color: #fff;
}

.shop-layout.is-list .btn-buy-now {
    background: #2ecc71;
    color: #fff;
}
/* =====================================================
   FIX DEFINITIVO LIST VIEW – PREZZI + BOTTONI
   ===================================================== */

/* CARD */
.shop-layout.is-list .product-card {
    display: flex;
    width: 100%;
    height: 200px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

/* LINK (INFO + IMMAGINE) */
.shop-layout.is-list .product-card .pc-link {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

/* INFO */
.shop-layout.is-list .pc-info {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* IMMAGINE */
.shop-layout.is-list .pc-image {
    width: 200px;
    min-width: 200px;
    height: 100%;
    position: relative;
}

.shop-layout.is-list .pc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* AZIONI (PREZZI + BOTTONI) */
.shop-layout.is-list .pc-actions {
    width: 260px;
    min-width: 260px;
    padding: 16px;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

/* PREZZI */
.shop-layout.is-list .pc-price {
    margin-bottom: 12px;
}

.shop-layout.is-list .pc-price .current {
    font-size: 22px;
    font-weight: 800;
    color: #111;
}

.shop-layout.is-list .pc-price .old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}

/* BOTTONI */
.shop-layout.is-list .btn-add-cart,
.shop-layout.is-list .btn-buy-now {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 8px;
}

.shop-layout.is-list .btn-add-cart {
    background: #2979ff;
    color: #fff;
}

.shop-layout.is-list .btn-buy-now {
    background: #2ecc71;
    color: #fff;
}
/* =====================================================
   PRODUCTS – LIST VIEW OVERRIDE (FORZA PREZZI + BOTTONI)
   ===================================================== */

.shop-layout.is-list .product-grid .product-card{
    display:flex !important;
    flex-direction:row !important;
    align-items:stretch !important;
    height:200px !important;
    width:100% !important;
    overflow:hidden !important;
}

/* link (info + immagine) deve stare a sinistra e NON in colonna */
.shop-layout.is-list .product-grid .product-card > .pc-link{
    display:flex !important;
    flex:1 1 auto !important;
    min-width:0 !important;
}

/* immagine a SINISTRA (come nella tua screenshot attuale) */
.shop-layout.is-list .product-grid .product-card .pc-image{
    width:200px !important;
    min-width:200px !important;
    height:100% !important;
    padding:0 !important;           /* annulla padding griglia */
    position:relative !important;
}

.shop-layout.is-list .product-grid .product-card .pc-image img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    aspect-ratio:auto !important;   /* annulla 1/1 della griglia */
    border-radius:0 !important;
}

/* info */
.shop-layout.is-list .product-grid .product-card .pc-info{
    flex:1 1 auto !important;
    padding:16px 20px !important;
    justify-content:center !important;
}

/* azioni a DESTRA: prezzi + bottoni */
.shop-layout.is-list .product-grid .product-card > .pc-actions{
    width:260px !important;
    min-width:260px !important;
    height:100% !important;
    padding:16px !important;
    border-left:1px solid #eee !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    background:#fff !important;
}

/* prezzi (in griglia sono flex dentro pc-price, ok) */
.shop-layout.is-list .product-grid .product-card .pc-actions .pc-price{
    display:block !important;
    margin:0 0 12px 0 !important;
}

/* bottoni: annulla margin da griglia (btn-add-cart ha margin esterni) */
.shop-layout.is-list .product-grid .product-card .pc-actions .btn-add-cart,
.shop-layout.is-list .product-grid .product-card .pc-actions .btn-buy-now{
    margin:8px 0 0 0 !important;
    width:100% !important;
    display:block !important;
}



/* =========================
   PRODUCT PAGE – LAYOUT
========================= */

.product-page {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.product-main {
    display: grid;
    grid-template-columns: 120px 1fr 360px;
    gap: 24px;
}
/* =========================
   GALLERIA IMMAGINI
========================= */

.pm-left {
    display: contents;
}



/* rail thumbnails */
.thumbs-rail {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumb-item {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}

.thumb-item:hover {
    border-color: #e53935;
}


/* =========================
   INFO PRODOTTO
========================= */

.pm-center {
    grid-column: 3 / 3;
    grid-row: 1;
}

.prod-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.prod-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #111;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
    margin: 6px 6px 0 0;
}

/* prezzo vetrina */
.prod-price {
    margin: 14px 0;
}

.current-price {
    font-size: 32px;
    font-weight: 800;
    color: #c62828;
}

.old-price {
    font-size: 18px;
    color: #777;
    text-decoration: line-through;
    margin-right: 10px;
}
/* =========================
   VARIANTI
========================= */

.var-block {
    margin: 18px 0;
}

.var-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.var-select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* bullet info */
.prod-bullets {
    list-style: none;
    padding: 0;
    margin: 18px 0;
}

.prod-bullets li {
    margin-bottom: 6px;
    font-size: 14px;
}
/* =========================
   BUY BOX
========================= */

.pm-right {
    grid-column: 4;
}

.buy-box {
    position: sticky;
    top: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
}

.buy-price-row {
    margin-bottom: 10px;
}

.main-price {
    font-size: 28px;
    font-weight: 800;
    color: #c62828;
}

.buy-stock {
    font-size: 14px;
    margin-bottom: 12px;
}

/* quantità */
.buy-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.buy-qty input {
    width: 80px;
    padding: 6px;
}
/* =========================
   CTA
========================= */

.btn-buy-primary {
    width: 100%;
    background: #facc15;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    padding: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.btn-buy-secondary {
    width: 100%;
    background: #3665f3;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.buy-extra {
    margin-top: 12px;
    font-size: 13px;
    color: #555;
}
/* =========================
   PRODUCT BOTTOM
========================= */

.product-bottom {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-top: 40px;
}

.desc-section {
    margin-bottom: 30px;
}

.desc-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    border-bottom: 1px solid #eee;
    padding: 8px 6px;
    font-size: 14px;
}

.side-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}
/* CONTRASTO TESTI PRODUCT PAGE */
.product-page,
.product-page p,
.product-page li,
.product-page td,
.product-page th {
    color: #1a1a1a;
}

.product-page .prod-bullets li {
    color: #222;
}

.product-page .product-desc,
.product-page .desc-text {
    color: #222;
}

.product-page .side-box p {
    color: #333;
}

/* IMMAGINE PRINCIPALE 400x400 */
.main-image-box {
    width: 400px;
    height: 400px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* necessario per ribbon */
}

.main-image-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* NON taglia */
}


}
.thumbs-rail {
    max-height: calc(5 * 90px); /* 5 miniature */
    overflow-y: auto;
    padding-right: 6px;
}

.thumbs-rail::-webkit-scrollbar {
    width: 6px;
}

.thumbs-rail::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
/* SPECIFICHE COMPATTE */
.specs-table th,
.specs-table td {
    padding: 6px 8px;
    font-size: 13px;
}

.desc-section {
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.desc-section h2 {
    font-size: 18px;
    margin-bottom: 8px;
}
 /* TAG PRODOTTO – COLORI AUTOMATICI */
.prod-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin-top: 6px;
}

/* OFFERTA */
.prod-tag:contains("OFFERTA") {
    background: #16a34a;
}

/* NOVITA */
.prod-tag:contains("NOVITA"),
.prod-tag:contains("NOVITÀ") {
    background: #2563eb;
}

/* SOLO UNO */
.prod-tag:contains("SOLO UNO") {
    background: #dc2626;
}

/* ULTIMI PEZZI */
.prod-tag:contains("ULTIMI PEZZI") {
    background: #facc15;
    color: #000;
}



/* =========================================================
   PRODUCT PAGE – FIX BASE (TESTO, DISTANZE, COLORI)
========================================================= */

/* --- TESTI: CONTRASTO REALE --- */
.product-page,
.product-page p,
.product-page li,
.product-page td,
.product-page th,
.product-page label {
    color: #1a1a1a;
}

.prod-title {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin-bottom: 6px;
}

.prod-bullets li {
    color: #222;
}

.product-desc,
.desc-text {
    color: #222;
}

/* --- LAYOUT E DISTANZE --- */
.product-main {
    display: grid;
    grid-template-columns: 90px 400px 1fr 360px;
    column-gap: 40px;
    background: #fff;
    padding: 24px;
    border-radius: 10px;
}

/* distanza rail -> immagine */
.thumbs-rail {
    margin-right: 6px;
}

/* --- IMMAGINE PRINCIPALE 400x400 --- */
.main-image-box {
    width: 400px;
    height: 400px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.main-image-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* =========================
   GALLERIA MINIATURE – SCROLL INVISIBILE
========================= */
.thumbs-rail {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: calc(4 * 90px + 3 * 6px);
    overflow-y: auto;
    overflow-x: hidden;

    /* Firefox */
    scrollbar-width: none;

    /* IE / Edge */
    -ms-overflow-style: none;
}

/* Chrome / Safari */
.thumbs-rail::-webkit-scrollbar {
    width: 0;
    height: 0;
}


/* =========================================================
   TAG PRODOTTO (COLORATI)
========================================================= */
.prod-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 6px 0;
    color: #fff;
}

.prod-tag-offerta { background:#16a34a; }
.prod-tag-novita,
.prod-tag-novità { background:#2563eb; }
.prod-tag-solo-uno { background:#dc2626; }
.prod-tag-ultimi-pezzi { background:#facc15; color:#000; }

/* =========================================================
   PREZZI
========================================================= */
.current-price {
    font-size: 32px;
    font-weight: 900;
    color: #c62828;
}

.old-price {
    font-size: 16px;
    color: #777;
    text-decoration: line-through;
    margin-right: 8px;
}

/* =========================================================
   BUY BOX
========================================================= */
.buy-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 18px;
}

.btn-buy-primary {
    background: #ffd814;
    color: #111;
    font-weight: 800;
    border-radius: 6px;
}

.btn-buy-secondary {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
}


/* =========================
   CONTRASTO TESTI – FIX FORZATO
========================= */
.pm-center,
.pm-center * ,
.product-bottom,
.product-bottom * {
    color: #1a1a1a !important;
}

.prod-bullets li {
    color: #222 !important;
}

.specs-table th,
.specs-table td {
    color: #222 !important;
}

.side-box {
    color: #222 !important;
}

.side-box p {
    color: #333 !important;
}

/* RIBBON DIAGONALE – PULITA E DISCRETA */
.main-image-box {
    position: relative;
    width: 400px;
    height: 400px;
    overflow: hidden; /* QUESTO È FONDAMENTALE */
    border-radius: 8px;
    background: #fff;
}


/* RIBBON DIAGONALE – PULITA E DISCRETA */
.ribbon-3d {
    position: absolute;
    top: 10px;
    left: -28px;
    width: 110px;
    text-align: center;
    background: #c62828;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 0;
    transform: rotate(-45deg);
    z-index: 5;
    display: none;
    border-radius: 2px;
}

/* PREZZO SEMPRE ROSSO */
.current-price,
.main-price,
.buy-box .current-price,
.prod-price .current-price {
    color: #c62828 !important;
}
/* TESTI DI SERVIZIO (DISPONIBILITÀ / QUANTITÀ) */
.buy-stock,
.buy-stock span,
.buy-qty,
.buy-qty span,
.prod-bullets li,
.prod-bullets strong {
    color: #1a1a1a !important;
    font-weight: 600;
}
/* GALLERIA – NIENTE SCROLL ORIZZONTALE */
.thumbs-rail {
    overflow-x: hidden !important;
}

.thumb-item {
    max-width: 90px;
    box-sizing: border-box;
}
/* =========================================================
   ETICHETTA DIAGONALE PRODOTTO (COME PRODUCT CARD)
========================================================= */

.main-image-box {
    position: relative;
    width: 400px;
    height: 400px;
    overflow: hidden;     /* FONDAMENTALE */
    border-radius: 8px;
    background: #fff;
}

/* ETICHETTA */
.product-ribbon {
    position: absolute;
    top: 12px;
    right: -46px;                /* resta dentro grazie a overflow */
    width: 140px;
    padding: 6px 0;
    background: #c62828;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
    z-index: 10;
    display: none;               /* appare solo se sconto */
    pointer-events: none;
}
/* =========================================================
   PRODUCT BOTTOM: descrizione full width (FUNZIONANTE)
========================================================= */

/* la griglia resta 2 colonne */
.product-bottom{
  display:grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

/* rende "grid items" le section dentro pb-left */
.product-bottom .pb-left{
  display: contents; /* qui serve, altrimenti la descrizione non può allargarsi */
}

/* colonna destra resta a destra nella prima riga */
.product-bottom .pb-right{
  grid-column: 2;
  grid-row: 1;
}

/* 1° blocco in pb-left = Specifiche (colonna sinistra, riga 1) */
.product-bottom .pb-left .desc-section:first-child{
  grid-column: 1;
  grid-row: 1;
}

/* 2° blocco in pb-left = Descrizione (full width, riga 2) */
.product-bottom .pb-left .desc-section:nth-child(2){
  grid-column: 1 / -1;
  grid-row: 2;
}

/* =========================
   SIDEBAR FILTRI
========================= */

.sidebar-filters{
    display:flex;
    flex-direction:column;
    gap:22px;
    font-size:14px;
}

.sb-block{
    border:1px solid #ddd;
    border-radius:8px;
    padding:14px;
    background:#fff;
}

.sb-title{
    font-weight:800;
    margin-bottom:10px;
    font-size:15px;
}

/* PREZZO */
.sb-price-inputs{
    display:flex;
    gap:10px;
    margin-bottom:10px;
}

.sb-price-inputs input{
    width:100%;
    padding:6px;
    border:1px solid #ccc;
    border-radius:4px;
}

.sb-price-range{
    width:100%;
}

.sb-price-label{
    margin-top:6px;
    font-weight:600;
}

/* TAG */
.sb-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.sb-tag input{
    display:none;
}

.sb-tag span{
    display:inline-block;
    padding:6px 10px;
    background:#f3f4f6;
    border-radius:14px;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}

.sb-tag input:checked + span{
    background:#c62828;
    color:#fff;
}

/* CATEGORIE */
.sb-cats{
    list-style:none;
    padding:0;
    margin:0;
}

.sb-cat{
    position:relative;
}

.sb-cat > a{
    display:block;
    padding:6px 0;
    font-weight:700;
    color:#111;
    text-decoration:none;
}

.sb-subwrap{
    display:none;
    padding-left:10px;
    margin-bottom:8px;
}

.sb-cat:hover .sb-subwrap{
    display:block;
}

.sb-subtitle{
    font-size:12px;
    font-weight:700;
    color:#555;
    margin:6px 0;
}

.sb-subcats{
    list-style:none;
    padding:0;
    margin:0;
}

.sb-subcats a{
    display:block;
    padding:4px 0;
    font-size:13px;
    color:#333;
    text-decoration:none;
}
/* =========================
   SIDEBAR – CONTRASTO TESTI
========================= */

.shop-sidebar {
    background: #fff;
    color: #111;
}

/* titoli blocchi */
.shop-sidebar .filter-title,
.shop-sidebar h3 {
    color: #111;
    font-weight: 700;
}

/* testi normali */
.shop-sidebar,
.shop-sidebar label,
.shop-sidebar span,
.shop-sidebar input,
.shop-sidebar button {
    color: #1a1a1a;
    opacity: 1;
}

/* categorie */
.shop-sidebar .cat-parent,
.shop-sidebar .cat-child {
    color: #111;
    font-weight: 500;
}

/* disabilita grigi/opacity ereditati */
.shop-sidebar * {
    opacity: 1 !important;
}
/* TAG GENERICI */
.tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    border: 1px solid transparent;
}

/* COLORI TAG */
.tag-solo-uno {
    background: #e53935; /* ROSSO */
    color: #fff;
}

.tag-ultimi-pezzi {
    background: #fbc02d; /* GIALLO */
    color: #000;
}

.tag-offerta {
    background: #43a047; /* VERDE */
    color: #fff;
}

.tag-novita {
    background: #1e88e5; /* BLU */
    color: #fff;
}

/* Hover */
.tag:hover {
    opacity: .85;
    transform: scale(1.03);
}

/* Tag attivo */
.tag.active {
    box-shadow: 0 0 0 2px #fff inset;
}
/* ===============================
   SIDEBAR CATEGORIE - BUTTON STYLE
================================ */

.sb-cats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-cat {
    margin-bottom: 6px;
}

/* LINK CATEGORIA PRINCIPALE */
.sb-cat > a {
    position: relative;
    display: block;
    width: 100%;
    padding: 12px 14px;
    background: #fbc02d;        /* GIALLO */
    color: #111;                /* TESTO SCURO */
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
}

/* SLIDE ROSSO */
.sb-cat > a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #e53935;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.sb-cat > a:hover {
    color: #fff;
}


/* HOVER SLIDE */
.sb-cat > a:hover::before {
    transform: translateX(0);
}

/* ===============================
   SOTTOCATEGORIE
================================ */

.sb-subwrap {
    margin-top: 6px;
    padding-left: 12px;
}

.sb-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #e0e0e0;          /* più visibile */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.sb-subtitle {
    color: #e53935;
}

.sb-subcats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-subcats li {
    margin-bottom: 4px;
}
/* LINK SOTTOCATEGORIA */
.sb-subcats a {
    display: block;
    padding: 8px 12px;
    background: #1e88e5;   /* AZZURRO */
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all .2s ease;
}

.sb-subcats a:hover {
    background: #e53935;  /* ROSSO IN HOVER */
    color: #fff;
}

.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.category-sidebar {
    width: 100%;
}

.category-content {
    width: 100%;
}

/* Mobile */
@media (max-width: 991px) {
    .category-layout {
        grid-template-columns: 1fr;
    }
}
.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}
.category-layout {
    align-items: start !important;
}
.category-sidebar {
    align-self: start !important;
    height: auto !important;
    overflow: visible !important;
}
/* ======================================
   SIDEBAR – CONTRASTO TESTI (FIX)
====================================== */

/* Titoli blocchi: Categorie / Prezzo / Tag */
.sidebar-filters .sb-title {
    color: #111 !important;
    font-weight: 800;
    opacity: 1 !important;
}

/* Label tipo "Prezzo Min Max" */
.sidebar-filters label,
.sidebar-filters .sb-label {
    color: #222 !important;
    font-weight: 600;
    opacity: 1 !important;
}

/* Testo range prezzo: "€ 0 – € 1000" */
.sidebar-filters .sb-price-label {
    color: #111 !important;
    font-weight: 700;
    opacity: 1 !important;
}

/* Input numerici prezzo */
.sidebar-filters input[type="number"] {
    color: #111 !important;
}

/* Placeholder input (se presente) */
.sidebar-filters input::placeholder {
    color: #555 !important;
    opacity: 1;
}
/* =========================================================
   PRODUCT BOTTOM – FULL WIDTH DESCRIPTION (DEFINITIVO)
========================================================= */

.product-bottom{
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* colonna sinistra (specifiche se esistono) */
.product-bottom .pb-left{
    grid-column: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* colonna destra */
.product-bottom .pb-right{
    grid-column: 2;
    grid-row: 1;
}

/* descrizione: SEMPRE full width sotto */
.product-bottom .description-section{
    grid-column: 1 / -1;
}

/* =====================================================
   AREA CLIENTI – LAYOUT REALE (COME SCREENSHOT)
===================================================== */

.account-layout {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
}

/* ================= SIDEBAR ================= */

.account-sidebar {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
}

.account-user {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.account-user strong {
    display: block;
    font-size: 14px;
    color: #2e7d32; /* verde come screenshot */
}

.account-user span {
    font-size: 13px;
    color: #555;
}

.account-menu {
    display: flex;
    flex-direction: column;
}

.account-menu a {
    padding: 10px 12px;
    font-size: 13px;
    color: #111;
    border-radius: 6px;
    text-decoration: none;
    transition: background .2s;
}

.account-menu a:hover {
    background: #f5f5f5;
}

.account-menu a.active {
    background: #e0e0e0;
    font-weight: 700;
}

/* logout */
.account-logout {
    margin-top: 20px;
    display: block;
    text-align: center;
    padding: 10px;
    background: #6c757d;
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.account-logout:hover {
    background: #5a6268;
}

/* ================= CONTENUTO ================= */

.account-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
}

.account-content h1 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 400;
    color: #111;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
}
/* =====================================================
   LOGIN / AUTH PAGES
===================================================== */

.auth-page {
    min-height: 70vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px 28px;
    text-align: center;
}

/* TITOLI */
.auth-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

/* ERROR */
.auth-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* FORM */
.auth-form {
    text-align: left;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.auth-field input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 6px;
    border: 1px solid #cfd8dc;
    font-size: 14px;
    background: #f5fbff;
}

.auth-field input:focus {
    outline: none;
    border-color: #1e88e5;
    background: #fff;
}

/* BOTTONE LOGIN */
.auth-btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 13px;
    border-radius: 6px;
    background: #198754;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.auth-btn-primary:hover {
    background: #157347;
}

/* PASSWORD DIMENTICATA */
.auth-forgot {
    margin-top: 14px;
    text-align: center;
}

.auth-forgot a {
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

/* DIVIDER */
.auth-divider {
    margin: 22px 0;
    height: 1px;
    background: #e0e0e0;
}

/* REGISTRAZIONE */
.auth-register {
    text-align: center;
}

.auth-register span {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    color: #444;
}

.auth-btn-secondary {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    background: #6c757d;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.auth-btn-secondary:hover {
    background: #5a6268;
}

/* =====================================================
   AREA CLIENTI – LAYOUT BASE
===================================================== */

.client-area {
    max-width: 1400px;
    margin: 30px auto 60px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* =====================================================
   BOX GENERICO
===================================================== */

.client-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

/* header box */
.client-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.client-box-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    margin: 0;
}

/* =====================================================
   TABELLA CLIENTE / ORDINI / FATTURE
===================================================== */

.client-table {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* riga */
.client-row {
    display: grid;
    grid-template-columns: 1.2fr 1.6fr 1fr 1.2fr 1fr 0.8fr;
    align-items: center;
    padding: 10px 16px;
    font-size: 14px;
    color: #111;
    border-bottom: 1px solid #eee;
    min-height: 44px;
}

/* header */
.client-row-head {
    background: #fafafa;
    font-weight: 700;
    font-size: 13px;
    color: #555;
}

/* ultima riga */
.client-row:last-child {
    border-bottom: none;
}

/* riga vuota */
.client-row.empty {
    grid-template-columns: 1fr;
    text-align: center;
    color: #777;
    padding: 20px;
}

/* =====================================================
   STATUS ORDINE
===================================================== */

.status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.status.pagato {
    background: #16a34a;
    color: #fff;
}

.status.fatturato {
    background: #2563eb;
    color: #fff;
}

.status.annullato {
    background: #dc2626;
    color: #fff;
}

/* =====================================================
   BOTTONI
===================================================== */

.btn-primary,
.btn-secondary,
.btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

/* grande */
.btn-primary {
    padding: 8px 14px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
}

.btn-primary:hover {
    background: #1e49c5;
}

/* secondario */
.btn-secondary {
    padding: 8px 14px;
    background: #6b7280;
    color: #fff;
    font-size: 13px;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* piccolo */
.btn-small {
    padding: 6px 10px;
    font-size: 12px;
    background: #e5e7eb;
    color: #111;
}

.btn-small:hover {
    background: #d1d5db;
}

/* =====================================================
   LOGOUT (se lo aggiungi nel dashboard o sidebar)
===================================================== */

.btn-logout {
    width: 100%;
    margin-top: 14px;
    padding: 10px;
    background: #dc2626;
    color: #fff;
    font-weight: 800;
    border-radius: 6px;
    text-align: center;
}

.btn-logout:hover {
    background: #b91c1c;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {
    .client-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        font-size: 13px;
    }

    .client-row-head {
        display: none;
    }
}

@media (max-width: 768px) {
    .client-area {
        padding: 0 12px;
    }

    .client-row {
        grid-template-columns: 1fr 1fr;
    }
}
/* =====================================================
   CLIENT AREA – VISIBILITÀ TESTI (FIX DEFINITIVO)
===================================================== */

.client-area,
.client-area * {
    color: #1a1a1a !important;   /* testo sempre leggibile */
}

/* titoli principali */
.client-area h1,
.client-area h2,
.client-area h3 {
    color: #111 !important;
    font-weight: 700;
}

/* sottotitoli / etichette */
.client-area label,
.client-area .label,
.client-area .client-label {
    color: #333 !important;
    font-weight: 600;
}

/* testi descrittivi */
.client-area p,
.client-area span,
.client-area div {
    opacity: 1 !important;      /* elimina grigi fantasma */
}

/* tabelle */
.client-area .client-table {
    color: #111 !important;
}

.client-area .client-row {
    color: #111 !important;
}

/* header sezioni */
.client-box-header h2 {
    color: #111 !important;
}

/* stato ordini */
.client-area .status {
    font-weight: 700;
}

/* link */
.client-area a {
    color: #2563eb !important;
}

.client-area a:hover {
    color: #c62828 !important;
}

/* box bianchi */
.client-box,
.client-area .content-box {
    background: #fff;
    border: 1px solid #ddd;
}
/* =====================================================
   CLIENT AREA – CONTRASTO TESTI DEFINITIVO (ANTI-GRIGIO)
===================================================== */

.client-area,
.client-area * {
    opacity: 1 !important;
}

/* Testo base */
.client-area {
    color: #1a1a1a !important;
    background: #fff;
}

/* Titoli */
.client-area h1,
.client-area h2,
.client-area h3,
.client-area h4 {
    color: #111 !important;
    font-weight: 800;
}

/* Tabelle e contenuti */
.client-area .client-box,
.client-area .client-table,
.client-area .client-row,
.client-area .client-row div,
.client-area p,
.client-area span,
.client-area strong {
    color: #1a1a1a !important;
}

/* Header tabelle */
.client-row-head {
    background: #f5f5f5;
}

.client-row-head div {
    color: #111 !important;
    font-weight: 700;
}

/* Valori (email, telefono, ecc.) */
.client-row div {
    font-weight: 500;
}

/* Stati ordine */
.client-area .status {
    font-weight: 700;
    color: #fff !important;
}

/* Messaggi vuoti */
.client-area .client-row.empty {
    color: #111 !important;
    font-weight: 600;
}

/* Link */
.client-area a {
    color: #2563eb !important;
    font-weight: 600;
}

.client-area a:hover {
    color: #c62828 !important;
}

/* Pulsanti */
.client-area .btn-primary,
.client-area .btn-secondary,
.client-area .btn-small {
    opacity: 1 !important;
}
/* =====================================================
   CLIENT DASHBOARD – FIX DEFINITIVO VISIBILITÀ TESTI
   (ANTI-GRIGIO, ANTI-OPACITY, ANTI-INHERIT)
===================================================== */

.client-area,
.client-area * {
    color: #111 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* intestazioni */
.client-area h1,
.client-area h2,
.client-area h3 {
    color: #111 !important;
    font-weight: 800;
}

/* righe tabella */
.client-area .client-table,
.client-area .client-row,
.client-area .client-row div,
.client-area .client-row-head,
.client-area .client-row-head div {
    color: #111 !important;
    opacity: 1 !important;
}

/* etichette (Cliente, Email, Tipo, ecc) */
.client-area .client-row-head div {
    font-weight: 700;
}

/* valori (Massimiliano, email, ecc) */
.client-area .client-row div {
    font-weight: 500;
}

/* box */
.client-area .client-box {
    background: #fff;
    border: 1px solid #d0d0d0;
}

/* header box */
.client-area .client-box-header h2 {
    color: #111 !important;
}

/* testi "Nessun ordine / Nessuna fattura" */
.client-area .client-row.empty {
    color: #111 !important;
    font-weight: 600;
}

/* link */
.client-area a {
    color: #2563eb !important;
    opacity: 1 !important;
}

.client-area a:hover {
    color: #c62828 !important;
}
/* =====================================================
   DASHBOARD CLIENTE – FIX DEFINITIVO TESTI (dash-box)
===================================================== */

.dash-box,
.dash-box * {
    color: #111 !important;
    opacity: 1 !important;
}

/* Titoli box */
.dash-box h1,
.dash-box h2,
.dash-box h3 {
    color: #111 !important;
    font-weight: 800;
}

/* Tabelle / righe */
.dash-box .client-table,
.dash-box .client-row,
.dash-box .client-row div,
.dash-box .client-row-head,
.dash-box .client-row-head div {
    color: #111 !important;
    opacity: 1 !important;
}

/* Intestazioni colonne (Cliente, Email, ecc.) */
.dash-box .client-row-head div {
    font-weight: 700;
}

/* Valori (Massimiliano, email, ecc.) */
.dash-box .client-row div {
    font-weight: 500;
}

/* Messaggi vuoti */
.dash-box .client-row.empty {
    color: #111 !important;
    font-weight: 600;
}

/* Box visivamente pulito */
.dash-box {
    background: #fff;
    border: 1px solid #d0d0d0;
}

/* Link */
.dash-box a {
    color: #2563eb !important;
    font-weight: 600;
}

.dash-box a:hover {
    color: #c62828 !important;
}
/* =====================================================
   FORGOT PASSWORD – STILE ACCOUNT (LOGIN STYLE)
===================================================== */

.forgot-wrapper {
    max-width: 420px;
    margin: 60px auto;
    padding: 32px 28px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    color: #111;
}

/* titolo */
.forgot-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 22px;
    color: #111;
}

/* messaggi */
.forgot-error,
.forgot-success {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.forgot-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.forgot-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #22c55e;
}

/* form */
.forgot-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* input */
.forgot-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    color: #111;
    background: #fff;
}

.forgot-input::placeholder {
    color: #555;
}

/* focus */
.forgot-input:focus {
    outline: none;
    border-color: #c62828;
    box-shadow: 0 0 0 2px rgba(198,40,40,.2);
}

/* bottone */
.forgot-btn {
    margin-top: 6px;
    padding: 12px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #c62828;
    color: #fff;
    transition: background .2s ease, transform .1s ease;
}

.forgot-btn:hover {
    background: #b71c1c;
}

.forgot-btn:active {
    transform: translateY(1px);
}

/* link sotto */
.forgot-links {
    margin-top: 18px;
    text-align: center;
}

.forgot-links a {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.forgot-links a:hover {
    color: #c62828;
    text-decoration: underline;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 480px) {
    .forgot-wrapper {
        margin: 30px 14px;
        padding: 24px 20px;
    }
}
/* =====================================================
   REGISTER – STILE CLIENT DASHBOARD
===================================================== */

.register-wrapper {
    max-width: 460px;
    margin: 60px auto;
    padding: 32px 30px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #d0d0d0;
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
    color: #111;
}

/* titolo */
.register-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 22px;
    color: #111;
}

/* messaggi */
.register-error,
.register-success {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    line-height: 1.4;
}

.register-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.register-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #22c55e;
    text-align: center;
}

/* form */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* input */
.register-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #111;
}

.register-input::placeholder {
    color: #444;
    font-weight: 500;
}

.register-input:focus {
    outline: none;
    border-color: #c62828;
    box-shadow: 0 0 0 2px rgba(198,40,40,.2);
}

/* bottone */
.register-btn {
    margin-top: 6px;
    padding: 13px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #c62828;
    color: #fff;
    transition: background .2s ease, transform .1s ease;
}

.register-btn:hover {
    background: #b71c1c;
}

.register-btn:active {
    transform: translateY(1px);
}

/* link sotto */
.register-links {
    margin-top: 18px;
    text-align: center;
}

.register-links a {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.register-links a:hover {
    color: #c62828;
    text-decoration: underline;
}

/* =========================
   CONTRASTO FORZATO (ANTI-GRIGIO)
========================= */
.register-wrapper,
.register-wrapper * {
    color: #111;
    opacity: 1;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 480px) {
    .register-wrapper {
        margin: 30px 14px;
        padding: 24px 20px;
    }
}
/* =====================================================
   AREA CLIENTI – WRAPPER PRINCIPALE
===================================================== */

.client-area-page {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
    color: #111;
}

/* header area clienti */
.client-area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.client-area-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: #111;
}

/* logout */
.client-logout {
    background: #111;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease;
}

.client-logout:hover {
    background: #c62828;
}

/* =====================================================
   DASHBOARD BOX (RIUSA dash-box)
===================================================== */

.dash-box {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* header box */
.dash-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dash-box-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

/* =====================================================
   TABELLE DASHBOARD
===================================================== */

.client-table {
    width: 100%;
}

.client-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #111;
}

.client-row-head {
    font-weight: 700;
    color: #111;
}

.client-row:last-child {
    border-bottom: none;
}

.client-row.empty {
    grid-template-columns: 1fr;
    font-weight: 600;
    padding: 14px 0;
    color: #111;
}

/* =====================================================
   STATUS ORDINI
===================================================== */

.status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    display: inline-block;
}

.status.pagato,
.status.completato {
    background: #16a34a;
}

.status.in_attesa {
    background: #facc15;
    color: #111;
}

.status.annullato {
    background: #dc2626;
}

/* =====================================================
   BOTTONI
===================================================== */

.btn-primary {
    background: #c62828;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.btn-primary:hover {
    background: #b71c1c;
}

.btn-secondary {
    background: #2563eb;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #1e40af;
}

.btn-small {
    background: #111;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.btn-small:hover {
    background: #c62828;
}

/* =====================================================
   CONTRASTO FORZATO (ANTI-GRIGIO GLOBALE)
===================================================== */

.client-area-page,
.client-area-page * {
    color: #111;
    opacity: 1;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .client-row {
        grid-template-columns: 1fr;
        gap: 6px;
        font-size: 13px;
    }

    .client-area-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
/* =========================
   NAVBAR – TESTI BIANCHI
========================= */

/* categorie principali */
.mega-navbar,
.mega-navbar a,
.mega-item > a {
    color: #fff;
}

/* sottocategorie */
.mega-submenu a {
    color: #fff;
}

/* hover resta rosso come già definito */
.mega-item > a:hover,
.mega-submenu a:hover {
    color: #fff;
}
/* =====================================================
   PROFILO CLIENTE – STILE CLIENT DASHBOARD
===================================================== */

.acc-page {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
}

.acc-card {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    padding: 28px 30px;
    box-shadow: 0 10px 26px rgba(0,0,0,.08);
    color: #111;
}

/* ================= HEADER ================= */

.acc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    gap: 20px;
}

.acc-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #111;
}

.acc-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.acc-actions {
    display: flex;
    gap: 10px;
}

/* ================= NOTICES ================= */

.notice {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.notice-warn {
    background: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
}

.notice-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.notice-ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #22c55e;
}

/* ================= FORM ================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 22px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111;
}

.field input,
.field select {
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #cfcfcf;
    background: #fff;
    color: #111;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: #c62828;
    box-shadow: 0 0 0 2px rgba(198,40,40,.2);
}

.field small {
    margin-top: 4px;
    font-size: 12px;
    color: #333;
}

/* ================= ACTIONS ================= */

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

/* ================= BOTTONI ================= */

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #c62828;
    color: #fff;
}

.btn-primary:hover {
    background: #b71c1c;
}

.btn-light {
    background: #e0e0e0;
    color: #111;
}

.btn-light:hover {
    background: #d5d5d5;
}

.btn-danger {
    background: #6c757d;
    color: #fff;
}

.btn-danger:hover {
    background: #5a6268;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
    .acc-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================
   CARRELLO
========================= */

.cart-page {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr 180px;
    gap: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    margin-bottom: 16px;
    color: #111;
}

.item-thumb img {
    width: 100%;
    border-radius: 8px;
}

.item-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
}

.item-meta,
.item-desc {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.item-right {
    text-align: right;
}

.item-total {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
}

.qty-box {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.qty-box button {
    width: 30px;
    height: 30px;
    font-size: 18px;
    font-weight: 700;
}

.panel {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    color: #111;
}

.btn-continue {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-weight: 700;
    color: #2563eb;
}

@media (max-width: 900px) {
    .cart-page {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .item-right {
        text-align: left;
    }
}
/* =====================================================
   ORDINE RICEVUTO / CONFERMA CHECKOUT
===================================================== */

.order-received-page {
    max-width: 900px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

/* riuso checkout-card */
.checkout-card {
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 10px 26px rgba(0,0,0,.12);
    color: #111;
}

/* titoli */
.checkout-card h2 {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

.checkout-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

/* testi */
.checkout-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #111;
    margin-top: 6px;
}

/* numero ordine */
.checkout-card strong {
    font-weight: 800;
    color: #111;
}

/* box info pagamento */
.checkout-card > div {
    margin-top: 18px;
}

/* bottoni */
.checkout-card .btn-continue {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s ease, transform .1s ease;
}

.checkout-card .btn-continue:hover {
    background: #c62828;
}

.checkout-card .btn-continue:active {
    transform: translateY(1px);
}

/* layout bottoni */
.checkout-card .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

/* =====================================================
   CONTRASTO FORZATO (ANTI-GRIGIO)
===================================================== */
.checkout-card,
.checkout-card * {
    color: #111 !important;
    opacity: 1 !important;
}

/* =====================================================
   MOBILE
===================================================== */
@media (max-width: 600px) {

    .checkout-card {
        padding: 22px 20px;
    }

    .checkout-card h2 {
        font-size: 22px;
    }
}
/* =========================
   BOTTONI CONFERMA ORDINE
========================= */

.btn-continue {
    background: #6b7280;          /* grigio medio (NON nero) */
    color: #ffffff !important;    /* testo BIANCO */
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: background .2s ease, transform .1s ease;
}

.btn-continue:hover {
    background: #4b5563;          /* grigio più scuro al hover */
    color: #ffffff !important;
}

.btn-continue:active {
    transform: translateY(1px);
}

/* =====================================================
   CHECKOUT LAYOUT FIX
===================================================== */

.checkout-wrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* PRIMO BLOCCO: INDIRIZZI + RIEPILOGO */
.checkout-top {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
    margin-bottom: 30px;
}

/* BLOCCO METODI PAGAMENTO SOTTO */
.checkout-bottom {
    margin-top: 30px;
}

/* =====================================================
   SUMMARY A DESTRA
===================================================== */

.checkout-summary {
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.checkout-summary h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* RIGHE */
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 15px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #ddd;
    font-size: 18px;
    font-weight: 600;
}

/* =====================================================
   CONFERMA ORDINE
===================================================== */

.btn-checkout {
    width: 100%;
    margin-top: 22px;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: #c62828;
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease;
}

.btn-checkout:hover {
    background: #b71c1c;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {
    .checkout-top {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   CARD
===================================================== */

.checkout-card,
.checkout-summary {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.checkout-card h2,
.checkout-summary h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

/* =====================================================
   FORM GRID
===================================================== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.input-readonly {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #333;
}

/* =====================================================
   EDIT PROFILE
===================================================== */

.edit-profile-box {
    margin-top: 20px;
    text-align: right;
}

.btn-edit-profile {
    background: #1f6cff;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}

/* =====================================================
   PAYMENT METHODS
===================================================== */

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
    gap: 18px;
}

/* NASCONDI RADIO */
.payment-tile input {
    display: none;
}

/* CARTELLA */
.payment-box {
    height: 90px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,.4);

    /* GLASS EFFECT */
    background: rgba(255,255,255,.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.25),
        0 10px 25px rgba(0,0,0,.15);

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    transition: all .25s ease;
}

/* IMMAGINE FULL SIZE */
.payment-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* HOVER */
.payment-box:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.35),
        0 15px 35px rgba(0,0,0,.25);
}

/* SELEZIONATA → VERDE */
.payment-tile input:checked + .payment-box {
    border-color: #28c76f;
    box-shadow:
        0 0 0 2px rgba(40,199,111,.6),
        0 15px 35px rgba(0,0,0,.25);
    background: rgba(40,199,111,.15);
}

/* =====================================================
   ERROR
===================================================== */

.form-error {
    background: #ffeaea;
    color: #b10000;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* =====================================================
   SUMMARY
===================================================== */

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 15px;
}

.summary-total {
    padding-top: 14px;
    border-top: 1px solid #ddd;
    font-size: 18px;
}

/* =====================================================
   CHECKOUT BUTTON
===================================================== */

.btn-checkout {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #c62828;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .2s;
}

.btn-checkout:hover {
    background: #b71c1c;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {
    .checkout-wrap {
        grid-template-columns: 1fr;
    }
    .checkout-right {
        position: static;
    }
}

/* =====================================================
   CLIENT AREA – ORDERS (DASHBOARD STYLE)
===================================================== */

.client-area {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* =====================================================
   BOX
===================================================== */

.client-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    overflow: hidden;
}

/* =====================================================
   HEADER
===================================================== */

.client-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 26px;
    border-bottom: 1px solid #eee;
}

.client-box-header h2 {
    font-size: 22px;
    margin: 0;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn-secondary {
    background: #f2f2f2;
    color: #333;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background .2s ease;
}

.btn-secondary:hover {
    background: #e6e6e6;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* =====================================================
   TABLE
===================================================== */

.client-table {
    width: 100%;
}

/* RIGHE */
.client-row {
    display: grid;
    grid-template-columns:
        120px
        1fr
        140px
        120px
        120px
        80px;
    align-items: center;
    padding: 16px 26px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

/* HEADER */
.client-row-head {
    background: #fafafa;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: #666;
}

/* HOVER */
.client-row:not(.client-row-head):hover {
    background: #f9f9f9;
}

/* EMPTY */
.client-row.empty {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px;
    color: #777;
}

/* =====================================================
   STATUS BADGES
===================================================== */

.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* STATI */
.status.in_attesa,
.status.pending {
    background: #fff3cd;
    color: #856404;
}

.status.pagato,
.status.paid {
    background: #e8f7ef;
    color: #1e7e34;
}

.status.fatturato,
.status.completed {
    background: #e3f2fd;
    color: #0d47a1;
}

.status.annullato,
.status.cancelled {
    background: #fdecea;
    color: #b71c1c;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .client-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 18px;
    }

    .client-row-head {
        display: none;
    }

    .client-row > div {
        display: flex;
        justify-content: space-between;
    }

    .client-row > div::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
    }
}
/* =====================================================
   ORDERS VIEW – CLIENT AREA (DASHBOARD STYLE)
===================================================== */

.area-clienti-orders-view {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* =====================================================
   PAGE HEADER
===================================================== */

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 26px;
    margin: 0 0 6px;
}

.page-subtitle {
    color: #666;
    font-size: 14px;
}

/* =====================================================
   PANEL
===================================================== */

.panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.panel-body {
    padding: 30px;
}

.panel-body h3 {
    font-size: 20px;
    margin: 0 0 20px;
}

/* =====================================================
   FORM GRID
===================================================== */

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-grid-2 label {
    font-size: 13px;
    color: #666;
}

.form-grid-2 input {
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    font-size: 14px;
}

/* =====================================================
   SEPARATOR
===================================================== */

.panel-body hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #eee;
}

/* =====================================================
   ORDER TABLE
===================================================== */

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.order-table thead th {
    background: #fafafa;
    text-align: left;
    padding: 14px;
    font-size: 13px;
    text-transform: uppercase;
    color: #666;
    border-bottom: 1px solid #eee;
}

.order-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #eee;
}

.order-table tbody tr:hover {
    background: #f9f9f9;
}

/* =====================================================
   TOTALS
===================================================== */

.totals-box {
    max-width: 420px;
    margin-left: auto;
    margin-top: 25px;
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
}

.totals-box p {
    display: flex;
    justify-content: space-between;
    margin: 0 0 10px;
    font-size: 14px;
}

.totals-box p.total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #ddd;
    font-size: 18px;
    font-weight: 600;
}

/* =====================================================
   ACTIONS
===================================================== */

.actions-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-secondary {
    background: #f2f2f2;
    color: #333;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background .2s ease;
}

.btn-secondary:hover {
    background: #e6e6e6;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .order-table {
        font-size: 13px;
    }

    .order-table thead {
        display: none;
    }

    .order-table tbody tr {
        display: block;
        padding: 14px;
        border-bottom: 1px solid #eee;
    }

    .order-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
    }

    .totals-box {
        max-width: 100%;
    }

    .actions-row {
        flex-direction: column;
        align-items: stretch;
    }
}
/* =====================================================
   CART PAGE
===================================================== */

.cart-page{
    max-width:1200px;
    margin:40px auto;
    display:grid;
    grid-template-columns:1fr 360px;
    gap:30px;
    padding:0 20px;
}

/* =====================================================
   LEFT – ITEMS
===================================================== */

.cart-item{
    display:grid;
    grid-template-columns:90px 1fr 200px;
    gap:16px;
    padding:18px 0;
    border-bottom:1px solid #e5e5e5;
}

.item-thumb img{
    width:80px;
    height:80px;
    object-fit:cover;
    border-radius:8px;
}

.item-title{
    font-weight:600;
    margin-bottom:6px;
}

.item-meta,
.item-desc,
.item-shipping{
    font-size:13px;
    color:#666;
    margin-bottom:4px;
}

.item-right{
    text-align:right;
}

.item-total{
    font-weight:600;
    margin-bottom:8px;
}

/* =====================================================
   QUANTITÀ (PICCOLA)
===================================================== */

.qty-box{
    display:inline-flex;
    align-items:center;
    gap:4px;
    margin-bottom:6px;
}

.qty-box input{
    width:46px;
    height:30px;
    text-align:center;
    font-size:14px;
    padding:0;
}

.qty-box button{
    width:28px;
    height:30px;
    padding:0;
    border:1px solid #ccc;
    background:#f5f5f5;
    cursor:pointer;
}

/* =====================================================
   AZIONI – AGGIORNA / RIMUOVI
===================================================== */

.item-actions{
    display:inline-flex;
    gap:8px;
    margin-top:6px;
}

.item-actions button{
    padding:6px 10px;
    font-size:13px;
    border-radius:6px;
    border:none;
    cursor:pointer;
}

/* aggiorna */
.cart-item form[action*="cart-update"] button{
    background:#28c76f;
    color:#fff;
}

/* rimuovi */
.cart-item form[action*="cart-remove"] button{
    background:#e53935;
    color:#fff;
}

/* =====================================================
   RIGHT – SUMMARY
===================================================== */

.cart-right .panel{
    background:#fff;
    border-radius:14px;
    padding:22px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.summary-row{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
    font-size:14px;
}

.summary-total{
    display:flex;
    justify-content:space-between;
    margin-top:14px;
    padding-top:14px;
    border-top:1px solid #ddd;
    font-size:17px;
    font-weight:600;
}

/* =====================================================
   BOTTONI RIEPILOGO (UGUALI, NON ACCAVALLATI)
===================================================== */

.cart-right .btn-checkout,
.cart-right .btn-continue{
    display:block;
    width:100%;
    text-align:center;
    padding:14px 0;
    margin-top:12px;
    border-radius:10px;
    font-size:15px;
    text-decoration:none;
}

.cart-right .btn-checkout{
    background:#c62828;
    color:#fff;
}

.cart-right .btn-continue{
    background:#6c757d;
    color:#fff;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media(max-width:900px){
    .cart-page{
        grid-template-columns:1fr;
    }

    .cart-item{
        grid-template-columns:70px 1fr;
    }

    .item-right{
        grid-column:1 / -1;
        text-align:left;
        margin-top:10px;
    }
}

/* ======================================
   STATI ORDINE - STILE TAG (E-COMMERCE)
   ====================================== */

.order-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
    letter-spacing: 0.3px;
}

/* NUOVO - BLU (come "NOVITÀ") */
.order-status.status-nuovo {
    background-color: #1e88e5;
}

/* SPEDITO - VIOLA */
.order-status.status-spedito {
    background-color: #8e24aa;
}

/* PAGATO - VERDE (come "OFFERTA") */
.order-status.status-pagato {
    background-color: #43a047;
}

/* FATTURATO - GIALLO (come "ULTIMI PEZZI") */
.order-status.status-fatturato {
    background-color: #fbc02d;
    color: #000;
}

/* RIMBORSATO - MARRONE */
.order-status.status-rimborsato {
    background-color: #8d6e63;
}

/* ANNULLATO - ROSSO (come "SOLO UNO") */
.order-status.status-annullato {
    background-color: #e53935;
}
@media (max-width: 768px) {

    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

}

/* =========================================
   FIX TAGLIO MOBILE GLOBALE
   ========================================= */
@media (max-width: 768px) {

    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    main,
    .container,
    .page-section {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

}
@media (max-width: 768px) {

    /* layout categoria → UNA COLONNA */
    .category-page,
    .shop-page,
    .shop-layout {
        display: block !important;
        width: 100% !important;
    }

    /* sidebar filtri */
    .shop-sidebar,
    .category-sidebar,
    .filters,
    .cats-tree {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px 0;
    }

    /* griglia prodotti */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
    }

}
@media (max-width: 768px) {

    /* layout prodotto → STACK */
    .product-page,
    .product-layout,
    .product-container {
        display: block !important;
        width: 100% !important;
    }

    /* colonne prodotto */
    .product-gallery,
    .product-info,
    .product-buy-box {
        width: 100% !important;
        max-width: 100% !important;
        position: static !important;
    }

    /* immagini */
    .product-gallery img {
        width: 100% !important;
        height: auto;
    }

}
/* =========================================================
   MOBILE – FORCE FULL WIDTH (NO CONTAINER)
========================================================= */
@media (max-width: 768px) {

    html, body {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    /* QUALSIASI CONTAINER → FULL WIDTH */
    .container,
    main.container,
    .page-section,
    .client-area,
    .shop-page,
    .category-page,
    .product-page {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box;
    }

    /* KILL QUALSIASI GRID DESKTOP */
    .shop-layout,
    .product-layout,
    .product-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* COLONNE → STACK */
    .shop-sidebar,
    .category-sidebar,
    .filters,
    .cats-tree,
    .product-gallery,
    .product-info,
    .product-buy-box {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 16px 0 !important;
        position: static !important;
    }

    /* GRIGLIA PRODOTTI */
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* IMMAGINI */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

}
/* =========================================
   MOBILE – DISATTIVA SIDEBAR
========================================= */
@media (max-width: 768px) {

    /* nascondo sidebar */
    .sidebar-filters,
    .shop-sidebar,
    aside {
        display: none !important;
    }

    /* layout catalogo → full width */
    .shop-layout,
    .category-page,
    .shop-page {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* griglia prodotti */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
    }

}
/* =========================================
   HEADER MOBILE – LOGO COMPACT
========================================= */
@media (max-width: 768px) {

    /* barra header */
    .search-bar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    /* LOGO MOLTO PIÙ PICCOLO */
    .logo img {
        max-width: 70px;   /* 🔴 QUI la differenza */
        width: 70px;
        height: auto;
    }

    /* AZIONI: UNA SOLA RIGA */
    .header-actions {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 26px;
        width: 100%;
        flex-wrap: nowrap;   /* ❗ NON andare a capo */
    }

    /* icone compatte */
    .header-actions a {
        padding: 0;
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0; /* nasconde il testo */
    }

    .header-actions .icon {
        width: 22px;
        height: 22px;
    }

    /* search allineata */
    .header-search {
        margin: 0;
    }

}
/* =========================================================
   PRODUCT PAGE – DESKTOP MOBILE / TABLET
   (NON desktop PC)
========================================================= */
@media (max-width: 1280px) {

    .product-main{
        display:grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    /* sinistra: immagini */
    .pm-left{
        grid-column:1;
        width:100%;
    }

    /* destra: centro + box acquisto impilati */
    .pm-center,
    .pm-right{
        grid-column:2;
        width:100%;
        position: static;
    }

    .pm-right{
        margin-top:16px;
    }

}
/* =========================================================
   DESKTOP VIEW SU MOBILE – FULL WIDTH
   elimina fascia vuota a destra
========================================================= */
@media (max-width: 1200px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        background: #fff; /* stesso colore del contenuto */
    }

    /* container non centrato */
    .container,
    main.container {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

}
/* =========================================================
   PRODUCT PAGE – MOBILE SMARTPHONE
========================================================= */
@media (max-width: 768px) {

    /* layout principale */
    .product-main{
        display:flex;
        flex-direction:column;
        gap:16px;
        width:100%;
    }

    /* ===== IMMAGINI ===== */
    .pm-left{
        width:100%;
    }

    .main-image-box img{
        width:100%;
        height:auto;
        border-radius:8px;
    }

    /* thumbnails → orizzontali */
    .thumbs-rail{
        display:flex;
        flex-direction:row;
        gap:8px;
        overflow-x:auto;
        padding-bottom:6px;
    }

    .thumb-item{
        width:64px;
        height:64px;
        object-fit:cover;
        flex:0 0 auto;
        border-radius:6px;
    }

    /* ===== INFO PRODOTTO ===== */
    .pm-center{
        width:100%;
    }

    .prod-title{
        font-size:20px;
        line-height:1.3;
    }

    .prod-price{
        font-size:22px;
        margin:10px 0;
    }

    /* ===== BOX ACQUISTO ===== */
    .pm-right{
        width:100%;
    }

    .buy-box{
        padding:14px;
        border-radius:10px;
    }

    .btn-buy-primary,
    .btn-buy-secondary{
        width:100%;
        padding:12px;
        font-size:15px;
    }

    /* ===== BLOCCO INFERIORE ===== */
    .product-bottom{
        display:flex;
        flex-direction:column;
        gap:20px;
        margin-top:30px;
    }

    .pb-left,
    .pb-right{
        width:100%;
    }

    /* specifiche tabella */
    .specs-table th,
    .specs-table td{
        padding:8px;
        font-size:13px;
    }

    /* descrizione */
    .desc-section h2{
        font-size:18px;
    }

}
/* =========================================================
   PROFILO CLIENTE – MOBILE
========================================================= */
@media (max-width: 768px) {

    /* wrapper pagina */
    .acc-page{
        padding: 0;
    }

    /* card principale */
    .acc-card{
        padding: 16px;
        border-radius: 12px;
    }

    /* header profilo */
    .acc-head{
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .acc-title{
        font-size: 20px;
        line-height: 1.3;
    }

    .acc-subtitle{
        font-size: 13px;
    }

    /* azioni (dashboard / logout) */
    .acc-actions{
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .acc-actions .btn{
        flex: 1;
        text-align: center;
        padding: 10px;
        font-size: 14px;
    }

    /* messaggi */
    .notice{
        font-size: 13px;
        padding: 10px;
    }

    /* form → 1 colonna */
    .form-grid{
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .field label{
        font-size: 13px;
    }

    .field input,
    .field select{
        width: 100%;
        height: 40px;
        font-size: 14px;
    }

    .field small{
        font-size: 12px;
    }

    /* azioni form */
    .form-actions{
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .form-actions .btn{
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

}

/* =========================================================
   HEADER MOBILE – ACCOUNT | SEARCH | CART
========================================================= */
@media (max-width: 768px) {

  .header-actions{
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
  }

  /* 1️⃣ ACCOUNT – SINISTRA */
  .icon-account{
    flex: 0 0 auto;
  }

  /* 2️⃣ SEARCH – CENTRO */
  .header-search{
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    position: relative;
  }

  .search-icon{
    z-index: 2;
  }

  /* barra che si apre A SINISTRA della lente */
  .search-form{
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    transition: width .25s ease, opacity .2s ease;
  }

  .search-form input{
    width: 160px;
    height: 36px;
    padding: 0 10px;
    border: none;
    outline: none;
    font-size: 13px;
  }

  .header-search.active .search-form{
    width: 160px;
    opacity: 1;
  }

  /* 3️⃣ CARRELLO – DESTRA */
  .icon-btn[aria-label="Carrello"]{
    flex: 0 0 auto;
    margin-left: auto;
  }

}
.country-select {
    padding-left: 48px;
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 22px;
}


/* =====================================================
   SHIPPING METHODS (CLONE PAYMENT METHODS)
===================================================== */

.shipping-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
    gap: 18px;
}

/* NASCONDI RADIO COMPLETAMENTE */
.shipping-tile input {
    display: none !important;
}

/* CARD IDENTICA A payment-box */
.shipping-box {
    height: 90px;
    border-radius: 14px;
    border: 2px solid rgba(255,255,255,.4);

    /* GLASS EFFECT */
    background: rgba(255,255,255,.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.25),
        0 10px 25px rgba(0,0,0,.15);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    cursor: pointer;
    transition: all .25s ease;
}

/* TESTO COME IMMAGINE CENTRATA */
.shipping-box strong {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    text-transform: uppercase;
    pointer-events: none;
}

.shipping-box span {
    font-size: 13px;
    color: #333;
    pointer-events: none;
}

/* HOVER IDENTICO */
.shipping-box:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.35),
        0 15px 35px rgba(0,0,0,.25);
}

/* SELEZIONATA → STESSO VERDE */
.shipping-tile input:checked + .shipping-box {
    border-color: #28c76f;
    box-shadow:
        0 0 0 2px rgba(40,199,111,.6),
        0 15px 35px rgba(0,0,0,.25);
    background: rgba(40,199,111,.15);
}
/* ===============================
   GRIGLIE FORM FRONTEND
================================ */

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Mobile fallback */
@media (max-width: 768px) {
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   ORDERS VIEW – SPEDIZIONE (STILE RIEPILOGO)
================================================== */

.area-clienti-orders-view h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* contenitore spedizione */
.area-clienti-orders-view .form-grid-3 {
    background: #fafafa;
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

/* singolo blocco */
.area-clienti-orders-view .form-grid-3 label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    opacity: .75;
}

/* valore (input disabilitato → testo) */
.area-clienti-orders-view .form-grid-3 input {
    border: none;
    background: transparent;
    padding: 0;
    font-size: .95rem;
    font-weight: 500;
    color: #111;
}

/* tracking button */
.area-clienti-orders-view .form-grid-3 a.btn-secondary {
    margin-top: .2rem;
    align-self: flex-start;
    padding: .45rem .75rem;
    font-size: .8rem;
}

/* stato spedizione evidenziato */
.area-clienti-orders-view .form-grid-3 input[value="PENDING"] {
    color: #c57c00;
    font-weight: 600;
}

.area-clienti-orders-view .form-grid-3 input[value="SHIPPED"] {
    color: #0a7d2c;
    font-weight: 600;
}

.area-clienti-orders-view .form-grid-3 input[value="DELIVERED"] {
    color: #0a5ed7;
    font-weight: 600;
}

/* mobile */
@media (max-width: 768px) {
    .area-clienti-orders-view .form-grid-3 {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}
/* ==================================================
   ORDERS VIEW – SPEDIZIONE (RIEPILOGO COMPATTO)
================================================== */

.area-clienti-orders-view .form-grid-3 {
    display: block;
    padding: 0;
    background: transparent;
}

/* ogni riga spedizione */
.area-clienti-orders-view .form-grid-3 label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem 0;
    border-bottom: 1px solid #eee;
    font-size: .9rem;
}

/* ultima riga senza bordo */
.area-clienti-orders-view .form-grid-3 label:last-child {
    border-bottom: none;
}

/* titolo campo */
.area-clienti-orders-view .form-grid-3 label::first-line {
    font-weight: 500;
    color: #666;
}

/* valore */
.area-clienti-orders-view .form-grid-3 input {
    border: none;
    background: none;
    padding: 0;
    text-align: right;
    font-weight: 600;
    font-size: .9rem;
    color: #111;
    width: auto;
}

/* tracking button */
.area-clienti-orders-view .form-grid-3 a.btn-secondary {
    padding: .35rem .6rem;
    font-size: .75rem;
}

/* stato spedizione */
.area-clienti-orders-view input[value="PENDING"] {
    color: #c57c00;
}

.area-clienti-orders-view input[value="SHIPPED"] {
    color: #1a7f37;
}

.area-clienti-orders-view input[value="DELIVERED"] {
    color: #0a58ca;
}
select {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    background-color: #fff;
    color: #000;
    cursor: pointer;
}
/* ========================================
   BOTTONE VISUALIZZA - Product Card
   Sostituisce i vecchi bottoni azzurro e verde
   ======================================== */

/* Rimuovi stili vecchi bottoni (se esistono) */
.btn-add-cart,
.btn-buy-now {
    display: none !important;
}

/* Nuovo bottone Visualizza */
.btn-view-product {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    margin-top: 15px;
}

.btn-view-product:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-view-product:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .btn-view-product {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .btn-view-product {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* ========================================
   BOTTONE VISUALIZZA - Product Card
   Sostituisce i vecchi bottoni azzurro e verde
   ======================================== */

/* Rimuovi stili vecchi bottoni (se esistono) */
.btn-add-cart,
.btn-buy-now {
    display: none !important;
}

/* Nuovo bottone Visualizza */
.btn-view-product {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    margin-top: 15px;
}

.btn-view-product:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-view-product:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .btn-view-product {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .btn-view-product {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}
/* ========================================
   FIX ALTEZZA DESCRIZIONE PRODUCT CARD
   Forza descrizione a occupare sempre 2 righe
   ======================================== */

.pc-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em; /* Circa 2 righe di testo */
    line-height: 1.4;
    margin-bottom: 10px;
}

/* Se la descrizione è vuota, mantieni comunque lo spazio */
.pc-info {
    min-height: fit-content;
}

/* Assicura che tutte le card abbiano la stessa altezza */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pc-link {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-actions {
    margin-top: auto; /* Spinge i bottoni sempre in fondo */
}



/* ========================================
   PAGINA CONTATTI - STILE PROFESSIONALE
   Sostituisci il CSS precedente con questo
   ======================================== */

/* ALERT MESSAGGI */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background: #f0f9f4;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

/* LAYOUT PRINCIPALE */
.contacts-page {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-top: 25px;
}

/* INFO CONTATTI - COMPATTA */
.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-block {
    background: #f8f9fa;
    padding: 16px 18px;
    border-radius: 6px;
    border-left: 3px solid #495057;
}

.contact-block h3 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #212529;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-block p {
    margin: 6px 0;
    color: #495057;
    line-height: 1.5;
    font-size: 0.9rem;
}

.contact-block a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-block a:hover {
    color: #212529;
    text-decoration: underline;
}

.contact-block strong {
    color: #212529;
    font-weight: 600;
}

/* FORM CONTATTO - COMPATTO */
.contact-form-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.contact-form-box h3 {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: #212529;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.contact-form label {
    display: block;
    margin-bottom: 12px;
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 4px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 6px;
}

.privacy-checkbox input[type="checkbox"] {
    width: auto;
    margin: 3px 0 0 0;
    flex-shrink: 0;
}

.privacy-checkbox a {
    color: #495057;
    text-decoration: underline;
}

.privacy-checkbox a:hover {
    color: #212529;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 12px;
    background: #495057;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.contact-form .btn-primary:hover {
    background: #343a40;
}

.contact-form .btn-primary:active {
    transform: translateY(1px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .contacts-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form-box {
        padding: 20px;
    }
    
    .contact-block {
        padding: 14px 16px;
    }
}

/* ========================================
   MAPPA GOOGLE MAPS
   ======================================== */

.contact-map-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}

.map-title {
    font-size: 1.3rem;
    color: #212529;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.contact-map-container iframe {
    display: block;
    width: 100%;
}

.map-address {
    margin: 15px 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #495057;
    font-size: 0.95rem;
}

.map-address strong {
    color: #212529;
}

.btn-map-directions {
    display: inline-block;
    padding: 12px 24px;
    background: #495057;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-map-directions:hover {
    background: #343a40;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .contact-map-container {
        height: 300px;
    }
    
    .contact-map-container iframe {
        height: 300px;
    }
}
/* ========================================
   PAGINE LEGALI - STILE PROFESSIONALE
   Aggiungi a themes/default/assets/css/style.css
   ======================================== */

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.legal-page .section-title {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.legal-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    line-height: 1.8;
    color: #495057;
    font-size: 0.95rem;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content h2 {
    font-size: 1.3rem;
    color: #212529;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-content h3 {
    font-size: 1.1rem;
    color: #343a40;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.legal-content ul,
.legal-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content strong {
    color: #212529;
    font-weight: 600;
}

.legal-content em {
    font-style: italic;
    color: #6c757d;
}

.legal-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #6c757d;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 20px;
    }
    
    .legal-page {
        padding: 30px 15px;
    }
}
/* ========================================
   FOOTER - 4 COLONNE BILANCIATE
   Sostituisci/aggiungi in themes/default/assets/css/style.css
   ======================================== */

.footer {
    background: #212529;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 60px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 50px 20px;
}

.footer-col {
    min-width: 0; /* Fix per evitare overflow */
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 12px;
}

.footer-col p {
    margin: 10px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive - 2 colonne su tablet */
@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 40px 20px;
    }
}

/* Responsive - 1 colonna su mobile */
@media (max-width: 576px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 20px;
    }
    
    .footer-col h4 {
        font-size: 0.95rem;
    }
}

/* ========================================
   COOKIE BANNER & MODAL
   Aggiungi a themes/default/assets/css/style.css
   ======================================== */

/* COOKIE BANNER - Barra in basso */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.cookie-banner-text p {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-banner-text a {
    color: #3498db;
    text-decoration: underline;
    font-size: 0.85rem;
}

.cookie-banner-text a:hover {
    color: #5dade2;
}

.cookie-banner-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* BOTTONI COOKIE */
.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-accept {
    background: #27ae60;
    color: white;
}

.btn-accept:hover {
    background: #229954;
}

.btn-reject {
    background: #95a5a6;
    color: white;
}

.btn-reject:hover {
    background: #7f8c8d;
}

.btn-settings {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-save {
    background: #3498db;
    color: white;
}

.btn-save:hover {
    background: #2980b9;
}

/* MODAL IMPOSTAZIONI COOKIE */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #2c3e50;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.cookie-modal-close:hover {
    color: #2c3e50;
}

.cookie-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    margin-bottom: 10px;
}

.cookie-category-header label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
}

.cookie-category-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-category-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.cookie-category-header strong {
    color: #2c3e50;
}

.cookie-required {
    font-size: 0.75rem;
    background: #95a5a6;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

.cookie-description {
    margin: 0;
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.5;
    padding-left: 30px;
}

.cookie-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
    }
    
    .cookie-modal-content {
        max-height: 90vh;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn-cookie {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-text h3 {
        font-size: 1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.85rem;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 15px;
    }
}



/* ========================================
   AREA CLIENTI - CSS COMPLETO
   Aggiungi a themes/default/assets/css/style.css
   ======================================== */

/* LAYOUT PRINCIPALE */
.customer-area-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 600px;
}

/* SIDEBAR */
.customer-sidebar {
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.customer-info-box {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.customer-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.customer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 5px 0;
}

.customer-email {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* NAVIGAZIONE */
.customer-nav {
    padding: 10px 0;
}

.customer-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.customer-nav-item:hover {
    background: #f8f9fa;
    color: #212529;
}

.customer-nav-item.active {
    background: #e9ecef;
    color: #212529;
    border-left-color: #495057;
    font-weight: 600;
}

.customer-nav-item.logout {
    color: #dc3545;
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
}

.customer-nav-item.logout:hover {
    background: #fff5f5;
}

.nav-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.nav-label {
    flex: 1;
    font-size: 0.95rem;
}

/* CONTENUTO PRINCIPALE */
.customer-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.customer-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.customer-page-header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #212529;
}

.customer-page-header p {
    margin: 5px 0 0 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.btn-back {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    color: #212529;
    border-color: #495057;
    background: #f8f9fa;
}

/* LOADER SPINNER */
#contentLoader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #495057;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#contentArea {
    transition: opacity 0.2s ease;
}

/* ALERTS */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}

.alert p {
    margin: 0 0 12px 0;
}

.alert-info {
    background: #cfe2ff;
    color: #084298;
    border-left: 4px solid #0d6efd;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #198754;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* DASHBOARD - STATISTICHE */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* DASHBOARD SECTIONS */
.dashboard-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #212529;
}

.btn-link {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-link:hover {
    color: #212529;
    text-decoration: underline;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.info-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
}

.info-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.info-value {
    font-weight: 600;
    color: #212529;
}

/* ORDINI MINI */
.orders-mini-list {
    display: grid;
    gap: 12px;
}

.order-mini-card {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.order-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-status {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.order-status-inline {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-nuovo {
    background: #cfe2ff;
    color: #084298;
}

.status-pagato {
    background: #d1e7dd;
    color: #0f5132;
}

.status-spedito {
    background: #cff4fc;
    color: #055160;
}

.status-fatturato {
    background: #fff3cd;
    color: #664d03;
}

.status-annullato {
    background: #f8d7da;
    color: #721c24;
}

.order-mini-body {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* FATTURE MINI */
.invoices-mini-list {
    display: grid;
    gap: 12px;
}

.invoice-mini-card {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoice-mini-info {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
}

.btn-download {
    padding: 6px 12px;
    background: #495057;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-download:hover {
    background: #343a40;
}

/* EMPTY STATE */
.empty-state-mini {
    background: white;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
}

.empty-state-mini p {
    margin: 0 0 12px 0;
    color: #6c757d;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h2 {
    margin: 0 0 10px 0;
    color: #495057;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* TABELLA ORDINI/FATTURE */
.orders-table-wrapper {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead {
    background: #f8f9fa;
}

.orders-table th {
    padding: 12px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.orders-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.order-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-view {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid #495057;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
}

.btn-view:hover {
    background: #495057;
    color: white;
}

/* DETTAGLIO ORDINE */
.order-status-banner {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.order-status-banner.status-nuovo {
    background: #cfe2ff;
    color: #084298;
}

.order-status-banner.status-pagato {
    background: #d1e7dd;
    color: #0f5132;
}

.order-status-banner.status-spedito {
    background: #cff4fc;
    color: #055160;
}

.order-status-banner.status-fatturato {
    background: #fff3cd;
    color: #664d03;
}

.order-status-banner.status-annullato {
    background: #f8d7da;
    color: #721c24;
}

.status-icon {
    font-size: 2rem;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.info-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.order-section {
    margin-bottom: 30px;
}

.order-section h2, .order-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.products-table thead {
    background: #f8f9fa;
}

.products-table th,
.products-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.products-table tfoot td {
    padding-top: 15px;
    font-weight: 600;
}

.shipping-row {
    background: #fffacd;
}

.total-row td {
    font-size: 1.1rem;
    border-top: 2px solid #495057;
    padding-top: 15px;
}

.shipping-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.shipping-info-grid .info-item.full-width {
    grid-column: 1 / -1;
}

.btn-tracking {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.btn-tracking:hover {
    background: #0056b3;
}

.btn-download-mini, .btn-link-mini {
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.btn-download-mini {
    background: #28a745;
    color: white;
}

.btn-link-mini {
    background: #007bff;
    color: white;
}

.order-addresses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.address-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.address-box h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.address-box p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.order-notes {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #495057;
}

/* PROFILO */
.profile-form {
    max-width: 100%;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #212529;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #495057;
    box-shadow: 0 0 0 3px rgba(73, 80, 87, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 0.8rem;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-primary {
    background: #495057;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #343a40;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .customer-area-wrapper {
        grid-template-columns: 1fr;
    }
    
    .customer-sidebar {
        position: relative;
        top: 0;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .customer-content {
        padding: 20px;
    }
    
    .customer-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-stats,
    .info-grid,
    .form-grid-2,
    .order-info-grid,
    .shipping-info-grid,
    .order-addresses-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-table {
        font-size: 0.85rem;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }
}

/* ========================================
   SCROLL TO TOP BUTTON
   Aggiungi a themes/default/assets/css/style.css
   ======================================== */

#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #495057;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
}

#scrollToTop:hover {
    background: #343a40;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#scrollToTop:active {
    transform: translateY(-1px);
}
/* VARIANTE 2: Chevron (più elegante) */
#scrollToTop::before {
    content: '▲';
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    #scrollToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}


/* ========================================
   HERO SLIDER - CSS COMPLETO
   ======================================== */

/* RIMUOVI SPAZIO TRA HEADER E SLIDER */
main,
.main-content,
.page-content,
.container:first-of-type,
section:first-of-type {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* IMPORTANTE: Previeni scroll orizzontale */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Hero Slider Wrapper */
.hero-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    height: 500px;
    overflow: hidden;
}

* + .hero-slider-wrapper {
    margin-top: 0 !important;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 500ms ease, visibility 500ms ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Immagine slide */
.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay scuro */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

/* Contenuto testuale */
.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-content.text-left {
    justify-content: flex-start;
}

.hero-content.text-center {
    justify-content: center;
    text-align: center;
}

.hero-content.text-right {
    justify-content: flex-end;
    text-align: right;
}

.hero-content-inner {
    max-width: 700px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin: 0 0 30px 0;
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Frecce - NASCOSTE di default, VISIBILI al hover */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

/* Mostra frecce al hover dello slider */
.hero-slider-wrapper:hover .hero-prev,
.hero-slider-wrapper:hover .hero-next {
    opacity: 1;
    visibility: visible;
}

/* Hover sulla singola freccia */
.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

/* Dots navigazione */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-dot:hover {
    background: rgba(255,255,255,0.7);
}

/* Spazio DOPO lo slider */
.hero-slider-wrapper + * {
    margin-top: 40px;
}

/* Hero Slider - LARGHEZZA TOTALE (edge-to-edge) */
.hero-slider-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0 !important;
    margin-bottom: 0;
    padding: 0;
    height: 500px;
    overflow: hidden;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .hero-slider-wrapper {
        height: 300px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .hero-prev {
        left: 10px;
    }
    
    .hero-next {
        right: 10px;
    }
}
/* ========================================
   PAGINA CHI SIAMO - VERSIONE PROFESSIONALE
   Aggiungi a themes/default/assets/css/style.css
   ======================================== */

/* Hero Section - Compatta */
.about-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.about-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.about-hero p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
}

/* Statistiche - Compatte */
.about-stats {
    background: #f8f9fa;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* Sezioni contenuto - Compatte */
.about-section {
    padding: 40px 20px;
    margin-bottom: 30px;
}

.about-section-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #212529;
    font-weight: 700;
}

.about-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 25px;
}

.about-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Mission & Vision - Compatto */
.about-mission-vision {
    padding: 50px 20px;
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    margin-bottom: 40px;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.mission-box,
.vision-box {
    padding: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.mission-box .icon,
.vision-box .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.mission-box h3,
.vision-box h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.mission-box p,
.vision-box p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Valori - Compatto */
.about-values {
    padding: 50px 20px;
    margin-bottom: 40px;
}

.about-values h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: #212529;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #495057;
    transition: transform 0.2s ease;
}

.value-item:hover {
    transform: translateX(5px);
}

.value-icon {
    font-size: 1.5rem;
    color: #28a745;
    font-weight: 700;
    flex-shrink: 0;
}

.value-text {
    font-size: 0.95rem;
    color: #212529;
    font-weight: 500;
}

/* Team - Compatto */
.about-team {
    padding: 50px 20px;
    background: #f8f9fa;
    margin-bottom: 40px;
}

.about-team h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-member {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 15px;
}

.team-member h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.team-role {
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.team-bio {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
}

/* CTA - Compatto */
.about-cta {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    color: white;
}

.about-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-cta p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.about-cta .btn-primary {
    background: white;
    color: #343a40;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.about-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 250px;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .about-hero p {
        font-size: 1rem;
    }
    
    .stats-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-section h2,
    .about-values h2,
    .about-team h2,
    .about-cta h2 {
        font-size: 1.8rem;
    }
}
/* ========================================
   RECENSIONI PRODOTTO - CSS COMPATTO
   Sostituisci il vecchio CSS recensioni con questo
   ======================================== */

/* ===== SEZIONE RECENSIONI ===== */
.product-reviews {
    padding: 40px 0;
    background: #ffffff;
}

.product-reviews .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER RECENSIONI ===== */
.reviews-header {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.reviews-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* ===== RIEPILOGO RECENSIONI ===== */
.reviews-summary {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    align-items: center;
}

.reviews-rating-large {
    text-align: center;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 8px;
}

.rating-stars-large {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 8px;
}

.rating-stars-large .star {
    font-size: 1.3rem;
    color: #fbbf24;
}

.rating-count {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ===== DISTRIBUZIONE STELLE ===== */
.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rating-bar-row {
    display: grid;
    grid-template-columns: 40px 1fr 35px;
    gap: 10px;
    align-items: center;
}

.rating-bar-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
}

.rating-bar-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.rating-bar-count {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: right;
}

.no-reviews-text {
    color: #6b7280;
    font-size: 0.95rem;
    text-align: center;
    padding: 15px;
}

/* ===== FORM RECENSIONE ===== */
.review-form-container {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.review-form-container h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.review-form .form-group {
    margin-bottom: 18px;
}

.review-form label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.review-form textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.review-form small {
    display: block;
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ===== STAR RATING INPUT - FIX CLICKABLE ===== */
.star-rating-input {
    display: flex;
    gap: 4px;
}

.star-rating-input input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating-input label {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    margin: 0;
    display: inline-block;
    user-select: none;
}

.star-rating-input label:hover {
    transform: scale(1.15);
}

/* ===== ALERT BOXES ===== */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border: 1px solid;
}

.alert-success {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

/* ===== LISTA RECENSIONI - BOX UNICO ===== */
.reviews-list {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.review-card {
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.review-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.review-card:first-child {
    padding-top: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.review-author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

.review-date {
    font-size: 0.8rem;
    color: #6b7280;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 1rem;
    line-height: 1;
}

.star-full {
    color: #fbbf24;
}

.star-half {
    color: #fbbf24;
    opacity: 0.5;
}

.star-empty {
    color: #d1d5db;
}

.review-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.review-comment {
    color: #374151;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ===== RISPOSTA ADMIN ===== */
.admin-reply {
    margin-top: 12px;
    padding: 12px 15px;
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    border-radius: 4px;
}

.admin-reply strong {
    display: block;
    color: #1e40af;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.admin-reply p {
    color: #1e3a8a;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    padding: 10px 24px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .product-reviews {
        padding: 30px 0;
    }
    
    .reviews-header {
        padding: 20px;
    }
    
    .reviews-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .reviews-rating-large {
        padding-bottom: 15px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .rating-number {
        font-size: 2.5rem;
    }
    
    .review-form-container {
        padding: 20px;
    }
    
    .review-form-container h3 {
        font-size: 1rem;
    }
    
    .reviews-list {
        padding: 15px;
    }
    
    .review-card {
        padding: 15px 0;
    }
    
    .review-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .author-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .star-rating-input label {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .rating-bar-row {
        grid-template-columns: 35px 1fr 30px;
        gap: 8px;
    }
    
    .rating-bar-label,
    .rating-bar-count {
        font-size: 0.75rem;
    }
    
    .star-rating-input label {
        font-size: 1.6rem;
    }
}

/* ========================================
   CSS STELLE - CLASSI PER JAVASCRIPT
   Aggiungi ALLA FINE del CSS recensioni
   ======================================== */

/* Fix override colore stelle (batte il !important globale) */
.product-bottom .star-rating-input label,
.pm-center .star-rating-input label,
.star-rating-input label {
    color: #d1d5db !important;
}

/* Stella attiva (gialla) */
.product-bottom .star-rating-input label.star-active,
.pm-center .star-rating-input label.star-active,
.star-rating-input label.star-active {
    color: #fbbf24 !important;
}

/* Stella inattiva (grigia) */
.product-bottom .star-rating-input label.star-inactive,
.pm-center .star-rating-input label.star-inactive,
.star-rating-input label.star-inactive {
    color: #d1d5db !important;
}



/* =========================================================
   TRUST BADGES – GLASS FLOAT EDITION
========================================================= */

/* SEZIONE */
.trust-badges {
    margin-top: 20px;              /* distanza REALE dalla hero */
    padding: 0 0 40px;
    background: #ffffff;
    position: relative;
    z-index: 2;
}

/* CONTENITORE */
.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;

    /* effetto flottante */
    transform: translateY(-20px);
}

/* CARD – VETRO ULTRA */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;

    /* vetro MOLTO trasparente */
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(22px) saturate(190%);
    -webkit-backdrop-filter: blur(22px) saturate(190%);

    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);

    transition: all 0.35s ease;
}

/* HOVER */
.trust-badge:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.3);

    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* ICONA */
.trust-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.28);

    transition: transform 0.3s ease;
}

.trust-badge:hover .trust-icon {
    transform: scale(1.1);
}

.trust-icon svg {
    width: 30px;
    height: 30px;
}

/* COLORI ICONE */
.trust-icon-shipping {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.trust-icon-warranty {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
}

.trust-icon-payment {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
}

.trust-icon-support {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #fff;
}

/* TESTI */
.trust-content {
    flex: 1;
}

.trust-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.trust-text {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .trust-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
        transform: translateY(-16px);
    }
}

@media (max-width: 640px) {
    .trust-badges {
        margin-top: 20px;
        padding-bottom: 30px;
    }

    .trust-container {
        grid-template-columns: 1fr;
        gap: 18px;
        transform: translateY(-12px);
    }

    .trust-badge {
        padding: 18px;
        gap: 14px;
    }

    .trust-icon {
        width: 52px;
        height: 52px;
    }

    .trust-icon svg {
        width: 26px;
        height: 26px;
    }
}



/* =========================================================
   TRUST BADGES – ULTRA COMPACT GLASS (TESTO ALLINEATO)
========================================================= */

.trust-badges.trust-compact {
    padding: 14px 0;
    background: transparent;
}

.trust-badges.trust-compact .trust-container {
    width: 100%;
    max-width: 100%;
    margin: 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;

    align-items: stretch;
}

.trust-badges.trust-compact .trust-badge {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    overflow: hidden;              /* blocca sbordi */

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    height: 96px;

    padding: 10px 8px;
    gap: 6px;
    text-align: center;

    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(26px) saturate(200%);
    -webkit-backdrop-filter: blur(26px) saturate(200%);

    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);

    transition: all 0.25s ease;
}

.trust-badges.trust-compact .trust-badge:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.26);

    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* ICONA */
.trust-badges.trust-compact .trust-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.trust-badges.trust-compact .trust-icon svg {
    width: 16px;
    height: 16px;
}

/* TESTI: dentro le card, max righe, niente sbordi */
.trust-badges.trust-compact .trust-title,
.trust-badges.trust-compact .trust-text {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Titolo: max 2 righe */
.trust-badges.trust-compact .trust-title {
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    color: #111827;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Testo: max 2 righe */
.trust-badges.trust-compact .trust-text {
    font-size: 0.52rem;
    line-height: 1.15;
    margin: 0;
    color: #9ca3af;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .trust-badges.trust-compact .trust-container {
        gap: 8px;
    }

    .trust-badges.trust-compact .trust-badge {
        height: 92px;
        padding: 8px 6px;
    }

    .trust-badges.trust-compact .trust-icon {
        width: 26px;
        height: 26px;
    }

    .trust-badges.trust-compact .trust-icon svg {
        width: 14px;
        height: 14px;
    }

    .trust-badges.trust-compact .trust-title {
        font-size: 0.6rem;
    }

    .trust-badges.trust-compact .trust-text {
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .trust-badges.trust-compact .trust-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .trust-badges.trust-compact .trust-badge {
        height: 94px;
    }
}

/* =========================================
   DOWNLOAD PAGE – LISTA 2 COLONNE PULITA
   ========================================= */

/* griglia a 2 colonne */
.downloads-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1.5rem;
    margin-top: 2rem;
}

/* singolo elemento */
.download-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.4rem 1rem;

    padding: 1rem 1.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;

    /* BLOCCA QUALSIASI OVERFLOW */
    max-width: 100%;
    overflow: hidden;
}

/* titolo */
.download-item h3 {
    grid-column: 1 / 2;
    grid-row: 1;
    margin: 0;

    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;

    /* testo lungo → a capo */
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* descrizione */
.download-item p {
    grid-column: 1 / 2;
    grid-row: 2;
    margin: 0;

    font-size: 0.88rem;
    line-height: 1.45;
    color: #4b5563;

    /* testo lungo → a capo */
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* area azioni (1 o più link) */
.download-item .btn {
    grid-column: 2 / 3;
    grid-row: 1 / 3;

    align-self: center;
    white-space: nowrap;

    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;

    border-radius: 6px;
    background: #2563eb;
    color: #ffffff;

    transition: background 0.15s ease;
}

.download-item .btn:hover {
    background: #1d4ed8;
}

/* se in futuro hai DUE link (Scarica + Apri link) */
.download-item .btn + .btn {
    margin-left: 6px;
}

/* stato vuoto */
.container > p {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #6b7280;
}

/* responsive */
@media (max-width: 900px) {
    .downloads-list {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   DOWNLOAD BOX – EFFETTO VETRO OPACO
   ========================================= */

.download-item {
    /* base */
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;

    /* vetro */
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);

    /* profondità leggera */
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);

    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* hover molto soft */
.download-item:hover {
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}
/* =========================================
   DOWNLOAD BOX – VETRO OPACO CON SPESSORE
   ========================================= */

.download-item {
    /* VETRO OPACO (non bianco) */
    background: rgba(245, 247, 250, 0.55);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);

    /* STRUTTURA */
    border-radius: 12px;
    padding: 1rem 1.1rem;

    /* BORDO "VETRO" */
    border: 1px solid rgba(255, 255, 255, 0.55);

    /* SPESSORE / PROFONDITÀ */
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12),      /* ombra principale */
        0 2px 6px rgba(0, 0, 0, 0.08),        /* contatto */
        inset 0 1px 0 rgba(255, 255, 255, 0.65), /* luce superiore */
        inset 0 -1px 0 rgba(255, 255, 255, 0.15); /* profondità */

    /* STABILITÀ */
    max-width: 100%;
    overflow: hidden;

    transition: 
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

/* hover leggero, non “card animata” */
.download-item:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.16),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}
/* ========================================
   FIX STELLE RECENSIONI - Aggiungi al CSS
   Le stelle nelle recensioni visualizzate
   ======================================== */

/* ===== STELLE NELLE RECENSIONI (già salvate) ===== */

/* Stelle nel rating grande (header) */
.rating-stars-large .star {
    color: #fbbf24 !important;
}

.rating-stars-large .star-full {
    color: #fbbf24 !important;
}

.rating-stars-large .star-half {
    color: #fbbf24 !important;
    opacity: 0.5;
}

.rating-stars-large .star-empty {
    color: #d1d5db !important;
}

/* Stelle nelle singole recensioni */
.review-rating .star {
    color: #d1d5db !important;
}

.review-rating .star-full {
    color: #fbbf24 !important;
}

.review-rating .star-half {
    color: #fbbf24 !important;
    opacity: 0.5;
}

.review-rating .star-empty {
    color: #d1d5db !important;
}

/* Override per battere il colore nero globale */
.product-bottom .rating-stars-large .star,
.pm-center .rating-stars-large .star,
.product-bottom .review-rating .star,
.pm-center .review-rating .star {
    color: #d1d5db !important;
}

.product-bottom .rating-stars-large .star-full,
.pm-center .rating-stars-large .star-full,
.product-bottom .review-rating .star-full,
.pm-center .review-rating .star-full {
    color: #fbbf24 !important;
}

.product-bottom .rating-stars-large .star-empty,
.pm-center .rating-stars-large .star-empty,
.product-bottom .review-rating .star-empty,
.pm-center .review-rating .star-empty {
    color: #d1d5db !important;
}

/* ========================================
   NAVBAR CON MEGA MENU - COLOR FIX
   Navbar scura + mega menu vetro
   ======================================== */

/* ===== HEADER SOPRA TUTTO ===== */
.header {
    position: relative;
    z-index: 3000;  /* 🔧 Header sopra navbar e mega menu */
}

/* ===== NAVBAR PRINCIPALE - SCURA FORZATA ===== */
.main-navbar {
    background: #353535 !important;  /* 🔧 Forzato scuro */
    border-bottom: 1px solid #444 !important;
    position: relative;
    z-index: 2000;  /* 🔧 Navbar sopra mega menu */
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
    background: transparent;  /* 🔧 Container trasparente, solo navbar ha colore */
}

/* ===== ITEM NAVBAR ===== */
.navbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: #ffffff !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    background: transparent;
}

.navbar-item:hover {
    background: #444 !important;
    color: #ffffff !important;
}

/* ========================================
   FIX TASTO CATEGORIE - Area cliccabile unica
   Aggiungi questo CSS al file style.css
======================================== */

/* Tasto CATEGORIE - area cliccabile intera */
.navbar-categories {
    background: #2c2c2c !important;
    padding: 12px 24px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    
    /* ✅ FIX: Tutta l'area cliccabile */
    cursor: pointer !important;
    user-select: none !important;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-categories:hover,
.navbar-categories.active {
    background: #1a1a1a !important;
}

/* ✅ Icona, label e freccia NON cliccabili separatamente */
.navbar-categories .navbar-icon,
.navbar-categories .navbar-label,
.navbar-categories .navbar-arrow {
    pointer-events: none !important;
    user-select: none !important;
}

.navbar-categories .navbar-arrow {
    transition: transform 0.3s ease;
    margin-left: 4px;
}

/* Freccia ruota quando menu aperto */
.navbar-categories.active .navbar-arrow {
    transform: rotate(180deg);
}
/* Badge/Etichette */
.navbar-badge {
    position: absolute;
    top: 2px;
    right: 6px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.badge-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.badge-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.badge-yellow {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.badge-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.badge-purple {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0);
    }
}

/* ===== MEGA MENU DROPDOWN - EFFETTO VETRO ===== */
.mega-menu-dropdown {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    /* Effetto vetro fumé opaco */
    background: rgba(70, 70, 70, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    border-top: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);

    opacity: 0;
    visibility: hidden;
    /* 🔧 Transform viene impostato via JavaScript */
    transform: translateY(0);
    transition: opacity 0.3s ease, visibility 0.3s ease;

    z-index: 1500;  /* 🔧 Sotto navbar (2000) ma sopra hero (1000) */
    max-height: 0;
    overflow: hidden;
}

.mega-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    /* 🔧 Transform impostato da JS, qui solo max-height */
    max-height: 600px;
}

.mega-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 25px;
    padding: 25px;
}

/* ===== CATEGORIE COLUMNS ===== */
.mega-menu-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mega-menu-category {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.mega-menu-category-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.mega-menu-category-title:hover {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.mega-menu-subcategories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* 🔧 Nascoste di default */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 🔧 Mostra sottocategorie in hover sulla categoria */
.mega-menu-category:hover .mega-menu-subcategories {
    max-height: 500px;
    opacity: 1;
    margin-top: 6px;
}

.mega-menu-subcategories li a {
    display: block;
    padding: 3px 6px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.mega-menu-subcategories li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 10px;
}

/* ===== BANNER PROMO ===== */
.mega-menu-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.mega-menu-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.banner-content {
    position: relative;
    z-index: 1;
}

.mega-menu-banner h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.mega-menu-banner p {
    font-size: 0.85rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.banner-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.banner-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* ===== OVERLAY TRASPARENTE ===== */
.mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1400;  /* 🔧 Sotto mega menu (1500) */
}

.mega-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .mega-menu-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .navbar-container {
        flex-wrap: wrap;
    }

    .navbar-item {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .navbar-categories {
        padding: 10px 18px;
    }

    .mega-menu-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .mega-menu-categories {
        grid-template-columns: 1fr;
    }

    .mega-menu-banner {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-item {
        flex: 1 1 auto;
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .navbar-icon {
        font-size: 0.9rem;
    }

    .navbar-label {
        display: none;
    }

    .navbar-categories .navbar-label {
        display: inline;
    }

    .navbar-badge {
        top: 1px;
        right: 3px;
        font-size: 0.55rem;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .navbar-categories {
        flex: 1 0 100%;
        justify-content: center;
    }

    .navbar-item {
        flex: 1 1 50%;
    }
}

/* LOGO: resta largo 270px */
.logo img{
  width: 270px;
  height: auto;
  display: block;
}

/* LIMITA l’area cliccabile del logo alla riga alta 120px (search-bar) */
.search-bar { position: relative; }
.logo{
  max-height: 120px;     /* altezza reale della riga logo */
  overflow: hidden;      /* taglia solo la trasparenza in eccesso */
  display: flex;
  align-items: center;
  flex: 0 0 auto;        /* evita che si allarghi */
}

.logo a{
  display: block;
  line-height: 0;
}

/* MENU sempre sopra (anti overlay residuale) */
.mega-navbar, .mega-menu{
  position: relative;
  z-index: 50;
}

.logo{ z-index: 1; }

/* =====================================
   SHOP – VISTA COLONNA (LIST) – FIX FINALE
   ===================================== */

.shop-layout.is-list .product-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CARD = RIGA */
.shop-layout.is-list .product-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

/* LINK INFORMATIVO (IMG + INFO) */
.shop-layout.is-list .product-card .pc-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1 0%;
    min-width: 0;              /* 🔴 CHIAVE: evita collasso */
    text-decoration: none;
    color: inherit;
}

/* IMMAGINE – SINISTRA */
.shop-layout.is-list .product-card .pc-image {
    flex: 0 0 220px;
    max-width: 220px;
    height: 100%;
}

.shop-layout.is-list .product-card .pc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* INFO – CENTRO (FORZATA VISIBILE) */
.shop-layout.is-list .product-card .pc-info {
    flex: 1 1 auto;
    min-width: 0;              /* 🔴 CHIAVE */
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shop-layout.is-list .product-card .pc-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    white-space: normal;
}

.shop-layout.is-list .product-card .pc-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* AZIONI – DESTRA */
.shop-layout.is-list .product-card .pc-actions {
    flex: 0 0 220px;
    max-width: 220px;
    padding: 16px 20px;
    border-left: 1px solid #eee;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
}

/* PREZZI */
.shop-layout.is-list .pc-price .current {
    font-size: 22px;
    font-weight: 700;
}

.shop-layout.is-list .pc-price .old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 6px;
}
/* =====================================
   SHOP – MOBILE: FORZA SOLO VISTA GRIGLIA
   ===================================== */

@media (max-width: 768px) {

    /* NASCONDE toggle Griglia / Colonna */
    .shop-topbar .view-toggle {
        display: none !important;
    }

    /* IGNORA COMPLETAMENTE la vista list */
    .shop-layout.is-list {
        display: block;
    }

    /* FORZA SEMPRE layout GRIGLIA */
    .shop-layout.is-list .product-grid,
    .shop-layout.is-grid .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* card in stile griglia (annulla flex della list) */
    .shop-layout.is-list .product-card,
    .shop-layout.is-grid .product-card {
        display: block !important;
    }

    /* annulla qualsiasi layout "a righe" */
    .shop-layout.is-list .pc-link {
        display: block !important;
    }

    .shop-layout.is-list .pc-actions {
        border-left: none;
        border-top: none;
        align-items: stretch;
    }
}
/* HEADER stesso colore del FOOTER */
.site-header,
.header,
header {
    background: #1f1f1f !important;
}

/* ========================================
   FIX HOVER NAVBAR - Rosso invece di grigio
   Sostituisci in style.css
======================================== */

/* TROVA questa riga (circa riga 9750): */
.navbar-item:hover {
    background: #444 !important;
    color: #ffffff !important;
}

/* SOSTITUISCI CON: */
.navbar-item:hover {
    background: #c0392b !important;  /* Rosso */
    color: #ffffff !important;
}

/* Anche per navbar-categories hover */
.navbar-categories:hover,
.navbar-categories.active {
    background: #c0392b !important;  /* Rosso */
}

/* ========================================
   WISHLIST - LISTA DEI DESIDERI
======================================== */

/* Pulsante cuore sulla product card */
.pc-wishlist-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 15;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
/* Posizionamento relativo al contenitore immagine */
.pc-image {
    position: relative;
}

.pc-wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pc-wishlist-btn .heart-icon {
    fill: transparent;
    stroke: #555;
    stroke-width: 2;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.pc-wishlist-btn:hover .heart-icon {
    stroke: #e53935;
}

/* Stato attivo (in wishlist) */
.pc-wishlist-btn.is-wishlisted .heart-icon {
    fill: #e53935;
    stroke: #e53935;
}

.pc-wishlist-btn.is-wishlisted:hover .heart-icon {
    fill: #c62828;
    stroke: #c62828;
}

/* Animazione al click */
.pc-wishlist-btn.animating {
    animation: wishlist-pop 0.3s ease;
}

@keyframes wishlist-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Product card deve essere position relative */
.product-card {
    position: relative;
}

/* ========================================
   WISHLIST PAGE - PAGINA LISTA DESIDERI
======================================== */

.wishlist-page {
    padding: 30px 0;
}

.wishlist-page h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111;
}

.wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 20px 0;
}

.wishlist-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.wishlist-empty h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 12px;
}

.wishlist-empty p {
    color: #666;
    margin-bottom: 24px;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* Pulsante rimuovi specifico per pagina wishlist */
.wishlist-remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 100;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #999;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.wishlist-remove-btn:hover {
    background: #e53935;
    color: #fff;
}

/* Assicura che la card wishlist sia position relative */
.wishlist-card {
    position: relative;
}

.wishlist-card .pc-link {
    pointer-events: auto;
}

.wishlist-remove-btn:hover {
    background: #e53935;
    color: #fff;
}

/* ========================================
   AREA CLIENTI - SEZIONE WISHLIST
======================================== */

.wishlist-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.wishlist-section-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.wishlist-count {
    background: #f3f4f6;
    color: #555;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
}

/* Toast notification per wishlist */
.wishlist-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.wishlist-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.wishlist-toast.success {
    background: #2e7d32;
}

.wishlist-toast.removed {
    background: #616161;
}

/* Header wishlist counter badge */
.wishlist-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-wishlist {
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .pc-wishlist-btn {
        width: 32px;
        height: 32px;
    }
    
    .pc-wishlist-btn .heart-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   NEWSLETTER
======================================== */
.footer-newsletter {
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}

.newsletter-box {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-box h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.newsletter-box p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.newsletter-form input[type="email"] {
    flex: 1;
    max-width: 300px;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter-form button {
    padding: 12px 24px;
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: #c62828;
}

.newsletter-message {
    margin-top: 12px;
    font-size: 14px;
    min-height: 20px;
}

.newsletter-message.success {
    color: #4caf50;
}

.newsletter-message.error {
    color: #f44336;
}

@media (max-width: 480px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        max-width: 100%;
    }
}
/* =====================================================
   TICKET ASSISTENZA - AREA CLIENTI
===================================================== */

.ticket-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.ticket-header {
    background: #fff;
    border: 1px solid #ddd;
    padding: 24px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.ticket-header h1 {
    font-size: 1.5rem;
    margin: 0 0 12px 0;
    color: #111;
}

.ticket-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.9rem;
}

.ticket-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ticket-badge-success { background: #d4edda; color: #155724; }
.ticket-badge-info { background: #cce5ff; color: #004085; }
.ticket-badge-warning { background: #fff3cd; color: #856404; }
.ticket-badge-secondary { background: #e9ecef; color: #6c757d; }

.ticket-messages {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.ticket-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.ticket-message-customer {
    background: #e3f2fd;
    margin-left: 40px;
}

.ticket-message-admin {
    background: #e8f5e9;
    margin-right: 40px;
}

.ticket-message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.ticket-message-sender {
    font-weight: 600;
}

.ticket-message-customer .ticket-message-sender { color: #1565c0; }
.ticket-message-admin .ticket-message-sender { color: #2e7d32; }

.ticket-message-date {
    color: #888;
}

.ticket-message-content {
    line-height: 1.6;
    white-space: pre-wrap;
    color: #333;
}

.ticket-reply-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 24px;
}

.ticket-reply-form h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    color: #111;
}

.ticket-reply-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.ticket-reply-form textarea:focus {
    outline: none;
    border-color: #c62828;
}

.ticket-reply-form button {
    margin-top: 12px;
    padding: 12px 24px;
    background: #c62828;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.ticket-reply-form button:hover {
    background: #b71c1c;
}

.ticket-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #666;
    text-decoration: none;
}

.ticket-back-link:hover {
    color: #111;
}

.ticket-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.ticket-alert-success { background: #d4edda; color: #155724; }
.ticket-alert-error { background: #f8d7da; color: #721c24; }

.ticket-closed-notice {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    color: #666;
    border: 1px solid #ddd;
}

/* Lista ticket */
.ticket-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.ticket-header-bar h2 {
    margin: 0;
    color: #111;
}

.btn-new-ticket {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #c62828;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.btn-new-ticket:hover {
    background: #b71c1c;
}

.ticket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: border-color 0.2s;
}

.ticket-item:hover {
    border-color: #c62828;
}

.ticket-info {
    flex: 1;
}

.ticket-number {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 4px;
}

.ticket-subject {
    font-weight: 600;
    margin-bottom: 4px;
}

.ticket-subject a {
    color: #111;
    text-decoration: none;
}

.ticket-subject a:hover {
    color: #c62828;
}

.ticket-item-meta {
    font-size: 0.85rem;
    color: #666;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ticket-action a {
    padding: 8px 16px;
    background: #f5f5f5;
    color: #111;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid #ddd;
}

.ticket-action a:hover {
    background: #eee;
}

.ticket-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.ticket-empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Form nuovo ticket */
.ticket-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.ticket-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 32px;
}

.ticket-form h1 {
    margin: 0 0 24px 0;
    font-size: 1.5rem;
    color: #111;
}

.ticket-form-group {
    margin-bottom: 20px;
}

.ticket-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.ticket-form-group input,
.ticket-form-group select,
.ticket-form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    font-family: inherit;
    font-size: 1rem;
}

.ticket-form-group input:focus,
.ticket-form-group select:focus,
.ticket-form-group textarea:focus {
    outline: none;
    border-color: #c62828;
}

.ticket-form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.ticket-form-group small {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 0.85rem;
}

.ticket-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .ticket-form-row {
        grid-template-columns: 1fr;
    }
    
    .ticket-message-customer {
        margin-left: 0;
    }
    
    .ticket-message-admin {
        margin-right: 0;
    }
}

.ticket-info-box {
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
    padding: 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
}

.ticket-info-box p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}
/* FIX LOGO HEADER - evita che navbar copra il logo */
.header {
    position: relative;
    z-index: 2001;
}

.logo {
    position: relative;
    z-index: 2002;
}
/* FIX LOGO - Permette al logo di uscire dal contenitore */
.header,
.header .container,
.header .search-bar,
.header .logo,
.header .logo a {
    overflow: visible !important;
}

.header .logo img {
    height: 200px !important;
    width: auto !important;
    position: relative;
    z-index: 9999;
}

.header .topbar {
    position: relative;
    z-index: 1;
}

.header .search-bar {
    position: relative;
    z-index: 10;
}
.header .topbar {
    background: transparent !important;
}
/* Stelline recensioni card */
.pc-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 8px;
}

.pc-rating .star {
    color: #ddd;
    font-size: 14px;
}

.pc-rating .star.filled {
    color: #f5a623;
}

.pc-rating-count {
    font-size: 12px;
    color: #888;
    margin-left: 6px;
}




  /* Navbar scrollabile orizzontale */
  .main-navbar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .main-navbar::-webkit-scrollbar {
    display: none;
  }
  
  .main-navbar .navbar-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    min-width: max-content;
  }
  
  .main-navbar .navbar-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .main-navbar .navbar-icon {
    font-size: 1rem;
  }
  
  .main-navbar .navbar-label {
    display: inline;
    font-size: 0.7rem;
  }
  
  .main-navbar .navbar-arrow {
    font-size: 0.6rem;
  }
}

@media (max-width: 600px) {
  .main-navbar .navbar-item {
    padding: 0.5rem 0.75rem;
  }
  
  .main-navbar .navbar-label {
    font-size: 0.65rem;
  }
}

/* MOBILE LOGO FIX */
@media (max-width: 768px) {

    .header,
    .header .container,
    .header .search-bar,
    .header .logo,
    .header .logo a {
        overflow: visible !important;
    }

    .header .logo img {
        height: 60px !important;   /* LOGO MOBILE */
        width: auto !important;
        position: relative;
        z-index: 9999;
    }

    .header .topbar {
        position: relative;
        z-index: 1;
        background: transparent !important;
    }

    .header .search-bar {
        position: relative;
        z-index: 1;
    }
}

/* ================================================================================
   SOCIAL ICONS FOOTER - TEMA DEFAULT
   Palette: Sfondo scuro #2d3748, Rosso accento #ef4444, Bianco #ffffff
   Aggiungere nel file style.css nella sezione FOOTER
   ================================================================================ */

/* Social nella prima colonna del footer */
.footer-col .footer-social {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col .footer-social h4 {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.footer-col .social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.footer-col .social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #9ca3af;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.footer-col .social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-col .social-icon svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

/* Hover effects - Rosso accento */
.footer-col .social-icon:hover {
    transform: translateY(-3px);
    border-color: #ef4444;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
}

.footer-col .social-icon:hover::before {
    opacity: 1;
}

.footer-col .social-icon[data-platform="facebook"]:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
    box-shadow: 0 6px 15px rgba(24, 119, 242, 0.4);
}

.footer-col .social-icon[data-platform="instagram"]:hover {
    background: linear-gradient(135deg, #E4405F, #C13584);
    color: white;
    border-color: #E4405F;
    box-shadow: 0 6px 15px rgba(228, 64, 95, 0.4);
}

.footer-col .social-icon[data-platform="twitter"]:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
    box-shadow: 0 6px 15px rgba(29, 161, 242, 0.4);
}

.footer-col .social-icon[data-platform="youtube"]:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4);
}

.footer-col .social-icon[data-platform="tiktok"]:hover {
    background: #000000;
    color: white;
    border-color: #000000;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.footer-col .social-icon[data-platform="linkedin"]:hover {
    background: #0A66C2;
    color: white;
    border-color: #0A66C2;
    box-shadow: 0 6px 15px rgba(10, 102, 194, 0.4);
}

.footer-col .social-icon[data-platform="pinterest"]:hover {
    background: #E60023;
    color: white;
    border-color: #E60023;
    box-shadow: 0 6px 15px rgba(230, 0, 35, 0.4);
}

.footer-col .social-icon[data-platform="whatsapp"]:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.footer-col .social-icon:hover svg {
    transform: scale(1.1);
}

/* ================================================================================
   RESPONSIVE - TABLET (768px - 1200px)
   ================================================================================ */
@media (max-width: 1200px) {
    .footer-col .footer-social {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .footer-col .footer-social h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-col .social-icons {
        gap: 8px;
    }
    
    .footer-col .social-icon {
        width: 38px;
        height: 38px;
    }
    
    .footer-col .social-icon svg {
        width: 17px;
        height: 17px;
    }
}

/* ================================================================================
   RESPONSIVE - MOBILE (< 768px)
   ================================================================================ */
@media (max-width: 768px) {
    /* Footer columns diventano verticali */
    .footer-columns {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-col {
        width: 100%;
        text-align: center;
    }
    
    /* Social centrati su mobile */
    .footer-col .footer-social {
        margin-top: 20px;
        padding-top: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-col .footer-social h4 {
        font-size: 14px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .footer-col .social-icons {
        justify-content: center;
        gap: 10px;
    }
    
    .footer-col .social-icon {
        width: 42px;
        height: 42px;
    }
    
    .footer-col .social-icon svg {
        width: 19px;
        height: 19px;
    }
}

/* ================================================================================
   RESPONSIVE - MOBILE SMALL (< 480px)
   ================================================================================ */
@media (max-width: 480px) {
    .footer-col .footer-social {
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .footer-col .footer-social h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .footer-col .social-icons {
        gap: 8px;
    }
    
    .footer-col .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .footer-col .social-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ================================================================================
   FIX ALLINEAMENTO - IMPORTANTE!
   ================================================================================ */

/* Assicura che le icone siano sempre allineate a sinistra su desktop */
@media (min-width: 769px) {
    .footer-col .social-icons {
        justify-content: flex-start !important;
    }
}

/* Assicura che le icone siano centrate su mobile */
@media (max-width: 768px) {
    .footer-col .social-icons {
        justify-content: center !important;
    }
}

/* ================================================================================
   FINE CSS SOCIAL DEFAULT
   ================================================================================ */