/* ==========================================================================
   MELAUTO SRLS — Studio di Consulenza Automobilistica
   Foglio di stile principale (nessuna dipendenza esterna)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --bg: #121417;          /* antracite profondo */
    --bg-2: #181b1f;        /* antracite */
    --surface: #1f2328;     /* superfici secondarie */
    --surface-2: #272c32;
    --line: #30363d;
    --line-soft: #252a30;

    --text: #f3f4f6;
    --text-2: #c3c8cf;
    --muted: #949ba4;

    --orange: #f07c0a;      /* arancione MELAUTO */
    --orange-hi: #ff9a2e;
    --orange-soft: rgba(240, 124, 10, .12);
    --on-orange: #15171a;

    --radius: 14px;
    --radius-sm: 10px;
    --container: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
    --header-h: 76px;

    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 54px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text-2);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
h1, h2, h3 { color: var(--text); font-family: var(--font-display); line-height: 1.15; letter-spacing: -.015em; }

:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
    width: 1.25em; height: 1.25em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--orange); color: var(--on-orange); font-weight: 700;
    padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--orange-hi); font-size: .78rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 700; margin-top: 12px; }

/* ---------- Pulsanti ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 10px 20px;
    border-radius: 999px; border: 1px solid transparent;
    font-weight: 650; font-size: .95rem; line-height: 1.2; white-space: nowrap;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: var(--orange-hi); }
.btn--primary:hover .icon { transform: translateX(3px); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange-hi); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; }

.topbar { background: #0d0f11; border-bottom: 1px solid var(--line-soft); font-size: .8rem; color: var(--muted); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 38px; }
.topbar ul { display: flex; gap: 24px; }
.topbar li, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar .icon { width: 15px; height: 15px; color: var(--orange); }
.topbar a:hover { color: var(--text); }

.navbar {
    background: rgba(24, 27, 31, .92);
    border-bottom: 1px solid var(--line-soft);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    transition: box-shadow .25s var(--ease);
}
.is-scrolled .navbar { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.navbar__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand__logo {
    display: grid; place-items: center;
    width: 64px; height: 48px; padding: 5px 7px;
    background: #fff; border-radius: 10px;
}
.brand__logo img { width: 100%; height: auto; }
.brand__logo--sm { width: 56px; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.brand__tagline { color: var(--orange-hi); font-size: .8rem; font-weight: 500; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
    position: relative; display: block; padding: 10px 14px;
    color: var(--text-2); font-weight: 550; font-size: .95rem; border-radius: 8px;
    transition: color .2s var(--ease);
}
.nav__list a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--orange); border-radius: 2px; transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
}
.nav__list a:hover, .nav__list a[aria-current="true"] { color: var(--text); }
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__mobile-creds { display: none; }

.nav-toggle {
    display: none; width: 46px; height: 46px; border-radius: 10px;
    border: 1px solid var(--line); color: var(--text);
    align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(64px, 10vw, 128px) 0 clamp(64px, 9vw, 112px);
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(240, 124, 10, .10), transparent 60%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
    border-bottom: 1px solid var(--line-soft);
}
/* Motivo "strada" ripreso dal logo: una carreggiata con linea di mezzeria tratteggiata */
.hero__road {
    position: absolute; top: -10%; bottom: -10%; right: 34%;
    width: 120px; transform: rotate(24deg); transform-origin: center;
    background:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, .07) 0 34px, transparent 34px 64px) center / 3px 100% no-repeat,
        linear-gradient(90deg, transparent, rgba(255, 255, 255, .025) 20%, rgba(255, 255, 255, .025) 80%, transparent);
    border-inline: 1px solid rgba(255, 255, 255, .04);
    pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero__title { font-size: clamp(2.3rem, 5.6vw, 4.1rem); font-weight: 800; letter-spacing: -.03em; margin: 20px 0 24px; max-width: 14ch; }
.hero__title span { color: var(--orange); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__panel {
    background: linear-gradient(180deg, rgba(39, 44, 50, .85), rgba(31, 35, 40, .85));
    border: 1px solid var(--line);
    border-radius: 20px; padding: clamp(24px, 3vw, 36px);
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6);
}
.stat { display: flex; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.stat__value { font-family: var(--font-display); font-size: clamp(3.6rem, 6vw, 4.6rem); line-height: .9; font-weight: 800; color: var(--text); letter-spacing: -.04em; }
.stat__value span { color: var(--orange); }
.stat__label { color: var(--text-2); font-size: .98rem; line-height: 1.4; }
.facts { display: grid; gap: 20px; margin-top: 24px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts .icon { width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }
.facts strong { display: block; color: var(--text); font-weight: 650; font-size: .98rem; line-height: 1.35; }
.facts span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.5; margin-top: 2px; }

/* ==========================================================================
   SERVIZI
   ========================================================================== */
.services { padding: clamp(72px, 10vw, 120px) 0; background: var(--bg); }
.service-list {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line); border-left: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
}
.service {
    position: relative; display: grid;
    grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 20px;
    padding: clamp(28px, 3.6vw, 44px);
    border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: var(--bg-2);
    transition: background-color .25s var(--ease);
}
.service::before {
    content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
    background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service:hover { background: var(--surface); }
.service:hover::before, .service:focus-within::before { transform: scaleX(1); }
.service__num {
    position: absolute; top: clamp(24px, 3vw, 36px); right: clamp(24px, 3.6vw, 44px);
    font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .1em; color: var(--muted);
}
.service__icon {
    grid-row: 1 / span 3; display: grid; place-items: center;
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--orange-soft); color: var(--orange); border: 1px solid rgba(240, 124, 10, .25);
}
.service__icon .icon { width: 28px; height: 28px; }
.service__title { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 700; padding-right: 40px; }
.service__text { margin-top: 10px; color: var(--text-2); max-width: 46ch; }
.service__more {
    grid-column: 2; justify-self: start; margin-top: 22px;
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px;
    color: var(--orange-hi); font-weight: 650; font-size: .95rem;
}
.service__more .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.service__more:hover { color: var(--text); }
.service__more:hover .icon { transform: translateX(4px); }

/* ==========================================================================
   AREA CLIENTI
   ========================================================================== */
.clients { padding: 0 0 clamp(72px, 10vw, 120px); }
.clients__panel {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(240px, 300px); gap: clamp(24px, 4vw, 48px); align-items: center;
    padding: clamp(28px, 4.5vw, 56px);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(240, 124, 10, .14), transparent 70%),
        var(--surface);
    border: 1px solid var(--line); border-radius: 20px;
}
.clients__panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--orange); }
.clients__badge {
    align-self: start; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px;
    background: var(--bg); border: 1px solid var(--line); color: var(--orange);
}
.clients__badge .icon { width: 30px; height: 30px; }
.clients__text { margin-top: 16px; max-width: 60ch; }
.notice {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
    padding: 10px 16px; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--line);
    color: var(--orange-hi); font-size: .9rem; font-weight: 550;
}
.notice .icon { width: 18px; height: 18px; }
.clients__hint { margin-top: 12px; text-align: center; font-size: .82rem; color: var(--muted); }
.clients__hint a { white-space: nowrap; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.clients__hint a:hover { color: var(--orange-hi); }

/* ==========================================================================
   CONTATTI
   ========================================================================== */
.contacts { padding: clamp(72px, 10vw, 120px) 0; background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.contacts__grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }

.contact-direct { display: grid; gap: 12px; align-content: start; }
.contact-line {
    display: flex; align-items: center; gap: 16px; padding: 20px 22px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.contact-line:hover { border-color: var(--orange); background: var(--surface-2); }
.contact-line__icon {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    background: var(--orange); color: var(--on-orange);
}
.contact-line__label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 650; }
.contact-line__value { display: block; color: var(--text); font-weight: 700; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.3; word-break: break-word; }

.location {
    display: flex; flex-direction: column; padding: 26px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.location__icon { color: var(--orange); }
.location__icon .icon { width: 26px; height: 26px; }
.location__title { margin-top: 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.location__addr { margin-top: 6px; color: var(--text); font-size: 1.12rem; font-weight: 600; line-height: 1.45; }
.location__map {
    margin-top: auto; padding-top: 18px; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
    color: var(--orange-hi); font-weight: 600; font-size: .9rem;
}
.location__map .icon { width: 15px; height: 15px; }
.location__map:hover { color: var(--text); }

.company-data { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #0d0f11; border-top: 1px solid var(--line-soft); padding-top: 40px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__name { color: var(--text); font-weight: 800; letter-spacing: .02em; }
.footer__desc { font-size: .86rem; color: var(--muted); }
.footer__side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.social { display: flex; gap: 10px; }
.social__item {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); color: var(--muted);
    transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.social__item .icon { width: 19px; height: 19px; }
.icon--fill { fill: currentColor; stroke: none; }
span.social__item { cursor: default; }
a.social__item:hover { color: var(--orange-hi); border-color: var(--orange); background: var(--orange-soft); }
.footer__nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer__nav a { color: var(--text-2); font-size: .92rem; padding: 8px 0; }
.footer__nav a:hover { color: var(--orange-hi); }
.footer__bottom {
    display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
    padding-block: 20px 28px; border-top: 1px solid var(--line-soft);
    font-size: .82rem; color: var(--muted);
}

/* ==========================================================================
   DIALOG (approfondimenti servizi)
   ========================================================================== */
.dialog {
    width: min(760px, calc(100% - 32px)); max-height: min(86vh, 900px);
    padding: 0; border: 1px solid var(--line); border-radius: 18px;
    background: var(--surface); color: var(--text-2);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7);
    overflow: hidden;
}
.dialog::backdrop { background: rgba(6, 7, 9, .78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog[open] { animation: dialog-in .28s var(--ease); }
.dialog[open]::backdrop { animation: fade-in .28s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.dialog__inner { display: flex; flex-direction: column; max-height: inherit; }
.dialog__head {
    display: flex; align-items: center; gap: 16px;
    padding: 22px 22px 22px 28px; border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}
.dialog__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--orange); color: var(--on-orange); }
.dialog__icon .icon { width: 24px; height: 24px; }
.dialog__title { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 700; margin-right: auto; }
.dialog__close {
    display: grid; place-items: center; width: 44px; height: 44px; flex: none;
    border-radius: 10px; color: var(--text-2); border: 1px solid var(--line);
}
.dialog__close:hover { color: var(--text); border-color: var(--orange); }
.dialog__body { padding: 28px; overflow-y: auto; overscroll-behavior: contain; }

.prose > * + * { margin-top: 16px; }
.prose h3 { font-size: 1.05rem; color: var(--orange-hi); text-transform: uppercase; letter-spacing: .1em; margin-top: 28px; }
.prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--text); }
.prose .lead { font-size: 1.1rem; }
.callout { padding: 16px 20px; border-left: 3px solid var(--orange); background: var(--bg-2); border-radius: 0 10px 10px 0; color: var(--text); }

.steps { counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; min-height: 32px; }
.steps li::before {
    content: counter(step); position: absolute; left: 0; top: -2px;
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--orange); color: var(--orange-hi); font-weight: 700; font-size: .85rem;
}

.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cases > div { padding: 16px 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.cases dt { color: var(--text); font-weight: 700; }
.cases dt::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 2px; background: var(--orange); vertical-align: middle; }
.cases dd { margin-top: 6px; font-size: .94rem; }

body.dialog-open { overflow: hidden; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
    .nav__cta { display: none; }
    .contacts__grid { grid-template-columns: 1fr 1fr; }
    .contact-direct { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__title { max-width: 16ch; }
    .hero__road { right: 8%; }
    .clients__panel { grid-template-columns: auto minmax(0, 1fr); }
    .clients__action { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    :root { --header-h: 68px; }
    html { scroll-padding-top: calc(var(--header-h) + 12px); }
    .topbar { display: none; }
    .navbar { position: relative; }

    .nav-toggle { display: inline-flex; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
        flex-direction: column; align-items: stretch; gap: 0;
        max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
        padding: 12px var(--gutter) 28px;
        background: var(--bg-2); border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
    }
    .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .nav__list { flex-direction: column; gap: 0; }
    .nav__list li + li { border-top: 1px solid var(--line-soft); }
    .nav__list a { padding: 16px 4px; font-size: 1.08rem; color: var(--text); }
    .nav__list a::after { display: none; }
    .nav__cta { display: inline-flex; margin-top: 16px; min-height: 52px; }
    .nav__mobile-creds { display: grid; gap: 6px; margin-top: 20px; font-size: .82rem; color: var(--muted); }
    .nav__mobile-creds li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--orange); vertical-align: middle; }

    .service-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .brand { gap: 10px; }
    .brand__logo { width: 54px; height: 40px; padding: 4px 6px; border-radius: 8px; }
    .brand__name { font-size: 1rem; }
    .brand__tagline { font-size: .72rem; }

    .hero__actions .btn { flex: 1 1 100%; }
    .eyebrow { letter-spacing: .1em; font-size: .72rem; }
    .hero { padding-top: 48px; }
    .brand__tagline { font-size: .7rem; }
    .hero__road { right: -10%; opacity: .7; }

    .service { grid-template-columns: 1fr; row-gap: 0; }
    .service__icon { grid-row: auto; width: 50px; height: 50px; margin-bottom: 18px; }
    .service__more { grid-column: 1; }
    .service__title { padding-right: 32px; }

    .clients__panel { grid-template-columns: 1fr; }
    .clients__badge { width: 54px; height: 54px; }
    .notice { align-items: flex-start; }

    .contacts__grid, .contact-direct { grid-template-columns: 1fr; }

    .footer__inner { flex-direction: column; align-items: flex-start; }
    .footer__side { align-items: flex-start; }

    /* Dialog a tutta altezza dal basso su smartphone */
    .dialog {
        width: 100%; max-width: 100%; max-height: 92dvh;
        margin: auto 0 0; border-radius: 18px 18px 0 0; border-bottom: 0;
    }
    .dialog[open] { animation-name: sheet-in; }
    @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
    .dialog__head { padding: 16px 16px 16px 20px; gap: 12px; }
    .dialog__icon { width: 38px; height: 38px; }
    .dialog__body { padding: 22px 20px 32px; }
    .cases { grid-template-columns: 1fr; }
}

@media (max-width: 340px) {
    .brand__tagline { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
    .site-header, .hero__road, .service__more, .clients__action, .location__map { display: none !important; }
    body { background: #fff; color: #000; }
}
