/* Gare Podistiche Trentino — stile neutro che eredita font e colori del tema.
   Personalizza il colore principale con: :root { --gt-accent: #tuo-colore; } */
.gt-list, .gt-details {
	--gt-accent: #c2410c;
	--gt-accent-ink: #fff;
	--gt-line: rgba(0, 0, 0, .1);
	--gt-soft: rgba(0, 0, 0, .035);
	--gt-muted: rgba(0, 0, 0, .6);
	--gt-radius: 10px;
}
@media (prefers-color-scheme: dark) {
	.gt-list, .gt-details {
		--gt-line: rgba(255, 255, 255, .14);
		--gt-soft: rgba(255, 255, 255, .05);
		--gt-muted: rgba(255, 255, 255, .65);
	}
}

/* Filtri */
.gt-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.gt-filters input, .gt-filters select {
	flex: 1 1 180px; min-height: 44px; padding: 8px 12px; font: inherit;
	border: 1px solid var(--gt-line); border-radius: var(--gt-radius); background: transparent; color: inherit;
}
.gt-filters input { flex-basis: 260px; }
.gt-noresults, .gt-empty { color: var(--gt-muted); }

/* Mesi */
.gt-month { margin: 0 0 28px; }
.gt-month-title {
	font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
	color: var(--gt-muted); margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--gt-line);
}
.gt-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gt-item { margin: 0; padding: 0; }
.gt-item[hidden], .gt-month[hidden] { display: none; }

/* Card */
.gt-card {
	display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
	padding: 12px 14px; border: 1px solid var(--gt-line); border-radius: var(--gt-radius);
	text-decoration: none !important; color: inherit !important; transition: border-color .15s, background .15s, transform .15s;
}
.gt-card:hover, .gt-card:focus-visible { border-color: var(--gt-accent); background: var(--gt-soft); }
.gt-card:focus-visible { outline: 2px solid var(--gt-accent); outline-offset: 2px; }
.gt-date {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: var(--gt-soft); border-radius: 8px; padding: 6px 0; line-height: 1.05;
}
.gt-day { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gt-mon { font-size: .75rem; text-transform: uppercase; font-weight: 700; color: var(--gt-accent); }
.gt-dow { font-size: .7rem; color: var(--gt-muted); text-transform: capitalize; }
.gt-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gt-title { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.gt-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .9rem; color: var(--gt-muted); }
.gt-badge {
	font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
	border: 1px solid var(--gt-line);
}
.gt-badge--trail, .gt-badge--montagna { border-color: #15803d; color: #15803d; }
.gt-badge--strada { border-color: #1d4ed8; color: #1d4ed8; }
.gt-badge--non_competitiva { border-color: #a16207; color: #a16207; }
@media (prefers-color-scheme: dark) {
	.gt-badge--trail, .gt-badge--montagna { border-color: #4ade80; color: #4ade80; }
	.gt-badge--strada { border-color: #93c5fd; color: #93c5fd; }
	.gt-badge--non_competitiva { border-color: #fcd34d; color: #fcd34d; }
}
@media (max-width: 560px) {
	.gt-card { grid-template-columns: 56px 1fr; }
	.gt-badge { grid-column: 2; justify-self: start; }
}

/* Scheda gara */
.gt-details {
	border: 1px solid var(--gt-line); border-radius: var(--gt-radius); padding: 18px 20px; margin: 0 0 28px;
}
.gt-details dl { margin: 0; display: grid; gap: 10px; }
.gt-details dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.gt-details dt { font-weight: 700; color: var(--gt-muted); font-size: .9rem; margin: 0; }
.gt-details dd { margin: 0; }
@media (max-width: 560px) { .gt-details dl > div { grid-template-columns: 1fr; gap: 0; } }
.gt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gt-btn {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--gt-radius);
	background: var(--gt-accent); color: var(--gt-accent-ink) !important; font-weight: 700; text-decoration: none !important;
	border: 1px solid var(--gt-accent);
}
.gt-btn:hover { filter: brightness(.92); }
.gt-btn--ghost { background: transparent; color: inherit !important; border-color: var(--gt-line); }
.gt-disclaimer { font-size: .8rem; color: var(--gt-muted); margin: 14px 0 0; }
.gt-back { margin-top: 28px; }

/* =========================================================
   Tema sito (stile ENDU, colori Atletica Valle di Cembra-Lavis)
   ========================================================= */
body.gtx {
	--o: #f68735;        /* arancio Atletica */
	--o-dark: #c15000;   /* arancio scuro */
	--ink: #373536;      /* antracite */
	--ink-2: #404040;
	--bg: #f4f4f4;
	--card: #fff;
	--line: rgba(0,0,0,.09);
	--muted: #6b6869;
	--r: 16px;
	--head: "Bebas Neue", "Roboto Condensed", Impact, sans-serif;
	margin: 0; background: var(--bg); color: var(--ink);
	font: 400 17px/1.5 "Roboto Condensed", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}
body.gtx *, body.gtx *::before, body.gtx *::after { box-sizing: border-box; }
.gtx a { color: inherit; }
.gtx img { max-width: 100%; height: auto; }
.gtx-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.gtx h1, .gtx h2, .gtx h3, .gtx h4 { font-family: var(--head); font-weight: 400; letter-spacing: .02em; line-height: 1.05; margin: 0; }

/* Le card dell'elenco ereditano i colori del brand */
.gtx .gt-list, .gtx .gt-details { --gt-accent: var(--o-dark); --gt-radius: 14px; }

/* Header */
.gtx-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .gtx-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gtx-header { top: 0; } }
.gtx-header-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.gtx-logo { font-family: var(--head); font-size: 30px; letter-spacing: .03em; text-decoration: none; color: var(--ink) !important; white-space: nowrap; line-height: 1; }
.gtx-logo i { color: var(--o); font-style: normal; }
.gtx-logo--light { color: #fff !important; }
.gtx-hsearch { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 999px; padding: 0 14px; height: 40px; flex: 0 1 240px; color: var(--muted); }
.gtx-hsearch svg { width: 18px; height: 18px; flex: none; }
.gtx-hsearch input { border: 0; background: transparent; font: inherit; font-size: 15px; width: 100%; outline: none; color: var(--ink); }
.gtx-nav { display: flex; gap: 22px; margin-left: auto; }
.gtx-nav a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink-2); }
.gtx-nav a:hover { color: var(--o-dark); }
.gtx-cta { background: var(--o); color: #fff !important; text-decoration: none; font-weight: 700; padding: 9px 18px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
.gtx-cta:hover { background: var(--o-dark); }
@media (max-width: 900px) { .gtx-nav { display: none; } .gtx-hsearch { margin-left: auto; } }
@media (max-width: 560px) { .gtx-cta { display: none; } .gtx-logo { font-size: 26px; } .gtx-header-in { gap: 12px; } }

/* Hero */
.gtx-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(246,135,53,.45), transparent 60%), linear-gradient(160deg, #4a4748 0%, var(--ink) 55%, #262425 100%); padding: 72px 0 120px; }
.gtx-hero--img { background: linear-gradient(90deg, rgba(38,36,37,.85), rgba(38,36,37,.35)), var(--gtx-hero) center/cover no-repeat; }
.gtx-mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 200px; color: var(--o-dark); }
.gtx-hero--img .gtx-mountains { color: var(--ink); opacity: .7; }
.gtx-hero-in { position: relative; z-index: 1; }
.gtx-hero h1 { font-size: clamp(48px, 7vw, 88px); max-width: 760px; }
.gtx-hero h1 span { color: var(--o); }
.gtx-hero-sub { margin: 10px 0 26px; font-size: 18px; opacity: .92; }
.gtx-hero-sub b { color: var(--o); }
.gtx-search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 560px; color: var(--muted); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.gtx-search svg { flex: none; }
.gtx-search input { flex: 1; border: 0; outline: none; font: inherit; font-size: 17px; min-width: 0; color: var(--ink); background: transparent; height: 44px; }
.gtx-search button { border: 0; background: var(--o); color: #fff; font: inherit; font-weight: 700; padding: 0 26px; height: 44px; border-radius: 999px; cursor: pointer; }
.gtx-search button:hover { background: var(--o-dark); }
.gtx-chips { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 22px; }
.gtx-chips a { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; font-weight: 700; font-size: 14px; width: 84px; text-align: center; line-height: 1.15; }
.gtx-chips span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.55); transition: background .15s, transform .15s; }
.gtx-chips a:hover span { background: var(--o); border-color: var(--o); transform: translateY(-2px); }

/* Link rapidi */
.gtx-quick { position: relative; z-index: 2; margin-top: -54px; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--r); box-shadow: 0 8px 28px rgba(0,0,0,.08); overflow: hidden; }
.gtx-quick a { display: flex; align-items: center; gap: 14px; padding: 20px 22px; text-decoration: none; border-right: 1px solid var(--line); }
.gtx-quick a:last-child { border-right: 0; }
.gtx-quick a > svg { margin-left: auto; color: var(--muted); width: 18px; flex: none; transition: transform .15s; }
.gtx-quick a:hover > svg { transform: translateX(3px); color: var(--o-dark); }
.gtx-quick b { display: block; font-size: 17px; }
.gtx-quick small { color: var(--muted); font-size: 14px; }
.gtx-qi { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff3ea; color: var(--o-dark); flex: none; }
@media (max-width: 760px) { .gtx-quick { grid-template-columns: 1fr; } .gtx-quick a { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Caroselli */
.gtx-rail { padding: 48px 0 8px; }
.gtx-rail + .gtx-rail .gtx-wrap, #weekend + .gtx-rail .gtx-wrap { border-top: 1px solid var(--line); padding-top: 40px; }
.gtx-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.gtx-rail-head h2 { font-size: clamp(30px, 4vw, 40px); }
.gtx-rail-nav { display: flex; align-items: center; gap: 8px; }
.gtx-more { font-weight: 700; color: var(--o-dark) !important; text-decoration: none; margin-right: 6px; }
.gtx-arrow { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.gtx-arrow:hover { background: var(--o); color: #fff; }
.gtx-arrow svg { width: 20px; }
.gtx-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 14px; }
.gtx-track::-webkit-scrollbar { display: none; }
@media (max-width: 1000px) { .gtx-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 760px) { .gtx-track { grid-auto-columns: 46%; } }
@media (max-width: 520px) { .gtx-track { grid-auto-columns: 82%; } .gtx-arrow { display: none; } }

/* Card gara (colori per tipologia) */
.gtx-t--strada          { --c: #d9640f; --c2: #b94f05; --ci: #fff; }
.gtx-t--trail           { --c: #373536; --c2: #262425; --ci: #fff; }
.gtx-t--montagna        { --c: #8a3a06; --c2: #6e2d03; --ci: #fff; }
.gtx-t--cross           { --c: #5c5a5b; --c2: #474546; --ci: #fff; }
.gtx-t--pista           { --c: #c15000; --c2: #9e4100; --ci: #fff; }
.gtx-t--non_competitiva { --c: #f68735; --c2: #e57622; --ci: #262425; }
.gtx-t--altro           { --c: #404040; --c2: #2f2f2f; --ci: #fff; }
.gtx-card { scroll-snap-align: start; border-radius: var(--r); background: var(--c); color: var(--ci); border: 3px solid var(--c); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.gtx-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.gtx-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit !important; }
.gtx-card-img { height: 120px; background: var(--c2) center/cover no-repeat; display: grid; place-items: center; border-radius: 13px 13px 0 0; position: relative; overflow: hidden; }
.gtx-card-img svg { width: 120px; height: 120px; opacity: .18; stroke-width: 1.4; transform: translate(30%, 18%) rotate(-8deg); }
.gtx-card-head { display: flex; align-items: stretch; background: rgba(0,0,0,.12); }
.gtx-card-title { flex: 1; font-family: "Roboto Condensed", sans-serif !important; font-weight: 700 !important; font-size: 18px; line-height: 1.2 !important; letter-spacing: 0 !important; padding: 10px 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 63px; }
.gtx-card-date { flex: none; width: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0,0,0,.18); font-size: 13px; text-transform: lowercase; line-height: 1; }
.gtx-card-date b { font-family: var(--head); font-size: 28px; font-weight: 400; }
.gtx-card-body { padding: 12px 12px 4px; display: flex; flex-direction: column; gap: 2px; flex: 1; font-size: 15px; }
.gtx-card-type { font-weight: 700; }
.gtx-card-loc, .gtx-card-dist { opacity: .85; }
.gtx-card-dist { font-size: 14px; }
.gtx-card-btn { margin: 12px; padding: 10px; text-align: center; border-radius: 10px; background: rgba(255,255,255,.2); font-weight: 700; border-top: 0; }
.gtx-t--non_competitiva .gtx-card-btn { background: rgba(0,0,0,.1); }
.gtx-card:hover .gtx-card-btn { background: rgba(255,255,255,.32); }

/* Zone */
.gtx-zones { padding: 48px 0 20px; }
.gtx-zones h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 18px; }
.gtx-zones ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gtx-zones a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; background: #fff; border-radius: 999px; text-decoration: none; font-weight: 600; border: 1px solid var(--line); }
.gtx-zones a svg { width: 16px; height: 16px; color: var(--o-dark); }
.gtx-zones small { color: var(--muted); font-weight: 400; }
.gtx-zones a:hover { border-color: var(--o); background: #fff3ea; }
.gtx-text { padding: 40px 0; }

/* Banda titolo (archivio / scheda) */
.gtx-band { background: linear-gradient(135deg, var(--o) 0%, var(--o-dark) 100%); color: #fff; padding: 46px 0 50px; }
.gtx-band h1 { font-size: clamp(44px, 6vw, 72px); }
.gtx-band p { margin: 8px 0 0; max-width: 680px; font-size: 18px; }
.gtx-crumb { font-size: 15px !important; opacity: .85; margin: 0 0 6px !important; }
.gtx-crumb a { text-decoration: none; }
.gtx-crumb a:hover { text-decoration: underline; }
.gtx-page { padding-top: 32px; padding-bottom: 56px; }
.gtx-band--single { background: linear-gradient(135deg, var(--c) 0%, var(--c2) 100%); color: var(--ci); }
.gtx-band--img { background: linear-gradient(90deg, rgba(38,36,37,.88), rgba(38,36,37,.45)), var(--gtx-hero) center/cover no-repeat; color: #fff; }
.gtx-single-head { display: flex; align-items: center; gap: 26px; }
.gtx-bigdate { flex: none; width: 104px; height: 104px; border-radius: var(--r); background: #fff; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.gtx-bigdate b { font-family: var(--head); font-size: 52px; font-weight: 400; color: var(--o-dark); }
.gtx-bigdate span { font-weight: 700; text-transform: uppercase; font-size: 14px; }
.gtx-single-loc { display: flex; align-items: center; gap: 6px; }
.gtx-single-loc svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .gtx-single-head { flex-direction: column; align-items: flex-start; gap: 16px; } .gtx-bigdate { width: 84px; height: 84px; } .gtx-bigdate b { font-size: 40px; } }
.gtx-single-main { max-width: 820px; }
.gtx .gt-details { background: #fff; border: 0; border-radius: var(--r); box-shadow: 0 4px 18px rgba(0,0,0,.06); padding: 22px 24px; }
.gtx .gt-btn { border-radius: 999px; background: var(--o); border-color: var(--o); }
.gtx .gt-btn:hover { background: var(--o-dark); border-color: var(--o-dark); filter: none; }
.gtx .gt-btn--ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.gtx .gt-btn--ghost:hover { background: #fff3ea; border-color: var(--o); }
.gtx .gt-back a { color: var(--o-dark); font-weight: 700; text-decoration: none; }

/* Elenco calendario dentro il tema */
.gtx .gt-filters input, .gtx .gt-filters select { background: #fff; border-color: var(--line); min-height: 48px; border-radius: 999px; padding: 8px 18px; }
.gtx .gt-filters input:focus, .gtx .gt-filters select:focus { outline: 2px solid var(--o); outline-offset: 1px; }
.gtx .gt-month-title { font-family: var(--head); font-weight: 400; font-size: 30px; letter-spacing: .03em; color: var(--ink); border-bottom: 3px solid var(--o); display: inline-block; padding-bottom: 2px; margin-bottom: 14px; }
.gtx .gt-card { background: #fff; border-color: transparent; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.gtx .gt-card:hover { border-color: var(--o); background: #fff; }
.gtx .gt-date { background: var(--ink); color: #fff; border-radius: 10px; }
.gtx .gt-day { font-family: var(--head); font-weight: 400; font-size: 30px; }
.gtx .gt-mon { color: var(--o); }
.gtx .gt-dow { color: rgba(255,255,255,.7); }
.gtx .gt-title { font-size: 18px; }
.gtx .gt-badge { border: 0; color: #fff; background: var(--ink-2); padding: 5px 11px; }
.gtx .gt-badge--strada { background: #d9640f; color: #fff; }
.gtx .gt-badge--trail { background: #373536; color: #fff; }
.gtx .gt-badge--montagna { background: #8a3a06; color: #fff; }
.gtx .gt-badge--cross { background: #5c5a5b; }
.gtx .gt-badge--pista { background: #c15000; }
.gtx .gt-badge--non_competitiva { background: #f68735; color: #262425; }

/* Footer */
.gtx-footer { background: var(--ink); color: rgba(255,255,255,.75); margin-top: 56px; padding: 50px 0 22px; font-size: 15px; }
.gtx-footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.gtx-footer h4 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.gtx-footer a:not(.gtx-logo) { display: block; text-decoration: none; padding: 3px 0; }
.gtx-footer a:hover { color: var(--o); }
.gtx-footer p { margin: 12px 0 0; max-width: 320px; }
.gtx-small { font-size: 14px; }
.gtx-copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px; font-size: 13px; color: rgba(255,255,255,.5); }
@media (max-width: 760px) { .gtx-footer-in { grid-template-columns: 1fr 1fr; } .gtx-footer-in > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { .gtx * { transition: none !important; scroll-behavior: auto !important; } }

/* Colori card a rotazione (palette Atletica) */
.gtx-c--0 { --c: #e0670f; --c2: #c45808; --ci: #fff; }
.gtx-c--1 { --c: #373536; --c2: #262425; --ci: #fff; }
.gtx-c--2 { --c: #c15000; --c2: #9e4100; --ci: #fff; }
.gtx-c--3 { --c: #f68735; --c2: #e57622; --ci: #262425; }
.gtx-c--4 { --c: #8a3a06; --c2: #6e2d03; --ci: #fff; }
.gtx-c--3 .gtx-card-btn { background: rgba(0,0,0,.1); }
.gtx-rail-nav.is-static .gtx-arrow { display: none; }

/* ---------- Pagina mappa ---------- */
.gtx-mapmode .gtx-main { padding: 0; }
.gtx-map-page { --mh: calc(100vh - 65px); display: grid; grid-template-columns: 400px 1fr; height: var(--mh); }
.admin-bar .gtx-map-page { --mh: calc(100vh - 97px); }
.gtx-map-side { display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--line); min-height: 0; }
.gtx-map-filters { padding: 14px 16px 10px; display: grid; gap: 8px; border-bottom: 1px solid var(--line); }
.gtx-map-filters input[type=search], .gtx-map-filters select { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.gtx-map-filters input[type=search] { background: var(--bg); border-color: transparent; }
.gtx-mf-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gtx-mf-row select { padding: 6px 10px; font-size: 14px; }
.gtx-mf-bounds { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.gtx-mf-bounds input { accent-color: var(--o); }
.gtx-map-count { margin: 0; padding: 10px 16px; font-weight: 700; font-size: 15px; }
.gtx-map-list { list-style: none; margin: 0; padding: 0 8px 16px; overflow-y: auto; flex: 1; }
.gtx-ml-item[hidden] { display: none; }
.gtx-ml-item a { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; text-decoration: none; }
.gtx-ml-item a:hover { background: #fff3ea; }
.gtx-ml-date { width: 54px; height: 54px; border-radius: 12px; background: var(--c); color: var(--ci); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-size: 12px; text-transform: lowercase; }
.gtx-ml-date b { font-family: var(--head); font-size: 26px; font-weight: 400; }
.gtx-ml-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.gtx-ml-title { font-weight: 700; font-size: 16px; }
.gtx-ml-type { font-size: 13px; color: var(--o-dark); font-weight: 600; }
.gtx-ml-loc { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtx-ml-pin { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.gtx-ml-pin[hidden] { display: none; }
.gtx-ml-pin:hover, .gtx-ml-pin:focus-visible { background: var(--o); color: #fff; outline: none; }
.gtx-map-wrap { position: relative; min-height: 0; }
#gtx-map { position: absolute; inset: 0; background: #e8e6e1; z-index: 0; }
.gtx-map-status { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 500; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 14px; margin: 0; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.gtx-map-status[hidden] { display: none; }
.gtx-pin { background: var(--c); color: var(--ci); border-radius: 12px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 3px 10px rgba(0,0,0,.3); border: 2px solid #fff; transition: transform .15s; }
.gtx-pin::after { content: ""; position: absolute; bottom: -9px; left: 50%; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #fff; }
.gtx-pin b { font-family: var(--head); font-size: 20px; font-weight: 400; }
.gtx-pin i { font-style: normal; font-size: 10px; text-transform: lowercase; }
.gtx-pin.is-hover, .gtx-pin:hover { transform: scale(1.15); z-index: 1000 !important; }
.gtx-cluster { background: var(--o); color: #fff; border-radius: 50%; display: grid !important; place-items: center; font-weight: 700; font-size: 15px; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 0 0 6px rgba(246,135,53,.3); }
.gtx .leaflet-popup-content-wrapper { border-radius: 14px; }
.gtx .leaflet-popup-content { margin: 14px 16px; font-family: "Roboto Condensed", sans-serif; }
.gtx-pop { display: flex; flex-direction: column; gap: 3px; min-width: 200px; font-size: 14px; color: var(--ink); }
.gtx-pop strong { font-size: 17px; line-height: 1.2; }
.gtx-pop-type { color: var(--o-dark); font-weight: 700; font-size: 13px; }
.gtx-pop-dist { color: var(--muted); }
.gtx-pop a { margin-top: 8px; background: var(--o); color: #fff !important; text-align: center; padding: 8px 12px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.gtx-pop a:hover { background: var(--o-dark); }
.gtx-map-toggle { display: none; }
@media (max-width: 860px) {
	.gtx-map-page { grid-template-columns: 1fr; }
	.gtx-map-page[data-view="list"] .gtx-map-wrap, .gtx-map-page[data-view="map"] .gtx-map-side { display: none; }
	.gtx-map-toggle { display: flex; position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 900; background: var(--ink); border-radius: 999px; padding: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
	.gtx-map-toggle button { border: 0; background: transparent; color: #fff; font: inherit; font-weight: 700; padding: 8px 20px; border-radius: 999px; cursor: pointer; }
	.gtx-map-toggle button[aria-pressed="true"] { background: var(--o); }
}
@media (max-width: 782px) { .admin-bar .gtx-map-page { --mh: calc(100vh - 111px); } }
.gtx-map-wrap .leaflet-tile-pane { filter: saturate(.55) brightness(1.04); }
.gtx-cta { display: inline-flex; align-items: center; gap: 7px; }
.gtx-cta svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 560px) { .gtx-cta { display: inline-flex; padding: 9px 12px; font-size: 0; gap: 0; } .gtx-cta svg { width: 20px; height: 20px; } }
/* Titoli card: fino a 3 righe, senza testo tagliato a metà */
.gtx-card-title { padding: 0 !important; margin: 10px 12px !important; -webkit-line-clamp: 3; min-height: 3.6em; align-self: center; }
.gtx .gt-chip { flex: 0 0 auto; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 0; background: var(--o); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.gtx .gt-chip:hover { background: var(--o-dark); }
/* Logo immagine */
.gtx-logo { display: inline-flex; align-items: center; flex: none; }
.gtx-logo img { height: 34px; width: auto; display: block; }
.gtx-footer .gtx-logo img { height: 40px; }
@media (max-width: 560px) { .gtx-logo img { height: 26px; } }
/* Chi gestisce il sito */
.gtx-about { padding: 56px 0 8px; }
.gtx-about-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; background: #fff; border-radius: var(--r); padding: 40px; box-shadow: 0 4px 18px rgba(0,0,0,.06); border-left: 6px solid var(--o); }
.gtx-eyebrow { margin: 0 0 8px; color: var(--o-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.gtx-about h2 { font-size: clamp(34px, 4.5vw, 52px); }
.gtx-about-text p { margin: 0 0 14px; font-size: 18px; line-height: 1.6; }
.gtx-about-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; color: var(--o-dark) !important; text-decoration: none; }
.gtx-about-link svg { width: 18px; height: 18px; transition: transform .15s; }
.gtx-about-link:hover svg { transform: translateX(3px); }
.gtx-footer .gtx-copy a { display: inline; padding: 0; color: rgba(255,255,255,.75); }
.gtx-copy a:hover { color: var(--o); }
@media (max-width: 860px) { .gtx-about-in { grid-template-columns: 1fr; gap: 16px; padding: 28px 22px; } }


/* Menu: Calendario + Mappa con icona (v1.2.8) */
.gtx-nav a { display: inline-flex; align-items: center; gap: 7px; }
.gtx-nav svg { width: 19px; height: 19px; flex: none; color: var(--o); }
.gtx-nav a[aria-current="page"] { color: var(--o-dark); }
@media (max-width: 900px) { .gtx-nav { display: flex; gap: 16px; margin-left: 0; } }
@media (max-width: 560px) { .gtx-nav span { display: none; } .gtx-nav svg { width: 24px; height: 24px; } .gtx-nav { gap: 14px; } }


/* Classifiche (v1.3.0) */
.gt-tags { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.gt-res {
  font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px dashed var(--gt-line); color: var(--gt-muted);
}
.gt-res--ok { border: 1px solid #15803d; color: #15803d; }
.gt-f-reslabel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; cursor: pointer; white-space: nowrap; }
.gt-filters .gt-f-res { flex: none; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; accent-color: var(--gt-accent); }
.gt-results { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gt-line); }
.gt-results-title { font-size: 1.4rem; margin: 0 0 8px; }
.gt-results-wait { color: var(--gt-muted); margin: 0; }
.gt-results-notes p { margin: 0 0 8px; }
@media (max-width: 560px) {
  .gt-tags { grid-column: 2; justify-self: start; flex-direction: row; flex-wrap: wrap; }
}
.gtx .gt-res { background: #fff; }
.gtx .gt-res--ok { background: #15803d; border-color: #15803d; color: #fff; }
.gtx .gt-btn--res { background: var(--ink); border-color: var(--ink); }
.gtx .gt-btn--res:hover { background: #000; border-color: #000; }
.gtx-done {
  display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 12px 0 0 !important;
  font-size: 15px !important; font-weight: 700; background: rgba(0,0,0,.25); color: #fff; padding: 5px 14px; border-radius: 999px;
}
.gtx-done a { color: #fff; }


/* Mappa mobile: mappa sopra, elenco sotto (v1.3.1) */
@media (max-width: 860px) {
  .gtx-map-page { display: flex; flex-direction: column; height: auto; }
  .gtx-map-page .gtx-map-wrap { display: block !important; order: -1; height: 55vh; min-height: 320px; scroll-margin-top: 70px; }
  .gtx-map-page .gtx-map-side { display: flex !important; border-right: 0; border-top: 1px solid var(--line); }
  .gtx-map-list { overflow: visible; flex: none; }
  .gtx-map-toggle { display: none !important; }
}
