/* ==========================================================================
   FB Edilizia di Felice Brattoli — noleggio mezzi e movimento terra
   Colori presi dai mezzi: blu notte e azzurro del logo, verde lime della gru,
   bianco della cabina. Il taglio diagonale richiama il braccio della gru.
   ========================================================================== */

/* ---------- caratteri (ospitati nel sito, nessuna richiesta a Google) ---------- */
/* Archivo — latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../assets/fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo — latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../assets/fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Instrument Sans — latin-ext */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/instrument-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Instrument Sans — latin */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/instrument-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --notte: #0D1728;
  --notte-2: #16233C;
  --blu: #1E8FCE;          /* azzurro del logo */
  --blu-testo: #1572AB;    /* stesso azzurro, scurito per i testi piccoli */
  --lime: #C3EA3B;
  --bianco: #FFFFFF;
  --ghiaccio: #F2F4F7;
  --ink: #162033;
  --muted: #5B667A;
  --line: #DDE2EA;

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 5vw, 80px);
  --top-h: 72px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bianco); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blu); outline-offset: 3px; }
.hero :focus-visible, .contatti :focus-visible, .band :focus-visible { outline-color: var(--lime); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--notte); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--pad); }

/* ---------- tipografia ---------- */
.kicker { font-family: var(--display); font-stretch: 100%; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blu-testo); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 3px; background: currentColor; transform: skewX(-32deg); flex: none; }
.kicker--lime { color: var(--lime); }
.h2 { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.04; letter-spacing: -.025em; max-width: 17ch; text-wrap: balance; }
.h3 { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-stretch: 105%; font-weight: 700; font-size: 1rem; line-height: 1; padding: 18px 26px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: var(--notte); }
.btn--lime:hover { background: #D3F55A; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--navy { background: var(--notte); color: #fff; }
.btn--navy:hover { background: var(--blu); }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(13,23,40,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: box-shadow .25s ease; }
.top.is-stuck { box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 10px 30px -18px rgba(0,0,0,.6); }
.top__in { height: var(--top-h); display: flex; align-items: center; gap: 32px; padding-inline: var(--pad); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; color: #fff; }
.brand__logo { width: 48px; height: 48px; flex: none; border-radius: 3px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.brand__txt { display: grid; line-height: 1.1; white-space: nowrap; }
.brand__txt b { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; }
.brand__txt small { font-size: .74rem; color: rgba(255,255,255,.7); }
.nav { display: flex; gap: 30px; }
.nav a { color: #fff; font-weight: 500; font-size: .95rem; text-decoration: none; padding: 8px 0; position: relative; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:hover::after { transform: scaleX(1); }
.callbtn { display: inline-flex; align-items: center; gap: 10px; background: var(--lime); color: var(--notte); text-decoration: none; padding: 11px 18px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 1rem; line-height: 1; white-space: nowrap; }
.callbtn svg { width: 17px; height: 17px; fill: currentColor; }
.callbtn:hover { background: #D3F55A; }
.burger { display: none; width: 46px; height: 46px; background: none; border: 0; padding: 0; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: #fff; margin: 7px auto; transition: transform .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- social (Facebook, Instagram) ---------- */
.social { display: flex; gap: 8px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1.5px solid rgba(255,255,255,.3); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.social a:hover { background: var(--lime); border-color: var(--lime); color: var(--notte); }
.social svg { width: 19px; height: 19px; }
.social--big a { width: 48px; height: 48px; }
.social--big svg { width: 22px; height: 22px; }
.seguici { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.seguici > span { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.nav__social { display: none; }
.foot .social a { color: #fff; font-weight: 400; }
.foot .social a:hover { color: var(--notte); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--notte); color: #fff; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: min(100svh, 940px); overflow: hidden; }
.hero__txt { position: relative; z-index: 2; padding: calc(var(--top-h) + clamp(28px, 6vh, 72px)) 0 clamp(36px, 6vh, 72px) var(--pad); display: flex; flex-direction: column; justify-content: center; }
.hero__title { font-family: var(--display); font-stretch: 120%; font-weight: 800; font-size: clamp(2.5rem, 5.1vw, 5rem); line-height: 1; letter-spacing: -.035em; text-wrap: balance; max-width: 12ch; }
.hero__title em { font-style: normal; color: var(--lime); }
.hero__lead { margin-top: 26px; max-width: 33em; font-size: clamp(1.02rem, 1.25vw, 1.2rem); color: rgba(255,255,255,.82); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__list { margin-top: clamp(32px, 6vh, 64px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; border-top: 1px solid rgba(255,255,255,.18); max-width: 640px; }
.hero__list a { display: block; padding: 14px 0 0; font-family: var(--display); font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.75); text-decoration: none; white-space: nowrap; }
.hero__list a:hover { color: var(--lime); }
.hero__cut { position: relative; background: var(--lime); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); margin-left: -6%; margin-top: var(--top-h); }
.hero__media { position: absolute; inset: 0 0 0 12px; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); background: var(--notte-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; animation: arriva 1.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes arriva { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- sezioni ---------- */
.sec { padding: clamp(72px, 9vw, 136px) 0; }
.sec--ice { background: var(--ghiaccio); }
.sec--tight { padding: clamp(56px, 6vw, 88px) 0; }
.head { display: grid; grid-template-columns: 1fr minmax(0, 25em); gap: 20px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.head__note { color: var(--muted); font-size: 1.05rem; }

/* ---------- catalogo noleggio ---------- */
.cat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(13,23,40,.35); border-color: transparent; }
.item__fig { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--line); overflow: hidden; }
.item__fig img { width: 100%; height: 100%; object-fit: contain; }
.item--photo .item__fig { padding: 0; }
.item--photo .item__fig img { object-fit: cover; }
.item__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.item h3 { overflow-wrap: anywhere; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.18rem; line-height: 1.15; letter-spacing: -.01em; }
.item p { color: var(--muted); font-size: .96rem; line-height: 1.5; }
.ask { margin-top: auto; padding: 12px 0 0; background: none; border: 0; text-align: left; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--blu-testo); display: inline-flex; align-items: center; gap: 8px; }
.ask::after { content: "→"; transition: transform .2s ease; }
.ask:hover::after { transform: translateX(5px); }
.ask:hover { color: var(--notte); }

/* ---------- servizi ---------- */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 112px); align-items: center; }
.feat + .feat { margin-top: clamp(72px, 10vw, 144px); }
.feat--flip .feat__media { order: 2; }
.feat--solo-testo { grid-template-columns: 1fr; }
.feat--solo-testo .feat__txt { max-width: 46em; }
.feat__media { position: relative; padding: 0 12% 9% 0; }
.feat--flip .feat__media { padding: 0 0 9% 12%; }
.feat__main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.feat__media--wide .feat__main { aspect-ratio: 5 / 4; }
.feat__side { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 8px solid var(--ghiaccio); box-shadow: 0 24px 48px -24px rgba(13,23,40,.5); }
.feat--flip .feat__side { right: auto; left: 0; }
.feat__media--wide .feat__side { aspect-ratio: 3 / 2; width: 50%; }
.feat__side--product { object-fit: contain; background: #fff; padding: 10px; }
.feat__media::before { content: ""; position: absolute; left: -14px; top: 26px; width: 4px; height: 96px; background: var(--lime); transform: skewY(-32deg); }
.feat--flip .feat__media::before { left: auto; right: -14px; }
.feat__txt { display: grid; gap: 20px; justify-items: start; max-width: 32em; }
.feat__txt p { color: var(--muted); font-size: 1.06rem; }
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 7px; border-left: 2.5px solid var(--blu); border-bottom: 2.5px solid var(--blu); transform: rotate(-45deg); }
.note { position: relative; background: #fff; border-left: 4px solid var(--blu); border-radius: 0 var(--r) var(--r) 0; padding: 14px 18px 14px 48px; font-size: .98rem; color: var(--ink); box-shadow: 0 10px 30px -20px rgba(13,23,40,.5); }
.note::before { content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid var(--blu); box-sizing: border-box; }
.note strong { color: var(--blu-testo); }
.item__note { display: inline-flex; align-self: flex-start; margin-top: 2px; padding: 4px 10px; border-radius: 999px; background: var(--ghiaccio); color: var(--blu-testo) !important; font-size: .82rem !important; font-weight: 600; }
.link { font-size: 1.02rem; border-bottom: 2px solid var(--lime); padding: 6px 0 6px; margin-top: 4px; }

/* ---------- fascia impresa ---------- */
.band { position: relative; background: var(--notte); color: #fff; overflow: hidden; }
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; opacity: .5; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,23,40,.96) 0%, rgba(13,23,40,.82) 46%, rgba(13,23,40,.25) 100%); }
.band__in { position: relative; z-index: 1; padding-block: clamp(80px, 11vw, 160px); }
.band__title { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.06; letter-spacing: -.025em; max-width: 19ch; text-wrap: balance; }
.band__txt { margin-top: 24px; max-width: 34em; font-size: 1.1rem; color: rgba(255,255,255,.84); }

/* ---------- galleria ---------- */
/* 12 colonne: ogni foto ne occupa --campata (3 = 4 foto per riga); l'ultima riga la sistema main.js */
.gal { --campata: 3; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.gal > .shot { grid-column: span var(--campata); }
.shot { display: block; border-radius: var(--r); overflow: hidden; position: relative; background: var(--ghiaccio); }
.shot img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
a.shot:hover img { transform: scale(1.045); }
a.shot::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -4px 0 var(--lime); opacity: 0; transition: opacity .25s ease; }
a.shot:hover::after { opacity: 1; }

/* ---------- come funziona ---------- */
.cass__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.steps { counter-reset: s; margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.steps--4 { grid-template-columns: repeat(4, 1fr); margin-top: 0; margin-bottom: clamp(56px, 8vw, 112px); }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start; padding-top: 22px; border-top: 2px solid var(--notte); }
.steps li::before { content: counter(s); font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 3.2rem; line-height: 1; color: var(--blu); }
.steps b { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.2rem; }
.steps span { color: var(--muted); }

/* ---------- contatti ---------- */
.contatti { background: var(--notte); color: #fff; padding: clamp(72px, 9vw, 128px) 0; position: relative; overflow: hidden; }
.contatti::before { content: ""; position: absolute; left: -10%; top: 0; bottom: 0; width: 46%; background: var(--notte-2); transform: skewX(-16deg); }
.contatti__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.contatti__title { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -.025em; max-width: 17ch; text-wrap: balance; }
.bigtel { display: inline-block; margin-top: 26px; font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: clamp(2.5rem, 5.4vw, 4.7rem); line-height: 1; letter-spacing: -.03em; color: var(--lime); text-decoration: none; white-space: nowrap; }
.bigtel:hover { color: #fff; }
.contatti__btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }
.coords { margin-top: 36px; padding-top: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; max-width: 560px; }
.coords div { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.18); }
.coords dt { font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: 4px; }
.coords dd { margin: 0; color: rgba(255,255,255,.88); font-size: .98rem; overflow-wrap: anywhere; }
.coords a { text-decoration: none; }
.coords a:hover { color: var(--lime); text-decoration: underline; }

.form { background: #fff; color: var(--ink); border-radius: 10px; padding: clamp(22px, 3vw, 40px); display: grid; gap: 16px; }
.form__title { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 1.5rem; letter-spacing: -.015em; }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea { width: 100%; background: var(--ghiaccio); border: 1.5px solid transparent; border-radius: var(--r); padding: 13px 14px; font-size: 1rem; font-weight: 400; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blu); background: #fff; outline: none; }
.form textarea { resize: vertical; }
.form__send { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--line { border-color: var(--notte); color: var(--notte); }
.btn--line:hover { background: var(--notte); color: #fff; }
.form__err { color: #B42318; font-weight: 600; font-size: .95rem; }
.form__note { font-size: .84rem; color: var(--muted); }

/* ---------- footer ---------- */
.foot { background: #08101D; color: rgba(255,255,255,.75); padding: 28px 0; font-size: .92rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: center; }
.foot b { color: #fff; }
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__brand img { width: 40px; height: 40px; border-radius: 3px; }
.foot a { text-decoration: none; color: var(--lime); font-weight: 600; }
.foot__legal { margin-left: auto; }

/* ---------- pagina privacy ---------- */
.legal__main { padding: calc(var(--top-h) + clamp(40px, 6vw, 80px)) 0 clamp(56px, 8vw, 104px); }
.legal__wrap { max-width: 820px; }
.legal__wrap .h2 { max-width: none; }
.legal__wrap .h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 40px 0 12px; }
.legal__wrap p { color: var(--ink); margin-top: 10px; }
.legal__wrap a:not(.btn) { color: var(--blu-testo); }
.legal__upd { color: var(--muted) !important; margin-top: 14px !important; }
.legal__back { margin-top: 44px !important; }
.foot__legal a { color: inherit; text-decoration: underline; font-weight: 400; }

/* ---------- barra rapida su telefono ---------- */
.dock { display: none; }

/* ---------- foto ingrandita ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(8,16,29,.96); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; grid-column: 2; display: grid; justify-items: center; gap: 12px; padding: 20px 0; }
.lb__fig img { max-height: calc(100svh - 110px); max-width: 100%; border-radius: var(--r); }
.lb__fig figcaption { color: rgba(255,255,255,.8); font-size: .95rem; text-align: center; }
.lb__x, .lb__nav { background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.6rem; line-height: 1; width: 56px; height: 56px; border-radius: 50%; }
.lb__x:hover, .lb__nav:hover { background: rgba(255,255,255,.12); color: var(--lime); }
.lb__x { position: absolute; top: 12px; right: 12px; }
.lb__nav--prev { grid-column: 1; justify-self: center; }
.lb__nav--next { grid-column: 3; justify-self: center; }
.lb :focus-visible { outline-color: var(--lime); }

/* ---------- comparsa allo scorrimento ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .burger { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--notte); padding: 4px var(--pad) 18px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.12); }
  .top.is-open { background: var(--notte); }
  .top__in { gap: 18px; }
  .social--top { display: none; }
  .nav__social { display: flex; gap: 22px; padding-top: 14px; }
  .nav .nav__social a { display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 8px 0; }
  .nav__social svg { width: 22px; height: 22px; }
}
@media (max-width: 1100px) {
  .cat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps--4 { grid-template-columns: repeat(2, 1fr); }
  .gal { --campata: 4; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 100svh; }
  .hero__cut { position: absolute; inset: var(--top-h) 0 0 0; margin: 0; clip-path: none; background: none; }
  .hero__media { inset: 0; clip-path: none; }
  .hero__media img { object-position: 40% 0%; }
  .hero__cut::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,23,40,.55) 0%, rgba(13,23,40,.2) 22%, rgba(13,23,40,.9) 52%, var(--notte) 100%); }
  .hero__txt { padding: calc(var(--top-h) + 30svh) var(--pad) 36px; justify-content: flex-end; }
  .head, .feat, .contatti__grid { grid-template-columns: 1fr; }
  .feat--flip .feat__media { order: 0; }
  .feat__txt { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .contatti::before { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 60px; }
  .callbtn span { display: none; }
  .callbtn { padding: 12px; }
  .brand__logo { width: 42px; height: 42px; }
  .top__in { gap: 10px; }
  .cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .item__body { padding: 14px 14px 16px; }
  .item h3 { font-size: 1.02rem; }
  .item p { font-size: .9rem; }
  .ask { font-size: .88rem; gap: 5px; }
  .gal { --campata: 6; gap: 10px; }

  .hero__cta .btn, .contatti__btns .btn, .form .btn { width: 100%; }
  .hero__list { display: none; }
  .form__two, .coords { grid-template-columns: 1fr; }
  .foot__legal { margin-left: 0; }
  .foot__in { flex-direction: column; align-items: flex-start; }
  .feat__media::before { display: none; }
  .dock { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 60px; }
  .dock a { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.05rem; text-decoration: none; }
  .dock a:first-child { background: var(--lime); color: var(--notte); }
  .dock a:last-child { background: var(--notte); color: #fff; border-top: 1px solid rgba(255,255,255,.2); }
  .lb { grid-template-columns: 44px 1fr 44px; }
  .lb__nav { width: 40px; height: 40px; font-size: 2rem; }
}
@media (max-width: 520px) {
  .cat { grid-template-columns: 1fr; }
  .item { flex-direction: row; }
  .item__fig { flex: 0 0 38%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); padding: 8px; }
  .item__body { padding: 14px 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .item, .shot img { transition: none; }
}
