/* Vittoria Italiana - contatti (modulo vi_contatti 1.2.0) */
.vi-contatti a { text-decoration: none; }
.vi-c-azioni { display: flex; align-items: center; gap: .5rem; }
.vi-c-tel, .vi-c-wa { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-weight: 700; white-space: nowrap; }
.vi-c-ico { flex: none; }

/* ---------- Header desktop: tre blocchi su una riga ---------- */
body #header .header-nav #_desktop_contact_link { display: none; }
body #header .header-nav .hidden-sm-down > .col-md-5 { flex: 1 1 auto; max-width: none; width: auto; }
.vi-contatti--nav { display: flex; align-items: stretch; flex-wrap: nowrap; }
.vi-contatti--nav .vi-c-item { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 6px 18px 6px 16px; border-left: 1px solid rgba(245, 205, 100, .28); }
.vi-contatti--nav .vi-c-item:first-child { border-left: 0; padding-left: 0; }
.vi-contatti--nav .vi-c-label { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #d9c9a0; line-height: 1.1; }
.vi-contatti--nav .vi-c-tel { min-height: 32px; color: #f5cd64 !important; font-size: 1.02rem; }
.vi-contatti--nav .vi-c-tel .vi-c-ico { width: 15px; height: 15px; opacity: .85; }
.vi-contatti--nav .vi-c-tel:hover { color: #fff !important; }
.vi-contatti--nav .vi-c-wa { width: 32px; height: 32px; border-radius: 50%; background: #25d366; color: #0b2e13 !important; transition: transform .15s; }
.vi-contatti--nav .vi-c-wa:hover { transform: scale(1.1); background: #3ee07c; }
.vi-contatti--nav .vi-c-wa-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 1199px) {
  .vi-contatti--nav .vi-c-item { padding-left: 10px; padding-right: 10px; }
  .vi-contatti--nav .vi-c-tel .vi-c-ico { display: none; }
}

/* ---------- Mobile e tablet: barra a tendina in alto ---------- */
.vi-contatti--mobile { display: none; }
@media (max-width: 991px) {
  .vi-contatti--mobile { display: block; background: #1d5a1c; color: #fdf8ea; }
  .vi-contatti--mobile summary { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: 0 16px; font-weight: 700; font-size: 1rem; cursor: pointer; list-style: none; }
  .vi-contatti--mobile summary::-webkit-details-marker { display: none; }
  .vi-c-freccia { width: 8px; height: 8px; border-right: 2px solid #f5cd64; border-bottom: 2px solid #f5cd64; transform: rotate(45deg); margin: -4px 0 0 4px; transition: transform .2s; }
  .vi-contatti--mobile[open] .vi-c-freccia { transform: rotate(-135deg); margin-top: 4px; }
  .vi-contatti--mobile .vi-contatti__lista { background: #fdf8ea; color: #1c1710; padding: 4px 16px 12px; border-bottom: 3px solid #b8891f; }
  .vi-contatti--mobile .vi-c-item { padding: 12px 0; border-bottom: 1px solid #e6d9b3; }
  .vi-contatti--mobile .vi-c-item:last-child { border-bottom: 0; }
  .vi-contatti--mobile .vi-c-label { display: block; font-weight: 700; margin-bottom: 8px; }
  .vi-contatti--mobile .vi-c-azioni { gap: 10px; }
  .vi-contatti--mobile .vi-c-tel, .vi-contatti--mobile .vi-c-wa { flex: 1 1 0; min-height: 48px; border-radius: 12px; font-size: 1rem; }
  .vi-contatti--mobile .vi-c-tel { background: #fff; border: 2px solid #b8891f; color: #1c1710 !important; }
  .vi-contatti--mobile .vi-c-wa { background: #1d5a1c; color: #fff !important; }
}

/* ---------- Footer: sezione sotto le colonne ---------- */
.vi-contatti-wrap { clear: both; float: left; width: 100%; padding: 0 15px 1.5rem; }
.vi-contatti--footer { background: #fdf8ea; color: #1c1710; border-radius: 14px; padding: 1.1rem 1.25rem 1.25rem; }
body #footer .vi-contatti--footer .vi-contatti__titolo { margin: 0 0 .8rem; font-family: var(--vi-serif, Georgia, serif); font-size: 1.15rem; font-weight: 700; color: #6b4f12 !important; }
.vi-contatti--footer .vi-contatti__lista { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.5rem; }
.vi-contatti--footer .vi-c-label { display: block; font-weight: 700; margin-bottom: .45rem; color: #2b2418; }
.vi-contatti--footer .vi-c-tel { min-height: 48px; padding: 0 1rem; border: 2px solid #b8891f; border-radius: 12px; color: #1c1710 !important; background: #fff; }
.vi-contatti--footer .vi-c-tel:hover { background: #f5cd64; }
.vi-contatti--footer .vi-c-wa { min-height: 48px; padding: 0 1rem; border-radius: 12px; background: #1d5a1c; color: #fff !important; }
.vi-contatti--footer .vi-c-wa:hover { background: #174414; }
@media (max-width: 767px) {
  .vi-contatti--footer .vi-contatti__lista { grid-template-columns: 1fr; }
  .vi-contatti--footer .vi-c-azioni > * { flex: 1 1 0; }
}

/* ---------- Phone menu: the theme's "Lingua / Idioma" drop-down is replaced by the flags, always on screen ---------- */
#_mobile_language_selector { display: none !important; }

/* ---------- Desktop header: "Contatti" is the last item of the menu; logo, menu and search share one row ---------- */
@media (min-width: 1200px) {
  body #header:not(:has(.vi-nav)) .header-top > .container > .row:first-of-type { display: flex; flex-wrap: nowrap; align-items: center; gap: 1.6rem; }
  body #header:not(:has(.vi-nav)) .header-top > .container > .row:first-of-type::before,
  body #header:not(:has(.vi-nav)) .header-top > .container > .row:first-of-type::after { content: none; }
  body #header:not(:has(.vi-nav)) #_desktop_logo { flex: none; width: auto; padding-right: 0; }
  body #header:not(:has(.vi-nav)) .header-top-right { flex: 1 1 auto; width: auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem 1.4rem; padding-left: 0; }
  body #header:not(:has(.vi-nav)) .header-top-right #_desktop_top_menu { flex: 1 1 auto; width: auto; float: none; }
  body #header:not(:has(.vi-nav)) .header-top-right .top-menu { flex-wrap: nowrap; justify-content: center; }
  body #header:not(:has(.vi-nav)) .header-top-right .top-menu a.dropdown-item { white-space: nowrap; }
  body #header:not(:has(.vi-nav)) .header-top-right .search-widgets { flex: 0 1 15rem; min-width: 12rem; float: none; margin: 0; }
}
body#contact #header :is(#lnk-contatti, #lnk-contacto) > a { background: #f5cd64; }
body.cms-id-6 #header :is(#lnk-professionisti, #lnk-profesionales) > a { background: #f5cd64; }
/* phone: "Contatti" is now in the menu, the lonely link under it would be a duplicate */
#header:has(:is(#lnk-contatti, #lnk-contacto)) #_mobile_contact_link { display: none; }
/* phone: long menu labels (Spanish) go on two lines instead of widening the page */
body #mobile_top_menu_wrapper .top-menu a.dropdown-item { white-space: normal; }
