/* =========================================================
   Telos PDM - foglio di stile principale
   Palette: grafite / giallo segnale / bianco freddo.
   Titoli: Barlow Condensed. Testo: Geist. Numeri: Geist Mono.
   ========================================================= */

:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface-2: #eceff4;
    --surface-3: #dde2ea;
    --ink: #14171c;
    --ink-2: #4b5260;
    --ink-3: #697180;
    --line: #d9dee6;
    --line-strong: #b8c0cc;

    --dark: #14171c;
    --dark-2: #1d2128;
    --dark-3: #272c35;
    --on-dark: #f5f7fa;
    --on-dark-2: rgba(245, 247, 250, 0.72);
    --on-dark-line: rgba(245, 247, 250, 0.12);

    --accent: #ffc41f;
    --accent-hover: #f0b400;
    --accent-ink: #14171c;
    --accent-soft: #fff4cc;
    --accent-deep: #8a6400;

    --success: #1f6f43;
    --success-soft: #e2f1e7;
    --error: #b42318;
    --error-soft: #fbe6e3;

    --font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
    --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --radius: 4px;
    --radius-lg: 10px;
    --container: 1280px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --header-h: 72px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 1px 2px rgba(20, 23, 28, 0.06), 0 16px 40px -20px rgba(20, 23, 28, 0.28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, picture, video { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); }
.h1, h1, .h2, h2 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 0.98;
}
.h1, h1 { font-size: clamp(2.7rem, 1.9rem + 3.4vw, 5rem); }
.h2, h2 { font-size: clamp(2rem, 1.5rem + 1.9vw, 3.1rem); }
.h3, h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.25; }
.h4, h4 { font-size: 1.05rem; }
.lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--ink-2); line-height: 1.55; max-width: 60ch; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--accent); flex: none; }
.section-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--accent); margin-bottom: 1.1rem; }
.section-head p { margin-top: 0.9rem; color: var(--ink-2); font-size: 1.05rem; }
.section-head--row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.section-head--row > div { max-width: 42rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tint { background: var(--surface-2); }
.section--white { background: var(--surface); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.skip-link {
    position: absolute; top: -100px; left: 1rem; z-index: 100;
    background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.header-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

/* ---------- Pulsanti ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600; font-size: 0.97rem; line-height: 1.1; white-space: nowrap;
    border: 1px solid transparent;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 8px 20px -10px rgba(255, 196, 31, 0.8); }
.btn--dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.btn--dark:hover { background: var(--dark-3); border-color: var(--dark-3); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--sm { padding: 0.62rem 1.05rem; font-size: 0.9rem; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn .ti { font-size: 1.15em; transition: transform 0.2s var(--ease); }
.btn:hover .ti-arrow-right { transform: translateX(3px); }
.btn.is-loading { opacity: 0.7; pointer-events: none; }
.link-button { color: inherit; text-align: left; }
.link-button:hover { color: var(--accent-deep); }
.text-link {
    color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 0.35rem;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat; background-size: 100% 2px; background-position: 0 100%;
    padding-bottom: 2px;
    transition: background-size 0.25s var(--ease);
}
.text-link:hover { background-size: 100% 6px; }
.text-link .ti { transition: transform 0.2s var(--ease); }
.text-link:hover .ti { transform: translateX(3px); }

/* ---------- Barra superiore ---------- */
.topbar { background: #0d0f12; color: var(--on-dark-2); font-size: 0.82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 36px; }
.topbar__group { display: flex; align-items: center; gap: 1.5rem; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.topbar__item .ti { color: var(--accent); font-size: 1rem; }
.topbar a:hover { color: var(--on-dark); }
@media (max-width: 1080px) { .topbar { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header__bar {
    background: var(--dark);
    border-bottom: 1px solid var(--on-dark-line);
    transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled .site-header__bar { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name {
    font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; letter-spacing: 0.02em;
    text-transform: uppercase; color: var(--on-dark); line-height: 1; white-space: nowrap;
}
.brand__name span { color: var(--accent); }
.nav__list { display: flex; gap: 0.15rem; }
.nav__link {
    position: relative; display: inline-block; padding: 0.55rem 0.75rem; white-space: nowrap;
    font-weight: 500; font-size: 0.95rem; color: var(--on-dark-2);
    transition: color 0.2s var(--ease);
}
.nav__link::after {
    content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.1rem; height: 2px;
    background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav__link:hover { color: var(--on-dark); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--on-dark); font-weight: 600; }
.nav__mobile-extra { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 1rem; }
.nav__phone { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.95rem; color: var(--on-dark); white-space: nowrap; font-family: var(--mono); font-size: 0.9rem; }
.nav__phone .ti { color: var(--accent); font-size: 1.2rem; }
.nav__phone:hover { color: var(--accent); }
.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: var(--radius); }
.nav-toggle__bar { width: 22px; height: 2px; background: var(--on-dark); transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1240px) {
    .site-header__actions .nav__phone span { display: none; }
    .nav__link { padding-inline: 0.55rem; font-size: 0.9rem; }
    .nav__link::after { left: 0.55rem; right: 0.55rem; }
}
@media (max-width: 1080px) {
    .brand__name { display: none; }
}
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .brand__name { display: inline; }
    .site-header__actions .nav__phone, .site-header__actions .btn { display: none; }
    .nav {
        position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
        background: var(--dark); color: var(--on-dark); padding: 1.5rem var(--gutter) 2rem;
        overflow-y: auto;
        transform: translateX(100%); transition: transform 0.3s var(--ease);
        display: flex; flex-direction: column; gap: 1.5rem;
    }
    .nav.is-open { transform: translateX(0); }
    .nav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--on-dark-line); }
    .nav__link { display: block; padding: 1rem 0; border-bottom: 1px solid var(--on-dark-line); font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; color: var(--on-dark); }
    .nav__link::after { display: none; }
    .nav__link.is-active { color: var(--accent); }
    .nav__mobile-extra { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
    .nav__mobile-extra .btn { width: 100%; }
    body.nav-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 23, 28, 0.96) 0%, rgba(20, 23, 28, 0.86) 40%, rgba(20, 23, 28, 0.42) 100%),
        linear-gradient(180deg, rgba(20, 23, 28, 0.35) 0%, rgba(20, 23, 28, 0) 30%, rgba(20, 23, 28, 0.55) 100%);
}
.hero__content { padding-block: clamp(4.5rem, 9vw, 8.5rem) clamp(3.5rem, 7vw, 6rem); max-width: 100%; }
.hero .eyebrow { color: var(--accent); }
.hero__title { color: var(--on-dark); max-width: 14ch; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__text { margin-top: 1.5rem; color: var(--on-dark-2); max-width: 54ch; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.25rem; }
.hero .btn--ghost { color: var(--on-dark); border-color: rgba(245, 247, 250, 0.35); }
.hero .btn--ghost:hover { border-color: var(--on-dark); background: rgba(245, 247, 250, 0.08); }
.hero__stats { background: rgba(13, 15, 18, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--on-dark-line); }
.hero__stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero__stat { padding: 1.35rem 1.5rem 1.35rem 0; }
.hero__stat + .hero__stat { padding-left: 1.5rem; border-left: 1px solid var(--on-dark-line); }
.hero__stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1; color: var(--accent); letter-spacing: 0.01em; }
.hero__stat span { display: block; margin-top: 0.35rem; font-size: 0.88rem; color: var(--on-dark-2); }
@media (max-width: 900px) {
    .hero__bg::after { background: linear-gradient(180deg, rgba(20, 23, 28, 0.9) 0%, rgba(20, 23, 28, 0.82) 100%); }
    .hero__title { max-width: none; }
    .hero__stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero__stat { padding: 1.1rem 1rem 1.1rem 0; }
    .hero__stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .hero__stat:nth-child(n+3) { border-top: 1px solid var(--on-dark-line); }
}

/* ---------- Fascia marchi ---------- */
.brands { padding-block: 1.4rem; overflow: hidden; background: var(--dark-2); color: var(--on-dark-2); border-bottom: 1px solid var(--on-dark-line); }
.brands__inner { display: flex; align-items: center; gap: 2rem; }
.brands__label { flex: none; font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; padding-right: 2rem; border-right: 1px solid var(--on-dark-line); }
.marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.06em; color: var(--on-dark-2); white-space: nowrap; text-transform: uppercase; transition: color 0.2s; }
.marquee__item:hover { color: var(--on-dark); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .marquee__track { animation: none; flex-wrap: wrap; width: auto; gap: 1rem 2rem; }
    .marquee__track > .marquee__item:nth-child(n+19) { display: none; }
    .marquee { mask-image: none; -webkit-mask-image: none; }
}
@media (max-width: 700px) { .brands__label { display: none; } }

/* ---------- Bento categorie ---------- */
.bento {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
        "a a b d"
        "a a c d"
        "e f g h";
}
.bento__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--dark); min-height: 220px; display: flex; }
.bento__item:nth-child(1) { grid-area: a; min-height: 420px; }
.bento__item:nth-child(2) { grid-area: b; }
.bento__item:nth-child(3) { grid-area: c; }
.bento__item:nth-child(4) { grid-area: d; }
.bento__item:nth-child(5) { grid-area: e; }
.bento__item:nth-child(6) { grid-area: f; }
.bento__item:nth-child(7) { grid-area: g; }
.bento__item:nth-child(8) { grid-area: h; }
.bento__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.bento__item:hover img { transform: scale(1.05); }
.bento__item::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20, 23, 28, 0.05) 30%, rgba(20, 23, 28, 0.88) 100%);
}
.bento__item::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); z-index: 2;
    transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.bento__item:hover::before { transform: scaleX(1); }
.bento__body { position: relative; z-index: 1; margin-top: auto; padding: 1.25rem; color: var(--on-dark); width: 100%; }
.bento__body h3 { color: var(--on-dark); font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; letter-spacing: 0.01em; }
.bento__item:nth-child(1) .bento__body h3 { font-size: 2rem; }
.bento__body p { color: var(--on-dark-2); font-size: 0.9rem; margin-top: 0.35rem; display: none; }
.bento__item:nth-child(1) .bento__body p, .bento__item:nth-child(4) .bento__body p { display: block; }
.bento__count { display: inline-block; margin-top: 0.7rem; font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--accent-ink); background: var(--accent); padding: 0.25rem 0.55rem; border-radius: 3px; }
@media (max-width: 960px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b c" "d e" "f g" "h h"; }
    .bento__item:nth-child(1) { min-height: 300px; }
    .bento__item { min-height: 190px; }
}
@media (max-width: 520px) {
    .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f" "g" "h"; }
    .bento__body p { display: block; }
}

/* ---------- Scorrimento orizzontale (attrezzature) ---------- */
.scroller { position: relative; }
.scroller__track {
    display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 1rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.scroller__track > * { flex: 0 0 clamp(260px, 28vw, 340px); scroll-snap-align: start; }
.scroller__nav { display: flex; gap: 0.5rem; }
.scroller__btn {
    width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line-strong);
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; background: var(--surface);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.scroller__btn:hover { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }

/* ---------- Card prodotto / attrezzatura ---------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; height: 100%;
    transition: border-color 0.2s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__title { font-size: 1.05rem; line-height: 1.3; }
.card__meta { font-size: 0.9rem; color: var(--ink-2); }
.card__ref { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.02em; }
.card__brand { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--accent-deep); text-transform: uppercase; letter-spacing: 0.08em; }
.card__foot { margin-top: auto; padding-top: 0.75rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border-top: 1px solid var(--line); }
.card__price { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; }
.card__price small { font-family: var(--font); font-weight: 400; color: var(--ink-3); font-size: 0.75rem; margin-left: 0.2rem; }
.badge { display: inline-block; padding: 0.22rem 0.55rem; border-radius: 3px; font-size: 0.75rem; font-weight: 600; }
.badge--ok { background: var(--success-soft); color: var(--success); }
.badge--wait { background: var(--surface-2); color: var(--ink-2); }
.badge--accent { background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- Sezione split (perché noi) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split__media { position: relative; }
.split__media::before { content: ""; position: absolute; left: -12px; top: 24px; bottom: -12px; width: 12px; background: var(--accent); border-radius: 2px; }
.split__media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
.split--reverse .split__media img { aspect-ratio: 4 / 3; }
.split h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--accent); margin-bottom: 1.1rem; }
.features { display: grid; gap: 1.6rem; margin-top: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature__icon {
    flex: none; width: 48px; height: 48px; border-radius: var(--radius);
    background: var(--ink); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.45rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.feature p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 900px) {
    .split, .split--reverse { grid-template-columns: 1fr; }
    .split__media::before { display: none; }
    .split__media img, .split--reverse .split__media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Passaggi ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); counter-reset: step; }
.step { padding: 1.75rem 1.5rem 0 0; position: relative; counter-increment: step; }
.step + .step { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 4px; background: var(--accent); }
.step + .step::before { left: 1.5rem; }
.step::after {
    content: counter(step, decimal-leading-zero); position: absolute; top: 1.1rem; right: 1.25rem;
    font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--surface-3); pointer-events: none;
}
.step__icon { font-size: 1.7rem; color: var(--ink); margin-bottom: 1rem; display: block; position: relative; }
.step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; position: relative; }
.step p { color: var(--ink-2); font-size: 0.95rem; position: relative; }
@media (max-width: 900px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 0; }
    .step:nth-child(3) { border-left: 0; padding-left: 0; }
    .step:nth-child(3)::before { left: 0; }
}
@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; border-top: 0; }
    .step, .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }
    .step + .step::before { left: 0; }
}

/* ---------- Blocco pro ---------- */
.pro-band { position: relative; background: var(--dark); color: var(--on-dark); border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pro-band::before { content: ""; position: absolute; top: 0; left: 0; width: 140px; height: 140px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 0 100%); opacity: 0.95; }
.pro-band__body { position: relative; padding: clamp(2rem, 4vw, 3.5rem); }
.pro-band .eyebrow { color: var(--accent); margin-top: 1.5rem; }
.pro-band h2, .pro-band h3 { color: var(--on-dark); }
.pro-band p { color: var(--on-dark-2); }
.pro-band__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-top: 1.75rem; }
.pro-band__list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: rgba(245, 247, 250, 0.9); }
.pro-band__list .ti { color: var(--accent); font-size: 1.2rem; flex: none; margin-top: 0.1rem; }
.pro-band__actions { margin-top: 2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.pro-band__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.pro-band .btn--ghost { color: var(--on-dark); border-color: rgba(245, 247, 250, 0.35); }
.pro-band .btn--ghost:hover { background: rgba(245, 247, 250, 0.1); border-color: var(--on-dark); }
@media (max-width: 900px) {
    .pro-band { grid-template-columns: 1fr; }
    .pro-band__media { order: -1; }
    .pro-band__media img { min-height: 0; aspect-ratio: 16 / 9; }
    .pro-band::before { display: none; }
    .pro-band .eyebrow { margin-top: 0; }
}
@media (max-width: 560px) { .pro-band__list { grid-template-columns: 1fr; } }

/* ---------- Testimonianze ---------- */
.testimonials { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 1.25rem; }
.testimonial { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; position: relative; }
.testimonial:first-child { grid-row: span 2; padding: clamp(1.75rem, 3vw, 2.75rem); justify-content: space-between; background: var(--dark); color: var(--on-dark); border-color: var(--dark); overflow: hidden; }
.testimonial:first-child::before { content: "\201C"; position: absolute; top: -0.4rem; right: 1.5rem; font-family: var(--font-display); font-weight: 700; font-size: 9rem; line-height: 1; color: var(--accent); opacity: 0.9; }
.testimonial__quote { font-size: 1.1rem; line-height: 1.5; letter-spacing: -0.01em; position: relative; }
.testimonial:first-child .testimonial__quote { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 500; color: var(--on-dark); margin-top: 2rem; }
.testimonial__author { display: flex; align-items: center; gap: 0.9rem; position: relative; }
.testimonial__author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.testimonial__author strong { display: block; font-size: 0.95rem; }
.testimonial__author span { display: block; font-size: 0.85rem; color: var(--ink-2); }
.testimonial:first-child .testimonial__author span { color: var(--on-dark-2); }
.testimonial:first-child .testimonial__author img { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 800px) {
    .testimonials { grid-template-columns: 1fr; }
    .testimonial:first-child { grid-row: auto; }
}

/* ---------- Accordion FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq-layout .section-head { margin-bottom: 1.5rem; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.faq-aside__card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.faq-aside__card p { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 1rem; }
.accordion { border-top: 1px solid var(--line-strong); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
    width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.25rem 0; text-align: left; font-weight: 600; font-size: 1.05rem; line-height: 1.35;
}
.accordion__trigger .ti {
    flex: none; width: 30px; height: 30px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem; color: var(--ink); background: var(--surface-2); transition: transform 0.25s var(--ease), background-color 0.2s;
}
.accordion__trigger:hover .ti, .accordion__trigger[aria-expanded="true"] .ti { background: var(--accent); }
.accordion__trigger[aria-expanded="true"] .ti { transform: rotate(45deg); }
.accordion__panel { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 65ch; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } .faq-aside { position: static; } }

/* ---------- Articoli ---------- */
.posts { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem; }
.post-featured { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s, box-shadow 0.25s; }
.post-featured:hover { border-color: var(--ink); box-shadow: var(--shadow); }
.post-featured img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.post-featured__body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; }
.post-featured h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem); }
.post-list { display: flex; flex-direction: column; gap: 1.5rem; }
.post-mini { display: grid; grid-template-columns: 140px 1fr; gap: 1.25rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; flex: 1; transition: border-color 0.2s; }
.post-mini:hover { border-color: var(--ink); }
.post-mini img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.post-mini__body { padding: 1.1rem 1.25rem 1.1rem 0; display: flex; flex-direction: column; gap: 0.4rem; }
.post-mini h3 { font-size: 1.05rem; }
.post-meta { font-size: 0.82rem; color: var(--ink-3); display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.post-meta .badge { font-size: 0.72rem; }
.post-featured p, .post-mini p { color: var(--ink-2); font-size: 0.95rem; }
a.post-featured:hover h3, a.post-mini:hover h3 { color: var(--accent-deep); }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .post-mini { grid-template-columns: 1fr; } .post-mini img { aspect-ratio: 16 / 9; } .post-mini__body { padding: 1rem 1.25rem 1.25rem; } }

/* Griglia articoli (pagina consigli) */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s; }
.post-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.post-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card h3 { font-size: 1.15rem; }
.post-card p { color: var(--ink-2); font-size: 0.95rem; }
.post-card:hover h3 { color: var(--accent-deep); }
.post-card--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.post-card--wide img { height: 100%; aspect-ratio: auto; }
.post-card--wide .post-card__body { padding: 2rem; justify-content: center; }
.post-card--wide h3 { font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .post-card--wide { grid-column: span 2; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } .post-card--wide { grid-column: auto; grid-template-columns: 1fr; } .post-card--wide img { aspect-ratio: 3 / 2; } }

/* ---------- Modulo ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.lead__form { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.lead__aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: flex; flex-direction: column; gap: 1.5rem; }
.lead__aside h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--accent); margin-bottom: 1.1rem; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--surface); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.info-card h3 .ti { width: 30px; height: 30px; border-radius: 3px; background: var(--ink); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.info-card p, .info-card li { color: var(--ink-2); font-size: 0.95rem; }
.info-card a { color: var(--ink); font-weight: 500; }
.info-card a:hover { color: var(--accent-deep); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.25rem; }
.hours dt { font-weight: 500; color: var(--ink); }
.hours dd { margin: 0; color: var(--ink-2); font-family: var(--mono); font-size: 0.88rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: 0.93rem; }
.field label .req { color: var(--accent-deep); }
.field input, .field select, .field textarea {
    width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--surface); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234b5260' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
.field__help { font-size: 0.82rem; color: var(--ink-3); }
.field__error { font-size: 0.85rem; color: var(--error); min-height: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field--check { flex-direction: row; align-items: flex-start; gap: 0.7rem; }
.field--check input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--ink); flex: none; padding: 0; }
.field--check label { font-weight: 400; font-size: 0.9rem; color: var(--ink-2); }
.field--check label a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.field--check .field__error { grid-column: 1 / -1; }
.field--check-wrap { display: flex; flex-direction: column; gap: 0.3rem; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form-actions p { font-size: 0.85rem; color: var(--ink-3); }
.form-status { padding: 0.9rem 1.1rem; border-radius: var(--radius); font-weight: 500; margin-bottom: 1.25rem; }
.form-status--success { background: var(--success-soft); color: var(--success); }
.form-status--error { background: var(--error-soft); color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .lead { grid-template-columns: 1fr; } .lead__aside { position: static; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-2); border-top: 4px solid var(--accent); padding-block: clamp(3rem, 5vw, 4.5rem) 1.5rem; margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.site-footer__brand p { margin-top: 1.25rem; color: var(--on-dark-2); font-size: 0.95rem; max-width: 40ch; }
.site-footer__address { margin-top: 1.25rem; color: var(--on-dark-2); font-size: 0.95rem; line-height: 1.7; }
.site-footer__address a:hover { color: var(--accent); }
.site-footer__title { font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 1.1rem; font-weight: 700; }
.site-footer__col li { margin-bottom: 0.6rem; font-size: 0.95rem; }
.site-footer__col a, .site-footer__col button { color: var(--on-dark-2); transition: color 0.2s; }
.site-footer__col a:hover, .site-footer__col button:hover { color: var(--on-dark); }
.site-footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--on-dark-line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--on-dark-2); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Consenso cookie ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cookie-banner {
    position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 70;
    width: min(420px, calc(100vw - 2.5rem));
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px -20px rgba(20, 23, 28, 0.45), 0 2px 6px rgba(20, 23, 28, 0.08);
    padding: 1.4rem 1.5rem 1.5rem;
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.7rem; }
.cookie-banner__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.cookie-banner h2 { font-family: var(--font); text-transform: none; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.cookie-banner p { font-size: 0.88rem; line-height: 1.55; color: var(--ink-2); }
.cookie-banner p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.cookie-banner__actions .btn { flex: 1 1 0; padding: 0.75rem 1rem; font-size: 0.92rem; }
.cookie-banner__link {
    display: flex; align-items: center; justify-content: center; gap: 0.4rem; width: 100%;
    margin-top: 0.6rem; padding: 0.55rem 0.75rem; border-radius: var(--radius);
    font-size: 0.88rem; font-weight: 600; color: var(--ink-2);
    transition: background-color 0.2s, color 0.2s;
}
.cookie-banner__link .ti { font-size: 1.1rem; }
.cookie-banner__link:hover { color: var(--ink); background: var(--surface-2); }
@media (max-width: 480px) {
    .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; padding: 1.2rem 1.2rem 1.3rem; }
}

.cookie-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(13, 15, 18, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.25s var(--ease); }
.cookie-modal.is-visible .cookie-modal__backdrop { opacity: 1; }
.cookie-modal__panel {
    position: relative; width: min(600px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto;
    background: var(--surface); border-radius: var(--radius-lg); border-top: 4px solid var(--accent);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    padding: 1.6rem 1.75rem 1.75rem;
    opacity: 0; transform: translateY(20px) scale(0.98);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
}
.cookie-modal.is-visible .cookie-modal__panel { opacity: 1; transform: none; }
.cookie-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.cookie-modal__head h2 { font-size: 1.7rem; }
.cookie-modal__close { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--ink-2); background: var(--surface-2); transition: background-color 0.2s, color 0.2s; flex: none; }
.cookie-modal__close:hover { background: var(--ink); color: var(--on-dark); }
.cookie-modal__intro { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.cookie-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.cookie-cat:last-of-type { border-bottom: 1px solid var(--line); }
.cookie-cat h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.cookie-cat h3 label { cursor: pointer; }
.cookie-cat p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }
.cookie-cat__always { flex: none; font-size: 0.78rem; font-weight: 600; color: var(--success); background: var(--success-soft); padding: 0.3rem 0.65rem; border-radius: 999px; margin-top: 0.1rem; }
.switch { position: relative; flex: none; width: 48px; height: 28px; margin-top: 0.1rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; transition: background-color 0.2s var(--ease); }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.2s var(--ease); }
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(20px); background: var(--ink); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--ink); outline-offset: 2px; }
.cookie-modal__actions { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.4rem; }
.cookie-modal__actions-right { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cookie-modal__actions .btn { padding: 0.75rem 1.15rem; font-size: 0.92rem; }
body.modal-open { overflow: hidden; }
@media (max-width: 560px) {
    .cookie-modal { padding: 0; align-items: end; }
    .cookie-modal__panel { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 92vh; padding: 1.4rem 1.25rem 1.5rem; }
    .cookie-modal__actions, .cookie-modal__actions-right { flex-direction: column; align-items: stretch; }
    .cookie-modal__actions .btn { width: 100%; }
    .cookie-modal__actions-right { order: -1; }
}

/* ---------- Intestazione pagine interne ---------- */
.page-hero { position: relative; background: var(--dark); color: var(--on-dark); padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -8%; top: -30%; width: 46%; height: 200%; background: var(--dark-2); transform: skewX(-14deg); pointer-events: none; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--accent) 0 220px, transparent 220px); }
.page-hero > .container { position: relative; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.8rem); color: var(--on-dark); }
.page-hero .lead { margin-top: 1.25rem; color: var(--on-dark-2); }
.page-hero__media img { border-radius: var(--radius-lg); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.page-hero__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.75rem; }
.page-hero .btn--ghost { color: var(--on-dark); border-color: rgba(245, 247, 250, 0.35); }
.page-hero .btn--ghost:hover { border-color: var(--on-dark); background: rgba(245, 247, 250, 0.08); }
.breadcrumb { font-size: 0.85rem; color: var(--ink-3); display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent-deep); }
.page-hero .breadcrumb { color: var(--on-dark-2); }
.page-hero .breadcrumb a:hover { color: var(--accent); }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; } .page-hero h1 { max-width: none; } .page-hero::before { display: none; } }

/* ---------- Filtri e griglia catalogo ---------- */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter {
    padding: 0.55rem 1rem; border-radius: var(--radius); border: 1px solid var(--line-strong);
    font-size: 0.92rem; font-weight: 500; background: var(--surface); color: var(--ink-2);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-2); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .product-grid, .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .product-grid, .equipment-grid { grid-template-columns: 1fr; } }

/* Categorie dettagliate (pagina ricambi) */
.cat-rows { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat-row { display: grid; grid-template-columns: 160px 1fr; gap: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.cat-row:hover { border-color: var(--ink); }
.cat-row img { width: 100%; height: 100%; object-fit: cover; }
.cat-row__body { padding: 1.25rem 1.25rem 1.25rem 0; }
.cat-row h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.cat-row p { color: var(--ink-2); font-size: 0.93rem; }
.cat-row .mono { display: block; margin-top: 0.6rem; font-size: 0.8rem; color: var(--accent-deep); font-weight: 600; }
@media (max-width: 900px) { .cat-rows { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cat-row { grid-template-columns: 1fr; } .cat-row img { aspect-ratio: 16 / 9; } .cat-row__body { padding: 1.1rem 1.25rem 1.25rem; } }

/* Scheda attrezzatura dettagliata */
.equipment-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.equipment-detail img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.equipment-detail__body { padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem) 0; }
.equipment-detail h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.equipment-detail p { color: var(--ink-2); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 1.5rem; margin-top: 1.25rem; }
.spec { border-left: 3px solid var(--accent); padding-left: 0.85rem; }
.spec dt { font-size: 0.78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.spec dd { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 0.95rem; }
.equipment-detail__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.equipment-detail__price { font-family: var(--mono); font-size: 1.35rem; font-weight: 600; }
.equipment-detail__price small { font-family: var(--font); font-weight: 400; color: var(--ink-3); font-size: 0.8rem; }
.equipment-list { display: grid; gap: 1.5rem; }
@media (max-width: 900px) {
    .equipment-detail { grid-template-columns: 1fr; }
    .equipment-detail img { min-height: 0; aspect-ratio: 16 / 9; }
    .equipment-detail__body { padding: 1.5rem; }
}
@media (max-width: 480px) { .specs { grid-template-columns: 1fr; } }

/* ---------- Blocchi vari ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.stat { border-top: 4px solid var(--accent); padding-top: 1rem; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 1.7rem + 1.8vw, 3.4rem); font-weight: 700; letter-spacing: 0; line-height: 1; }
.stat span { display: block; color: var(--ink-2); margin-top: 0.4rem; font-size: 0.95rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: border-color 0.2s; }
.tile:hover { border-color: var(--ink); }
.tile--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile--accent p, .tile--accent li { color: rgba(20, 23, 28, 0.8); }
.tile--accent .ti { background: var(--ink); color: var(--accent); }
.tile--accent li::before { background: var(--ink); }
.tile--dark { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.tile--dark h3 { color: var(--on-dark); }
.tile--dark p, .tile--dark li { color: var(--on-dark-2); }
.tile--dark .ti { background: var(--accent); color: var(--accent-ink); }
.tile--image { padding: 0; overflow: hidden; }
.tile--image img { width: 100%; height: 100%; object-fit: cover; }
.tile .ti { width: 46px; height: 46px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--accent); background: var(--ink); margin-bottom: 1rem; }
.tile h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.tile p, .tile li { color: var(--ink-2); font-size: 0.95rem; }
.tile ul { margin-top: 0.75rem; display: grid; gap: 0.4rem; }
.tile li { display: flex; gap: 0.5rem; align-items: flex-start; }
.tile li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 0.6rem; }
.tile--span2 { grid-column: span 2; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile--span2 { grid-column: auto; } }

.timeline { display: grid; gap: 0; border-left: 2px solid var(--line-strong); margin-left: 0.5rem; }
.timeline__item { position: relative; padding: 0 0 2rem 2rem; }
.timeline__item::before { content: ""; position: absolute; left: -8px; top: 0.4rem; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__year { font-family: var(--font-display); font-weight: 700; color: var(--accent-deep); font-size: 1.1rem; letter-spacing: 0.04em; }
.timeline__item h3 { font-size: 1.1rem; margin: 0.2rem 0 0.4rem; }
.timeline__item p { color: var(--ink-2); font-size: 0.95rem; max-width: 55ch; }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 0.85rem; color: var(--ink-3); margin-top: 0.5rem; }
.gallery figure:first-child { grid-column: span 2; }
.gallery figure:first-child img { aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } .gallery figure:first-child { grid-column: auto; } }

.cta-band {
    position: relative; overflow: hidden;
    background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3.5rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: var(--ink); opacity: 0.08; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); pointer-events: none; }
.cta-band h2 { color: var(--accent-ink); max-width: 22ch; position: relative; }
.cta-band p { color: rgba(20, 23, 28, 0.78); margin-top: 0.75rem; max-width: 50ch; position: relative; }
.cta-band .btn--dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.cta-band .btn--dark:hover { background: var(--dark-3); }
.cta-band .btn--ghost { color: var(--accent-ink); border-color: rgba(20, 23, 28, 0.4); }
.cta-band .btn--ghost:hover { background: rgba(20, 23, 28, 0.08); border-color: var(--ink); }
.cta-band .btn--primary { background: var(--surface); border-color: var(--surface); }
.cta-band__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; position: relative; }

/* ---------- Contenuto editoriale (articoli, pagine legali) ---------- */
.prose { max-width: 72ch; font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 1.9rem; margin: 2.25rem 0 0.9rem; color: var(--ink); }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 0.6rem; color: var(--ink); }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.25rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--accent-deep); }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-deep); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.prose .note { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink); font-size: 0.95rem; margin: 1.5rem 0; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); border-left: 2px solid var(--line); }
.legal-nav a { display: block; padding: 0.45rem 0 0.45rem 1rem; font-size: 0.9rem; color: var(--ink-2); margin-left: -2px; border-left: 2px solid transparent; }
.legal-nav a:hover, .legal-nav a.is-active { color: var(--ink); border-left-color: var(--accent); }
.legal-updated { font-size: 0.85rem; color: var(--ink-3); margin-top: 1rem; font-family: var(--mono); }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; border-left: 0; } .legal-nav a { border-left: 0; padding: 0.3rem 0; } }

.article-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.article-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius-lg); margin: 2rem 0 2.5rem; }
.article-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; }
.article-aside .post-mini { grid-template-columns: 96px 1fr; }
.article-aside .post-mini h3 { font-size: 0.98rem; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* ---------- Comparsa allo scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: 0.08s; }
[data-reveal="3"] { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .card, .btn, .bento__item img, .card__media img { transition: none; }
}

/* ---------- Pagina 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.error-page .mono { font-family: var(--font-display); font-size: clamp(5rem, 14vw, 10rem); color: var(--ink); font-weight: 700; line-height: 1; background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 88%, transparent 88%); display: inline-block; padding-inline: 0.15em; }
.error-page p { color: var(--ink-2); margin: 1rem auto 2rem; max-width: 45ch; }
