/* =====================================================================
   Tema BYSIMON per i siti tematici — 17/11/2026
   Stesso linguaggio di bysimon.it: Gilda Display (titoli e menu),
   Raleway (testo), Jost leggero (bottoni ed etichette), bianco/avorio,
   inchiostro #1f1f1f, oro BYSIMON. Ogni sito cambia solo --accento.
   ===================================================================== */

/* ---------- caratteri ospitati nel sito (18/11/2026, licenza SIL Open Font License): nessuna chiamata a Google ---------- */
/* latin-ext */
@font-face {
  font-family: 'Gilda Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/gilda-display-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Gilda Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/gilda-display-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/jost-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/jost-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jost-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jost-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/raleway-latin-ext-italic.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/raleway-latin-italic.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;
}
/* latin-ext */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/raleway-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/raleway-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/raleway-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/raleway-latin.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;
}
/* latin-ext */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/raleway-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/raleway-latin.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 {
  --inchiostro: #1f1f1f;
  --testo: #2b2a28;
  --muto: #6b6560;
  --carta: #ffffff;
  --avorio: #f8f2ea;
  --grigio-foto: #f3f2f0;
  --linea: #e7e1d9;
  --oro: #9b814f;
  --accento: #9b814f;
  --accento-testo: #ffffff;
  --ombra: 0 1px 2px rgba(31, 31, 31, .06), 0 8px 24px rgba(31, 31, 31, .06);

  --f-titoli: "Gilda Display", "Times New Roman", Georgia, serif;
  --f-testo: Raleway, "Helvetica Neue", Arial, sans-serif;
  --f-bottoni: Jost, "Helvetica Neue", Arial, sans-serif;

  --pagina: 1400px;
  --margine: clamp(16px, 4vw, 40px);
  --spazio-sez: clamp(56px, 8vw, 104px);
  --testata-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--testata-h) + 12px); }
body {
  margin: 0;
  background: var(--carta);
  color: var(--testo);
  font-family: var(--f-testo);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-titoli); font-weight: 400; color: var(--inchiostro); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; color: var(--inchiostro); }
hr { border: 0; border-top: 1px solid var(--linea); margin: 2em 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--inchiostro); outline-offset: 3px; }
.tm-sr, .novisible {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tm-salta {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--inchiostro); color: #fff; padding: 10px 16px; text-decoration: none;
  font-family: var(--f-bottoni); letter-spacing: .08em; text-transform: uppercase; font-size: 13px;
}
.tm-salta:focus { top: 12px; }
.tm-contenitore { width: 100%; max-width: var(--pagina); margin-inline: auto; padding-inline: var(--margine); }

/* ---------- bottoni ed etichette ---------- */
.tm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 30px;
  font-family: var(--f-bottoni); font-weight: 300; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid var(--inchiostro);
  background: var(--inchiostro); color: #fff;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.tm-btn:hover { background: #fff; color: var(--inchiostro); }
.tm-btn--chiaro { background: #fff; color: var(--inchiostro); border-color: #fff; }
.tm-btn--chiaro:hover { background: transparent; color: #fff; }
.tm-btn--vuoto { background: transparent; color: var(--inchiostro); }
.tm-btn--vuoto:hover { background: var(--inchiostro); color: #fff; }
.tm-btn--piccolo { min-height: 40px; padding: 8px 18px; font-size: 12.5px; }
.tm-occhiello {
  display: block; margin: 0 0 12px;
  font-family: var(--f-bottoni); font-weight: 400; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accento);
}
.tm-link {
  font-family: var(--f-bottoni); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.tm-link:hover { color: var(--accento); }
.tm-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--avorio); color: var(--inchiostro);
  font-family: var(--f-bottoni); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 400;
  padding: 5px 11px; border-radius: 999px;
}

/* ---------- barra annuncio ---------- */
.tm-annuncio {
  background: var(--avorio); color: var(--testo);
  font-size: 13.5px; text-align: center; padding: 9px var(--margine); line-height: 1.4;
}
.tm-annuncio a { text-decoration: underline; }
.tm-annuncio svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 8px; }

/* ---------- testata ---------- */
.tm-testata {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.tm-testata.is-scorsa { border-bottom-color: var(--linea); box-shadow: 0 6px 20px rgba(31, 31, 31, .05); }
.tm-testata__riga {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: var(--testata-h); gap: 12px;
}
.tm-testata__sx, .tm-testata__dx { display: flex; align-items: center; gap: 6px; }
.tm-testata__dx { justify-content: flex-end; }
.tm-logo { display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--inchiostro); }
.tm-logo img { height: 46px; width: auto; max-width: 220px; object-fit: contain; }
.tm-logo__parola { font-family: var(--f-titoli); font-size: 26px; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; padding-left: .26em; }
.tm-icona {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--inchiostro);
  cursor: pointer; text-decoration: none; transition: background-color .2s ease;
}
.tm-icona:hover { background: var(--avorio); }
.tm-icona svg { width: 22px; height: 22px; }
.tm-shop-testo { font-family: var(--f-bottoni); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 400; text-decoration: none; padding: 8px 4px; display: none; }
.tm-shop-testo:hover { color: var(--accento); }
.tm-menu { display: none; }
.tm-menu ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 34px; }
.tm-menu a {
  display: inline-block; padding: 10px 0 14px; text-decoration: none;
  font-family: var(--f-titoli); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--inchiostro);
  background: linear-gradient(currentColor, currentColor) no-repeat left calc(100% - 8px) / 0 1px;
  transition: background-size .3s ease;
}
.tm-menu a:hover, .tm-menu a[aria-current="page"] { background-size: 100% 1px; }
.tm-menu .tm-menu__shop a { color: var(--accento); }

/* cassetto mobile */
.tm-cassetto { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.tm-cassetto.is-aperto { visibility: visible; }
.tm-cassetto__velo { position: absolute; inset: 0; background: rgba(31, 31, 31, .45); opacity: 0; transition: opacity .3s ease; }
.tm-cassetto.is-aperto .tm-cassetto__velo { opacity: 1; }
.tm-cassetto__pannello {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 380px);
  background: var(--carta); display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  overflow-y: auto; overscroll-behavior: contain;
}
.tm-cassetto.is-aperto .tm-cassetto__pannello { transform: none; }
.tm-cassetto__testa { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--linea); }
.tm-cassetto__testa .tm-logo img { height: 36px; }
.tm-cassetto nav ul { list-style: none; margin: 0; padding: 8px 0; }
.tm-cassetto nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; text-decoration: none; border-bottom: 1px solid var(--linea);
  font-family: var(--f-titoli); font-size: 19px; letter-spacing: .05em; text-transform: uppercase; color: var(--inchiostro);
}
.tm-cassetto nav a::after { content: "›"; font-family: var(--f-testo); color: var(--muto); font-size: 20px; }
.tm-cassetto__piede { margin-top: auto; padding: 24px; background: var(--avorio); font-size: 14px; }
.tm-cassetto__piede .tm-btn { width: 100%; margin-bottom: 16px; }
.tm-cassetto__piede .tm-social { justify-content: flex-start; }
body.tm-bloccato { overflow: hidden; }

/* ---------- hero home ---------- */
.tm-hero { position: relative; background: var(--avorio); }
.tm-hero__foto { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: 78vh; background: var(--grigio-foto); }
.tm-hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fuoco, 50%) 30%; }
.tm-hero__testo { padding: 28px var(--margine) 36px; text-align: center; }
.tm-hero__titolo { font-family: var(--f-titoli); font-size: clamp(30px, 7.4vw, 66px); line-height: 1.04; text-transform: uppercase; letter-spacing: .02em; color: var(--inchiostro); margin: 0 0 22px; text-wrap: balance; }
.tm-hero__sotto { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muto); margin-bottom: 22px; }

/* ---------- sezioni ---------- */
.tm-sez { padding-block: var(--spazio-sez); }
.tm-sez--avorio { background: var(--avorio); }
.tm-sez__testa { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); padding-inline: var(--margine); }
.tm-sez__testa h2 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 10px; }
.tm-sez__testa p { color: var(--muto); margin: 0; }
.tm-sez__piede { text-align: center; margin-top: clamp(28px, 4vw, 44px); }

/* intro / payoff */
.tm-intro { max-width: 820px; margin: 0 auto; padding: var(--spazio-sez) var(--margine) 0; text-align: center; }
.tm-intro h2 { font-size: clamp(28px, 4vw, 40px); }
.tm-intro, .tm-intro p { font-size: 17px; line-height: 1.8; color: var(--testo); }
.tm-intro p:last-child { margin-bottom: 0; }
.tm-filetto { width: 56px; height: 1px; background: var(--accento); margin: 22px auto; border: 0; }

/* ---------- griglia collezioni ---------- */
.tm-griglia-coll {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(14px, 2vw, 28px);
}
.tm-griglia-coll > * { flex: 0 0 calc((100% - 1 * clamp(14px, 2vw, 28px)) / 2); max-width: calc((100% - 1 * clamp(14px, 2vw, 28px)) / 2); }
.tm-coll__foto, .tm-art__foto, .tm-art__corpo, .tm-prod__foto { display: block; }
.tm-coll { position: relative; display: block; text-decoration: none; color: var(--inchiostro); }
.tm-coll__foto { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--grigio-foto); }
.tm-coll__foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.tm-coll:hover .tm-coll__foto img { transform: scale(1.045); }
.tm-coll__nome { display: block; margin-top: 14px; font-family: var(--f-titoli); font-size: clamp(16px, 1.6vw, 21px); text-transform: uppercase; letter-spacing: .06em; text-align: center; line-height: 1.25; }
.tm-coll__cta { display: block; text-align: center; margin-top: 4px; font-family: var(--f-bottoni); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muto); }
.tm-coll:hover .tm-coll__cta { color: var(--accento); }

/* fila scorrevole (altre collezioni) */
.tm-fila { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--margine); padding-bottom: 8px; scrollbar-width: thin; }
.tm-fila > * { scroll-snap-align: start; }

/* ---------- negozio (Shopify Buy Button) ---------- */
.tm-shop-box { min-height: 420px; }
.tm-shop-box.is-pronto { min-height: 0; }
.tm-shop-attesa { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tm-shop-attesa span { aspect-ratio: 3 / 4; background: linear-gradient(100deg, var(--grigio-foto) 40%, #fbfaf8 50%, var(--grigio-foto) 60%) 0 0 / 300% 100%; animation: tm-luce 1.6s linear infinite; }
@keyframes tm-luce { to { background-position: -150% 0; } }

/* ---------- racconto (immagine + testo) ---------- */
.tm-racconto { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.tm-racconto + .tm-racconto { margin-top: var(--spazio-sez); }
.tm-racconto__foto { overflow: hidden; background: var(--grigio-foto); }
.tm-racconto__foto img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.tm-racconto__testo { max-width: 620px; }
.tm-racconto__testo h2, .tm-racconto__testo h3 { font-size: clamp(26px, 3.4vw, 36px); }
.tm-racconto__testo h4 { font-size: 21px; margin-top: 1.4em; }
.tm-racconto__testo ul { padding-left: 1.1em; }
.tm-racconto__testo li { margin-bottom: .4em; }
.tm-racconto__testo li::marker { color: var(--accento); }
.tm-citazione { max-width: 760px; margin: 0 auto var(--spazio-sez); text-align: center; padding-inline: var(--margine); }
.tm-citazione h3 { font-size: clamp(24px, 3.2vw, 34px); }
.tm-citazione p { font-size: 18px; font-style: italic; color: var(--muto); }

/* ---------- catalogo / contatti / shop ---------- */
.tm-tre { display: grid; gap: clamp(20px, 3vw, 36px); }
.tm-tessera { display: flex; flex-direction: column; background: var(--carta); text-align: center; }
.tm-tessera__foto { aspect-ratio: 4 / 3; overflow: hidden; background: var(--grigio-foto); }
.tm-tessera__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.tm-tessera:hover .tm-tessera__foto img { transform: scale(1.04); }
.tm-tessera__corpo { padding: 24px 22px 28px; display: flex; flex-direction: column; align-items: center; flex: 1; }
.tm-tessera__corpo h3 { font-size: 24px; }
.tm-tessera__corpo p { color: var(--muto); font-size: 15px; flex: 1; }

/* ---------- newsletter ---------- */
.tm-newsletter { background: var(--avorio); padding: clamp(48px, 7vw, 88px) var(--margine); text-align: center; }
.tm-newsletter h2 { font-size: clamp(28px, 4vw, 40px); }
.tm-newsletter p { color: var(--muto); max-width: 560px; margin: 0 auto 22px; }
.tm-newsletter [class^="klaviyo-form-"] { max-width: 640px; margin: 0 auto; }
/* modulo newsletter nostro (18/11/2026) */
.tm-nl { max-width: 720px; margin: 0 auto; text-align: left; }
.tm-nl__griglia { display: grid; grid-template-columns: 1fr; gap: 14px 18px; }
@media (min-width: 640px) { .tm-nl__griglia { grid-template-columns: 1fr 1fr; } }
.tm-campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tm-campo label { font-family: var(--f-bottoni); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--inchiostro); }
.tm-campo label span[aria-hidden] { color: var(--accento); }
.tm-campo__fac { text-transform: none; letter-spacing: 0; color: var(--muto); font-family: var(--f-testo); }
.tm-campo input { font: 16px/1.3 var(--f-testo); color: var(--testo); background: #fff; border: 1px solid var(--linea); border-radius: 0; padding: 13px 14px; width: 100%; min-height: 48px; -webkit-appearance: none; appearance: none; }
.tm-campo input::placeholder { color: #9a948d; }
.tm-campo input:focus-visible { outline: 2px solid var(--accento); outline-offset: 1px; border-color: var(--accento); }
.tm-campo input[aria-invalid="true"] { border-color: #b3261e; }
.tm-nl__esca { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tm-nl__consenso { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 20px; font-size: 14px; line-height: 1.5; color: var(--muto); cursor: pointer; }
.tm-nl__consenso input { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: var(--inchiostro); }
.tm-nl__consenso a { color: var(--inchiostro); }
.tm-nl__invia { width: 100%; }
@media (min-width: 640px) { .tm-nl__invia { width: auto; min-width: 240px; } .tm-nl { text-align: center; } .tm-nl__griglia, .tm-nl__consenso { text-align: left; } }
.tm-nl__invia[disabled] { opacity: .6; cursor: progress; }
.tm-nl__esito { margin: 16px 0 0; min-height: 1.5em; font-size: 15px; text-align: center; color: var(--inchiostro); }
.tm-nl__esito.is-errore { color: #b3261e; }
.tm-nl.is-fatto .tm-nl__griglia, .tm-nl.is-fatto .tm-nl__consenso, .tm-nl.is-fatto .tm-nl__invia { display: none; }
.tm-nl.is-fatto .tm-nl__esito { font-family: var(--f-titoli); font-size: 22px; }

/* ---------- magazine ---------- */
.tm-articoli { display: grid; gap: clamp(22px, 3vw, 36px); }
.tm-art { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.tm-art__foto { overflow: hidden; aspect-ratio: 3 / 2; background: var(--grigio-foto); }
.tm-art__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.tm-art:hover .tm-art__foto img { transform: scale(1.04); }
.tm-art__corpo { padding-top: 18px; }
.tm-art__data { font-family: var(--f-bottoni); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muto); }
.tm-art__titolo { font-size: clamp(20px, 2vw, 24px); margin: 8px 0 10px; }
.tm-art__estratto { color: var(--muto); font-size: 15px; margin-bottom: 12px; }
.tm-art:hover .tm-art__titolo { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tm-art--grande .tm-art__titolo { font-size: clamp(26px, 3.4vw, 40px); }

/* ---------- testa pagine interne ---------- */
.tm-briciole { font-size: 13px; color: var(--muto); padding-top: 18px; }
.tm-briciole ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tm-briciole li + li::before { content: "/"; margin-right: 6px; color: var(--linea); }
.tm-briciole a { text-decoration: none; }
.tm-briciole a:hover { text-decoration: underline; }
.tm-briciole [aria-current] { color: var(--inchiostro); }

.tm-testa-pag { padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 4vw, 44px); text-align: center; }
.tm-testa-pag h1 { font-size: clamp(34px, 5.6vw, 60px); text-transform: uppercase; letter-spacing: .02em; }
.tm-testa-pag p { color: var(--muto); max-width: 640px; margin-inline: auto; }

/* collezione: apertura a due colonne */
.tm-apertura { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(20px, 3vw, 40px) clamp(40px, 6vw, 80px); }
.tm-apertura__foto { overflow: hidden; background: var(--grigio-foto); aspect-ratio: 1 / 1; }
.tm-apertura__foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.tm-apertura__testo h1 { font-size: clamp(36px, 5.4vw, 64px); text-transform: uppercase; letter-spacing: .02em; margin-bottom: 12px; }
.tm-apertura__sotto { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muto); margin-bottom: 18px; }
.tm-apertura__descr { font-size: 16.5px; line-height: 1.8; max-width: 600px; }
.tm-apertura__azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.tm-conta { font-family: var(--f-bottoni); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muto); }

/* barra strumenti prodotti */
.tm-strumenti { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-block: 1px solid var(--linea); margin-bottom: clamp(20px, 3vw, 32px); }
.tm-strumenti label { font-family: var(--f-bottoni); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muto); margin-right: 8px; }
.tm-strumenti select {
  font: 500 14px var(--f-testo); color: var(--inchiostro); background: var(--carta);
  border: 1px solid var(--linea); padding: 10px 36px 10px 12px; min-height: 44px; border-radius: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f1f1f' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

/* ---------- griglia prodotti ---------- */
.tm-prodotti { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
.tm-prod { display: flex; flex-direction: column; position: relative; }
.tm-prod__foto { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--grigio-foto); }
.tm-prod__foto img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tm-prod:hover .tm-prod__foto img { transform: scale(1.05); }
.tm-prod__info { padding-top: 12px; display: flex; flex-direction: column; flex: 1; }
.tm-prod__titolo { font-family: var(--f-testo); font-weight: 500; font-size: 14.5px; line-height: 1.45; color: var(--inchiostro); margin: 0 0 6px; text-wrap: pretty; }
.tm-prod__titolo a { text-decoration: none; }
.tm-prod__titolo a:hover { text-decoration: underline; }
.tm-prod__prezzo { font-size: 15px; font-weight: 600; color: var(--inchiostro); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.tm-prod .tm-btn { margin-top: auto; width: 100%; }
.tm-vuoto { text-align: center; color: var(--muto); padding: 40px 0; }
.tm-altri { text-align: center; margin-top: 36px; }

/* testo SEO della collezione */
.tm-storia-coll { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: var(--spazio-sez); }
.tm-storia-coll img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tm-storia-coll__testo { max-width: 720px; margin-inline: auto; font-size: 16.5px; line-height: 1.85; }
.tm-storia-coll.nofoto .tm-storia-coll__testo { text-align: center; }

/* ---------- articolo ---------- */
.tm-articolo-testa { max-width: 860px; margin: 0 auto; text-align: center; padding: clamp(24px, 4vw, 48px) var(--margine) clamp(24px, 3vw, 36px); }
.tm-articolo-testa h1 { font-size: clamp(32px, 5vw, 56px); }
.tm-articolo-testa .tm-art__data { display: block; margin-bottom: 14px; }
.tm-articolo-testa p { color: var(--muto); font-size: 18px; }
.tm-articolo-foto { max-width: 1040px; margin: 0 auto; padding-inline: var(--margine); }
.tm-articolo-foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 35%; }
.tm-prosa { max-width: 700px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) var(--margine) 0; font-size: 18px; line-height: 1.85; }
.tm-prosa > p:first-child::first-letter { font-family: var(--f-titoli); float: left; font-size: 4.1em; line-height: .82; padding: .08em .1em 0 0; color: var(--accento); }
.tm-prosa h2 { font-size: clamp(26px, 3vw, 34px); margin: 1.6em 0 .6em; }
.tm-prosa h3 { font-size: 24px; margin: 1.4em 0 .5em; }
.tm-prosa a { color: var(--inchiostro); text-decoration: underline; text-decoration-color: var(--accento); text-decoration-thickness: 1px; }
.tm-prosa a:hover { color: var(--accento); }
.tm-prosa figure { margin: 2em 0; }
.tm-prosa figure img, .tm-prosa > img { width: 100%; height: auto; }
.tm-prosa figcaption { font-size: 14px; color: var(--muto); text-align: center; margin-top: 10px; font-style: italic; }
.tm-prosa blockquote { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 2px solid var(--accento); font-family: var(--f-titoli); font-size: 23px; line-height: 1.5; color: var(--inchiostro); }
.tm-prosa ul, .tm-prosa ol { padding-left: 1.2em; }
.tm-prosa li { margin-bottom: .5em; }
.tm-prosa li::marker { color: var(--accento); }
.tm-condividi { max-width: 700px; margin: 40px auto 0; padding: 22px var(--margine) 0; border-top: 1px solid var(--linea); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- pie' di pagina ---------- */
.tm-piede { background: var(--avorio); color: var(--testo); margin-top: var(--spazio-sez); font-size: 14.5px; }
.tm-piede__colonne { display: grid; gap: 34px; padding-block: clamp(44px, 6vw, 72px) clamp(28px, 4vw, 48px); }
.tm-piede h2 { font-family: var(--f-titoli); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 18px; }
.tm-piede ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tm-piede a { text-decoration: none; }
.tm-piede a:hover { text-decoration: underline; }
.tm-piede__marchio .tm-logo { justify-content: flex-start; margin-bottom: 14px; }
.tm-piede__marchio .tm-logo img { height: 52px; }
.tm-piede__marchio p { color: var(--muto); max-width: 340px; }
.tm-info { display: grid; gap: 14px; }
.tm-info li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; line-height: 1.4; }
.tm-info svg { width: 26px; height: 26px; }
.tm-info small { display: block; color: var(--muto); font-size: 13px; }
.tm-info strong { font-weight: 600; }
.tm-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tm-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--carta); color: var(--inchiostro);
  box-shadow: 0 1px 3px rgba(31, 31, 31, .08); transition: background-color .2s ease, color .2s ease;
}
.tm-social a:hover { background: var(--inchiostro); color: #fff; text-decoration: none; }
.tm-social svg { width: 18px; height: 18px; fill: currentColor; }
.tm-piede__fondo { border-top: 1px solid var(--linea); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muto); }
.tm-piede__fondo a { color: var(--testo); }

/* torna su */
.tm-su {
  position: fixed; right: 18px; bottom: 92px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--inchiostro); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.tm-su.is-visibile { opacity: 1; transform: none; pointer-events: auto; }
.tm-su svg { width: 20px; height: 20px; }

/* ---------- comparsa morbida (solo se c'e' JS e movimento consentito) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .tm-js .tm-entra { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .tm-js .tm-entra.is-dentro { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- banner cookie (stessa logica di prima, nuovo aspetto) ---------- */
body #cookie-banner {
  background: var(--carta) !important; color: var(--testo) !important;
  font-family: var(--f-testo) !important; font-size: 14.5px !important;
  border-top: 1px solid var(--linea) !important; box-shadow: 0 -10px 30px rgba(31, 31, 31, .08) !important;
  padding: 18px var(--margine) !important;
}
body #cookie-banner p { color: var(--testo) !important; }
body #cookie-banner button, body #cookie-modal button, body .cookie-modal-buttons button {
  font-family: var(--f-bottoni) !important; font-weight: 300 !important; font-size: 13px !important;
  letter-spacing: .12em !important; text-transform: uppercase !important;
  border-radius: 0 !important; border: 1px solid var(--inchiostro) !important;
  background: var(--inchiostro) !important; color: #fff !important; padding: 11px 22px !important; min-height: 44px;
  box-shadow: none !important;
}
body #cookie-banner #decline-all, body #cookie-banner #open-preferences, body #cookie-modal #modal-close {
  background: transparent !important; color: var(--inchiostro) !important;
}
body #cookie-banner button:hover, body #cookie-modal button:hover { opacity: .85; }
body #cookie-modal, body #cookie-modal-content {
  font-family: var(--f-testo) !important; color: var(--testo) !important; border-radius: 0 !important;
}
body #cookie-modal { box-shadow: 0 20px 60px rgba(31, 31, 31, .25) !important; max-width: min(440px, calc(100vw - 32px)) !important; }
body #cookie-modal h2, body #cookie-modal h4, body #cookie-modal-title {
  font-family: var(--f-titoli) !important; color: var(--inchiostro) !important; font-weight: 400 !important; text-transform: none !important; font-size: 22px !important;
}
body #cookie-modal label { font-size: 15px !important; }
body #cookie-reopen-btn { font-family: var(--f-bottoni) !important; border-radius: 0 !important; background: var(--inchiostro) !important; color: #fff !important; }

/* =====================================================================
   tablet (≥ 640px)
   ===================================================================== */
@media (min-width: 640px) {
  .tm-griglia-coll > * { flex-basis: calc((100% - 2 * clamp(14px, 2vw, 28px)) / 3); max-width: calc((100% - 2 * clamp(14px, 2vw, 28px)) / 3); }
  .tm-prodotti { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
  .tm-shop-attesa { grid-template-columns: repeat(3, 1fr); }
  .tm-tre { grid-template-columns: repeat(3, 1fr); }
  .tm-articoli { grid-template-columns: repeat(2, 1fr); }
  .tm-articoli--tre > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tm-fila { grid-auto-columns: 34%; }
  .tm-piede__colonne { grid-template-columns: 1fr 1fr; }
  .tm-hero__foto { aspect-ratio: 16 / 10; }
}

/* =====================================================================
   computer (≥ 1024px)
   ===================================================================== */
@media (min-width: 1024px) {
  :root { --testata-h: 88px; }
  .tm-logo img { height: 58px; max-width: 260px; }
  .tm-hamburger { display: none !important; }
  .tm-shop-testo { display: inline-block; }
  .tm-menu { display: block; padding-bottom: 2px; }
  .tm-testata.is-scorsa .tm-menu { display: none; }
  .tm-testata.is-scorsa .tm-testata__riga { min-height: 68px; }
  .tm-testata.is-scorsa .tm-logo img { height: 46px; }

  .tm-hero__foto { aspect-ratio: auto; height: min(82vh, 760px); max-height: none; }
  .tm-hero__foto img { object-position: var(--fuoco, 50%) 35%; }
  .tm-hero__foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .46) 0%, rgba(0, 0, 0, .18) 38%, rgba(0, 0, 0, 0) 60%); pointer-events: none; }
  .tm-hero__testo { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 clamp(48px, 7vh, 88px); text-align: left; }
  .tm-hero__testo .tm-contenitore { padding-inline: clamp(40px, 5.5vw, 80px); }
  .tm-hero__testo .tm-occhiello { color: #fff; }
  .tm-hero__titolo { color: #fff; max-width: 13ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
  .tm-hero__sotto { color: rgba(255, 255, 255, .92); }
  .tm-hero--destra .tm-hero__foto::after { background: linear-gradient(270deg, rgba(0, 0, 0, .46) 0%, rgba(0, 0, 0, .18) 38%, rgba(0, 0, 0, 0) 60%); }
  .tm-hero--destra .tm-hero__testo { text-align: right; }
  .tm-hero--destra .tm-hero__titolo { margin-left: auto; }
  .tm-hero .tm-hero__testo .tm-btn { background: #fff; color: var(--inchiostro); border-color: #fff; }
  .tm-hero .tm-hero__testo .tm-btn:hover { background: transparent; color: #fff; }

  .tm-griglia-coll > * { flex-basis: calc((100% - 3 * clamp(14px, 2vw, 28px)) / 4); max-width: calc((100% - 3 * clamp(14px, 2vw, 28px)) / 4); }
  .tm-prodotti { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 24px; }
  .tm-shop-attesa { grid-template-columns: repeat(4, 1fr); }
  .tm-racconto { grid-template-columns: 1fr 1fr; }
  .tm-racconto--giro .tm-racconto__foto { order: 2; }
  .tm-racconto__testo { padding-inline: clamp(0px, 2vw, 32px); }
  .tm-articoli { grid-template-columns: repeat(3, 1fr); }
  .tm-articoli--tre > :last-child:nth-child(odd) { grid-column: auto; }
  .tm-articoli--blog { grid-template-columns: repeat(3, 1fr); }
  .tm-articoli--blog .tm-art--grande { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
  .tm-articoli--blog .tm-art--grande .tm-art__corpo { padding-top: 0; }
  .tm-fila { grid-auto-columns: calc((100% - 3 * 16px) / 4.3); padding-inline: 0; }
  .tm-apertura { grid-template-columns: 1fr 1fr; }
  .tm-storia-coll { grid-template-columns: 5fr 7fr; }
  .tm-storia-coll.nofoto { grid-template-columns: 1fr; }
  .tm-piede__colonne { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; }
  .tm-su { bottom: 96px; }
}

/* =====================================================================
   schermi grandi (≥ 1440px)
   ===================================================================== */
@media (min-width: 1440px) {
  body { font-size: 17px; }
  .tm-prodotti { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tm-shop-attesa { grid-template-columns: repeat(5, 1fr); }
  .tm-menu a { font-size: 16px; }
  .tm-hero__foto { height: min(84vh, 880px); }
}
@media (min-width: 1920px) {
  :root { --pagina: 1600px; }
  .tm-griglia-coll > * { flex-basis: calc((100% - 4 * clamp(14px, 2vw, 28px)) / 5); max-width: calc((100% - 4 * clamp(14px, 2vw, 28px)) / 5); }
  .tm-prodotti { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* stampa: niente testata fissa, banner o chat */
@media print {
  .tm-testata, .tm-annuncio, .tm-cassetto, .tm-su, #cookie-banner, .tm-newsletter { display: none !important; }
  body { font-size: 12pt; }
}

/* ---------- blocchi del CMS (18/11/2026): involucro comune, sfondi, spazi, blocchi nuovi ---------- */
.tm-blocco { padding-block: var(--spazio-sez); }
.tm-blocco.tm-segue { padding-top: 0; }
.tm-sp--compatto { padding-block: calc(var(--spazio-sez) * .5); }
.tm-sp--ampio { padding-block: calc(var(--spazio-sez) * 1.5); }
.tm-sf--avorio { background: var(--avorio); }
.tm-sf--scuro { background: var(--inchiostro); color: #f3efe9; }
.tm-sf--scuro h2, .tm-sf--scuro h3, .tm-sf--scuro .tm-occhiello, .tm-sf--scuro p, .tm-sf--scuro .tm-sez__testa p { color: #f3efe9; }
.tm-sf--scuro .tm-btn { background: #fff; color: var(--inchiostro); border-color: #fff; }
.tm-sf--accento { background: var(--accento); color: #fff; }
.tm-sf--accento h2, .tm-sf--accento h3, .tm-sf--accento .tm-occhiello, .tm-sf--accento p, .tm-sf--accento .tm-sez__testa p { color: #fff; }
.tm-sf--accento .tm-btn { background: #fff; color: var(--inchiostro); border-color: #fff; }
@media (max-width: 899px) { .tm-solo--computer { display: none !important; } }
@media (min-width: 900px) { .tm-solo--telefono { display: none !important; } }
.tm-blocco--intro .tm-intro { padding-top: 0; }
.tm-blocco--newsletter { padding-block: 0; }
.tm-blocco--newsletter .tm-newsletter { background: transparent; }
.tm-blocco--racconti .tm-racconto + .tm-racconto { margin-top: clamp(40px, 6vw, 88px); }
.tm-prosa-breve > :last-child { margin-bottom: 0; }
.tm-prosa-breve a, .tm-racconto__testo a, .tm-faq__risposta a { color: inherit; text-decoration: underline; text-decoration-color: var(--accento); }
.tm-testo-blocco { max-width: 820px; text-align: center; }
.tm-testo-blocco--sx { text-align: left; }
.tm-testo-blocco--sx .tm-sez__testa { text-align: left; margin-inline: 0; padding-inline: 0; }
.tm-testo-blocco .tm-prosa-breve { font-size: 17px; line-height: 1.8; }
.tm-citazione--grande { margin-bottom: 0; }
.tm-citazione--grande p { font-family: var(--f-titoli); font-style: normal; font-size: clamp(22px, 3vw, 32px); line-height: 1.4; color: var(--inchiostro); }
.tm-citazione--grande footer { font-family: var(--f-bottoni); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muto); }
.tm-galleria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); }
@media (min-width: 900px) { .tm-galleria--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tm-galleria--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tm-galleria__voce { margin: 0; }
.tm-galleria__voce img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--grigio-foto); }
.tm-galleria__voce figcaption { font-size: 14px; color: var(--muto); margin-top: 8px; text-align: center; }
.tm-video { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; }
.tm-video__avvia { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.tm-video__avvia img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .3s; }
.tm-video__avvia:hover img { opacity: 1; }
.tm-video__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255,255,255,.92); }
.tm-video__play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--inchiostro); }
.tm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tm-bottoni { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tm-faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--linea); }
.tm-faq__voce { border-bottom: 1px solid var(--linea); }
.tm-faq__voce summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--f-titoli); font-size: 21px; color: var(--inchiostro); }
.tm-faq__voce summary::-webkit-details-marker { display: none; }
.tm-faq__voce summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--f-testo); font-size: 24px; color: var(--accento); }
.tm-faq__voce[open] summary::after { content: "−"; }
.tm-faq__risposta { padding: 0 0 22px; color: var(--testo); line-height: 1.75; }
.tm-spazio { max-width: var(--pagina); margin: 0 auto; padding-inline: var(--margine); }
.tm-spazio--piccola { height: 24px; } .tm-spazio--media { height: 56px; } .tm-spazio--grande { height: 104px; }
.tm-spazio .tm-filetto { position: relative; top: 50%; margin: 0 auto; }
.tm-blocco--spazio { padding-block: 0; }
/* anteprima del pannello: blocco evidenziato al passaggio */
[data-cms-blocco] { position: relative; }
.tm-cms-anteprima [data-cms-blocco]:hover { outline: 2px dashed rgba(31, 31, 31, .35); outline-offset: -2px; }
.tm-cms-anteprima [data-cms-blocco].is-scelto { outline: 2px solid #2563eb; outline-offset: -2px; }
/* ---------- banner cookie (18/11/2026) ---------- */
.tm-consenso { position: fixed; z-index: 2147483600; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
.tm-consenso[hidden] { display: none; }
.tm-consenso__in { position: relative; pointer-events: auto; width: 100%; max-width: 760px; background: #fff; color: var(--testo); border: 1px solid var(--linea); box-shadow: 0 18px 50px rgba(31,31,31,.22); padding: 22px 24px 20px; }
.tm-consenso__titolo { font-family: var(--f-titoli); font-size: 22px; color: var(--inchiostro); margin: 0 0 6px; padding-right: 28px; }
.tm-consenso__testo { font-size: 14px; line-height: 1.6; margin: 0 0 16px; color: var(--muto); }
.tm-consenso__testo a { color: var(--inchiostro); }
.tm-consenso__bottoni { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.tm-consenso__bottoni .tm-btn { flex: 1 1 150px; min-height: 46px; }
.tm-consenso__x { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--muto); cursor: pointer; }
.tm-consenso__x:hover { color: var(--inchiostro); }
.tm-consenso-fin { width: min(560px, calc(100vw - 32px)); border: 0; padding: 0; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.tm-consenso-fin::backdrop { background: rgba(20,20,20,.5); }
.tm-consenso-fin__in { padding: 24px; }
.tm-consenso-voce { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--linea); cursor: pointer; }
.tm-consenso-voce strong { display: block; color: var(--inchiostro); font-size: 15px; }
.tm-consenso-voce span { display: block; font-size: 13px; color: var(--muto); line-height: 1.5; }
.tm-consenso-voce input { width: 44px; height: 24px; flex: 0 0 44px; appearance: none; -webkit-appearance: none; background: #cfc9c1; border-radius: 999px; position: relative; cursor: pointer; transition: background .2s; }
.tm-consenso-voce input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tm-consenso-voce input:checked { background: var(--inchiostro); }
.tm-consenso-voce input:checked::after { transform: translateX(20px); }
.tm-consenso-voce input:focus-visible { outline: 2px solid var(--accento); outline-offset: 2px; }
.tm-consenso-sempre { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muto); flex: 0 0 auto; }
.tm-consenso-fin .tm-consenso__bottoni { margin-top: 18px; }
.tm-shop-consenso { text-align: center; max-width: 620px; margin: 0 auto; padding: 28px 16px; border: 1px dashed var(--linea); background: #fff; }
.tm-shop-consenso p { color: var(--muto); }
.tm-shop-consenso__bottoni { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 14px 0 0; }
@media (max-width: 600px) { .tm-consenso { left: 8px; right: 8px; bottom: 8px; } .tm-consenso__in { padding: 18px 16px 16px; } .tm-consenso__titolo { font-size: 19px; } }
@media print { .tm-consenso, .tm-consenso-fin { display: none !important; } }
.tm-consenso-fin { z-index: 2147483601; }
.tm-shop-attesa[hidden] { display: none !important; }
body:has(.tm-consenso:not([hidden])) .diana-fab { visibility: hidden; }   /* la chat ricompare dopo la scelta sui cookie */
