/* Vetrina di sezione (template-parts/section-hub.php), in cima all'archivio della categoria. */
.cl-hub { --hub-tone:#fff1c2; --hub-accent:#f6cc4c; }
.cl-hub-tone-0 { --hub-tone:#fff1c2; --hub-accent:#f6cc4c; }
.cl-hub-tone-1 { --hub-tone:#ffe3d9; --hub-accent:#ffb69e; }
.cl-hub-tone-2 { --hub-tone:#ebe2fb; --hub-accent:#d5c3f4; }
.cl-hub-tone-3 { --hub-tone:#dcf2e7; --hub-accent:#a8dec3; }
.cl-hub-tone-4 { --hub-tone:#dcebfb; --hub-accent:#a9cdf0; }
.cl-hub-tone-5 { --hub-tone:#fde3ec; --hub-accent:#f6b5cb; }
.cl-hub-tone-6 { --hub-tone:#f1e9d8; --hub-accent:#d9c7a0; }

.cl-hub .cl-section-heading { margin:8px 0 26px; }
.cl-hub .cl-section-heading p { margin:0; max-width:340px; text-align:right; color:var(--cl-text); font-weight:500; }

/* ── Riquadri sottocategorie ── */
.cl-hub-pick { padding:20px 0 12px; }
.cl-hub-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; }
.cl-hub-tile {
    display:flex; flex-direction:column; align-items:center; gap:12px; min-width:0; padding:16px 12px 14px;
    background:var(--hub-tone); border-radius:22px; color:var(--cl-ink); text-align:center;
    transition:transform .2s ease,box-shadow .2s ease;
}
.cl-hub-tile-img {
    display:block; width:100%; max-width:150px; aspect-ratio:1/1; overflow:hidden; background:#fff;
    border-radius:58% 42% 46% 54% / 52% 48% 52% 48%; box-shadow:0 0 0 5px rgb(255 255 255 / 55%);
}
.cl-hub-tile:nth-child(even) .cl-hub-tile-img { border-radius:44% 56% 52% 48% / 48% 54% 46% 52%; }
.cl-hub-tile-img img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.cl-hub-tile-copy { display:flex; flex-direction:column; gap:2px; min-width:0; }
.cl-hub-tile-name { font:400 26px/1.05 var(--font-brush),cursive; overflow-wrap:anywhere; }
.cl-hub-tile-count { font-size:12px; font-weight:700; color:var(--cl-text); }
/* Desktop: tutti i riquadri su una riga (--hub-cols = quanti sono), compatti e quasi quadrati. */
@media (min-width:1024px) {
    .cl-hub-tiles { grid-template-columns:repeat(var(--hub-cols,6),minmax(0,190px)); gap:12px; }
    .cl-hub-tile { gap:8px; padding:12px 8px; border-radius:18px; }
    .cl-hub-tile-img { max-width:92px; box-shadow:0 0 0 4px rgb(255 255 255 / 55%); }
    .cl-hub-tile-name { font-size:20px; }
    .cl-hub-tile-count { font-size:11.5px; }
}
.cl-hub-tile:focus-visible,.cl-hub-related-card:focus-visible,.cl-hub-shelf-cta:focus-visible { outline:3px solid #a26715; outline-offset:3px; }

/* ── Mensole: riquadro colorato + prodotti ── */
.cl-hub-shelf { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,4fr); gap:16px; margin-top:28px; align-items:stretch; }
.cl-hub-shelf-banner {
    position:relative; display:flex; flex-direction:column; align-items:flex-start; min-width:0; padding:24px 20px;
    background:var(--hub-tone); border-radius:22px; overflow:hidden; isolation:isolate;
}
.cl-hub-shelf-banner::after {
    content:""; position:absolute; right:-46px; bottom:-52px; z-index:-1; width:170px; height:170px;
    background:var(--hub-accent); opacity:.55; border-radius:58% 42% 46% 54% / 52% 48% 52% 48%;
}
.cl-hub-shelf-eyebrow { display:block; margin-bottom:6px; font-family:var(--font-body),sans-serif; font-size:11px; line-height:1.3; font-weight:750; letter-spacing:.08em; text-transform:uppercase; color:var(--cl-text); }
.cl-site .cl-hub-shelf-banner h2 { margin:0 0 10px; font-size:clamp(32px,3vw,42px); line-height:1; text-transform:none; overflow-wrap:anywhere; }
.cl-hub-shelf-banner p { margin:0 0 18px; font-size:13.5px; line-height:1.5; color:var(--cl-text); }
.cl-hub-shelf-links { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin-top:auto; }
.cl-hub-shelf-more { display:inline-flex; align-items:center; gap:6px; min-height:32px; font-size:13px; font-weight:750; line-height:1.3; color:var(--cl-ink); text-decoration:underline; text-decoration-color:var(--hub-accent); text-decoration-thickness:2px; text-underline-offset:4px; }
.cl-hub-shelf-cta {
    display:inline-flex; align-items:center; gap:8px; padding:10px 16px; min-height:40px;
    background:var(--cl-ink); color:#fff; border-radius:999px; font-size:13px; font-weight:700; line-height:1.2;
    transition:transform .18s ease;
}
.cl-hub-shelf-products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; min-width:0; }

/* ── Sezioni vicine ── */
.cl-hub-related { padding:44px 0 8px; }
.cl-hub-related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.cl-hub-related-card {
    display:flex; align-items:center; gap:14px; min-width:0; padding:14px 16px; background:#fff; color:var(--cl-ink);
    border:1px solid #efe6d2; border-radius:20px; transition:transform .2s ease,box-shadow .2s ease;
}
.cl-hub-related-img { flex:none; width:72px; height:72px; overflow:hidden; background:#f1ece4; border-radius:50%; }
.cl-hub-related-img img { display:block; width:100%; height:100%; object-fit:cover; }
.cl-hub-related-copy { display:flex; flex:1; flex-direction:column; gap:3px; min-width:0; }
.cl-hub-related-name { font:800 16px/1.3 var(--font-nunito),sans-serif; }
.cl-hub-related-text { font-size:12.5px; line-height:1.45; color:var(--cl-text); }
.cl-hub-related-arrow { flex:none; display:grid; place-items:center; width:34px; height:34px; background:var(--cl-yellow); border-radius:50%; font-weight:800; }

/* ── Domande frequenti ── */
.cl-hub-faq { margin:44px 0 8px; }
.cl-hub-faq-item { border-bottom:1px solid rgb(53 52 47 / 12%); }
.cl-hub-faq-item summary { padding:14px 0; font-weight:700; color:var(--cl-ink); cursor:pointer; }
.cl-hub-faq-item p { margin:0 0 16px; max-width:760px; line-height:1.6; color:var(--cl-text); }

@media (hover:hover) {
    .cl-hub-tile:hover,.cl-hub-related-card:hover { transform:translateY(-3px); box-shadow:0 8px 22px rgb(53 52 47 / 9%); }
    .cl-hub-tile:hover .cl-hub-tile-img img { transform:scale(1.06); }
    .cl-hub-shelf-cta:hover { transform:translateX(3px); }
}

@media (max-width:1023px) {
    .cl-hub-tiles { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .cl-hub-shelf { display:block; }
    .cl-hub-shelf-banner { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; column-gap:16px; padding:18px 20px; margin-bottom:12px; }
    .cl-site .cl-hub-shelf-banner h2,.cl-hub-shelf-banner p { grid-column:1; }
    .cl-site .cl-hub-shelf-banner h2 { margin:0 0 4px; }
    .cl-hub-shelf-banner p { margin:0; }
    .cl-hub-shelf-links { grid-column:2; grid-row:1 / span 3; margin:0; }
    .cl-hub-related-grid { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:639px) {
    .cl-hub .cl-section-heading { display:block; margin-bottom:18px; }
    .cl-hub .cl-section-heading p { margin-top:14px; max-width:none; text-align:left; }
    .cl-hub-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    .cl-hub-tile { flex-direction:row; gap:10px; padding:8px 10px 8px 8px; border-radius:18px; text-align:left; }
    .cl-hub-tile-img { flex:none; width:56px; box-shadow:0 0 0 3px rgb(255 255 255 / 55%); }
    .cl-hub-tile-name { font-size:21px; }
    .cl-hub-tile-count { font-size:11px; }
    .cl-hub-shelf { margin-top:22px; }
    .cl-hub-shelf-banner { display:flex; align-items:flex-start; padding:16px; border-radius:18px; }
    .cl-hub-shelf-banner p { margin-bottom:12px; }
    .cl-hub-shelf-links { flex-direction:row; flex-wrap:wrap; align-items:center; gap:6px 14px; margin-top:0; }
    /* Prodotti in riga scorrevole: quattro card restano leggibili senza allungare la pagina. */
    .cl-hub-shelf-products { display:flex; gap:10px; margin-inline:-16px; padding:2px 16px 10px; overflow-x:auto; scroll-snap-type:x proximity; scroll-padding-inline:16px; scrollbar-width:none; }
    .cl-hub-shelf-products::-webkit-scrollbar { display:none; }
    .cl-hub-shelf-products > .cl-category-card { flex:0 0 46%; scroll-snap-align:start; }
    .cl-hub-related { padding-top:32px; }
    .cl-hub-related-img { width:56px; height:56px; }
}
@media (prefers-reduced-motion:reduce) {
    .cl-hub-tile,.cl-hub-related-card,.cl-hub-tile-img img,.cl-hub-shelf-cta { transition:none; }
    .cl-hub-tile:hover,.cl-hub-related-card:hover,.cl-hub-tile:hover .cl-hub-tile-img img,.cl-hub-shelf-cta:hover { transform:none; }
}

/* Vetrina di sezione (non Natale): i riquadri stanno vicini al banner. */
.cl-soft-hub .cl-hub-pick { padding-top:0; }
.cl-soft-hub .cl-hub-pick .cl-section-heading { margin-top:0; }
@media (min-width:640px) {
    .cl-soft-hub .cl-cat-header { margin-bottom:0; }
    .cl-soft-hub .cl-cat-intro { max-width:min(560px,45%); }
}

/* Natale: isolated from the pastel ceremony hub and from ordinary category archives. */
.cl-christmas-hub {
    --christmas-green:#244d3d; --christmas-red:#963f36; --christmas-gold:#b68a35;
    background:linear-gradient(180deg,#faf5e9 0,#fffdf8 720px,#fff 100%);
}
.cl-christmas-hub .cl-cat-header { gap:32px; padding-block:34px 38px; }
.cl-christmas-hub .cl-cat-header-banner img { border-radius:28px; box-shadow:0 12px 36px rgb(89 60 29 / 7%); }
.cl-site .cl-christmas-hub .cl-cat-header h1 { color:var(--christmas-green); }
.cl-christmas-eyebrow { margin:24px 0 12px; color:var(--christmas-red); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.16em; }
.cl-christmas-hub .cl-cat-intro { max-width:440px; font-size:16px; line-height:1.65; }
.cl-christmas-hub .cl-hub { --hub-tone:#f4e8e1; --hub-accent:#ce9382; }
.cl-christmas-hub .cl-hub-tone-0 { --hub-tone:#f4e8e1; --hub-accent:#ce9382; }
.cl-christmas-hub .cl-hub-tone-1 { --hub-tone:#e5eee5; --hub-accent:#9db59b; }
.cl-christmas-hub .cl-hub-tone-2 { --hub-tone:#f5ecd7; --hub-accent:#d9be79; }
.cl-christmas-hub .cl-hub-tone-3,.cl-christmas-hub .cl-hub-tone-6 { --hub-tone:#e5eee5; --hub-accent:#9db59b; }
.cl-christmas-hub .cl-hub-tone-4,.cl-christmas-hub .cl-hub-tone-5 { --hub-tone:#f5ecd7; --hub-accent:#d9be79; }
.cl-christmas-hub .cl-section-heading h2 { color:var(--christmas-green); }
.cl-christmas-hub .cl-hub .cl-section-heading p { max-width:390px; }
.cl-christmas-hub .cl-hub-tiles { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.cl-christmas-hub .cl-hub-tile { position:relative; flex-direction:row; gap:22px; padding:22px; border:1px solid rgb(182 138 53 / 15%); border-radius:24px; text-align:left; }
.cl-christmas-hub .cl-hub-tile-img {
    position:relative; flex:none; width:112px; max-width:112px; border-radius:50%; overflow:visible;
    box-shadow:0 0 0 5px rgb(255 255 255 / 60%);
}
.cl-christmas-hub .cl-hub-tile:nth-child(even) .cl-hub-tile-img { border-radius:50%; }
.cl-christmas-hub .cl-hub-tile-img::before { content:""; position:absolute; left:calc(50% - 7px); top:-11px; width:14px; height:11px; border-radius:4px 4px 0 0; background:var(--christmas-gold); }
.cl-christmas-hub .cl-hub-tile-img img { border-radius:50%; }
.cl-christmas-hub .cl-hub-tile-name { font-size:30px; line-height:1.1; color:var(--christmas-green); }
.cl-christmas-hub .cl-hub-tile-text { margin-top:5px; font-size:13px; line-height:1.45; color:#655344; }
.cl-christmas-hub .cl-hub-tile-count { margin-top:7px; font-size:12px; color:#655344; }
/* Meno vuoto tra l'intestazione e i riquadri */
.cl-christmas-hub .cl-cat-header { padding-bottom:8px; margin-bottom:0; }
.cl-christmas-hub .cl-hub-pick { padding-top:0; }
.cl-christmas-hub .cl-hub-pick .cl-section-heading { margin-top:0; }
.cl-christmas-hub .cl-hub-shelf { margin-top:34px; }
.cl-christmas-hub .cl-hub-shelf-banner { border:1px solid rgb(182 138 53 / 15%); padding-top:34px; }
.cl-christmas-hub .cl-hub-shelf-banner::after {
    right:-18px; bottom:26px; width:110px; height:110px; border-radius:0; opacity:.3;
    clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 93%,50% 71%,21% 93%,32% 57%,2% 35%,39% 35%);
    transform:rotate(16deg);
}
.cl-site .cl-christmas-hub .cl-hub-shelf-banner h2 { color:var(--christmas-green); font-size:clamp(30px,2.8vw,40px); }
.cl-christmas-hub .cl-hub-shelf-eyebrow { color:var(--christmas-red); }
.cl-christmas-hub .cl-hub-shelf-cta { background:var(--christmas-green); min-height:44px; }
.cl-christmas-hub .cl-category-card { border:1px solid #f0e9dc; }
.cl-christmas-hub .cl-category-card-price { color:var(--christmas-red); }
.cl-christmas-hub .cl-category-card-action .button { background:#e5eee5; border-radius:12px; color:var(--christmas-green); font-size:18px; }
.cl-christmas-hub .cl-category-card-action .button::before { content:none; }
.cl-christmas-hub .cl-category-card-badge { background:#f5ecd7; color:var(--christmas-red); }
.cl-christmas-hub .cl-category-card h2 a:hover { color:var(--christmas-red); }
.cl-christmas-all { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-top:36px; padding:26px 30px; border-block:1px solid #e5d8bd; }
.cl-christmas-all p { margin:0; font:400 30px/1.2 var(--font-brush),cursive; color:var(--christmas-green); }
.cl-christmas-hub a:focus-visible { outline:3px solid var(--christmas-red); outline-offset:4px; }
@media (min-width:640px) {
    .cl-christmas-hub .cl-cat-intro { max-width:min(440px,40%); }
    .cl-christmas-hub .cl-hub-tiles--extended { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:1101px) {
    .cl-christmas-hub .cl-hub-tiles--extended { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .cl-christmas-hub .cl-hub-tiles--extended .cl-hub-tile-img { width:96px; }
    .cl-christmas-hub .cl-hub-tiles--extended .cl-hub-tile-name { font-size:26px; }
}
@media (min-width:640px) and (max-width:1100px) {
    .cl-christmas-hub .cl-hub-tile { gap:14px; padding:18px 14px; }
    .cl-christmas-hub .cl-hub-tile-img { width:76px; }
    .cl-christmas-hub .cl-hub-tile-name { font-size:24px; }
}
@media (max-width:1023px) {
    .cl-christmas-hub .cl-cat-header { padding-block:22px; }
    .cl-christmas-hub .cl-hub-shelf-banner { padding:20px; }
}
@media (max-width:639px) {
    .cl-christmas-hub .cl-cat-header { padding-block:0 22px; }
    .cl-christmas-eyebrow { margin-block:18px 10px; font-size:11px; }
    .cl-christmas-hub .cl-cat-intro { font-size:14px; }
    .cl-christmas-hub .cl-hub-tiles { grid-template-columns:minmax(0,1fr); gap:12px; }
    .cl-christmas-hub .cl-hub-tile { padding:16px 20px; gap:20px; border-radius:20px; }
    .cl-christmas-hub .cl-hub-tile-img { width:74px; }
    .cl-christmas-hub .cl-hub-tile-name { font-size:28px; }
    .cl-christmas-hub .cl-hub-shelf { margin-top:26px; }
    .cl-christmas-hub .cl-hub-shelf-banner { padding:20px 16px; }
    .cl-christmas-hub .cl-hub-shelf-products > .cl-category-card { flex-basis:72%; }
    .cl-christmas-all { flex-direction:column; align-items:flex-start; padding:22px 0; margin-top:28px; }
    .cl-christmas-all p { font-size:28px; }
}
