/*
Theme Name: Traveler Child
Template: traveler
Description: Custom styles for e-borghi
Version: 2025.09.12
*/

/* =========================================================
   0) FONT — Roboto locale + forcing base
   ========================================================= */
@font-face {
  font-family: 'Roboto';
  src: url('/wp-content/themes/traveler-childtheme/fonts/roboto/roboto-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/wp-content/themes/traveler-childtheme/fonts/roboto/roboto-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('/wp-content/themes/traveler-childtheme/fonts/roboto/roboto-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Forza Roboto ovunque */
html, body, button, input, select, textarea {
  font-family: 'Roboto', sans-serif !important;
}

h1, h2, h3, h4 {
  font-family: "Roboto", sans-serif !important;
  color: #232323;
}

h2 {
  font-size: 26px !important;
  line-height: 1.3;
  margin-bottom: 12px;
}

body,
.eb-entry,
.eb-content {
  font-family: "Roboto", sans-serif !important;
  color: #232323;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: #8A1726;
  text-decoration: none;
}

a:hover {
  color: #6e0f1d;
  text-decoration: none;
}

/* =========================================================
   1) ARCHIVE — descrizione sempre fuori hero
   ========================================================= */

/* nascondi QUALSIASI paragrafo descrittivo nel banner */
.st-bg-feature p,
.st-bg-feature .container p{
  display:none !important;
}

/* ristampa la descrizione sotto l’hero */
#st-content-wrapper::before{
  content: attr(data-archive-desc);
  display:block;
  max-width: 980px;
  margin: 22px auto 14px;
  padding: 0 15px;
  font-size: 16px;
  line-height: 1.6;
  color: #1A2B48;
}
#st-content-wrapper[data-archive-desc=""]::before{
  display:none;
}

/* ARCHIVE HERO – testo più leggibile e meno “aria” */
.st-banner .archive-description,
.st-bg-feature .archive-description,
.st-banner .term-description,
.st-bg-feature .term-description{
  max-width: 760px;
  margin: 12px auto 0;
  line-height: 1.45;
  font-size: 15px;
  opacity: .95;
}
@media (max-width: 767px){
  .st-banner .archive-description,
  .st-bg-feature .archive-description,
  .st-banner .term-description,
  .st-bg-feature .term-description{
    font-size: 14px;
    line-height: 1.4;
    padding: 0 14px;
  }
}

/* BLOG CATEGORY - sidebar link neri */
body.archive.category .sidebar-right a,
body.archive.category .sidebar-right .widget a,
body.archive.category .sidebar-right .widget_recent_entries a,
body.archive.category .sidebar-right .widget_categories a {
  color: #232323 !important;
  -webkit-text-fill-color: #232323 !important;
  text-decoration: none !important;
}

body.archive.category .sidebar-right a:hover,
body.archive.category .sidebar-right .widget a:hover {
  color: #8A1726 !important;
  -webkit-text-fill-color: #8A1726 !important;
}

/* titoli widget sidebar */
body.archive.category .sidebar-right .sidebar-widget label,
body.archive.category .sidebar-right .widget-title,
body.archive.category .sidebar-right h3,
body.archive.category .sidebar-right h4 {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

/* =========================================================
   2) BLOG STYLE3 — card uniformi (tag archive + generali)
   ========================================================= */

/* struttura card */
.blog-style3 .article-style3{
  display:flex;
  flex-direction:column;
  height:100%;
}
.blog-style3 .article-style3 .post-inner{
  display:flex;
  flex-direction:column;
  flex:1;
}

/* titolo: max 2 righe */
.blog-style3 .article-style3 .post-inner .title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* estratto: max 3 righe */
.blog-style3 .article-style3 .post-inner .excerpt{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* bottone in fondo */
.blog-style3 .article-style3 .post-inner .readmore,
.blog-style3 .article-style3 .post-inner .btn-readmore,
.blog-style3 .article-style3 .post-inner .footer,
.blog-style3 .article-style3 .post-inner .bottom{
  margin-top:auto;
}

/* =========================================================
   3) BLOG STYLE3 — header immagini crop (archivi)
   ========================================================= */
body:not(.single-post) .blog-style3 .article-style3 .header,
body:not(.single-post) .blog-style3 .article-style3 header.post-header{
  aspect-ratio: 16/9;
  overflow:hidden;
  border-radius:16px;
}
body:not(.single-post) .blog-style3 .article-style3 .header img,
body:not(.single-post) .blog-style3 .article-style3 header.post-header img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block;
}

/* Sidebar + widget */
.st-sidebar,
.st-sidebar * ,
.widget,
.widget * {
  font-family: "Roboto", sans-serif !important;
}

/* Blog pagination: prev/next quadrati e centra icona */
.blog-style3 .st-blog .pagination ul.page-numbers li a.prev,
.blog-style3 .st-blog .pagination ul.page-numbers li a.next{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  min-height:42px;
  line-height:1;
}
.blog-style3 .st-blog .pagination ul.page-numbers li a.prev i,
.blog-style3 .st-blog .pagination ul.page-numbers li a.next i{
  font-size:16px;
  line-height:1;
}

/* =========================================================
   4) ICON FONT — Traveler icons fix
   ========================================================= */
.stt-icon,
.stt-icon::before{
  font-family: "traveler-icon" !important;
  font-style: normal;
  font-weight: normal;
  speak: never;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.stt-icon-tag::before{
  font-family: "traveler-icon" !important;
}

/* =========================================================
   5) CARD — thumbs cover (Traveler/EB)
   ========================================================= */
.st-img-cover{
  width:100%;
  overflow:hidden;
  border-radius:12px;
  aspect-ratio: 400 / 266;
}
.st-img-cover img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
}

/* =========================================================
   6) EB “Picked by”
   ========================================================= */
.eb-pickedby {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-weight: 400;
  color: var(--grey-color, #5E6D77);
  font-size: 13px;
  line-height: 1.2;
}
.eb-pickedby .eb-dot { opacity: .7; }
.eb-pickedby .eb-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(94,109,119,.35);
  color: var(--grey-color, #5E6D77);
  cursor: help;
  position: relative;
}
.eb-pickedby .eb-i::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 125%;
  width: min(320px, 70vw);
  padding: 10px 12px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 9999;
  white-space: normal;
}
.eb-pickedby .eb-i:hover::after { opacity: 1; }

/* =========================================================
   7) SHARE ICONS — solo single post (SVG via CSS)
   ========================================================= */
.single-post .share{
  display:flex;
  gap:10px;
  align-items:center;
}

/* bottone */
.single-post .share a.share-item{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:30px;
  text-decoration:none;
  padding:0 !important;
  line-height:1;
}

/* nasconde eventuali icon-font del tema */
.single-post .share a.share-item i,
.single-post .share a.share-item span{
  display:none !important;
}

/* base icona */
.single-post .share a.share-item::before{
  content:"";
  width:18px;
  height:18px;
  display:block;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  flex: 0 0 18px;
  opacity: 1;
}

/* colori bottoni */
.single-post .share a.share-item[href*="facebook.com"]{ background:#1877F2; }
.single-post .share a.share-item[href*="x.com"],
.single-post .share a.share-item[href*="twitter.com"]{ background:#000000; }
.single-post .share a.share-item[href*="wa.me"],
.single-post .share a.share-item[href*="whatsapp.com"]{ background:#25D366; }
.single-post .share a.share-item[href*="t.me"],
.single-post .share a.share-item[href*="telegram.me"]{ background:#229ED9; }
.single-post .share a.share-item.copy-link{ background:#6B7280; }

/* hover */
.single-post .share a.share-item:hover{ filter:brightness(0.95); }

/* icone */
.single-post .share a.share-item[href*="facebook.com"]::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='%23fff' d='M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.2V288z'/%3E%3C/svg%3E");
}
.single-post .share a.share-item[href*="x.com"]::before,
.single-post .share a.share-item[href*="twitter.com"]::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M389.2 48h70.6L305.6 224.2 487 464h-142L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172l100.4 132.3L389.2 48z'/%3E%3C/svg%3E");
}
.single-post .share a.share-item.wa::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23fff' d='M380.9 97.1C339-3.1 256.9-11 224.2-11 101.5-11 0 90.5 0 213.2c0 41.1 10.8 81.3 31.3 116.8L0 448l122.6-30.9c33.8 18.5 71.9 28.2 110.6 28.2h.1c122.7 0 224.2-101.5 224.2-224.2 0-32.7-8-64.2-23.2-92zM224.1 405.4h-.1c-34.8 0-68.9-9.4-98.4-27.2l-7.1-4.2-72.8 18.3 19.4-71-4.6-7.4c-19.4-31-29.6-66.9-29.6-103.8C31 110.6 119.7 22 224.2 22c27.8 0 79.6 10 111.8 42.2 29.7 29.7 46 69.1 46 110.9 0 104.5-88.6 190.3-197.9 190.3zm110.6-142.5c-6.1-3.1-36.2-17.9-41.8-19.9-5.6-2.1-9.7-3.1-13.8 3.1-4.1 6.1-15.9 19.9-19.5 24-3.6 4.1-7.2 4.6-13.3 1.5-6.1-3.1-25.8-9.5-49.2-30.3-18.2-16.2-30.4-36.2-34-42.3-3.6-6.1-.4-9.4 2.7-12.5 2.8-2.8 6.1-7.2 9.2-10.8 3.1-3.6 4.1-6.1 6.1-10.2 2.1-4.1 1-7.7-.5-10.8-1.5-3.1-13.8-33.2-18.9-45.5-5-12-10.1-10.4-13.8-10.6-3.6-.2-7.7-.2-11.8-.2-4.1 0-10.8 1.5-16.4 7.7-5.6 6.1-21.5 21-21.5 51.2s22 59.4 25.1 63.5c3.1 4.1 43.3 66.1 104.9 92.7 14.6 6.3 26 10.1 34.9 12.9 14.7 4.7 28 4 38.5 2.4 11.7-1.7 36.2-14.8 41.3-29.2 5.1-14.3 5.1-26.6 3.6-29.2-1.5-2.6-5.6-4.1-11.7-7.2z'/%3E%3C/svg%3E");
}
.single-post .share a.share-item.tg::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'%3E%3Cpath fill='%23fff' d='M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm114.9 169.4l-40.6 191.7c-3.1 13.6-11.2 16.9-22.7 10.5l-62.9-46.4-30.3 29.2c-3.3 3.3-6.1 6.1-12.5 6.1l4.5-64.2 116.9-105.6c5.1-4.5-1.1-7-7.9-2.5L165.1 284.6l-61.5-19.2c-13.4-4.2-13.7-13.4 2.8-19.8l240.3-92.7c11.2-4.2 21 2.5 17.9 24.5z'/%3E%3C/svg%3E");
}
.single-post .share a.share-item.copy-link::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23fff' d='M384 336H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h140.1c8.5 0 16.6 3.4 22.6 9.4L406.6 115c6 6 9.4 14.1 9.4 22.6V304c0 17.7-14.3 32-32 32zM64 128h64v64H96v224c0 17.7 14.3 32 32 32h192v64H128c-53 0-96-43-96-96V128z'/%3E%3C/svg%3E");
}
.single-post .share a.share-item.copy-link.is-copied{ filter:brightness(0.9); }

/* =========================================================
   8) PAGINATION — fix icone (FA5) + hover bordeaux
   ========================================================= */
.blog-style3 .pagination i.fa-angle-right,
.blog-style3 .pagination i.fa-angle-left{
  font-style: normal;
  display: inline-block;
  line-height: 1;
}
.blog-style3 .pagination i.fa-angle-right:before{
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.blog-style3 .pagination i.fa-angle-left:before{
  content: "\f104";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.blog-style3 .pagination i.fa-angle-double-right:before{
  content: "\f101";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}
.blog-style3 .pagination i.fa-angle-double-left:before{
  content: "\f100";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* Hover/focus globale paginazione */
.pagination a.page-numbers,
.pagination span.page-numbers{
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pagination i[class*="fa-angle"]{
  transition: color .2s ease;
}
.pagination a.page-numbers:hover,
.pagination a.page-numbers:focus{
  background-color: #8A1726 !important;
  border-color: #8A1726 !important;
  color: #fff !important;
}
.pagination a.page-numbers:hover i[class*="fa-angle"],
.pagination a.page-numbers:focus i[class*="fa-angle"]{
  color: #fff !important;
}
.pagination span.page-numbers.current{
  background-color: #8A1726 !important;
  border-color: #8A1726 !important;
  color: #fff !important;
}

/* =========================================================
   9) EB CARD — link overlay (accessibile) + layout
   ========================================================= */
.eb-card{
  position:relative;
  display:flex;
  flex-direction:column;
  height:100%;
}
.eb-card-link{
  position:absolute;
  inset:0;
  z-index:1;
  overflow:hidden;
}
/* testo invisibile ma accessibile */
.eb-card-link::before{
  content: attr(aria-label);
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
}

/* =========================================================
   10) ACCESSIBILITY — screen-reader text
   ========================================================= */
.screen-reader-text{
  position:absolute!important;
  width:1px;
  height:1px;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* =========================================================
   11) HERO PIATTI — full width + altezza fissa
   ========================================================= */
html, body{ overflow-x: hidden; }

.eb-hero-piatti{
  position: relative;
  height: 500px;
  overflow: hidden;
  padding: 0 !important;6
}
@media (min-width: 768px){
  .eb-hero-piatti{
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
}
.eb-hero-piatti .eb-hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}
.eb-hero-piatti > *,
.eb-hero-piatti .e-con-inner,
.eb-hero-piatti .elementor-element,
.eb-hero-piatti .elementor-widget{
  position: relative;
  z-index: 2;
}
.eb-hero-piatti .e-con-inner{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 767px){
  .eb-hero-piatti{ height: 380px; }
}

/* =========================================================
   12) EB – CARD PIATTI: clamp + CTA in fondo
   ========================================================= */
.eb-card .eb-card-title,
.eb-card .eb-card-excerpt{
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
}
.eb-card .eb-card-title{
  -webkit-line-clamp:3;
  line-height:1.25;
  min-height:calc(1.25em * 3);
}
.eb-card .eb-card-excerpt{
  -webkit-line-clamp:3;
  line-height:1.45;
  min-height:calc(1.45em * 3);
}
.eb-card .eb-card-cta{
  margin-top:auto;
  padding-top:14px;
}

/* =========================================================
   13) EB — THUMB UNIFORMI (400x266) + titoli/meta size
   ========================================================= */
/* Wrapper maschera */
.eb-card .eb-thumb-wrap{
  display:block;
  width:100%;
  overflow:hidden;
  border-radius:12px;
  aspect-ratio: 400 / 266;
}
.eb-card .eb-thumb-wrap img,
.eb-card img.eb-thumb{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
}
.eb-card .eb-thumb.eb-ph{
  width:100% !important;
  height:100% !important;
}

/* Titoli e meta */
.eb-card__title,
.eb-card__title a,
.eb-card .eb-card-title{
  font-size:17px !important;
  line-height:1.25 !important;
}
.eb-meta,
.eb-card .eb-card-excerpt{
  font-size:13px !important;
  line-height:1.25 !important;
}
.eb-card__title,
.eb-card .eb-card-title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

/* ===============================
   14)  EB — JetEngine Profile Menu as Tabs
   =============================== */
.jet-profile-menu,
.jet-engine-profile-menu,
.elementor-widget-jet-engine-profile-menu{
  margin: 10px 0 18px;
}

/* Barra dietro ai tab */
.jet-profile-menu .jet-profile-menu__items,
.jet-engine-profile-menu .jet-profile-menu__items,
.elementor-widget-jet-engine-profile-menu .jet-profile-menu__items{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:10px;
  border-radius:14px;
  background:#f4f4f6;
  border:1px solid rgba(0,0,0,.06);
}

/* Link/tab */
.jet-profile-menu .jet-profile-menu__item a,
.jet-engine-profile-menu .jet-profile-menu__item a,
.elementor-widget-jet-engine-profile-menu .jet-profile-menu__item a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  text-decoration:none !important;
  font-weight:600;
  line-height:1;
  transition:transform .08s ease, background .15s ease, border-color .15s ease;
}

/* Hover */
.jet-profile-menu .jet-profile-menu__item a:hover,
.jet-engine-profile-menu .jet-profile-menu__item a:hover{
  transform:translateY(-1px);
  border-color:rgba(0,0,0,.18);
}

/* Attivo */
.jet-profile-menu .jet-profile-menu__item.is-active a,
.jet-profile-menu .jet-profile-menu__item--active a,
.jet-engine-profile-menu .jet-profile-menu__item.is-active a,
.jet-engine-profile-menu .jet-profile-menu__item--active a{
  background:#8a1726;
  border-color:#8a1726;
  color:#fff !important;
}

.eb-youtube-lite{
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  display: block;
  margin: 20px 0;
}

.eb-youtube-lite img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.eb-youtube-play{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: rgba(0,0,0,.75);
  cursor: pointer;
  z-index: 2;
}

.eb-youtube-play:before{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}

.eb-youtube-lite iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
}

button[style*="#8A0D1E"],
.elementor-button,
.st-btn,
.jet-form-builder__submit,
.ebh-btn--primary {
  color: #fff !important;
}

/* TITOLI CARD RISULTATI: niente sottolineatura */
.eb-nearby-card__content h3 a,
.eb-nearby-card__content h3 a:hover,
.eb-nearby-card__content h3 a:focus,
.eb-nearby-card__content h3 a:active,
.eb-nearby-card__content h3 a:visited,
.eb-nearby-results .eb-nearby-card h3 a,
.eb-nearby-results .eb-nearby-card h3 a:hover,
.eb-nearby-results .eb-nearby-card h3 a:focus,
.eb-nearby-results .eb-nearby-card h3 a:active,
.eb-nearby-results .eb-nearby-card h3 a:visited,
.eb-city-featured__title a,
.eb-city-featured__title a:hover,
.eb-city-featured__title a:focus,
.eb-city-featured__title a:active,
.eb-city-featured__title a:visited {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* CONTENITORE AZIONI */
.eb-nearby-card__actions {
    margin-top: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* BOTTONE CARD RISULTATI */
.eb-nearby-card__actions .eb-nearby-card__btn,
.eb-nearby-card__btn,
a.eb-nearby-card__btn,
a.eb-nearby-card__btn:hover,
a.eb-nearby-card__btn:focus,
a.eb-nearby-card__btn:active,
a.eb-nearby-card__btn:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: #faf2eb !important;
    border: 1px solid #eadfd4 !important;
    color: #8a1726 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: max-content !important;
}

/* SE IL TEMA APPLICA EFFETTI STRANI AI LINK */
.eb-nearby-card__actions .eb-nearby-card__btn::after,
.eb-nearby-card__content h3 a::after,
.eb-city-featured__title a::after {
    display: none !important;
    content: none !important;
}

/* ========================================================================
   EB / TRAVELER — card immagini uniformi nei listing tour/attività/affitti
   ======================================================================== */

.services-item.grid.item-elementor,
.item-service .services-item.grid.item-elementor,
.service-tour.row .item-service,
.service-activity.row .item-service{
  display:flex;
}

.services-item.grid.item-elementor .item,
.service-tour.row .item-service .item,
.service-activity.row .item-service .item,
.services-item.grid.item-elementor .service-border{
  display:flex;
  flex-direction:column;
  height:100%;
  width:100%;
}

.services-item.grid.item-elementor .featured-image,
.service-tour.row .item-service .featured-image,
.service-activity.row .item-service .featured-image,
.services-item.grid.item-elementor .thumb,
.service-tour.row .item-service .thumb,
.service-activity.row .item-service .thumb{
  aspect-ratio: 400 / 266 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow:hidden !important;
  border-radius:12px 12px 0 0 !important;
}

.services-item.grid.item-elementor .featured-image img,
.service-tour.row .item-service .featured-image img,
.service-activity.row .item-service .featured-image img,
.services-item.grid.item-elementor .thumb img,
.service-tour.row .item-service .thumb img,
.service-activity.row .item-service .thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
}

.services-item.grid.item-elementor .content-item,
.service-tour.row .item-service .content-item,
.service-activity.row .item-service .content-item{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
}

.services-item.grid.item-elementor .content-item .title,
.service-tour.row .item-service .content-item .title,
.service-activity.row .item-service .content-item .title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  min-height:calc(1.25em * 3);
}

.services-item.grid.item-elementor .section-footer,
.service-tour.row .item-service .section-footer,
.service-activity.row .item-service .section-footer{
  margin-top:auto;
}

@media (max-width:767px){
  .services-item.grid.item-elementor .featured-image,
  .service-tour.row .item-service .featured-image,
  .service-activity.row .item-service .featured-image,
  .services-item.grid.item-elementor .thumb,
  .service-tour.row .item-service .thumb,
  .service-activity.row .item-service .thumb{
    aspect-ratio: 16 / 10 !important;
  }
}

/* Nasconde il contatore risultati in Tour / Attività Traveler */
.page-tour-layout4 #modern-result-string,
.page-activity-layout4 #modern-result-string,
.st-results #modern-result-string,
.st-results .modern-result-string {
  display: none !important;
}

/* EB — listing Traveler */
.services-item .reviews,
.services-item .review-score-text {
    display: none !important;
}

/* Prezzi standard */
.services-item .price-wrapper .price {
    color: #8A1726 !important;
}

/* Hotel vetrina -> Richiedi disponibilità */
.services-item .price-wrapper.eb-request-price,
.services-item .price-wrapper .eb-request-price,
.services-item .eb-request-price {
    color: #8A1726 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

/* Se qualche card stampa ancora prezzo vuoto */
.services-item .price-wrapper:has(.price:empty) {
    display: none !important;
}

/* =========================================
   SEO Traveler Search Pages
   ========================================= */

/* Testo SEO sopra i risultati ricerca */
.eb-traveler-seo-top {
    max-width: 1200px;
    margin: 30px auto 25px;
    padding: 0 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #222;
    position: relative;
    z-index: 3;
}

.eb-traveler-seo-top h2 {
    margin: 0 0 10px;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f1f1f;
}

.eb-traveler-seo-top p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #444;
    max-width: 900px;
}

/* Pulsante partner nelle search */
.eb-partner-btn {
    display: inline-block;
    width: 100%;
    margin: 0 0 15px;
    padding: 14px 18px;
    background: #8b1e2d;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    transition: background .2s ease;
    box-sizing: border-box;
}

.eb-partner-btn:hover {
    background: #6e1824;
    color: #fff !important;
}

/* =========================================
   Related section nei singoli CPT
   sottotitolo sopra + titolo principale sotto
   ========================================= */

.eb-related-subtitle {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    max-width: 900px;
}

.eb-related-main-title {
    margin: 0 0 24px !important;
}

/* Mantiene forte il titolo originale di Traveler una volta sostituito via JS */
.single-st_hotel .services-nearby > h2.st-heading.eb-related-main-title,
.single-st_rental .relate-rooms > h2.st-heading-section.eb-related-main-title,
.single-st_tour .relate-rooms > h2.st-heading-section.eb-related-main-title,
.single-st_activity .st-list-tour-related > h2.heading.eb-related-main-title,
.single-st_activity .st-list-tour-related > h2.heading.text-center.eb-related-main-title,
.single-st_activity .relate-rooms > h2.st-heading-section.eb-related-main-title,
.single-st_activity .st-relate > h2.st-heading-section.eb-related-main-title,
.single-st_activity h2.st-heading-section.eb-related-main-title {
    color: #1f1f1f !important;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
    .eb-traveler-seo-top {
        margin: 25px auto 20px;
        padding: 0 15px;
    }

    .eb-traveler-seo-top h2 {
        font-size: 34px;
    }
}

@media (max-width: 767px) {
    .eb-traveler-seo-top {
        margin: 20px auto 18px;
        padding: 0 15px;
    }

    .eb-traveler-seo-top h2 {
        font-size: 28px;
        line-height: 1.25;
    }

    .eb-traveler-seo-top p {
        font-size: 15px;
        line-height: 1.6;
    }

    .eb-partner-btn {
        padding: 13px 16px;
        font-size: 15px;
    }

    .eb-related-subtitle {
        font-size: 14px;
        line-height: 1.55;
        margin: 0 0 8px;
    }

    .eb-related-main-title {
        margin: 0 0 18px !important;
    }
}


/* 3) Archivio borghi: filtri testo nero */
body.page-id-0 .eb-filter *,
body.post-type-archive-village .eb-filter *,
body.tax-village-category .eb-filter *,
body.tax-village-connection .eb-filter *,
body[class*="village"] .eb-filter *,
body[class*="borghi"] .eb-filter *,
body[class*="village"] select,
body[class*="village"] option,
body[class*="borghi"] select,
body[class*="borghi"] option,
body[class*="village"] .dropdown-menu *,
body[class*="borghi"] .dropdown-menu *,
body[class*="village"] .nice-select *,
body[class*="borghi"] .nice-select * {
  color: #232323 !important;
  -webkit-text-fill-color: #232323 !important;
}

/* voce attiva dropdown: resta leggibile */
body[class*="village"] .dropdown-menu .active,
body[class*="borghi"] .dropdown-menu .active,
body[class*="village"] .dropdown-menu .selected,
body[class*="borghi"] .dropdown-menu .selected {
  background: #8A1726 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* =========================================================
   FIX DEFINITIVO COLORI PAGINE NON BLOG
========================================================= */

/* TERRITORI - pagina /territori/ */
body.page .st-blog,
body.page .st-blog p,
body.page .st-blog li,
body.page .st-blog .elementor-widget-text-editor,
body.page .st-blog .elementor-widget-text-editor p {
  color: #232323 !important;
  -webkit-text-fill-color: #232323 !important;
}

body.page .st-blog h1,
body.page .st-blog h2,
body.page .st-blog h3,
body.page .st-blog strong {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

/* TERRITORI: contenuto nero */
body.page .st-blog,
body.page .st-blog p,
body.page .st-blog li,
body.page .st-blog span {
  color: #232323 !important;
  -webkit-text-fill-color: #232323 !important;
}

.st-list-destination .destination-item .content,
.st-list-destination .destination-item .content *,
.st-list-destination .destination-item .title,
.st-list-destination .destination-item .title *,
.st-list-destination .destination-item .desc,
.st-list-destination .destination-item .desc *,
.st-list-destination .destination-item .desc a {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.75) !important;
}

.st-list-destination .destination-item .content a,
.st-list-destination .destination-item .title a,
.st-list-destination .destination-item .desc a {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
}

/* Riduci font banner cookie Complianz */
.cmplz-cookiebanner {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.cmplz-cookiebanner p {
  font-size: 14px !important;
}

.cmplz-cookiebanner .cmplz-message {
  font-size: 14px !important;
}

.cmplz-cookiebanner .cmplz-body {
  font-size: 14px !important;
}

/* FIX HEADER EBV5 DA LOGGATO - sicuro */
body.admin-bar header.ebv5-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar header.ebv5-header {
    top: 46px !important;
  }
}

/* Scritta piccola sopra il titolo */
.home .eb-hero__kicker,
.home .hero-kicker,
.home .ebv5-kicker {
  display: block !important;
  margin-bottom: 18px !important;
  letter-spacing: 2px !important;
  line-height: 1.6 !important;
}

/* Titolo principale */
.home .eb-hero__title,
.home .hero-title,
.home .ebv5-hero-title {
  margin-top: 0 !important;
  margin-bottom: 22px !important;
  line-height: 1.15 !important;
}

/* Testo descrizione */
.home .eb-hero__desc,
.home .hero-desc,
.home .ebv5-hero-desc {
  margin-top: 10px !important;
  line-height: 1.7 !important;
}

/* =========================================
   GALLERIA PRO UNIFICATA
========================================= */

.eb-pro-gallery-grid {
    display: grid !important;
    grid-template-columns: 1.55fr 1fr 1fr !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;

    width: 100% !important;
    max-width: 100% !important;

    height: 380px !important;
    overflow: hidden !important;
}

.eb-pro-gallery-item,
.eb-pro-gallery-item button,
.eb-pro-gallery-item img {
    width: 100% !important;
    height: 100% !important;
}

.eb-pro-gallery-item {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 16px !important;
}

.eb-pro-gallery-item img {
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* prima immagine grande */
.eb-pro-gallery-item:first-child {
    grid-row: span 2 !important;
}

/* lightbox */
.eb-pro-lightbox {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0,0,0,.92) !important;
    z-index: 999999 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.eb-pro-lightbox img {
    max-width: 92vw !important;
    max-height: 88vh !important;

    width: auto !important;
    height: auto !important;

    object-fit: contain !important;
}

/* mobile */
@media (max-width: 767px){

    .eb-pro-gallery-grid{
        grid-template-columns: 1fr 1fr !important;
        height: auto !important;
    }

    .eb-pro-gallery-item:first-child{
        grid-column: 1 / -1 !important;
        min-height: 260px !important;
    }

    .eb-pro-gallery-item:not(:first-child){
        min-height: 130px !important;
    }
}

/* =========================================================
   EB - Partner related cards
========================================================= */

.eb-partner-related-wrap{
  margin:42px 0 !important;
  padding:28px !important;
  border:1px solid #ece7e2 !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:0 10px 28px rgba(17,24,39,.05) !important;
}

.eb-partner-related-wrap .eb-partner-related{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.eb-partner-related-wrap .eb-partner-related__title{
  margin:0 0 24px !important;
  font-size:24px !important;
  line-height:1.25 !important;
  font-weight:800 !important;
  color:#232323 !important;
}

.eb-partner-related-wrap .eb-partner-related__grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,280px)) !important;
  gap:22px !important;
}

.eb-partner-related-wrap .eb-partner-related__card{
  width:100% !important;
  max-width:280px !important;
  border:1px solid #eee !important;
  border-radius:16px !important;
  overflow:hidden !important;
  background:#fff !important;
  box-shadow:0 8px 22px rgba(17,24,39,.06) !important;
}

.eb-partner-related-wrap .eb-partner-related__link{
  display:block !important;
  color:inherit !important;
  text-decoration:none !important;
}

.eb-partner-related-wrap .eb-partner-related__thumb{
  margin:0 !important;
  aspect-ratio:16/10 !important;
  overflow:hidden !important;
  background:#f3f3f3 !important;
}

.eb-partner-related-wrap .eb-partner-related__thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

/* Badge categoria */
.eb-partner-related-wrap .eb-partner-related__badge{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  width:fit-content !important;
  margin:14px 16px 0 !important;
  padding:6px 11px !important;

  border-radius:999px !important;
  background:#8A1726 !important;

  color:#fff !important;
  -webkit-text-fill-color:#fff !important;

  font-size:11px !important;
  line-height:1 !important;
  font-weight:800 !important;
  text-transform:uppercase !important;
  letter-spacing:.04em !important;

  text-decoration:none !important;
}

.eb-partner-related-wrap .eb-partner-related__badge *,
.eb-partner-related-wrap .eb-partner-related__link .eb-partner-related__badge,
.eb-partner-related-wrap .eb-partner-related__link .eb-partner-related__badge *{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

.eb-partner-related-wrap .eb-partner-related__body{
  padding:10px 16px 18px !important;
}

.eb-partner-related-wrap .eb-partner-related__name{
  margin:0 !important;
  font-size:18px !important;
  line-height:1.25 !important;
  font-weight:800 !important;
  color:#232323 !important;
}

.eb-partner-related-wrap .eb-partner-related__link:hover .eb-partner-related__name{
  color:#8A1726 !important;
}

@media(max-width:767px){

  .eb-partner-related-wrap{
    margin:32px 0 !important;
    padding:20px !important;
  }

  .eb-partner-related-wrap .eb-partner-related__grid{
    grid-template-columns:1fr !important;
  }

  .eb-partner-related-wrap .eb-partner-related__card{
    max-width:100% !important;
  }
}

/* Fix logo header esploso */
.header__left .logo img,
.header .logo img,
.logo img {
    max-width: 180px !important;
    max-height: 72px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.header__left,
.header__center,
.header__right {
    align-items: center !important;
}

.header {
    min-height: 90px;
}

/* Header EBV5: logo più a sinistra come nei CPT Traveler */
header.ebv5-header .ebv5-inner {
    max-width: none !important;
    width: 100% !important;
    padding-left: 36px !important;
    padding-right: 36px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

header.ebv5-header .ebv5-logo {
    margin-left: 0 !important;
}

header.ebv5-header .ebv5-logo img {
    width: 138px !important;
    max-width: 138px !important;
    height: auto !important;
}

/* =========================================================
   FIX DEFINITIVO — Card prodotti partner / vini
========================================================= */

.eb-partner-products .eb-product-card a.eb-product-btn,
.eb-partner-products .eb-product-card a.eb-product-btn:link,
.eb-partner-products .eb-product-card a.eb-product-btn:visited,
.eb-partner-products .eb-product-card a.eb-product-btn:hover,
.eb-partner-products .eb-product-card a.eb-product-btn:focus,
.eb-partner-products .eb-product-card a.eb-product-btn:active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #8A1726 !important;
  border: 1px solid #8A1726 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.eb-partner-products .eb-product-price {
  background: #8A1726 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.eb-partner-products .eb-products-arrow,
.eb-partner-products .eb-products-arrow:link,
.eb-partner-products .eb-products-arrow:visited,
.eb-partner-products .eb-products-arrow:hover,
.eb-partner-products .eb-products-arrow:focus,
.eb-partner-products .eb-products-arrow:active {
  background: #8A1726 !important;
  border-color: #8A1726 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.eb-partner-products .eb-products-arrow[disabled] {
  background: #ead0d5 !important;
  border-color: #ead0d5 !important;
  color: #8A1726 !important;
  -webkit-text-fill-color: #8A1726 !important;
}

/* FIX spazio sotto header globale */
body:not(.home) #st-content-wrapper,
body:not(.home) main,
body:not(.home) .site-main,
body:not(.home) .eb-product-single,
body:not(.home) .eb-wts,
body:not(.home) .ebpcs-wrap,
body:not(.home) .eba {
    margin-top: 36px !important;
}

@media (max-width: 767px) {
    body:not(.home) #st-content-wrapper,
    body:not(.home) main,
    body:not(.home) .site-main,
    body:not(.home) .eb-product-single,
    body:not(.home) .eb-wts,
    body:not(.home) .ebpcs-wrap,
    body:not(.home) .eba {
        margin-top: 24px !important;
    }
}

/* FIX footer basso su pagine area partner con poco contenuto */
body.page-parent,
body.page-child {
    min-height: 100vh;
}

body.page-parent #st-content-wrapper,
body.page-child #st-content-wrapper {
    min-height: calc(100vh - 360px);
}

/* Mobile: nasconde i breadcrumb in tutto il sito */
@media (max-width: 767px) {
  .breadcrumb,
  .breadcrumbs,
  .st-breadcrumb,
  .st-breadcrumbs,
  .traveler-breadcrumb,
  .woocommerce-breadcrumb,
  nav[aria-label="breadcrumb"],
  .rank-math-breadcrumb {
    display: none !important;
  }
}

/* Titoli card archivi */

.post-type-archive-village .entry-title a,
.post-type-archive-what-to-see .entry-title a,
.post-type-archive-where-to-eat .entry-title a,
.post-type-archive-where-to-shop .entry-title a,
.post-type-archive-video .entry-title a,
.eb-card__title a {
    text-decoration: none !important;
}