/* ==========================================================================
   TopShop - Sistema mobile (schermi fino a 767px)

   Caricato da functions.php solo sulle pagine con body.topshop-mds: tutte
   tranne account, carrello, checkout e stampa online.

   Le regole stanno nel layer "topshop-mobile" e usano !important: un
   !important dentro un @layer vince su qualsiasi !important fuori dai layer
   (style.css e CSS generato da Elementor), qualunque sia la specificità.
   Per cambiare l'aspetto mobile di queste pagine si interviene QUI, non con
   nuove regole in style.css. Desktop e tablet non sono toccati.

   Il contesto di pagina è sempre dentro :where(...), che ha specificità
   zero: le regole generiche (per tag) perdono sempre contro quelle per ruolo
   (per classe) più sotto nel file.

   R = body.topshop-mds [data-elementor-type="wp-page"]  (contenuto pagina)
   ========================================================================== */

@layer topshop-mobile {
@media (max-width: 767px) {

/* --------------------------------------------------------------------------
   0. Token
   -------------------------------------------------------------------------- */
body.topshop-mds {
    /* Spaziature */
    --ts-gutter: 20px;          /* margine laterale del contenuto */
    --ts-section-y: 40px;       /* padding verticale di ogni sezione */
    --ts-hero-top: 36px;
    --ts-hero-bottom: 40px;
    --ts-stack: 20px;           /* spazio tra blocchi di una sezione */
    --ts-gap: 16px;             /* spazio tra card */
    --ts-card-y: 24px;          /* padding interno delle card */
    --ts-card-x: 20px;
    --ts-card-stack: 12px;      /* spazio tra elementi di una card */

    /* Scala tipografica */
    --ts-h1: 32px;
    --ts-h2: 26px;
    --ts-h3: 21px;
    --ts-h4: 18px;
    --ts-h5: 17px;
    --ts-lead: 19px;            /* sottotitolo sotto l'H1 */
    --ts-body: 17px;            /* paragrafi */
    --ts-small: 15px;           /* dati, specifiche, celle di tabella */
    --ts-note: 14px;            /* note a piè di blocco */
    --ts-label: 12.5px;         /* badge ed etichette maiuscole */
    --ts-num: 40px;             /* numeri decorativi degli step */
    --ts-stat: 32px;            /* numeri delle statistiche */
    --ts-button: 17px;
}

/* --------------------------------------------------------------------------
   1. Sezioni di primo livello: stesso margine laterale e stesso ritmo
   -------------------------------------------------------------------------- */
:where(body.topshop-mds [data-elementor-type="wp-page"]) > :is(.e-con, .elementor-section) {
    margin: 0 !important;
    padding: var(--ts-section-y) var(--ts-gutter) !important;
    min-height: 0 !important;
}

/* Hero (prima sezione) */
:where(body.topshop-mds [data-elementor-type="wp-page"]) > :is(.e-con, .elementor-section):first-child {
    padding-top: var(--ts-hero-top) !important;
    padding-bottom: var(--ts-hero-bottom) !important;
}

/* Sezioni che contengono solo il titolo (es. "I nostri modelli"): il
   contenuto è nella sezione successiva, quindi niente doppio spazio. */
:where(body.topshop-mds [data-elementor-type="wp-page"]) > .e-con:not(:has(.elementor-widget:not(.elementor-widget-heading, .elementor-widget-raven-heading, .elementor-widget-html, .elementor-widget-menu-anchor))) {
    padding-bottom: 0 !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) > .e-con:not(:has(.elementor-widget:not(.elementor-widget-heading, .elementor-widget-raven-heading, .elementor-widget-html, .elementor-widget-menu-anchor))) + :is(.e-con, .elementor-section) {
    padding-top: var(--ts-stack) !important;
}

/* Sezione con la sola ancora del menu: nessuno spazio */
:where(body.topshop-mds [data-elementor-type="wp-page"]) > .e-con:not(:has(.elementor-widget:not(.elementor-widget-menu-anchor))) {
    padding: 0 !important;
}

/* --------------------------------------------------------------------------
   2. Contenitori interni: niente padding/margini propri, spazio con gap
   -------------------------------------------------------------------------- */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .e-con-inner {
    padding: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    gap: var(--ts-stack) !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) > .e-con-full {
    gap: var(--ts-stack) !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"] :is(.e-con, .elementor-section)) .e-con {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    gap: var(--ts-gap) !important;
}

/* Sezioni "classiche" (section > column > widget-wrap) */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-section > .elementor-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    row-gap: var(--ts-gap) !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-column {
    min-width: 0 !important;
    margin: 0 !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-column > .elementor-widget-wrap {
    padding: 0 !important;
    min-width: 0 !important;
    row-gap: var(--ts-stack) !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"] .elementor-section) .elementor-section {
    padding: 0 !important;
    margin: 0 !important;
}

/* Widget: lo spazio lo danno i gap dei contenitori */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-widget,
:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-widget > .elementor-widget-container {
    margin: 0 !important;
}

/* Padding interno dei widget di titolo e testo: via, tranne dove il widget
   stesso è una card (sfondo proprio) */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(.elementor-widget-heading, .elementor-widget-raven-heading, .elementor-widget-text-editor):not(
    .topshop-format-card,
    .topshop-rilegatura-card,
    .topshop-spec-format-card,
    .topshop-callout-box,
    .topshop-callout-wrap,
    .topshop-canva-notice,
    .topshop-spec-cell,
    .topshop-spec-header
),
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(.elementor-widget-heading, .elementor-widget-raven-heading, .elementor-widget-text-editor):not(
    .topshop-format-card,
    .topshop-rilegatura-card,
    .topshop-spec-format-card,
    .topshop-callout-box,
    .topshop-callout-wrap,
    .topshop-canva-notice,
    .topshop-spec-cell,
    .topshop-spec-header
) > .elementor-widget-container {
    padding: 0 !important;
}

/* I pallini sotto i titoli di sezione restano attaccati al titolo */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-dots-widget,
:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-widget-html:has(> .elementor-widget-container > .topshop-dots:only-child),
:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-widget-html:has(> .topshop-dots:only-child) {
    margin-top: -8px !important;
}

/* --------------------------------------------------------------------------
   3. Card: stesso padding interno e stesso spazio tra un elemento e l'altro
   -------------------------------------------------------------------------- */
/* Le card sono contenitori Elementor senza classe (la classe era salvata in
   un campo che i contenitori non stampano): si individuano per ID, come fa
   style.css. Aggiungendo una card nuova va aggiunto qui il suo ID. */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(
    /* Home: come funziona */
    .elementor-element-540aaa8, .elementor-element-b59fa95, .elementor-element-10c5cc0,
    /* Servizi: servizi, clienti, come funziona - Prodotti: prodotti */
    .elementor-element-40abcad, .elementor-element-f4ca63e, .elementor-element-3a1977e,
    .elementor-element-06fdf9a, .elementor-element-fb33899, .elementor-element-da9278f,
    .elementor-element-3534768, .elementor-element-baa47a1, .elementor-element-7cd105f,
    .elementor-element-2f1abad, .elementor-element-6b84dbb, .elementor-element-891e379,
    /* Preparazione file: come si esporta - Post stampa: finiture */
    .elementor-element-7e2608f7, .elementor-element-5b67e82c, .elementor-element-216aa25e,
    .elementor-element-deb44ec, .elementor-element-fc4a9a7, .elementor-element-5d23a4b,
    .elementor-element-f3ecbe4, .elementor-element-29e7ec1, .elementor-element-139ec53,
    .elementor-element-19518ad, .elementor-element-7eef56a,
    /* Supporto grafico: come funziona */
    .elementor-element-70f133dd, .elementor-element-74b11be7, .elementor-element-099b76f
) {
    padding: var(--ts-card-y) var(--ts-card-x) !important;
    margin: 0 !important;
    gap: var(--ts-card-stack) !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
}

/* Card di testo (widget editor/HTML con sfondo proprio) */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(
    .topshop-format-card,
    .topshop-rilegatura-card,
    .topshop-spec-format-card,
    .topshop-guida-card,
    .topshop-tech-card,
    .topshop-practice-card,
    .topshop-cert-card
) {
    padding: var(--ts-card-y) var(--ts-card-x) !important;
    margin: 0 !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(.topshop-format-card, .topshop-rilegatura-card, .topshop-spec-format-card) > .elementor-widget-container,
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(.topshop-format-card, .topshop-rilegatura-card) .topshop-card-inner {
    padding: 0 !important;
    margin: 0 !important;
}

/* Riquadri di nota (callout) */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(.topshop-callout-box, .topshop-callout-inner) {
    padding: 20px var(--ts-card-x) !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Griglie di card affiancate: stessa distanza */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(
    .topshop-tech-cards-grid,
    .topshop-practices-grid
) {
    gap: var(--ts-gap) !important;
}

/* Statistiche Home (griglia 2x2) */
:where(body.topshop-mds .elementor-117) :is(.elementor-element-db86dfc, .elementor-element-1b54fda, .elementor-element-e97752a, .elementor-element-7080980) {
    padding: 20px 12px !important;
    margin: 0 !important;
    gap: 6px !important;
}

:where(body.topshop-mds .elementor-117) .elementor-element-dccc45c {
    column-gap: 12px !important;
    row-gap: 12px !important;
}

/* Galleria tesi Home (2x2 immagini) */
:where(body.topshop-mds .elementor-117) .elementor-element-eba8375 > .e-con-inner {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: var(--ts-gap) !important;
}

:where(body.topshop-mds .elementor-117) :is(.elementor-element-3c3bf33, .elementor-element-3cbcc0d, .elementor-element-162397b, .elementor-element-9c8a30b) {
    padding: 12px !important;
    margin: 0 !important;
    width: calc(50% - var(--ts-gap) / 2) !important;
    flex: 0 0 calc(50% - var(--ts-gap) / 2) !important;
}

/* Tabelle specifiche (Preparazione file) */
:where(body.topshop-mds .elementor-1021) :is(.elementor-element-4154fa6, .elementor-element-f95cc85, .elementor-element-6e0f57f) {
    padding: 18px var(--ts-card-x) !important;
    margin: 0 !important;
    row-gap: 10px !important;
    column-gap: 16px !important;
    grid-auto-rows: auto !important;
    grid-template-rows: none !important;
}

:where(body.topshop-mds .elementor-1021) .topshop-spec-cell {
    padding: 8px 0 !important;
}

/* Modelli tesi: ogni card è una sezione di primo livello */
:where(body.topshop-mds .elementor-893) > :is(.elementor-element-bec6905, .elementor-element-08e6105, .elementor-element-55e4af2, .elementor-element-05a26ab, .elementor-element-f78afaf, .elementor-element-2f1b22f) {
    margin: 0 var(--ts-gutter) var(--ts-gap) !important;
    padding: var(--ts-card-y) var(--ts-card-x) !important;
    width: auto !important;
    max-width: none !important;
}

:where(body.topshop-mds .elementor-893) > .elementor-element-a372e05 + .elementor-element-bec6905 {
    padding-top: var(--ts-card-y) !important;
    margin-top: var(--ts-stack) !important;
}

:where(body.topshop-mds .elementor-893) > .elementor-element-2f1b22f + .e-con {
    padding-top: calc(var(--ts-section-y) - var(--ts-gap)) !important;
}

/* Chi siamo: colonne statistiche (sezione classica con sfondo sulla colonna) */
:where(body.topshop-mds .elementor-46) .elementor-element-4ac080e8 .elementor-column > .elementor-widget-wrap {
    padding: var(--ts-card-y) var(--ts-card-x) !important;
    row-gap: 6px !important;
}

/* Partner: riquadri dei loghi */
:where(body.topshop-mds .elementor-1645) .elementor-element-17166bc0 > .e-con {
    padding: 12px !important;
}

/* Preparazione file: le 3 card "Come si esporta" una sotto l'altra */
:where(body.topshop-mds .elementor-1021) .elementor-element-4d183e0e {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

:where(body.topshop-mds .elementor-1021) .elementor-element-4d183e0e > .e-con {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
}

/* Card di testo costruite come flex (Tesi: rilegature): stesso passo delle
   altre card, senza margini propri degli elementi */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-rilegatura-card {
    gap: var(--ts-card-stack) !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-rilegatura-card > * {
    margin: 0 !important;
}

/* Blocchi divisi in più sezioni di primo livello che sono un'unica sezione
   visiva: niente doppio spazio tra una parte e l'altra */
:where(body.topshop-mds .elementor-117) .elementor-element-eba8375,
:where(body.topshop-mds .elementor-46) .elementor-element-135fd533 {
    padding-bottom: 0 !important;
}

:where(body.topshop-mds .elementor-117) .elementor-element-80daf39,
:where(body.topshop-mds .elementor-46) .elementor-element-4ad62e7 {
    padding-top: var(--ts-stack) !important;
}

/* Tesi: passi del modulo d'ordine (le etichette si sovrapponevano) */
:where(body.topshop-mds .elementor-893) .gf_page_steps {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px 0 !important;
}

:where(body.topshop-mds .elementor-893) .gf_page_steps .gf_step {
    flex: 0 0 33.333% !important;
    width: 33.333% !important;
    max-width: 33.333% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 2px !important;
    box-sizing: border-box !important;
}

:where(body.topshop-mds .elementor-893) .gf_page_steps .gf_step_label {
    font-size: 10.5px !important;
    letter-spacing: 0.01em !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

/* Preparazione file: timeline "Le 5 cose da sapere" */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-cose-timeline .timeline-item__card-inner {
    padding: var(--ts-card-y) var(--ts-card-x) !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-cose-timeline .timeline-item__card-content {
    padding: 0 !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-cose-timeline .jet-timeline-item + .jet-timeline-item {
    margin-top: var(--ts-gap) !important;
}

/* Hero: pulsanti centrati come il testo */
:where(body.topshop-mds [data-elementor-type="wp-page"]) > :first-child .elementor-widget-button {
    align-self: center !important;
    text-align: center !important;
}

/* Contatti: testo dell'hero a tutta larghezza, recapiti allineati al margine */
:where(body.topshop-mds .elementor-30) .elementor-element-da767be {
    width: 100% !important;
    max-width: 100% !important;
}

:where(body.topshop-mds .elementor-30) .elementor-element-4f3370d :is(.elementor-widget, .elementor-widget-container, .elementor-icon-list-items) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* --------------------------------------------------------------------------
   4. Tipografia per tag
   -------------------------------------------------------------------------- */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :where(h1, h2, h3, h4, h5, h6) {
    margin: 0 !important;
    text-wrap: balance;
    word-break: normal !important;
    overflow-wrap: break-word;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) h1 {
    font-size: var(--ts-h1) !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) h2 {
    font-size: var(--ts-h2) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) h3 {
    font-size: var(--ts-h3) !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) h4 {
    font-size: var(--ts-h4) !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) :where(h5, h6) {
    font-size: var(--ts-h5) !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

/* Il testo dentro i titoli segue il titolo (span di Raven, div con stile inline) */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :where(h1, h2, h3, h4, h5, h6) :where(span, a, div, strong, b, em, i):where(:not(.topshop-dots, .topshop-dots *)) {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    font-weight: inherit !important;
}

/* Margini inline dentro i titoli (es. margin: 12px 0 sul testo del titolo):
   lo spazio lo dà il gap della card */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :where(h1, h2, h3, h4, h5, h6, .elementor-heading-title) :where(div, span):where(:not(.topshop-dots, .topshop-dots *)) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Paragrafi ed elenchi */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :where(.elementor-widget-text-editor, .elementor-widget-icon-list) {
    font-size: var(--ts-body) !important;
    line-height: 1.6 !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) :where(p, li, dd, blockquote):where(:not(.gform_wrapper *)) {
    font-size: var(--ts-body) !important;
    line-height: 1.6 !important;
    letter-spacing: normal !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) :where(p):where(:not(.gform_wrapper *)) {
    margin: 0 0 0.75em !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) :where(p):where(:last-child) {
    margin-bottom: 0 !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) :where(.elementor-widget-text-editor) :where(ul, ol):where(:not([class])) {
    margin: 0 0 0.75em !important;
    padding-left: 1.25em !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) :where(.elementor-widget-text-editor) :where(li):where(:not([class*="topshop"])) + li {
    margin-top: 0.35em !important;
}

/* Titoli dentro blocchi di testo o HTML */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :where(.elementor-widget-text-editor, .elementor-widget-html) :where(h2, h3, h4) {
    margin: 0 0 0.5em !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) :where(.elementor-widget-text-editor) :where(p, ul, ol) + :where(h2, h3, h4) {
    margin-top: 1.25em !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) .timeline-item__card-title {
    margin: 0 0 0.5em !important;
}

/* Titoli dei widget Elementor: interlinea della scala, non "1" */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :where(p.elementor-heading-title, div.elementor-heading-title) {
    margin: 0 !important;
}

/* --------------------------------------------------------------------------
   5. Ruoli tipografici
   -------------------------------------------------------------------------- */

/* Sottotitolo sotto l'H1 dell'hero */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-element-32eb4f1,
:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-element-32eb4f1 :where(p, span, strong, div),
:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-element-673cb6c p:first-child,
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-green-hero-sub .elementor-heading-title {
    font-size: var(--ts-lead) !important;
    line-height: 1.45 !important;
    font-weight: 500 !important;
}

/* Testo corrente con dimensione "forzata" dentro card e blocchi */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(
    .topshop-card-desc,
    .topshop-step-desc,
    .topshop-section-intro,
    .topshop-section-subtitle-widget,
    .topshop-section-lead-box,
    .topshop-green-hero-lead,
    .topshop-cta-desc,
    .topshop-cta-text-widget,
    .topshop-callout-box,
    .topshop-callout-inner,
    .topshop-modello-features,
    .topshop-cert-features,
    .topshop-guida-list,
    .topshop-special-item
) :where(p, li, span, div, a):where(:not([class*="badge"], [class*="check"], [class*="arrow"], [class*="tag"], .topshop-callout-box > div:first-child > span)) {
    font-size: var(--ts-body) !important;
    line-height: 1.6 !important;
    min-height: 0 !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-card-desc .elementor-heading-title {
    font-size: var(--ts-body) !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
    min-height: 0 !important;
}

/* Titolo delle card con badge: il contenitore non deve alzare la riga */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-card-title div.elementor-heading-title {
    font-size: var(--ts-body) !important;
    line-height: 1.2 !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-card-title div.elementor-heading-title > div:first-child {
    margin: 0 0 10px !important;
    line-height: 1 !important;
}

/* Etichette e badge (maiuscolo) */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(
    .topshop-badge,
    .topshop-card-badge,
    .topshop-modello-category,
    .topshop-callout-badge,
    .topshop-guida-badge,
    .topshop-tech-badge,
    .topshop-cert-tag,
    .special-pill-tag,
    .format-badge,
    .spec-label,
    .topshop-closed,
    .topshop-callout-box > div:first-child > span
),
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-spec-list strong,
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-spec-header .elementor-heading-title,
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-timetable thead th,
:where(body.topshop-mds [data-elementor-type="wp-page"]) .jet-testimonials__position {
    font-size: var(--ts-label) !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

/* Stampa, copie, scansioni: nelle liste carte/supporti l'etichetta è il nome
   del prodotto, non una chiave: resta in maiuscolo ma a dimensione "small" */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-spec-list li:has(> .spec-val) > .spec-label {
    font-size: var(--ts-small) !important;
    letter-spacing: 0.03em !important;
}

/* Dati e specifiche */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(
    .spec-value,
    .spec-val,
    .format-desc,
    .topshop-card-footer-tip,
    .guida-note
),
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-spec-list li > span,
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-card-footer-tip :where(p, strong),
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-spec-cell :where(p, strong, span),
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-timetable :is(td, tbody th[scope="row"]),
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-prod-chip span:not(.chip-check),
:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-counter-title {
    font-size: var(--ts-small) !important;
    line-height: 1.45 !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-modello-timing {
    font-size: var(--ts-small) !important;
    line-height: 1.4 !important;
}

/* Note */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(.topshop-modello-note, .topshop-required-legend) {
    font-size: var(--ts-note) !important;
    line-height: 1.5 !important;
}

/* Sottotitoli brevi in grassetto */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(.topshop-cert-sub, .topshop-swatch-heading, .format-name) {
    font-size: var(--ts-body) !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

/* Numeri degli step (01, 02, 03) */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .topshop-step-num,
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(.topshop-step-num, .topshop-step-num-wrap) .elementor-heading-title {
    font-size: var(--ts-num) !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

/* Numeri delle statistiche */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-counter-number-wrapper,
:where(body.topshop-mds .elementor-46) .elementor-element-4ac080e8 .elementor-widget-heading .elementor-heading-title {
    font-size: var(--ts-stat) !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
}

:where(body.topshop-mds .elementor-46) .elementor-element-4ac080e8 .raven-heading,
:where(body.topshop-mds .elementor-46) .elementor-element-4ac080e8 .raven-heading-title {
    font-size: var(--ts-body) !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* 404: cifre decorative */
:where(body.topshop-mds .elementor-21) .elementor-element-7bbc5ef .elementor-heading-title {
    font-size: 96px !important;
    line-height: 1 !important;
}

/* Recensioni: il padding per le frecce era applicato due volte (widget e
   contenitore interno) e lasciava le slide larghe 183px */
:where(body.topshop-mds .elementor-117) .elementor-element-1828017 {
    padding: 0 !important;
}

:where(body.topshop-mds .elementor-117) .elementor-element-1828017 .jet-testimonials {
    padding: 0 36px !important;
    margin: 0 !important;
}

:where(body.topshop-mds .elementor-117) .elementor-element-1828017 .jet-testimonials__item-inner {
    padding: var(--ts-card-y) var(--ts-card-x) !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

:where(body.topshop-mds .elementor-117) .elementor-element-1828017 :is(.jet-testimonials__content, .jet-testimonials__comment) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

/* Recensioni */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .jet-testimonials__comment,
:where(body.topshop-mds [data-elementor-type="wp-page"]) .jet-testimonials__comment * {
    font-size: var(--ts-body) !important;
    line-height: 1.55 !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) .jet-testimonials__name,
:where(body.topshop-mds [data-elementor-type="wp-page"]) .jet-testimonials__name * {
    font-size: var(--ts-body) !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

/* Domande frequenti */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .e-n-accordion-item-title-text {
    font-size: var(--ts-h4) !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

/* Contatti: nome azienda in testa al blocco recapiti */
:where(body.topshop-mds .elementor-30) .elementor-element-f8c8773 strong {
    font-size: var(--ts-h3) !important;
    line-height: 1.3 !important;
}

/* Contatti: elenco recapiti */
:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-icon-list-text {
    font-size: var(--ts-body) !important;
    line-height: 1.4 !important;
}

/* --------------------------------------------------------------------------
   6. Pulsanti
   -------------------------------------------------------------------------- */
:where(body.topshop-mds [data-elementor-type="wp-page"]) :is(.elementor-button, a.topshop-cta-button) {
    font-size: var(--ts-button) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    min-height: 50px !important;
    padding: 14px 28px !important;
}

:where(body.topshop-mds [data-elementor-type="wp-page"]) .elementor-button :where(.elementor-button-text, .elementor-button-content-wrapper) {
    font-size: inherit !important;
    line-height: inherit !important;
}

/* --------------------------------------------------------------------------
   7. Pagine prodotto e archivio WooCommerce (non hanno contenuto Elementor)
   -------------------------------------------------------------------------- */

/* Il nome del prodotto è già l'H1 sotto la foto: nella barra titolo resta
   solo il percorso (breadcrumb) */
body.topshop-mds.single-product .jupiterx-main-header-post-title {
    display: none !important;
}

:where(body.topshop-mds.woocommerce) .product_title {
    font-size: var(--ts-h1) !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 8px !important;
}

:where(body.topshop-mds.woocommerce) :is(.summary .price, .summary .price *) {
    font-size: 20px !important;
    line-height: 1.3 !important;
}

:where(body.topshop-mds.woocommerce) :is(.woocommerce-product-details__short-description, .woocommerce-Tabs-panel) :where(p, li) {
    font-size: var(--ts-body) !important;
    line-height: 1.6 !important;
}

:where(body.topshop-mds.woocommerce) :is(.woocommerce-Tabs-panel, .related, .upsells) h2 {
    font-size: var(--ts-h2) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

:where(body.topshop-mds.woocommerce) .woocommerce-Tabs-panel h2 {
    font-size: var(--ts-h3) !important;
}

:where(body.topshop-mds.woocommerce) .woocommerce-Tabs-panel h3 {
    font-size: var(--ts-h4) !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

:where(body.topshop-mds.woocommerce) :is(.product_meta, .product_meta *) {
    font-size: var(--ts-note) !important;
    line-height: 1.5 !important;
}

:where(body.topshop-mds.woocommerce) :is(table.variations label, table.variations th) {
    font-size: var(--ts-small) !important;
    font-weight: 600 !important;
}

:where(body.topshop-mds.woocommerce) .woocommerce-tabs ul.tabs li a {
    font-size: var(--ts-small) !important;
    font-weight: 600 !important;
}

:where(body.topshop-mds.woocommerce) :is(.single_add_to_cart_button, ul.products .button) {
    font-size: var(--ts-button) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    min-height: 50px !important;
    padding: 14px 24px !important;
}

:where(body.topshop-mds.woocommerce) ul.products .woocommerce-loop-product__title {
    font-size: var(--ts-body) !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

:where(body.topshop-mds.woocommerce) ul.products .price {
    font-size: var(--ts-small) !important;
}

} /* @media */
} /* @layer */
