/*
Theme Name: Tendi la Mano
Theme URI: https://tendilamanoaipom.it
Author: we blink
Description: Tema dell'Associazione Tendi la Mano A.I.P.O.M. - ONLUS: schede dei convenzionati con ricerca istantanea, orari, mappa a richiesta, articoli e iscrizione dei soci. Autonomo, senza page builder.
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tendilamano
*/

/* ==========================================================================
   Basi
   ========================================================================== */
:root {
	--g-900: #173d1a;
	--g-800: #22522a;
	--g-700: #2f6b2a;
	--g-500: #68ab5e;
	--g-300: #a9d3a2;
	--g-200: #cfe6ca;
	--g-100: #eaf4e7;
	--g-50: #f5f9f3;
	--ink: #1b2a1d;
	--muted: #4c5b4f;
	--line: #dbe5d8;
	--white: #fff;
	--red: #c8102e;
	--red-dark: #a00d25;
	--radius: 16px;
	--radius-s: 10px;
	--shadow: 0 1px 2px rgba(23, 61, 26, .06), 0 8px 24px rgba(23, 61, 26, .07);
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { color: var(--g-900); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 750; }
h3 { font-size: 21px; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--g-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--g-900); }

:focus-visible { outline: 3px solid var(--g-900); outline-offset: 3px; border-radius: 4px; }
.tlm-hero :focus-visible, .tlm-footer :focus-visible { outline-color: var(--white); }

[hidden] { display: none !important; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.tlm-skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--g-900); color: var(--white); padding: 12px 18px; border-radius: 0 0 var(--radius-s) var(--radius-s); }
.tlm-skip:focus { top: 0; color: var(--white); }

.tlm-icon { width: 22px; height: 22px; flex: none; vertical-align: middle; }

.tlm-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.tlm-wrap--narrow { max-width: 820px; }

.tlm-section { padding: 56px 0; }
.tlm-section--tight { padding: 32px 0 48px; }
.tlm-section--tint { background: var(--g-50); border-block: 1px solid var(--line); }
.tlm-sectionhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.tlm-sectionhead .tlm-h2 { margin: 0; }
.tlm-h2 { margin-bottom: 24px; }

.tlm-eyebrow { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g-700); margin: 0 0 10px; }
.tlm-eyebrow--light { color: var(--g-300); }
.tlm-lead { font-size: 20px; color: var(--muted); max-width: 760px; margin: 0; }
.tlm-lead p:last-child { margin-bottom: 0; }
.tlm-muted { color: var(--muted); }

.tlm-crumb { font-size: 16px; margin: 0 0 10px; color: var(--muted); }
.tlm-crumb a { font-weight: 600; }

.tlm-pagehead { background: var(--g-50); border-bottom: 1px solid var(--line); padding: 36px 0 32px; }
.tlm-pagehead h1 { margin-bottom: 12px; }
.tlm-pagehead .tlm-chips { margin-top: 20px; }

/* ==========================================================================
   Pulsanti e collegamenti
   ========================================================================== */
.tlm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 12px 24px;
	background: var(--g-700); color: var(--white);
	border: 2px solid var(--g-700); border-radius: 999px;
	font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.tlm-btn:hover { background: var(--g-900); border-color: var(--g-900); color: var(--white); }
.tlm-btn--ghost { background: var(--white); color: var(--g-700); border-color: var(--g-300); }
.tlm-btn--ghost:hover { background: var(--g-100); border-color: var(--g-700); color: var(--g-900); }
.tlm-btn--light { background: var(--white); color: var(--g-900); border-color: var(--white); }
.tlm-btn--light:hover { background: var(--g-100); border-color: var(--g-100); color: var(--g-900); }
.tlm-btn--join { background: var(--red); border-color: var(--red); color: var(--white); text-transform: uppercase; letter-spacing: .04em; }
.tlm-btn--join:hover { background: var(--red-dark); border-color: var(--red-dark); }
.tlm-btn--small { min-height: 48px; padding: 8px 18px; font-size: 16px; }
.tlm-btn--big { min-height: 60px; padding: 14px 34px; font-size: 19px; }

.tlm-link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.tlm-link-arrow::after { content: "→"; margin-left: 8px; transition: transform .15s; }
.tlm-link-arrow:hover::after { transform: translateX(3px); }

/* ==========================================================================
   Testata
   ========================================================================== */
.tlm-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.admin-bar .tlm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tlm-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .tlm-header { top: 0; } }
.tlm-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }

.tlm-brand__link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.tlm-brand { flex: none; }
.tlm-brand__text { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.tlm-brand__text strong { font-size: 22px; font-weight: 800; color: var(--g-700); letter-spacing: -.02em; }
.tlm-brand__text span { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.tlm-brand .custom-logo { max-height: 56px; width: auto; display: block; }

.tlm-navtoggle { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; background: var(--white); color: var(--g-900); border: 2px solid var(--g-300); border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }

.tlm-nav { display: none; width: 100%; padding: 8px 0 20px; }
.tlm-nav.is-open { display: block; }
.tlm-menu, .tlm-menu ul { list-style: none; margin: 0; padding: 0; }
.tlm-menu a { display: flex; align-items: center; min-height: 52px; padding: 8px 4px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.tlm-menu ul a { padding-left: 20px; font-weight: 500; }
.tlm-menu a:hover, .tlm-menu .current-menu-item > a, .tlm-menu .current_page_item > a { color: var(--g-700); }
.tlm-nav__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.tlm-nav__cta .tlm-btn { flex: 1 1 200px; }

@media (min-width: 1360px) {
	.tlm-header__in { flex-wrap: nowrap; }
	.tlm-navtoggle { display: none; }
	.tlm-nav { display: flex; align-items: center; justify-content: flex-end; gap: 20px; width: auto; padding: 0; flex: 1; }
	.tlm-menu { display: flex; align-items: center; gap: 4px; }
	.tlm-menu > li { position: relative; }
	.tlm-menu a { border: 0; padding: 8px 12px; min-height: 48px; font-size: 16px; border-radius: 8px; white-space: nowrap; }
	.tlm-menu > li > a:hover { background: var(--g-100); }
	.tlm-menu .current-menu-item > a, .tlm-menu .current_page_item > a { box-shadow: inset 0 -3px 0 var(--g-500); border-radius: 8px 8px 0 0; }
	.tlm-menu ul { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow); padding: 8px; }
	.tlm-menu li:hover > ul, .tlm-menu li:focus-within > ul { display: block; }
	.tlm-menu ul a { padding-left: 12px; white-space: normal; }
	.tlm-nav__cta { margin: 0; flex-wrap: nowrap; }
	.tlm-nav__cta .tlm-btn { flex: none; min-height: 48px; padding: 8px 20px; font-size: 16px; }
}

/* ==========================================================================
   Home: apertura
   ========================================================================== */
.tlm-hero {
	color: var(--white);
	background-color: var(--g-900);
	background-image:
		radial-gradient(60% 90% at 100% 0%, rgba(104, 171, 94, .45), transparent 60%),
		radial-gradient(50% 70% at 0% 100%, rgba(104, 171, 94, .22), transparent 60%);
	padding: 56px 0 48px;
}
.tlm-hero h1 { color: var(--white); max-width: 16em; }
.tlm-hero__lead { font-size: clamp(19px, 2.4vw, 23px); color: var(--g-200); max-width: 34em; margin-bottom: 28px; }
.tlm-hero__search { display: flex; flex-wrap: wrap; gap: 12px; max-width: 640px; margin-bottom: 24px; }
.tlm-hero__search .tlm-search { flex: 1 1 260px; }
.tlm-hero__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0; }
.tlm-hero__link { color: var(--white); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; }
.tlm-hero__link:hover { color: var(--g-200); }
.tlm-hero__facts { list-style: none; margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(255, 255, 255, .2); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.tlm-hero__facts strong { display: block; font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.tlm-hero__facts span { color: var(--g-200); font-size: 16px; }
@media (min-width: 900px) { .tlm-hero { padding: 88px 0 64px; } }

/* ==========================================================================
   Campi di ricerca e filtri
   ========================================================================== */
.tlm-search { position: relative; display: block; }
.tlm-search .tlm-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--g-700); pointer-events: none; }
.tlm-search input {
	width: 100%; min-height: 56px; padding: 12px 18px 12px 52px;
	font: inherit; color: var(--ink); background: var(--white);
	border: 2px solid var(--g-300); border-radius: 999px; appearance: none; -webkit-appearance: none;
}
.tlm-search input::placeholder { color: #66756a; opacity: 1; }
.tlm-search input:focus { border-color: var(--g-700); outline: 3px solid var(--g-200); outline-offset: 0; }
.tlm-search--big input { min-height: 60px; border-color: var(--white); }
.tlm-hero .tlm-search input:focus { outline-color: var(--g-500); }

.tlm-select select {
	min-height: 56px; padding: 12px 44px 12px 20px; font: inherit; color: var(--ink);
	border: 2px solid var(--g-300); border-radius: 999px; appearance: none; -webkit-appearance: none;
	background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b2a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 18px;
	max-width: 100%; cursor: pointer;
}

.tlm-finder { margin-bottom: 24px; }
.tlm-finder__row { display: flex; flex-wrap: wrap; gap: 12px; }
.tlm-finder__row .tlm-search { flex: 1 1 280px; }
.tlm-finder__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; }
.tlm-finder__count { margin: 0; font-weight: 700; color: var(--g-900); }
.tlm-finder__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.tlm-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 12px; border: 2px solid var(--g-300); border-radius: 999px; font-weight: 600; font-size: 16px; cursor: pointer; background: var(--white); }
.tlm-toggle input { width: 22px; height: 22px; accent-color: var(--g-700); margin: 0; }

.tlm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tlm-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; background: var(--white); color: var(--ink); border: 2px solid var(--line); border-radius: 999px; font-size: 16px; font-weight: 600; text-decoration: none; }
.tlm-chip .tlm-icon { width: 20px; height: 20px; color: var(--g-700); }
.tlm-chip:hover { border-color: var(--g-500); color: var(--g-900); }
.tlm-chip.is-active { background: var(--g-700); border-color: var(--g-700); color: var(--white); }
.tlm-chip.is-active .tlm-icon { color: var(--white); }
@media (max-width: 700px) {
	.tlm-finder .tlm-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 4px 20px 10px; scroll-snap-type: x proximity; }
	.tlm-finder .tlm-chip { flex: none; scroll-snap-align: start; }
}

.tlm-map { height: 380px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 24px; background: var(--g-100); overflow: hidden; z-index: 0; }
.tlm-map--single { height: 260px; margin: 16px 0 0; }
.tlm-map.is-error { height: auto; padding: 20px; color: var(--muted); }

.tlm-empty { padding: 32px 24px; background: var(--g-50); border: 1px dashed var(--g-300); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* ==========================================================================
   Schede negli elenchi
   ========================================================================== */
.tlm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }

.tlm-card { display: flex; flex-direction: column; gap: 12px; position: relative; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.tlm-card:hover { border-color: var(--g-300); box-shadow: var(--shadow); }
.tlm-card__top { display: flex; align-items: center; gap: 14px; }
.tlm-card__avatar { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex: none; background: var(--g-100); }
.tlm-card__avatar--icon { display: inline-flex; align-items: center; justify-content: center; color: var(--g-700); }
.tlm-card__avatar--icon .tlm-icon { width: 32px; height: 32px; }
.tlm-card__cat { margin: 0 0 2px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--g-700); }
.tlm-card__title { margin: 0; font-size: 20px; }
.tlm-card__title a { color: var(--g-900); text-decoration: none; }
.tlm-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tlm-card__title a:hover { text-decoration: underline; }
.tlm-card__addr { display: flex; gap: 8px; margin: 0; font-size: 16px; color: var(--muted); }
.tlm-card__addr .tlm-icon { width: 20px; height: 20px; margin-top: 3px; color: var(--g-700); }
.tlm-card__benefit { margin: 0; font-size: 16px; padding: 10px 14px; background: var(--g-50); border-radius: var(--radius-s); border-left: 4px solid var(--g-500); }
.tlm-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.tlm-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; position: relative; z-index: 1; }

.tlm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #eef0ee; color: #3f4a41; }
.tlm-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tlm-badge.is-open { background: var(--g-100); color: var(--g-800); }
.tlm-badge--file { background: var(--g-100); color: var(--g-800); }
.tlm-badge--file::before { display: none; }
.tlm-badge--file .tlm-icon { width: 16px; height: 16px; }

/* ==========================================================================
   Home: blocchi
   ========================================================================== */
.tlm-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.tlm-point { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); display: flex; flex-direction: column; }
.tlm-point p { font-size: 17px; color: var(--muted); }
.tlm-point .tlm-link-arrow { margin-top: auto; }
.tlm-point__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--g-100); color: var(--g-700); margin-bottom: 16px; }
.tlm-point__icon .tlm-icon { width: 28px; height: 28px; }

.tlm-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.tlm-cat { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 650; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tlm-cat:hover { border-color: var(--g-500); box-shadow: var(--shadow); color: var(--g-900); }
.tlm-cat__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--g-100); color: var(--g-700); flex: none; }
.tlm-cat__name { flex: 1; line-height: 1.25; }
.tlm-cat__count { min-width: 32px; padding: 2px 10px; border-radius: 999px; background: var(--g-100); color: var(--g-800); font-size: 15px; font-weight: 700; text-align: center; }

.tlm-about { display: grid; gap: 16px 56px; }
@media (min-width: 900px) { .tlm-about { grid-template-columns: 1fr 1.6fr; } }

.tlm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.tlm-post { display: flex; flex-direction: column; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.tlm-post__meta { margin: 0 0 8px; font-size: 15px; color: var(--muted); font-weight: 600; }
.tlm-post__title { font-size: 21px; margin-bottom: 10px; }
.tlm-post__title a { color: var(--g-900); text-decoration: none; }
.tlm-post__title a:hover { text-decoration: underline; }
.tlm-post__text { font-size: 17px; color: var(--muted); }
.tlm-post__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto 0 0; }
.tlm-post__foot .tlm-link-arrow { margin-left: auto; }

.tlm-give { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .tlm-give { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.tlm-give__cf { font-size: clamp(30px, 5vw, 44px); font-weight: 800; color: var(--g-900); letter-spacing: -.01em; margin-bottom: 12px; line-height: 1.1; }

.tlm-join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 32px; background: var(--g-100); border: 1px solid var(--g-200); border-radius: 24px; }
.tlm-join > div { flex: 1 1 320px; }
.tlm-join h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; }
.tlm-join p { margin: 0; color: var(--muted); }
.tlm-join--stack { flex-direction: column; align-items: flex-start; }
.tlm-join--stack > div { flex: none; }

.tlm-5x1000 p { margin-bottom: 10px; }
.tlm-5x1000__cf strong { display: block; font-size: 28px; letter-spacing: .02em; line-height: 1.2; }

/* ==========================================================================
   Scheda del convenzionato
   ========================================================================== */
.tlm-lhead { display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: center; }
.tlm-lhead > div { flex: 1 1 280px; }
.tlm-lhead h1 { margin-bottom: 10px; }
.tlm-lhead p { margin-bottom: 10px; }
.tlm-lhead p:last-child { margin-bottom: 0; }
.tlm-lhead__img { width: 120px; height: 120px; border-radius: 24px; object-fit: cover; background: var(--white); border: 1px solid var(--line); flex: none; }
.tlm-lhead__img--icon { display: inline-flex; align-items: center; justify-content: center; background: var(--g-100); color: var(--g-700); }
.tlm-lhead__img--icon .tlm-icon { width: 56px; height: 56px; }
.tlm-lhead__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tlm-lhead__addr { display: flex; gap: 8px; color: var(--muted); }
.tlm-lhead__addr .tlm-icon { margin-top: 3px; color: var(--g-700); }
.tlm-tag { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--g-700); color: var(--white); font-size: 15px; font-weight: 700; }
.tlm-tag--soft { background: var(--white); color: var(--g-800); border: 1px solid var(--g-300); }

.tlm-lgrid { display: grid; gap: 32px; }
@media (min-width: 960px) { .tlm-lgrid { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 48px; align-items: start; } .tlm-lside { position: sticky; top: 96px; } }
.tlm-lmain > * + * { margin-top: 32px; }
.tlm-lside > * + * { margin-top: 20px; }

.tlm-benefit { padding: 24px; background: var(--g-100); border: 1px solid var(--g-200); border-left: 6px solid var(--g-500); border-radius: var(--radius); }
.tlm-benefit h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 12px; }
.tlm-benefit h2 .tlm-icon { width: 26px; height: 26px; color: var(--g-700); }
.tlm-benefit ul { list-style: none; margin: 0 0 12px; padding: 0; }
.tlm-benefit li { position: relative; padding: 6px 0 6px 32px; font-weight: 600; }
.tlm-benefit li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 14px; height: 8px; border-left: 3px solid var(--g-700); border-bottom: 3px solid var(--g-700); transform: rotate(-45deg); }
.tlm-benefit p { font-weight: 600; }
.tlm-benefit .tlm-benefit__note { margin: 0; font-size: 16px; font-weight: 400; color: var(--muted); }

.tlm-box { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.tlm-box h2 { font-size: 20px; margin-bottom: 12px; }
.tlm-box p:last-child { margin-bottom: 0; }
.tlm-box--join { background: var(--g-50); }
.tlm-box--join p { font-size: 16px; color: var(--muted); }
.tlm-box--join .tlm-btn { width: 100%; margin-top: 4px; }
.tlm-box__btns { display: flex; flex-wrap: wrap; gap: 10px; }

.tlm-contacts { list-style: none; margin: 0; padding: 0; }
.tlm-contacts a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; font-weight: 600; text-decoration: none; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.tlm-contacts li:first-child a { border-top: 0; }
.tlm-contacts a:hover span { text-decoration: underline; }

.tlm-hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.tlm-hours th, .tlm-hours td { padding: 8px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.tlm-hours tr:first-child th, .tlm-hours tr:first-child td { border-top: 0; }
.tlm-hours td { text-align: right; font-variant-numeric: tabular-nums; }
.tlm-hours .is-today th, .tlm-hours .is-today td { font-weight: 700; color: var(--g-900); }

.tlm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tlm-gallery img { width: 100%; height: 160px; object-fit: contain; background: var(--g-50); border: 1px solid var(--line); border-radius: var(--radius-s); display: block; }

.tlm-same h2 { font-size: 22px; }
.tlm-same__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.tlm-same__list a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: var(--ink); }
.tlm-same__list a:hover { border-color: var(--g-500); }
.tlm-same__list strong { display: block; line-height: 1.25; color: var(--g-900); }
.tlm-same__list small { font-size: 15px; color: var(--muted); }
.tlm-same__icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--g-100); color: var(--g-700); flex: none; }

.tlm-actionbar { display: none; }
@media (max-width: 959px) {
	.tlm-actionbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(23, 61, 26, .1); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
	.tlm-actionbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; background: var(--g-700); color: var(--white); border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; }
	.tlm-actionbar a + a { background: var(--white); color: var(--g-800); border: 2px solid var(--g-300); }
	.tlm-has-actionbar .tlm-footer { padding-bottom: 84px; }
}

/* ==========================================================================
   Testi lunghi (articoli, pagine, profili)
   ========================================================================== */
.tlm-prose { overflow-wrap: break-word; }
.tlm-prose > *:first-child { margin-top: 0; }
.tlm-prose h1 { font-size: clamp(28px, 4.4vw, 40px); margin-top: 0; }
.tlm-prose h2 { margin-top: 1.6em; font-size: clamp(22px, 3vw, 28px); }
.tlm-prose h3 { margin-top: 1.5em; }
.tlm-prose h4 { margin-top: 1.4em; font-size: 19px; }
.tlm-prose ul, .tlm-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.tlm-prose li { margin-bottom: .4em; }
.tlm-prose img { border-radius: var(--radius-s); }
.tlm-prose figure { margin: 1.5em 0; }
.tlm-prose figcaption { font-size: 16px; color: var(--muted); margin-top: 6px; }
.tlm-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--g-500); color: var(--muted); }
.tlm-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.tlm-prose th, .tlm-prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.tlm-prose iframe, .tlm-prose video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-s); }
.tlm-prose a[href$=".pdf"] { font-weight: 700; }

.tlm-files { display: grid; gap: 12px; margin-bottom: 28px; }
.tlm-file { display: flex; align-items: center; gap: 16px; padding: 16px 20px; min-height: 72px; background: var(--g-100); border: 1px solid var(--g-200); border-radius: var(--radius); text-decoration: none; color: var(--g-900); }
.tlm-file:hover { border-color: var(--g-700); }
.tlm-file .tlm-icon { width: 32px; height: 32px; color: var(--g-700); }
.tlm-file strong { display: block; }
.tlm-file small { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }

.tlm-article__img { margin: 0 0 28px; }
.tlm-article__img img { border-radius: var(--radius); display: block; }
.tlm-article__tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.tlm-article__tags a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; }
.tlm-prevnext { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.tlm-prevnext a { font-weight: 700; display: inline-flex; min-height: 48px; align-items: center; }

.tlm-pagination { margin-top: 32px; }
.tlm-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tlm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 999px; font-weight: 700; text-decoration: none; }
.tlm-pagination .page-numbers.current { background: var(--g-700); border-color: var(--g-700); color: var(--white); }

.tlm-searchform { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tlm-searchform .tlm-search { flex: 1 1 260px; }

.tlm-joinform { margin-bottom: 32px; }

/* ==========================================================================
   Piè di pagina
   ========================================================================== */
.tlm-footer { background: var(--g-900); color: var(--g-200); padding: 56px 0 0; margin-top: 24px; font-size: 17px; }
.tlm-footer a { color: var(--white); }
.tlm-footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.tlm-footer__name { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.tlm-footer__title { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--g-300); margin-bottom: 8px; }
.tlm-footer__list { list-style: none; margin: 0; padding: 0; }
.tlm-footer__list a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; overflow-wrap: anywhere; }
.tlm-footer__list a:hover { text-decoration: underline; }
.tlm-footer__5x1000 { padding: 24px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); }
.tlm-footer .tlm-eyebrow { color: var(--g-300); }
.tlm-footer .tlm-5x1000__cf strong { color: var(--white); }
.tlm-footer .tlm-5x1000 p { font-size: 16px; }
.tlm-footer__bottom { margin-top: 40px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: 15px; }
.tlm-footer__bottom p { margin: 0; }

/* ==========================================================================
   WooCommerce: carrello, cassa, area personale
   ========================================================================== */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .wc-block-components-button:not(.is-link) {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px;
	background: var(--g-700); color: var(--white); border: 2px solid var(--g-700); border-radius: 999px;
	font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover, .wc-block-components-button:not(.is-link):hover { background: var(--g-900); border-color: var(--g-900); color: var(--white); }
.woocommerce .button.alt, .woocommerce #place_order, .woocommerce .checkout-button, .woocommerce .single_add_to_cart_button { background: var(--red); border-color: var(--red); }
.woocommerce .button.alt:hover, .woocommerce #place_order:hover, .woocommerce .checkout-button:hover, .woocommerce .single_add_to_cart_button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.woocommerce #place_order { width: 100%; min-height: 60px; font-size: 19px; }
.woocommerce .button:disabled, .woocommerce .button.disabled { opacity: .55; cursor: not-allowed; }

.woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.woocommerce form .form-row .required { color: var(--red); text-decoration: none; }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select, .woocommerce .select2-container .select2-selection--single {
	width: 100%; min-height: 52px; padding: 10px 16px; font: inherit; color: var(--ink);
	background: var(--white); border: 2px solid var(--g-300); border-radius: var(--radius-s);
}
.woocommerce .select2-container .select2-selection--single { display: flex; align-items: center; padding: 0 16px; }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.4; color: var(--ink); }
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { height: 50px; right: 10px; }
.woocommerce input.input-text:focus, .woocommerce textarea:focus, .woocommerce select:focus { border-color: var(--g-700); outline: 3px solid var(--g-200); }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; }
@media (min-width: 700px) {
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 8px); float: left; }
	.woocommerce form .form-row-last { float: right; }
	.woocommerce form .form-row-wide { clear: both; }
}
.woocommerce .col2-set::after, .woocommerce form::after, .woocommerce-billing-fields__field-wrapper::after { content: ""; display: table; clear: both; }

.woocommerce table.shop_table { width: 100%; border-collapse: collapse; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--radius-s); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 14px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.woocommerce table.shop_table thead th { border-top: 0; background: var(--g-50); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.woocommerce table.shop_table img { width: 64px; border-radius: 8px; }
.woocommerce a.remove { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; color: var(--red); text-decoration: none; }
.woocommerce a.remove:hover { background: #fdecef; }
.woocommerce .quantity .qty { width: 88px; min-height: 52px; padding: 8px; text-align: center; font: inherit; border: 2px solid var(--g-300); border-radius: var(--radius-s); }

.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice { list-style: none; margin: 0 0 24px; padding: 16px 20px; border-radius: var(--radius-s); background: var(--g-100); border: 1px solid var(--g-200); border-left: 6px solid var(--g-500); }
.woocommerce-error { background: #fdecef; border-color: #f5c2cb; border-left-color: var(--red); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { float: right; min-height: 44px; padding: 6px 18px; margin-left: 12px; }

.woocommerce-checkout #order_review, .woocommerce .cart_totals, .woocommerce-checkout-review-order { padding: 24px; background: var(--g-50); border: 1px solid var(--line); border-radius: var(--radius); }
.woocommerce .cart_totals { max-width: 480px; margin-left: auto; }
.woocommerce #payment ul.payment_methods { list-style: none; margin: 0 0 16px; padding: 0; }
.woocommerce #payment ul.payment_methods li { padding: 12px 0; border-top: 1px solid var(--line); }
.woocommerce #payment ul.payment_methods input[type=radio], .woocommerce input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--g-700); vertical-align: middle; margin-right: 8px; }
.woocommerce #payment .payment_box { margin-top: 8px; padding: 12px 16px; background: var(--white); border-radius: var(--radius-s); font-size: 16px; }

.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--g-700); border-color: var(--g-700); color: var(--white); }

.tlm-woo ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.tlm-woo ul.products li.product { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.tlm-woo ul.products li.product a { text-decoration: none; }
.tlm-woo ul.products li.product img { border-radius: var(--radius-s); display: block; margin-bottom: 12px; }
.tlm-woo .woocommerce-loop-product__title { font-size: 20px; }
.tlm-woo .price { display: block; font-size: 22px; font-weight: 800; color: var(--g-900); margin-bottom: 12px; }
.tlm-woo div.product { display: grid; gap: 32px; }
@media (min-width: 860px) { .tlm-woo div.product { grid-template-columns: 1fr 1fr; align-items: start; } .tlm-woo div.product > .woocommerce-tabs, .tlm-woo div.product > .related, .tlm-woo div.product > .upsells { grid-column: 1 / -1; } }
.tlm-woo div.product .woocommerce-product-gallery img { border-radius: var(--radius); }
.tlm-woo div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.tlm-woo .woocommerce-tabs ul.tabs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tlm-woo .woocommerce-tabs ul.tabs a { display: inline-flex; min-height: 48px; align-items: center; padding: 8px 18px; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; text-decoration: none; }
.tlm-woo .woocommerce-tabs ul.tabs .active a { background: var(--g-700); border-color: var(--g-700); color: var(--white); }

/* ==========================================================================
   Movimento ridotto e stampa
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
	.tlm-header, .tlm-footer, .tlm-actionbar, .tlm-finder, .tlm-map, .tlm-join, .tlm-box--join, .tlm-navtoggle { display: none !important; }
	body { font-size: 12pt; }
	.tlm-pagehead { background: none; border: 0; padding: 0 0 12pt; }
}

/* ==========================================================================
   Grafica 1.1 – più profondità: testate scure con il fiore, schede in rilievo,
   fasce alternate e componenti delle pagine (classi usate da assets/data/pagine.json)
   ========================================================================== */
:root {
	--shadow: 0 1px 2px rgba(23, 61, 26, .08), 0 10px 28px rgba(23, 61, 26, .10);
	--shadow-l: 0 2px 4px rgba(23, 61, 26, .10), 0 22px 48px rgba(23, 61, 26, .16);
	--grad: linear-gradient(135deg, #14361a 0%, #22522a 55%, #3d7d36 100%);
	--flower-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-62 -62 124 124'%3E%3Cg fill='%23fff' fill-opacity='.09'%3E%3Cellipse cy='-33' rx='15' ry='23'/%3E%3Cellipse cy='-33' rx='15' ry='23' transform='rotate(72)'/%3E%3Cellipse cy='-33' rx='15' ry='23' transform='rotate(144)'/%3E%3Cellipse cy='-33' rx='15' ry='23' transform='rotate(216)'/%3E%3Cellipse cy='-33' rx='15' ry='23' transform='rotate(288)'/%3E%3C/g%3E%3C/svg%3E");
	--flower-g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-62 -62 124 124'%3E%3Cg fill='%2368ab5e'%3E%3Cellipse cy='-33' rx='15' ry='23'/%3E%3Cellipse cy='-33' rx='15' ry='23' transform='rotate(72)'/%3E%3Cellipse cy='-33' rx='15' ry='23' transform='rotate(144)'/%3E%3Cellipse cy='-33' rx='15' ry='23' transform='rotate(216)'/%3E%3Cellipse cy='-33' rx='15' ry='23' transform='rotate(288)'/%3E%3C/g%3E%3Cpath d='M0 9s-9-5.500-9-11a5 5 0 0 1 9-3 5 5 0 0 1 9 3c0 5.500-9 11-9 11z' fill='%23c8102e'/%3E%3C/svg%3E");
}

body { background: #fbfdfa; }

/* Testate di pagina */
.tlm-pagehead { position: relative; overflow: hidden; background: var(--grad); border-bottom: 0; padding: 52px 0 48px; color: var(--white); }
.tlm-pagehead::after { content: ""; position: absolute; right: -70px; top: 50%; width: 380px; height: 380px; transform: translateY(-50%) rotate(12deg); background: var(--flower-w) center / contain no-repeat; pointer-events: none; }
.tlm-pagehead > * { position: relative; z-index: 1; }
.tlm-pagehead h1 { color: var(--white); margin-bottom: 8px; }
.tlm-pagehead .tlm-lead, .tlm-pagehead .tlm-post__meta, .tlm-pagehead p { color: var(--g-200); }
.tlm-pagehead .tlm-crumb, .tlm-pagehead .tlm-crumb a, .tlm-pagehead .tlm-eyebrow { color: var(--g-300); }
.tlm-pagehead .tlm-crumb a:hover { color: var(--white); }
.tlm-pagehead :focus-visible { outline-color: var(--white); }
.tlm-pagehead + .tlm-section--tight, .tlm-pagehead + .tlm-section { padding-top: 40px; }
@media (min-width: 900px) { .tlm-pagehead { padding: 72px 0 64px; } }

/* Rilievo generale */
.tlm-section--tint { background: linear-gradient(180deg, #eef6eb 0%, #f7fbf5 100%); }
.tlm-card, .tlm-post, .tlm-box, .tlm-point { box-shadow: var(--shadow); border-color: transparent; }
.tlm-card, .tlm-post { transition: transform .18s, box-shadow .18s; }
.tlm-card:hover, .tlm-post:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); border-color: transparent; }
.tlm-btn--join { box-shadow: 0 6px 18px rgba(200, 16, 46, .28); }
.tlm-btn { box-shadow: 0 2px 6px rgba(23, 61, 26, .12); }
.tlm-btn--ghost, .tlm-btn--light { box-shadow: none; }
.tlm-header { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(23, 61, 26, .06); border-bottom: 0; }
.tlm-hero { background: var(--grad); position: relative; overflow: hidden; }
.tlm-hero::after { content: ""; position: absolute; right: -120px; bottom: -140px; width: 620px; height: 620px; transform: rotate(-14deg); background: var(--flower-w) center / contain no-repeat; pointer-events: none; }
.tlm-hero > * { position: relative; z-index: 1; }
.tlm-h2, .tlm-bandhead h2 { position: relative; padding-bottom: 14px; }
.tlm-h2::after, .tlm-bandhead h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--g-500), var(--g-300)); }

/* Articoli negli elenchi */
.tlm-post { padding: 0; overflow: hidden; }
.tlm-post__img { display: block; aspect-ratio: 16 / 9; background: var(--g-100) var(--flower-g) center / 96px no-repeat; overflow: hidden; }
.tlm-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tlm-post__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 18px; }
.tlm-pubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-bottom: 40px; }
.tlm-pub { display: flex; gap: 16px; align-items: center; padding: 20px 22px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-left: 6px solid var(--g-500); }
.tlm-pub:hover { box-shadow: var(--shadow-l); color: var(--ink); }
.tlm-pub strong { display: block; color: var(--g-900); font-size: 20px; }
.tlm-pub small { display: block; font-size: 16px; color: var(--muted); }

/* Pagine costruite a fasce */
.tlm-page { overflow: hidden; }
.tlm-band { padding: 56px 0; }
.tlm-band--tint { background: linear-gradient(180deg, #eef6eb 0%, #f7fbf5 100%); }
.tlm-band--dark { background: var(--grad); color: var(--white); position: relative; overflow: hidden; }
.tlm-band--dark::after { content: ""; position: absolute; left: -90px; top: 50%; width: 340px; height: 340px; transform: translateY(-50%); background: var(--flower-w) center / contain no-repeat; pointer-events: none; }
.tlm-band--dark > * { position: relative; z-index: 1; }
.tlm-band--dark h2, .tlm-band--dark h3 { color: var(--white); }
.tlm-bandhead { margin-bottom: 28px; }
.tlm-bandhead h2 { margin-bottom: 14px; }
.tlm-bandhead .tlm-lead { margin-top: 4px; }
.tlm-center { text-align: center; }
@media (min-width: 900px) { .tlm-band { padding: 76px 0; } }

.tlm-split { display: grid; gap: 32px; align-items: start; }
.tlm-split--center { align-items: center; }
@media (min-width: 900px) { .tlm-split { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 56px; } }

.tlm-statcard { position: relative; overflow: hidden; background: var(--grad); color: var(--white); border-radius: 24px; padding: 32px; box-shadow: var(--shadow-l); }
.tlm-statcard .tlm-flower { position: absolute; right: -50px; top: -50px; width: 220px; height: 220px; background: var(--flower-w) center / contain no-repeat; }
.tlm-statcard__num { position: relative; margin: 0; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.tlm-statcard__lab { position: relative; margin: 4px 0 24px; color: var(--g-200); }
.tlm-statcard__lab:last-child { margin-bottom: 0; }

.tlm-cards { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 900px) { .tlm-cards--2 { grid-template-columns: repeat(2, 1fr); } .tlm-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.tlm-feature { background: var(--white); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); border-top: 5px solid var(--g-500); }
.tlm-feature h3 { margin-bottom: 8px; }
.tlm-feature p { margin: 0 0 12px; }
.tlm-feature p:last-child { margin-bottom: 0; }
.tlm-feature .tlm-btn { margin-top: 8px; }
.tlm-feature__ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; margin-bottom: 14px; flex: none; background: linear-gradient(135deg, var(--g-700), var(--g-500)); color: var(--white); box-shadow: 0 6px 14px rgba(47, 107, 42, .28); }
.tlm-feature__ico .tlm-icon { width: 28px; height: 28px; }
.tlm-feature--cta { border-top: 0; border-left: 6px solid var(--g-500); }
.tlm-contacts .tlm-feature { text-align: center; }
.tlm-contacts a { font-weight: 700; overflow-wrap: anywhere; }
.tlm-iban { display: inline-block; padding: 2px 10px; background: var(--g-100); border-radius: 8px; letter-spacing: .02em; overflow-wrap: anywhere; }
.tlm-wideimg { display: block; width: 100%; margin-top: 32px; border-radius: 20px; box-shadow: var(--shadow); }

.tlm-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .tlm-checks { grid-template-columns: repeat(2, 1fr); } }
.tlm-checks li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.tlm-checks .tlm-icon { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--g-700); color: var(--white); margin-top: 2px; }

.tlm-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.tlm-person { background: var(--white); border-radius: 20px; padding: 26px 18px; text-align: center; box-shadow: var(--shadow); }
.tlm-person img, .tlm-person__ph { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--g-300); }
.tlm-person__ph { display: flex; align-items: center; justify-content: center; background: var(--grad); color: var(--white); font-size: 34px; font-weight: 800; }
.tlm-person h3 { font-size: 19px; margin-bottom: 2px; }
.tlm-person p { margin: 0; color: var(--g-700); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; }

.tlm-timeline { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 3px solid var(--g-200); max-width: 900px; }
.tlm-timeline li { position: relative; padding: 0 0 26px; }
.tlm-timeline li:last-child { padding-bottom: 0; }
.tlm-timeline li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--g-500); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--g-500); }
.tlm-timeline__when { display: inline-block; font-weight: 800; color: var(--g-700); background: var(--g-100); padding: 2px 12px; border-radius: 999px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.tlm-timeline__what > *:last-child { margin-bottom: 0; }

.tlm-notice { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border-radius: 20px; padding: 26px 28px; box-shadow: var(--shadow); border-left: 8px solid var(--red); }
.tlm-notice > .tlm-icon { width: 44px; height: 44px; color: var(--red); margin-top: 2px; }
.tlm-notice p { margin: 0 0 8px; }
.tlm-notice p:last-child { margin: 0; }
.tlm-notice--plain { border-left-color: var(--g-500); }
.tlm-notice--plain > .tlm-icon { color: var(--g-700); }
@media (max-width: 600px) { .tlm-notice { flex-direction: column; gap: 10px; padding: 22px; } }

.tlm-events { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.tlm-event { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tlm-event h3 { margin: 0; padding: 20px 22px; background: var(--grad); color: var(--white); font-size: 18px; line-height: 1.3; min-height: 86px; display: flex; align-items: center; }
.tlm-event__when { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 16px 22px; background: var(--g-100); font-weight: 700; color: var(--g-900); }
.tlm-event__when .tlm-icon { color: var(--g-700); margin-top: 3px; }
.tlm-event ul { list-style: none; margin: 0; padding: 8px 22px 16px; }
.tlm-event li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.tlm-event li:first-child { border-top: 0; }
.tlm-event li .tlm-icon { color: var(--g-700); margin-top: 3px; }
.tlm-event li span { overflow-wrap: anywhere; }
.tlm-event a { font-weight: 700; }

.tlm-acc { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.tlm-acc summary { cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: 20px; color: var(--g-900); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; list-style: none; }
.tlm-acc summary::-webkit-details-marker { display: none; }
.tlm-acc summary::after { content: "+"; font-size: 28px; line-height: 1; color: var(--g-700); }
.tlm-acc[open] summary::after { content: "–"; }
.tlm-acc summary small { margin-left: auto; font-size: 15px; font-weight: 600; color: var(--muted); }
.tlm-visits { list-style: none; margin: 0; padding: 0 22px 20px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tlm-visits li { background: var(--g-50); border-radius: 12px; padding: 14px 16px; border-left: 4px solid var(--g-500); font-size: 17px; }
.tlm-visits strong { display: block; color: var(--g-900); }
.tlm-visits span { display: block; }

.tlm-year { display: grid; gap: 16px; margin-bottom: 40px; }
.tlm-year:last-child { margin-bottom: 0; }
.tlm-year__n { margin: 0; font-size: 44px; font-weight: 800; color: var(--g-700); letter-spacing: -.03em; line-height: 1; }
@media (min-width: 900px) { .tlm-year { grid-template-columns: 150px 1fr; gap: 24px; } .tlm-year__n { position: sticky; top: 110px; align-self: start; } }
.tlm-gifts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tlm-gifts li { display: grid; gap: 6px 20px; align-items: center; background: var(--white); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .tlm-gifts li { grid-template-columns: 140px 1fr auto; } }
.tlm-gift__amount { font-size: 26px; font-weight: 800; color: var(--g-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tlm-gift__body h4 { margin: 0 0 2px; font-size: 19px; }
.tlm-gift__body p { margin: 0; color: var(--muted); }
.tlm-gifts time { font-size: 15px; font-weight: 700; color: var(--muted); background: var(--g-100); padding: 4px 12px; border-radius: 999px; justify-self: start; }

.tlm-5x { display: block; margin-bottom: 20px; }
.tlm-cf { background: var(--grad); color: var(--white); border-radius: 24px; padding: 32px; text-align: center; box-shadow: var(--shadow-l); }
.tlm-cf__lab { margin: 0 0 10px; color: var(--g-200); font-weight: 700; }
.tlm-cf__num { margin: 0 0 20px; font-size: clamp(30px, 6vw, 44px); font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tlm-quote { max-width: 900px; margin: 0 auto; text-align: center; font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; color: var(--g-900); line-height: 1.4; }
.tlm-quote p:last-child { margin: 0; }

.tlm-cta { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .tlm-cta { grid-template-columns: 1fr auto; } }
.tlm-cta h2 { margin: 0; }
.tlm-cta__text { margin: 0; font-size: 21px; font-weight: 700; }
.tlm-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tlm-cta__btns .tlm-btn { flex: 1 1 auto; }

.tlm-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 900px; }
.tlm-docs a { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: var(--white); border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); min-height: 72px; transition: transform .18s, box-shadow .18s; }
.tlm-docs a:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.tlm-docs .tlm-feature__ico { margin: 0; }
.tlm-docs__t { flex: 1 1 200px; }
.tlm-docs__t strong { display: block; color: var(--g-900); font-size: 20px; }
.tlm-docs__t small { color: var(--muted); font-size: 15px; font-weight: 600; }
.tlm-docs__dl { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--g-700); }

.tlm-posters { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.tlm-posters a { display: block; background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.tlm-posters a:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); }
.tlm-posters img { display: block; width: 100%; aspect-ratio: 5 / 7; object-fit: cover; object-position: top; background: var(--g-100); }
.tlm-posters span { display: block; padding: 14px 16px; font-weight: 600; font-size: 16px; line-height: 1.4; }

.tlm-videos { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.tlm-video { display: block; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .18s, box-shadow .18s; }
.tlm-video:hover { transform: translateY(-3px); box-shadow: var(--shadow-l); color: var(--ink); }
.tlm-video__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #0d1f10; overflow: hidden; }
.tlm-video__thumb img, .tlm-video__thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.tlm-video__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.tlm-video__play .tlm-icon { width: 34px; height: 34px; margin-left: 4px; }
.tlm-video__title { display: block; padding: 16px 20px 20px; font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--g-900); }

/* Riquadro iscrizione */
.tlm-joincard { background: var(--white); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-l); text-align: center; }
.tlm-joincard img { display: block; width: 100%; max-width: 380px; margin: 0 auto 16px; border-radius: 14px; }
.tlm-joincard .ts-join { border: 0 !important; padding: 0 !important; max-width: none !important; text-align: left; }
.tlm-joincard .tlm-btn { width: 100%; }

@media (prefers-reduced-motion: reduce) { .tlm-card, .tlm-post, .tlm-video, .tlm-posters a, .tlm-docs a { transition: none; } .tlm-card:hover, .tlm-post:hover, .tlm-video:hover, .tlm-posters a:hover, .tlm-docs a:hover { transform: none; } }

/* Testata della scheda convenzionata su fondo scuro */
.tlm-pagehead--listing .tlm-lhead__addr, .tlm-pagehead--listing .tlm-lhead__addr .tlm-icon { color: var(--g-200); }
.tlm-pagehead--listing .tlm-lhead__img { border: 4px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-l); }
.tlm-pagehead--listing a:not(.tlm-btn):not(.tlm-chip):not(.tlm-tag) { color: var(--white); }
.tlm-pagehead .tlm-search input { border-color: var(--white); }
.tlm-pagehead .tlm-tag { background: var(--g-500); color: #0d2410; }

/* WooCommerce: pulsanti nei colori del sito */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .wc-block-components-button:not(.is-link) {
	background: var(--g-700); color: var(--white); border: 2px solid var(--g-700); border-radius: 999px; min-height: 52px; padding: 12px 26px; font: inherit; font-weight: 700; line-height: 1.2; box-shadow: 0 2px 6px rgba(23, 61, 26, .12);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover { background: var(--g-900); border-color: var(--g-900); color: var(--white); }
.woocommerce button.single_add_to_cart_button.button.alt, .woocommerce #place_order { background: var(--red); border-color: var(--red); min-height: 60px; padding: 14px 34px; font-size: 19px; box-shadow: 0 6px 18px rgba(200, 16, 46, .28); }
.woocommerce button.single_add_to_cart_button.button.alt:hover, .woocommerce #place_order:hover { background: var(--red-dark); border-color: var(--red-dark); }
.woocommerce div.product .woocommerce-product-gallery img { border-radius: 24px; box-shadow: var(--shadow-l); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--g-700); font-size: 32px; font-weight: 800; }
