/* La Magia di Trilly — catalogo */
:root {
  --lmt-ink: #171512;
  --lmt-gold: #b89552;
  --lmt-cream: #f7f2e9;
  --lmt-paper: #fffdf9;
  --lmt-muted: #756f65;
  --lmt-border: rgba(23, 21, 18, .12);
}
.lmt-catalog { margin: 2rem auto; }
.lmt-catalog-heading { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.lmt-eyebrow { margin: 0 0 .5rem; color: var(--lmt-gold); text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; }
.lmt-catalog-heading h2 { margin: 0 0 .75rem; color: var(--lmt-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
.lmt-catalog-heading > p:last-child { color: var(--lmt-muted); }
.lmt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.lmt-card { overflow: hidden; background: var(--lmt-paper); border: 1px solid var(--lmt-border); border-radius: 16px; box-shadow: 0 8px 30px rgba(30, 24, 15, .045); transition: transform .2s ease, box-shadow .2s ease; }
.lmt-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(30, 24, 15, .09); }
.lmt-card-media { display: block; overflow: hidden; aspect-ratio: 4 / 4.5; background: var(--lmt-cream); }
.lmt-card-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.lmt-card:hover .lmt-card-image { transform: scale(1.025); }
.lmt-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; padding: 1rem; color: var(--lmt-muted); font-family: Georgia, serif; background: var(--lmt-cream); text-align: center; }
.lmt-card-content { padding: 1.1rem 1.1rem 1.25rem; }
.lmt-card-category { margin: 0 0 .45rem; color: var(--lmt-gold); font-size: .75rem; letter-spacing: .04em; }
.lmt-card-content h3 { margin: 0 0 .6rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.25; }
.lmt-card-content h3 a { color: var(--lmt-ink); text-decoration: none; }
.lmt-card-price { margin: 0 0 .25rem; font-weight: 700; color: var(--lmt-ink); }
.lmt-card-status, .lmt-card-excerpt { color: var(--lmt-muted); font-size: .9rem; }
.lmt-card-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; margin-top: 1rem; }
.lmt-details-link { color: var(--lmt-ink); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lmt-whatsapp-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.15rem; border: 0; border-radius: 999px; background: #267449; color: #fff !important; font-weight: 700; line-height: 1.2; text-decoration: none !important; transition: background .2s ease, transform .2s ease; }
.lmt-whatsapp-button:hover { background: #1c5d39; color: #fff !important; transform: translateY(-1px); }
.lmt-whatsapp-small { padding: .65rem .85rem; font-size: .83rem; }
.lmt-single-details { margin-top: 1.5rem; padding: 1.5rem; border: 1px solid var(--lmt-border); border-radius: 16px; background: var(--lmt-cream); }
.lmt-single-price { color: var(--lmt-ink); font-size: 1.5rem; font-weight: 700; }
.lmt-customizable-note { color: var(--lmt-muted); }
.lmt-empty { padding: 2rem; background: var(--lmt-cream); border-radius: 12px; text-align: center; }
.lmt-admin-notice { padding: .75rem 1rem; border-left: 4px solid var(--lmt-gold); background: var(--lmt-cream); }
@media (max-width: 900px) { .lmt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; } }
@media (max-width: 560px) {
  .lmt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .lmt-card { border-radius: 12px; }
  .lmt-card-content { padding: .8rem; }
  .lmt-card-content h3 { font-size: 1rem; }
  .lmt-card-excerpt { display: none; }
  .lmt-whatsapp-small { width: 100%; box-sizing: border-box; text-align: center; font-size: .75rem; padding: .65rem .5rem; }
}

.lmt-category-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:1.2rem; }
.lmt-category-card { overflow:hidden; border:1px solid var(--lmt-border); border-radius:15px; background:var(--lmt-paper); box-shadow:0 8px 24px rgba(30,24,15,.045); }
.lmt-category-media { display:block; aspect-ratio:1/1; overflow:hidden; background:var(--lmt-cream); }
.lmt-category-image { display:block; width:100%; height:100%; object-fit:cover; transition:transform .3s ease; }
.lmt-category-card:hover .lmt-category-image { transform:scale(1.03); }
.lmt-category-content { padding:1rem; }
.lmt-category-content h3 { margin:0 0 .4rem; font-family:Georgia,"Times New Roman",serif; font-size:1.2rem; }
.lmt-category-content h3 a { color:var(--lmt-ink); text-decoration:none; }
.lmt-category-content p { color:var(--lmt-muted); font-size:.9rem; }
@media(max-width:1000px){.lmt-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:600px){.lmt-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.lmt-category-content{padding:.75rem}.lmt-category-content h3{font-size:1rem}}

/* v1.2: portfolio templates, no blog metadata */
.lmt-site-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(28px, 5vw, 64px) 0; }
.lmt-breadcrumb { margin: 0 0 28px; color: var(--lmt-muted); font-size: .9rem; }
.lmt-breadcrumb a { color: inherit; text-decoration: none; }
.lmt-page-hero { margin: 0 auto 44px; max-width: 800px; text-align: center; padding: clamp(28px, 5vw, 56px) 20px; background: var(--lmt-cream); border-radius: 20px; }
.lmt-page-hero h1, .lmt-product-copy h1 { margin: .25rem 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.1; color: var(--lmt-ink); }
.lmt-page-hero p:last-child { color: var(--lmt-muted); }
.lmt-single-page .lmt-product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.lmt-product-gallery { background: var(--lmt-cream); border-radius: 18px; overflow: hidden; }
.lmt-product-main-image { display: block; width: 100%; height: auto; max-height: 720px; object-fit: cover; }
.lmt-product-copy { padding: 12px 0; }
.lmt-product-description > p:first-child { margin-top: 0; }
.lmt-product-description .lmt-single-details { margin-top: 28px; }
.lmt-back-link { margin-top: 24px; font-size: .95rem; }
.lmt-back-link a { color: var(--lmt-muted); }
.lmt-category-section { margin: 42px 0; }
.lmt-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lmt-category-card { overflow: hidden; border: 1px solid var(--lmt-border); border-radius: 15px; background: var(--lmt-paper); }
.lmt-category-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--lmt-cream); }
.lmt-category-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.lmt-category-content { padding: 16px; }
.lmt-category-content h3 { margin: 0 0 8px; font-family: Georgia, serif; }
.lmt-category-content h3 a { text-decoration: none; color: var(--lmt-ink); }
@media(max-width:800px) {
 .lmt-single-page .lmt-product-detail { grid-template-columns: 1fr; }
 .lmt-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Galleria fotografica della singola creazione */
.lmt-product-gallery { min-width: 0; }
.lmt-product-main-image { display:block; width:100%; height:auto; max-height:760px; object-fit:cover; border-radius:18px; }
.lmt-product-thumbnails { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.lmt-product-thumbnail { display:block; width:78px; height:78px; padding:0; overflow:hidden; border:2px solid transparent; border-radius:10px; background:var(--lmt-cream); cursor:pointer; }
.lmt-product-thumbnail:hover, .lmt-product-thumbnail:focus-visible { border-color:var(--lmt-gold); outline:none; }
.lmt-product-thumbnail-image { display:block; width:100%; height:100%; object-fit:cover; }
