/*
 * Pagine a sezioni: foglio di stile comune a tutti i temi.
 *
 * Usa solo i token del tema (--theme-*), con un valore di riserva per i temi che non li hanno.
 * Le classi ts-* sono delle sezioni (ts--<tipo> e v-<variante> sul <section>), tf-* della cornice.
 * I template stanno in application/views/sections/: vedi il README.md lì.
 */

/* Le variabili stanno anche su :root, così la cornice (tf-*) funziona pure nelle pagine dello shop,
   e su [data-scheme], così una sezione con uno schema di colore del tema le ricalcola dai suoi token */
:root, .ts-page, [data-scheme] {
    --ts-bg: var(--theme-bg, #ffffff);
    --ts-surface: var(--theme-bg-surface, #f6f7f9);
    --ts-text: var(--theme-text, #14161a);
    --ts-muted: var(--theme-text-secondary, #5f6672);
    --ts-primary: var(--theme-primary, #2563eb);
    --ts-primary-dark: var(--theme-primary-dark, #1d4ed8);
    --ts-accent: var(--theme-accent, #f59e0b);
    --ts-border: var(--theme-border, rgba(0, 0, 0, .1));
    --ts-radius: var(--theme-radius, 10px);
    --ts-radius-sm: var(--theme-radius-sm, 6px);
    --ts-font-head: var(--theme-font-heading, system-ui, -apple-system, 'Segoe UI', sans-serif);
    --ts-font-body: var(--theme-font-body, system-ui, -apple-system, 'Segoe UI', sans-serif);
    --ts-space: var(--theme-spacing-section, 88px 24px);
    --ts-on-primary: var(--theme-on-primary, #fff);
    --ts-tint: color-mix(in srgb, var(--ts-primary) 10%, transparent);
    --ts-shadow: var(--theme-shadow, none);
    --ts-font-size: var(--theme-font-size, 17px);
    --ts-max: 1140px;
}
.ts-page {
    background: var(--ts-bg);
    color: var(--ts-text);
    font-family: var(--ts-font-body);
    font-size: var(--ts-font-size);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body:has(> .ts-page) { background: var(--theme-bg, #fff); color: var(--theme-text, #14161a); font-size: var(--theme-font-size, 17px); }
.ts-main { flex: 1; }
.ts-page *, .ts-page *::before, .ts-page *::after, .tf-header *, .tf-footer * { box-sizing: border-box; }
.tf-header, .tf-footer { font-family: var(--ts-font-body); }
.ts-page img { max-width: 100%; height: auto; display: block; }
.ts-page a { color: var(--ts-primary); }
.ts-page a:hover { color: var(--ts-primary-dark); }
.ts-ico { width: 1.25em; height: 1.25em; flex: none; }

/* ------------------------------------------------------------------ struttura */
.ts { padding: var(--ts-space); }
.ts[data-scheme] { background: var(--ts-bg); color: var(--ts-text); }
/* HTML libero da bordo a bordo, senza spaziatura propria: il contenuto avvolto in .ts-bleed (per esempio le pagine convertite) */
.ts--html:has(> .ts-bleed) { padding: 0; }
.ts-w { max-width: var(--ts-max); margin: 0 auto; }
.ts-narrow { max-width: 760px; }
.ts-mid { max-width: 920px; }
.ts-center { text-align: center; }
.ts-center .ts-head, .ts-center .ts-btns, .ts-center .ts-stores { justify-content: center; margin-inline: auto; }

/* ------------------------------------------------------------------ testi */
.ts-h1, .ts-h2, .ts-h3, .ts-rich h3 {
    font-family: var(--ts-font-head);
    color: var(--ts-text);
    margin: 0;
    overflow-wrap: break-word;
    text-wrap: balance;
}
.ts-h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 750; }
.ts-h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
/* Le parole in risalto dei titoli («*parola*» nel campo): i temi le ridisegnano a modo loro */
.ts-h1 em, .ts-h2 em { font-style: italic; color: var(--ts-primary); }
.ts-h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 650; }
.ts-eyebrow {
    margin: 0 0 .9rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ts-primary);
}
.ts-lead { margin: 1.1rem 0 0; font-size: 1.18rem; color: var(--ts-muted); max-width: 40em; }
.ts-center .ts-lead { margin-inline: auto; }
.ts-intro { margin: .9rem 0 0; color: var(--ts-muted); font-size: 1.08rem; max-width: 42em; }
.ts-note { margin: 1rem 0 0; font-size: .88rem; color: var(--ts-muted); }
.ts-head { margin-bottom: 2.75rem; max-width: 46em; }
.ts-head:empty { display: none; }
.ts-center .ts-head .ts-intro { margin-inline: auto; }

/* testo ricco */
.ts-rich { color: var(--ts-text); }
.ts-rich > * + * { margin-top: 1em; }
.ts-rich p, .ts-rich ul, .ts-rich blockquote { margin: 0; }
.ts-rich > * + p, .ts-rich > * + ul, .ts-rich > * + blockquote, .ts-rich > * + figure { margin-top: 1em; }
.ts-rich h3 { font-size: 1.35rem; margin-top: 1.8em; line-height: 1.3; }
.ts-rich ul { padding-left: 1.3em; }
.ts-rich li + li { margin-top: .35em; }
.ts-rich blockquote { border-left: 3px solid var(--ts-primary); padding: .2em 0 .2em 1.1em; color: var(--ts-muted); font-style: italic; }
.ts-rich hr { border: 0; border-top: 1px solid var(--ts-border); margin: 2em 0; }
.ts-rich a { text-decoration: underline; text-underline-offset: .18em; }
.ts-rich-lg { font-size: 1.1rem; line-height: 1.75; }
.ts-fig { margin: 1.6em 0; }
.ts-fig img { border-radius: var(--ts-radius); }
.ts-fig figcaption { margin-top: .5em; font-size: .88rem; color: var(--ts-muted); text-align: center; }
.ts-fig.sz-s { max-width: 50%; }
.ts-fig.sz-m { max-width: 75%; }
.ts-fig.pos-center { margin-inline: auto; }
.ts-fig.pos-left { float: left; margin: .3em 1.6em 1em 0; max-width: 45%; }
.ts-fig.pos-right { float: right; margin: .3em 0 1em 1.6em; max-width: 45%; }
.ts-rich::after { content: ""; display: block; clear: both; }

/* ------------------------------------------------------------------ pulsanti */
.ts-btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.ts-btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .78em 1.45em;
    border-radius: var(--ts-radius);
    border: 1px solid var(--ts-border);
    background: transparent;
    color: var(--ts-text) !important;
    font-family: var(--ts-font-body);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background .15s, border-color .15s, transform .15s;
}
.ts-btn:hover { border-color: var(--ts-text); }
.ts-btn-primary { background: var(--ts-primary); border-color: transparent; color: var(--ts-on-primary) !important; }
.ts-btn-primary:hover { background: var(--ts-primary-dark); border-color: transparent; }
.ts-btn:active { transform: translateY(1px); }

/* ------------------------------------------------------------------ schede, segnaposto */
.ts-card { background: var(--ts-surface); border: 1px solid var(--ts-border); border-radius: var(--ts-radius); padding: 1.75rem; box-shadow: var(--ts-shadow); }
.ts-ph {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    width: 100%;
    border-radius: var(--ts-radius);
    background: color-mix(in srgb, var(--ts-primary) 9%, var(--ts-surface));
    border: 1px dashed color-mix(in srgb, var(--ts-primary) 35%, transparent);
    color: color-mix(in srgb, var(--ts-primary) 70%, var(--ts-muted));
}
.ts-ph .ts-ico { width: 44px; height: 44px; }
.ts-badge-ico {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: var(--ts-radius-sm);
    background: var(--ts-tint);
    color: var(--ts-primary);
    margin-bottom: 1.1rem;
}
.ts-badge-ico .ts-ico { width: 24px; height: 24px; }

/* ------------------------------------------------------------------ griglie */
.ts-grid { display: grid; gap: 1.5rem; }
.ts-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ts-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ts-split.ts-rev .ts-split-txt { order: 2; }
.ts-split.ts-solo { grid-template-columns: 1fr; max-width: 820px; }
.ts-split.ts-solo .ts-split-media { display: none; }
.ts-split-media img, .ts-split-media .ts-ph { border-radius: var(--ts-radius); width: 100%; }
.ts-cols2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 4rem); }

/* ------------------------------------------------------------------ apertura */
.ts--apertura { padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); }
.ts-hero-center { text-align: center; max-width: 880px; }
.ts-hero-center .ts-lead { margin-inline: auto; }
.ts-hero-center .ts-btns { justify-content: center; }
.ts-hero-media { margin-top: 3.5rem; }
.ts-hero-media img, .ts-hero-media .ts-ph { border-radius: var(--ts-radius); margin-inline: auto; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.ts-hero-media .ts-ph { aspect-ratio: 16 / 9; }
/* Manifesto: una dichiarazione grande al centro, poi la foto da bordo a bordo (con la nota sopra) */
.ts--apertura.v-manifesto:has(.ts-manifesto-media) { padding-bottom: 0; padding-inline: 0; }
.ts-manifesto { text-align: center; max-width: 1000px; padding-inline: 24px; }
.ts-statement { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; margin-inline: auto; }
.ts-manifesto .ts-lead { margin-inline: auto; }
.ts-manifesto .ts-btns { justify-content: center; }
.ts-manifesto-media { position: relative; margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.ts-manifesto-media img, .ts-manifesto-media .ts-ph { width: 100%; height: min(78vh, 820px); object-fit: cover; border-radius: 0; }
.ts-manifesto-media figcaption { position: absolute; left: 50%; bottom: clamp(1rem, 4vw, 2.5rem); translate: -50% 0; max-width: min(90%, 42ch); padding: .7rem 1.1rem; border-radius: var(--ts-radius-sm); background: color-mix(in srgb, var(--ts-bg) 84%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ts-text); font-size: .95rem; text-align: center; }

/* ------------------------------------------------------------------ articolo */
.ts-article { max-width: 720px; }
.ts-article-head { margin-bottom: 2.5rem; }
.ts-article .ts-h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.ts-magazine .ts-rich > p:first-child::first-letter {
    float: left;
    font-family: var(--ts-font-head);
    font-size: 3.6em;
    line-height: .85;
    padding: .06em .1em 0 0;
    color: var(--ts-primary);
    font-weight: 700;
}
.ts-magazine .ts-article-head { text-align: center; border-bottom: 1px solid var(--ts-border); padding-bottom: 2rem; }

/* ------------------------------------------------------------------ funzioni */
.ts-feature p, .ts-li p, .ts-num-item p { margin: .55rem 0 0; color: var(--ts-muted); }
.ts-list2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.ts-li { display: flex; gap: 1.1rem; align-items: flex-start; }
.ts-li .ts-badge-ico { margin: 0; }
.ts-numbered { gap: 2.5rem; }
.ts-num-item { border-top: 2px solid var(--ts-text); padding-top: 1.2rem; }
.ts-num { display: block; font-family: var(--ts-font-head); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--ts-primary); margin-bottom: .9rem; }
.ts-chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.ts-chip {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .55em 1.05em;
    border-radius: 999px;
    border: 1px solid var(--ts-border);
    background: var(--ts-surface);
    font-weight: 600;
    font-size: .95rem;
}
.ts-chip .ts-ico { color: var(--ts-primary); }

/* ------------------------------------------------------------------ numeri */
.ts-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.ts-stat { display: flex; flex-direction: column; gap: .35rem; }
.ts-stat-val { font-family: var(--ts-font-head); font-size: clamp(2.3rem, 4.5vw, 3.2rem); line-height: 1; font-weight: 750; letter-spacing: -.02em; color: var(--ts-primary); }
.ts-stat-label { color: var(--ts-muted); }
.ts-stats-cards .ts-stat { padding: 1.6rem; }

/* ------------------------------------------------------------------ galleria e foto */
.ts-gallery-title { margin-bottom: 2rem; }
.ts-gallery figure { margin: 0; }
.ts-gallery img, .ts-gallery .ts-ph { width: 100%; height: 100%; object-fit: cover; border-radius: var(--ts-radius-sm); }
.ts-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.ts-gallery-grid figure { aspect-ratio: 4 / 3; }
.ts-gallery-mosaic { columns: 3 240px; column-gap: 1rem; }
.ts-gallery-mosaic figure { break-inside: avoid; margin-bottom: 1rem; }
.ts-gallery-mosaic img { height: auto; }
.ts-gallery-strip { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.ts-gallery-strip figure { flex: 0 0 min(78%, 420px); aspect-ratio: 4 / 3; scroll-snap-align: start; }
.ts--foto.v-piena { padding-inline: 0; }
.ts-photo { margin: 0; }
.ts-photo-full img, .ts-photo-full .ts-ph { width: 100%; max-height: 80vh; object-fit: cover; border-radius: 0; }
.ts-photo-full .ts-ph { aspect-ratio: 21 / 9; }
.ts-photo-frame { background: var(--ts-surface); border: 1px solid var(--ts-border); border-radius: var(--ts-radius); padding: 14px 14px 0; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .3); }
.ts-photo-frame img, .ts-photo-frame .ts-ph { border-radius: var(--ts-radius-sm); }
.ts-photo figcaption { padding: .9rem 0; font-size: .9rem; color: var(--ts-muted); text-align: center; }
.ts-photo-full figcaption { padding-inline: 24px; }

/* ------------------------------------------------------------------ video */
.ts-video {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    border-radius: var(--ts-radius);
    overflow: hidden;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
}
.ts-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.ts-video:hover img { opacity: 1; }
.ts-video-empty { background: color-mix(in srgb, var(--ts-primary) 12%, var(--ts-surface)); }
.ts-video-play {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px; height: 76px;
    border-radius: 50%;
    background: var(--ts-primary);
    color: var(--ts-on-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.ts-video-play .ts-ico { width: 30px; height: 30px; margin-left: 4px; }
.ts-video-host { position: absolute; left: 1rem; bottom: .9rem; font-size: .85rem; font-weight: 600; background: rgba(0, 0, 0, .55); padding: .3em .7em; border-radius: 999px; }
.ts-split-video { grid-template-columns: 5fr 7fr; }

/* ------------------------------------------------------------------ prezzi */
.ts-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; align-items: stretch; }
.ts-plans-1, .ts-plans-2 { max-width: 820px; margin-inline: auto; }
.ts-plan {
    position: relative;
    display: flex; flex-direction: column;
    padding: 2rem;
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius);
    background: var(--ts-surface);
    box-shadow: var(--ts-shadow);
}
.ts-plan-hl { border: 2px solid var(--ts-primary); box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--ts-primary) 70%, transparent); }
.ts-plan-badge {
    position: absolute; top: -.8rem; left: 2rem;
    padding: .25em .8em;
    border-radius: 999px;
    background: var(--ts-primary);
    color: var(--ts-on-primary);
    font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.ts-plan-price { margin: 1rem 0 0; color: var(--ts-muted); }
.ts-plan-price strong { font-family: var(--ts-font-head); font-size: 2.5rem; line-height: 1; color: var(--ts-text); letter-spacing: -.02em; }
.ts-plan-desc { margin: .8rem 0 0; color: var(--ts-muted); }
.ts-checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; }
.ts-checks li { display: flex; gap: .6rem; align-items: flex-start; }
.ts-checks .ts-ico { color: var(--ts-primary); margin-top: .15em; }
.ts-plan .ts-btn { margin-top: auto; justify-content: center; }
.ts-plan > :has(+ .ts-btn) { margin-bottom: 1.8rem; }

/* ------------------------------------------------------------------ scarica l'app */
.ts-stores { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.ts-store {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .8em 1.4em;
    border-radius: 12px;
    background: var(--ts-text);
    color: var(--ts-bg) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform .15s, opacity .15s;
}
.ts-store:hover { opacity: .9; transform: translateY(-1px); }
.ts-store .ts-ico { width: 1.4em; height: 1.4em; }

/* ------------------------------------------------------------------ testimonianze */
.ts-quote { margin: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.ts-quote blockquote { margin: 0; font-size: 1.05rem; }
.ts-quote figcaption, .ts-bigquote figcaption { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.ts-quote figcaption img, .ts-bigquote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ts-quote figcaption span, .ts-bigquote figcaption span { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }
.ts-quote small, .ts-bigquote small { color: var(--ts-muted); font-size: .88rem; }
.ts-bigquote { margin: 0; }
.ts-bigquote + .ts-bigquote { margin-top: 4rem; }
.ts-bigquote-ico { display: block; color: var(--ts-primary); margin-bottom: 1rem; }
.ts-bigquote-ico .ts-ico { width: 44px; height: 44px; margin: 0 auto; }
.ts-bigquote blockquote { margin: 0; font-family: var(--ts-font-head); font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.35; letter-spacing: -.01em; }
.ts-bigquote figcaption { justify-content: center; margin-top: 1.8rem; }

/* ------------------------------------------------------------------ domande */
.ts-faq { border-top: 1px solid var(--ts-border); }
.ts-qa { border-bottom: 1px solid var(--ts-border); }
.ts-qa summary {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
    font-weight: 650;
    font-size: 1.08rem;
}
.ts-qa summary::-webkit-details-marker { display: none; }
.ts-qa summary::after {
    content: "";
    flex: none;
    width: .6rem; height: .6rem;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    transition: transform .2s;
    color: var(--ts-muted);
}
.ts-qa[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.ts-qa-a { padding: 0 0 1.4rem; color: var(--ts-muted); }
.ts-faq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 3rem; }
.ts-qa-open p { margin: .6rem 0 0; color: var(--ts-muted); }

/* ------------------------------------------------------------------ invito */
.ts-cta { border-radius: calc(var(--ts-radius) * 1.6); padding: clamp(2.5rem, 6vw, 4.5rem); }
.ts-cta-band { background: var(--ts-primary); color: var(--ts-on-primary); text-align: center; }
.ts-cta-band .ts-h2, .ts-cta-band .ts-eyebrow { color: var(--ts-on-primary); }
.ts-cta-band .ts-h2 em { color: inherit; }
.ts-cta-band .ts-lead { color: color-mix(in srgb, var(--ts-on-primary) 82%, transparent); margin-inline: auto; }
.ts-cta-band .ts-btns { justify-content: center; }
.ts-cta-band .ts-btn { border-color: color-mix(in srgb, var(--ts-on-primary) 45%, transparent); color: var(--ts-on-primary) !important; }
.ts-cta-band .ts-btn-primary { background: var(--ts-on-primary); color: var(--ts-primary) !important; border-color: transparent; }
.ts-cta-band .ts-btn-primary:hover { background: color-mix(in srgb, var(--ts-on-primary) 88%, var(--ts-primary)); }
.ts-cta-card { background: var(--ts-surface); border: 1px solid var(--ts-border); text-align: center; }
.ts-cta-card .ts-lead { margin-inline: auto; }
.ts-cta-card .ts-btns { justify-content: center; }
.ts-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--ts-surface); border: 1px solid var(--ts-border); padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.8rem, 4vw, 3rem); }
.ts-cta-row .ts-btns { margin-top: 0; flex: none; }
.ts-cta-row .ts-h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.ts-cta-row .ts-lead { font-size: 1.02rem; margin-top: .5rem; }

/* ------------------------------------------------------------------ orari */
.ts-hours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ts-addr { display: flex; gap: .7rem; margin: 1.6rem 0; align-items: flex-start; }
.ts-addr .ts-ico { color: var(--ts-primary); margin-top: .2em; }
.ts-hours-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ts-border); }
.ts-hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--ts-border); }
.ts-hours-list span { color: var(--ts-muted); text-align: right; }

/* ------------------------------------------------------------------ tabelle */
.ts-table-wrap { overflow-x: auto; border: 1px solid var(--ts-border); border-radius: var(--ts-radius); }
.ts-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.ts-table th, .ts-table td { padding: .85rem 1.1rem; text-align: left; vertical-align: top; }
.ts-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ts-muted); font-weight: 700; border-bottom: 1px solid var(--ts-border); }
.ts-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ts-table-striped tbody tr:nth-child(even) { background: var(--ts-surface); }
.ts-table-lines tbody tr + tr td { border-top: 1px solid var(--ts-border); }
.ts-table-lines { background: transparent; }
.ts-hours-table { border: 1px solid var(--ts-border); border-radius: var(--ts-radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.ts-hours-table tbody th { font-weight: 600; }
.ts-hours-table tbody tr + tr > * { border-top: 1px solid var(--ts-border); }

/* ------------------------------------------------------------------ scheda tecnica */
.ts-specs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem 3rem; }
.ts-specs-list { display: grid; gap: 2rem; max-width: 820px; }
.ts-spec-group dl { margin: .9rem 0 0; border-top: 1px solid var(--ts-border); }
.ts-spec-group dl > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--ts-border); }
.ts-spec-group dt { color: var(--ts-muted); }
.ts-spec-group dd { margin: 0; font-weight: 500; }

/* ------------------------------------------------------------------ file */
.ts-file { display: flex; align-items: center; gap: 1.4rem; }
.ts-file .ts-badge-ico { margin: 0; flex: none; }
.ts-file-meta { flex: 1; min-width: 0; }
.ts-file-meta p { margin: .3rem 0 0; color: var(--ts-muted); }
.ts-file-meta small { display: block; margin-top: .4rem; color: var(--ts-muted); font-size: .82rem; }

/* ------------------------------------------------------------------ dallo shop, dalla raccolta */
.ts-empty-note { margin: 0; padding: 2rem; text-align: center; border: 1px dashed var(--ts-border); border-radius: var(--ts-radius); color: var(--ts-muted); }
.ts-center-btns { justify-content: center; }
.ts-prods { display: grid; gap: 1.25rem; }
.ts-prods-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ts-prods-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.ts-prods-strip > * { flex: 0 0 min(70%, 260px); scroll-snap-align: start; }
.ts-prod { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--ts-text) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.ts-prod:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .35); }
.ts-prod-img { position: relative; display: block; aspect-ratio: 1; background: var(--ts-bg); }
.ts-prod-img img, .ts-prod-img .ts-ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; aspect-ratio: auto; border: 0; }
.ts-prod-off { position: absolute; top: .7rem; left: .7rem; padding: .2em .6em; border-radius: 999px; background: var(--ts-accent); color: #fff; font-size: .78rem; font-weight: 700; }
.ts-prod-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.2rem; }
.ts-prod-name { font-weight: 650; line-height: 1.3; }
.ts-prod-price { color: var(--ts-primary); font-weight: 700; }
.ts-prod-price s { color: var(--ts-muted); font-weight: 400; margin-left: .3em; }
.ts-colls { display: grid; gap: 1.25rem; }
.ts-colls-cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ts-colls-list { grid-template-columns: 1fr; }
.ts-coll { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: var(--ts-text) !important; text-decoration: none !important; }
.ts-coll-img { display: block; aspect-ratio: 16 / 10; background: var(--ts-bg); }
.ts-coll-img img { width: 100%; height: 100%; object-fit: cover; }
.ts-coll-body { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 1.2rem 1.25rem; }
.ts-coll-body small { color: var(--ts-primary); font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.ts-coll-body strong { font-family: var(--ts-font-head); font-size: 1.15rem; line-height: 1.3; }
.ts-coll-body span { color: var(--ts-muted); font-size: .92rem; }
.ts-colls-list .ts-coll { flex-direction: row; align-items: stretch; }
.ts-colls-list .ts-coll-img { flex: 0 0 180px; aspect-ratio: auto; }

/* ------------------------------------------------------------------ cornice */
.tf-w { max-width: var(--ts-max); margin: 0 auto; padding: 0 24px; }
.tf-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--ts-bg) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px);
    border-bottom: 1px solid var(--ts-border);
}
.tf-header .tf-w { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.tf-brand { font-family: var(--ts-font-head); font-weight: 750; font-size: 1.2rem; letter-spacing: -.01em; color: var(--ts-text) !important; text-decoration: none !important; display: inline-flex; align-items: center; }
.tf-brand img { max-height: 40px; width: auto; }
.tf-nav { margin-left: auto; }
.tf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.tf-nav li { position: relative; }
.tf-nav a { display: block; padding: .5rem .8rem; border-radius: var(--ts-radius-sm); color: var(--ts-muted) !important; text-decoration: none !important; font-weight: 550; font-size: .95rem; }
.tf-nav a:hover, .tf-nav a[aria-current] { color: var(--ts-text) !important; }
.tf-has-sub > a::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .45em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-.2em); }
.tf-sub {
    position: absolute; top: 100%; left: 0;
    min-width: 200px;
    display: none !important;
    flex-direction: column;
    padding: .4rem !important;
    background: var(--ts-bg);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius);
    box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .35);
}
.tf-has-sub:hover .tf-sub, .tf-has-sub:focus-within .tf-sub { display: flex !important; }
.tf-tools { display: flex; align-items: center; gap: .4rem; }
.tf-nav + .tf-tools { margin-left: .5rem; }
.tf-icon { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ts-text) !important; }
.tf-icon:hover { background: var(--ts-surface); }
.tf-cart .cart-badge {
    position: absolute; top: 2px; right: 0;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px;
    background: var(--ts-primary); color: var(--ts-on-primary);
    font-size: .68rem; font-weight: 700;
    align-items: center; justify-content: center;
}
.tf-cta { padding: .55em 1.1em; font-size: .92rem; margin-left: .4rem; }
.tf-burger { display: none; position: relative; }
.tf-burger summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.tf-burger summary::-webkit-details-marker { display: none; }
.tf-mnav {
    position: absolute; right: 0; top: calc(100% + 10px);
    width: min(80vw, 300px);
    padding: .6rem;
    background: var(--ts-bg);
    border: 1px solid var(--ts-border);
    border-radius: var(--ts-radius);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .4);
}
.tf-mnav ul { list-style: none; margin: 0; padding: 0; }
.tf-mnav ul ul { padding-left: 1rem; }
.tf-mnav a { display: block; padding: .65rem .8rem; border-radius: var(--ts-radius-sm); color: var(--ts-text) !important; text-decoration: none !important; font-weight: 550; }
.tf-mnav a:hover { background: var(--ts-surface); }
.tf-header-min .tf-cta { margin-left: auto; }

.tf-footer { border-top: 1px solid var(--ts-border); padding: 3.5rem 0 2rem; color: var(--ts-muted); font-size: .92rem; }
.tf-foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 3rem; padding-bottom: 2.5rem; }
.tf-foot-text { margin: .8rem 0 0; max-width: 34em; }
.tf-foot-nav ul { list-style: none; margin: 0; padding: 0; columns: 2 160px; column-gap: 2rem; }
.tf-foot-nav li { padding: .25rem 0; }
.tf-footer a { color: var(--ts-muted) !important; text-decoration: none !important; }
.tf-footer .tf-brand { color: var(--ts-text) !important; }
.tf-footer a:hover { color: var(--ts-text) !important; }
.tf-legal { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; align-items: baseline; border-top: 1px solid var(--ts-border); padding-top: 1.5rem; font-size: .85rem; }
.tf-company { flex-basis: 100%; order: 3; font-size: .8rem; }
.tf-legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-left: auto; }
.tf-footer-min { padding: 1.5rem 0; }
.tf-footer-min .tf-legal { border-top: 0; padding-top: 0; }

/* ------------------------------------------------------------------ telefono e tablet */
@media (max-width: 900px) {
    .tf-nav { display: none; }
    .tf-burger { display: block; }
    .tf-tools, .tf-nav + .tf-tools { margin-left: auto; }
    .ts-hours { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .ts { padding: 56px 20px; }
    .ts--apertura { padding-top: 48px; padding-bottom: 56px; }
    .ts--foto.v-piena { padding-inline: 0; }
    .ts-split, .ts-split-video, .ts-cols2 { grid-template-columns: 1fr; }
    .ts-split.ts-rev .ts-split-txt { order: 0; }
    .ts-list2, .ts-faq-cols, .ts-foot-grid, .tf-foot-grid { grid-template-columns: 1fr; }
    .ts-cta-row { flex-direction: column; align-items: flex-start; }
    .ts-fig.pos-left, .ts-fig.pos-right { float: none; margin: 1.6em auto; max-width: 100%; }
    .ts-fig.sz-s, .ts-fig.sz-m { max-width: 100%; }
    .ts-file { flex-wrap: wrap; }
    .tf-header .tf-w { gap: .8rem; padding: 0 16px; }
    .tf-cta { display: none; }
    .tf-header-min .tf-cta { display: inline-flex; }
    .tf-legal-links { margin-left: 0; }
    /* tabelle: una scheda per riga */
    .ts-table-wrap { border: 0; overflow: visible; }
    .ts-table-wrap thead { display: none; }
    .ts-table-wrap tr { display: block; border: 1px solid var(--ts-border); border-radius: var(--ts-radius-sm); margin-bottom: .8rem; background: var(--ts-surface); }
    .ts-table-wrap td { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; border: 0 !important; text-align: right; }
    .ts-table-wrap td::before { content: attr(data-label); color: var(--ts-muted); text-align: left; font-size: .9rem; }
    .ts-table-striped tbody tr:nth-child(even) { background: var(--ts-surface); }
}
@media (prefers-reduced-motion: reduce) {
    .ts-btn, .ts-store, .ts-video img, .ts-qa summary::after { transition: none; }
}
