/* ==========================================================================
   Fabrisbox - demo statica
   Impostazione grafica ripresa dal template "Ochaka" usato su
   farmaciaortopediamana.it (palette, tipografia, struttura delle sezioni).
   ========================================================================== */

:root {
    --primary: #004aad;
    --primary-dark: #021a62;
    --primary-light: #e8f0fb;
    --secondary: #d7eb3a;
    --accent: #ec6e1a;

    --heading: #0d1424;
    --text: #5f615e;
    --text-2: #8a8c8a;
    --text-3: #acafab;

    --bg-2: #f5f5f5;
    --bg-8: #fafafa;
    --line: #ededed;
    --line-6: #e7e7e7;

    --shadow-sm: 0 2px 10px rgba(13, 20, 36, .06);
    --shadow-md: 0 10px 30px rgba(13, 20, 36, .10);
    --radius: 12px;

    --font-body: "Afacad", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;

    --header-h: 88px;
}

/* --------------------------------------------------------- base ---------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

#wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#wrapper > main { flex: 1; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--heading);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .95rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

.container {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 16px;
}

.container-narrow { max-width: 920px; }

.flat-spacing { padding-block: clamp(48px, 6vw, 88px); }
.flat-spacing-sm { padding-block: clamp(32px, 4vw, 56px); }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.bg-soft { background: var(--bg-8); }
.bg-light-blue { background: var(--primary-light); }

.text-center { text-align: center; }

/* --------------------------------------------------- titoli di sezione ---- */

.section-head { margin-bottom: 36px; }

.section-head.center {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
}

.section-head h2 { margin: 0; }

.section-head p {
    margin: 10px 0 0;
    color: var(--text-2);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--secondary);
}

.section-head.center .eyebrow::after {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--secondary);
}

/* ------------------------------------------------------------ bottoni ---- */

.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1;
    padding: 15px 28px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: all .25s ease;
    white-space: nowrap;
}

.tf-btn .ico { width: 18px; height: 18px; }

.btn-blue { background: var(--primary); color: #fff; }
.btn-blue:hover { background: var(--primary-dark); color: #fff; }

.btn-lime { background: var(--secondary); color: var(--heading); }
.btn-lime:hover { background: #c6d92f; color: var(--heading); }

.btn-white { background: #fff; color: var(--heading); }
.btn-white:hover { background: var(--secondary); color: var(--heading); }

.btn-outline {
    background: transparent;
    border-color: var(--line-6);
    color: var(--heading);
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline-white {
    background: transparent;
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.btn-outline-white:hover { background: #fff; color: var(--primary); }

.tf-btn-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .92rem;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* ---------------------------------------------------------- icone svg ---- */

.ico {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

/* ------------------------------------------------------------- topbar ---- */

.tf-topbar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .85);
    font-size: .88rem;
}

.tf-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
}

.topbar-option-list {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar-option-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .85);
}

.topbar-option-list a:hover { color: var(--secondary); }
.topbar-option-list .ico { width: 16px; height: 16px; }

.topbar-claim {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-weight: 600;
}

.topbar-claim .ico { width: 16px; height: 16px; }

/* ------------------------------------------------------------- header ---- */

.tf-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.tf-header.is-scrolled { box-shadow: var(--shadow-sm); }

.tf-header .container {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: var(--header-h);
}

.site-logo { display: flex; align-items: center; flex: none; }

.site-logo-img {
    display: block;
    height: 56px;
    width: auto;
}

.box-nav-menu { margin-inline: auto; }

.menu-list {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    color: var(--heading);
    padding: 32px 10px;
    white-space: nowrap;
    position: relative;
}

.menu-item > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 24px;
    height: 2px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.menu-item:hover > a,
.menu-item.active > a { color: var(--primary); }

.menu-item:hover > a::after,
.menu-item.active > a::after { transform: scaleX(1); }

.menu-item-has-children { position: relative; }

.menu-item-has-children .ico-caret {
    width: 14px;
    height: 14px;
    transition: transform .25s ease;
}

.menu-item-has-children:hover .ico-caret { transform: rotate(180deg); }

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 10px);
    min-width: 620px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 18px;
    opacity: 0;
    visibility: hidden;
    transition: all .22s ease;
}

.menu-item-has-children:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--heading);
    font-size: .95rem;
}

.submenu a:hover { background: var(--primary-light); color: var(--primary); }
.submenu a .ico { color: var(--primary); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: none;
}

.header-phone { display: flex; align-items: center; gap: 10px; }

.header-phone .ico {
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    stroke-width: 1.6;
}

.header-phone span {
    display: block;
    font-size: .76rem;
    color: var(--text-2);
    line-height: 1.2;
}

.header-phone strong {
    font-family: var(--font-head);
    color: var(--heading);
    font-size: .98rem;
}

.btn-burger {
    display: none;
    background: none;
    border: 1px solid var(--line-6);
    border-radius: 8px;
    padding: 8px;
    color: var(--heading);
    cursor: pointer;
}

/* -------------------------------------------------------- menu mobile ---- */

.mobile-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(340px, 86vw);
    background: #fff;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform .3s ease;
    overflow-y: auto;
    padding: 20px;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 20, 36, .5);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    z-index: 80;
}

.mobile-menu-overlay.open { opacity: 1; visibility: visible; }

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 8px;
}

.mobile-menu-head .site-logo-img { height: 40px; }

.mobile-menu ul { list-style: none; margin: 0; padding: 0; }

.mobile-menu > ul > li > a,
.mobile-menu .mm-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--heading);
    background: none;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
}

.mobile-menu .mm-toggle .ico { transition: transform .25s ease; }
.mobile-menu .mm-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }

.mobile-menu .mm-sub { display: none; padding: 6px 0 10px 12px; }
.mobile-menu .mm-sub.open { display: block; }

.mobile-menu .mm-sub a {
    display: block;
    padding: 8px 0;
    color: var(--text);
    font-size: .95rem;
}

.mobile-menu-foot {
    margin-top: 24px;
    display: grid;
    gap: 10px;
}

.btn-close-menu {
    background: none;
    border: 0;
    color: var(--heading);
    cursor: pointer;
    padding: 4px;
}

/* ------------------------------------------------------- hero tecnico ---- */
/* Tavola tecnica: griglia millimetrata, quote, pallet che si impilano.
   PARAMETRI (tutti su .hx):
   colori   --hx-paper (fondo), --hx-ink (testo/tratti), --hx-line (quote),
            --hx-grid / --hx-grid-major (griglia), --hx-fill-1/-2 (pallet), --hx-accent (filetto)
   tempi    --hx-draw-dur (tracciamento), --hx-head-delay (titolo), --hx-stack-delay (caduta pallet),
            --hx-stack-step (scarto tra un pallet e l'altro), --hx-marquee-dur (giro completo marquee)
   Il numero di pallet impilati si cambia in Views/Home/_HeroDrawing.cshtml (stackCount). */

.hx {
    --hx-paper: #f4f3ee;
    --hx-ink: var(--heading);
    --hx-mute: rgba(13, 20, 36, .74);
    --hx-line: var(--primary);
    --hx-grid: rgba(0, 74, 173, .07);
    --hx-grid-major: rgba(0, 74, 173, .15);
    --hx-fill-1: var(--primary);
    --hx-fill-2: var(--primary-dark);
    --hx-accent: var(--secondary);
    --hx-draw-dur: 1.1s;
    --hx-head-delay: .45s;
    --hx-stack-delay: .9s;
    --hx-stack-step: .16s;
    --hx-marquee-dur: 70s;

    position: relative;
    overflow: hidden;
    background: var(--hx-paper);
    color: var(--hx-ink);
    border-top: 1px solid var(--hx-ink);
}

.hx[data-switched] { --hx-stack-delay: .05s; }

.hx-stage { position: relative; }

.hx-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 40px;
    row-gap: 32px;
    padding-block: clamp(32px, 5vw, 64px) clamp(28px, 3vw, 40px);
}

/* tracciamento: path con pathLength="1" */
.hx-draw {
    fill: none;
    stroke: currentColor;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    animation: hx-draw var(--hx-draw-dur) cubic-bezier(.6, 0, .2, 1) both;
    animation-delay: calc(var(--d, 0) * 1s);
}

.hx[data-switched] .hx-draw { animation-delay: 0s; }

@keyframes hx-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hx-fade { from { opacity: 0; } to { opacity: 1; } }

/* titolo: righe mascherate */
.hx .hx-h1 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2.5rem, 5.4vw, 5rem);
    line-height: .94;
    letter-spacing: -.03em;
    color: var(--hx-ink);
}

.hx-line {
    display: block;
    overflow: hidden;
    padding-bottom: .1em;
    margin-bottom: -.1em;
}

.hx-line-inner {
    display: block;
    animation: hx-line .8s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--hx-head-delay) + var(--i) * .11s);
}

@keyframes hx-line { from { transform: translateY(105%); } to { transform: translateY(0); } }

.hx-after { animation: hx-rise .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--hx-head-delay) + .6s); }

@keyframes hx-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hx-lead {
    max-width: 30em;
    margin: 28px 0 28px;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--hx-mute);
}

.hx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* CTA: rettangolare, riempimento lime che scorre in hover */
.hx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 26px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 2px;
    background: var(--hx-ink);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -.005em;
}

.hx-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--hx-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}

.hx-btn svg { width: 20px; height: 12px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.hx-btn:hover, .hx-btn:focus-visible { color: var(--hx-ink); }
.hx-btn:hover::before, .hx-btn:focus-visible::before { transform: scaleX(1); }
.hx-btn:hover svg { transform: translateX(4px); }

.hx-link, .hx-tel, .hx-more {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--hx-ink);
    border-bottom: 1px solid var(--hx-ink);
    padding-bottom: 2px;
    transition: color .2s ease, border-color .2s ease;
}

.hx-tel {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: .95rem;
    border-bottom-color: transparent;
}

.hx-link:hover, .hx-more:hover, .hx-tel:hover { color: var(--hx-line); border-color: var(--hx-line); }

.hx a:focus-visible, .hx button:focus-visible {
    outline: 2px solid var(--hx-ink);
    outline-offset: 3px;
}

.hx-btn:focus-visible { outline-color: var(--hx-line); }

/* disegno + tab */
.hx-drawing { min-width: 0; align-self: end; }

.hx-tabs {
    display: flex;
    border: 1px solid var(--hx-ink);
    background: var(--hx-paper);
    animation: hx-fade .6s .5s both;
}

.hx-tab {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 6px;
    border: 0;
    border-left: 1px solid var(--hx-ink);
    background: transparent;
    color: var(--hx-ink);
    font-family: var(--font-body);
    font-size: .86rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.hx-tab:first-child { border-left: 0; }
.hx-tab:hover { background: rgba(0, 74, 173, .08); }
.hx-tab[aria-selected="true"] { background: var(--hx-ink); color: #fff; }

.hx-panel[hidden] { display: none; }

.hx-svg { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }

.hx-ground { stroke: var(--hx-ink); stroke-width: 1.2; }

/* elementi disegnati */
.hx-deck { fill: var(--hx-fill-1); stroke: var(--hx-ink); stroke-width: 1.2; }
.hx-foot { fill: var(--hx-fill-2); stroke: var(--hx-ink); stroke-width: 1.2; }
.hx-stripe { fill: var(--hx-accent); }
.hx-rib { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; }
.hx-slot { fill: var(--hx-fill-2); }

/* caduta a peso con rimbalzo: solo transform + opacity */
.hx-unit {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    animation: hx-drop .95s both;
    animation-delay: calc(var(--hx-stack-delay) + var(--i) * var(--hx-stack-step));
}

.hx-tile {
    animation: hx-tile .6s cubic-bezier(.3, 1.4, .5, 1) both;
    animation-delay: calc(var(--hx-stack-delay) + var(--i) * .09s);
}

@keyframes hx-drop {
    0%   { opacity: 0; transform: translateY(-170px); animation-timing-function: cubic-bezier(.55, 0, .9, .55); }
    12%  { opacity: 1; }
    58%  { opacity: 1; transform: translateY(0) scaleY(1); }
    66%  { transform: translateY(0) scaleY(.93); animation-timing-function: ease-out; }
    80%  { transform: translateY(-6px) scaleY(1.01); animation-timing-function: ease-in; }
    92%  { transform: translateY(0) scaleY(.99); }
    100% { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes hx-tile {
    from { opacity: 0; transform: translateY(-36px); }
    to   { opacity: 1; transform: none; }
}

.hx-spec {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 6px 0 10px;
    font-family: var(--font-body);
    font-size: .92rem;
    line-height: 1.5;
    color: var(--hx-mute);
}

.hx-spec b { color: var(--hx-ink); font-weight: 700; }
.hx-more { display: inline-block; font-size: .95rem; }

/* cartiglio con i numeri */
.hx-title {
    grid-column: 1 / -1;
    position: relative;
    border: 1px solid var(--hx-ink);
    background: var(--hx-paper);
    animation: hx-fade .7s 1s both;
}

.hx-cells { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.hx-cell { padding: 16px 20px; border-left: 1px solid var(--hx-ink); min-width: 0; }
.hx-cell:first-child { border-left: 0; }

.hx-cell dt {
    font-family: var(--font-body);
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hx-mute);
}

.hx-cell dd {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--hx-ink);
}

.hx-num { display: inline-block; min-width: calc(var(--n, 1) * .62em); font-variant-numeric: tabular-nums; }
.hx-cell small { font-size: .9rem; font-weight: 400; letter-spacing: 0; color: var(--hx-mute); }
.hx-cell dd.hx-text { font-size: clamp(1.05rem, 1.7vw, 1.5rem); text-transform: uppercase; letter-spacing: -.02em; }

.hx-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    margin: 0;
    padding: 10px 20px;
    list-style: none;
    border-top: 1px solid var(--hx-ink);
    font-family: var(--font-body);
    font-size: .86rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--hx-mute);
}

.hx-notes li::before { content: "+ "; color: var(--hx-line); }

/* marquee delle categorie */
.hx-marquee { position: relative; overflow: hidden; border-top: 1px solid var(--hx-ink); background: var(--hx-paper); contain: paint; }
.hx-track { display: flex; width: max-content; animation: hx-marquee var(--hx-marquee-dur) linear infinite; }
.hx-marquee:hover .hx-track, .hx-marquee:focus-within .hx-track { animation-play-state: paused; }

@keyframes hx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hx-list { display: flex; margin: 0; padding: 0; list-style: none; flex-shrink: 0; }

.hx-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-right: 1px solid rgba(13, 20, 36, .18);
    font-family: var(--font-body);
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
    color: var(--hx-ink);
}

.hx-list a:hover { background: var(--hx-ink); color: #fff; }
.hx-marquee a:focus-visible { outline-offset: -3px; }

@media (max-width: 1199.98px) {
    .hx-grid { column-gap: 28px; }
    .hx-cells { grid-template-columns: repeat(2, 1fr); }
    .hx-cell:nth-child(3) { border-left: 0; }
    .hx-cell:nth-child(n + 3) { border-top: 1px solid var(--hx-ink); }
}

@media (max-width: 991.98px) {
    .hx-grid { grid-template-columns: 1fr; }
    .hx-drawing { max-width: 560px; }
}

@media (min-width: 768px) {
    .hx .container { padding-inline: 40px; }
}

@media (max-width: 767.98px) {
    .hx-notes { display: none; }
    .hx .hx-h1 { font-size: clamp(2.4rem, 12.5vw, 3.6rem); }
    .hx-lead { font-size: 1.05rem; margin-block: 20px; }
    .hx-actions { flex-direction: column; align-items: stretch; gap: 14px; }
    .hx-btn { justify-content: space-between; }
    .hx-link, .hx-tel { align-self: flex-start; }
    .hx-tab { flex-direction: column; gap: 2px; padding: 9px 2px; font-size: .78rem; }
    .hx-cell { padding: 12px 14px; }
    .hx-list a { padding: 13px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .hx *, .hx *::before { animation: none !important; transition: none !important; }
    .hx-marquee { overflow-x: auto; }
    .hx-track { width: auto; }
    .hx-list[aria-hidden="true"] { display: none; }
}

/* ------------------------------------------------------ card categoria --- */

.grid-categorie {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card-category {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .3s ease;
}

.card-category:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-category .img-style {
    aspect-ratio: 4 / 3;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.card-category .img-style img {
    max-height: 82%;
    max-width: 84%;
    width: auto;
    transition: transform .5s ease;
}

.card-category:hover .img-style img { transform: scale(1.06); }

.card-category_info {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.card-category h5 { margin: 0; }
.card-category h5 a { color: var(--heading); }
.card-category:hover h5 a { color: var(--primary); }

.card-category p { margin: 0; font-size: .92rem; color: var(--text-2); flex: 1; }

.card-category .count {
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    color: var(--primary);
}

.cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-sm);
    display: grid;
    place-items: center;
    color: var(--primary);
    z-index: 2;
}

/* ------------------------------------------------------- card prodotto --- */

.grid-prodotti {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card-product {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .3s ease;
    height: 100%;
}

.card-product:hover { box-shadow: var(--shadow-md); border-color: transparent; }

.card-product_wrapper {
    position: relative;
    aspect-ratio: 1;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.card-product_wrapper img {
    max-height: 80%;
    max-width: 82%;
    width: auto;
    transition: transform .5s ease;
}

.card-product:hover .card-product_wrapper img { transform: scale(1.07); }

.img-placeholder {
    display: grid;
    place-items: center;
    color: var(--text-3);
    gap: 8px;
    font-size: .74rem;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.img-placeholder .ico { width: 44px; height: 44px; }

.product-badge_list {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.product-badge_item {
    font-family: var(--font-head);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--secondary);
    color: var(--heading);
}

.product-badge_item.blue { background: var(--primary); color: #fff; }

.card-product_info {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-product_info .cat {
    font-size: .74rem;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
}

.name-product {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--heading);
}

.name-product a { color: inherit; }
.card-product:hover .name-product a { color: var(--primary); }

.card-product_info p {
    margin: 0;
    font-size: .92rem;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-product_info .tf-btn-line { align-self: flex-start; margin-top: 4px; }

/* -------------------------------------------- scheda prodotto estesa ----- */

.product-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    scroll-margin-top: calc(var(--header-h) + 20px);
}

.product-row + .product-row { margin-top: 24px; }

.product-row .media {
    position: relative;
    background: var(--bg-8);
    border: 1px solid var(--line);
    border-radius: 10px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-row .media img { max-height: 82%; max-width: 86%; width: auto; }

.product-row .cat {
    display: block;
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
}

.product-row h3 { margin: 0 0 6px; }

.product-row ul {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.product-row ul li { display: flex; gap: 10px; align-items: flex-start; }

.product-row ul li .ico {
    color: var(--primary);
    margin-top: 6px;
    width: 16px;
    height: 16px;
}

.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* --------------------------------------------------------- anchor nav ---- */

.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.anchor-nav a {
    font-family: var(--font-head);
    font-size: .84rem;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--line-6);
    border-radius: 999px;
    color: var(--heading);
}

.anchor-nav a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ------------------------------------------------------ page heading ----- */

.page-head {
    background: var(--primary-light);
    padding-block: clamp(32px, 4vw, 54px);
    border-bottom: 1px solid var(--line);
}

.page-head h1 { margin: 6px 0 8px; }
.page-head p { margin: 0; max-width: 760px; color: var(--text); }

.breadcrumbs-page {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    color: var(--text-2);
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
}

.breadcrumbs-page li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs-page li + li::before { content: "/"; color: var(--text-3); }

/* ---------------------------------------------------------------- cta ---- */

.tf-cta {
    background: linear-gradient(115deg, var(--primary-dark), var(--primary));
    color: #fff;
    border-radius: var(--radius);
    padding: clamp(32px, 4vw, 54px);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
}

.tf-cta h2 { color: #fff; margin: 0 0 8px; }
.tf-cta p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 620px; }
.tf-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------ azienda ---- */

.split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: center;
}

.media-frame {
    background: var(--bg-8);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    padding: 36px;
    aspect-ratio: 4 / 3;
}

.media-frame img {
    width: 100%;
    max-width: 450px;
    max-height: 100%;
    height: auto;
    object-fit: contain;
}

.lista-check {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.lista-check li { display: flex; gap: 12px; align-items: flex-start; }

.lista-check .ico {
    color: var(--primary);
    margin-top: 6px;
    width: 18px;
    height: 18px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.stat span { font-size: .9rem; color: var(--text-2); }

/* ------------------------------------------------------- testimonianze --- */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.testimonial .ico-quote {
    width: 34px;
    height: 34px;
    color: var(--secondary);
    stroke-width: 1.4;
}

.testimonial .ico-feature {
    width: 38px;
    height: 38px;
    color: var(--primary);
    stroke-width: 1.5;
}

.testimonial h4 { margin: 0; }

.testimonial p { margin: 0; flex: 1; }

.testimonial .autore {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--heading);
}

.testimonial .autore span {
    display: block;
    font-weight: 400;
    font-size: .86rem;
    color: var(--text-2);
}

/* ------------------------------------------------------------- moduli ---- */

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 3vw, 36px);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 600;
    color: var(--heading);
}

.form-field input,
.form-field select,
.form-field textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--heading);
    padding: 12px 14px;
    border: 1px solid var(--line-6);
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field textarea { min-height: 150px; resize: vertical; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, .12);
}

.form-privacy {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .88rem;
    color: var(--text-2);
}

.form-note { margin: 16px 0 0; font-size: .85rem; color: var(--text-3); }
.form-note.is-warning { color: var(--accent); font-weight: 600; }

.form-privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary);
    flex: none;
}

/* -------------------------------------------------------- info contatti -- */

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.info-list li { display: flex; gap: 14px; align-items: flex-start; }

.info-list .ico {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    stroke-width: 1.5;
}

.info-list h6 { margin: 0 0 2px; }
.info-list p { margin: 0; }

.map-frame {
    border: 0;
    width: 100%;
    height: 440px;
    border-radius: var(--radius);
    display: block;
}

.referente-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    background: #fff;
}

.referente-card h5 { margin: 0 0 2px; }

.referente-card .ruolo {
    font-size: .8rem;
    color: var(--primary);
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.referente-card ul {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: .95rem;
}

.referente-card ul li { display: flex; align-items: center; gap: 10px; }
.referente-card ul li .ico { color: var(--primary); width: 17px; height: 17px; }

/* ------------------------------------------------------------- footer ---- */

.tf-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .72);
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-top: clamp(40px, 5vw, 64px);
    padding-bottom: clamp(28px, 3vw, 36px);
}

.tf-footer h6 {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .82rem;
    margin: 0 0 18px;
}

.tf-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: .95rem;
}

.tf-footer a { color: rgba(255, 255, 255, .72); }
.tf-footer a:hover { color: var(--secondary); }

.footer-logo .site-logo-img { height: 58px; margin-bottom: 18px; }
.footer-intro { margin: 0 0 18px; font-size: .95rem; }

.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .ico { color: var(--secondary); margin-top: 4px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-block: 18px;
    font-size: .84rem;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 20px; }

.footer-credit {
    padding-bottom: 14px;
    text-align: center;
    font-size: .82rem;
}

.footer-credit p { margin: 0; }

.footer-credit a {
    color: #fff;
    font-weight: 600;
}

.footer-credit a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ----------------------------------------------------------- scroll up --- */

#goTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s ease;
    box-shadow: var(--shadow-md);
}

#goTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#goTop:hover { background: var(--primary-dark); }

/* ------------------------------------------------------------ utility ---- */

.demo-banner {
    background: var(--secondary);
    color: var(--heading);
    text-align: center;
    font-size: .84rem;
    font-family: var(--font-head);
    font-weight: 600;
    padding: 7px 16px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.mb-0 { margin-bottom: 0 !important; }

.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- responsive ---- */

@media (max-width: 1199.98px) {
    .grid-categorie,
    .grid-prodotti { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
    .submenu { min-width: 480px; }
}

@media (max-width: 991.98px) {
    .box-nav-menu,
    .header-phone { display: none; }

    .btn-burger { display: inline-flex; }

    .tf-header .container { justify-content: space-between; }


    .split { grid-template-columns: 1fr; }
    .grid-3,
    .grid-2 { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }

    .product-row { grid-template-columns: 1fr; }
    .product-row .media { max-width: 300px; }

    .tf-cta { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    body { font-size: 16px; }

    .grid-categorie,
    .grid-prodotti { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    .card-product_info,
    .card-category_info { padding: 14px; }

    .tf-topbar .container { justify-content: center; }

    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 479.98px) {
    .grid-categorie,
    .grid-prodotti { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------- hero index-3 ---- */
/* Hero editoriale (solo /index-3): titolo grande, prodotto in primo piano.
   Parametri su .hi: --hi-paper (fondo), --hi-ink, --hi-blue, --hi-delay (avvio sequenza). */

.hi {
    --hi-paper: #f5f4f0;
    --hi-ink: var(--heading);
    --hi-blue: var(--primary);
    --hi-delay: .1s;

    position: relative;
    overflow: hidden;
    background: var(--hi-paper);
    color: var(--text);
    min-height: clamp(560px, calc(86svh - 108px), 820px);
    display: flex;
    align-items: center;
}

.hi-wrap {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: center;
    gap: 24px;
    padding-block: clamp(40px, 5vw, 72px);
}

.hi-copy { position: relative; z-index: 2; }

/* titolo: eyebrow mono + righe mascherate */
.hi .hi-h1 {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2.6rem, 5.2vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    color: var(--hi-ink);
}

.hi-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: .88rem;
    line-height: 1.4;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hi-ink);
    animation: hi-fade .8s ease both;
    animation-delay: var(--hi-delay);
}

.hi-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--hi-ink); flex: none; }

.hi-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }

.hi-line > span {
    display: block;
    animation: hi-line .9s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--hi-delay) + .2s + var(--i) * .1s);
}

.hi-after { animation: hi-rise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--hi-delay) + .7s); }

.hi-lead { max-width: 30em; margin: 28px 0 32px; font-size: 1.15rem; line-height: 1.6; }

.hi-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hi .tf-btn.hi-btn { border-radius: 4px; padding: 17px 28px; }
.hi .btn-outline { border-color: var(--hi-ink); color: var(--hi-ink); }
.hi .btn-outline:hover { background: var(--hi-ink); border-color: var(--hi-ink); color: #fff; }
.hi a:focus-visible { outline: 2px solid var(--hi-blue); outline-offset: 3px; }

/* dato di prova: riga di testo con filetto, non una card */
.hi-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 36px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(13, 20, 36, .25);
    max-width: 34em;
    font-family: var(--font-body);
    font-size: .92rem;
    line-height: 1.5;
    color: var(--hi-ink);
}

.hi-proof a { color: var(--hi-ink); text-decoration: underline; text-underline-offset: 3px; }
.hi-proof a:hover { color: var(--hi-blue); }

/* colonna media: prodotto sul foglio */
.hi-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(360px, 40vw, 560px);
    margin-left: -3vw;
}

.hi-photo { position: relative; width: min(100%, 520px); will-change: transform; mix-blend-mode: multiply; }

/* il fondo bianco del file scompare sul colore carta (multiply sul wrapper .hi-photo, che e' il layer del parallax) */
.hi-reveal {
    animation: hi-photo 1.1s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--hi-delay) + .35s);
}

.hi-reveal img { display: block; width: 100%; height: auto; aspect-ratio: 450 / 451; }

/* ombra di contatto sul pavimento */
.hi-photo::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 6%;
    bottom: 12%;
    height: 8%;
    background: radial-gradient(ellipse at center, rgba(13, 20, 36, .28), transparent 70%);
    animation: hi-fade 1s ease both;
    animation-delay: calc(var(--hi-delay) + 1s);
}

@keyframes hi-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hi-line { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes hi-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@keyframes hi-photo {
    from { opacity: 0; transform: translateY(20px) scale(1.06); clip-path: inset(100% 0 0 0); }
    to   { opacity: 1; transform: none; clip-path: inset(0); }
}

@media (max-width: 1199.98px) {
    .hi-wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .hi-photo { width: min(100%, 420px); }
}

@media (max-width: 767.98px) {
    .hi { min-height: 0; display: block; }
    .hi-wrap { display: flex; flex-direction: column; padding-block: 32px 44px; }
    .hi-copy { display: contents; }
    .hi .hi-h1 { font-size: clamp(2.3rem, 10vw, 3rem); order: 1; }
    .hi-eyebrow { margin-bottom: 18px; }
    .hi-media { order: 2; min-height: 0; margin: 22px 0 8px; width: 100%; }
    .hi-after { order: 3; }
    .hi-photo { width: 78%; }
    .hi-lead { font-size: 1.05rem; margin-block: 8px 24px; }
    .hi-actions { flex-direction: column; }
    .hi .tf-btn.hi-btn { min-height: 52px; }
    .hi-proof { margin-top: 28px; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hi *, .hi *::before, .hi *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------- hero home ---- */
/* Hero della home: testo di index-3 dentro una sezione .hx, con disegno e marquee della variante /index-2. */

.hi4 { border-top: 0; }
.hi4 .hi { min-height: clamp(540px, calc(86svh - 168px), 780px); }
.hi4 .hi-wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 40px; }

@media (max-width: 991.98px) {
    .hi4 .hi-wrap { display: flex; flex-direction: column; gap: 28px; }
    .hi4 .hi-copy { display: block; }
    .hi4 .hx-drawing { max-width: 560px; width: 100%; }
}

/* ---------------------------------------------- header responsive fix ---- */
/* Menu piu' lungo (Home 2/3): burger da 1199px in giu', telefono nascosto sotto 1600px,
   su telefono solo logo + burger, cosi' l'header non genera scroll orizzontale. */

@media (max-width: 1599.98px) {
    .header-phone { display: none; }
}

@media (max-width: 1199.98px) {
    .box-nav-menu { display: none; }
    .btn-burger { display: inline-flex; }
    .tf-header .container { justify-content: space-between; }
}

@media (max-width: 575.98px) {
    .tf-header .container { gap: 12px; }
    .header-actions .tf-btn { display: none; }
    .site-logo-img { height: 44px; }
}

@media (max-width: 359.98px) {
    .site-logo-img { height: 36px; }
}

/* CTA a fondo blu: su schermi stretti i pulsanti vanno a capo invece di sforare */
.tf-cta > * { min-width: 0; }

@media (max-width: 575.98px) {
    .tf-cta { padding: 28px 20px; }
    .tf-cta .actions { flex-direction: column; align-items: stretch; }
    .tf-cta .tf-btn { white-space: normal; text-align: center; overflow-wrap: anywhere; line-height: 1.3; }
}

/* 1200-1299px: con 4 voci "Home" di prova il menu non lascia spazio al pulsante in header */
@media (min-width: 1200px) and (max-width: 1299.98px) {
    .header-actions .tf-btn { display: none; }
}

/* ------------------------------------------- touch (iPhone): pulsanti ---- */
/* Target minimo 44px, niente ritardo del doppio tap, niente alone di tap su iOS. */
.btn-burger,
.btn-close-menu,
.hx-tab,
.mm-toggle {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-burger {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hx-tab { min-height: 44px; }

/* mobile e tablet: nella barra in alto il claim al posto di telefono/email/indirizzo */
@media (max-width: 991.98px) {
    .tf-topbar .container { justify-content: center; }
    .topbar-option-list { display: none; }
    .topbar-claim { font-size: .84rem; }
}
