/* Malacrida — design system (T1.1). One stylesheet, no framework.
   Sections: tokens · base · type · layout · buttons · small parts · media · cards ·
   header · drawer · sticky bar · forms · hero · sede · reviews · footer · motion */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens */
:root {
  --ink: #121416;
  --ink-2: #1E2124;        /* raised surface on ink */
  --paper: #F7F6F2;
  --paper-2: #EFEDE6;      /* tone step on paper */
  --surface: #FFFFFF;
  --line: #E4E2DB;
  --muted: #5F646B;
  --muted-on-ink: #A9AEB4;
  --accent: #F6C800;
  --accent-press: #DDB300;
  --dacia: #4C5A45;
  --wa: #1FA855;
  --wa-press: #1A9149;
  --ok: #1F7A4D;
  --err: #B3261E;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1.6vw, 1.25rem);
  --fs-small: .875rem;
  --fs-label: .75rem;

  --gutter: 16px;
  --maxw: 1280px;
  --header-h: 56px;
  --sticky-h: 56px;
  --radius: 10px;
  --radius-lg: 14px;
  --gap: clamp(16px, 2.4vw, 28px);
  --band: clamp(48px, 9vw, 128px);   /* 48px on phones (T3: shorter mobile pages), 64px from ~710px */
  --t: 180ms cubic-bezier(.2, .7, .2, 1);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink);
}
@media (min-width: 768px) { :root { --gutter: 24px; --header-h: 64px; } }
@media (min-width: 1180px) { :root { --gutter: 32px; } }

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
:where(p, figure, blockquote, dl, dd) { margin: 0; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2.5px; }
main:focus { outline: none; }
::selection { background: var(--accent); color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.band--ink :focus-visible, .site-header :focus-visible, .drawer__panel :focus-visible,
.sticky-bar :focus-visible, .hero :focus-visible { outline-color: var(--accent); }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--ink); padding: 12px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -.01em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 40ch; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.muted { color: var(--muted); }
/* Line breaks: no single word left alone on the last line of running text,
   balanced short labels; .nowrap keeps prices, phones, "Km 0", CAP + city together. */
p, li, dd, figcaption, blockquote, summary { text-wrap: pretty; }
.eyebrow, [class*="eyebrow"], [class*="kicker"], .lead-form__title { text-wrap: balance; }
.nowrap { white-space: nowrap; }
.small { font-size: var(--fs-small); }
.price, .num {
  font-weight: 700;
  font-stretch: 88%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  white-space: nowrap;
}

/* ---------- layout */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: var(--band); }
.band--tight { padding-block: clamp(40px, 6vw, 72px); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--ink .muted { color: var(--muted-on-ink); }
.band--step { background: var(--paper-2); }
.band--surface { background: var(--surface); }
.stack > * + * { margin-top: var(--stack, 16px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 4vw, 40px); }
.section-head > p { max-width: 52ch; }
.grid { display: grid; gap: var(--gap); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none; text-align: center; text-wrap: balance;
  transition: background-color var(--t), border-color var(--t), color var(--t), transform var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
@media (max-width: 479px) { .btn { padding-inline: 18px; } }
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-press); }
.btn--secondary { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--secondary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.band--ink .btn--secondary, .hero .btn--secondary { color: var(--paper); }
.band--ink .btn--secondary:hover, .hero .btn--secondary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #2A2E33; }
/* WhatsApp: ink text on green keeps AA contrast (white on #1FA855 is 3.1:1). */
.btn--wa, .btn--whatsapp { background: var(--wa); color: var(--ink); }
.btn--wa:hover, .btn--whatsapp:hover { background: var(--wa-press); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--t); }
.link-arrow:hover .icon--arrow { transform: translateX(3px); }
.link-arrow--light { color: var(--paper); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--radius); transition: background-color var(--t);
}
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn--wa { background: var(--wa); color: var(--ink); }
.icon-btn--wa:hover { background: var(--wa-press); }

/* ---------- small parts */
/* Small label above a heading (shared by the Phase 2 pages). */
.eyebrow {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.band--ink .eyebrow { color: var(--accent); }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 0; }
.tags:empty { display: none; }
.tag {
  display: inline-block; padding: 4px 8px; border-radius: 4px;
  background: var(--paper-2); color: var(--ink);
  font-size: var(--fs-label); font-weight: 600; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.tag--km0, .tag--nuovo { background: var(--ink); color: var(--paper); }
.tag--dacia { background: var(--dacia); color: #fff; }
.tag--renault { background: var(--accent); color: var(--ink); }

.status { display: flex; align-items: baseline; gap: 10px; font-size: var(--fs-small); }
.status__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); transform: translateY(1px); }
.status--open .status__dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 122, 77, .18); }
.status--closed .status__dot { background: var(--err); }

/* Hours: one shared day | ranges grid (subgrid keeps every row on the same columns).
   Each range never breaks ("9:00–12:00"); when two ranges don't fit on one line the second
   drops below the first, aligned, and its comma separator is clipped away (overflow on dd).
   In narrow boxes (footer columns, side panels) the day goes above its hours. */
.orari {
  container-type: inline-size;
  display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 20px; row-gap: 0;
  font-size: var(--fs-small); line-height: 1.45; font-variant-numeric: tabular-nums;
}
.orari__row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding: 5px 0; }
.orari dt { color: var(--muted); white-space: nowrap; }
.orari dd { display: flex; flex-wrap: wrap; column-gap: .7em; overflow: hidden; }
.orari__t { white-space: nowrap; }
.orari__t + .vh + .orari__t::before { content: ","; display: inline-block; width: .7em; margin-left: -.7em; }
@container (max-width: 14.5rem) {
  .orari__row { display: block; padding: 4px 0; }
  .orari dd { margin-top: 1px; }
}
@supports not (grid-template-columns: subgrid) {
  .orari__row { grid-template-columns: 8.5em minmax(0, 1fr); column-gap: 20px; }
}
.orari .is-today dt, .orari .is-today dd { color: inherit; font-weight: 600; }
.band--ink .orari dt { color: var(--muted-on-ink); }
.band--ink .orari .is-today dt { color: var(--paper); }

.rating { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.rating__star { width: 20px; height: 20px; color: var(--accent); }
.band:not(.band--ink) .rating__star { color: #C79A00; }
a.rating:hover span { text-decoration: underline; }

.trust { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--fs-small); }
.trust li { display: block; }
.trust li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: .15em; background: var(--accent); }
.trust li:has(.rating)::before { display: none; }

/* ---------- media */
.media { position: relative; overflow: hidden; background: var(--paper-2); border-radius: var(--radius); }
.media img, .media picture { width: 100%; height: 100%; object-fit: cover; }
.media picture img { width: 100%; height: 100%; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--16x10 { aspect-ratio: 16 / 10; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--1x1 { aspect-ratio: 1; }
.media__empty {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px;
  color: var(--muted); font-size: var(--fs-small);
}
.media__empty .icon { width: 40px; height: 40px; }
.band--ink .media { background: var(--ink-2); }

/* ---------- vehicle card */
.vcard, .mcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--t);
}
.vcard .media, .mcard .media { border-radius: 0; }
.vcard img, .mcard img { transition: transform 400ms cubic-bezier(.2, .7, .2, 1); }
.vcard:hover img, .mcard:hover img { transform: scale(1.03); }
.vcard__body, .mcard__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 14px; flex: 1; }
.vcard__title, .mcard__title { font-size: 1.1875rem; line-height: 1.2; }
.vcard__trim { color: var(--muted); font-size: var(--fs-small); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard__facts { display: flex; flex-wrap: wrap; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.vcard__facts li + li::before { content: "·"; margin: 0 8px; color: var(--muted); }
.vcard__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: auto; padding-top: 8px; }
.vcard__price .price { font-size: 1.75rem; line-height: 1.1; }
.price--ask { font-size: 1.125rem !important; font-stretch: 100%; }
.vcard__rate { font-size: var(--fs-small); color: var(--muted); }
.vcard__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); }
/* The whole card opens the detail page; WhatsApp stays clickable above it. */
.vcard__link::after, .mcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.vcard .icon-btn, .mcard__cta { position: relative; z-index: 2; }
.vcard:has(.vcard__link:focus-visible), .mcard:has(.mcard__link:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.vcard__link:focus-visible, .mcard__link:focus-visible { outline: none; }

/* model card */
.mcard__link { text-decoration: none; }
.mcard__price { color: var(--muted); font-size: var(--fs-small); }
.mcard__price .price { color: var(--ink); font-size: 1.375rem; margin-left: 2px; }
.mcard__cta { align-self: flex-start; margin-top: auto; }
.mcard__body { gap: 6px; padding-bottom: 18px; }
.mcard .media img { object-position: 35% 50%; }

/* ---------- header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--paper); }
.site-header__bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.site-header__logo { display: block; flex: none; color: var(--paper); margin-right: auto; }
.site-header__logo .logo { display: block; height: 34px; width: auto; }
@media (min-width: 768px) { .site-header__logo .logo { height: 44px; } }
.site-nav { display: none; }
.site-nav__list { display: flex; gap: 4px; }
.site-nav__list a {
  display: flex; align-items: center; height: 44px; padding: 0 10px; border-radius: 6px;
  font-weight: 500; font-size: .9375rem; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t);
}
.site-nav__list a:hover { background: var(--ink-2); }
.site-nav__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header__tel {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center;
  font-weight: 700; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.site-header__tel .icon { width: 22px; height: 22px; }
.site-header__tel span { display: none; }
.site-header__cta { display: none; white-space: nowrap; flex: none; }
@media (min-width: 768px) {
  .site-header__tel { padding: 0 8px; }
  .site-header__tel span { display: inline; }
  .site-header__tel .icon { width: 18px; height: 18px; }
  .site-header__cta { display: inline-flex; }
}
/* 1180–1299: full menu + phone + CTA must share one row without squeezing the CTA */
@media (min-width: 1180px) and (max-width: 1299px) {
  .site-header__bar { gap: 10px; }
  .site-header__logo .logo { height: 40px; }
  .site-nav__list { gap: 0; }
  .site-nav__list a { padding: 0 9px; }
  .site-header__tel { padding: 0 4px; }
}
@media (min-width: 1180px) {
  .site-nav { display: block; margin-right: auto; }
  .site-header__logo { margin-right: 12px; }
  .drawer { display: none; }
}

/* ---------- drawer (mobile menu; <details>, works without JS) */
.drawer > summary { list-style: none; }
.drawer > summary::-webkit-details-marker { display: none; }
.drawer__toggle {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer;
  transition: background-color var(--t);
}
.drawer__toggle:hover { background: var(--ink-2); }
.drawer__toggle .icon { width: 26px; height: 26px; }
.drawer__close, .drawer[open] .drawer__open { display: none; }
.drawer[open] .drawer__close { display: block; }
.drawer__panel {
  position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; z-index: 39;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--ink); color: var(--paper);
  padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 768px) {
  .drawer__panel { left: auto; width: 400px; box-shadow: -24px 0 48px rgba(0, 0, 0, .25); }
}
.drawer__list a {
  display: flex; align-items: center; min-height: 56px;
  font-size: 1.375rem; font-weight: 600; font-stretch: 112%; text-decoration: none;
  border-bottom: 1px solid var(--ink-2);
}
.drawer__list a[aria-current="page"] { color: var(--accent); }
.drawer__contacts { display: grid; gap: 12px; }
.drawer__contact { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; }
.drawer__contact .icon { width: 22px; height: 22px; color: var(--accent); }
.drawer__contact strong { font-variant-numeric: tabular-nums; }
html.drawer-open { overflow: hidden; }

/* ---------- sticky bar (mobile) */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  height: calc(var(--sticky-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink); color: var(--paper);
  transition: transform var(--t);
}
.sticky-bar__item {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .9375rem; text-decoration: none;
}
.sticky-bar__item .icon { width: 20px; height: 20px; }
.sticky-bar__item--wa .icon { color: var(--wa); }
.sticky-bar__item--cta { background: var(--accent); color: var(--ink); padding: 0 8px; text-align: center; line-height: 1.15; }
.js .sticky-bar { transform: translateY(105%); }
.js .sticky-bar.is-visible, .no-site-js .sticky-bar { transform: none; }
body:has(.sticky-bar) { padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .sticky-bar { display: none; }
  body:has(.sticky-bar) { padding-bottom: 0; }
}

/* ---------- forms (markup: includes/site/lead-form.php, T1.3) */
.lead-form { position: relative; display: grid; gap: 16px; }
.lead-form__title { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.lead-form__intro { color: var(--muted); margin-top: -8px; }
.lead-form__field { display: grid; gap: 6px; }
.lead-form__label { font-weight: 600; font-size: .9375rem; }
.lead-form__req { color: var(--err); }
.lead-form__opt { font-weight: 400; color: var(--muted); font-size: var(--fs-small); }
.lead-form__input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid #8E8B83; border-radius: var(--radius);
  font-size: 1rem; transition: border-color var(--t), box-shadow var(--t);
}
.lead-form__textarea { min-height: 104px; resize: vertical; }
.lead-form__input::placeholder { color: #6F747B; }
.lead-form__input:hover { border-color: var(--ink); }
.lead-form__input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent); }
.lead-form__field--error .lead-form__input, .lead-form__input[aria-invalid="true"] { border-color: var(--err); }
.lead-form__error { color: var(--err); font-size: var(--fs-small); font-weight: 500; }
.lead-form__alert { padding: 12px 14px; border-radius: var(--radius); background: #FBEAE8; color: var(--err); font-size: var(--fs-small); font-weight: 500; }
.lead-form__row { display: grid; gap: 16px; }
@media (min-width: 560px) { .lead-form__row { grid-template-columns: 1fr 1fr; } }
.lead-form__pills { border: 0; padding: 0; margin: 0; min-width: 0; }
.lead-form__pills legend { padding: 0; margin-bottom: 8px; }
.lead-form__pills-list { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-pill { position: relative; }
.lead-pill__input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lead-pill__text {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--paper-2); font-weight: 500; font-size: .9375rem; white-space: nowrap;
  transition: background-color var(--t), color var(--t);
}
.lead-pill:hover .lead-pill__text { background: var(--line); }
.lead-pill__input:checked + .lead-pill__text { background: var(--ink); color: var(--paper); }
.lead-pill__input:focus-visible + .lead-pill__text { box-shadow: var(--focus); }
.lead-form__check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: var(--fs-small); line-height: 1.45; cursor: pointer; }
.lead-form__checkbox { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
.lead-form__field--consenso_marketing .lead-form__check { color: var(--muted); }
.lead-form__more > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer;
  font-weight: 600; font-size: .9375rem; text-decoration: underline; text-underline-offset: .18em; list-style: none;
}
.lead-form__more > summary::-webkit-details-marker { display: none; }
.lead-form__more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paper-2); }
.lead-form__more[open] > summary::before { content: "–"; }
.lead-form__more[open] > summary { margin-bottom: 8px; }
.lead-form__submit { width: 100%; min-height: 52px; font-size: 1.0625rem; }
.lead-form__reassure { font-size: var(--fs-small); color: var(--muted); margin-top: -6px; }
.lead-form__alt { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; font-size: .9375rem; padding-top: 4px; }
.lead-form__alt-label { color: var(--muted); }
.lead-form__alt-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lead-form__alt-link--wa::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wa); margin-right: 8px; }
.lead-form__anchor { position: absolute; top: calc(-1 * var(--header-h) - 16px); }
@media (max-width: 767px) {
  .lead-form { gap: 12px; }
  .lead-form__more[open] > summary { margin-bottom: 4px; }
  .lead-form__alt { padding-top: 0; gap: 0 16px; }
  .lead-form__alt-label { display: none; }   /* "Oppure": keeps Chiama + WhatsApp on one row */
  .lead-form__alt-link { white-space: nowrap; }
}

.lead-box { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.band--ink .lead-box .muted { color: var(--muted); }

/* /grazie/ (markup: grazie/index.php, T1.3) */
.grazie__inner { width: 100%; max-width: calc(840px + 2 * var(--gutter)); margin-inline: auto; padding: clamp(40px, 7vw, 88px) var(--gutter) 48px; display: grid; gap: 24px; }
.grazie__title { font-size: var(--fs-h1); }
.grazie__lead { font-size: var(--fs-lead); max-width: 44ch; }
.grazie__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.grazie .lead-form--step2 { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.grazie .sede { padding-block: 24px; }
.grazie .sede .wrap { padding-inline: 0; }
.grazie__orari { display: grid; gap: 8px; }
.grazie__subtitle { font-size: var(--fs-h3); }
.grazie__back { color: var(--muted); }

/* ---------- hero (photo with ink scrim from below) */
.hero { position: relative; isolation: isolate; color: var(--paper); background: var(--ink); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(18, 20, 22, .82) 0%, rgba(18, 20, 22, .55) 38%, rgba(18, 20, 22, 0) 70%);
}
.hero__inner {
  min-height: min(82svh, 760px); display: flex; flex-direction: column; justify-content: flex-end; gap: 20px;
  padding-block: 96px clamp(32px, 6vw, 64px);
}
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 36ch; }
.hero .trust { color: var(--paper); margin-top: 8px; }
@media (max-width: 767px) {
  .hero__inner { min-height: 82svh; padding-top: 72px; }
  .hero::after { background: linear-gradient(to top, rgba(18, 20, 22, .9) 0%, rgba(18, 20, 22, .72) 55%, rgba(18, 20, 22, .15) 85%, rgba(18, 20, 22, 0) 100%); }
}

.page-head { padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 48px); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: 16px; }

/* ---------- sede */
.sede__grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 1024px) { .sede__grid { grid-template-columns: 1.1fr 1fr; } }
.sede__body { display: grid; gap: 20px; }
.sede__addr { font-size: var(--fs-lead); line-height: 1.45; }
.sede__status { display: grid; gap: 8px; }
.sede__hours { display: grid; gap: 20px; }
.sede__hours h3 { font-size: 1rem; margin-bottom: 6px; }
@media (min-width: 640px) { .sede__hours { grid-template-columns: 1fr 1fr; } }

/* ---------- reviews */
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 32px; }
.reviews__list { display: grid; gap: var(--gap); margin-bottom: 24px; }
@media (min-width: 768px) { .reviews__list { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.review figure { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 24px; background: var(--surface); border-radius: var(--radius-lg); }
.band--ink .review figure { background: var(--ink-2); }
.review__stars { display: flex; gap: 2px; color: #C79A00; }
.band--ink .review__stars { color: var(--accent); }
.review__stars .icon { width: 18px; height: 18px; }
.review blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.review figcaption { margin-top: auto; font-size: var(--fs-small); color: var(--muted); }
.review figcaption strong { color: var(--ink); }
.band--ink .review figcaption { color: var(--muted-on-ink); }
.band--ink .review figcaption strong { color: var(--paper); }

/* ---------- footer
   Mobile: contacts always visible, hours and links in <details> accordions.
   From 768px site.js opens the accordions and the summaries act as plain headings. */
.site-footer { padding-block: 28px 12px; }
@media (min-width: 768px) { .site-footer { padding-block: clamp(56px, 8vw, 96px) 24px; } }
.foot__grid { display: grid; gap: 0 32px; }
@media (min-width: 768px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; } .foot__col--contact { grid-row: span 2; } }
@media (min-width: 1024px) { .foot__grid { grid-template-columns: 1.3fr 1.6fr .8fr; } .foot__col--contact { grid-row: auto; } }
.foot__col { display: grid; align-content: start; gap: 10px; }
.foot__col--contact { padding-bottom: 20px; }
.foot__h { font-size: 1rem; font-stretch: 100%; letter-spacing: 0; color: var(--paper); }
.foot__h3 { font-size: var(--fs-small); font-weight: 600; color: var(--muted-on-ink); margin-bottom: 6px; }
.foot__addr { font-size: 1.0625rem; line-height: 1.4; }
.foot__dir { margin-top: -4px; }
.foot__list { display: grid; gap: 0; font-size: .9375rem; }
.foot__list li { display: flex; align-items: center; min-height: 34px; }
.foot__k { display: inline-block; min-width: 6.5em; color: var(--muted-on-ink); }
.foot__list a { font-variant-numeric: tabular-nums; font-weight: 600; }
.foot__col .btn { justify-self: start; }

.foot__acc { border-top: 1px solid var(--ink-2); gap: 0; }
.foot__acc:last-child { border-bottom: 1px solid var(--ink-2); }
.foot__sum {
  display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; list-style: none;
}
.foot__sum::-webkit-details-marker { display: none; }
.foot__sum .foot__h { flex: none; }
.foot__today { flex: 1; min-width: 0; }
.foot__today .status { font-size: .8125rem; color: var(--muted-on-ink); align-items: center; }
.foot__chev { width: 20px; height: 20px; margin-left: auto; flex: none; color: var(--muted-on-ink); transition: transform var(--t); }
.foot__acc[open] .foot__chev { transform: rotate(180deg); }
.foot__acc-body { padding-bottom: 16px; }
.foot__hours { display: grid; gap: 16px; }
@media (min-width: 560px) and (max-width: 767px), (min-width: 1024px) { .foot__hours { grid-template-columns: 1fr 1fr; gap: 24px; } }
.foot__grid > * { min-width: 0; }
.foot__links { display: grid; gap: 0; }
@media (max-width: 767px) { .foot__links { grid-template-columns: 1fr 1fr; gap: 0 16px; } }
.foot__links a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .foot__acc, .foot__acc:last-child { border: 0; }
  .js .foot__sum { cursor: default; min-height: 0; margin-bottom: 14px; }
  .js .foot__chev { display: none; }
  .foot__acc-body { padding-bottom: 0; }
}

.foot__brand { display: none; color: var(--paper); margin-top: clamp(48px, 8vw, 96px); }
@media (min-width: 768px) { .foot__brand { display: block; } }
.foot__brand .foot__logo { display: block; width: min(100%, 420px); height: auto; }
.foot__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px;
  margin-top: 16px; padding-top: 12px;
  font-size: .75rem; line-height: 1.45; color: var(--muted-on-ink);
}
@media (min-width: 768px) { .foot__legal { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ink-2); font-size: .8125rem; gap: 12px 24px; } }
.foot__legal p { flex: 1 1 320px; }
.foot__legal-links, .foot__social { display: flex; flex-wrap: wrap; gap: 0 16px; }
.foot__legal-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--paper); }
.foot__social a { display: grid; place-items: center; width: 44px; height: 44px; color: var(--paper); border-radius: var(--radius); }
.foot__social a:hover { background: var(--ink-2); }
.foot__social .icon { width: 22px; height: 22px; }

/* ---------- WhatsApp widget (desktop, T3.1). A <details>: works without JS. */
.wa-float { display: none; }
@media (min-width: 768px) {
  .wa-float {
    display: block; position: fixed; right: 24px; bottom: 24px; z-index: 30;
    transition: opacity var(--t), transform var(--t);
  }
  .wa-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
}
.wa-float__btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px;
  border-radius: 999px; background: var(--wa); color: #fff; font-weight: 600; font-size: .9375rem;
  cursor: pointer; list-style: none; box-shadow: 0 6px 20px rgba(18, 20, 22, .22);
  transition: background var(--t);
}
.wa-float__btn::-webkit-details-marker { display: none; }
.wa-float__btn:hover { background: var(--wa-press); }
.wa-float__btn .icon { width: 22px; height: 22px; }
.wa-float__x { display: none; }
.wa-float[open] .wa-float__btn .icon--whatsapp, .wa-float[open] .wa-float__btn span { display: none; }
.wa-float[open] .wa-float__btn { padding: 0; width: 48px; justify-content: center; margin-left: auto; display: flex; }
.wa-float[open] .wa-float__x { display: block; }
.wa-float__card {
  position: absolute; right: 0; bottom: calc(100% + 12px); width: 300px;
  display: grid; gap: 12px; padding: 20px;
  background: var(--surface); color: var(--ink); border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(18, 20, 22, .22);
}
.wa-float__title { font-weight: 700; font-size: 1.0625rem; }
.wa-float__note { font-size: var(--fs-small); color: var(--muted); }
.wa-float__note a { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- motion */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 500ms ease, transform 500ms cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in, .no-site-js [data-reveal] { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; scroll-behavior: auto !important; }
}
