/* ==========================================================================
   Fasola Gioielleria — wireframe
   Token pensati per diventare Global Colors / Global Fonts di Elementor.
   Breakpoint allineati a Elementor: tablet ≤ 1024, mobile ≤ 767.
   ========================================================================== */

:root {
  /* Colori */
  --c-black: #0b0b0b;
  --c-ink: #161616;
  --c-white: #ffffff;
  --c-paper: #f3f3f1;
  --c-grey-1: #e6e6e3;
  --c-grey-2: #c8c8c4;
  --c-grey-3: #8b8b86;
  --c-muted: #5b5b57;
  --c-line: #d6d6d2;
  --c-line-dark: #2b2b2b;

  /* Font (provvisori: la tipografia si decide in fase di composizione) */
  --f-sans: 'Hanken Grotesk', 'Helvetica Neue', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Layout */
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 136px);
  --sec-tight: clamp(48px, 6vw, 88px);
  --gap: clamp(16px, 2vw, 24px);
  --header-h: 104px;

  /* Movimento */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-white);
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
p + p { margin-top: 1em; }
h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

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

/* ---------- Tipografia ---------- */
.h1 { font-size: clamp(40px, 6.2vw, 92px); line-height: 1.02; font-weight: 500; letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; font-weight: 500; letter-spacing: -0.015em; }
.h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.25; font-weight: 600; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-muted); margin-bottom: 16px;
}
.s--dark .eyebrow, .hero .eyebrow, .visit .eyebrow { color: var(--c-grey-2); }
.prose .lead { margin-bottom: 1.2em; }
.center { text-align: center; margin-top: 40px; }

/* ---------- Bottoni e link ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  color: var(--c-white); background: var(--c-black); border: 1px solid var(--c-black);
  cursor: pointer; font-family: inherit;
  position: relative; overflow: hidden; isolation: isolate;
  --fill: #2e2e2e;
  transition: color .45s var(--ease-io);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--fill); transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease-io);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn--ghost { background: transparent; color: var(--c-black); --fill: var(--c-black); }
.btn--ghost:hover { color: var(--c-white); }
.btn--light { background: var(--c-white); color: var(--c-black); border-color: var(--c-white); --fill: var(--c-grey-1); }
.btn--ghost-light { background: transparent; color: var(--c-white); border-color: var(--c-white); --fill: var(--c-white); }
.btn--ghost-light:hover { color: var(--c-black); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; }

.link {
  display: inline-block; margin-top: 24px; padding-bottom: 3px;
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.link:hover { animation: sinapps-underline .8s var(--ease-io); }
@keyframes sinapps-underline {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  50% { background-size: 0 1px; background-position: 100% 100%; }
  50.01% { background-size: 0 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}
.link--light { color: var(--c-white); margin-top: 40px; }
.arrow { font-size: .9em; }

/* ---------- Segnaposto immagine ---------- */
.ph {
  position: relative; margin: 0; width: 100%; overflow: hidden;
  aspect-ratio: var(--ar, 4/3);
  background: var(--c-grey-1);
}
.ph__img {
  position: absolute; inset: 0; transition: transform 1.1s var(--ease-out);
  background-color: var(--c-grey-1);
  background-image:
    linear-gradient(to top right, transparent calc(50% - .6px), var(--c-grey-2) 50%, transparent calc(50% + .6px)),
    linear-gradient(to top left, transparent calc(50% - .6px), var(--c-grey-2) 50%, transparent calc(50% + .6px));
}
.ph figcaption {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 82%; padding: 6px 10px;
  font-family: var(--f-mono); font-size: 12px; line-height: 1.4; text-align: center;
  color: var(--c-muted); background: var(--c-white);
}
.s--dark .ph, .hero .ph { background: #1c1c1c; }
.s--dark .ph__img, .hero .ph__img {
  background-color: #1c1c1c;
  background-image:
    linear-gradient(to top right, transparent calc(50% - .6px), #333 50%, transparent calc(50% + .6px)),
    linear-gradient(to top left, transparent calc(50% - .6px), #333 50%, transparent calc(50% + .6px));
}
.s--dark .ph figcaption, .hero .ph figcaption { color: var(--c-grey-2); background: var(--c-black); }

.logo-ph {
  font-size: 14px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-align: center;
}
.logo-ph--lg {
  display: inline-block; margin-bottom: 28px; padding: 18px 24px;
  font-size: clamp(20px, 2.2vw, 30px); letter-spacing: 0.16em;
  border: 1px dashed var(--c-grey-3);
}

/* ---------- Topbar + header ---------- */
.topbar { background: #000; color: var(--c-grey-2); font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--c-white); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-black); color: var(--c-white);
  transition: transform .5s var(--ease-io);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--header-h); transition: height .25s;
}
.header__logo img { height: 76px; width: auto; transition: height .25s; }
.header.is-scrolled .header__inner { height: 76px; }
.header.is-scrolled .header__logo img { height: 52px; }

.nav--left { justify-self: start; }
.nav--right { justify-self: end; }
.nav__list { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); list-style: none; }
.nav__item { position: relative; }
.nav__link {
  display: inline-block; padding-block: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
.nav__link { position: relative; }
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform .45s var(--ease-io);
}
.nav__link:hover::after, .nav__link.is-active::after, .has-dropdown:focus-within > .nav__link::after { transform: scaleX(1); }

.dropdown {
  position: absolute; top: 100%; left: -24px; z-index: 5;
  min-width: 260px; padding: 20px 24px 22px;
  background: var(--c-ink); border-top: 1px solid var(--c-line-dark);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown__list { list-style: none; columns: 2; column-gap: 32px; min-width: 420px; }
.dropdown__list li {
  break-inside: avoid; opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .5s var(--ease-out);
}
.has-dropdown:hover .dropdown__list li, .has-dropdown:focus-within .dropdown__list li {
  opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 35ms + 80ms);
}
.dropdown__list a { display: block; padding: 6px 0; font-size: 15px; text-decoration: none; color: var(--c-grey-2); }
.dropdown__list a:hover { color: var(--c-white); }
.dropdown__all { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--c-white); }

.header__call, .header__burger { display: none; }
.header__burger {
  width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 7px;
}
.header__burger span { display: block; width: 26px; height: 1.5px; background: var(--c-white); transition: transform .25s; }
.header__burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.header__call {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  min-height: 44px; align-items: center;
}

.mmenu {
  position: fixed; top: var(--menu-top, var(--header-h)); left: 0; right: 0; bottom: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 24px var(--gutter) 48px; background: var(--c-black);
}
.mmenu[hidden] { display: none; }
.mmenu__list { list-style: none; margin-bottom: 32px; }
.mmenu__list > li { border-bottom: 1px solid var(--c-line-dark); padding-block: 14px; }
.mmenu__link { font-size: 24px; text-decoration: none; }
.mmenu__sub { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 10px; }
.mmenu__sub a { font-size: 15px; color: var(--c-grey-2); text-decoration: none; }
.mmenu__info { margin-top: 24px; color: var(--c-grey-2); font-size: 15px; }

/* ---------- Sezioni ---------- */
.s { padding-block: var(--sec); }
.s--tight { padding-block: var(--sec-tight); }
.s--dark { background: var(--c-black); color: var(--c-white); }
.s--grey { background: var(--c-paper); }

.section-head {
  display: grid; grid-template-columns: 7fr 5fr; align-items: end; gap: var(--gap) clamp(32px, 6vw, 96px);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head > p { color: var(--c-muted); }
.s--dark .section-head > p { color: var(--c-grey-2); }
.section-head--row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.section-head--row .link { margin-top: 0; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap) clamp(32px, 6vw, 96px); }
.split--center { align-items: center; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature--reverse .feature__media { order: 2; }
.feature__text p + p { margin-top: 1em; }
.feature__text .h2 { margin-bottom: 24px; }

.cards { display: grid; gap: var(--gap); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jewels .cards { margin-top: clamp(48px, 6vw, 88px); }
.card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.card .ph { margin-bottom: 10px; }
.card__title { font-size: 20px; font-weight: 600; }
.card__meta { font-size: 15px; color: var(--c-muted); }
.card:hover .card__title { text-decoration: underline; text-underline-offset: 4px; }
.card:hover .ph__img, .model a:hover .ph__img { transform: scale(1.05); }

.service .ph { margin-bottom: 20px; }
.service .h3 { margin-bottom: 8px; }
.service p { color: var(--c-muted); }
.stone .ph { margin-bottom: 14px; }

/* Hero home */
.hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 560px; height: calc(100svh - var(--header-h) - 34px); max-height: 900px;
  background: var(--c-black); color: var(--c-white);
}
.hero__media { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.hero__media figcaption { top: 22%; }
.hero__content { position: relative; padding-bottom: clamp(48px, 7vw, 96px); }
.hero__content .h1 { max-width: 14ch; }

/* Intestazione pagine interne */
.page-hero { padding-top: clamp(56px, 8vw, 120px); }
.page-hero .h1 { max-width: 18ch; }
.page-hero .lead { max-width: 52ch; margin-top: 24px; color: var(--c-muted); }
.page-hero--text { padding-bottom: var(--sec-tight); border-bottom: 1px solid var(--c-line); }
.page-hero__media { margin-top: clamp(40px, 5vw, 72px); }
.crumbs { font-size: 13px; color: var(--c-muted); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Logo grid orologeria */
.logo-grid {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  border-top: 1px solid var(--c-line-dark); border-left: 1px solid var(--c-line-dark);
}
.logo-grid li { border-right: 1px solid var(--c-line-dark); border-bottom: 1px solid var(--c-line-dark); }
.logo-grid a { display: flex; align-items: center; justify-content: center; height: 128px; padding: 16px; text-decoration: none; color: var(--c-grey-2); transition: color .2s, background .2s; }
.logo-grid a:hover { color: var(--c-white); background: var(--c-ink); }
.logo-grid .logo-ph { transition: letter-spacing .6s var(--ease-out); }
.logo-grid a:hover .logo-ph { letter-spacing: .28em; }

/* Legame */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.duo .ph:last-child { margin-top: clamp(32px, 5vw, 72px); }
.cities { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.city .ph { margin-bottom: 24px; }
.city .h3 { margin-bottom: 8px; }

/* Timeline */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.timeline li { position: relative; padding-top: 20px; }
.timeline li::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--c-ink); transform: scaleX(var(--line, 1)); transform-origin: left;
}
.timeline__year { display: block; font-size: 32px; font-weight: 500; margin-bottom: 12px; }
.timeline .h3 { margin-bottom: 8px; }
.timeline p { color: var(--c-muted); font-size: 15px; }

/* Galleria */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 24px; }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }

/* Banda visita */
.visit__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.visit .lead { color: var(--c-grey-2); margin-top: 24px; max-width: 46ch; }
.visit__info, .info-list { margin: 0; }
.visit__info > div, .info-list > div { padding-block: 16px; border-top: 1px solid var(--c-line-dark); }
.info-list > div { border-color: var(--c-line); }
.visit__info dt, .info-list dt { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--c-grey-3); margin-bottom: 4px; }
.visit__info dd, .info-list dd { margin: 0; }
.visit__info a, .info-list a { text-decoration: none; }
.info-list .link { margin-top: 6px; }

/* Pagina brand */
.brand-hero { position: relative; padding-block: clamp(48px, 6vw, 96px); border-bottom: 1px solid var(--c-line); }
.brand-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.brand-hero .lead { max-width: 40ch; }
.seal {
  display: inline-block; margin-top: 28px; padding: 8px 12px;
  font-family: var(--f-mono); font-size: 12px; border: 1px dashed var(--c-grey-3); color: var(--c-muted);
}

.models { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.model a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding-bottom: 8px; text-decoration: none; background: var(--c-white); }
.model .ph { margin-bottom: 16px; }
.model__family, .model__name, .model__ref, .model__cta { padding-inline: 20px; }
.model__family { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--c-muted); }
.model__name { font-size: 19px; font-weight: 600; line-height: 1.3; }
.model__ref { font-family: var(--f-mono); font-size: 13px; color: var(--c-muted); }
.model__cta { margin-top: auto; padding-top: 14px; padding-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.model a:hover .model__name { text-decoration: underline; text-underline-offset: 4px; }

.banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px; border: 1px solid var(--c-line); }
.banner p { color: var(--c-muted); margin-top: 6px; }

.embed {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 640px; padding: 32px; text-align: center;
  border: 2px dashed var(--c-grey-2);
  background: repeating-linear-gradient(135deg, var(--c-paper) 0 14px, var(--c-white) 14px 28px);
}
.embed p { max-width: 46ch; }
.embed__label { font-family: var(--f-mono); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.embed__src { font-family: var(--f-mono); font-size: 12px; color: var(--c-muted); word-break: break-all; }
.embed__fallback { margin-top: 16px; font-size: 15px; color: var(--c-muted); }
.embed__fallback .link { margin-top: 0; }

.others .h3 { margin-bottom: 20px; }
.others__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.others__list a { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.others__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Contatti */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.form { display: grid; gap: 20px; padding: clamp(24px, 3vw, 40px); background: var(--c-paper); }
.form .h3 { margin-bottom: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-weight: 400; font-size: 16px;
  color: var(--c-ink); background: var(--c-white); border: 1px solid var(--c-grey-3); border-radius: 0;
}
.form textarea { resize: vertical; }
.form .check { display: flex; align-items: center; gap: 12px; font-weight: 400; }
.form .check input { width: 20px; min-height: 20px; height: 20px; margin: 0; }
.form .btn { justify-self: start; }
.map .ph { --ar: 21/7 !important; }

/* Tabella mappa */
.table-box { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--c-line); }
.table th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }

/* ---------- Footer ---------- */
.footer { background: var(--c-black); color: var(--c-grey-2); padding-top: clamp(56px, 7vw, 96px); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer__brand img { width: 96px; margin-bottom: 20px; }
.footer__title { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--c-white); margin-bottom: 14px; }
.footer p + p { margin-top: 12px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--c-white); text-decoration: underline; }
.footer__links { list-style: none; display: grid; gap: 6px; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(48px, 6vw, 80px); padding-block: 24px; border-top: 1px solid var(--c-line-dark); font-size: 13px;
}
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Annotazioni wireframe ---------- */
.wf-note {
  display: block; max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin: 28px auto 0; margin-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  padding: 10px 14px;
  font-family: var(--f-mono); font-size: 12.5px; line-height: 1.5;
  color: #3a3000; background: #fff4c2; border: 1px dashed #b89400;
}
.wf-note b { font-weight: 500; text-transform: uppercase; letter-spacing: .1em; margin-right: 6px; }
.hero .wf-note { position: absolute; top: 48px; right: 0; max-width: 340px; margin: 0 var(--gutter); z-index: 3; }
.wf-tag {
  display: inline-block; align-self: flex-start; margin-top: 6px; padding: 3px 7px;
  font-family: var(--f-mono); font-size: 11px; color: var(--c-muted);
  border: 1px dashed var(--c-grey-3);
}
.wf-tag--block { position: absolute; top: 16px; right: var(--gutter); margin: 0; background: var(--c-white); }

body:not(.notes-off) [data-wf] { position: relative; }
body:not(.notes-off) [data-wf]::before {
  content: attr(data-wf); position: absolute; top: 8px; left: 8px; z-index: 4;
  padding: 2px 7px; font-family: var(--f-mono); font-size: 11px; color: #000; background: #ffe27a;
}
body.notes-off .wf-note, body.notes-off .wf-tag { display: none; }

.wf-toggle {
  position: fixed; left: 16px; bottom: 16px; z-index: 100;
  min-height: 44px; padding: 0 16px; cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; color: #000; background: #ffe27a; border: 1px solid #000;
}
body.notes-off .wf-toggle { background: var(--c-white); }

/* ---------- Tablet ≤ 1024 ---------- */
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .nav--left, .nav--right { display: none; }
  .header__inner { grid-template-columns: 1fr auto 1fr; }
  .header__call { display: inline-flex; justify-self: start; grid-column: 1; grid-row: 1; }
  .header__logo { grid-column: 2; grid-row: 1; }
  .header__burger { display: inline-flex; justify-self: end; grid-column: 3; grid-row: 1; }
  .header__logo img, .header.is-scrolled .header__logo img { height: 52px; }
  .header.is-scrolled .header__inner { height: var(--header-h); }

  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit__grid { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- Mobile ≤ 767 ---------- */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .topbar__inner > a { display: none; }
  .section-head, .split, .feature, .contact, .brand-hero__grid, .cities { grid-template-columns: minmax(0, 1fr); }
  .feature--reverse .feature__media { order: 0; }
  .cards--3 { grid-template-columns: 1fr; }
  .gallery, .gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .models { grid-template-columns: 1fr; }
  .duo .ph:last-child { margin-top: 32px; }
  .hero .wf-note { position: static; margin: 0 var(--gutter); }
  .hero { flex-direction: column; justify-content: flex-end; height: auto; min-height: calc(100svh - var(--header-h) - 34px); padding-bottom: 24px; }
  .wf-tag--block { position: static; display: block; width: max-content; max-width: calc(100% - 2 * var(--gutter)); margin: 24px var(--gutter) 0; }
  .map .ph { --ar: 4/3 !important; }
  .embed { min-height: 420px; }
}

/* ---------- Movimento ---------- */
/* Pagina: entra in dissolvenza quando le animazioni sono pronte, esce sui link interni */
.js main, .js .footer { transition: opacity .6s ease; }
.js:not(.is-ready) main { opacity: 0; }
.js:not(.is-ready) #sinapps-hero .hero__content { visibility: hidden; }
.is-leaving main, .is-leaving .footer { opacity: 0; transition-duration: .25s; }

/* Menu mobile: voci a cascata all'apertura */
.mmenu:not([hidden]) .mmenu__list > li { animation: sinapps-rise .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes sinapps-rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Lenis (scroll morbido) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
