/* =====================================================================
   Metellio - tema pubblico (Bootstrap 5)
   Palette ricavata dal logo
   ===================================================================== */

:root {
	--mt-brown: #522b29;
	--mt-brown-700: #3f201f;
	--mt-brown-100: #efe2dc;
	--mt-cream: #f7efe4;
	--mt-cream-200: #efe3d2;
	--mt-teal: #5f91a3;
	--mt-teal-700: #4a7584;
	--mt-teal-100: #dfeaee;
	--mt-sage: #8ca384;
	--mt-sage-100: #e6ece2;
	--mt-yellow: #ffce76;
	--mt-yellow-100: #fff3dc;
	--mt-ink: #2e1c1b;
	--mt-muted: #7a6360;
	--mt-line: #e6d8c6;
	--mt-green: #3f7d4f;
	--mt-red: #b3423a;
	--mt-radius: 18px;
	--mt-radius-sm: 12px;
	--mt-shadow: 0 1px 2px rgba(82, 43, 41, .06), 0 8px 24px rgba(82, 43, 41, .07);

	--bs-body-font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bs-body-color: var(--mt-ink);
	--bs-body-bg: #fbf7f1;
	--bs-link-color: var(--mt-teal-700);
	--bs-link-color-rgb: 74, 117, 132;
	--bs-link-hover-color: var(--mt-brown);
	--bs-link-hover-color-rgb: 82, 43, 41;
	--bs-border-color: var(--mt-line);
	--bs-secondary-color: var(--mt-muted);
	--bs-primary-rgb: 82, 43, 41;
	--bs-focus-ring-color: rgba(95, 145, 163, .35);
}

body { font-weight: 400; letter-spacing: .005em; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--mt-brown); font-weight: 600; letter-spacing: -.01em; }
.display-4, .display-5, .display-6 { font-weight: 600; letter-spacing: -.025em; }
.text-muted, .text-secondary { color: var(--mt-muted) !important; }
.text-brown { color: var(--mt-brown) !important; }
.text-teal { color: var(--mt-teal-700) !important; }
.text-credit { color: var(--mt-green) !important; }
.text-debit { color: var(--mt-red) !important; }
.bg-cream { background: var(--mt-cream) !important; }
.bg-brown { background: var(--mt-brown) !important; color: var(--mt-cream); }
.fw-medium { font-weight: 500 !important; }
.tabular { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--mt-teal-700); }

/* ------------------------------------------------------------ bottoni */
.btn { border-radius: 999px; font-weight: 500; padding: .6rem 1.35rem; }
.btn-sm { padding: .35rem .9rem; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1.05rem; }
.btn-mt { --bs-btn-bg: var(--mt-brown); --bs-btn-border-color: var(--mt-brown); --bs-btn-color: var(--mt-cream);
	--bs-btn-hover-bg: var(--mt-brown-700); --bs-btn-hover-border-color: var(--mt-brown-700); --bs-btn-hover-color: #fff;
	--bs-btn-active-bg: var(--mt-brown-700); --bs-btn-active-border-color: var(--mt-brown-700); --bs-btn-active-color: #fff;
	--bs-btn-disabled-bg: var(--mt-brown); --bs-btn-disabled-border-color: var(--mt-brown); --bs-btn-disabled-color: var(--mt-cream); }
.btn-mt-teal { --bs-btn-bg: var(--mt-teal); --bs-btn-border-color: var(--mt-teal); --bs-btn-color: #fff;
	--bs-btn-hover-bg: var(--mt-teal-700); --bs-btn-hover-border-color: var(--mt-teal-700); --bs-btn-hover-color: #fff;
	--bs-btn-active-bg: var(--mt-teal-700); --bs-btn-active-border-color: var(--mt-teal-700); --bs-btn-active-color: #fff; }
.btn-mt-yellow { --bs-btn-bg: var(--mt-yellow); --bs-btn-border-color: var(--mt-yellow); --bs-btn-color: var(--mt-brown);
	--bs-btn-hover-bg: #ffc251; --bs-btn-hover-border-color: #ffc251; --bs-btn-hover-color: var(--mt-brown);
	--bs-btn-active-bg: #ffc251; --bs-btn-active-border-color: #ffc251; --bs-btn-active-color: var(--mt-brown); }
.btn-mt-outline { --bs-btn-color: var(--mt-brown); --bs-btn-border-color: var(--mt-brown); --bs-btn-bg: transparent;
	--bs-btn-hover-bg: var(--mt-brown); --bs-btn-hover-color: var(--mt-cream); --bs-btn-hover-border-color: var(--mt-brown);
	--bs-btn-active-bg: var(--mt-brown); --bs-btn-active-color: var(--mt-cream); --bs-btn-active-border-color: var(--mt-brown); }
.btn-mt-light { --bs-btn-color: var(--mt-brown); --bs-btn-bg: var(--mt-cream); --bs-btn-border-color: var(--mt-cream);
	--bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; --bs-btn-hover-color: var(--mt-brown); }
.btn:focus-visible { box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }

/* ------------------------------------------------------------ form */
.form-control, .form-select { border-radius: var(--mt-radius-sm); border-color: var(--mt-line); padding: .7rem 1rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--mt-teal); box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.form-label { font-weight: 500; color: var(--mt-brown); margin-bottom: .35rem; }
.form-text { color: var(--mt-muted); }
.form-check-input:checked { background-color: var(--mt-teal); border-color: var(--mt-teal); }
.input-group-text { border-radius: var(--mt-radius-sm); background: var(--mt-cream); border-color: var(--mt-line); color: var(--mt-brown); }
.input-group > .form-control:not(:first-child) { border-left: 0; }
.input-group > .input-group-text + .form-control { padding-left: .25rem; }
.input-group > .input-group-text:first-child { border-right: 0; background: #fff; }
.card-number-input { font-size: 1.25rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; font-weight: 500; }

/* ------------------------------------------------------------ header */
.site-header { background: rgba(251, 247, 241, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--mt-line); }
.site-header .navbar { padding-top: .85rem; padding-bottom: .85rem; }
.site-header .nav-link { color: var(--mt-brown); font-weight: 500; padding-left: .9rem !important; padding-right: .9rem !important; border-radius: 999px; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--mt-brown); background: var(--mt-cream-200); }
.navbar-toggler { border: 0; font-size: 1.7rem; color: var(--mt-brown); padding: .1rem .4rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.dropdown-menu { border-color: var(--mt-line); border-radius: var(--mt-radius-sm); box-shadow: var(--mt-shadow); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; color: var(--mt-ink); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--mt-cream); color: var(--mt-brown); }
.dropdown-item:active { background: var(--mt-brown); color: var(--mt-cream); }

/* ------------------------------------------------------------ hero */
.hero { background: var(--mt-cream); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -180px; top: -140px; width: 560px; height: 560px; border-radius: 50%; background: var(--mt-yellow); opacity: .35; z-index: 0; }
.hero > .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; }
.hero .lead { font-size: 1.2rem; color: var(--mt-ink); max-width: 34rem; }
.hero-highlight { color: var(--mt-teal); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .95rem; color: var(--mt-muted); }
.hero-badges i { color: var(--mt-sage); }

.page-hero { background: var(--mt-cream); padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--mt-line); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

/* ------------------------------------------------------------ card fisica (mockup) */
.mt-card { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1.586; border-radius: 22px; padding: 1.4rem 1.5rem;
	background: radial-gradient(120% 140% at 100% 0%, #6b3a37 0%, var(--mt-brown) 45%, var(--mt-brown-700) 100%);
	color: var(--mt-cream); box-shadow: 0 24px 50px rgba(63, 32, 31, .35); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.mt-card::before { content: ""; position: absolute; right: -60px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--mt-teal); opacity: .55; }
.mt-card::after { content: ""; position: absolute; right: 70px; bottom: -120px; width: 180px; height: 180px; border-radius: 50%; background: var(--mt-yellow); opacity: .35; }
.mt-card > * { position: relative; z-index: 1; }
.mt-card .mt-card-logo { height: 30px; }
.mt-card .mt-card-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; opacity: .7; }
.mt-card .mt-card-number { font-size: 1.2rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; font-weight: 500; }
.mt-card .mt-card-holder { font-weight: 500; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; }
.mt-card-back { background: var(--mt-cream); color: var(--mt-brown); border: 1px solid var(--mt-line); }
.mt-card-back::before, .mt-card-back::after { display: none; }
.mt-card-back .barcode-box { background: #fff; border-radius: 10px; padding: .6rem .8rem .4rem; text-align: center; }
.mt-card-back .barcode-box svg { width: 100%; height: auto; max-height: 90px; }
.mt-card-stack { position: relative; padding: 2rem 0 3rem; }
.mt-card-stack .mt-card:first-child { transform: rotate(-6deg); max-width: 84%; }
.mt-card-stack .mt-card-float { position: absolute; right: 0; bottom: 0; width: 56%; transform: rotate(5deg); }
.mt-card.is-blocked { filter: grayscale(1); opacity: .75; }

/* ------------------------------------------------------------ sezioni */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title { max-width: 40rem; margin-bottom: 2.5rem; }
.section-title h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }

.step { background: #fff; border: 1px solid var(--mt-line); border-radius: var(--mt-radius); padding: 1.75rem; height: 100%; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.1rem; margin-bottom: 1rem; }
.step:nth-child(1) .step-num, .col:nth-child(1) .step-num { background: var(--mt-teal-100); color: var(--mt-teal-700); }
.col:nth-child(2) .step-num { background: var(--mt-yellow-100); color: #9a6a12; }
.col:nth-child(3) .step-num { background: var(--mt-sage-100); color: #4f6a47; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--mt-muted); margin: 0; }

.band { background: var(--mt-brown); color: var(--mt-cream); border-radius: calc(var(--mt-radius) + 8px); padding: 3rem; position: relative; overflow: hidden; }
.band h2 { color: var(--mt-cream); }
.band::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: var(--mt-teal); opacity: .45; }
.band > * { position: relative; z-index: 1; }

.stat-inline { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat-inline .value { font-size: 2rem; font-weight: 600; color: var(--mt-brown); line-height: 1; }
.stat-inline .label { font-size: .9rem; color: var(--mt-muted); }

/* ------------------------------------------------------------ categorie */
.category-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--mt-line);
	color: var(--mt-brown); text-decoration: none; font-weight: 500; font-size: .95rem; transition: all .15s ease; }
.chip:hover { border-color: var(--mt-brown); color: var(--mt-brown); }
.chip.active { background: var(--mt-brown); border-color: var(--mt-brown); color: var(--mt-cream); }
.chip .count { font-size: .78rem; opacity: .65; font-weight: 400; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mt-teal); }

.category-tile { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--mt-line); border-radius: var(--mt-radius); padding: 1.1rem 1.25rem;
	text-decoration: none; color: var(--mt-brown); height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.category-tile:hover { transform: translateY(-2px); box-shadow: var(--mt-shadow); color: var(--mt-brown); }
.category-tile .icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--mt-cream); font-size: 1.3rem; flex-shrink: 0; }
.category-tile .name { font-weight: 600; line-height: 1.2; }
.category-tile .count { font-size: .85rem; color: var(--mt-muted); }

/* ------------------------------------------------------------ attività */
.store-card { background: #fff; border: 1px solid var(--mt-line); border-radius: var(--mt-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column;
	transition: transform .15s ease, box-shadow .15s ease; position: relative; }
.store-card:hover { transform: translateY(-3px); box-shadow: var(--mt-shadow); }
.store-card .store-media { aspect-ratio: 16 / 10; background: var(--mt-cream); position: relative; overflow: hidden; }
.store-card .store-media img { width: 100%; height: 100%; object-fit: cover; }
.store-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 600; color: var(--mt-brown);
	background: linear-gradient(135deg, var(--mt-cream) 0%, var(--mt-cream-200) 100%); letter-spacing: .04em; }
.store-card .store-body { padding: 1.1rem 1.25rem 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.store-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.store-card h3 a { color: inherit; text-decoration: none; }
.store-card h3 a::after { content: ""; position: absolute; inset: 0; }
.store-card .store-desc { color: var(--mt-muted); font-size: .92rem; margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-card .store-address { font-size: .88rem; color: var(--mt-muted); margin-top: auto; }
.store-badge { position: absolute; top: .75rem; left: .75rem; background: var(--mt-yellow); color: var(--mt-brown); font-size: .75rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; }
.label-pill { display: inline-block; font-size: .75rem; font-weight: 500; padding: .2rem .6rem; border-radius: 999px; background: var(--mt-teal-100); color: var(--mt-teal-700); margin-bottom: .5rem; }

.filters { background: #fff; border: 1px solid var(--mt-line); border-radius: var(--mt-radius); padding: 1.25rem; }
.results-meta { color: var(--mt-muted); font-size: .95rem; }
.view-toggle .btn { padding: .4rem .9rem; }
.view-toggle .btn.active { background: var(--mt-brown); color: var(--mt-cream); border-color: var(--mt-brown); }

.map { height: 520px; border-radius: var(--mt-radius); border: 1px solid var(--mt-line); overflow: hidden; z-index: 0; }
.map-sm { height: 260px; }
.leaflet-popup-content-wrapper { border-radius: 12px; font-family: var(--bs-body-font-family); }
.leaflet-popup-content a { color: var(--mt-brown); font-weight: 600; }
.mt-marker { background: var(--mt-brown); border: 3px solid var(--mt-cream); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); width: 26px !important; height: 26px !important; box-shadow: 0 2px 6px rgba(0,0,0,.3); }

/* scheda attività */
.store-cover { height: 300px; background: var(--mt-cream-200) center / cover no-repeat; border-radius: 0 0 calc(var(--mt-radius) + 8px) calc(var(--mt-radius) + 8px); }
.store-header { margin-top: -60px; position: relative; }
.store-logo { width: 110px; height: 110px; border-radius: 24px; border: 5px solid #fbf7f1; background: var(--mt-cream) center / cover no-repeat; display: flex; align-items: center; justify-content: center;
	font-size: 2rem; font-weight: 600; color: var(--mt-brown); box-shadow: var(--mt-shadow); flex-shrink: 0; }
.store-header-nocover { margin-top: 0; }
.info-card { background: #fff; border: 1px solid var(--mt-line); border-radius: var(--mt-radius); padding: 1.5rem; }
.info-card + .info-card { margin-top: 1rem; }
.info-card h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .75rem; align-items: flex-start; padding: .55rem 0; border-bottom: 1px dashed var(--mt-line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list i { color: var(--mt-teal); font-size: 1.1rem; }
.contact-list a { color: var(--mt-ink); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--mt-teal-700); text-decoration: underline; }
.hours-table { width: 100%; font-size: .95rem; }
.hours-table td { padding: .35rem 0; border-bottom: 1px dashed var(--mt-line); vertical-align: top; }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table tr.today td { font-weight: 600; color: var(--mt-brown); }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.open-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 500; padding: .25rem .7rem; border-radius: 999px; }
.open-badge.open { background: #e3f1e6; color: var(--mt-green); }
.open-badge.closed { background: #f7e3e1; color: var(--mt-red); }
.open-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.prose { font-size: 1.05rem; line-height: 1.7; }

/* ------------------------------------------------------------ form pagine card */
.form-panel { background: #fff; border: 1px solid var(--mt-line); border-radius: calc(var(--mt-radius) + 4px); padding: 2rem; box-shadow: var(--mt-shadow); }
@media (min-width: 768px) { .form-panel { padding: 2.5rem; } }
.form-section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mt-teal-700); font-weight: 600; margin: 1.5rem 0 .9rem; }
.form-section-title:first-child { margin-top: 0; }
.aside-list { list-style: none; padding: 0; }
.aside-list li { display: flex; gap: .85rem; margin-bottom: 1.1rem; }
.aside-list .ico { width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1px solid var(--mt-line); display: flex; align-items: center; justify-content: center; color: var(--mt-teal-700); flex-shrink: 0; }

.auth-wrap { min-height: calc(100vh - 380px); display: flex; align-items: center; padding: 4rem 0; }

/* ------------------------------------------------------------ area riservata */
.area-wrap { padding: 2.5rem 0 4rem; }
.area-nav { background: #fff; border: 1px solid var(--mt-line); border-radius: var(--mt-radius); padding: .75rem; position: sticky; top: 96px; }
.area-nav .area-user { padding: .75rem .75rem 1rem; border-bottom: 1px solid var(--mt-line); margin-bottom: .5rem; }
.area-nav .avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--mt-teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.area-nav .nav-link { color: var(--mt-ink); border-radius: 10px; padding: .6rem .8rem; display: flex; align-items: center; gap: .7rem; font-weight: 500; }
.area-nav .nav-link i { color: var(--mt-muted); font-size: 1.05rem; }
.area-nav .nav-link:hover { background: var(--mt-cream); color: var(--mt-brown); }
.area-nav .nav-link.active { background: var(--mt-brown); color: var(--mt-cream); }
.area-nav .nav-link.active i { color: var(--mt-cream); }
.area-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1.25rem; scrollbar-width: none; }
.area-tabs .chip { white-space: nowrap; }

.area-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.area-title h1 { font-size: 1.8rem; margin: 0; }

.panel { background: #fff; border: 1px solid var(--mt-line); border-radius: var(--mt-radius); padding: 1.5rem; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.panel-title h2 { font-size: 1.1rem; margin: 0; }

.balance-card { background: var(--mt-brown); color: var(--mt-cream); border-radius: calc(var(--mt-radius) + 4px); padding: 1.75rem; position: relative; overflow: hidden; height: 100%; }
.balance-card::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 240px; height: 240px; border-radius: 50%; background: var(--mt-teal); opacity: .5; }
.balance-card::before { content: ""; position: absolute; right: 90px; bottom: -130px; width: 200px; height: 200px; border-radius: 50%; background: var(--mt-yellow); opacity: .3; }
.balance-card > * { position: relative; z-index: 1; }
.balance-card .label { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.balance-card .amount { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.balance-card .unit { font-size: 1.1rem; font-weight: 400; opacity: .8; margin-left: .35rem; }

.kpi { background: #fff; border: 1px solid var(--mt-line); border-radius: var(--mt-radius); padding: 1.25rem; height: 100%; }
.kpi .kpi-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; font-size: 1.1rem; }
.kpi .kpi-value { font-size: 1.5rem; font-weight: 600; color: var(--mt-brown); font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .kpi-label { font-size: .88rem; color: var(--mt-muted); }
.kpi-in .kpi-icon { background: #e3f1e6; color: var(--mt-green); }
.kpi-out .kpi-icon { background: var(--mt-yellow-100); color: #9a6a12; }
.kpi-shop .kpi-icon { background: var(--mt-teal-100); color: var(--mt-teal-700); }

.tx-list { list-style: none; padding: 0; margin: 0; }
.tx-item { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--mt-line); }
.tx-item:last-child { border-bottom: 0; }
.tx-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem; }
.tx-in .tx-icon { background: #e3f1e6; color: var(--mt-green); }
.tx-out .tx-icon { background: var(--mt-yellow-100); color: #9a6a12; }
.tx-summary .tx-icon { background: var(--mt-cream); color: var(--mt-brown); }
.tx-main { flex-grow: 1; min-width: 0; }
.tx-title { font-weight: 500; color: var(--mt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-meta { font-size: .85rem; color: var(--mt-muted); }
.tx-meta a { color: var(--mt-teal-700); }
.tx-amount { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tx-in .tx-amount { color: var(--mt-green); }
.tx-out .tx-amount { color: var(--mt-ink); }
.tx-summary .tx-amount { color: var(--mt-brown); }
.tx-day { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mt-muted); font-weight: 600; padding: 1.1rem 0 .2rem; }

.chart-bars { display: flex; align-items: flex-end; gap: .9rem; height: 170px; padding-top: .5rem; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; height: 100%; }
.chart-col .bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.chart-col .bar { width: 38%; max-width: 20px; border-radius: 6px 6px 2px 2px; min-height: 2px; }
.chart-col .bar.in { background: var(--mt-teal); }
.chart-col .bar.out { background: var(--mt-yellow); }
.chart-col .m { font-size: .78rem; color: var(--mt-muted); text-transform: capitalize; }
.legend { display: flex; gap: 1rem; font-size: .82rem; color: var(--mt-muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.legend .in::before { background: var(--mt-teal); }
.legend .out::before { background: var(--mt-yellow); }

.table-mt { --bs-table-bg: transparent; margin: 0; }
.table-mt thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mt-muted); font-weight: 600; border-bottom-color: var(--mt-line); }
.table-mt td { vertical-align: middle; border-color: var(--mt-line); padding-top: .9rem; padding-bottom: .9rem; }

.status { display: inline-block; font-size: .78rem; font-weight: 500; padding: .2rem .6rem; border-radius: 999px; }
.status-completed { background: #e3f1e6; color: var(--mt-green); }
.status-pending { background: var(--mt-yellow-100); color: #9a6a12; }
.status-cancelled { background: #f1e7e6; color: var(--mt-muted); text-decoration: line-through; }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--mt-muted); }
.empty-state i { font-size: 2.4rem; color: var(--mt-sage); display: block; margin-bottom: .75rem; }

.dl-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--mt-line); }
.dl-row:last-child { border-bottom: 0; }
.dl-row dt { font-weight: 400; color: var(--mt-muted); }
.dl-row dd { margin: 0; font-weight: 500; text-align: right; }

/* ------------------------------------------------------------ paginazione */
.pagination { --bs-pagination-color: var(--mt-brown); --bs-pagination-border-color: var(--mt-line); --bs-pagination-hover-color: var(--mt-brown);
	--bs-pagination-hover-bg: var(--mt-cream); --bs-pagination-active-bg: var(--mt-brown); --bs-pagination-active-border-color: var(--mt-brown);
	--bs-pagination-focus-box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); gap: .3rem; }
.pagination .page-link { border-radius: 10px !important; min-width: 40px; text-align: center; }

/* ------------------------------------------------------------ FAQ */
.accordion { --bs-accordion-border-color: var(--mt-line); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color);
	--bs-accordion-active-bg: var(--mt-cream); --bs-accordion-active-color: var(--mt-brown); --bs-accordion-border-radius: var(--mt-radius); --bs-accordion-inner-border-radius: calc(var(--mt-radius) - 1px); }
.accordion-button { font-weight: 500; color: var(--mt-brown); padding: 1.1rem 1.25rem; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--mt-brown); color: var(--mt-cream); padding: 4rem 0 1.5rem; margin-top: 4rem; }
.site-footer a { color: var(--mt-cream); text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-title { color: var(--mt-yellow); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(247, 239, 228, .18); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .85rem; opacity: .8; }
body.no-footer-gap .site-footer { margin-top: 0; }

/* ------------------------------------------------------------ alert */
.alert { border-radius: var(--mt-radius-sm); border: 0; }
.alert-info { background: var(--mt-teal-100); color: var(--mt-teal-700); }
.alert-success { background: #e3f1e6; color: #2f6340; }
.alert-warning { background: var(--mt-yellow-100); color: #7d560e; }
.alert-danger { background: #f7e3e1; color: #8c2f28; }

@media (max-width: 991.98px) {
	.section { padding: 3.5rem 0; }
	.band { padding: 2rem; }
	.map { height: 380px; }
	.store-cover { height: 200px; border-radius: 0; }
}
@media (max-width: 575.98px) {
	.container, .container-xxl { padding-left: 16px; padding-right: 16px; }
	.mt-card { padding: 1.1rem 1.2rem; border-radius: 18px; }
	.mt-card .mt-card-number { font-size: 1rem; }
	.form-panel { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ------------------------------------------------------------ app mobile */
.app-band { background: #fff; border: 1px solid var(--mt-line); border-radius: calc(var(--mt-radius) + 8px); padding: 3rem; overflow: hidden; position: relative; }
.app-band::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: var(--mt-teal-100); z-index: 0; }
.app-band > * { position: relative; z-index: 1; }
.app-stores { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .88rem; color: var(--mt-muted); }
.app-stores i { color: var(--mt-brown); }
.app-qr { align-items: center; gap: .9rem; max-width: 230px; font-size: .85rem; color: var(--mt-muted); }
.app-qr img { border-radius: 12px; border: 1px solid var(--mt-line); background: #fff; padding: 4px; }
.phone { width: 250px; border-radius: 38px; background: var(--mt-brown-700); padding: 11px; box-shadow: 0 30px 60px rgba(63, 32, 31, .28); }
.phone-screen { background: var(--mt-cream); border-radius: 29px; padding: 1.2rem 1rem 1.3rem; min-height: 420px; font-size: .85rem; color: var(--mt-ink); }
.phone-balance { background: var(--mt-brown); color: var(--mt-cream); border-radius: 16px; padding: .9rem 1rem; margin-bottom: .8rem; }
.phone-barcode { background: #fff; border-radius: 14px; padding: .6rem .7rem .3rem; margin-bottom: .8rem; text-align: center; }
.phone-barcode svg { width: 100%; height: auto; max-height: 70px; }
.phone-row { display: flex; align-items: center; gap: .6rem; background: #fff; border-radius: 12px; padding: .6rem .75rem; margin-bottom: .45rem; }
.phone-row span { flex-grow: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.area-app { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; padding: .8rem; border-radius: 12px; background: var(--mt-teal-100); color: var(--mt-teal-700); text-decoration: none; font-size: .85rem; line-height: 1.3; }
.area-app i { font-size: 1.5rem; }
.area-app:hover { background: var(--mt-teal); color: #fff; }
@media (max-width: 991.98px) { .app-band { padding: 2rem 1.5rem; } }
.site-footer a.btn { opacity: 1; color: var(--bs-btn-color); text-decoration: none; }
.site-footer a.btn:hover { color: var(--bs-btn-hover-color); }
.app-qr { max-width: 280px; }
.app-qr span { min-width: 140px; }
