/* Trascriviamo – pagine informative importate da Magento (chi siamo, FAQ, F24, strumenti di ricerca, formule) e blog */
:root {
	--trp-teal: #0d7d88;
	--trp-teal-soft: #e6f3f4;
	--trp-blue: #1d5fa8;
	--trp-ink: #1b2430;
	--trp-ink-2: #4b5563;
	--trp-line: #e5e7eb;
	--trp-bg-soft: #f6f7f9;
	--trp-radius: 10px;
}
.tr-page .entry-content { font-size: 1.02rem; line-height: 1.65; }
.tr-page .entry-content h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; color: var(--trp-ink); }
.tr-page .entry-content h3 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.tr-page .entry-content h4 { font-size: 1.05rem; margin: 1.2rem 0 .4rem; }
.tr-page .entry-content ul, .tr-page .entry-content ol { padding-left: 1.4em; }
.tr-page .entry-content hr { border: 0; border-top: 1px solid var(--trp-line); margin: 1.2rem 0; }
.tr-figure { margin: 1.5rem 0; }
.tr-figure img { max-width: 100%; height: auto; border-radius: var(--trp-radius); border: 1px solid var(--trp-line); }
.tr-box { background: var(--trp-bg-soft); border: 1px solid var(--trp-line); border-radius: var(--trp-radius); padding: 18px 20px; margin: 0 0 16px; }
.tr-box h3 { margin: 0 0 .5rem; color: var(--trp-teal); }
.tr-box p:last-child { margin-bottom: 0; }
.tr-icon-list { list-style: none; padding: 0 !important; margin: .5rem 0 1rem; }
.tr-icon-list li { position: relative; padding: 0 0 0 30px; margin: 0 0 8px; }
.tr-icon-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--trp-teal); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--trp-teal); }
.tr-btn { text-decoration: none !important; }
.tr-cta { text-align: center; background: var(--trp-teal-soft); border-radius: var(--trp-radius); padding: 26px 20px; margin: 2rem 0 0; }
.tr-cta h3 { margin: 0 0 .3rem; color: var(--trp-teal); }
.tr-cta p { margin: 0 0 .3rem; }
.tr-cta__phone a { font-size: 1.8rem; font-weight: 700; color: var(--trp-blue); text-decoration: none; }

/* ---------- toggle / accordion (details) ---------- */
.tr-toggle { border: 1px solid var(--trp-line); border-radius: var(--trp-radius); background: #fff; margin: 0 0 10px; }
.tr-toggle > summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 600; list-style: none; position: relative; color: var(--trp-ink); }
.tr-toggle > summary::-webkit-details-marker { display: none; }
.tr-toggle > summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--trp-teal-soft); color: var(--trp-teal); font-weight: 700; text-align: center; line-height: 24px; }
.tr-toggle[open] > summary::after { content: "–"; }
.tr-toggle[open] > summary { border-bottom: 1px solid var(--trp-line); }
.tr-toggle__body { padding: 14px 18px 4px; }
.tr-toggle__body > :last-child { margin-bottom: 12px; }

/* ---------- Chi siamo ---------- */
.tr-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 1rem 0 2rem; }
.tr-team__card { background: #fff; border: 1px solid var(--trp-line); border-radius: var(--trp-radius); padding: 22px 20px; text-align: center; }
.tr-team__card img { width: 140px; height: 140px; object-fit: cover; object-position: 50% 15%; border-radius: 50%; margin: 0 auto 12px; display: block; }
.tr-team__card h3 { margin: 0 0 2px; font-size: 1.1rem; }
.tr-team__role { color: var(--trp-teal); font-weight: 600; margin: 0 0 10px !important; font-size: .95rem; }
.tr-team__card p { font-size: .95rem; text-align: left; }
.tr-feedaty { margin: 1.5rem 0; display: flex; justify-content: center; }

/* ---------- F24 ---------- */
.tr-table--codici td:first-child { white-space: nowrap; width: 90px; color: var(--trp-teal); }
.tr-table--codici p { margin: 0; }
.tr-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 1rem 0 2rem; }
.tr-dl__card { background: var(--trp-bg-soft); border: 1px solid var(--trp-line); border-radius: var(--trp-radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tr-dl__card h4 { margin: 0; font-size: 1.02rem; min-height: 2.6em; }
.tr-dl__card .tr-btn { align-self: flex-start; }
.tr-dl__service { font-size: .92rem; color: var(--trp-blue); }

/* ---------- Formule ---------- */
.tr-formule { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 1rem 0 2rem; }
.tr-formula { border: 2px solid var(--trp-line); border-radius: 14px; padding: 18px; }
.tr-formula--light { border-color: #1d5fa8; }
.tr-formula--premium { border-color: var(--trp-teal); }
.tr-formula .tr-box { text-align: center; background: #fff; border: 0; padding: 4px 0 12px; }
.tr-formula--light .tr-box h3 { color: #1d5fa8; }
.tr-formula .tr-box h3 { font-size: 1.5rem; }
.tr-cmp { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; }
.tr-cmp th, .tr-cmp td { border: 1px solid var(--trp-line); padding: 10px 12px; text-align: center; vertical-align: middle; }
.tr-cmp tbody th { text-align: left; font-weight: 500; background: var(--trp-bg-soft); }
.tr-cmp thead th { background: var(--trp-teal); color: #fff; }
.tr-cmp thead th small { display: block; font-weight: 400; opacity: .9; }
.tr-cmp .is-yes { color: #1f8a3c; font-weight: 700; font-size: 1.15rem; }
.tr-cmp .is-no { color: #b5b5b5; }
.tr-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 2rem 0; }
.tr-num { text-align: center; background: var(--trp-teal-soft); border-radius: var(--trp-radius); padding: 18px 12px; }
.tr-num strong { display: block; font-size: 2.2rem; color: var(--trp-teal); line-height: 1.1; margin-bottom: 4px; }

/* ---------- Ricerche (tabelle Conservatorie / Tribunali) ---------- */
.tr-letters { margin: 1rem 0 1.5rem; }
.tr-letters__title { font-weight: 600; margin: 0 0 8px; }
.tr-letters__row { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-letters__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--trp-teal); border-radius: 8px; color: var(--trp-teal); font-weight: 700; text-decoration: none !important; background: #fff; }
.tr-letters__btn:hover, .tr-letters__btn.is-current { background: var(--trp-teal); color: #fff; }
.tr-search { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; background: var(--trp-bg-soft); border: 1px solid var(--trp-line); border-radius: var(--trp-radius); padding: 16px 18px; margin: 1rem 0; }
.tr-search__field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; font-weight: 600; font-size: .95rem; }
.tr-search__field input { width: 100%; padding: 10px 12px; border: 1px solid #b9c2c8; border-radius: 6px; font-size: 1rem; background: #fff; font-weight: 400; }
.tr-search__count { flex: 1 1 100%; margin: 0; font-size: .9rem; color: var(--trp-ink-2); }
.tr-table-wrap { overflow-x: auto; margin: 0 0 2rem; }
.tr-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tr-table th, .tr-table td { border: 1px solid var(--trp-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.tr-table thead th { background: var(--trp-teal); color: #fff; position: sticky; top: 0; }
.tr-table tbody tr:nth-child(even) { background: #fafbfc; }
.tr-table tbody tr:hover { background: var(--trp-teal-soft); }
.tr-table a { color: var(--trp-blue); }

/* ---------- FAQ ---------- */
.tr-faq__intro { font-size: 1.05rem; }
.tr-faq__search { background: var(--trp-bg-soft); border: 1px solid var(--trp-line); border-radius: var(--trp-radius); padding: 16px 18px; margin: 1rem 0; }
.tr-faq__search label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.tr-faq__search input { width: 100%; max-width: 560px; padding: 10px 12px; border: 1px solid #b9c2c8; border-radius: 6px; font-size: 1rem; background: #fff; font-weight: 400; }
.tr-faq__count { margin: 6px 0 0; font-size: .9rem; color: var(--trp-ink-2); }
.tr-faq__nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; }
.tr-faq__nav a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--trp-teal-soft); color: var(--trp-teal); font-size: .9rem; font-weight: 600; text-decoration: none !important; }
.tr-faq__nav a:hover { background: var(--trp-teal); color: #fff; }
.tr-faq__cat h2 { scroll-margin-top: 90px; }
.tr-faq__item { border: 1px solid var(--trp-line); border-radius: var(--trp-radius); background: #fff; margin: 0 0 10px; scroll-margin-top: 90px; }
.tr-faq__item > summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 600; list-style: none; position: relative; }
.tr-faq__item > summary::-webkit-details-marker { display: none; }
.tr-faq__item > summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--trp-teal-soft); color: var(--trp-teal); font-weight: 700; text-align: center; line-height: 24px; }
.tr-faq__item[open] > summary::after { content: "–"; }
.tr-faq__item[open] > summary { border-bottom: 1px solid var(--trp-line); }
.tr-faq__answer { padding: 14px 18px 4px; }
.tr-faq__answer > :last-child { margin-bottom: 12px; }
.tr-faq__item.is-hidden, .tr-faq__cat.is-hidden { display: none; }
.tr-faq__none { padding: 14px 18px; background: #fff8e1; border: 1px solid #e0a800; border-radius: var(--trp-radius); }

/* ---------- Termini e condizioni ---------- */
.tr-page--legal .entry-content h2 { font-size: 1.3rem; scroll-margin-top: 90px; }
.tr-page--legal .entry-content h3 { font-size: 1.1rem; }

/* ---------- Blog ---------- */
.tr-blog__cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; }
.tr-blog__cats a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--trp-teal-soft); color: var(--trp-teal); font-size: .9rem; font-weight: 600; text-decoration: none !important; }
.tr-blog__cats a span { opacity: .7; font-weight: 400; margin-left: 2px; }
.tr-blog__cats a:hover { background: var(--trp-teal); color: #fff; }
.tr-blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.tr-blog__card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--trp-line); border-radius: var(--trp-radius); overflow: hidden; }
.tr-blog__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--trp-bg-soft); }
.tr-blog__img img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0 !important; border-radius: 0 !important; }
.tr-blog__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tr-blog__meta { margin: 0 !important; font-size: .85rem; color: var(--trp-ink-2); }
.tr-page .entry-content .tr-blog__title { font-size: 1.1rem; line-height: 1.35; margin: 0; }
.tr-blog__title a { color: var(--trp-ink); text-decoration: none; }
.tr-blog__title a:hover { color: var(--trp-teal); }
.tr-blog__excerpt { margin: 0 !important; font-size: .95rem; color: var(--trp-ink-2); flex: 1; }
.tr-blog__more { font-weight: 600; font-size: .92rem; color: var(--trp-blue); }
.tr-blog__pager { margin: 2rem 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tr-blog__pager .page-numbers { padding: 6px 12px; border: 1px solid var(--trp-line); border-radius: 6px; text-decoration: none; }
.tr-blog__pager .current { background: var(--trp-teal); color: #fff; border-color: var(--trp-teal); }
.single-post .entry-content img { max-width: 100%; height: auto; border-radius: var(--trp-radius); }
.single-post .entry-content h2 { font-size: 1.4rem; margin: 1.8rem 0 .7rem; }

@media (max-width: 600px) {
	.tr-cta__phone a { font-size: 1.5rem; }
	.tr-team__card img { width: 110px; height: 110px; }
}
