/* ============ GS Category Catalog (v1.3.1) ============ */

/* Root + loader */
.gs-cc-root { position: relative; }
.gs-cc-loader{
  position:absolute; inset:0; background:rgba(255,255,255,.6);
  backdrop-filter:blur(1px); display:flex; align-items:center; justify-content:center;
  z-index:30; opacity:0; pointer-events:none; transition:opacity .18s ease;
}
.gs-cc-root.is-loading .gs-cc-loader{ opacity:1; pointer-events:auto; }
.gs-cc-spinner{
  width:36px; height:36px; border-radius:50%;
  border:3px solid rgba(0,0,0,.12); border-top-color:#EC0040;
  animation:gsccspin .9s linear infinite;
}
@keyframes gsccspin{ to{ transform:rotate(360deg);} }

/* Head */
.gs-cc-head{ margin: 8px 0 18px; }
.gs-cc-title{ margin: 0 0 6px; font-weight: normal; }
.gs-cc-desc{ color:#444; }

/* Breadcrumbs */
.gs-breadcrumbs ul{
  list-style:none; padding:0; margin:0 0 16px; display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px;
}
.gs-breadcrumbs li{ display:flex; align-items:center; gap:8px; color:#6a6a6a; }
.gs-breadcrumbs li.current{ color:#111; }
.gs-breadcrumbs .sep{ opacity:.4; }
.gs-breadcrumbs a{ color:#004F8A; text-decoration:none; }
.gs-breadcrumbs a:hover{ text-decoration:underline; }
.gs-home-icon{ width:14px; height:14px; display:inline-block; background:currentColor; mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23000" d="M3 12l9-8 9 8v8a2 2 0 0 1-2 2h-4v-6H9v6H5a2 2 0 0 1-2-2z"/></svg>') center / contain no-repeat; }
.gs-home-text{ display:none; } /* opzionale, tieni solo l'icona */

/* Grid */
.gs-cc-grid{
  --gscc-cols: 3;
  display:grid;
  gap:24px;
  grid-template-columns: repeat(var(--gscc-cols), minmax(0,1fr));
}

/* Card */
.gs-cc-card{
  position:relative;
  background:#f7f7f8;
  border-radius:16px;
  box-shadow:0 6px 24px rgba(0,0,0,.06);
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.gs-cc-card:is(:hover, :focus-within){
  transform:translateY(-2px);
  box-shadow:0 12px 26px rgba(0,0,0,.09);
  background:#fff;
}
.gs-cc-link{
  display:flex; align-items:center; gap:16px; padding:18px; text-decoration:none; color:inherit;
}
.gs-cc-thumb{ width:140px; min-width:140px; aspect-ratio:1/1; background:#fff; border-radius:12px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.gs-cc-thumb img{ max-width:100%; max-height:100%; display:block; }
.gs-cc-info{ flex:1 1 auto; min-width:0; }
.gs-cc-tt{ margin:0 0 6px; font-size:18px; line-height:1.2; font-weight:normal; color:#111; }
.gs-cc-chevron{ font-weight:normal; color:#EC0040; }

/* Meta + desc */
.gs-cc-meta{ color:#666; font-size:14px; margin-bottom:4px; }
.gs-cc-desc{ color:#444; font-size:14px; }

/* Direct link (freccia bianca su rosso) */
.gs-cc-card .gs-cc-direct {
  position:absolute; right:12px; top:12px; width:28px; height:28px;
  border-radius:999px; background:#EC0040; display:inline-flex; align-items:center; justify-content:center;
  box-shadow:0 3px 12px rgba(0,0,0,.15); transition:transform .18s ease, box-shadow .18s ease;
}
.gs-cc-card .gs-cc-direct svg{ width:14px; height:14px; fill:#fff; display:block; }
.gs-cc-card .gs-cc-direct:hover{ transform:translateY(-1px); box-shadow:0 6px 18px rgba(0,0,0,.22); }

/* Vuoto & errori */
.gs-cc-empty{ background:#fff; border:1px dashed #ddd; padding:18px; border-radius:12px; color:#666; text-align:center; }
.gs-cc-error{ background:#fff3f3; border:1px solid #ffd2d2; color:#8c1a1a; padding:14px 16px; border-radius:10px; }