/* Broker Cars — foglio di stile
   Linea automotive premium: nero carbonio, bianco caldo, accento champagne. */

@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #0F1113;
  --carbon: #16191D;
  --graphite: #23272D;
  --muted: #5F6670;
  --paper: #F5F4F1;
  --white: #FFFFFF;
  --line: #E4E2DD;
  --line-strong: #CFCCC4;
  --accent: #B79A5E;       /* champagne: filetti e testi su fondo scuro */
  --accent-ink: #84672F;   /* champagne leggibile su fondo chiaro */
  --accent-soft: rgba(183, 154, 94, .28);
  --on-dark: #F2F1EE;
  --on-dark-muted: #A9AEB5;
  --on-dark-line: rgba(255, 255, 255, .14);
  --ok: #1E6B3A;
  --err: #B3261E;

  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 2px;
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .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-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

h1, h2, h3 { font-family: var(--f-body); font-weight: 600; line-height: 1.08; letter-spacing: -.018em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -.008em; line-height: 1.2; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 40em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 20px;
  font: 600 .82rem/1 var(--f-display); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--form { max-width: 960px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; color: var(--white); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px; padding: .9em 1.7em;
  font: 600 .86rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--primary:hover { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--accent:hover { background: #CBB07A; border-color: #CBB07A; color: var(--ink); }
.btn--light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; flex: none; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo__img { display: block; width: 128px; height: auto; }
.logo__text { font: 700 1.45rem/1 var(--f-display); letter-spacing: .16em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  position: relative; display: block; padding: 12px 11px;
  font: 600 .76rem/1 var(--f-body); letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav ul a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav ul a:hover { color: var(--ink); }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav__phone {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: 600 .95rem/1 var(--f-body); letter-spacing: .02em; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: border-color .25s var(--ease);
}
.nav__phone svg { color: var(--accent-ink); }
.nav__phone:hover { border-color: var(--ink); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 1240px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 12px;
    min-height: 44px; padding: 0 16px;
    background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
    font: 600 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 24px 40px -28px rgba(15, 17, 19, .35);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 18px 2px; font-size: .84rem; border-bottom: 1px solid var(--line); }
  .nav ul a::after { left: 2px; right: auto; width: 32px; bottom: -1px; }
  .nav__phone { margin-top: 20px; justify-content: center; min-height: 52px; font-size: 1.05rem; }
}
@media (max-width: 420px) { .logo__img { width: 96px; } .logo__text { font-size: 1.15rem; letter-spacing: .12em; } .nav-toggle__label { display: none; } }

/* ---------- Hero con slider ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(580px, calc(100vh - var(--header-h)), 880px);
  background: var(--ink); color: var(--white);
}
@supports (height: 100svh) {
  .hero { min-height: clamp(580px, calc(100svh - var(--header-h)), 880px); }
}
.hero__slides { position: absolute; inset: 0; z-index: -2; margin: 0; padding: 0; list-style: none; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.slide.is-active { opacity: 1; }
.slide::after { /* velo per foto chiare, regolabile con 'velo' in data.php */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 13, var(--veil, 0)) 0%, rgba(10, 11, 13, calc(var(--veil, 0) * .8)) 48%, rgba(10, 11, 13, 0) 82%);
}
.slide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, center); }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active img { animation: kenburns 9s ease-out both; }
  @keyframes kenburns { from { transform: scale(1.07); } to { transform: scale(1); } }
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 11, 13, .88) 0%, rgba(10, 11, 13, .62) 34%, rgba(10, 11, 13, .12) 68%, rgba(10, 11, 13, 0) 100%),
    linear-gradient(0deg, rgba(10, 11, 13, .75) 0%, rgba(10, 11, 13, 0) 38%);
}
.hero__content { width: 100%; padding-top: clamp(72px, 12vh, 140px); padding-bottom: clamp(40px, 7vh, 72px); }
.hero__content > * { max-width: 640px; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: var(--white); max-width: 13ch; }
.hero h1, .hero .lead { text-shadow: 0 2px 28px rgba(0, 0, 0, .35); }
.hero .lead { color: rgba(255, 255, 255, .8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__bar { width: 100%; }
.hero__bar-in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 18px 0 22px; border-top: 1px solid var(--on-dark-line);
}
.hero__credit { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .58); }
.hero__credit a { color: inherit; text-decoration-color: rgba(255, 255, 255, .35); }
.hero__credit a:hover { color: var(--white); }
.hero__controls { display: flex; align-items: center; gap: 10px; }
.hero__controls[hidden] { display: none; }
.hero__btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .38); border-radius: 50%;
  cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.hero__btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.hero__btn svg { width: 18px; height: 18px; }
.hero__btn .i-play { display: none; }
.hero__btn[aria-pressed="true"] .i-play { display: block; }
.hero__btn[aria-pressed="true"] .i-pause { display: none; }
.hero__dots { display: flex; gap: 6px; margin: 0 6px; }
.hero__dot { position: relative; width: 34px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.hero__dot::before, .hero__dot::after { content: ""; position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; }
.hero__dot::before { right: 0; background: rgba(255, 255, 255, .3); }
.hero__dot::after { width: 0; background: var(--accent); }
.hero__dot[aria-current="true"]::after { width: 100%; }
.hero.is-playing .hero__dot[aria-current="true"]::after { animation: progress var(--delay, 6s) linear both; }
@keyframes progress { from { width: 0; } to { width: 100%; } }

@media (max-width: 760px) {
  .hero { min-height: 620px; }
  .slide::after { background: rgba(10, 11, 13, calc(var(--veil, 0) * .5)); }
  .hero__shade {
    background: linear-gradient(0deg, rgba(10, 11, 13, .94) 0%, rgba(10, 11, 13, .7) 48%, rgba(10, 11, 13, .25) 80%, rgba(10, 11, 13, .1) 100%);
  }
  .hero__content { padding-top: 160px; padding-bottom: 28px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__credit { order: 2; flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .hero__controls { gap: 6px; }
  .hero__btn { width: 40px; height: 40px; }
  .hero__dots { gap: 4px; margin: 0 2px; }
  .hero__dot { width: 22px; }
}

/* ---------- Punti di forza ---------- */
.highlights { background: var(--carbon); color: var(--on-dark); }
.highlights__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.highlight { padding: 36px 32px 38px; border-left: 1px solid var(--on-dark-line); }
.highlight:first-child { border-left: 0; padding-left: 0; }
.highlight dt { font: 600 1.55rem/1.1 var(--f-body); letter-spacing: -.012em; color: var(--white); margin-bottom: 8px; }
.highlight dd { margin: 0; font-size: .95rem; color: var(--on-dark-muted); }
@media (max-width: 980px) {
  .highlights__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .highlight:nth-child(odd) { border-left: 0; padding-left: 0; }
  .highlight:nth-child(n+3) { border-top: 1px solid var(--on-dark-line); }
}
@media (max-width: 540px) {
  .highlights__grid { grid-template-columns: 1fr; }
  .highlight { border-left: 0; padding: 26px 0; }
  .highlight + .highlight { border-top: 1px solid var(--on-dark-line); }
}

/* ---------- Sezioni ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tint { background: var(--paper); }
.section--dark { background: var(--carbon); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--accent); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head .lead { margin-bottom: 0; }
.section__title { margin-bottom: .45em; }
.section__title--sub { margin-top: 1.6em; font-size: 1.6rem; }

.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--white); }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/slider/berlina-nera-1280.webp") right 30% center / cover no-repeat;
  opacity: .55;
}
.page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(15, 17, 19, .9) 45%, rgba(15, 17, 19, .45) 100%);
}
.page-head .wrap { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 88px); }
.page-head h1 { color: var(--white); margin-bottom: .35em; max-width: 18ch; }
.page-head .lead { color: rgba(255, 255, 255, .78); margin-bottom: 0; }
.page-head .hero__cta { margin-top: 32px; margin-bottom: 0; }
.page-head .btn--primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.page-head .btn--primary:hover { background: #CBB07A; border-color: #CBB07A; }
.page-head .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .45); }
.page-head .btn--ghost:hover { background: var(--white); color: var(--ink); }

/* Servizi e annunci: schede con numero e freccia */
.services, .listings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.service, .listing {
  display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service__n { font: 600 .85rem/1 var(--f-display); letter-spacing: .22em; color: var(--accent-ink); margin-bottom: clamp(32px, 4vw, 56px); }
.service h3, .listing h2 { font-size: 1.45rem; letter-spacing: -.01em; margin-bottom: .55em; }
.service p, .listing p { color: var(--muted); flex: 1; }
.service__more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  font: 600 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.service__more::after { content: "→"; font-size: 1rem; letter-spacing: 0; color: var(--accent-ink); transition: transform .3s var(--ease); }
.service:hover, .listing:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 28px 48px -30px rgba(15, 17, 19, .45); }
.service:hover .service__more::after, .listing:hover .service__more::after { transform: translateX(5px); }
@media (max-width: 900px) { .services, .listings { grid-template-columns: 1fr; } .service__n { margin-bottom: 24px; } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.value { position: relative; padding-top: 28px; border-top: 1px solid var(--on-dark-line); }
.value::before { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 1px; background: var(--accent); }
.value h3 { font-size: 1.35rem; }
.value p { color: var(--on-dark-muted); margin: 0; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

.visit { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.visit .section__title { margin-bottom: .25em; }
.visit__addr { font-size: 1.2rem; color: var(--muted); margin: 0; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  margin-top: clamp(48px, 6vw, 80px); padding: clamp(32px, 5vw, 56px);
  background: var(--carbon); color: var(--on-dark); border-radius: var(--radius);
  border-left: 2px solid var(--accent);
}
.callout > div { flex: 1 1 380px; }
.callout h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--white); margin-bottom: .35em; }
.callout p { color: var(--on-dark-muted); }
.callout p:last-child { margin-bottom: 0; }
.callout a:not(.btn) { color: var(--white); }
.callout a:not(.btn):hover { color: var(--accent); }
.callout .hint { color: var(--on-dark-muted); }
.callout .btn--primary { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.callout .btn--primary:hover { background: #CBB07A; border-color: #CBB07A; }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 64px); }
@media (max-width: 760px) { .cols-2 { grid-template-columns: 1fr; } }

.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; font-size: 1.15rem; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent-ink); }

/* ---------- Tabelle ---------- */
.table-scroll { overflow-x: auto; margin-bottom: 12px; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--white); font-size: .98rem; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font: 600 .76rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.table tbody th { font-weight: 600; }

/* ---------- Link utili ---------- */
.brand-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 32px; border-top: 1px solid var(--ink); }
.brand-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 2px; border-bottom: 1px solid var(--line);
  font: 500 1.08rem/1.2 var(--f-body); color: var(--ink); text-decoration: none;
}
.brand-links a::after { content: "↗"; color: var(--accent-ink); font-size: .9rem; opacity: .6; transition: opacity .2s; }
.brand-links a:hover { color: var(--accent-ink); }
.brand-links a:hover::after { opacity: 1; }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.facts { margin: 0 0 32px; }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { border-top: 1px solid var(--ink); }
.facts dt { font: 600 .76rem/1.9 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 1.1rem; }
.map { aspect-ratio: 4 / 3; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--muted); }
.map__placeholder p { max-width: 30em; margin: 0; }

/* ---------- Moduli ---------- */
.aside-note { padding: 24px 28px; margin-bottom: 48px; background: var(--paper); border-left: 2px solid var(--accent); }
.aside-note h2 { font-size: 1.35rem; margin-bottom: .35em; }
.aside-note p { margin: 0; color: var(--muted); }

.form .group { border: 0; padding: 0; margin: 0 0 48px; min-width: 0; }
.group__title {
  font: 600 1.35rem/1.2 var(--f-body); letter-spacing: -.01em;
  padding: 0 0 14px; margin-bottom: 24px; border-bottom: 1px solid var(--ink); width: 100%;
}
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 20px; }
.field--full { grid-column: span 6; }
.field--half { grid-column: span 3; }
.field--third { grid-column: span 2; }
@media (max-width: 760px) { .field--third { grid-column: span 3; } }
@media (max-width: 520px) { .field--half, .field--third { grid-column: span 6; } }

.field > label, .radios legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.req { color: var(--accent-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 1.0625rem/1.4 var(--f-body); color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; padding-right: 42px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230F1113' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }

.radios { border: 0; margin: 0; padding: 0; min-width: 0; }
.radios__row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.radio span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); font-weight: 500; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.radio input:hover + span { border-color: var(--muted); }
.radio input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.has-error .radio span { border-color: var(--err); }

.hint { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.error { font-size: .92rem; color: var(--err); font-weight: 500; margin: 6px 0 0; }

.consent { margin: 0 0 32px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.form__foot .hint { margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 20px 24px; border-radius: var(--radius); margin-bottom: 32px; }
.notice--err { background: #FCEBEA; border-left: 2px solid var(--err); color: #6B1712; }
.notice--ok { background: #EDF4EF; border-left: 2px solid var(--ok); }
.notice--ok h3 { color: var(--ok); margin-bottom: .2em; }
.notice--ok p { margin: 0; }
.notice:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: .96rem; }
.site-footer a, .site-footer .linkbtn { color: var(--on-dark); }
.site-footer a:hover { color: var(--accent); }
.site-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  padding-top: clamp(56px, 7vw, 88px); padding-bottom: 48px;
}
.site-footer__name { font: 700 1.5rem/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.site-footer address { font-style: normal; line-height: 1.85; }
.site-footer__h { font: 600 .8rem/1 var(--f-display); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer ul a, .site-footer .linkbtn { text-decoration: none; }
.site-footer ul a:hover, .site-footer .linkbtn:hover { color: var(--accent); }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--on-dark-line); font-size: .85rem; color: #80868E;
}
.site-footer__legal p { margin: 0; }
.site-footer__legal a { color: #A9AEB5; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Banner cookie OKCompliance (CookieConsent v3): allineato allo stile del sito ---------- */
#cc-main {
  --cc-font-family: var(--f-body);
  --cc-modal-border-radius: var(--radius);
  --cc-btn-border-radius: var(--radius);
  --cc-pm-toggle-border-radius: 999px;
  --cc-primary-color: var(--ink);
  --cc-secondary-color: var(--muted);
  --cc-btn-primary-bg: var(--ink);
  --cc-btn-primary-border-color: var(--ink);
  --cc-btn-primary-hover-bg: var(--graphite);
  --cc-btn-primary-hover-border-color: var(--graphite);
  --cc-btn-secondary-bg: var(--paper);
  --cc-btn-secondary-border-color: var(--line);
  --cc-btn-secondary-hover-bg: var(--line);
  --cc-btn-secondary-hover-border-color: var(--line-strong);
  --cc-toggle-on-bg: var(--ink);
  --cc-link-color: var(--accent-ink);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, #cc-main, .hero__bar, .hero__slides, .hero__shade { display: none; }
  .hero, .page-head { min-height: 0; background: none; color: var(--ink); }
  .hero h1, .page-head h1 { color: var(--ink); }
}
