/* ------------------------------------------------------------------
   Living Serramenti — sito pubblico.
   Stile: carta calda, verde oliva scuro, parole in corsivo serif.
   Font ospitati sul sito, nessun servizio esterno.
   ------------------------------------------------------------------ */

@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-wght.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+2726, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-ext-wght.woff2") format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  --paper: #f8f6f1;
  --paper-2: #eeebe3;
  --paper-3: #e4e2d6;
  --surface: #fbfaf6;
  --ink: #252c28;
  --ink-2: #414840;
  --muted: #666c65;
  --line: #dcded4;
  --accent: #815638;
  --olive: #7a805f;
  --sand: #ddc4a8;
  --green: #27372d;
  --green-2: #1f2a24;
  --on-dark: #eff0e5;
  --on-dark-muted: #c3cbbd;
  --ok: #2f6a45;
  --error: #9b3a2e;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 3px;
  --header-h: 76px;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --section: clamp(80px, 9vw, 128px);

  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 em, h2 em, h3 em, .hero-title em, .footer-cta-title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.3rem, 4.3vw, 4rem); font-weight: 450; line-height: 1.06; letter-spacing: -0.045em; }
h2 em { color: var(--olive); font-size: 1.06em; }
h3 { font-size: 1.3rem; font-weight: 550; line-height: 1.25; letter-spacing: -0.025em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--sand); }
svg { flex: none; }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--accent); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.17em; line-height: 1.6; text-transform: uppercase; }
.eyebrow-light { color: #d9d2bb; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #c8d5b0; box-shadow: 0 0 0 5px rgb(211 229 182 / 14%); animation: pulse 2.6s ease-in-out infinite; }
.label { display: block; margin-bottom: 20px; color: var(--accent); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.17em; text-transform: uppercase; }
.lead, .section-lead { max-width: 30rem; color: var(--muted); font-size: 1rem; line-height: 1.8; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius); font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus-visible { transform: none; }

/* ---------------------------------------------------------------- pulsanti e link */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--radius); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.btn svg, .text-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg, .text-link:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.84rem; gap: 10px; }
.btn-dark, .btn-primary { background: var(--green); color: #fff; }
.btn-dark:hover, .btn-primary:hover { background: #1c2a21; }
.btn-light { background: #f4f1e6; color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost-light { border-color: rgb(255 255 255 / 45%); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgb(255 255 255 / 8%); }
.btn-outline, .btn-secondary { border-color: #c9cec4; color: var(--ink); background: transparent; }
.btn-outline:hover, .btn-secondary:hover { background: #eeeee7; border-color: var(--ink-2); }
.btn-wide { width: 100%; justify-content: space-between; }
.text-link { display: inline-flex; align-items: center; gap: 24px; padding: 10px 0 8px; border-bottom: 1px solid currentColor; color: var(--ink); font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--accent); }
.text-link-light { color: var(--on-dark); }
.text-link-light:hover { color: var(--sand); }

/* ---------------------------------------------------------------- intestazione */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgb(248 246 241 / 92%); backdrop-filter: saturate(1.3) blur(15px); -webkit-backdrop-filter: saturate(1.3) blur(15px); border-bottom: 1px solid rgb(220 222 212 / 55%); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 32px rgb(38 53 38 / 6%); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 1.05rem; font-weight: 750; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand img { width: 44px; height: 44px; object-fit: contain; transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 0.9rem; font-weight: 500; }
.site-nav a:not(.btn) { position: relative; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.site-nav a:not(.btn):hover { color: var(--accent); }
.site-nav a:not(.btn):hover::after, .site-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.site-nav a.is-current { color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 6px; padding-left: 24px; border-left: 1px solid var(--line); }
.tool { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 42px; color: var(--ink-2); font-size: 0.88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.tool-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), transform .4s var(--ease); }
.tool-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tool:hover .tool-icon { background: var(--green); border-color: var(--green); color: #fff; }
.tool-phone:hover .tool-icon { transform: rotate(-12deg); }
.tool-phone:hover .tool-text { color: var(--accent); }
.tool-text { display: none; padding-right: 10px; transition: color .2s; }
.tool-account::after { content: attr(data-tip); position: absolute; top: calc(100% + 10px); right: 0; padding: 6px 10px; background: var(--ink); color: #fff; border-radius: 4px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.tool-account:hover::after, .tool-account:focus-visible::after { opacity: 1; transform: none; }
.nav-toggle { display: none; width: 42px; height: 42px; margin-left: auto; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: background .3s var(--ease), border-color .3s var(--ease); }
.nav-toggle[aria-expanded="true"] { background: var(--green); border-color: var(--green); }
.nav-toggle[aria-expanded="true"] span { background: #fff; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; margin: 5px auto; background: var(--ink); transition: transform .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(840px, calc(100svh - var(--header-h))); display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: #28332b; color: #fff; }
.hero-media, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: 50% 53%; animation: settle 2.2s var(--ease) both; will-change: transform; }
.hero-shade { background: linear-gradient(90deg, rgb(21 37 27 / 87%) 0%, rgb(24 41 27 / 52%) 42%, rgb(28 42 24 / 12%) 76%), linear-gradient(0deg, rgb(21 35 27 / 48%), transparent 35%); }
.hero-content { position: relative; padding-block: 96px 150px; }
.hero-content > * { animation: rise 1s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .12s; }
.hero-content > :nth-child(3) { animation-delay: .24s; }
.hero-content > :nth-child(4) { animation-delay: .36s; }
.hero-title { max-width: 12ch; margin: 8px 0 28px; font-size: clamp(3.2rem, 6.6vw, 6.6rem); font-weight: 430; line-height: 1.02; letter-spacing: -0.055em; text-wrap: balance; }
.hero-title em { color: #e2d7bf; font-size: 1.05em; }
.hero-lead { max-width: 30rem; color: #eeefe7; font-size: 1.02rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; animation: rise 1s .5s var(--ease) both; }
.hero-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgb(255 255 255 / 28%); }
.hero-bottom a { display: inline-flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; letter-spacing: 0.06em; text-transform: none; font-size: 0.82rem; }
.hero-bottom a span { font-size: 1.1rem; animation: nudge 2.4s ease-in-out infinite; }

/* ---------------------------------------------------------------- nastro scorrevole */
.marquee { overflow: hidden; padding-block: 22px; background: #eaeade; border-bottom: 1px solid #d5d8c6; color: #4c5546; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.marquee em { font-family: var(--serif); font-size: 1.3em; color: var(--olive); }
.marquee i { font-style: normal; font-size: 0.6rem; color: var(--accent); }

/* ---------------------------------------------------------------- titoli di sezione */
.section-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 32px 72px; margin-bottom: 56px; }
.section-head .text-link { margin-top: 24px; }

/* ---------------------------------------------------------------- soluzioni: pannelli che si allargano */
.solutions { padding-block: clamp(64px, 7vw, 104px); }
.solutions .section-head { margin-bottom: 40px; }
.solutions h2 { max-width: 13ch; }
.panels { display: flex; gap: 10px; height: clamp(380px, calc(100svh - var(--header-h) - 300px), 600px); }
.panel { position: relative; isolation: isolate; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 4px; background: var(--green); color: #fff; transition: flex-grow .9s var(--ease); }
.panel.is-open { flex-grow: 4.2; }
.panel-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); filter: saturate(.8); transition: transform 1.6s var(--ease), filter .9s var(--ease); }
.panel.is-open .panel-media { transform: scale(1); filter: none; }
.panel::before, .panel::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity .9s var(--ease); }
.panel::before { background: rgb(22 33 26 / 58%); }
.panel::after { background: linear-gradient(0deg, rgb(18 28 22 / 88%) 0%, rgb(18 28 22 / 35%) 42%, rgb(18 28 22 / 0%) 70%); opacity: 0; }
.panel.is-open::before { opacity: 0; }
.panel.is-open::after { opacity: 1; }
.panel:not(.is-open):hover::before { background: rgb(22 33 26 / 45%); }
.panel-more::before { background: transparent; }
.panel-more::after { display: none; }
.panel-toggle { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 24px 22px; border: 0; background: none; color: #fff; text-align: left; cursor: pointer; }
.panel-toggle:focus-visible { outline: 2px solid var(--sand); outline-offset: -6px; }
.panel.is-open .panel-toggle { pointer-events: none; }
.panel-num { font-size: 0.74rem; font-weight: 650; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; opacity: .85; }
.panel-name { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 1.05rem; font-weight: 550; letter-spacing: -0.01em; white-space: nowrap; transition: opacity .4s var(--ease); }
.panel.is-open .panel-name { opacity: 0; }
.panel-body { position: absolute; left: 0; bottom: 0; z-index: 1; display: grid; justify-items: start; gap: 12px; width: min(32rem, 100%); padding: clamp(24px, 3vw, 40px); opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.panel.is-open .panel-body { opacity: 1; transform: none; pointer-events: auto; transition: opacity .7s .35s var(--ease), transform .7s .35s var(--ease); }
.panel-tag { padding: 5px 11px; background: rgb(245 243 232 / 16%); border: 1px solid rgb(245 243 232 / 30%); border-radius: 20px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; backdrop-filter: blur(6px); }
.panel-body h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 450; line-height: 1.1; letter-spacing: -0.04em; }
.panel-body h3 em { color: #d8d3b0; }
.panel-body p { max-width: 28rem; color: rgb(255 255 255 / 84%); font-size: 0.95rem; line-height: 1.65; }
.panel-body ul { width: 100%; margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px solid rgb(255 255 255 / 16%); }
.panel-body li { padding: 11px 0; border-bottom: 1px solid rgb(255 255 255 / 16%); font-size: 0.92rem; font-weight: 550; }
.panel-body li a { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: inherit; text-decoration: none; transition: color .2s; }
.panel-body li a:hover { color: var(--sand); }
.panel-body li svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.panel-body li a:hover svg { transform: translateX(4px); }
.panel-body .text-link { margin-top: 6px; }
.image-note { margin-top: 18px; color: #74796d; font-size: 0.7rem; }

/* ---------------------------------------------------------------- come lavoriamo: linea del tempo */
.process { background: var(--paper-2); }
.process-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.process-intro { position: sticky; top: calc(var(--header-h) + 48px); }
.process-intro .section-lead { margin-top: 24px; }
.process-meter { display: flex; align-items: baseline; gap: 10px; margin: 44px 0 36px; font-family: var(--serif); font-style: italic; color: var(--muted); }
.process-current { display: inline-block; min-width: 1.2em; font-size: clamp(4rem, 6vw, 5.6rem); line-height: 1; color: var(--accent); }
.process-current.is-changing { animation: tick .6s var(--ease); }
.process-total { font-size: 1.5rem; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; }
.timeline::before { background: #c4c9b6; }
.timeline::after { background: var(--ink); transform: scaleY(var(--progress, 0)); transform-origin: top; }
.phase { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 32px; padding-bottom: clamp(56px, 8vh, 96px); opacity: .35; transition: opacity .7s var(--ease); }
.phase:last-child { padding-bottom: 0; }
.phase.is-passed { opacity: .7; }
.phase.is-active { opacity: 1; }
.phase-num { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--paper-2); border: 1px solid #b9bfaa; font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1; color: var(--muted); transition: background .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease), transform .5s var(--ease); }
.phase.is-passed .phase-num { border-color: var(--ink); color: var(--ink); }
.phase.is-active .phase-num { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.08); }
.phase h3 { margin: 12px 0 10px; font-size: clamp(1.4rem, 2.1vw, 1.9rem); font-weight: 500; letter-spacing: -0.035em; }
.phase p { max-width: 28rem; color: var(--muted); font-size: 0.98rem; }
@keyframes tick { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .panels { flex-direction: column; height: auto; gap: 8px; }
  .panel { flex: none; height: 72px; transition: height .8s var(--ease); }
  .panel.is-open { height: min(440px, 68svh); }
  .panel-toggle { flex-direction: row; justify-content: flex-start; align-items: center; gap: 16px; height: 72px; bottom: auto; padding: 0 20px; }
  .panel-name { writing-mode: horizontal-tb; transform: none; }
  .panel-body { width: 100%; }
  .process-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .process-intro { position: static; }
  .process-meter { display: none; }
  .process-intro .btn { margin-top: 28px; }
}

/* ---------------------------------------------------------------- showroom */
.showroom { background: var(--paper); }
.contact { background: var(--paper-2); }
.works-wrap { margin-bottom: 56px; }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.work { position: relative; display: flex; flex-direction: column; background: var(--paper-2); border-radius: 4px; overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.work:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -24px rgb(31 42 36 / 38%); }
.work-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work:hover .work-media img { transform: scale(1.05); }
.work-year { position: absolute; top: 14px; left: 14px; padding: 3px 12px; border-radius: 99px; background: rgb(248 246 241 / 88%); backdrop-filter: blur(6px); color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.05rem; line-height: 1.5; }
.work-copy { flex: 1; padding: 24px 26px 28px; }
.work small { display: block; margin-bottom: 8px; color: var(--accent); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; }
.work h3 { font-size: 1.15rem; }
.work p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }

/* più di tre lavori: galleria a scorrimento (automatico, si ferma al passaggio del mouse) */
.is-slider .works { display: flex; gap: 28px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 2px 28px; margin: -6px -2px -28px; }
.is-slider .works::-webkit-scrollbar { display: none; }
.is-slider .works:focus-visible { outline-offset: 6px; }
.is-slider .work { flex: 0 0 calc((100% - 56px) / 3); scroll-snap-align: start; }
.works-bar { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.works-count { flex: none; min-width: 4.6em; color: var(--muted); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.works-count b { color: var(--ink); font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.5rem; }
.works-progress { position: relative; flex: 1; height: 2px; overflow: hidden; background: #d6d9cc; border-radius: 2px; }
.works-progress span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--green); }
.works-progress span.is-running { animation: works-fill var(--works-delay, 5s) linear forwards; }
.works-wrap.is-paused .works-progress span { animation-play-state: paused; }
.works-buttons { display: flex; flex: none; gap: 8px; }
.works-btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #c9cec4; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.works-btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.works-btn:active { transform: scale(.94); }
.works-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.works-btn .i-play { display: none; fill: currentColor; stroke: none; }
.works-btn[aria-pressed="true"] .i-play { display: block; }
.works-btn[aria-pressed="true"] .i-pause { display: none; }
@keyframes works-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.visit { display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto; align-items: center; gap: 24px 48px; padding-top: 36px; border-top: 1px solid #c6cab9; }
.visit > p { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; letter-spacing: -0.03em; }
.visit em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--olive); font-size: 1.1em; }
.visit-info { display: grid; gap: 2px; color: var(--muted); font-size: 0.88rem; }

/* ---------------------------------------------------------------- contatti */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-copy .section-lead { margin: 28px 0 0; }
.contact-phone { display: block; margin-top: 40px; font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; letter-spacing: -0.04em; text-decoration: none; transition: color .2s; }
.contact-phone:hover { color: var(--accent); }
.contact-email { display: inline-block; margin-top: 6px; border-bottom: 1px solid var(--line); font-size: 0.95rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-address { margin-top: 44px; }
.contact-address > span { color: var(--muted); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-address p { margin: 8px 0 4px; font-size: 0.9rem; }

.form { display: grid; gap: 20px; padding: clamp(24px, 3.4vw, 40px); background: var(--surface); border: 1px solid #e0e3d5; }
.form h3 { font-size: 1.7rem; font-weight: 500; letter-spacing: -0.035em; }
.form-intro { margin-top: -10px; color: var(--muted); font-size: 0.86rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; font-size: 0.8rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 13px 14px; border: 1px solid #d3d8c8; border-radius: 2px; background: #fafbf6; font-size: 0.95rem; font-weight: 450; line-height: 1.5; transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--green); box-shadow: 0 0 0 3px rgb(39 55 45 / 10%); }
.field ::placeholder { color: #9aa093; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 0.82rem; color: var(--ink-2); }
.check input { flex: none; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); }
.check a { font-weight: 650; }
.notice { padding: 14px 16px; font-size: 0.9rem; font-weight: 550; }
.notice.ok { background: #e3eee4; color: var(--ok); }
.notice.error { background: #f6e3de; color: var(--error); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map { display: grid; place-items: center; min-height: 300px; background: #e1e5d8; text-align: center; }
.map-placeholder { display: grid; justify-items: center; gap: 10px; padding: 56px var(--gutter); }
.map-placeholder .eyebrow { margin: 0; color: #4e624b; }
.map-placeholder h3 { font-size: 1.9rem; font-weight: 500; letter-spacing: -0.035em; }
.map-placeholder h3 em { color: var(--olive); }
.map-placeholder p:not(.eyebrow) { max-width: 30rem; margin-bottom: 8px; color: #505c48; font-size: 0.84rem; }
.map iframe { display: block; width: 100%; height: 400px; border: 0; }

/* ---------------------------------------------------------------- piede */
.site-footer { position: relative; overflow: hidden; padding-bottom: 28px; background: var(--green-2); color: #e6e8df; }
.footer-watermark { position: absolute; right: -30px; bottom: -70px; width: 340px; opacity: .05; pointer-events: none; }
.footer-cta { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 30px; padding-block: clamp(44px, 5vw, 64px); border-bottom: 1px solid rgb(255 255 255 / 11%); }
.footer-cta .eyebrow { margin-bottom: 10px; color: var(--sand); }
.footer-cta-title { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.035em; color: #f7f5ef; }
.footer-cta-title em { color: var(--sand); font-size: 1.08em; }
.footer-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer-call { padding-bottom: 3px; border-bottom: 1px solid rgb(255 255 255 / 25%); color: #f7f5ef; font-weight: 600; text-decoration: none; transition: color .2s, border-color .2s; }
.footer-call:hover { color: var(--sand); border-color: var(--sand); }
.footer-top { position: relative; display: grid; grid-template-columns: 1.3fr 1fr .8fr 1.1fr; gap: 48px; padding-block: clamp(44px, 5vw, 60px); }
.brand-light { color: #f7f5ef; }
.footer-brand p { max-width: 24rem; margin-top: 20px; color: #c9d1c6; font-size: 0.9rem; }
.footer-col { display: grid; align-content: start; gap: 12px; }
.footer-col h2 { margin-bottom: 6px; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.17em; text-transform: uppercase; color: rgb(247 245 239 / 55%); }
.footer-col a { position: relative; width: fit-content; max-width: 100%; color: #dfe5dc; font-size: 0.92rem; font-weight: 500; text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.footer-col a:hover { color: var(--sand); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 11%); font-size: 0.78rem; color: rgb(247 245 239 / 55%); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.footer-legal a { color: rgb(247 245 239 / 70%); text-decoration: none; }
.footer-legal a:hover { color: var(--sand); }

/* ---------------------------------------------------------------- cookie: banner e preferenze */
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 70; width: min(430px, calc(100vw - 32px)); padding: 26px 26px 20px; overflow: hidden; background: var(--green); color: var(--on-dark); border-radius: 6px; box-shadow: 0 30px 80px -20px rgb(15 24 18 / 55%), 0 0 0 1px rgb(255 255 255 / 6%) inset; animation: consent-in .8s var(--ease) both .4s; }
.consent::before { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgb(221 196 168 / 22%), transparent 70%); pointer-events: none; }
.consent[hidden] { display: none; }
.consent-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--sand); font-size: 0.7rem; font-weight: 650; letter-spacing: 0.17em; text-transform: uppercase; }
.consent-title { font-size: 1.65rem; font-weight: 450; line-height: 1.1; letter-spacing: -0.035em; }
.consent-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--sand); font-size: 1.08em; }
.consent-text { margin-top: 12px; color: var(--on-dark-muted); font-size: 0.86rem; line-height: 1.6; }
.consent-text a { color: #fff; font-weight: 650; text-underline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.consent-btn { min-height: 46px; padding: 0 16px; border: 1px solid rgb(255 255 255 / 34%); border-radius: var(--radius); background: transparent; color: #fff; font-size: 0.88rem; font-weight: 650; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.consent-btn:hover { background: #f4f1e6; border-color: #f4f1e6; color: var(--ink); transform: translateY(-1px); }
.consent-more { display: block; margin: 14px auto 0; padding: 4px; border: 0; background: none; color: var(--on-dark-muted); font-size: 0.8rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.consent-more:hover { color: #fff; }
.consent-close, .consent-dialog-close button { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .75; transition: opacity .2s, background-color .2s; }
.consent-close:hover, .consent-dialog-close button:hover { opacity: 1; background: rgb(255 255 255 / 10%); }
.consent-close svg, .consent-dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.consent-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 6px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -20px rgb(15 24 18 / 45%); }
.consent-dialog[open] { animation: rise .5s var(--ease) both; }
.consent-dialog::backdrop { background: rgb(21 33 26 / 55%); backdrop-filter: blur(3px); }
.consent-dialog-in { position: relative; padding: 32px 30px 26px; }
.consent-dialog .consent-eyebrow { color: var(--accent); }
.consent-dialog .dot { background: var(--olive); box-shadow: 0 0 0 5px rgb(122 128 95 / 14%); }
.consent-dialog .consent-title em { color: var(--olive); }
.consent-dialog .consent-text { color: var(--muted); }
.consent-dialog-close button { color: var(--ink); }
.consent-dialog-close button:hover { background: var(--paper-2); }
.consent-options { display: grid; gap: 10px; margin-top: 22px; }
.consent-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); cursor: pointer; transition: border-color .2s; }
.consent-option:hover { border-color: #b9bfaa; }
div.consent-option { cursor: default; }
.consent-option h3 { font-size: 0.98rem; font-weight: 650; letter-spacing: -0.01em; }
.consent-option p { margin-top: 4px; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.consent-always { flex: none; color: var(--ok); font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.switch { position: relative; flex: none; width: 46px; height: 26px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #cfd3c6; transition: background-color .25s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform .3s var(--ease); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.consent-dialog-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.consent-dialog .consent-btn { border-color: var(--green); background: var(--green); color: #fff; padding: 0 10px; }
.consent-dialog .consent-btn:hover { background: #1c2a21; border-color: #1c2a21; color: #fff; }
.consent-dialog .consent-btn-soft { background: transparent; color: var(--ink); border-color: #c9cec4; }
.consent-dialog .consent-btn-soft:hover { background: var(--paper-2); border-color: var(--ink-2); color: var(--ink); }
.footer-link { padding: 0; border: 0; background: none; color: rgb(247 245 239 / 70%); font: inherit; cursor: pointer; }
.footer-link:hover { color: var(--sand); }
.prose .consent-inline { margin: 8px 0 16px; }
.prose table { width: 100%; margin: 8px 0 20px; border-collapse: collapse; font-size: 0.86rem; }
.prose th, .prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--muted); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.prose td code { font-size: 0.82rem; }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-2); }
.prose .updated { color: var(--muted); font-size: 0.86rem; }
.table-scroll { overflow-x: auto; }
@keyframes consent-in { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- pagine interne */
.page-head { padding-block: clamp(56px, 8vw, 104px) 44px; border-bottom: 1px solid var(--line); }
.page-head h1, .error-page h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 450; line-height: 1.05; letter-spacing: -0.045em; }
.page-head .lead { margin-top: 20px; }
.prose { max-width: 46rem; padding-block: 48px var(--section); }
.prose h2 { margin: 48px 0 14px; font-size: 1.5rem; font-weight: 550; letter-spacing: -0.02em; }
.prose p { margin-bottom: 16px; color: var(--ink-2); }
.prose a { font-weight: 650; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.error-page { min-height: 60vh; display: grid; align-content: center; padding-block: var(--section); }
.error-page .lead { margin-top: 20px; }

/* ---------------------------------------------------------------- pagine dei servizi */
.crumbs { padding-top: 22px; color: var(--muted); font-size: 0.78rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #b3b8aa; }
.crumbs a { color: var(--ink-2); text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--accent); }
.service-hero { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.service-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.has-media .service-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 88px); }
.has-card .service-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(40px, 6vw, 88px); }
.service-hero-copy > * { animation: rise 1s var(--ease) both; }
.service-hero-copy > :nth-child(2) { animation-delay: .1s; }
.service-hero-copy > :nth-child(3) { animation-delay: .2s; }
.service-hero-copy > :nth-child(n+4) { animation-delay: .3s; }
.service-hero .dot { background: var(--olive); box-shadow: 0 0 0 5px rgb(122 128 95 / 14%); }
.service-hero h1 { max-width: 13ch; font-size: clamp(2.8rem, 5.6vw, 5.4rem); font-weight: 430; line-height: 1.02; letter-spacing: -0.055em; }
.service-hero:not(.has-media) h1 { max-width: 16ch; }
.service-hero h1 em { color: var(--olive); font-size: 1.05em; }
.service-hero .lead { max-width: 34rem; margin-top: 26px; font-size: 1.04rem; }
.service-hero .hero-actions { margin-top: 34px; }
.service-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 34px 0 0; padding: 0; list-style: none; }
.service-facts li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink-2); font-size: 0.78rem; font-weight: 600; line-height: 1.5; }
.service-hero-media { margin: 0; animation: rise 1.1s .2s var(--ease) both; }
.service-hero-frame { overflow: hidden; border-radius: 4px; background: var(--paper-3); }
.service-hero-frame img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; animation: settle 2.2s var(--ease) both; }
.service-hero-media figcaption { margin-top: 12px; color: #74796d; font-size: 0.7rem; }
.service-hero-card { position: relative; overflow: hidden; padding: clamp(28px, 3.4vw, 44px); border-radius: 4px; background: var(--green); color: var(--on-dark); animation: rise 1.1s .2s var(--ease) both; }
.service-hero-card .eyebrow { margin-bottom: 18px; }
.service-hero-card ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(255 255 255 / 14%); }
.service-hero-card li { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgb(255 255 255 / 14%); font-size: 1.12rem; font-weight: 500; letter-spacing: -0.02em; }
.service-hero-card li span { flex: none; min-width: 1em; color: var(--sand); font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1; }
.service-card-note { position: relative; margin-top: 22px; color: var(--on-dark-muted); font-size: 0.86rem; }
.service-card-mark { position: absolute; right: -24px; bottom: -40px; width: 180px; opacity: .06; pointer-events: none; }

.options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.option { padding: 30px 0 44px; border-top: 1px solid #c6cab9; }
.option-num { display: block; margin-bottom: 20px; color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1; }
.option h3 { margin-bottom: 10px; }
.option p { color: var(--muted); font-size: 0.94rem; }

.service-notes, .service-faq { background: var(--paper-2); }
.split-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.split-grid h2 { max-width: 12ch; }
.split-grid .section-lead { margin-top: 24px; }
.split-grid .section-lead a { color: var(--ink); font-weight: 650; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.notes { display: grid; gap: 40px; }
.note { padding-left: 28px; border-left: 2px solid var(--olive); }
.note h3 { margin-bottom: 10px; }
.note p { max-width: 38rem; color: var(--ink-2); }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-top: 78px; }
.steps li::before { content: ""; position: absolute; top: 28px; left: 64px; right: -20px; height: 1px; background: #c4c9b6; }
.steps li:last-child::before { display: none; }
.step-num { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid #b9bfaa; border-radius: 50%; background: var(--paper); color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1; }
.steps li:first-child .step-num { background: var(--green); border-color: var(--green); color: #fff; }
.steps h3 { margin-bottom: 8px; font-size: 1.08rem; }
.steps p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

.faq { border-top: 1px solid #c6cab9; }
.faq-item { border-bottom: 1px solid #c6cab9; }
.faq-item summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 24px 0; font-size: 1.08rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.45; cursor: pointer; list-style: none; transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-icon { position: relative; flex: none; width: 30px; height: 30px; margin-top: -2px; border: 1px solid #b9bfaa; border-radius: 50%; color: var(--ink); transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.5px; margin: -0.75px 0 0 -5.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { background: var(--green); border-color: var(--green); color: #fff; }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item p { max-width: 40rem; padding: 0 54px 26px 0; color: var(--ink-2); }
.faq-item[open] p { animation: rise .5s var(--ease) both; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 64px; }
.related-card { display: grid; align-content: space-between; gap: 16px; min-height: 230px; padding: 30px 28px; border-radius: 4px; background: var(--paper-2); color: var(--ink); text-decoration: none; transition: background-color .45s var(--ease), color .45s var(--ease), transform .5s var(--ease); }
.related-card:hover { background: var(--green); color: #fff; transform: translateY(-4px); }
.related-card h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
.related-card p { color: var(--muted); font-size: 0.92rem; transition: color .45s var(--ease); }
.related-card:hover p { color: var(--on-dark-muted); }
.related-go { display: inline-flex; align-items: center; gap: 14px; font-size: 0.86rem; font-weight: 600; }
.related-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.related-card:hover .related-go svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- comparse */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 5px rgb(211 229 182 / 14%); } 50% { box-shadow: 0 0 0 9px rgb(211 229 182 / 4%); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- adattamenti */
@media (min-width: 1320px) {
  .tool-text { display: inline; }
}
@media (max-width: 1100px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .is-slider .work { flex-basis: calc((100% - 28px) / 2); }
  .visit { grid-template-columns: minmax(0, 1fr) auto; }
  .visit > p { grid-column: 1 / -1; }
  .site-nav { gap: 20px; font-size: 0.86rem; }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .steps li:nth-child(3)::before { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .brand img { width: 38px; height: 38px; }
  .nav-toggle { display: block; margin-left: 0; }
  .header-tools { margin-left: auto; padding-left: 0; border-left: 0; gap: 8px; }
  .header-inner { gap: 8px; }
  .tool-account::after { display: none; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgb(28 33 30 / 10%); font-size: 1.05rem; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
  .site-nav[data-open] { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .site-nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 20px; min-height: 50px; }
  .section-head, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .section-head { margin-bottom: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .has-media .service-hero-grid, .has-card .service-hero-grid, .split-grid { grid-template-columns: minmax(0, 1fr); }
  .split-grid h2 { max-width: none; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .steps li { min-height: 56px; padding: 6px 0 0 80px; }
  .steps li::before, .steps li:nth-child(3)::before { display: block; top: 64px; bottom: -26px; left: 28px; right: auto; width: 1px; height: auto; }
  .steps li:last-child::before { display: none; }
  .related { grid-template-columns: minmax(0, 1fr); }
  .related-card { min-height: 0; }
}
@media (max-width: 640px) {
  .hero { min-height: calc(100svh - var(--header-h) - 20px); }
  .hero-media { object-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgb(21 37 27 / 82%), rgb(21 37 27 / 30%)), linear-gradient(0deg, rgb(21 35 27 / 65%), transparent 60%); }
  .hero-content { padding-block: 72px 124px; }
  .hero-title { font-size: clamp(3rem, 13vw, 4.4rem); }
  .hero-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .hero-bottom > span:last-child { display: none; }
  .marquee { padding-block: 16px; }
  .marquee span { font-size: 0.92rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .options { grid-template-columns: minmax(0, 1fr); }
  .option { padding-bottom: 32px; }
  .service-hero .hero-actions .btn { flex: 1 1 100%; justify-content: space-between; }
  .faq-item p { padding-right: 0; }
  .works { grid-template-columns: minmax(0, 1fr); }
  .is-slider .works { gap: 14px; }
  .is-slider .work { flex-basis: 86%; }
  .works-bar { gap: 14px; margin-top: 22px; }
  .works-btn { width: 42px; height: 42px; }
  .visit { grid-template-columns: minmax(0, 1fr); }
  .visit .btn { justify-content: space-between; }
  .field input, .field textarea { font-size: 16px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-cta-actions, .footer-cta .btn { width: 100%; }
  .footer-cta .btn { justify-content: space-between; }
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 22px 20px 16px; }
  .consent-title { font-size: 1.45rem; padding-right: 30px; }
  .consent-dialog-in { padding: 28px 20px 20px; }
  .consent-dialog-actions { grid-template-columns: minmax(0, 1fr); }
  .consent-option { padding: 14px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
