/* ── Ares Hub Shortcodes CSS v3 ────────────────────────────────────────────── */
:root {
  --ahub-accent:  #0a2240;
  --ahub-gold:    #c8a951;
  --ahub-text:    #1a1a2e;
  --ahub-muted:   #6b7280;
  --ahub-border:  #e5e7eb;
  --ahub-bg:      #f9fafb;
  --ahub-radius:  8px;
  --ahub-shadow:  0 2px 16px rgba(0,0,0,.07);
}

/* ── blocco base ── */
.ahub-block { margin-bottom: 48px; }
.ahub-block__title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ahub-muted); font-weight: 600; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.ahub-block__title::after { content:''; flex:1; height:1px; background:var(--ahub-border); }
.ahub-count {
  font-size: 11px; color: var(--ahub-muted); font-weight: 400;
  background: var(--ahub-bg); border: 1px solid var(--ahub-border);
  padding: 1px 8px; border-radius: 10px;
}

/* ── hero ── */
.ahub-hero { position:relative; background:var(--ahub-accent); color:#fff;
  border-radius: var(--ahub-radius); overflow:hidden; margin-bottom:40px; }
.ahub-hero__bg { position:absolute; inset:0; }
.ahub-hero__bg img { width:100%; height:100%; object-fit:cover; opacity:.22; }
.ahub-hero__inner { position:relative; padding:40px 36px 32px; z-index:1; }
.ahub-breadcrumb { font-size:11px; color:rgba(255,255,255,.55); margin-bottom:16px;
  display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.ahub-breadcrumb a { color:rgba(255,255,255,.65); text-decoration:none; }
.ahub-breadcrumb a:hover { color:#fff; }
.ahub-tax-label { font-size:10px; text-transform:uppercase; letter-spacing:.14em;
  color:var(--ahub-gold); margin-bottom:8px; }
.ahub-hero__title { font-size:clamp(28px,5vw,48px); font-weight:700;
  line-height:1.1; margin:0 0 8px; color:#fff; }
.ahub-hero__subtitle { font-size:16px; color:rgba(255,255,255,.75);
  margin:0 0 20px; line-height:1.5; }
.ahub-hero__meta { font-size:12px; color:rgba(255,255,255,.55); }
.ahub-hero__count strong { color:#fff; }

/* ── intro ── */
.ahub-intro__body { font-size:16px; line-height:1.8; color:var(--ahub-text); }
.ahub-intro__body p { margin-bottom:1em; }
.ahub-intro__body strong { color:var(--ahub-accent); }
.ahub-intro__body ul { margin:.5em 0 1em 1.5em; }
.ahub-intro__body li { margin-bottom:.3em; }

/* ── scheda ── */
.ahub-scheda__grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.ahub-scheda__item { background:#fff; border:1px solid var(--ahub-border);
  border-radius:6px; padding:12px 14px; }
.ahub-scheda__item dt { font-size:10px; text-transform:uppercase; letter-spacing:.08em;
  color:var(--ahub-muted); margin-bottom:3px; }
.ahub-scheda__item dd { font-size:14px; font-weight:600; color:var(--ahub-text); margin:0; }

/* ── specifiche ── */
.ahub-specs-table { width:100%; border-collapse:collapse; font-size:13px; }
.ahub-specs-table th { text-align:left; font-weight:500; color:var(--ahub-muted);
  padding:8px 12px; border-bottom:1px solid var(--ahub-border); width:40%; }
.ahub-specs-table td { padding:8px 12px; border-bottom:1px solid var(--ahub-border);
  font-weight:500; color:var(--ahub-text); }
.ahub-specs-table tr:last-child th,
.ahub-specs-table tr:last-child td { border-bottom:none; }

/* ── varianti ── */
.ahub-varianti__grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.ahub-variante { background:#fff; border:1px solid var(--ahub-border);
  border-radius:var(--ahub-radius); overflow:hidden; }
.ahub-variante__img img { width:100%; height:140px; object-fit:cover; display:block; }
.ahub-variante__body { padding:14px; }
.ahub-variante__nome { font-size:14px; font-weight:700; color:var(--ahub-text); display:block; margin-bottom:4px; }
.ahub-variante__desc { font-size:12px; color:var(--ahub-muted); margin:0; line-height:1.5; }

/* ── operatori ── */
.ahub-operatori__list { list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:8px; }
.ahub-operatore { display:flex; align-items:center; gap:8px;
  padding:8px 12px; background:#fff; border:1px solid var(--ahub-border);
  border-radius:5px; font-size:13px; }
.ahub-operatore__flag { width:24px; height:16px; object-fit:cover;
  border-radius:2px; flex-shrink:0; }
.ahub-operatore__paese { flex:1; font-weight:500; color:var(--ahub-text); }
.ahub-operatore__qty { font-size:12px; color:var(--ahub-muted);
  font-weight:600; flex-shrink:0; }

/* ── articoli ── */
.ahub-articoli__grid { display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; }
.ahub-card { background:#fff; border:1px solid var(--ahub-border);
  border-radius:var(--ahub-radius); overflow:hidden;
  transition:box-shadow .2s,transform .2s; }
.ahub-card:hover { box-shadow:var(--ahub-shadow); transform:translateY(-2px); }
.ahub-card__img { display:block; overflow:hidden; aspect-ratio:16/9; }
.ahub-card__img img { width:100%; height:100%; object-fit:cover;
  display:block; transition:transform .3s; }
.ahub-card:hover .ahub-card__img img { transform:scale(1.04); }
.ahub-card__body { padding:14px 16px; }
.ahub-card__date { font-size:11px; color:var(--ahub-muted); display:block; margin-bottom:5px; }
.ahub-card__title { font-size:14px; font-weight:600; line-height:1.4; margin:0 0 7px; }
.ahub-card__title a { color:var(--ahub-text); text-decoration:none; }
.ahub-card__title a:hover { color:var(--ahub-accent); }
.ahub-card__excerpt { font-size:12px; color:var(--ahub-muted); line-height:1.6; margin:0; }
.ahub-more { margin-top:24px; text-align:center; }
.ahub-btn { display:inline-block; padding:10px 24px;
  background:var(--ahub-accent); color:#fff; text-decoration:none;
  border-radius:5px; font-size:13px; font-weight:500; transition:opacity .15s; }
.ahub-btn:hover { opacity:.85; color:#fff; }

/* ── sistemi simili ── */
.ahub-simili__grid { display:flex; gap:12px; flex-wrap:wrap; }
.ahub-simile { display:flex; align-items:center; gap:10px;
  padding:10px 14px; background:#fff; border:1px solid var(--ahub-border);
  border-radius:6px; text-decoration:none; color:var(--ahub-text);
  transition:box-shadow .15s; min-width:160px; }
.ahub-simile:hover { box-shadow:var(--ahub-shadow); }
.ahub-simile__img { width:48px; height:36px; flex-shrink:0; overflow:hidden; border-radius:3px; }
.ahub-simile__img img { width:100%; height:100%; object-fit:cover; }
.ahub-simile__body { display:flex; flex-direction:column; gap:2px; }
.ahub-simile__body strong { font-size:13px; font-weight:600; }
.ahub-simile__body span { font-size:11px; color:var(--ahub-muted); }

/* ── capacità ── */
.ahub-capacita__grid { display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
.ahub-cap { background:#fff; border:1px solid var(--ahub-border);
  border-radius:6px; padding:16px; text-align:center; }
.ahub-cap__nome { font-size:13px; font-weight:600; color:var(--ahub-accent); margin-bottom:6px; }
.ahub-cap__desc { font-size:11px; color:var(--ahub-muted); line-height:1.5; margin:0; }

/* ── custom ── */
.ahub-custom__body { font-size:15px; line-height:1.8; color:var(--ahub-text); }
.ahub-custom__body p { margin-bottom:1em; }
.ahub-custom__body table { width:100%; border-collapse:collapse; margin:1em 0; }
.ahub-custom__body th,.ahub-custom__body td { padding:8px 12px;
  border:1px solid var(--ahub-border); font-size:13px; }
.ahub-custom__body th { background:var(--ahub-bg); font-weight:600; }

/* ── responsive ── */
@media(max-width:768px){
  .ahub-hero__inner { padding:28px 20px 24px; }
  .ahub-scheda__grid { grid-template-columns:1fr 1fr; }
  .ahub-articoli__grid { grid-template-columns:1fr; }
  .ahub-operatori__list { grid-template-columns:1fr 1fr; }
  .ahub-simili__grid { flex-direction:column; }
}
@media(max-width:480px){
  .ahub-scheda__grid { grid-template-columns:1fr; }
  .ahub-capacita__grid { grid-template-columns:1fr 1fr; }
}

/* ── specifiche tecniche ── */
.hub-specs-table { width:100%; border-collapse:collapse; font-size:14px; }
.hub-specs-table th { text-align:left; font-weight:500; color:var(--ahub-muted);
  padding:9px 12px; border-bottom:1px solid var(--ahub-border); width:42%; }
.hub-specs-table td { padding:9px 12px; border-bottom:1px solid var(--ahub-border);
  font-weight:600; color:var(--ahub-text); }
.hub-specs-table tr:last-child th,
.hub-specs-table tr:last-child td { border-bottom:none; }

/* ── varianti ── */
.hub-varianti-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; }
.hub-variante { background:#fff; border:1px solid var(--ahub-border);
  border-radius:var(--ahub-radius); overflow:hidden; }
.hub-variante-img img { width:100%; height:130px; object-fit:cover; display:block; }
.hub-variante-body { padding:12px 14px; }
.hub-variante-nome { font-size:14px; font-weight:700; color:var(--ahub-text); display:block; margin-bottom:4px; }
.hub-variante-body p { font-size:12px; color:var(--ahub-muted); margin:0; line-height:1.5; }

/* ── capacità ── */
.hub-capacita-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.hub-cap { background:#fff; border:1px solid var(--ahub-border); border-radius:6px; padding:14px; text-align:center; }
.hub-cap-nome { font-size:13px; font-weight:600; color:var(--ahub-accent); margin-bottom:5px; }
.hub-cap-desc { font-size:11px; color:var(--ahub-muted); line-height:1.5; margin:0; }

/* ── sistemi simili ── */
.hub-simili-grid { display:flex; gap:10px; flex-wrap:wrap; }
.hub-simile { display:flex; align-items:center; gap:10px; padding:10px 12px;
  background:#fff; border:1px solid var(--ahub-border); border-radius:6px;
  text-decoration:none; color:var(--ahub-text); transition:box-shadow .15s; min-width:150px; }
.hub-simile:hover { box-shadow:var(--ahub-shadow); }
.hub-simile-img { width:44px; height:32px; flex-shrink:0; overflow:hidden; border-radius:3px; }
.hub-simile-img img { width:100%; height:100%; object-fit:cover; }
.hub-simile-body { display:flex; flex-direction:column; gap:2px; }
.hub-simile-body strong { font-size:13px; font-weight:600; }
.hub-simile-body span { font-size:11px; color:var(--ahub-muted); }

/* ── operatori (sidebar) ── */
.hub-operatori-list { list-style:none; margin:0; padding:0; }
.hub-operatore { display:flex; align-items:center; gap:8px;
  padding:8px 14px; border-bottom:1px solid var(--ahub-border); font-size:13px; }
.hub-operatore:last-child { border-bottom:none; }
.hub-op-flag { width:22px; height:15px; object-fit:cover; border-radius:2px; flex-shrink:0; }
.hub-op-paese { flex:1; font-weight:500; color:var(--ahub-text); }
.hub-op-qty { font-size:12px; color:var(--ahub-muted); font-weight:600; }

/* ── subtitle hero ── */
.hub-subtitle { font-size:16px; color:rgba(255,255,255,.75); margin:4px 0 8px; line-height:1.5; }

/* ── correlazioni tassonomiche ── */
.hub-correlazioni {
  background: var(--ahub-accent);
  padding: 40px 0;
  margin-top: 48px;
}
.hub-corr-group {
  max-width: 1200px;
  margin: 0 auto 32px;
  padding: 0 24px;
}
.hub-corr-group:last-child { margin-bottom: 0; }
.hub-corr-inner {}
.hub-corr-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.5); font-weight: 600; margin-bottom: 14px;
}
.hub-corr-items {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hub-corr-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12); border-radius: 6px;
  text-decoration: none; color: #fff;
  transition: background .15s, border-color .15s;
}
.hub-corr-item:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.hub-corr-img {
  width: 24px; height: 18px; object-fit: cover;
  border-radius: 2px; flex-shrink: 0;
}
.hub-corr-name {
  font-size: 13px; font-weight: 500;
}
.hub-corr-count {
  font-size: 11px; color: rgba(255,255,255,.5);
  margin-left: 2px;
}

@media(max-width:640px) {
  .hub-corr-items { gap: 8px; }
  .hub-corr-item { padding: 6px 10px; }
}
