/* Santa Caterina – elementi specifici del sito (ricostruiti dallo stile originale) */

/* ---------- Font locali (OFL) ---------- */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(../fonts/bodoni-moda-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url(../fonts/bodoni-moda-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans Avestan'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(../fonts/noto-sans-avestan-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Noto Sans Avestan'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(../fonts/noto-sans-avestan-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --sc-sfondo: #EBEAE4;
  --sc-verde-scuro: #031F1C;
  --sc-verde: #38524F;
  --sc-titoli: #26322E;
  --sc-testo: #5A655F;
  --sc-oro: #C2AE73;
}

/* ---------- Header ---------- */
.tm-header { position: relative; z-index: 980; }
.tm-header .uk-navbar-container { background: var(--sc-sfondo); }
.tm-header-transparent .tm-header { position: absolute; left: 0; right: 0; top: 0; }
.tm-header-transparent .tm-header .uk-navbar-container { background: transparent; }
.tm-header .uk-logo img, .tm-header .uk-logo svg { width: 160px; height: auto; display: block; }
.tm-header .uk-navbar-item, .tm-header .uk-navbar-toggle { min-height: 100px; }
.tm-menu-toggle { gap: 12px; }
.tm-menu-toggle .uk-navbar-toggle-icon svg { width: 20px; }

/* Pannello del menu (dropbar a tutta larghezza sotto l'header) */
.tm-dialog.uk-dropbar { background: #fff; color: var(--sc-verde-scuro); padding: 40px 0 50px; }
.tm-dialog .uk-nav-default > li > a { font-family: 'Bodoni Moda', serif; text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px; color: var(--sc-titoli); padding: 6px 0; }
.tm-dialog .uk-nav-default > li > a:hover, .tm-dialog .uk-nav-default > li.uk-active > a { color: var(--sc-verde); }
.tm-dialog .tm-dialog-follow { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--sc-titoli); }
.tm-dialog .tm-dialog-img { max-width: 260px; margin-left: auto; display: block; }
.tm-dialog .uk-subnav > * > a { color: var(--sc-testo); }
.tm-small { font-family: 'Noto Sans Avestan', sans-serif; font-size: 12px; line-height: 1.6; color: var(--sc-testo); }

/* ---------- Sezioni "sticky cover" (l'immagine resta ferma e la sezione successiva ci scorre sopra) ---------- */
.tm-cover-sticky { position: sticky; top: 0; z-index: 0; }
.tm-cover-sticky ~ :not(.tm-cover-sticky) { position: relative; z-index: 1; }
.tm-bg { background-size: cover; background-position: center; background-repeat: no-repeat; }
.tm-height-80 { min-height: 80vh; }

/* ---------- Hero "Alto Olio" ---------- */
.tm-hero .uk-heading-2xlarge { color: var(--sc-verde); margin-bottom: 20px; }
.tm-hero h2 { text-transform: none; }
.tm-badge { position: relative; display: block; width: 200px; height: 200px; margin: 60px 0 0 auto; }
.tm-badge img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-badge .tm-badge-anello { animation: tm-ruota 50s linear infinite; }
.tm-badge .tm-badge-play { inset: auto; width: 80px; height: auto; left: 50%; top: 50%; transform: translate(-50%, -38%); }
.tm-badge:hover .tm-badge-play { opacity: .7; }
@keyframes tm-ruota { to { transform: rotate(360deg); } }
@media (max-width: 639px) {
  .tm-badge { width: 140px; height: 140px; margin: 0 auto 20px; }
  .tm-badge .tm-badge-play { width: 56px; }
}
@media (prefers-reduced-motion: reduce) { .tm-badge .tm-badge-anello { animation: none; } }

/* Colonna laterale "Follow us" */
.tm-follow { position: absolute; top: 0; right: 30px; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 110px; }
.tm-follow-label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--sc-titoli); margin-bottom: 10px; }
.tm-follow .uk-icon-button { background: transparent; color: var(--sc-titoli); width: 40px; height: 40px; }
.tm-follow .uk-icon-button:hover { color: var(--sc-verde); background: rgba(56, 82, 79, .08); }

/* Lottie (ramo di olivo animato) */
.tm-lottie { width: 100%; pointer-events: none; }
.tm-lottie svg { display: block; }

/* ---------- Card citazione ---------- */
.tm-quote { background: #fff; padding: 20px 24px; box-shadow: 0 5px 15px rgba(0, 0, 0, .08); max-width: 600px; }
.tm-quote blockquote { margin: 0; }
.tm-quote blockquote p { font-size: 17px; line-height: 1.5; }

/* ---------- Immagini posizionate con parallasse ---------- */
.tm-abs-img { position: absolute; z-index: 2; }
.tm-abs-img img { display: block; width: 100%; height: auto; }

/* ---------- Terroir ---------- */
.tm-terroir { position: relative; overflow: hidden; background-color: var(--sc-verde-scuro); }
.tm-terroir .tm-terroir-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; mix-blend-mode: multiply; }
.tm-terroir::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(3, 31, 28, .39); pointer-events: none; }
.tm-terroir > .uk-container { position: relative; z-index: 3; }
.tm-terroir .tm-terroir-foto { position: absolute; right: 3vw; z-index: 2; width: 28vw; max-width: 460px; }
.tm-terroir .tm-terroir-foto img { width: 100%; display: block; }
.tm-terroir .tm-terroir-foto-1 { top: 6vh; }
.tm-terroir .tm-terroir-foto-2 { bottom: -40px; right: 9vw; }
.tm-terroir .uk-dropcap > p:first-of-type::first-letter { color: #fff; font-size: 4.5em; line-height: 1; margin-right: 10px; margin-bottom: -2px; float: left; }

/* ---------- Banda di testo che scorre ---------- */
.tm-marquee { background: var(--sc-verde); color: #fff; overflow: hidden; padding: 16px 0; font-family: 'Bodoni Moda', serif; font-size: 38px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.tm-marquee-inner { display: flex; width: max-content; }
.tm-marquee-inner > span { flex: none; }
.tm-marquee-inner > span + span::before { content: '//'; margin: 0 20px; display: inline-flex; }
@media (max-width: 639px) { .tm-marquee { font-size: 26px; } }

/* ---------- Pannelli fasi di lavorazione ---------- */
.tm-fase { border-bottom: 1px solid var(--sc-verde); padding: 40px 0; margin: 4px 0; }
.tm-fase:first-of-type { border-top: 1px solid var(--sc-verde); }
.tm-fase-img { max-width: 320px; }
.tm-fase-img img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; display: block; border-radius: 50% 50% 46% 54% / 55% 45% 55% 45%; }
.tm-fase h3 { color: var(--sc-verde); font-size: 28px; letter-spacing: 3px; margin-bottom: 20px; }
.tm-oli-lista { font-family: 'Noto Sans Avestan', sans-serif; font-size: 20px; line-height: 1.8; }
.tm-oli-lista p { margin: 0; }
.uk-light .tm-oli-lista a { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Footer ---------- */
.tm-footer .tm-footer-logo { width: 300px; max-width: 70vw; display: block; }
.tm-footer .tm-footer-logo path { fill: currentColor !important; }
.tm-footer .uk-subnav > * > a { color: rgba(255, 255, 255, .7); }
.tm-footer .uk-subnav > * > a:hover { color: #fff; }
.tm-footer .tm-follow-text { color: var(--sc-oro); font-size: 14px; letter-spacing: 1.5px; }
.tm-footer .uk-icon-link { color: rgba(255, 255, 255, .7); }
.tm-footer .uk-icon-link:hover { color: #fff; }
.tm-footer .tm-small { color: rgba(255, 255, 255, .6); }

/* ---------- Pagine normali (articoli, notizie) ---------- */
.tm-main .item-page img { max-width: 100%; height: auto; }
.uk-section-secondary { color: rgba(255,255,255,.75); }

/* Menu nel pannello (modulo mod_menu in posizione "menu") */
.tm-dialog .mod-menu, .tm-dialog ul.nav { list-style: none; margin: 0; padding: 0; }
.tm-dialog .mod-menu > li > a, .tm-dialog .mod-menu > li > span { display: block; padding: 6px 0; font-family: 'Bodoni Moda', serif; text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px; color: var(--sc-titoli); }
.tm-dialog .mod-menu > li > a:hover, .tm-dialog .mod-menu > li.current > a, .tm-dialog .mod-menu > li.active > a { color: var(--sc-verde); }
.tm-footer .tm-footer-logo { filter: brightness(0) invert(1); }

/* Articoli in pagina normale */
.tm-page .item-page, .tm-page .blog { max-width: 900px; margin: 0 auto; }
.tm-page .page-header h1, .tm-page .page-header h2 { font-family: 'Bodoni Moda', serif; }
.tm-builder .com-content-article__body > :first-child { margin-top: 0; }

/* =====================================================================
   Scala tipografica e spaziature fluide (desktop → telefono)
   rem = 15px (html). clamp(min, preferito, max)
   ===================================================================== */
:root {
  --sc-gutter: clamp(20px, 4vw, 40px);
  --sc-sez: clamp(64px, 9vw, 120px);        /* padding verticale sezioni */
  --sc-sez-xl: clamp(80px, 11vw, 150px);
}

/* Contenitori: margini laterali coerenti */
.uk-container { padding-left: var(--sc-gutter); padding-right: var(--sc-gutter); }
.uk-container-expand-left { padding-left: 0; }

/* Sezioni */
.uk-section { padding-top: var(--sc-sez); padding-bottom: var(--sc-sez); }
.uk-section-large { padding-top: var(--sc-sez); padding-bottom: var(--sc-sez); }
.uk-section-xlarge { padding-top: var(--sc-sez-xl); padding-bottom: var(--sc-sez-xl); }

/* Titoli */
.uk-heading-2xlarge { font-size: clamp(3.4rem, 10vw, 8rem); line-height: .95; letter-spacing: .02em; }
.uk-heading-large   { font-size: clamp(2.3rem, 5.2vw, 4.3rem); line-height: 1.02; letter-spacing: .02em; margin-bottom: clamp(20px, 2.4vw, 32px); }
.uk-heading-small   { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.08; letter-spacing: .02em; }
.uk-heading-large br, .uk-heading-2xlarge br { display: inline; }

/* Frasi "manifesto" (Bodoni, non tutto maiuscolo) */
.tm-claim, .tm-statement {
  font-family: 'Bodoni Moda', serif; font-weight: 600; color: var(--sc-titoli);
  letter-spacing: .01em; text-transform: none;
}
.tm-claim { font-size: clamp(20px, 2vw, 28px); line-height: 1.3; font-style: italic; margin-top: 28px; }
.tm-statement { font-size: clamp(18px, 1.55vw, 23px); line-height: 1.45; max-width: 46ch; }
.uk-light .tm-statement, .uk-light .tm-claim { color: #fff; }

/* Testo */
.uk-text-lead { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.7; }
.tm-prose { max-width: 62ch; }
.uk-text-center .tm-prose { margin-left: auto; margin-right: auto; }
@media (max-width: 639px) { .tm-prose.uk-text-center { margin-left: auto; margin-right: auto; } }
.uk-text-lead p { margin: 0 0 1em; }
.uk-text-lead p:last-child { margin-bottom: 0; }

/* Header */
@media (max-width: 959px) {
  .tm-header .uk-navbar-item, .tm-header .uk-navbar-toggle { min-height: 76px; }
  .tm-header .uk-logo img { width: 128px; }
  .tm-dialog.uk-navbar-dropdown { padding: 24px 0 32px; }
  .tm-dialog .mod-menu > li > a { font-size: 16px; padding: 9px 0; }
}

/* Hero */
.tm-hero { padding-top: clamp(110px, 12vw, 170px) !important; }
.tm-hero-img { margin-top: clamp(40px, 6vw, 80px); }
@media (max-width: 639px) {
  .tm-hero .uk-text-lead { font-size: 16px; }
  .tm-badge { width: 120px; height: 120px; margin: 0 auto 8px; }
  .tm-badge .tm-badge-play { width: 48px; }
  .tm-hero-img img { aspect-ratio: 4 / 3; object-fit: cover; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .tm-badge { width: 150px; height: 150px; margin-top: 30px; }
  .tm-badge .tm-badge-play { width: 60px; }
}

/* In alto in Piemonte */
.tm-piemonte { min-height: 0 !important; }
@media (min-width: 960px) { .tm-piemonte { min-height: 90vh !important; } }
.tm-quote { padding: clamp(18px, 2vw, 28px) clamp(20px, 2.4vw, 32px); }
.tm-quote blockquote p { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.55; }

/* Immagini "a tutta larghezza" ferme */
.tm-height-80 { min-height: clamp(320px, 70vh, 820px); }
.tm-height-full { min-height: clamp(360px, 90vh, 1000px); }
@media (max-width: 959px) {
  /* su telefono/tablet niente effetto sticky: scorre normale e l'immagine resta leggibile */
  .tm-cover-sticky { position: relative; }
  .tm-height-80, .tm-height-full { min-height: 56vw; }
}

/* Terroir */
.tm-terroir .tm-statement { margin-top: clamp(28px, 3vw, 44px); }
.tm-terroir .uk-dropcap > p:first-of-type::first-letter { font-size: 3.6em; margin-right: 8px; }
.tm-terroir-foto-mobile { display: none; }
@media (max-width: 1199px) {
  .tm-terroir { min-height: 0 !important; }
  .tm-terroir-foto-mobile { display: block; margin-top: 36px; }
  .tm-terroir-foto-mobile img { width: 100%; height: auto; display: block; }
}

/* Alta passione */
.tm-passione .uk-tile { padding: clamp(36px, 5vw, 80px) var(--sc-gutter); }
.tm-passione .tm-prose { max-width: 58ch; }

/* Banda scorrevole */
.tm-marquee { font-size: clamp(22px, 2.6vw, 38px); padding: clamp(10px, 1.2vw, 16px) 0; }

/* Fasi di lavorazione */
.tm-fase { padding: clamp(28px, 3vw, 44px) 0; }
.tm-fase h3 { font-size: clamp(21px, 2vw, 28px); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.tm-fase .uk-text-lead { font-size: clamp(15px, 1.05vw, 17px); }
@media (max-width: 959px) {
  .tm-fase-img { max-width: 160px; }
  .tm-fase > .uk-grid > .uk-grid-margin { margin-top: 16px; }
  .tm-fase-img { max-width: 120px; }
  .tm-lottie-col { display: none; }
}

/* I nostri alti oli */
.tm-oli-lista { font-family: 'Bodoni Moda', serif; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.6; letter-spacing: .03em; }

/* Footer */
@media (max-width: 959px) {
  .tm-footer { text-align: center; }
  .tm-footer .tm-footer-logo { margin: 0 auto; width: 240px; }
  .tm-footer .uk-subnav { flex-direction: column; align-items: center; gap: 8px; margin-left: 0; }
  .tm-footer .uk-subnav > * { padding-left: 0; }
  .tm-footer .uk-subnav > *::before { display: none !important; }
}
@media (max-width: 639px) {
  .tm-dialog .uk-subnav { flex-direction: column; gap: 6px; margin-left: 0; }
  .tm-dialog .uk-subnav > * { padding-left: 0; }
  .tm-dialog .uk-subnav > *::before { display: none !important; }
}

/* Niente scorrimento orizzontale */
body { overflow-x: clip; }

.tm-fase h3 { margin-top: 0; }
@media (min-width: 1200px) and (max-width: 1599px) {
  .tm-terroir .tm-terroir-foto { width: 26vw; right: 2vw; }
  .tm-terroir .tm-terroir-foto-2 { right: 8vw; }
}
@media (min-width: 1600px) {
  .uk-text-lead { font-size: 19px; }
  .tm-fase .uk-text-lead { font-size: 17.5px; }
}

/* =====================================================================
   NEGOZIO (Phoca Cart, tema UIkit) – catalogo, scheda prodotto, carrello e cassa
   ===================================================================== */
.tm-shop .tm-main > .uk-section { padding-top: clamp(32px, 5vw, 64px); padding-bottom: var(--sc-sez); }

/* Icona carrello nell'header */
.tm-cart-link { position: relative; color: var(--sc-titoli); padding: 0 14px; }
.tm-cart-link:hover { color: var(--sc-verde); }
.tm-cart-count { position: absolute; top: 50%; right: 2px; transform: translateY(-110%); min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--sc-verde); color: #fff; font: 600 11px/18px 'Noto Sans Avestan', sans-serif; text-align: center; box-sizing: border-box; }

/* Titoli */
.tm-shop .ph-header { font-size: clamp(2rem, 4.2vw, 3.2rem); color: var(--sc-titoli); margin: 0 0 clamp(24px, 4vw, 48px); }
.tm-shop .pc-category-view > .ph-header { text-align: center; }
.tm-shop .ph-cb { clear: both; }

/* Pulsanti: verde scuro pieno (il primario del tema è beige, poco leggibile sui fondi chiari) */
.tm-shop .uk-button-primary, .tm-shop .ph-btn.uk-button-primary {
  background: var(--sc-verde-scuro); color: #fff; border: 1px solid var(--sc-verde-scuro);
  font-family: 'Noto Sans Avestan', sans-serif; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  line-height: 46px; padding: 0 26px; transition: background .2s, color .2s;
}
.tm-shop .uk-button-primary:hover, .tm-shop .uk-button-primary:focus { background: var(--sc-verde); border-color: var(--sc-verde); color: #fff; }
.tm-shop .uk-button-small { line-height: 38px; padding: 0 18px; }
.tm-shop .ph-btn svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; fill: currentColor; }
.tm-shop .uk-button-success, .tm-shop .uk-button-danger { background: transparent; border: 1px solid rgba(38, 50, 46, .25); color: var(--sc-titoli); line-height: 38px; padding: 0 12px; }
.tm-shop .uk-button-danger:hover { border-color: #a33; color: #a33; background: transparent; }
.tm-shop .uk-button-success:hover { border-color: var(--sc-verde); color: var(--sc-verde); background: transparent; }
.tm-shop .uk-button-default { border-color: rgba(38, 50, 46, .3); color: var(--sc-titoli); }

/* Campi */
.tm-shop .uk-input, .tm-shop .uk-select, .tm-shop .uk-textarea { background: #fff; border: 1px solid rgba(38, 50, 46, .2); color: var(--sc-titoli); height: 46px; font-family: 'Noto Sans Avestan', sans-serif; font-size: 15px; }
.tm-shop .uk-textarea { height: auto; }
.tm-shop .uk-input:focus, .tm-shop .uk-select:focus, .tm-shop .uk-textarea:focus { border-color: var(--sc-verde); }
.tm-shop .uk-form-label, .tm-shop .uk-form-label label { font-family: 'Noto Sans Avestan', sans-serif; font-size: 13px; color: var(--sc-titoli); }
.tm-shop .star { color: var(--sc-oro); }
.tm-shop .ph-input-quantity { width: 64px; text-align: center; }

/* ---------- Catalogo ---------- */
.tm-shop .ph-items > .uk-grid { margin-left: calc(var(--sc-gutter) * -1) !important; row-gap: clamp(32px, 4vw, 56px); }
.tm-shop .ph-items .row-item { padding-left: var(--sc-gutter); box-sizing: border-box; }
.tm-shop .ph-item-box, .tm-shop .ph-thumbnail { height: 100%; }
.tm-shop .ph-thumbnail { background: transparent; border: 0; padding: 0; text-align: center; display: flex; flex-direction: column; }
.tm-shop .ph-item-content { display: flex; flex-direction: column; height: 100%; }
.tm-shop .ph-category-item-image { background: #F4F3EE; padding: clamp(28px, 4vw, 48px) 20px; margin-bottom: 26px; transition: background .3s; }
.tm-shop .ph-thumbnail:hover .ph-category-item-image { background: #fff; }
.tm-shop .ph-category-item-image .phIBox { display: flex; align-items: center; justify-content: center; height: clamp(240px, 26vw, 360px); }
.tm-shop .ph-category-item-image img { max-height: 100%; width: auto; max-width: 100%; transition: transform .5s ease; }
.tm-shop .ph-thumbnail:hover .ph-category-item-image img { transform: translateY(-6px); }
.tm-shop .ph-category-item-body { display: flex; flex-direction: column; flex: 1; padding: 0 6px; }
.tm-shop .ph-product-header { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: 2px; color: var(--sc-titoli); margin: 0 0 10px; }
.tm-shop .ph-item-desc { font-size: 15px; line-height: 1.6; color: var(--sc-testo); margin: 0 auto 18px; max-width: 36ch; }
.tm-shop .ph-item-desc p { margin: 0; }
.tm-shop .ph-item-action-box { margin-top: auto; }
.tm-shop .ph-category-price-box { display: block; margin-bottom: 18px; }
.tm-shop .ph-category-price-box .ph-price-txt { display: none; }
.tm-shop .ph-category-price-box .ph-price-brutto { float: none; font-family: 'Bodoni Moda', serif; font-size: 22px; font-weight: 600; color: var(--sc-verde); }
.tm-shop .ph-category-action-buttons form { display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; }
.tm-shop .ph-category-action-buttons .ph-pull-left, .tm-shop .ph-category-action-buttons .ph-pull-right { float: none; width: 100%; }
.tm-shop .ph-category-action-buttons .ph-button-add-to-cart-box .uk-button { width: 100%; max-width: 300px; }
/* "Scopri" come link testuale */
.tm-shop .ph-button-view-product-box .uk-button { background: none; border: 0; color: var(--sc-titoli); line-height: 1.4; padding: 2px 0; border-bottom: 1px solid var(--sc-oro); }
.tm-shop .ph-button-view-product-box .uk-button:hover { color: var(--sc-verde); background: none; }
.tm-shop .ph-button-view-product-box .uk-button svg { display: none; }
.tm-shop .ph-pagination-top:empty { display: none; }

/* ---------- Scheda prodotto ---------- */
.tm-shop .pc-item-view > .uk-grid { margin-left: calc(var(--sc-gutter) * -1) !important; align-items: center; }
.tm-shop .pc-item-view > .uk-grid > * { padding-left: var(--sc-gutter); box-sizing: border-box; }
.tm-shop .ph-item-image-full-box { background: #F4F3EE; padding: clamp(28px, 5vw, 64px) 20px; text-align: center; }
.tm-shop .ph-item-image-full-box img { max-height: clamp(320px, 48vw, 580px); width: auto; border: 0; padding: 0; background: none; }
.tm-shop .ph-item-view-data-box { padding-top: 32px; }
.tm-shop .pc-item-view .ph-header { text-align: left; margin-bottom: 14px; }
.tm-shop .ph-item-price-box { display: block; margin-bottom: 22px; }
.tm-shop .ph-item-price-box .ph-price-txt { display: none; }
.tm-shop .ph-item-price-box .ph-price-brutto { float: none; font-family: 'Bodoni Moda', serif; font-size: 28px; font-weight: 600; color: var(--sc-verde); }
.tm-shop .pc-item-view .ph-desc { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.7; color: var(--sc-testo); max-width: 52ch; margin-bottom: 28px; }
.tm-shop .ph-item-id-box { display: none; }
.tm-shop .phItemCartBoxForm.form-inline { display: block; text-align: left; }
.tm-shop .ph-item-view-data-box .ph-item-add-to-cart-box { float: none; display: flex; align-items: flex-end; justify-content: flex-start; gap: 12px; flex-wrap: wrap; }
.tm-shop .ph-item-add-to-cart-box .uk-form-group { margin: 0; }
.tm-shop .ph-form-quantity label { display: block; font: 12px/1 'Noto Sans Avestan', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sc-titoli); margin-bottom: 8px; }
.tm-shop .ph-form-quantity .ph-input-quantity { height: 48px; }
.tm-shop .ph-item-bottom-box { margin-top: clamp(40px, 6vw, 80px); }
.tm-shop .ph-item-bottom-box .uk-tab > * > a { font-family: 'Noto Sans Avestan', sans-serif; font-size: 12px; letter-spacing: 1.5px; color: var(--sc-titoli); }
.tm-shop .ph-item-bottom-box .uk-tab > .uk-active > a { border-color: var(--sc-verde); }
.tm-shop .ph-tab-pane { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.7; color: var(--sc-testo); max-width: 70ch; }
.tm-shop .ph-tab-pane p { margin: 0 0 .6em; }

/* ---------- Carrello e cassa ---------- */
.tm-shop .pc-checkout-view .ph-header { text-align: left; }
.tm-shop .ph-checkout-cart-box { box-sizing: border-box; background: #fff; padding: clamp(18px, 3vw, 36px); margin-bottom: 32px; }
.tm-shop .ph-checkout-cart-box .uk-grid { margin-left: 0 !important; align-items: center; }
.tm-shop .ph-checkout-cart-box .uk-grid > * { padding-left: 0; }
.tm-shop .ph-checkout-cart-row-header { font: 11px/1 'Noto Sans Avestan', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sc-testo); padding-bottom: 12px; }
.tm-shop .ph-hr { border-top: 1px solid rgba(38, 50, 46, .12); margin: 6px 0; }
.tm-shop .ph-checkout-cart-row-item { padding: 10px 0; }
.tm-shop .pc-checkout-view .uk-form-danger, .tm-shop .pc-checkout-view .invalid { border-color: #b4523c !important; }
.tm-shop .ph-img-cart-checkout { max-height: 110px; width: auto; }
.tm-shop .ph-checkout-cart-title a { font-family: 'Bodoni Moda', serif; font-size: 18px; font-weight: 600; letter-spacing: 1px; color: var(--sc-titoli); }
.tm-shop .ph-checkout-cart-quantity .input-group { display: flex; gap: 6px; align-items: center; }
.tm-shop .ph-checkout-cart-quantity .ph-input-quantity { height: 38px; width: 56px; }
.tm-shop .ph-checkout-cart-brutto, .tm-shop .ph-right { text-align: right; }
.tm-shop .ph-checkout-cart-row-item .ph-checkout-cart-brutto { font-family: 'Bodoni Moda', serif; font-size: 17px; color: var(--sc-titoli); }
.tm-shop .ph-cart-subtotal-box, .tm-shop .ph-cart-total-box { padding: 4px 0; font-size: 15px; }
.tm-shop .ph-cart-total-box { font-family: 'Bodoni Moda', serif; font-size: 20px; font-weight: 600; color: var(--sc-verde-scuro); border-top: 1px solid rgba(38, 50, 46, .12); margin-top: 8px; padding-top: 12px; }

/* Passi della cassa */
.tm-shop .pc-checkout-view [class*="ph-checkout-box"], .tm-shop .pc-checkout-view [class*="ph-checkout-box"] * { box-sizing: border-box; }
.tm-shop .pc-checkout-view [class*="ph-checkout-box"] .uk-grid, .tm-shop .pc-checkout-view [class*="ph-checkout-box"] form, .tm-shop .ph-checkout-box-action, .tm-shop .ph-checkout-billing-row, .tm-shop .ph-checkout-shipping-row { background: transparent !important; }
.tm-shop [class*="ph-checkout-box-"]:not(.ph-checkout-box-row):not(.ph-checkout-box-action):not(.ph-checkout-box-header):not(.ph-checkout-box-header-pas) { background: #fff; margin-bottom: 14px; border: 0; }
.tm-shop .ph-checkout-box-row { margin: 0 !important; }
.tm-shop .ph-checkout-box-row > * { padding: 0 !important; }
.tm-shop .ph-checkout-box-header, .tm-shop .ph-checkout-box-header-pas { background: transparent; border: 0; padding: 20px clamp(18px, 3vw, 36px) !important; display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 14px; }
.tm-shop .ph-checkout-box-header h3, .tm-shop .ph-checkout-box-header-pas h3 { margin: 0; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: 2px; color: var(--sc-titoli); flex: 1; }
.tm-shop .ph-checkout-box-header-pas h3 { color: rgba(38, 50, 46, .45); }
.tm-shop .ph-checkout-icon-spec-box { float: none; }
.tm-shop [class*="ph-checkout-icon-spec-"] { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font: 600 13px/1 'Noto Sans Avestan', sans-serif; background: transparent; border: 1px solid rgba(38, 50, 46, .3); color: rgba(38, 50, 46, .6); }
.tm-shop .ph-checkout-icon-spec-finished { background: var(--sc-verde); border-color: var(--sc-verde); color: #fff; }
.tm-shop .ph-checkout-icon-spec-pending { border-color: var(--sc-verde-scuro); color: var(--sc-verde-scuro); }
.tm-shop .ph-checkout-box-action { padding: 0 clamp(18px, 3vw, 36px) clamp(18px, 3vw, 32px); margin-left: 0 !important; }
.tm-shop .ph-checkout-box-action > * { padding-left: 0; }
.tm-shop .ph-checkout-box-status-finished .ph-checkout-box-action { color: var(--sc-testo); font-size: 15px; }
.tm-shop .ph-checkout-box-action .uk-form-group { margin: 0 0 12px !important; }
.tm-shop .ph-checkout-box-action .uk-form-group .uk-input, .tm-shop .ph-checkout-box-action .uk-form-group .uk-select { width: 100%; max-width: none; }
.tm-shop .ph-checkout-box-login.ph-checkout-box-status-finished .ph-checkout-box-action { display: none; }
.tm-shop .ph-checkout-box-action .uk-form-group > * { padding-left: 0; }
.tm-shop .ph-checkout-billing-row, .tm-shop .ph-checkout-shipping-row { padding-right: clamp(0px, 2vw, 32px) !important; }
.tm-shop .ph-box-header { font: 11px/1 'Noto Sans Avestan', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sc-verde); margin: 4px 0 18px; }
.tm-shop .ph-pull-right { float: right; }
.tm-shop .ph-checkout-check-box { float: none; margin: 6px 0 14px; font-size: 14px; }
.tm-shop .ph-checkout-address-save, .tm-shop .ph-checkout-shipping-save, .tm-shop .ph-checkout-payment-save { float: none; text-align: right; }
.tm-shop .ph-checkout-shipping-cost-box, .tm-shop .ph-checkout-payment-cost-box { font-size: 15px; }
.tm-shop .ph-checkout-box-action label { font-size: 15px; color: var(--sc-titoli); }
.tm-shop .ph-checkout-box-action .uk-radio, .tm-shop .ph-checkout-box-action .uk-checkbox { margin-right: 8px; }
.tm-shop .ph-checkout-box-action .ph-checkout-shipping-desc, .tm-shop .ph-checkout-box-action .ph-checkout-payment-desc { color: var(--sc-testo); font-size: 14px; }
.tm-shop .ph-checkout-confirm-box, .tm-shop .ph-checkout-box-confirm { background: #fff; padding: clamp(18px, 3vw, 36px); }

/* Indirizzo di spedizione nascosto finché coincide con quello di fatturazione */
.tm-shop #phCheckoutAddress:has(#phCheckoutBillingSameAsShipping:checked) #phShippingAddress { display: none; }
.tm-shop .ph-checkout-check-box label { display: block; position: relative; padding-left: 30px; }
.tm-shop .ph-checkout-check-box .uk-checkbox { position: absolute; left: 0; top: 3px; }

/* Messaggi */
.tm-shop .uk-alert, .tm-shop joomla-alert { font-family: 'Noto Sans Avestan', sans-serif; font-size: 14px; }

/* Firma del componente, discreta */
.tm-shop .pc-view ~ div[style*="text-align:right"], .tm-shop .uk-container > div[style*="text-align:right"] { font: 11px/1.4 'Noto Sans Avestan', sans-serif; color: rgba(38, 50, 46, .45); margin-top: 24px; }
.tm-shop .uk-container > div[style*="text-align:right"] a { color: inherit; }

@media (max-width: 959px) {
  .tm-shop .ph-item-view-data-box { padding-top: 24px; }
  .tm-shop .ph-checkout-cart-row-header { display: none; }
  .tm-shop .ph-checkout-cart-row-item { display: grid !important; grid-template-columns: 80px 1fr; grid-template-areas: "img title" "img qty" "img price"; column-gap: 16px; row-gap: 6px; }
  .tm-shop .ph-checkout-cart-row-item > * { width: auto !important; text-align: left !important; }
  .tm-shop .ph-checkout-cart-row-item .ph-checkout-cart-image { grid-area: img; }
  .tm-shop .ph-checkout-cart-row-item .ph-checkout-cart-title { grid-area: title; }
  .tm-shop .ph-checkout-cart-row-item .ph-checkout-cart-quantity { grid-area: qty; }
  .tm-shop .ph-checkout-cart-row-item .ph-checkout-cart-brutto { grid-area: price; }
  .tm-shop .ph-img-cart-checkout { max-height: 96px; }
  .tm-shop .ph-cart-subtotal-box > :first-child, .tm-shop .ph-cart-total-box > :first-child { display: none; }
  .tm-shop .ph-cart-subtotal-box > *, .tm-shop .ph-cart-total-box > * { width: 50% !important; }
  .tm-cart-link { padding: 0 10px; }
}

/* Link legali nel footer e pagine legali */
.tm-footer .tm-legal-links > * > a { font-family: 'Noto Sans Avestan', sans-serif; font-size: 12px; letter-spacing: .5px; text-transform: none; color: rgba(255, 255, 255, .7); }
.tm-footer .tm-legal-links > * > a:hover { color: var(--sc-oro); }
.tm-legal h2 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); letter-spacing: 2px; margin: 2em 0 .6em; color: var(--sc-titoli); }
.tm-legal p, .tm-legal li { font-size: 16px; line-height: 1.7; color: var(--sc-testo); }
.tm-legal .uk-text-lead { font-size: clamp(16px, 1.15vw, 18px); }
@media (max-width: 959px) { .tm-footer .tm-legal-links { justify-content: center; } }
.tm-shop .ph-checkout-confirm-box-row { box-sizing: border-box; background: #fff; padding: clamp(18px, 3vw, 36px); margin-top: 14px; }
.tm-shop .ph-checkout-confirm-box-row .ph-checkout-box-row > * { padding: 0 !important; }
.tm-shop .ph-checkout-checkbox-confirm { margin: 10px 0; }
.tm-shop .ph-checkout-checkbox-confirm label { display: block; position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; color: var(--sc-titoli); }
.tm-shop .ph-checkout-checkbox-confirm label p { margin: 0; display: inline; }
.tm-shop .ph-checkout-checkbox-confirm .uk-checkbox { position: absolute; left: 0; top: 3px; margin: 0; }
.tm-shop .ph-checkout-confirm { float: none; text-align: right; margin-top: 18px; }
@media (max-width: 639px) { .tm-shop .ph-checkout-confirm .uk-button { width: 100%; } }

/* Sezione "Un'azienda che guarda in alto": su tablet/mobile la colonna dell'animazione sparisce, serve il margine sinistro */
@media (max-width: 959px) {
  .uk-container-expand-left { padding-left: var(--sc-gutter) !important; }
}

/* =====================================================================
   PANNELLO MENU (rivisto): voci grandi in Bodoni numerate, riquadro prodotto, piede con contatti
   ===================================================================== */
.uk-navbar-dropbar { background: #fff; box-shadow: 0 40px 70px -30px rgba(3, 31, 28, .25); }
.tm-dialog.uk-navbar-dropdown { background: #fff; padding: clamp(36px, 5vw, 72px) 0 0; box-shadow: none; }
.tm-dialog-nav .mod-menu { counter-reset: tmvoce; }
.tm-dialog .tm-dialog-nav .mod-menu > li { counter-increment: tmvoce; border-bottom: 1px solid rgba(38, 50, 46, .12); }
.tm-dialog .tm-dialog-nav .mod-menu > li:first-child { border-top: 1px solid rgba(38, 50, 46, .12); }
.tm-dialog .tm-dialog-nav .mod-menu > li > a,
.tm-dialog .tm-dialog-nav .mod-menu > li > span {
  display: flex; align-items: baseline; gap: clamp(14px, 2vw, 28px);
  padding: clamp(14px, 1.6vw, 22px) 0; font-family: 'Bodoni Moda', serif; font-weight: 600;
  font-size: clamp(24px, 2.9vw, 42px); line-height: 1.1; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sc-titoli); transition: color .25s, padding-left .35s ease;
}
.tm-dialog .tm-dialog-nav .mod-menu > li > a::before,
.tm-dialog .tm-dialog-nav .mod-menu > li > span::before {
  content: counter(tmvoce, decimal-leading-zero); font: 400 12px/1 'Noto Sans Avestan', sans-serif; letter-spacing: 1.5px; color: var(--sc-oro); min-width: 22px;
}
.tm-dialog .tm-dialog-nav .mod-menu > li > a:hover { color: var(--sc-verde); padding-left: 10px; text-decoration: none; }
.tm-dialog .tm-dialog-nav .mod-menu > li.current > a, .tm-dialog .tm-dialog-nav .mod-menu > li.active > a { color: var(--sc-verde); }
.tm-dialog .tm-dialog-nav .mod-menu > li.current > a::after, .tm-dialog .tm-dialog-nav .mod-menu > li.active > a::after { content: ""; width: 28px; height: 1px; background: var(--sc-oro); align-self: center; }
.tm-dialog-visual { display: block; background: #F4F3EE; padding: clamp(24px, 3vw, 40px) 24px 22px; text-align: center; color: var(--sc-titoli); transition: background .3s; }
.tm-dialog-visual:hover { background: #EBEAE4; color: var(--sc-verde); text-decoration: none; }
.tm-dialog-visual-img { display: flex; align-items: center; justify-content: center; height: clamp(220px, 24vw, 320px); }
.tm-dialog-visual-img img { max-height: 100%; width: auto; transition: transform .5s ease; }
.tm-dialog-visual:hover .tm-dialog-visual-img img { transform: translateY(-6px); }
.tm-dialog-visual-text { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font: 12px/1 'Noto Sans Avestan', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 1px solid var(--sc-oro); padding-bottom: 4px; }
.tm-dialog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; margin-top: clamp(32px, 4vw, 56px); padding: 22px 0 26px; border-top: 1px solid rgba(38, 50, 46, .12); }
.tm-dialog-social { display: flex; align-items: center; gap: 14px; }
.tm-dialog .tm-dialog-follow { font-family: 'Bodoni Moda', serif; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sc-titoli); }
.tm-dialog .uk-icon-link { color: var(--sc-titoli); }
.tm-dialog .uk-icon-link:hover { color: var(--sc-verde); }
.tm-dialog-foot .uk-subnav > * > a { font-family: 'Noto Sans Avestan', sans-serif; font-size: 12px; letter-spacing: 1px; color: var(--sc-testo); }
.tm-dialog-foot .uk-subnav > * > a:hover { color: var(--sc-verde); }
/* Pagina leggermente attenuata mentre il menu è aperto */
.tm-main, .tm-footer { transition: opacity .3s ease; }
body:has(.tm-dialog.uk-open) .tm-main, body:has(.tm-dialog.uk-open) .tm-footer { opacity: .35; }
@media (max-width: 959px) {
  .tm-dialog.uk-navbar-dropdown { padding-top: 20px; }
  .tm-dialog .tm-dialog-nav .mod-menu > li > a { font-size: 22px; padding: 14px 0; }
  .tm-dialog-foot { flex-direction: column; align-items: flex-start; }
  .tm-dialog-foot .uk-subnav { flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; gap: 6px; margin-left: 0; }
  .tm-dialog-foot .uk-subnav > * { padding-left: 0; }
  .tm-dialog-foot .uk-subnav > *::before { display: none !important; }
}

/* =====================================================================
   NEGOZIO 2: badge carrello aggiornato via ajax, finestra "aggiunto", cassa a due colonne
   ===================================================================== */
.tm-cart-count:empty { display: none; }
.tm-cart-count.tm-bump { animation: tmBump .5s ease; }
@keyframes tmBump { 0% { transform: translateY(-110%) scale(1); } 40% { transform: translateY(-110%) scale(1.45); } 100% { transform: translateY(-110%) scale(1); } }

/* Finestra prodotto aggiunto */
.tm-cart-modal { background: rgba(3, 31, 28, .45); }
.tm-cart-modal .uk-modal-dialog { width: 440px; max-width: calc(100% - 32px); padding: 34px 32px 26px; background: #fff; box-shadow: 0 30px 80px rgba(3, 31, 28, .25); }
.tm-cart-modal .uk-modal-close-default { top: 14px; right: 14px; color: var(--sc-titoli); }
.tm-cart-modal-label { display: flex; align-items: center; gap: 8px; margin: 0 0 20px; font: 12px/1.2 'Noto Sans Avestan', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sc-verde); }
.tm-cart-modal-label [uk-icon] { width: 24px; height: 24px; border-radius: 50%; background: var(--sc-verde); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.tm-cart-modal-product { display: flex; align-items: center; gap: 18px; padding: 16px; background: #F4F3EE; }
.tm-cart-modal-img { flex: 0 0 64px; height: 96px; display: flex; align-items: center; justify-content: center; }
.tm-cart-modal-img img { max-height: 100%; width: auto; }
.tm-cart-modal-title { font-family: 'Bodoni Moda', serif; font-weight: 600; font-size: 20px; letter-spacing: 1px; color: var(--sc-titoli); line-height: 1.25; }
.tm-cart-modal-qty { margin-top: 4px; font: 13px/1.4 'Noto Sans Avestan', sans-serif; color: var(--sc-testo); }
.tm-cart-modal-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 2px; border-bottom: 1px solid rgba(38, 50, 46, .12); font: 14px/1.4 'Noto Sans Avestan', sans-serif; color: var(--sc-testo); }
.tm-cart-modal-summary strong { font-family: 'Bodoni Moda', serif; font-size: 20px; color: var(--sc-verde-scuro); }
.tm-cart-modal-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 22px; }
.tm-cart-modal .uk-button-primary { background: var(--sc-verde-scuro); color: #fff; border: 0; font: 12px/50px 'Noto Sans Avestan', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.tm-cart-modal .uk-button-primary:hover { background: var(--sc-verde); }
.tm-cart-modal-continue { background: none; border: 0; padding: 2px 0; cursor: pointer; font: 12px/1.4 'Noto Sans Avestan', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sc-titoli); border-bottom: 1px solid var(--sc-oro); }
.tm-cart-modal-continue:hover { color: var(--sc-verde); text-decoration: none; }

/* Cassa: riepilogo ordine a destra, passaggi a sinistra (schermi larghi) */
@media (min-width: 1200px) {
  .tm-shop .pc-checkout-view { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 40px; align-items: start; }
  .tm-shop .pc-checkout-view > * { grid-column: 1; }
  .tm-shop .pc-checkout-view > .ph-header { grid-column: 1 / -1; }
  .tm-shop .pc-checkout-view > .phCheckoutCartBox { grid-column: 2; grid-row: 2 / span 20; position: sticky; top: 120px; }
  .tm-shop .pc-checkout-view > #phContainer, .tm-shop .pc-checkout-view > div:empty { display: none; }
}
/* Riepilogo compatto: usato su mobile e nella colonna destra */
@media (max-width: 959px), (min-width: 1200px) {
  .tm-shop .ph-checkout-cart-row-header { display: none; }
  .tm-shop .ph-checkout-cart-row-item { display: grid !important; grid-template-columns: 72px 1fr; grid-template-areas: "img title" "img qty" "img price"; column-gap: 16px; row-gap: 6px; }
  .tm-shop .ph-checkout-cart-row-item > * { width: auto !important; text-align: left !important; }
  .tm-shop .ph-checkout-cart-row-item .ph-checkout-cart-image { grid-area: img; }
  .tm-shop .ph-checkout-cart-row-item .ph-checkout-cart-title { grid-area: title; }
  .tm-shop .ph-checkout-cart-row-item .ph-checkout-cart-quantity { grid-area: qty; }
  .tm-shop .ph-checkout-cart-row-item .ph-checkout-cart-brutto { grid-area: price; }
  .tm-shop .ph-img-cart-checkout { max-height: 90px; }
  .tm-shop .ph-checkout-cart-row-subtotal > :first-child { display: none; }
  .tm-shop .ph-checkout-cart-row-subtotal > * { width: 50% !important; }
  .tm-shop .ph-checkout-cart-row-subtotal > :last-child { text-align: right; }
}
.tm-shop .ph-checkout-cart-box::before { content: "Il tuo ordine"; display: block; font: 12px/1 'Noto Sans Avestan', sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sc-verde); margin: 0 0 14px; }
.tm-shop .ph-checkout-cart-title a { font-size: 17px; }

.tm-shop .ph-checkout-cart-box > .ph-checkout-cart-row-hr:first-of-type .ph-hr { display: none; }
.tm-shop .ph-checkout-address-edit .uk-button, .tm-shop .ph-checkout-shipping-edit .uk-button, .tm-shop .ph-checkout-payment-edit .uk-button { white-space: nowrap; }
.tm-shop .ph-checkout-address-edit, .tm-shop .ph-checkout-shipping-edit, .tm-shop .ph-checkout-payment-edit { float: none; text-align: right; }
/* Messaggi di Joomla (es. "Dati salvati") */
#system-message-container joomla-alert { display: block; margin: 0 0 24px; padding: 14px 44px 14px 18px; border: 0; border-left: 3px solid var(--sc-verde); background: #fff; color: var(--sc-titoli); font: 14px/1.5 'Noto Sans Avestan', sans-serif; box-shadow: none; position: relative; }
#system-message-container joomla-alert[type="danger"], #system-message-container joomla-alert[type="error"] { border-left-color: #b4523c; }
#system-message-container joomla-alert[type="warning"] { border-left-color: var(--sc-oro); }
#system-message-container .alert-heading { display: none; }
#system-message-container joomla-alert .joomla-alert--close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 20px; color: var(--sc-testo); cursor: pointer; }

/* Selettore quantità - / + */
.tm-qty { display: inline-flex; align-items: stretch; border: 1px solid rgba(38, 50, 46, .25); background: #fff; height: 42px; }
.tm-qty .tm-qty-btn { width: 38px; border: 0; background: transparent; color: var(--sc-titoli); font: 400 20px/1 'Noto Sans Avestan', sans-serif; cursor: pointer; padding: 0; transition: background .2s, color .2s; }
.tm-qty .tm-qty-btn:hover:not(:disabled) { background: #F4F3EE; color: var(--sc-verde); }
.tm-qty .tm-qty-btn:disabled { color: rgba(38, 50, 46, .25); cursor: default; }
.tm-shop .tm-qty .ph-input-quantity { border: 0 !important; height: 100% !important; width: 44px !important; padding: 0; text-align: center; background: transparent; font: 600 15px/1 'Noto Sans Avestan', sans-serif; -moz-appearance: textfield; }
.tm-shop .tm-qty .ph-input-quantity:focus { outline: none; background: #FAFAF7; }
.tm-shop .ph-item-add-to-cart-box .tm-qty { height: 50px; }
.tm-shop .ph-checkout-cart-quantity .input-group { display: flex; align-items: center; gap: 10px; }
.tm-shop .ph-checkout-cart-quantity .uk-button-danger { border: 0; padding: 0 6px; line-height: 42px; color: var(--sc-testo); background: none; }
.tm-shop .ph-checkout-cart-quantity .uk-button-danger:hover { color: #b4523c; }
/* Aggiornamento in corso */
#ph-pc-checkout-box.tm-loading { opacity: .55; pointer-events: none; transition: opacity .2s; }

/* Carrello vuoto: solo il messaggio e il ritorno al negozio */
.tm-shop .pc-checkout-view:has(.ph-cart-empty) { display: block; }
.tm-shop .pc-checkout-view:has(.ph-cart-empty) > :not(.ph-header):not(.phCheckoutCartBox) { display: none !important; }
.tm-shop .pc-checkout-view:has(.ph-cart-empty) > .phCheckoutCartBox { position: static; max-width: 560px; }
.tm-shop .pc-checkout-view:has(.ph-cart-empty) .ph-checkout-cart-box::before { display: none; }
.tm-shop .ph-cart-empty { padding: 12px 0 6px; font-family: 'Bodoni Moda', serif; font-size: 22px; letter-spacing: 1px; color: var(--sc-titoli); }
.tm-shop .tm-cart-empty-back { margin-top: 22px; }
