/*
 * CSS consolidato 883collection.it
 * Generato il 23/09/2026 unendo i 58 snippet CSS di WPCode
 * caricati nell'head, NELL'ORDINE ESATTO in cui venivano stampati
 * (ordine di ID decrescente, come verificato sull'HTML reale).
 * NON riordinare i blocchi: l'ordine determina chi vince i conflitti.
 *
 * CORREZIONE 23/09 sera: dallo snippet 2887 e' stata rimossa una 'q'
 * orfana rimasta in coda per errore. In un blocco <style> separato era
 * innocua; in un file unico veniva letta come inizio di selettore e
 * annullava la regola successiva (.vk_posts.next-prev), facendo
 * ricomparire il box precedente/successivo del tema.
 */

/* ==========================================================
   WPCode id 9594 — Timeline (spazi allineamento)
   ========================================================== */
/* Timeline — le card seguono la posizione del filtro (niente centratura/restringimento) + card leggermente più grandi da desktop */

.timeline-container {
  max-width: none !important;
  margin: 50px 0 0 0 !important;
  padding: 0 !important;
}

@media screen and (min-width: 769px) {
  .timeline-items {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)) !important;
    gap: 20px !important;
  }
}

/* ==========================================================
   WPCode id 9512 — Ombra slider home
   ========================================================== */
#metaslider-id-1229 .flex-viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.20) 100%);
  pointer-events: none;
  z-index: 1;
}
#metaslider-id-1229 .caption-wrap {
  z-index: 2;
}
#metaslider-id-1229 .flex-control-nav {
  z-index: 3;
}

/* ==========================================================
   WPCode id 9338 — Rarità articolo CSS
   ========================================================== */
.rarity-box {
    background: #111;
    color: #fff;

    /* 🔥 dimensione più compatta */
    padding: 10px 12px;
    margin: 15px 0;

    border-radius: 8px;

    /* ❌ niente centratura */
    max-width: 420px;
    width: fit-content;

    font-size: 13px;
    line-height: 1.3;

    box-sizing: border-box;
}

/* titolo più discreto */
.rarity-box strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
}

/* testo secondario */
.rarity-box small {
    display: block;
    margin-top: 4px;
    opacity: 0.75;
    font-size: 12px;
}

/* rarità più “badge” */
.rarity-very-rare { color: #ff3b30; font-weight: 600; }
.rarity-rare { color: #ff9500; font-weight: 600; }
.rarity-common { color: #ffd60a; font-weight: 600; }
.rarity-very-common { color: #34c759; font-weight: 600; }

/* ==========================================================
   WPCode id 9052 — Menu no animazione
   ========================================================== */
.global-nav,
.global-nav * {
    transition: none !important;
    animation: none !important;
}

/* ==========================================================
   WPCode id 9048 — Timeline ordine
   ========================================================== */
.timeline-filter {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

#timeline-order {
  padding: 10px 14px; /* 👈 aumenta questo */
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  max-width: 200px;
  height: 42px; /* 👈 opzionale per controllo preciso */
}

/* MOBILE */
@media (max-width: 768px) {
  #timeline-order {
    max-width: 200px;
  }
}

/* ==========================================================
   WPCode id 8998 — Fix Password Occhio Login
   ========================================================== */
/* =========================
   BASE PASSWORD FIELD
   ========================= */

.password-input-group {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.password-input-group input {
    width: 100% !important;
    padding-right: 45px !important;
    box-sizing: border-box;
}

/* =========================
   ICONA OCCHIO (BASE)
   ========================= */

.password-input-group .password_preview {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;

    transform: translateY(-50%) !important;

    cursor: pointer;
    z-index: 2;
    font-size: 18px !important;
    line-height: 1 !important;
}

/* =========================
   FIX SOLO LOGIN (HTML SPORCO)
   ========================= */

form.login .password-input-group p {
    margin: 0 !important;
    padding: 0 !important;
}

form.login .password-input-group br {
    display: none !important;
}

/* =========================
   FIX MOBILE LOGIN
   ========================= */

@media screen and (max-width: 768px) {

    form.login .password-input-group .password_preview {
        transform: translateY(-50%) !important;
    }

}

/* =========================
   FIX SPECIFICO PAGINA 47
   "La mia collezione"
   ========================= */

body.page-id-47 .password-input-group .password_preview {
    transform: translateY(-80%) !important;
}

/* ==========================================================
   WPCode id 8972 — Titoli GDPR mobile
   ========================================================== */
@media (max-width: 768px) {
  body.page-id-2669 .main-header h1,
  body.page-id-3 .main-header h1,
  body.page-id-2674 .main-header h1 {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
}

/* ==========================================================
   WPCode id 8970 — Icona Caricamento nel pulsante articoli
   ========================================================== */
.simplefavorite-button {
    position: relative !important;
}

.simplefavorite-button.sf-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* contenitore spinner */
.simplefavorite-button.sf-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: rgba(0,0,0,0.8);
    border-radius: 50%;

    position: absolute;
    right: -22px;
    top: 50%;

    /* SOLO centratura qui */
    transform: translateY(-50%);

    animation: spin 0.8s linear infinite;
}

/* ROTAZIONE SENZA CONFLITTI */
@keyframes spin {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* ==========================================================
   WPCode id 8904 — Distanza voci menu dispositivi
   ========================================================== */
/* ==========================================================================
   MASTER CSS: NAVIGAZIONE (AUMENTO FONT SU FASCIA 992–1080)
   ========================================================================== */

/* -----------------------------------------------------------
   A. SCHERMI PC E LAPTOP (DA 992px IN SU)
----------------------------------------------------------- */
@media screen and (min-width: 992px) {

    #site-header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: auto;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    #global-nav, .global-nav {
        display: block !important;
        display: flex !important;
        align-items: center !important;
        height: 100%;
    }

    div#vk-mobile-nav-menu-btn,
    .vk-mobile-nav-menu-btn {
        display: none !important;
    }

    .global-nav-list > li > a,
    .global-nav-name {
        font-weight: 700 !important;
        line-height: 1 !important;
        transition: all 0.3s ease;
    }

    .global-nav-list {
        display: flex;
        align-items: center;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* -------------------------------
       FASCIA 992px - 1080px (FIX LOGO VISIBILE)
    ------------------------------- */
    @media screen and (min-width: 992px) and (max-width: 1080px) {

        .global-nav-list > li > a,
        .global-nav-name {
            font-size: 15px !important; /* RIDOTTO per evitare overflow */
        }

        .global-nav-list {
            gap: 6px !important; /* riduce larghezza totale menu */
        }
    }

    /* -------------------------------
       FASCIA MEDIA (1081px - 1280px)
    ------------------------------- */
    @media screen and (min-width: 1081px) and (max-width: 1280px) {

        .global-nav-list > li > a,
        .global-nav-name {
            font-size: 17.5px !important;
        }
    }

    /* -------------------------------
       SCHERMI GRANDI (1281px+)
    ------------------------------- */
    @media screen and (min-width: 1281px) {

        .global-nav-list > li > a,
        .global-nav-name {
            font-size: 17px !important;
        }
    }
}


/* -----------------------------------------------------------
   B. MOBILE E TABLET
----------------------------------------------------------- */
@media screen and (max-width: 991px) {

    #global-nav .global-nav-list { display: none !important; }

    div#vk-mobile-nav-menu-btn,
    .vk-mobile-nav-menu-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;

        position: absolute !important;
        top: 25px !important;
        left: 20px !important;

        width: 45px !important;
        height: 40px !important;

        background-color: #FFE100 !important;
        border: 2px solid #000 !important;
        border-radius: 6px !important;

        z-index: 999999 !important;

        font-size: 0 !important;
        color: transparent !important;

        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }

    div#vk-mobile-nav-menu-btn i,
    div#vk-mobile-nav-menu-btn span {
        display: none !important;
    }

    div#vk-mobile-nav-menu-btn::before,
    div#vk-mobile-nav-menu-btn::after {
        content: "" !important;
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        width: 22px !important;
        height: 3px !important;
        background-color: #000 !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
    }

    div#vk-mobile-nav-menu-btn:not(.vk-menu-acc-active)::after {
        transform: translate(-50%, -50%) !important;
        box-shadow: 0 -7px 0 #000, 0 7px 0 #000 !important;
    }

    div#vk-mobile-nav-menu-btn.vk-menu-acc-active::after {
        box-shadow: none !important;
        transform: translate(-50%, -50%) rotate(45deg) !important;
    }

    div#vk-mobile-nav-menu-btn.vk-menu-acc-active::before {
        opacity: 1 !important;
        transform: translate(-50%, -50%) rotate(-45deg) !important;
    }

    nav#global-nav { padding-top: 20px !important; }
    ul.vk-menu-acc { margin-top: 60px !important; }
}
@media screen and (min-width: 1081px) and (max-width: 1199px) {

    /* HEADER: garantisce spazio reale al logo */
    #site-header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    /* LOGO FORZATO VISIBILE E NON COMPRESSO */
    .site-header-logo,
    .custom-logo-link {
        flex: 0 0 auto !important;
        max-width: 180px; /* evita che il tema lo schiacci */
        overflow: visible;
    }

    /* NAV: lascia spazio al logo */
    #global-nav,
    .global-nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* MENU LEGGERMENTE PIÙ COMPATTO SOLO QUI */
    #global-nav .global-nav-list {
        gap: 6px !important;
    }

    #global-nav .global-nav-list > li > a,
    #global-nav .global-nav-name {
        font-size: 14px !important;
        white-space: nowrap;
    }
}
@media screen and (min-width: 1102px) and (max-width: 1199px) {

    /* voci leggermente più grandi */
    #global-nav .global-nav-list > li > a,
    #global-nav .global-nav-name {
        font-size: 15px !important;
        line-height: 1;
        white-space: nowrap;
    }

    /* spazi leggermente più comodi ma controllati */
    #global-nav .global-nav-list {
        gap: 8px !important;
    }
}
@media screen and (min-width: 1083px) and (max-width: 1100px) {

    #global-nav .global-nav-list > li > a,
    #global-nav .global-nav-name {
        font-size: 14.5px !important; /* leggermente più grande */
        line-height: 1;
        white-space: nowrap;
    }

    /* mantiene equilibrio senza allargare troppo */
    #global-nav .global-nav-list {
        gap: 6px !important;
    }
}
@media screen and (max-width: 991px) {

    /* CONTAINER BURGER */
    div#vk-mobile-nav-menu-btn,
    .vk-mobile-nav-menu-btn {
        position: absolute !important;
        top: 25px !important;
        left: 20px !important;

        width: 45px !important;
        height: 40px !important;

        background-color: #FFE100 !important;
        border: 2px solid #000 !important;
        border-radius: 6px !important;

        z-index: 999999 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        font-size: 0 !important;
        color: transparent !important;
    }

    /* NASCONDE QUALSIASI ICONA DEL TEMA */
    div#vk-mobile-nav-menu-btn i,
    div#vk-mobile-nav-menu-btn span {
        display: none !important;
    }

    /* STATO CHIUSO = 3 LINEE PERFETTE */
    div#vk-mobile-nav-menu-btn:not(.vk-menu-acc-active)::after {
        content: "" !important;
        position: absolute !important;
        width: 22px !important;
        height: 3px !important;
        background: #000 !important;
        border-radius: 2px !important;

        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;

        box-shadow:
            0 -7px 0 #000,
            0 7px 0 #000 !important;
    }

    /* STATO APERTO = X (NON TOCCARE LA LOGICA, SOLO VISIBILITÀ) */
    div#vk-mobile-nav-menu-btn.vk-menu-acc-active::before,
    div#vk-mobile-nav-menu-btn.vk-menu-acc-active::after {
        content: "" !important;
        position: absolute !important;
        width: 22px !important;
        height: 3px !important;
        background: #000 !important;
        border-radius: 2px !important;
        left: 50% !important;
        top: 50% !important;
    }

    div#vk-mobile-nav-menu-btn.vk-menu-acc-active::before {
        transform: translate(-50%, -50%) rotate(45deg) !important;
    }

    div#vk-mobile-nav-menu-btn.vk-menu-acc-active::after {
        transform: translate(-50%, -50%) rotate(-45deg) !important;
        box-shadow: none !important;
    }
}
@media screen and (max-width: 991px) {

    /* bottone base */
    div#vk-mobile-nav-menu-btn,
    .vk-mobile-nav-menu-btn {
        position: absolute !important;
        top: 25px !important;
        left: 20px !important;

        width: 45px !important;
        height: 40px !important;

        background-color: #FFE100 !important;
        border: 2px solid #000 !important;
        border-radius: 6px !important;

        z-index: 999999 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        font-size: 0 !important;
        color: transparent !important;
    }

    /* elimina icone del tema */
    div#vk-mobile-nav-menu-btn i,
    div#vk-mobile-nav-menu-btn span {
        display: none !important;
    }

    /* NON tocchiamo più ::before / ::after del tema */
    /* lasciamo gestire la X al tema stesso */

    /* elimina SOLO eventuali elementi grafici interni */
    div#vk-mobile-nav-menu-btn * {
        background-image: none !important;
        box-shadow: none !important;
        border: none !important;
    }
}
@media screen and (max-width: 991px) {

    /* mantiene intatta la X del tema */
    div#vk-mobile-nav-menu-btn::before,
    div#vk-mobile-nav-menu-btn::after {
        all: unset !important;
    }

    /* ricostruiamo SOLO le 3 linee quando è chiuso */
    div#vk-mobile-nav-menu-btn:not(.vk-menu-acc-active) {
        position: relative;
    }

    div#vk-mobile-nav-menu-btn:not(.vk-menu-acc-active)::after {
        content: "" !important;
        position: absolute !important;
        width: 22px !important;
        height: 3px !important;
        background: #000 !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;

        box-shadow:
            0 -7px 0 #000,
            0 7px 0 #000 !important;
    }
}

/* ==========================================================
   WPCode id 8898 — Bio e Link pagina Utente
   ========================================================== */
/* =========================
   PROFILO PUBBLICO
   ========================= */
.public-profile-link-box h4,
.public-profile-link-box p,
.public-profile-link-box .public-profile-link {
    padding-left: 12px;
}

.public-profile-link-box .copy-profile-link {
    display: inline-block;
    background: #000;
    color: #fff;
    border: 2px solid #000;

    padding: 10px 18px;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 400;
    cursor: pointer;

    margin-left: 12px;
    transition: all 0.3s ease;
}

/* =========================
   TITOLI - FIX SOLO MOBILE
   ========================= */
@media (max-width: 768px) {
    .public-profile-link-box h4,
    .user-bio-editor h4 {
        font-size: 18px !important;
    }
}

/* =========================
   BIO
   ========================= */
.user-bio-editor {
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
}

/* label */
.user-bio-editor label {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #000;
    margin: 0 0 14px 0;
    display: block;
}

/* textarea */
.user-bio-editor textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 10px;
}

/* bottone */
.user-bio-editor button {
    display: inline-block;
    background: #000;
    color: #fff;
    border: 2px solid #000;

    padding: 15px 18px;
    border-radius: 6px;

    font-size: 14px;
    font-weight: 400;
    cursor: pointer;

    transition: all 0.3s ease;
}

/* hover */
.user-bio-editor button:hover {
    background: #FFE102;
    border-color: #FFE102;
    color: #000;
}

/* ==========================================================
   WPCode id 8875 — Timeline
   ========================================================== */
/* =========================================
   TIMELINE 883 - VERSIONE STABILE
   ========================================= */

.timeline-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    overflow: visible !important;
    transform: none !important;
}

/* =========================================
   ANNO
   ========================================= */

.timeline-year {
    padding-top: 40px;
}

.timeline-year:first-of-type {
    padding-top: 0;
}

.timeline-year h2 {
    font-size: 28px;
    margin-bottom: 20px;
    border-left: 4px solid #000;
    padding-left: 10px;
    font-weight: 700;
}

/* =========================================
   GRIGLIA
   ========================================= */

.timeline-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

/* =========================================
   ITEM BASE
   ========================================= */

.timeline-item {
    text-align: center;
    padding: 5px;
}

/* LINK */
.timeline-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    padding: 5px;
    transition: all 0.25s ease;
}

/* =========================================
   DESKTOP HOVER
   ========================================= */

@media screen and (min-width: 769px) {
    .timeline-item a:hover {
        background-color: #FFE102;
        color: #000000;
        transform: translateY(-2px);
    }
}

/* =========================================
   MOBILE / TABLET (TAP EFFECT = HOVER PC)
   ========================================= */

@media screen and (max-width: 768px) {

    .timeline-item a.is-tapped {
        background-color: #FFE102 !important;
        color: #000000 !important;
        transform: translateY(-2px);
    }

    .timeline-item a.is-tapped .timeline-title {
        color: #000000 !important;
    }

    .timeline-item a {
        -webkit-tap-highlight-color: transparent;
        transition: all 0.25s ease;
    }
}

/* =========================================
   IMMAGINI
   ========================================= */

.timeline-item img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* =========================================
   TITOLO
   ========================================= */

.timeline-title {
    display: block;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.3;
    word-break: break-word;
    transition: color 0.2s ease;
}

/* ==========================================================
   WPCode id 8873 — Timeline BREAD
   ========================================================== */
.breadcrumb-list a {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: #000000 !important;
}

.breadcrumb-list a:hover {
    color: #000000 !important;
}

/* ==========================================================
   WPCode id 8843 — Immagine collezione pagina Utenti
   ========================================================== */
/* =========================================
   PAGINA UTENTE - COLLEZIONE PUBBLICA
   ========================================= */

.public-collection-wrapper {
    text-align: center;
    margin-top: 30px;
}

/* TITOLO */
.public-collection-title {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 20px;
}

/* IMMAGINE BASE */
.public-collection-image img {
    width: 100%;
    max-width: 520px;

    height: auto;

    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    display: block;
    margin: 0 auto;
}

/* EMPTY STATE */
.public-collection-empty {
    font-size: 15px;
    color: #999;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    display: inline-block;
}

/* DESKTOP SMART CONTROL */
@media screen and (min-width: 768px) {
    .public-collection-image img {
        max-width: 600px;
        max-height: 450px; /* ✔ evita immagini verticali enormi */
        width: auto;
        height: auto;
    }
}

/* ==========================================================
   WPCode id 8829 — Immagine collezione pagina Account
   ========================================================== */
/* =========================================
   STILE PROFILO + UPLOAD (COERENTE & CLEAN)
   ========================================= */

/* CARD PROFILO */
.user-profile-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    margin: 25px auto 5px auto !important;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* CARD UPLOAD */
.user-upload-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    margin: 30px auto;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* SICUREZZA ALLINEAMENTO */
.user-upload-card * {
    text-align: left;
}

/* =========================
   TITOLO SEZIONE (FIX)
   ========================= */
.upload-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin-bottom: 25px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-align: left !important;
}

/* PREVIEW */
.current-upload-preview {
    margin-bottom: 20px;
}

.current-upload-preview img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* INPUT */
.upload-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #f9f9f9;
    margin-bottom: 15px;
}

/* HINT */
.upload-hint,
.upload-formats-info {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

/* BOTTONI */
.upload-button {
    background: #000;
    color: #fff;

    padding: 12px 20px;
    border-radius: 6px;
    border: 2px solid #000;

    font-weight: 400;
    font-size: 14px;

    cursor: pointer;
    transition: all 0.3s ease;

    margin: 10px 10px 0 0;

    display: inline-block;
}

.upload-button:hover {
    background: #FFE102;
    border-color: #FFE102;
    color: #000;
}

/* RIMUOVI */
.upload-remove {
    background: transparent;
    color: #888;

    padding: 10px 18px;
    border-radius: 6px;
    border: 2px solid #e5e5e5;

    font-weight: 400;
    font-size: 14px;

    cursor: pointer;
    transition: all 0.3s ease;

    margin-top: 10px;

    display: inline-block;
}

.upload-remove:hover {
    background: #f0f0f0;
    border-color: #ccc;
    color: #000;
}

/* BIO */
.user-profile-bio {
    font-style: normal;
    color: #555;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
}

/* LINK BUTTON */
a.btn-view-collection {
    display: inline-block;
    background-color: #000;
    color: #fff !important;

    font-weight: 400;
    text-transform: none;
    text-decoration: none;

    padding: 14px 28px;
    border-radius: 6px;
    border: 2px solid #000;

    width: 100%;
    max-width: 350px;

    transition: all 0.3s ease;
    box-shadow: none;
    font-size: 15px;
}

a.btn-view-collection:hover {
    background-color: #FFE102;
    color: #000 !important;
    border-color: #FFE102;
}

/* DESKTOP */
@media screen and (min-width: 768px) {
    a.btn-view-collection {
        max-width: 90% !important;
        width: auto !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}
.upload-input {
    display: none;
}

.custom-file-button {
    display: inline-block;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.custom-file-button:hover {
    background: #eee;
    border-color: #ccc;
}
.file-selected {
    font-size: 13px;
    color: #000;
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 500;
}

.file-selected.empty {
    color: #999;
    font-weight: 400;
}

.upload-input {
    display: none;
}

.custom-file-button {
    display: inline-block;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.custom-file-button:hover {
    background: #eee;
    border-color: #ccc;
}
.upload-message {
    font-size: 14px;
    font-weight: 700;
    color: #1a7f37; /* verde pulito stile success */
    margin-bottom: 15px;
}

/* ==========================================================
   WPCode id 8825 — Icona Immagine profilo pagina Account
   ========================================================== */
/* =========================================
   STILI PER L'ICONA SVG NELLA BUTTON
   ========================================= */

/* 1. Stili Base del Bottone Contenitore (NERO con SVG BIANCO) */
.user_registration_profile_picture_upload {
    /* Assicurati che il display sia flessibile per centrare l'SVG */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    /* Dimensioni del bottone, regolale a tuo piacimento */
    width: 44px !important;
    height: 44px !important; /* Leggermente più grande per visibilità */

    /* Colore di sfondo e bordo iniziali (nero) */
    background-color: #000000 !important;
    border: 1px solid #000000 !important;

    /* Forma circolare o arrotondata */
    border-radius: 50% !important; /* Rende il bottone circolare */

    /* Rimuovi padding e margine di default del bottone */
    padding: 0 !important;
    margin: 0 !important;

    /* Assicurati che il puntatore cambi */
    cursor: pointer !important;

    /* Transizione per un effetto fluido all'hover */
    transition: background-color 0.3s ease, border-color 0.3s ease !important;
    box-shadow: none !important; /* Rimuovi eventuali ombre predefinite */
}

/* 2. Stili Base dell'SVG all'interno del Bottone (BIANCO) */
.user_registration_profile_picture_upload svg {
    /* Dimensioni dell'SVG all'interno del bottone */
    width: 24px !important; /* Leggermente più grande per chiarezza */
    height: 24px !important;

    /* Colore di riempimento dell'SVG (bianco) */
    fill: #ffffff !important;

    /* Transizione per il colore dell'SVG */
    transition: fill 0.3s ease !important;
}

/* 3. Stili all'Hover del Bottone (GIALLO) */
.user_registration_profile_picture_upload:hover {
    background-color: #FFE102 !important; /* Sfondo giallo all'hover */
    border-color: #FFE102 !important;     /* Bordo giallo all'hover */
}

/* 4. Stili dell'SVG all'Hover (NERO) */
.user_registration_profile_picture_upload:hover svg {
    fill: #000000 !important; /* Colore dell'SVG nero all'hover */
}

/* ==========================================================
   WPCode id 8723 — Frecce slider Carosello anteprima desktop articoli
   ========================================================== */
/* =========================================
   CONTENITORE
   ========================================= */
.vinted-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* =========================================
   SLIDER
   ========================================= */
.vinted-slider-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
    -ms-overflow-style: none;

    cursor: grab;
    user-select: none;
}

.vinted-slider-scroll::-webkit-scrollbar {
    display: none;
}

.vinted-slider-scroll.active {
    cursor: grabbing;
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
}

/* =========================================
   SLIDE
   ========================================= */
.vinted-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.vinted-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;

    position: relative;
    z-index: 1;
}

/* =========================================
   DOTS
   ========================================= */
.vinted-dots {
    position: absolute;
    bottom: 10px;
    left: 0; 
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 5;
    pointer-events: none;
}

.vinted-dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
}

.vinted-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* =========================================
   FRECCE
   ========================================= */
.vinted-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    font-size: 18px;
}

.vinted-arrow.prev { left: 10px; }
.vinted-arrow.next { right: 10px; }

.vinted-arrow:hover {
    background: rgba(0,0,0,0.7);
}

/* Nascondi su mobile */
@media (max-width: 1024px) {
    .vinted-arrow {
        display: none;
    }
}

/* blocca drag immagini */
.vinted-slider-scroll img {
    -webkit-user-drag: none;
}

/* ==========================================================
   WPCode id 8720 — Video no GDPR
   ========================================================== */
/* =========================================
   VIDEO GDPR IUBENDA - FIX DEFINITIVO
   ========================================= */

/* CONTENITORE */
.elementor-widget-video {
    position: relative;
    min-height: 250px;
}

/* =========================================
   OVERLAY SEMPRE VISIBILE DI DEFAULT
   ========================================= */
.elementor-widget-video::before {
    content: "Video bloccato.\A\A Clicca sull'icona Privacy in basso a sinistra e accetta o rifiuta i cookie per continuare.";

    white-space: pre-line;

    position: absolute;
    inset: 0;

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

    text-align: center;
    padding: 20px;

    background: #111;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;

    z-index: 10;
    pointer-events: none;
}

/* VIDEO SEMPRE SOTTO */
.elementor-widget-video iframe,
.elementor-widget-video video,
.elementor-widget-video .elementor-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 250px;
}

/* =========================================
   SOLO CON CONSENSO: MOSTRA VIDEO
   ========================================= */
.gdpr-accepted .elementor-widget-video::before {
    display: none !important;
}

.gdpr-accepted .elementor-widget-video iframe,
.gdpr-accepted .elementor-widget-video video,
.gdpr-accepted .elementor-widget-video .elementor-wrapper {
    z-index: 20;
}

/* ==========================================================
   WPCode id 8709 — 5 etichette altezza
   ========================================================== */
.entry-meta-data-list dl {
    display: flex;
    align-items: center; /* 🔥 centra verticalmente */
    gap: 6px;
    margin: 0;
}

.entry-meta-data-list dt,
.entry-meta-data-list dd {
    margin: 0;
}

/* ==========================================================
   WPCode id 8693 — Box recap La mia collezione CSS
   ========================================================== */
/* CONTENITORE CENTRATO COME I FILTRI */
.entry-body .user-profile-card {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    width: 100%;
}

/* TESTO INTRO */
.collection-intro-text {
    max-width: 1200px;
    margin: 0 auto 20px auto;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
}

/* HEADER PIÙ ORIZZONTALE SU DESKTOP */
@media (min-width: 768px) {
    .user-profile-header {
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }

    .user-profile-name {
        margin: 0;
    }

    .user-profile-stats {
        text-align: left;
    }
}

/* ==========================================================
   WPCode id 8685 — Banner CSS
   ========================================================== */
/* ==========================================
   BANNER DONAZIONE - DEFINITIVO (PC & Mobile)
   ========================================== */

#donation-banner {
    display: none !important; /* Base invisibile */
    width: 100%;
    background-color: #FFE102 !important; /* Giallo 883 */
    color: #000000 !important;
    
    /* Z-INDEX IMPORTANTE: 
       Deve essere alto per coprire il sito, 
       ma PIÙ BASSO dell'ancora (che è 99998) e di Iubenda */
    z-index: 99990 !important; 
    
    box-sizing: border-box;
    overflow: hidden;
    transition: all 0.4s ease-in-out; 
}

/* Quando il JS dice di mostrarlo */
body.banner-active #donation-banner.show {
    display: block !important;
}

/* Contenitore interno (Centrato perfettamente) */
.banner-inner {
    display: flex !important;
    align-items: center;
    justify-content: center; /* CENTRATO ASSOLUTO */
    padding: 15px 20px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    width: 100%;
    gap: 15px; /* Spazio tra testo e bottone */
    box-sizing: border-box;
}

/* Tasto Nero "Supportaci" */
.btn-dona-nera {
    display: inline-block !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 25px !important; /* Pillola elegante */
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s, background-color 0.2s;
}

.btn-dona-nera:hover {
    transform: scale(1.05);
    background-color: #333333 !important; /* Grigio scuro al passaggio */
}

/* --- LOGICA DESKTOP (PC/Tablet Orizzontale) --- */
@media screen and (min-width: 768px) {
    #donation-banner {
        position: fixed !important; 
        top: -100px; /* Parte nascosto in alto */
        left: 0 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    
    /* Quando appare, scivola giù */
    body.banner-active #donation-banner.show {
        top: 0 !important; 
    }
    
    /* Spinge giù il sito (menu compreso) per non coprirlo */
    body.banner-active {
        padding-top: 60px !important; 
    }
}

/* --- LOGICA MOBILE (Telefoni) --- */
@media screen and (max-width: 767px) {
    #donation-banner {
        position: fixed !important; 
        bottom: -100px; /* Parte nascosto in basso */
        left: 0 !important;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
    }

    /* Quando appare, scivola su */
    body.banner-active #donation-banner.show {
        bottom: 0 !important;
    }

    .banner-inner {
        font-size: 14px; 
        padding: 15px 10px !important;
        flex-direction: column; /* Su schermi stretti, mette il bottone sotto il testo */
        gap: 10px;
    }
    
    /* IL FIX PER L'ANCORA (TORNA SU) */
    /* Quando il banner è attivo, l'ancora SALE per non farsi coprire */
    body.banner-active #bottone-torna-su {
        bottom: 110px !important; /* Lo spinge sopra il banner giallo */
        transition: bottom 0.4s ease !important; /* Si muove dolcemente insieme al banner */
    }
}

/* =========================================
   FIX ANCORA "TORNA SU" (Priorità Assoluta)
   ========================================= */
#bottone-torna-su {
    /* Mettiamo uno z-index esagerato per essere sicuri che stia sopra a tutto (tranne Iubenda) */
    z-index: 9999999 !important; 
}

/* ==========================================================
   WPCode id 8672 — Animazione menu stop
   ========================================================== */
/* =========================================
   ANTI-SALTO MENU (FOUC Fix per Chrome/Cache)
   ========================================= */

/* Fissa l'altezza dell'header e la posizione del logo *immediatamente* */
.site-header {
    min-height: 80px !important; /* Adatta questo numero all'altezza reale del tuo header bianco */
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Nascondi temporaneamente il menu a tendina o i testi sballati finché non sono pronti */
/* Su schermi grandi, assicuriamoci che il blocco di navigazione abbia il suo spazio */
@media screen and (min-width: 992px) {
    #global-nav {
        display: flex !important;
        opacity: 1 !important; /* Forza la visibilità se qualche script la nascondeva */
    }
}

/* Su schermi piccoli (Mobile/Tablet), assicuriamoci che il Burger sia al suo posto e fermo */
@media screen and (max-width: 991px) {
    #global-nav {
        display: none !important; /* Tiene nascosti i testi del menu */
    }
    
    .vk-mobile-nav-menu-btn {
        display: flex !important;
        position: absolute !important;
        top: 25px !important; /* La distanza fissa che avevamo impostato */
        left: 20px !important;
    }
}

/* ==========================================================
   WPCode id 8671 — Navigazione articoli css
   ========================================================== */
/* =========================================
   STILE NAVIGAZIONE ARTICOLI (Precedente/Successivo)
   ========================================= */

.custom-post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.custom-post-navigation .nav-btn {
    flex: 1;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Pulsante Sinistro */
.custom-post-navigation .prev-btn {
    text-align: left;
    border-left: 4px solid #000;
}

/* Pulsante Destro */
.custom-post-navigation .next-btn {
    text-align: right;
    border-right: 4px solid #FFE102;
}

/* Etichetta */
.custom-post-navigation .nav-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Titolo */
.custom-post-navigation .nav-title {
    font-size: 18px;
    color: #000;
    font-weight: 800;
    line-height: 1.3;
}

/* Hover */
.custom-post-navigation .nav-btn:not(.empty-btn):hover {
    background-color: #000;
    border-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.custom-post-navigation .nav-btn:not(.empty-btn):hover .nav-label {
    color: #FFE102;
}

.custom-post-navigation .nav-btn:not(.empty-btn):hover .nav-title {
    color: #fff;
}

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

@media screen and (max-width: 768px) {

    .custom-post-navigation {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .custom-post-navigation .nav-btn {
        width: 100%;
        text-align: center;
        border-left: none;
        border-right: none;
        border-bottom: 4px solid #000;
    }
    
    .custom-post-navigation .next-btn {
        border-bottom: 4px solid #FFE102;
    }
    
    /* Nasconde pulsante vuoto */
    .custom-post-navigation .empty-btn {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Migliora leggibilità mobile */
    .custom-post-navigation .nav-title {
        font-size: 16px;
    }
}

/* ==========================================================
   WPCode id 8663 — Menu pagina collezionisti
   ========================================================== */
/* FIX PAGINA COLLEZIONE UTENTE - HEADER SPINTO IN BASSO */ .page-id-2044 #vk-mobile-nav-menu-btn { position: fixed !important; top: 25px !important; left: 20px !important; z-index: 999999 !important; }

/* ==========================================================
   WPCode id 8662 — Slider iniziale Home completo
   ========================================================== */
/* =========================================
   STILE TESTO E PULSANTI SLIDER (MetaSlider)
   ========================================= */

/* =====================
   CONTENITORE TESTO
===================== */
.flexslider .caption-wrap,
.flexslider .caption {
    text-align: left !important;
    color: #000 !important;
    text-shadow: none !important;

    /* RIDUZIONE SPAZIO A SINISTRA */
    padding: 20px 20px 20px 24px;
}

/* =====================
   TITOLO
===================== */
.slide-title {
    font-size: 50px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    margin-bottom: 10px;

    /* NON taglia il testo */
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;

    max-width: 100%;
}

/* =====================
   DESCRIZIONE BASE
===================== */
.flexslider .caption-wrap .slide-desc {
    font-size: 18px !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
}

    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;

    white-space: normal !important;
    word-break: break-word !important;
}

/* DESCRIZIONE LUNGA → 2 RIGHE */
.slide-desc.long-text {
    -webkit-line-clamp: 2;
}

/* DESCRIZIONE CORTA → 1 RIGA */
.slide-desc.short-text {
    -webkit-line-clamp: 1;
}

/* NASCONDE RIGA VUOTA */
.flexslider .caption-wrap div:nth-child(3) {
    display: none;
}

/* =====================
   PULSANTE
===================== */
.flexslider .caption-wrap a,
a.ms-custom-button {
    background-color: #000 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 12px 28px !important;
    border-radius: 6px !important;
    border: 2px solid #000 !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    margin-top: 10px;
}

/* Hover */
.flexslider .caption-wrap a:hover,
a.ms-custom-button:hover {
    background-color: #FFE102 !important;
    color: #000 !important;
    border-color: #FFE102 !important;
}

/* =========================================
   MOBILE & TABLET
   ========================================= */

@media screen and (max-width: 768px) {

    .metaslider,
    .metaslider .slides img {
        min-height: 280px !important;
        object-fit: cover !important;
        width: 100% !important;
    }

    .flexslider .caption-wrap {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        left: 0 !important;
        right: 0 !important;

        /* meno spazio laterale */
        padding: 0 14px !important;
        width: 100% !important;
    }

    @media screen and (max-width: 768px) {
    .flexslider .caption-wrap .slide-title {
        font-size: 28px !important;
    }
}
        /* NON forzare ellissi */
        white-space: normal !important;
        word-break: keep-all !important;
    }

    .slide-desc {
        font-size: 15px !important;
        line-height: 1.3 !important;

        white-space: normal !important;
        word-break: break-word !important;
    }

    .flexslider .caption-wrap a,
    a.ms-custom-button {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
}

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

@media screen and (max-width: 420px) {

    .flexslider .caption-wrap {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .slide-title {
        font-size: 24px !important;
        line-height: 1.1 !important;

        white-space: normal !important;
    }

    .slide-desc {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;

        overflow: hidden !important;

        white-space: normal !important;
        word-break: break-word !important;

        font-size: 14px !important;
        line-height: 1.3 !important;
    }

    .ms-custom-button {
        display: inline-block !important;
    }
}
/* =========================================
   FIX SPAZIO SINISTRO GLOBAL (TUTTI I DEVICE)
   ========================================= */

/* Desktop + generale */
.flexslider .caption-wrap,
.flexslider .caption {
    padding-left: 40px !important;
}

/* Tablet e mobile */
@media screen and (max-width: 768px) {
    .flexslider .caption-wrap {
        padding-left: 12px !important;
    }
}

/* Mobile piccolo */
@media screen and (max-width: 420px) {
    .flexslider .caption-wrap {
        padding-left: 5px !important;
    }
}
@media screen and (max-width: 360px) {

    /* =====================
       TITOLO
    ===================== */
    .flexslider .caption-wrap .slide-title {
        font-size: 22px !important;
        line-height: 1.1 !important;

        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    /* =====================
       DESCRIZIONE
    ===================== */
    .flexslider .caption-wrap .slide-desc {
        font-size: 13px !important;
        line-height: 1.3 !important;

        /* rimuove limite righe */
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;

        /* wrapping naturale */
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
}
@media screen and (max-width: 1024px) and (min-width: 769px) {

    /* =====================
       TITOLO
    ===================== */
    .flexslider .caption-wrap .slide-title {
        font-size: 33px !important;
        line-height: 1.1 !important;

        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    /* =====================
       DESCRIZIONE
    ===================== */
    .flexslider .caption-wrap .slide-desc {
        font-size: 16px !important;
        line-height: 1.4 !important;

        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

        overflow: hidden !important;

        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
}
@media screen and (min-width: 600px) and (max-width: 768px) {
    .flexslider .caption-wrap .slide-title {
        font-size: 38px !important;
    }
}
/* 360 e sotto */
@media screen and (max-width: 360px) {
    .flexslider .caption-wrap .slide-title {
        font-size: 22px !important;
    }
}

/* 361–388 */
@media screen and (min-width: 361px) and (max-width: 388px) {
    .flexslider .caption-wrap .slide-title {
        font-size: 31px !important;
    }
}

/* ==========================================================
   WPCode id 8660 — Titoli h2 mobile
   ========================================================== */
@media (max-width: 768px) {
  body h2 {
    font-size: 40px !important;
  }
}

/* ==========================================================
   WPCode id 8640 — Gestione spazio pulsante articoli
   ========================================================== */
/* =========================================
   FIX SPAZIO TRA NOTE E PULSANTE PREFERITI (V.2 Sicura)
   ========================================= */

/* 1. UCCIDIAMO I PARAGRAFI VUOTI FANTASMA (Solo nel testo) */
body.single-articoli .entry-body > p:empty,
body.single-articoli .entry-content > p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. SCHIACCIAMO I PARAGRAFI NORMALI (Il testo "Note:") */
/* Colpiamo in modo specifico i paragrafi di testo (non gli asterischi) per non rovinare i bottoni */
body.single-articoli .entry-body > p,
body.single-articoli .entry-content > p,
body.single-articoli .entry-body > .wp-block-paragraph,
body.single-articoli .entry-content > .wp-block-paragraph {
    margin-bottom: 10px !important; /* Spazio ridotto ma sicuro */
}

/* Se l'ultimo elemento di testo è una lista (ul/ol) invece di un paragrafo */
body.single-articoli .entry-body > ul,
body.single-articoli .entry-content > ul {
    margin-bottom: 10px !important;
}

/* 3. ASSICURIAMO CHE IL BOTTONE NON ABBIA MARGINI ENORMI SOPRA */
/* Ma NON tocchiamo il suo padding interno! */
body.single-articoli button.simplefavorite-button {
    margin-top: 5px !important; /* Lo avvicina al testo sopra */
    /* NIENTE padding o margin-bottom qui, così non si schiaccia la scritta interna! */
}

/* Se il bottone è avvolto in un contenitore del plugin */
body.single-articoli .simplefavorites-wrapper {
    margin-top: 0 !important;
    margin-bottom: 30px !important; /* Spazio prima dei box grigi (Album, Artista) */
}

/* ==========================================================
   WPCode id 8635 — Paginazione mobile catalogo/la mia collezione CSS
   ========================================================== */
@media screen and (max-width: 768px) {
    .pagination-container ul.page-numbers {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0;
        margin: 0;
    }
}

/* ==========================================================
   WPCode id 8630 — gestione spazi Catalogo
   ========================================================== */
/* =========================================
   CARD – SPAZIO TRA LE RIGHE E ALLINEAMENTO
========================================= */

.page-id-25 .my-collection-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    column-gap: 10px !important;
    row-gap: 16px !important; /* diminuito rispetto a prima */
}

/* Card flessibili, altezza uniforme per allineare titoli e pulsanti */
.page-id-25 .collection-item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* pulsante sempre in basso */
    height: 100%; /* uniforma altezza nella stessa riga */
    padding: 0 !important;
    margin: 0 !important; /* margini verticali gestiti dal row-gap */
}

/* Titoli centrati e con altezza minima uniforme */
.page-id-25 .collection-item-title-link h3 {
    min-height: 40px !important; /* fornisce altezza uniforme ai titoli */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0 !important;
}

/* Immagini che occupano tutta la larghezza della card */
.page-id-25 .collection-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slider: rimuove padding extra che può aggiungere spazio */
.page-id-25 .vinted-slider-container,
.page-id-25 .vinted-slider-container .vinted-slider-scroll {
    padding: 0 !important;
    margin: 0 !important;
}

/* Pulsante centrato e sempre in basso */
.page-id-25 .collection-item .catalog-add-btn,
.page-id-25 .collection-item .simplefavorite-button {
    width: 90%;
    max-width: 250px;
    margin: 0 auto 8px auto; /* centrato, piccolo spazio sotto per respirare */
    display: block;
    text-align: center;
}

/* ==========================================================
   WPCode id 8628 — Pulsante articoli nero/giallo
   ========================================================== */
/* =========================================
   STILE PULSANTE PREFERITI (Solo Articolo Singolo)
   ========================================= */

/* 1. STATO NORMALE (Nero) */
button.simplefavorite-button {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 6px !important;
    padding: 12px 24px !important; /* Misura bella compatta */
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: none !important;
    cursor: pointer !important;
    box-shadow: none !important;
    margin-top: 15px !important;
    transition: none !important; /* Nessuno sfarfallio o hover strano */
    display: inline-block !important; /* Non si allunga a tutto schermo! */
}

/* Rimuoviamo l'hover */
button.simplefavorite-button:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    transform: none !important;
}

/* 2. STATO ATTIVO (Giallo) */
button.simplefavorite-button.active,
button.simplefavorite-button.preset,
button.simplefavorite-button.favorited,
button.simplefavorite-button.is-saved {
    background-color: #FFE102 !important; 
    color: #000000 !important;            
    border-color: #FFE102 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Niente Hover sullo stato attivo */
button.simplefavorite-button.is-saved:hover,
button.simplefavorite-button.active:hover {
    background-color: #FFE102 !important;
    color: #000000 !important;
    border-color: #FFE102 !important;
    opacity: 1 !important;
    transform: none !important;
}

/* 3. Nascondi rotellina di caricamento nativa */
button.simplefavorite-button i.sf-icon-spinner {
    display: none !important;
}

/* ==========================================================
   WPCode id 8623 — Fix Chrome Catalogo immagini bianche migliorato
   ========================================================== */
/* ===== IMMAGINI ===== */
.vinted-slider-scroll img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== SLIDER ===== */
.vinted-slider-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* ===== SLIDE ===== */
.vinted-slide {
    min-width: 100%;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ===== CONTAINER ===== */
.vinted-slider-container {
    position: relative;
    overflow: hidden;
}

/* ===== DOTS ===== */
.vinted-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.vinted-dot {
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    opacity: 0.5;
}

.vinted-dot.active {
    opacity: 1;
    background: #000;
}

/* ===== GRID ===== */
.my-collection-grid {
    display: grid;
    gap: 20px;
}

/* ===== CARD ===== */
.collection-item {
    overflow: hidden;
}

/* ==========================================================
   WPCode id 8605 — 4 elementi home completo per schermi piccolissimi
   ========================================================== */
/* =========================================
   FIX TITOLI CARD - SCHERMI PICCOLI (≤ 360px)
   ========================================= */

@media screen and (max-width: 360px) {

    .box-info-mobile .elementor-icon-box-title {
        font-size: 24px !important;
        line-height: 1.2 !important;

        /* Permette sempre il ritorno a capo */
        white-space: normal !important;

        /* Spezza anche parole lunghe */
        word-break: break-word !important;
        overflow-wrap: break-word !important;

        /* Evita che tocchi i bordi */
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

}

/* ==========================================================
   WPCode id 8602 — 4 elementi home completo (ok credo che vada bene)
   ========================================================== */
/* =========================================
   CARD "COS'È 883COLLECTION" - VERSIONE UNIFICATA
   ========================================= */

/* 1. CARD BASE */
.box-info-mobile {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px 20px;
    height: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.box-info-mobile:hover {
    transform: translateY(-5px);
    border-color: #FFE102;
}

/* 2. ICONA */
.box-info-mobile .elementor-icon {
    background-color: #FFE102 !important;
    color: #000000 !important;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.box-info-mobile .elementor-icon svg {
    fill: #000000 !important;
    width: 36px;
    height: 36px;
}

.box-info-mobile:hover .elementor-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 5px 15px rgba(255, 225, 2, 0.4);
}

/* =========================================
   3. TITOLI - DESKTOP & TABLET
   ========================================= */
@media screen and (min-width: 768px) {

    .box-info-mobile .elementor-icon-box-title {
        font-size: 24px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;

        /* Forza allineamento e altezza uniforme */
        min-height: 58px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        /* Forza ritorno a capo */
        max-width: 190px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
        white-space: normal !important;
    }

    /* Supporto <br> */
    .box-info-mobile .elementor-icon-box-title br {
        display: block !important;
    }
}

/* =========================================
   4. FIX TABLET SPECIFICO (768px - 1024px)
   ========================================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    .box-info-mobile .elementor-icon-box-title {
        font-size: 20px !important;
        max-width: 130px !important;
        min-height: 50px !important;
    }
}

/* =========================================
   5. MOBILE
   ========================================= */
@media screen and (max-width: 767px) {

    .box-info-mobile .elementor-icon-box-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;

        display: block !important;
        max-width: 100% !important;
    }

    /* Evita rotture strane */
    .box-info-mobile .elementor-icon-box-title br {
        display: none !important;
    }

    /* Descrizione */
    .box-info-mobile p,
    .box-info-mobile .elementor-icon-box-description {
        font-size: 19px !important;
        line-height: 1.5 !important;
    }
}

/* ==========================================================
   WPCode id 8600 — Menu
   ========================================================== */
/* ==========================================================================
   MENU BURGER MOBILE E TABLET (Fino a 991px)
   ========================================================================== */

@media (max-width: 991px) {
  
  /* 1. NASCONDE MENU TESTUALE DESKTOP */
  #global-nav,
  .global-nav {
    display: none !important;
  }

  /* 2. MOSTRA E POSIZIONA IL PULSANTE BURGER */
  .vk-mobile-nav-menu-btn,
  #global-nav .vk-mobile-nav-menu-btn {
    display: flex !important; 
    align-items: center;
    justify-content: center;
    width: 45px !important;
    height: 40px !important;
    background-color: #FFE102 !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    border-radius: 6px !important;
    
    position: relative !important; 
    top: 0 !important;
    left: 0 !important;
    margin-top: 5px !important; /* Allineamento al logo */
    
    z-index: 9999 !important;
    font-size: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
  }

  /* 3. DISEGNA LE 3 LINEE (HAMBURGER) */
  .vk-mobile-nav-menu-btn span,
  .vk-mobile-nav-menu-btn i {
    background-color: #000 !important;
  }

  .vk-mobile-nav-menu-btn::after {
    content: "" !important;
    display: block !important;
    width: 22px !important;
    height: 3px !important;
    background-color: #000 !important;
    border-radius: 2px !important;
    box-shadow: 0 -7px 0 #000, 0 7px 0 #000 !important;
    transition: all 0.3s ease !important;
  }

  /* 4. HOVER PULSANTE */
  .vk-mobile-nav-menu-btn:hover {
    background-color: #FFD700 !important;
  }

  /* =========================================
     5. STATO APERTO E PULIZIA "X" SPORCA
     (Esteso fino a 991px per coprire i Tablet)
     ========================================= */
  
  /* Spegne la X originale generata dal tema Lightning */
  .vk-mobile-nav-menu-btn.menu-open::before,
  .vk-mobile-nav-menu-btn.menu-open::after,
  .vk-mobile-nav-menu-btn.vk-menu-acc-active::before,
  .vk-mobile-nav-menu-btn.vk-menu-acc-active::after {
    display: none !important;
    content: none !important;
    box-shadow: none !important; /* Spegne le righe dell'hamburger */
  }

  /* Se il tema usa un'icona interna (es. <i> o <span>) per la X, la spegniamo */
  .vk-mobile-nav-menu-btn.menu-open i,
  .vk-mobile-nav-menu-btn.menu-open span,
  .vk-mobile-nav-menu-btn.vk-menu-acc-active i,
  .vk-mobile-nav-menu-btn.vk-menu-acc-active span {
    display: none !important;
  }

  /* Ridisegnamo la NOSTRA "X" pulita e centrata */
  .vk-mobile-nav-menu-btn.menu-open,
  .vk-mobile-nav-menu-btn.vk-menu-acc-active {
    /* Usiamo il background per disegnare una X perfetta via CSS senza pseudo-elementi del tema */
    background-image: linear-gradient(45deg, transparent 45%, #000 45%, #000 55%, transparent 55%), 
                      linear-gradient(-45deg, transparent 45%, #000 45%, #000 55%, transparent 55%) !important;
    background-size: 22px 22px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
}

/* ==========================================================================
   MOSTRA MENU CLASSICO SU DESKTOP (Oltre 991px)
   ========================================================================== */
@media (min-width: 992px) {
  #global-nav,
  .global-nav {
    display: flex !important; 
  }
  .vk-mobile-nav-menu-btn,
  #global-nav .vk-mobile-nav-menu-btn {
    display: none !important; 
  }
}

/* ==========================================================
   WPCode id 8438 — Fix tap pulsanti
   ========================================================== */
/* stato base */
.elementor-button,
.ms-custom-button {
  background-color: #000000 !important;
  color: #ffffff !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s ease !important;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* testo */
.elementor-button .elementor-button-text,
.ms-custom-button {
  color: inherit !important;
}

/* hover desktop */
.elementor-button:hover,
.ms-custom-button:hover {
  background-color: #FFE102 !important;
  color: #000000 !important;
}

/* click / focus mobile */
.elementor-button:active,
.elementor-button:focus,
.ms-custom-button:active,
.ms-custom-button:focus {
  background-color: #FFE102 !important;
  color: #000000 !important;
  outline: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* rimuove highlight nativo mobile */
.elementor-button,
.ms-custom-button {
  -webkit-tap-highlight-color: transparent !important;
}

/* ==========================================================
   WPCode id 8429 — Fix spazio menu burger interno
   ========================================================== */
@media screen and (max-width: 991px) {

  /* =========================
     CONTENITORE GENERALE
  ========================= */
  #vk-mobile-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding-top: 5px !important; /* ridotto sopra il logo */
  }

  /* =========================
     LOGO
  ========================= */
  #vk-mobile-nav .widget_media_image {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 5px !important; /* ridotto sotto il logo */
  }

  #vk-mobile-nav .widget_media_image figure {
    margin: 0 !important;
  }

  #vk-mobile-nav .widget_media_image img {
    width: 130px !important;
    height: auto !important;
  }

  /* =========================
     MENU VOCI (SINISTRA)
  ========================= */
  #vk-mobile-nav .vk-mobile-nav-menu-outer {
    width: 100% !important;
  }

  #vk-mobile-nav .vk-menu-acc {
    width: 100% !important;
    text-align: left !important;
  }

  #vk-mobile-nav .vk-menu-acc li,
  #vk-mobile-nav .vk-menu-acc a {
    text-align: left !important;
    display: block !important;
  }

  /* =========================
     ICONE SOCIAL (CENTRATE)
  ========================= */
  #vk-mobile-nav .wp-block-columns {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 10px !important; /* ridotto */
  }

  /* sicurezza */
  #vk-mobile-nav .widget:first-child {
    margin-top: 0 !important;
  }

}

/* ==========================================================
   WPCode id 8418 — Spazio Pulsante - 4 elementi Home
   ========================================================== */
/* Widget specifico */
.elementor-element-87e9018 {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

/* Contenitore interno */
.elementor-element-87e9018 .elementor-widget-container {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}
/* MOBILE / TABLET SMALL */
@media (max-width: 1024px) {

  .elementor-element-87e9018 {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .elementor-element-87e9018 .elementor-widget-container {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
  }

}

/* FORZA spazio su tablet (breakpoint reale di Elementor) */
@media (max-width: 1024px) {
  .elementor-element-87e9018 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  /* spesso è il container padre che “schiaccia” */
  .elementor-element-87e9018 {
    display: block !important;
  }
}

/* ==========================================================
   WPCode id 8414 — Paypal
   ========================================================== */
/* Contenitore footer PayPal */
.paypal-fix {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  line-height: 1 !important;
  flex-wrap: nowrap !important;
}

/* Testo */
.paypal-fix span {
  white-space: nowrap !important;
}

/* Logo PayPal */
.paypal-fix img {
  display: block !important;
  height: 18px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

/* ==========================================================
   WPCode id 8211 — Effetto arancione pagine Collezionisti
   ========================================================== */
/* =========================================
   HOVER LISTA COLLEZIONISTI (Arancione)
   ========================================= */

/* Quando passi il mouse sulla card, colora il Titolo (h3) e la Percentuale (p) */
.collezionisti-grid .collection-item a:hover h3,
.collezionisti-grid .collection-item a:hover p {
    color: #FF9902 !important;  /* L'arancione che usi nel sito */
    transition: color 0.3s ease; /* Effetto di cambio colore morbido */
}

/* Sicurezza: togliamo la sottolineatura blu se il tema la mette */
.collezionisti-grid .collection-item a {
    text-decoration: none !important;
}

/* ==========================================================
   WPCode id 5368 — Eliminazione linea dai pallini negli slider
   ========================================================== */
/* =========================================
   FIX PALLINI SLIDER (Nasconde i numeri a due cifre)
   ========================================= */

.metaslider .flex-control-nav li a,
.flex-control-paging li a {
    font-size: 0 !important;
    color: transparent !important;
    line-height: 0 !important;
    text-indent: -9999px !important; /* Spedisce il testo fuori dallo schermo */
    overflow: hidden !important;      /* Taglia via qualsiasi cosa sbordi */
}

/* ==========================================================
   WPCode id 2996 — Pulsante home gruppo telegram
   ========================================================== */
/* Stile personalizzato per il pulsante CTA */
.cta-telegram {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;  /* Padding moderato */
    background: #000;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 20px;  /* Font size ridotto per non esagerare */
    line-height: 1.2;
    transition: all 0.2s ease;
    text-align: center; /* Centra il testo dentro il pulsante */
}

/* Forza il bianco anche sugli stati link */
.cta-telegram:link,
.cta-telegram:visited {
    color: #fff !important;
}

/* Hover giallo */
.cta-telegram:hover {
    background: #FFE102;
    color: #000 !important;
}

/* Assicurati che il pulsante sia centrato sotto il testo */
.elementor-widget-button .cta-telegram {
    display: block;
    margin: 20px auto;  /* Centrato orizzontalmente */
    text-align: center;
    width: auto;  /* Non forzare il 100% della larghezza */
}

/* Responsive: pulsante più largo sui dispositivi mobili */
@media (max-width: 767px) {
    .cta-telegram {
        width: 100%;  /* Espande il pulsante a tutta larghezza su mobile */
        text-align: center;  /* Mantiene il testo centrato */
        font-size: 16px; /* Ridotto per dispositivi mobili */
        padding: 12px 24px; /* Padding consistente su mobile */
    }
}

/* ==========================================================
   WPCode id 2887 — Codice alternativa a articoli prima e dopo GRAFICA
   ========================================================== */
/* Nasconde tutto il testo extra dentro le card consigliate */
.articoli-consigliati .vk_post_body .vk_post_date,
.articoli-consigliati .vk_post_body .vk_post_excerpt,
.articoli-consigliati .vk_post_body .vk_post_title span.new-label,
.articoli-consigliati .vk_post_body span.vk_post_imgOuter_singleTermLabel {
    display: none !important;
}

/* Mantieni solo titolo principale e immagine */
.articoli-consigliati .vk_post_body .vk_post_title {
    display: block;
    text-align: center;
}
/* Titolo sotto l'immagine, allineato a sinistra */
.articoli-consigliati .vk_post_body .vk_post_title {
    display: block;
    text-align: left;  /* sinistra */
    margin-top: 5px;   /* riduce distanza dall'immagine */
    font-size: 16px;   /* puoi regolare la dimensione */
    line-height: 1.2;
}
/* Nasconde etichette Nuovo! */
.articoli-consigliati .vk_post_body .vk_post_title span,
.articoli-consigliati .vk_post_body span.new-label {
    display: none !important;
}
@media screen and (max-width: 768px) {
    /* Griglia dei consigliati */
    .articoli-consigliati .consigliati-grid {
        grid-template-columns: 1fr; /* una card per riga su mobile */
        gap: 10px;                  /* spazio ridotto tra le card */
    }

    /* Card singola: riduce margini extra */
    .articoli-consigliati .vk_post {
        margin-bottom: 0;
    }
}

/* ==========================================================
   WPCode id 2854 — Codice per far sparire articoli prima e dopo
   ========================================================== */
/* NASCONDI BOX PRECEDENTE/SUCCESSIVO DEL TEMA */
.vk_posts.next-prev {
    display: none !important;
}

/* ==========================================================
   WPCode id 2780 — Etichette info articoli leggibilità Tablet
   ========================================================== */
/* =========================================
   FIX LEGGIBILITÀ TABLET / LAPTOP
   (Per schermi tra 768px e 1366px)
   ========================================= */

@media screen and (min-width: 768px) and (max-width: 1366px) {
    
    /* Etichetta nel box grigio (dt) */
    .entry-meta-data-list dt {
        font-size: 14px !important;    /* Aumenta la dimensione (di solito è 12/13px) */
        font-weight: 500 !important;   /* Più grassetto */
        line-height: 1.3 !important;   /* Più spazio tra le righe se va a capo */
        padding: 6px 10px !important;  /* Un po' più di spazio interno */
        white-space: normal !important; /* Permette di andare a capo se non ci sta */
    }

    /* Il valore accanto (dd) - Opzionale */
    .entry-meta-data-list dd {
        font-size: 15px !important;
    }
}

/* ==========================================================
   WPCode id 2608 — Hover Privacy Policy form registrazione
   ========================================================== */
/* =========================================
   STILE LINK PRIVACY POLICY (Form)
   ========================================= */

/* 1. Stato Normale (Nero e sottolineato) */
span.description a {
    color: #000000 !important;       /* Nero di base */
    text-decoration: underline !important; /* Sottolineato */
    transition: color 0.2s ease;
}

/* 2. Stato Hover (Arancione) */
span.description a:hover {
    color: #FF9902 !important;       /* Arancione al passaggio */
    text-decoration: none !important; /* Opzionale: toglie la riga all'hover */
}

/* ==========================================================
   WPCode id 2305 — gestione spazi Pagina Collezione Utenti
   ========================================================== */
/* =========================================
   COLLEZIONI UTENTI – GRIGLIA E SPAZI
========================================= */

.page-id-2044 .my-collection-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    column-gap: 10px !important;
    row-gap: 16px !important; /* spazio verticale uniforme tra le card */
}

/* Card flessibili, altezza uniforme per allineare titoli e pulsanti */
.page-id-2044 .collection-item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* pulsante sempre in basso */
    height: 100%; /* uniforma altezza nella stessa riga */
    padding: 0 !important;
    margin: 0 !important; /* margini verticali gestiti dal row-gap */
    box-sizing: border-box;
}

/* Titoli centrati e con altezza minima uniforme */
.page-id-2044 .collection-item-title-link h3 {
    min-height: 40px !important; /* altezza uniforme ai titoli */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0 6px 0 !important; /* margine identico a La mia collezione */
}

/* Immagini che occupano tutta la larghezza della card */
.page-id-2044 .collection-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slider: rimuove padding extra */
.page-id-2044 .vinted-slider-container,
.page-id-2044 .vinted-slider-container .vinted-slider-scroll {
    padding: 0 !important;
    margin: 0 !important;
}

/* Pulsante centrato e sempre in basso */
.page-id-2044 .collection-item .catalog-add-btn,
.page-id-2044 .collection-item .simplefavorite-button {
    width: 90%;
    max-width: 250px;
    margin: 0 auto 8px auto; /* centrato con piccolo spazio sotto */
    display: block;
    text-align: center;
}

/* Rimuove margine dell’ultimo elemento interno per uniformare lo spazio verticale */
.page-id-2044 .collection-item > *:last-child {
    margin-bottom: 0 !important;
}

/* ==========================================================
   WPCode id 2304 — Hover titoli articoli in Catalogo e La mia collezione
   ========================================================== */
/* ================================
   FORZA HOVER ARANCIONE TITOLI CARD
   Catalogo + La mia collezione
================================ */

/* link titolo – stato normale */
.collection-item-title-link,
.collection-item-title-link h3 {
    color: inherit !important;
    text-decoration: none !important;
}

/* hover sul link o sul titolo */
.collection-item-title-link:hover,
.collection-item-title-link:hover h3 {
    color: #ff7a00 !important;
    text-decoration: none !important;
}

/* ==========================================================
   WPCode id 2300 — Scritta non loggati Articoli CSS
   ========================================================== */
.favorite-login-link {
    color: #ff7a00;          /* arancione fisso */
    text-decoration: none;
    font-weight: 500;
    transition: none;        /* opzionale: elimina animazione */
}

.favorite-login-link:hover {
    color: #ff7a00;          /* resta uguale anche in hover */
}

/* ==========================================================
   WPCode id 2296 — gestione spazi Catalogo
   ========================================================== */
/* =========================================
   GRIGLIA CARD – SPAZIO TRA LE RIGHE E ALLINEAMENTO
========================================= */

.my-collection-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    column-gap: 10px !important;
    row-gap: 40px !important;  /* spazio tra le righe */
}

/* =========================================
   CARD – ALTEZZA UGUALE E FLEX
========================================= */

.collection-item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* spinge pulsante in basso */
    margin: 0 !important;
    height: 100%;  /* importante per far allineare tutte le card della riga */
}

/* ==========================================================
   WPCode id 2295 — gestione spazi La mia collezione
   ========================================================== */
/* =========================================
   CARD – SPAZIO TRA LE RIGHE E ALLINEAMENTO
========================================= */

.page-id-47 .my-collection-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    column-gap: 10px !important;
    row-gap: 16px !important; /* diminuito rispetto a prima */
}

/* Card flessibili, altezza uniforme per allineare titoli e pulsanti */
.page-id-47 .collection-item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; /* pulsante sempre in basso */
    height: 100%; /* uniforma altezza nella stessa riga */
    padding: 0 !important;
    margin: 0 !important; /* margini verticali gestiti dal row-gap */
}

/* Titoli centrati e con altezza minima uniforme */
.page-id-47 .collection-item-title-link h3 {
    min-height: 40px !important; /* fornisce altezza uniforme ai titoli */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0 !important;
}

/* Immagini che occupano tutta la larghezza della card */
.page-id-47 .collection-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slider: rimuove padding extra che può aggiungere spazio */
.page-id-47 .vinted-slider-container,
.page-id-47 .vinted-slider-container .vinted-slider-scroll {
    padding: 0 !important;
    margin: 0 !important;
}

/* Pulsante centrato e sempre in basso */
.page-id-47 .collection-item .catalog-add-btn,
.page-id-47 .collection-item .simplefavorite-button {
    width: 90%;
    max-width: 250px;
    margin: 0 auto 8px auto; /* centrato, piccolo spazio sotto per respirare */
    display: block;
    text-align: center;
}

/* ==========================================================
   WPCode id 2248 — Tabella tracklist pagina articoli CSS
   ========================================================== */
/* =========================================
   TABELLE TRACKLIST (Soluzione CSS Pura)
   ========================================= */

/* 1. La Tabella deve occupare tutto lo spazio */
.entry-body table, 
.entry-content table {
    width: 100% !important;
    table-layout: auto !important; /* Lascia che il contenuto decida */
}

/* 2. LA PRIMA COLONNA (Numeri o Dischi) */
.entry-body table tr td:first-child, 
.entry-content table tr td:first-child {
    
    /* IL TRUCCO: 1% costringe la colonna a stringersi 
       fino alla larghezza del suo contenuto testuale */
    width: 1% !important;
    
    /* Impedisce al testo di andare a capo (fondamentale per "Disco 1") */
    white-space: nowrap !important;
    
    /* Spaziatura e Allineamento */
    padding-right: 15px !important;
    text-align: right !important; /* I numeri stanno meglio a destra */
    vertical-align: top !important;
    font-weight: normal !important;
}

/* 3. LA SECONDA COLONNA (Titoli) */
/* Non serve dirgli nulla, si prenderà automaticamente tutto lo spazio restante */

/* ==========================================================
   WPCode id 2148 — Tasto filtra
   ========================================================== */
/* =========================================
   FIX TASTO "FILTRA" (Senza rompere il Cerca)
   ========================================= */

/* Usiamo il simbolo > per colpire solo il form del catalogo */
/* Questo esclude automaticamente il form di ricerca utenti */
.entry-body > .collection-filters button[type="submit"] {
    
    /* 1. DIMENSIONI E POSIZIONE */
    height: 42px !important;
    width: auto !important;
    padding: 0 40px !important;
    margin-top: 10px !important;    /* Spinge giù per allinearsi */
    
    /* 2. CENTRATURA TESTO (Reset totale) */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;     /* Impedisce al testo di scivolare */
    
    /* 3. STILE GRAFICO */
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: none !important;
    
    /* 4. RESET INFLUENZE ESTERNE */
    transform: none !important;
    vertical-align: top !important;
    box-shadow: none !important;
}

/* HOVER SOLO PER IL TASTO FILTRA */
.entry-body > .collection-filters button[type="submit"]:hover {
    background-color: #FFE102 !important;
    color: #000000 !important;
    border-color: #FFE102 !important;
}

/* ==========================================================
   WPCode id 2097 — Gruppo Telegram Pagina Collezionisti
   ========================================================== */
/* =========================================
   STILE UNIFICATO: TELEGRAM + CERCA (PULITO)
   ========================================= */

/* 1. BOX TELEGRAM */
.telegram-invite-box {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.telegram-content h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 800;
    color: #000;
}

.telegram-content p {
    margin: 0;
    font-size: 15px;
    color: #555;
    line-height: 1.4;
}

/* 2. BOX CERCA */
.user-search-container form {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap;
}

/* 3. ALTEZZA COMUNE (STRUTTURA, NON TESTO) */
a.btn-telegram,
.user-search-container input[type="text"],
.user-search-container button {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    box-sizing: border-box !important;
    padding: 0 25px !important;
    border-radius: 6px !important;
}

/* 4. TASTO TELEGRAM */
a.btn-telegram {
    background-color: #000000;
    color: #ffffff !important;
    border: 2px solid #000000;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 15px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease;
}

/* 5. CAMPO INPUT */
.user-search-container input[type="text"] {
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
    min-width: 250px;
    font-size: 15px !important;
    font-weight: 400 !important;
}

/* 6. TASTO CERCA */
.user-search-container button {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    cursor: pointer !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    /* TESTO PIÙ GRANDE */
    font-size: 17px !important;
    font-weight: 700 !important;

    /* ABBASSAMENTO LEGGERO */
    transform: translateY(5px) !important;

    transition: all 0.3s ease !important;
}

/* 7. HOVER */

/* Telegram */
a.btn-telegram:hover {
    background-color: #FFE102 !important;
    color: #000000 !important;
    border-color: #FFE102 !important;
    transform: translateY(-2px) !important;
}

/* Cerca */
.user-search-container button:hover {
    background-color: #FFE102 !important;
    color: #000000 !important;
    border-color: #FFE102 !important;
    transform: translateY(2px) !important;
}

/* 8. MOBILE */
@media screen and (max-width: 768px) {
    .telegram-invite-box {
        flex-direction: column;
        text-align: center;
    }

    a.btn-telegram,
    .user-search-container input[type="text"],
    .user-search-container button {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px;
        transform: none !important;
    }
}
/* =========================================
   FIX BARRA DI RICERCA (Specifico)
   ========================================= */

/* 1. SISTEMAZIONE SPAZIATURA (Linee Viola/Verde) */
form.collection-filters {
    /* Aumentiamo il padding verticale per dare aria sopra e sotto */
    padding-top: 35px !important;    
    padding-bottom: 35px !important; 
    
    /* Allineiamo input e bottone perfettamente al centro */
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Su mobile va a capo se necessario */
    gap: 15px;       /* Spazio tra la casella e il bottone */
}

/* 2. STILE PULSANTE "CERCA" (Più grande e leggibile) */
form.collection-filters button {
    font-size: 16px !important;  /* Testo più grande */
    font-weight: 700 !important; /* Grassetto come l'altro pulsante */
    text-transform: none !important;
    
    /* Dimensioni del bottone */
    padding: 12px 30px !important; 
    
    /* Colori (Stile Black) */
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover del bottone (Opzionale: diventa giallo come l'altro) */
form.collection-filters button:hover {
    background-color: #FFE102;
    color: #000000;
    border-color: #FFE102;
}

/* 3. MIGLIORAMENTO CASELLA DI TESTO (Input) */
/* La rendiamo alta quanto il bottone per simmetria */
form.collection-filters input[name="cerca_utente"] {
    padding: 12px 15px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
    border: 1px solid #ccc !important;
    height: auto !important; /* Evita che il tema lo forzi piccolo */
}

/* ==========================================================
   WPCode id 2072 — Grafica scheda profilo pubblico utente
   ========================================================== */
/* =========================================
   STILE SCHEDA PROFILO (Minimal & Clean)
   ========================================= */

/* 1. LA CARD (Pulita e leggera) */
.user-profile-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

/* 2. AVATAR (Modificato: Pulito senza bordo) */
.user-profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    
    /* RIMOSSO IL BORDO GIALLO E LO SPAZIO */
    border: none !important; 
    padding: 0 !important;
    background-color: transparent !important;
    
    /* Leggera ombra per staccarlo dal fondo */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
}

/* 3. NOME UTENTE */
.user-profile-name {
    font-size: 26px !important;
    font-weight: 700 !important;
    margin: 15px 0 20px 0 !important;
    color: #000 !important;
    text-transform: none !important; 
}

/* 4. BOX STATISTICHE */
.user-profile-stats {
    background-color: #f9f9f9; 
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: none; 
}

.stat-main strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.stat-percentage {
    font-size: 32px;
    font-weight: 700;
    color: #000;
}

.stat-details {
    font-size: 15px;
    color: #666;
}

/* 5. BIO */
.user-profile-bio {
    font-style: normal;
    color: #555;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
}

/* 6. PULSANTE (Testo Normale) */
a.btn-view-collection {
    display: inline-block;
    background-color: #000000; 
    color: #ffffff !important; 
    
    font-weight: 600;
    text-transform: none !important;
    text-decoration: none !important;
    
    padding: 14px 28px;
    border-radius: 6px;
    border: 2px solid #000000; 
    
    width: 100%;
    max-width: 350px; 
    transition: all 0.3s ease;
    box-shadow: none; 
    font-size: 15px;
}

/* Hover Pulsante: Diventa Giallo */
a.btn-view-collection:hover {
    background-color: #FFE102;
    color: #000000 !important;
    border-color: #FFE102;
}

/* =========================================
   FIX PULSANTE DESKTOP (Testo su una riga)
   ========================================= */

@media screen and (min-width: 768px) {
    a.btn-view-collection {
        /* Toglie il limite di 350px */
        max-width: 90% !important; 
        
        /* La larghezza si adatta automaticamente */
        width: auto !important;    
        
        /* Spazio laterale */
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

/* ==========================================================
   WPCode id 2063 — Grafica Formati (cd, lp ecc) Pagina Profilo Pubblico Utenti
   ========================================================== */
/* =========================================
   BADGE FORMATI (Stile Clean & Minimal)
   ========================================= */

/* Il contenitore dei badge */
.user-format-breakdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px; /* Spazio tra i badge */
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee; /* Linea separatrice sottile */
}

/* Il singolo badge (Pillola) */
.format-badge {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0; /* Bordo grigio leggero */
    color: #555;
    padding: 5px 12px;
    border-radius: 20px; /* Molto arrotondato */
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

/* La parte del nome (es. CD:) */
.format-badge strong {
    color: #000;
    font-weight: 700;
    margin-right: 4px;
}

/* Effetto Hover (Diventa Giallo) */
.format-badge:hover {
    border-color: #FFE102;
    background-color: #fffbe6; /* Giallo chiarissimo */
    color: #000;
    transform: translateY(-1px); /* Sale leggermente */
}

/* ==========================================================
   WPCode id 2036 — 5 etichette info Articoli
   ========================================================== */
/* =========================================
   FIX SPAZIO EXTRA ARTISTI (Rimuove margini dai link)
   ========================================= */

.entry-meta-data-list dd a {
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    display: inline !important; /* Assicura che non si comporti come un blocco */
}

/* ==========================================================
   WPCode id 1983 — Sistemazione dimensioni filtri e pulsante Catalogo e La mia collezione desktop
   ========================================================== */
/* =========================================
   OTTIMIZZAZIONE FILTRI DESKTOP (Spazio intelligente)
   ========================================= */

@media screen and (min-width: 1024px) {
    
    /* 1. ACCORCIAMO "FORMATO" */
    .collection-filters select[name="formato"] {
        min-width: 0 !important;
        width: 200px !important;
    }

    /* 2. ALLUNGHIAMO "ALBUM" */
    .collection-filters select[name="album"] {
        min-width: 320px !important;
    }
}

/* =========================================
   STILE PULSANTE "FILTRA" (Spostamento + Testo Normale)
   ========================================= */

.collection-filters button {
    /* 1. SBLOCCO POSIZIONE */
    position: relative !important;
    top: -9px !important; /* Il tuo allineamento */
    
    /* 2. DIMENSIONI */
    height: 42px !important;
    padding: 0 50px !important;
    
    /* 3. STILE GRAFICO */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    border: 2px solid #000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    
    /* FONT E TESTO */
    font-weight: 700 !important;
    text-transform: none !important; /* <--- MODIFICA QUI: Scrive "Filtra" invece di "FILTRA" */
    font-size: 15px !important;      /* Ho aumentato di 1px per compensare il fatto che non è maiuscolo */
    
    box-shadow: none !important;
    margin: 0 !important;
    
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

/* EFFETTO HOVER */
.collection-filters button:hover {
    background-color: #FFE102 !important;
    color: #000000 !important;
    border-color: #FFE102 !important;
}

/* ==========================================================
   WPCode id 1917 — Sezione gialla home
   ========================================================== */
@media screen and (max-width: 768px) {

  html body a.yellow-btn {
    font-size: 16px !important;
    padding: 14px 28px !important;
    line-height: 1.2 !important;
  }

}
/* =========================================
   STILE PULSANTE "ISCRIVITI ORA" (Spazio Ridotto)
   ========================================= */

a.yellow-btn {
    /* 1. TESTO (Invariato) */
    font-size: 20px !important;      
    font-weight: 800 !important;     
    text-transform: none !important; 
    
    /* 2. SPAZIO INTERNO RIDOTTO */
    /* Prima era 15px 40px -> Ora è 10px 30px */
    padding: 10px 20px !important;   
    
    display: inline-block !important;
    
    /* 3. STILE BASE */
    background-color: #000000 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    border: 2px solid #000000 !important;
    transition: all 0.3s ease !important;
}

/* 4. HOVER (Diventa Bianco) */
a.yellow-btn:hover {
    background-color: #ffffff !important; 
    color: #000000 !important;
    border-color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}

/* ==========================================================
   WPCode id 1783 — Cursore slider Carosello anteprima desktop articoli
   ========================================================== */
/* CURSORE PER LO SLIDER */
.vinted-slider-scroll {
    cursor: grab; /* Manina aperta */
    user-select: none; /* Impedisce di selezionare il testo blu */
}
.vinted-slider-scroll.active {
    cursor: grabbing; /* Manina chiusa mentre trascini */
    scroll-snap-type: none !important; /* Disattiva lo scatto mentre trascini */
    scroll-behavior: auto !important; /* Toglie rallentamenti */
}
/* Impedisce al browser di trascinare l'immagine fantasma */
.vinted-slider-scroll img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}
/* STILE PALLINO ATTIVO (Bianco e Grande) */
.vinted-dot.active {
    background: #fff !important;    /* Diventa bianco */
    transform: scale(1.3);          /* Diventa più grande */
    opacity: 1 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
