/* Trascriviamo – barra di ricerca grande sotto l'intestazione */
.tr-hsearch { background: linear-gradient(180deg, #0d7d88 0%, #0b6b75 100%); padding: 22px 16px 16px; position: sticky; top: 0; z-index: 9; transition: padding .2s; } /* sticky; sotto l'header di Kadence (z 11) così i menu a tendina passano sopra la barra */
body.admin-bar .tr-hsearch { top: 32px; }
@media (max-width: 782px) { body.admin-bar .tr-hsearch { top: 46px; } }
/* quando resta agganciata in alto scorrendo: versione compatta (senza "Più cercati") */
.tr-hsearch.is-stuck { padding: 9px 16px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.tr-hsearch.is-stuck .tr-hsearch__popular { display: none; }
.tr-hsearch.is-stuck .tr-hsearch__field { box-shadow: 0 4px 12px rgba(0, 0, 0, .18); padding: 3px 3px 3px 18px; }
.tr-hsearch.is-stuck .tr-hsearch .tr-hsearch__btn, .tr-hsearch.is-stuck .tr-hsearch__btn { min-height: 38px; }
.tr-hsearch__inner { max-width: 820px; margin: 0 auto; }
.tr-hsearch__form { position: relative; margin: 0; }
.tr-hsearch__field { display: flex; align-items: center; background: #fff; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding: 5px 5px 5px 20px; gap: 10px; }
.tr-hsearch__icon { color: #6b7280; flex: 0 0 auto; }
.tr-hsearch .tr-hsearch__input { flex: 1 1 auto; min-width: 0; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important; font-size: 1.08rem; padding: 12px 4px !important; color: #1b2430; height: auto; }
.tr-hsearch__input::-webkit-search-cancel-button { cursor: pointer; }
.tr-hsearch__field:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 8px 24px rgba(0, 0, 0, .18); }
.tr-hsearch .tr-hsearch__btn { flex: 0 0 auto; min-height: 46px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--tr-btn-bg, #c4621a); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .7px; text-transform: uppercase; cursor: pointer; }
.tr-hsearch .tr-hsearch__btn:hover { background: var(--tr-btn-bg-hover, #a9521a); }
.tr-hsearch.is-loading .tr-hsearch__icon { animation: tr-hs-pulse 1s ease-in-out infinite; }
@keyframes tr-hs-pulse { 50% { opacity: .35; } }
.tr-hsearch__popular { margin: 10px 0 0; text-align: center; font-size: .88rem; color: rgba(255, 255, 255, .85); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; }
.tr-hsearch__popular span { font-weight: 600; }
.tr-hsearch__popular a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.tr-hsearch__popular a:hover { text-decoration: none; }
.tr-hsearch__panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .22); max-height: min(70vh, 520px); overflow: auto; padding: 8px 0; text-align: left; }
.tr-hsearch__group + .tr-hsearch__group { border-top: 1px solid #eef0f2; margin-top: 4px; padding-top: 4px; }
.tr-hsearch__glabel { margin: 6px 18px 2px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0d7d88; }
.tr-hsearch__item { display: flex; flex-direction: column; gap: 1px; padding: 9px 18px; text-decoration: none !important; color: #1b2430; }
.tr-hsearch__item:hover, .tr-hsearch__item.is-active, .tr-hsearch__all:hover, .tr-hsearch__all.is-active { background: #e6f3f4; }
.tr-hsearch__t { font-weight: 600; font-size: .98rem; line-height: 1.35; }
.tr-hsearch__t mark { background: #fff1c2; color: inherit; padding: 0 1px; border-radius: 2px; }
.tr-hsearch__m { font-size: .82rem; color: #6b7280; }
.tr-hsearch__all { display: block; margin-top: 4px; padding: 11px 18px; border-top: 1px solid #eef0f2; font-weight: 600; color: #1d5fa8; text-decoration: none !important; }
.tr-hsearch__empty { margin: 0; padding: 14px 18px; color: #4b5563; }
@media (max-width: 600px) {
	.tr-hsearch { padding: 14px 12px 12px; }
	.tr-hsearch__field { padding-left: 14px; }
	.tr-hsearch .tr-hsearch__input { font-size: 1rem; padding: 10px 2px !important; }
	.tr-hsearch .tr-hsearch__btn { padding: 0 16px; min-height: 42px; }
	.tr-hsearch__popular { display: none; }
}

/* servizio in evidenza nei suggerimenti */
.tr-hsearch__group:first-child .tr-hsearch__glabel { margin-top: 8px; }
.tr-hsearch .tr-hsearch__feat { flex-direction: row; align-items: center; gap: 16px; margin: 4px 10px 8px; padding: 14px 16px; border: 1px solid #b7dde1; border-left: 4px solid #0d7d88; border-radius: 12px; background: #f3fafb; }
.tr-hsearch .tr-hsearch__feat:hover, .tr-hsearch .tr-hsearch__feat.is-active { background: #e2f2f4; }
.tr-hsearch__feat-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.tr-hsearch__feat-cat { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0d7d88; }
.tr-hsearch__feat-t { font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: #1b2430; }
.tr-hsearch__feat-t mark { background: #fff1c2; color: inherit; padding: 0 1px; border-radius: 2px; }
.tr-hsearch__feat-d { font-size: .86rem; line-height: 1.45; color: #4b5563; }
.tr-hsearch__feat-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; text-align: right; }
.tr-hsearch__feat-p { font-size: 1.05rem; font-weight: 700; color: #1d5fa8; white-space: nowrap; }
.tr-hsearch__feat-p small { display: block; font-size: .72rem; font-weight: 500; color: #6b7280; }
.tr-hsearch__feat-cta { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #c4621a; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 600px) {
	.tr-hsearch .tr-hsearch__feat { flex-direction: column; align-items: stretch; }
	.tr-hsearch__feat-side { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}

/* pagina dei risultati: scheda del servizio in evidenza sopra la griglia */
.tr-sfeat-row { grid-column: 1 / -1; list-style: none; }
.content-wrap > li:has(> .tr-sfeat-dup), li.entry-list-item:has(> .tr-sfeat-dup) { display: none !important; }
.tr-sfeat { display: flex; align-items: center; gap: 24px; padding: 24px 28px; margin-bottom: 8px; border: 1px solid #b7dde1; border-left: 6px solid #0d7d88; border-radius: 14px; background: #f3fafb; box-shadow: 0 6px 18px rgba(13, 125, 136, .08); }
.tr-sfeat__body { flex: 1 1 auto; min-width: 0; }
.tr-sfeat__eyebrow { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #0d7d88; }
.tr-sfeat__title { margin: 0 0 8px !important; font-size: 1.6rem !important; line-height: 1.25; }
.tr-sfeat__title a { color: #1b2430; text-decoration: none; }
.tr-sfeat__title a:hover { color: #0d7d88; }
.tr-sfeat__desc { margin: 0; color: #4b5563; line-height: 1.55; }
.tr-sfeat__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; text-align: right; }
.tr-sfeat__price { margin: 0; font-size: 1.5rem; font-weight: 700; color: #1d5fa8; white-space: nowrap; }
.tr-sfeat__price small { display: block; font-size: .78rem; font-weight: 500; color: #6b7280; }
.tr-sfeat__cta { white-space: nowrap; }
@media (max-width: 700px) {
	.tr-sfeat { flex-direction: column; align-items: stretch; padding: 18px; }
	.tr-sfeat__side { align-items: stretch; text-align: left; }
	.tr-sfeat__title { font-size: 1.3rem !important; }
}

/* ---------- scheda servizio: barra ripiegata, si apre dalla lupa nell'intestazione (1.78.0) ---------- */
body.tr-search-collapsed .tr-hsearch { display: none; }
body.tr-search-collapsed.tr-search-open .tr-hsearch { display: block; animation: tr-hs-open .22s ease; }
@keyframes tr-hs-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.header-navigation .primary-menu-container > ul > li.tr-menu-util--search { margin-left: 6px; }
.tr-menu-util--search > a[aria-expanded="true"] svg { color: #c4621a; }
