/* ===================================================================
   ADV Verticale — RICERCA (sidebar /cerca)
   Copia 1:1 del banner Magazine, contesto corretto
   =================================================================== */

:root{
  --adv-img-w: 266px;
  --adv-img-h: 360px;
  --adv-logo-bar-h: 64px;
  --adv-logo-max-h: 52px;
  --adv-logo-hpad: 8px;
}

/* Card base */
.vs-cerca-sidebar .adv-vert{
  position: relative;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 18px 18px 22px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Eyebrow */
.vs-cerca-sidebar .adv-vert .advv-eyebrow{
  width: var(--adv-img-w);
  margin: 6px auto 12px;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .06em;
  color: #6b7280;
}

/* Reset figure */
.vs-cerca-sidebar .adv-vert figure{
  margin: 0;
  padding: 0;
}

/* Immagini */
.vs-cerca-sidebar .adv-vert .advv-media img{
  display: block;
  width: var(--adv-img-w);
  height: var(--adv-img-h);
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: #f6f7f9;
}

.vs-cerca-sidebar .adv-vert .advv-primary{
  margin-bottom: 0;
}

/* Corpo testo */
.vs-cerca-sidebar .adv-vert .advv-body{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.vs-cerca-sidebar .adv-vert .advv-title{
  max-width: var(--adv-img-w);
  margin: 0 auto 6px;
  text-align: center;
  font-weight: 600;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.25;
  color: #111;
  text-decoration: none;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vs-cerca-sidebar .adv-vert .advv-meta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #444;
  font-weight: 600;
}

.vs-cerca-sidebar .adv-vert .advv-price{
  font-weight: 700;
  color: #111;
}

/* CTA */
.vs-cerca-sidebar .adv-vert .advv-cta{
  display: inline-block;
  margin: 14px 0 30px;
  border: 1.5px solid #111;
  padding: 12px 22px;
  border-radius: 999px;
  color: #111;
  font-weight: 800;
  text-decoration: none;
}

/* Seconda immagine + logo */
.vs-cerca-sidebar .adv-vert .advv-secondary{
  position: relative;
  overflow: hidden;
  padding-bottom: var(--adv-logo-bar-h);
}

.vs-cerca-sidebar .adv-vert .advv-secondary .advv-logo{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  height: var(--adv-logo-bar-h);
  width: var(--adv-img-w);
  background: rgba(255,255,255,.94);
  border-top: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px var(--adv-logo-hpad);
}

.vs-cerca-sidebar .adv-vert .advv-secondary .advv-logo img{
  max-height: var(--adv-logo-max-h);
  max-width: calc(var(--adv-img-w) - 2 * var(--adv-logo-hpad));
  object-fit: contain;
}