/* Vittoria Italiana - pagina Catalogo dei professionisti (modulo vi_catalogo).
   Usa le variabili di vi_style se ci sono; i valori dopo la virgola valgono se il modulo di stile è spento. */

.vc { max-width: 1200px; margin: 0 auto; }

.vc-lead { margin: 0 0 1rem; max-width: 52rem; font-size: 1.05rem; line-height: 1.55; color: var(--vi-muted, #5a5142); }

.vc-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.75rem; }

.vc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .6rem 1.4rem;
  border: 2px solid var(--vi-green, #1d5a1c); border-radius: 999px;
  background: var(--vi-green, #1d5a1c); color: #fff;
  font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
}
.vc-btn:hover, .vc-btn:focus { background: var(--vi-logo-green, #174414); border-color: var(--vi-logo-green, #174414); color: #fff; text-decoration: none; }
.vc-btn-l { background: #fff; color: var(--vi-green, #1d5a1c); }
.vc-btn-l:hover, .vc-btn-l:focus { background: var(--vi-cream, #fdf8ea); color: var(--vi-logo-green, #174414); }

/* indice delle categorie */
.vc-index { margin: 0 0 2rem; }
.vc-index ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.vc-index a {
  display: inline-flex; align-items: center; gap: .4rem;
  min-height: 44px; padding: .35rem .95rem;
  border: 1px solid var(--vi-line, #e6d9b3); border-radius: 999px;
  background: var(--vi-cream, #fdf8ea); color: var(--vi-ink, #1c1710);
  font-weight: 600; line-height: 1.2; text-decoration: none;
}
.vc-index a span { font-size: .85em; font-weight: 400; color: var(--vi-muted, #5a5142); }
.vc-index a:hover, .vc-index a:focus { border-color: var(--vi-gold-deep, #b8891f); text-decoration: none; }

/* sezioni */
.vc-cat { margin: 0 0 2.25rem; scroll-margin-top: 96px; }
.vc-h2 {
  margin: 0 0 .9rem; padding-bottom: .4rem;
  border-bottom: 3px solid var(--vi-gold, #f5cd64);
  font-size: clamp(1.3rem, 3.2vw, 1.7rem); line-height: 1.2; text-transform: none; letter-spacing: 0;
}

.vc-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem;
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 576px) { .vc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 1.8.0: al massimo 4 per riga, foto grandi (richiesta di Marco 02/12) */
@media (min-width: 768px) { .vc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }

.vc-item {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: .75rem .5rem; text-align: center;
  border: 1px solid var(--vi-line, #e6d9b3); border-radius: 10px; background: #fff;
}
.vc-img { display: block; flex: none; width: 100%; max-width: 250px; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; background: #fff; }
.vc-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vc-open { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: inherit; text-decoration: none; }
.vc-open:hover .vc-name, .vc-open:focus .vc-name { text-decoration: underline; }
.vc-open:focus-visible { outline: 3px solid var(--vi-green, #1d5a1c); outline-offset: 3px; border-radius: 6px; }
.vc-name { font-size: 1rem; line-height: 1.3; text-transform: none; overflow-wrap: anywhere; color: var(--vi-ink, #1c1710); }

.vc-note { margin: 0 0 1rem; padding: .75rem 1rem; border-left: 4px solid var(--vi-green, #1d5a1c); background: #f3f7f1; font-size: .95rem; line-height: 1.4; }
.vc-price { margin-top: auto; padding: .45rem .2rem; min-height: 44px; display: inline-flex; align-items: center; font-size: .85rem; font-weight: 700; line-height: 1.2; color: var(--vi-green, #1d5a1c); text-decoration: underline; }

/* blocco finale */
.vc-end {
  margin-top: 2.5rem; padding: 1.5rem 1rem; text-align: center;
  border: 1px solid var(--vi-line, #e6d9b3); border-radius: 12px; background: var(--vi-cream, #fdf8ea);
}
.vc-end .vc-lead { margin-left: auto; margin-right: auto; }
.vc-end .vc-cta { justify-content: center; margin-bottom: 1rem; }
.vc-tel { margin: 0; font-weight: 700; }
.vc-tel a { display: inline-block; min-height: 44px; padding: .55rem .25rem; color: var(--vi-green, #1d5a1c); }

/* v1.2.0 - blocchi SEO/GEO: in breve, testo di categoria, FAQ, link utili */
.vc-facts { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-left: 4px solid var(--vi-gold, #f5cd64); background: var(--vi-cream, #fdf8ea); border-radius: 0 10px 10px 0; }
.vc-facts .vc-h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: .5rem; font-size: 1.15rem; }
.vc-facts ul { margin: 0; padding-left: 1.1rem; }
.vc-facts li { margin: .25rem 0; line-height: 1.5; color: var(--vi-ink, #1c1710); }
.vc-desc { margin: 0 0 1rem; max-width: 52rem; line-height: 1.55; color: var(--vi-muted, #5a5142); }
.vc-faq { margin: 2.5rem 0 0; max-width: 52rem; }
.vc-faq h3 { margin: 1.25rem 0 .35rem; font-size: 1.05rem; line-height: 1.3; text-transform: none; color: var(--vi-ink, #1c1710); }
.vc-faq p { margin: 0; line-height: 1.55; color: var(--vi-muted, #5a5142); }
.vc-faq a, .vc-links a { color: var(--vi-green, #1d5a1c); text-decoration: underline; }
.vc-links { margin: 2rem 0 0; }
.vc-links ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.vc-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.vc-addr { margin: .5rem 0 0; font-size: .9rem; color: var(--vi-muted, #5a5142); }

/* v1.5.0 - pagina a tutta larghezza, parte dal catalogo, categorie sempre visibili.
   Le regole con l'id del body valgono solo per questa pagina. */
#module-vi_catalogo-catalogo #wrapper .container { max-width: none; padding-left: clamp(10px, 2vw, 28px); padding-right: clamp(10px, 2vw, 28px); }
#module-vi_catalogo-catalogo #content-wrapper { padding-left: 0; padding-right: 0; }
#module-vi_catalogo-catalogo #wrapper .row { margin-left: 0; margin-right: 0; }
#module-vi_catalogo-catalogo #content.page-content { padding: 0; border: 0; background: transparent; box-shadow: none; }
.vc { max-width: none; }
.vc [hidden] { display: none !important; }

.vc-top { margin: 0 0 .9rem; }
.vc-h1 { margin: 0 0 .35rem; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.15; text-transform: none; letter-spacing: 0; color: var(--vi-ink, #1c1710); }
.vc-topline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.vc-short { flex: 1 1 22rem; margin: 0; font-size: 1rem; line-height: 1.4; color: var(--vi-muted, #5a5142); }
.vc-topcta { display: flex; flex-wrap: wrap; gap: .5rem; }
.vc-topcta .vc-btn { min-height: 44px; padding: .45rem 1.1rem; font-size: .95rem; }

.vc-layout { display: block; }
.vc-side { display: contents; }

/* ricerca */
.vc-search { margin: 0 0 .75rem; }
.vc-search-l { display: block; margin: 0 0 .35rem; text-align: left; float: none; width: auto; font-weight: 700; font-size: .95rem; color: var(--vi-ink, #1c1710); }
.vc-search-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.vc-q { flex: 1 1 12rem; min-width: 0; min-height: 48px; padding: .55rem 1rem; font-size: 16px; line-height: 1.3; border: 2px solid var(--vi-line, #e6d9b3); border-radius: 10px; background: #fff; color: var(--vi-ink, #1c1710); }
.vc-q:focus { outline: 3px solid var(--vi-gold, #f5cd64); border-color: var(--vi-gold-deep, #b8891f); }
.vc-reset { min-height: 44px; padding: .4rem 1rem; border: 2px solid var(--vi-green, #1d5a1c); border-radius: 10px; background: #fff; color: var(--vi-green, #1d5a1c); font-weight: 700; cursor: pointer; }
.vc-count { margin: .4rem 0 0; min-height: 1.3em; font-size: .9rem; color: var(--vi-muted, #5a5142); }
.vc-none { margin: 0 0 1.5rem; padding: .9rem 1.1rem; border-left: 4px solid var(--vi-gold-deep, #b8891f); background: var(--vi-cream, #fdf8ea); line-height: 1.5; }
.vc-none a { color: var(--vi-green, #1d5a1c); font-weight: 700; text-decoration: underline; }

/* categorie: sul telefono una barra fissa in alto che scorre di lato */
.vc-index { position: sticky; top: 0; z-index: 20; margin: 0 0 1rem; padding: .5rem .25rem; overflow-x: auto; background: var(--vi-cream, #fdf8ea); border-bottom: 1px solid var(--vi-line, #e6d9b3); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.vc-index ul { display: flex; flex-wrap: nowrap; gap: .4rem; margin: 0; padding: 0; list-style: none; width: max-content; }
.vc-index a { white-space: nowrap; min-height: 44px; padding: .3rem .85rem; }
.vc-index a.is-active { background: var(--vi-green, #1d5a1c); border-color: var(--vi-green, #1d5a1c); color: #fff; }
.vc-index a.is-active span { color: #e9efe6; }
.vc-cat { scroll-margin-top: 72px; }

/* schermo grande: categorie in una colonna fissa a sinistra, sempre visibile */
@media (min-width: 992px) {
  .vc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
  .vc-side { display: block; position: sticky; top: 12px; align-self: start; }
  .vc-index { position: relative; top: auto; z-index: auto; margin: 0; padding: 0; overflow-x: visible; overflow-y: auto; max-height: calc(100vh - 150px); background: transparent; border-bottom: 0; }
  .vc-index ul { flex-direction: column; flex-wrap: nowrap; align-items: stretch; width: auto; gap: .3rem; }
  .vc-index a { width: 100%; justify-content: space-between; white-space: normal; padding: .3rem .85rem; }
  .vc-cat { scroll-margin-top: 16px; }
}

/* prodotti: più colonne su schermi larghi */
@media (min-width: 992px) { .vc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; } }

/* pannello del pulsante fisso «Catalogo» (vi_fab) quando si è in questa pagina */
.vc-fab-link { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.vc-fab-n { font-weight: 400; font-size: .9em; opacity: .7; }
.vc-fab-link.is-active { color: var(--vi-green, #1d5a1c) !important; font-weight: 800; }

/* telefono: il catalogo deve comparire nella prima schermata */
@media (max-width: 991px) {
  .vc-search-l { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .vc-count { margin-top: .25rem; min-height: 0; }
  .vc-top { margin-bottom: .6rem; }
  .vc-short { font-size: .95rem; }
}
@media (max-width: 575px) {
  .vc-h1 { font-size: 1.3rem; }
  .vc-topcta .vc-btn-l { display: none; }
  .vc-topcta { width: 100%; }
  .vc-topcta .vc-btn { width: 100%; }
}

/* 1.8.0: etichetta "Nuovo/Nuevo" come quella delle schede del tema */
.vc-new { position: absolute; top: 8px; left: 8px; z-index: 1; padding: .2rem .55rem; border-radius: 999px; background: var(--vi-gold, #f2c14e); color: #1c1710; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; box-shadow: 0 1px 3px rgba(0,0,0,.15); pointer-events: none; }
.vc-item--new { border-color: var(--vi-gold, #f2c14e); box-shadow: 0 0 0 1px var(--vi-gold, #f2c14e); }
