:root {
  --bg: #f3f0ec;
  --bg-page: #efefed;
  --bg-elevated: #ffffff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --line: rgba(18, 18, 22, 0.08);
  --line-strong: rgba(34, 96, 210, 0.2);
  --text: #161618;
  --muted: #66656c;
  --text-on-dark: #f5f5f3;
  --muted-on-dark: #bbbbbf;
  --accent: #2260d2;
  --accent-bright: #4b8cff;
  --accent-deep: #173d85;
  --shadow: 0 24px 70px rgba(22, 22, 24, 0.08);
  --shadow-soft: 0 12px 28px rgba(22, 22, 24, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Scrollbar del documento sempre visibile, in tinta con header/footer
     scuri (#111114) invece del grigio chiaro di default del browser.
     scrollbar-width:thin è la proprietà standard (Firefox e Chrome
     recenti): le regole ::-webkit-scrollbar sotto restano come fallback
     per i browser che seguono ancora solo l'approccio via pseudo-elemento. */
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 #111114;
  /* Lo spazio della scrollbar resta riservato anche quando lo scroll viene
     bloccato (apertura dell'ingrandimento foto): senza, la scrollbar
     sparisce e tutta la pagina slitta di lato di qualche pixel. */
  scrollbar-gutter: stable;
}

html::-webkit-scrollbar {
  width: 7px;
}

html::-webkit-scrollbar-track {
  background: #111114;
}

html::-webkit-scrollbar-thumb {
  background-color: #3f3f46;
  border-radius: 8px;
}

html::-webkit-scrollbar-thumb:hover {
  background-color: #52525b;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, #f4f4f2 0%, var(--bg-page) 34%, #f3f3f1 100%);
}

main {
  flex: 1;
}

img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(circle, rgba(18, 18, 22, 0.18) 0.8px, transparent 0.9px);
  background-size: 14px 14px;
}

.orb {
  position: fixed;
  z-index: 0;
  width: 34rem;
  height: 34rem;
  filter: blur(70px);
  opacity: 0.18;
  pointer-events: none;
}

.orb-left {
  top: -10rem;
  left: -12rem;
  background: radial-gradient(circle, rgba(18, 18, 22, 0.06), transparent 64%);
}

.orb-right {
  top: 10rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(18, 18, 22, 0.04), transparent 64%);
}

.topbar,
.section,
.footer,
.ticker {
  position: relative;
  z-index: 2;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 13, 16, 0.92);
  backdrop-filter: blur(18px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-on-dark);
}

.menu-toggle span + span {
  margin-top: 5px;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(145deg, var(--accent-bright), var(--accent-deep));
  color: #fff;
  box-shadow: 0 10px 28px rgba(34, 96, 210, 0.24);
  position: relative;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-on-dark);
  white-space: nowrap;
}

.brand-text small {
  color: var(--muted-on-dark);
  font-size: 0.76rem;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  color: var(--muted-on-dark);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.social-link,
.hero-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-on-dark);
  padding: 10px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.social-link:hover {
  border-color: rgba(34, 96, 210, 0.4);
  color: #fff;
}

.nav a:hover,
.contact-grid a:hover {
  color: var(--accent);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.nav-cta {
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow: 0 12px 28px rgba(34, 96, 210, 0.22);
}

.section {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* Compensa l'header sticky quando si atterra su un'ancora (#contatti,
   #servizi, ...): senza, la sezione finirebbe nascosta sotto l'header. */
.section[id] {
  scroll-margin-top: 92px;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    linear-gradient(135deg, rgba(34, 96, 210, 0.14), transparent 42%),
    #111114;
  box-shadow: none;
}

.hero,
.split,
.editorial,
.showcase,
.testimonials,
.faq,
.footer,
.compendium {
  padding: 42px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "head head"
    "copy visual";
  column-gap: 48px;
  row-gap: 24px;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 42px;
}

.hero-head {
  grid-area: head;
  max-width: none;
}

.hero-shell h1,
.hero-shell .lede,
.hero-shell .hero-metrics strong,
.hero-shell .hero-metrics span,
.hero-shell .brand-points span,
.hero-shell .hero-links a {
  color: var(--text-on-dark);
}

.hero-shell .lede,
.hero-shell .hero-metrics span {
  color: var(--muted-on-dark);
}

.hero-shell .brand-points span,
.hero-shell .hero-links a {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero-shell .btn-secondary {
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}

h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(2.15rem, 4.4vw, 3.45rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

h3 {
  font-size: 1.08rem;
  line-height: 1.12;
}

.lede,
.editorial-copy p,
.summary-card p,
.service-card p,
.testimonial-card p,
.faq-item p,
.footer-card p,
.gallery-copy strong,
.hero-metrics span,
.editorial-overlay p {
  color: var(--muted);
  line-height: 1.68;
  font-size: 0.96rem;
}

.hero-copy,
.editorial-copy,
.showcase-head,
.section-head {
  max-width: 34rem;
}

.hero-copy {
  grid-area: copy;
}

.hero-actions,
.brand-points,
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 24px;
}

.hero-links {
  margin-top: 14px;
}

.hero-links a {
  border-color: rgba(34, 96, 210, 0.24);
  background: rgba(34, 96, 210, 0.12);
  color: var(--text-on-dark);
  box-shadow: 0 14px 34px rgba(11, 19, 40, 0.18);
}

.hero-links a:hover {
  border-color: rgba(75, 140, 255, 0.56);
  background: rgba(34, 96, 210, 0.18);
  color: #fff;
}

.btn {
  padding: 12px 18px;
  font-size: 0.9rem;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  box-shadow: 0 18px 36px rgba(34, 96, 210, 0.26);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.brand-points {
  margin-top: 22px;
  gap: 10px;
}

.brand-points span,
.summary-kicker,
.gallery-copy span,
.carousel-caption span,
.visual-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(34, 96, 210, 0.12);
  border-radius: 999px;
  background: rgba(34, 96, 210, 0.07);
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  font-weight: 600;
}

.brand-points span {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(245, 245, 243, 0.82);
  letter-spacing: 0.05em;
}

.summary-kicker {
  margin-bottom: 14px;
}

.hero-metrics,
.service-grid,
.testimonial-grid,
.compendium-grid,
.gallery-grid,
.stats-band {
  display: grid;
  gap: 18px;
}

.hero-metrics {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.hero-metrics article,
.service-card,
.testimonial-card,
.faq-item,
.footer-card,
.cta-band,
.summary-card,
.stats-band article,
.gallery-copy,
.carousel-caption {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 32%),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.hero-shell .hero-metrics article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 32%),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-metrics article {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-metrics strong,
.stats-band strong {
  display: block;
  color: var(--text);
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", sans-serif;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-visual {
  grid-area: visual;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 20px;
  align-items: stretch;
  min-height: 520px;
}

.image-shell,
.editorial-media,
.visual-card,
.gallery-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(18, 18, 22, 0.06);
  box-shadow: var(--shadow);
  position: relative;
  transform-style: preserve-3d;
  isolation: isolate;
}

.image-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(17, 17, 20, 0.22)),
    linear-gradient(135deg, rgba(34, 96, 210, 0.16), transparent 42%);
  pointer-events: none;
}

.image-shell::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(20, 20, 24, 0.5));
  pointer-events: none;
}

.image-shell img {
  filter: grayscale(0.08) contrast(1.04) brightness(0.94) saturate(0.92);
  transform: scale(1.03);
}

.image-main img {
  object-position: center center;
}

.image-feature img {
  object-position: center center;
}

.image-crop-morini img {
  object-position: center center;
  transform: scale(1.18);
}

.image-crop-frame img {
  object-position: center center;
  transform: scale(1.12);
}

.image-crop-lift img {
  object-position: center center;
  transform: scale(1.08);
}

.image-crop-service img {
  object-position: center center;
  transform: scale(1.12);
}

.image-crop-hero img {
  object-position: center center;
  transform: scale(1.06);
}

.hero-card {
  min-height: 520px;
}

.visual-stack {
  display: grid;
  gap: 18px;
}

.visual-card {
  min-height: 250px;
}

.hero-badge,
.editorial-overlay,
.gallery-copy,
.carousel-caption {
  position: absolute;
  z-index: 2;
}

.hero-badge,
.editorial-overlay {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.hero-badge {
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
}

.hero-badge span,
.gallery-copy span,
.carousel-caption span {
  margin-bottom: 10px;
}

.hero-badge span {
  white-space: nowrap;
}

.hero-badge strong,
.editorial-overlay strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
}

.visual-label {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 10px 14px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(10, 14, 24, 0.72);
  color: #f8fbff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.mobile-menu {
  display: none;
}

.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  padding: 12px 0;
  animation: ticker 24s linear infinite;
}

.ticker span {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.showcase-head,
.section-head {
  max-width: 520px;
}

.hero-head h1,
.pulse-copy h2,
.section-head h2,
.editorial-copy h2,
.showcase-head h2,
.cta-band h2,
.footer-intro h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title-icon {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0.34rem;
  border: 1px solid rgba(34, 96, 210, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(13, 20, 36, 0.08);
  object-fit: contain;
  flex: 0 0 auto;
}

.section-head-wide {
  max-width: none;
}

.brands-disclaimer {
  width: 100%;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.compendium-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.brand-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.summary-card,
.service-card,
.brand-logo-card,
.testimonial-card,
.faq-item,
.gallery-copy,
.stats-band article,
.cta-band,
.footer-card {
  border-radius: var(--radius-lg);
}

.summary-card,
.service-card,
.brand-logo-card,
.testimonial-card,
.faq-item,
.stats-band article {
  padding: 18px;
}

.pulse-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(220px, 0.72fr);
  gap: 24px;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

.pulse-copy {
  display: grid;
  gap: 16px;
  max-width: 42rem;
}

.pulse-copy p {
  margin: 0;
}

.pulse-cta-button {
  width: fit-content;
}

.speedometer-card {
  position: relative;
  width: min(100%, 280px);
  margin-left: auto;
  padding: 8px 4px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.speedometer-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 270px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(248, 249, 251, 0.92), rgba(158, 165, 174, 0.9) 24%, rgba(88, 93, 101, 0.92) 52%, rgba(238, 241, 244, 0.94) 78%, rgba(112, 118, 126, 0.9));
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.36),
    inset 0 -4px 8px rgba(0, 0, 0, 0.24),
    0 14px 26px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  z-index: -3;
  pointer-events: none;
}

.speedometer-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 262px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 13, 15, 0) 0 90%, rgba(12, 13, 15, 0.98) 90.6%, rgba(5, 6, 8, 1) 100%);
  transform: translate(-50%, -50%);
  z-index: -2;
  pointer-events: none;
}

.speedometer-shell {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 4px 2px 0;
  transform: translateY(-5px);
}

.speedometer-glow {
  position: absolute;
  inset: 14px 12px auto;
  height: 126px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), rgba(10, 12, 16, 0) 72%);
  filter: blur(22px);
  pointer-events: none;
}

.speedometer-dial {
  position: relative;
  width: min(100%, 236px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 40%, rgba(70, 74, 81, 0.12), transparent 30%),
    radial-gradient(circle at center, rgba(18, 18, 20, 0.99) 0 52%, rgba(14, 14, 16, 0.99) 53%, rgba(6, 7, 9, 1) 54%, rgba(6, 7, 9, 1) 100%);
  padding: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 44px rgba(0, 0, 0, 0.28);
}

.speedometer-dial::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(34, 36, 40, 0.7), rgba(10, 11, 13, 0.98) 58%, rgba(3, 4, 6, 1) 100%);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.06),
    inset 0 -8px 12px rgba(0, 0, 0, 0.42),
    0 10px 22px rgba(0, 0, 0, 0.32);
  z-index: -2;
}

.speedometer-dial::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(228, 231, 236, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(11, 12, 14, 0.96),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: -1;
}

.speedometer-arc {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(5, 6, 8, 1) 0 59%, transparent 60%),
    radial-gradient(circle, transparent 0 68.8%, rgba(10, 11, 13, 0.98) 69.4%, rgba(10, 11, 13, 0.98) 83%, transparent 83.6%);
}

.speedometer-progress {
  display: none;
}

.speedometer-ticks {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  pointer-events: none;
}

.speedometer-ticks span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(82, 88, 98, 0.96), rgba(48, 52, 59, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform:
    translate(-50%, -50%)
    rotate(var(--tick-angle))
    translateY(-98px);
  transform-origin: center center;
  transition: background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.speedometer-ticks span.is-active {
  background: linear-gradient(180deg, rgba(116, 180, 255, 1), rgba(63, 129, 255, 0.98));
  box-shadow:
    0 0 10px rgba(83, 149, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.speedometer-readout {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 112px;
  padding: 12px 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(7, 8, 10, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -44%);
  z-index: 3;
}

.speedometer-readout-label {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.speedometer-readout strong {
  color: #ffffff;
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.12em;
}

.speedometer-readout small {
  color: rgba(120, 171, 255, 0.88);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.summary-card {
  min-height: 220px;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.brand-logo-card {
  display: grid;
  width: min(172px, 100%);
  min-height: 116px;
  padding: 18px;
  justify-items: center;
  align-items: center;
  align-content: center;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.brand-logo-card img {
  width: auto;
  max-width: min(100%, 168px);
  max-height: 52px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.brand-logo-card[title="Ducati"] img {
  max-width: min(100%, 188px);
  max-height: 44px;
}

.brand-logo-card[title="Piaggio"] img {
  max-width: min(100%, 152px);
  max-height: 64px;
}

.brand-logo-card[title="Harley-Davidson"] img {
  max-width: min(100%, 182px);
  max-height: 66px;
}

.service-card {
  min-height: 180px;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.service-card h3 {
  color: var(--accent);
  margin-bottom: 12px;
}

.service-card:hover,
.testimonial-card:hover,
.summary-card:hover,
.brand-logo-card:hover,
.gallery-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 52px rgba(13, 20, 36, 0.16);
}

.service-index {
  display: none;
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 34px;
  align-items: center;
}

.feature-list {
  padding-left: 18px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.feature-list li + li {
  margin-top: 10px;
}

.editorial-media {
  min-height: 340px;
}

.editorial-overlay {
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
}

.editorial-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 96, 210, 0.1);
  color: var(--accent);
  border: 1px solid rgba(34, 96, 210, 0.16);
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.editorial-overlay p {
  margin: 10px 0 0;
}

.stats-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px 0 12px;
}

.stats-band article {
  padding: 18px;
}

.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  margin-top: 24px;
}

.gallery-card {
  min-height: 280px;
}

.gallery-copy,
.carousel-caption {
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 14px;
}

.gallery-copy strong,
.carousel-caption strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* --- Carosello foto officina -------------------------------------------
   Le slide riusano .image-shell (angoli, bordo, ombra, velatura e filtro
   immagine) e .carousel-caption eredita gli stessi stili di .gallery-copy:
   il carosello parla esattamente la lingua del resto del sito.
   Le foto hanno orientamenti misti (orizzontali e verticali): la slide ha
   proporzione fissa e l'immagine viene ritagliata con object-fit: cover
   (regola globale su img), così la striscia resta ordinata invece di
   alternare riquadri di altezze diverse. */
.carousel {
  margin-top: 28px;
}

.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.carousel-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.carousel-nav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel-solid);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-btn:hover:not(:disabled) {
  background: rgba(34, 96, 210, 0.08);
  transform: translateY(-1px);
}

/* Estremi della striscia: il pulsante resta al suo posto (niente salti di
   layout) ma comunica che da quel lato non c'è altro. */
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Pausa/riprendi: si mostra l'icona dello stato in cui si può passare —
   con lo scorrimento attivo si vede "pausa", da fermo si vede "play". */
.carousel-play .icon-pausa {
  stroke-linecap: round;
}

.carousel-play .icon-play {
  display: none;
  fill: currentColor;
  stroke: none;
}

.carousel-play[data-in-pausa="true"] .icon-pausa {
  display: none;
}

.carousel-play[data-in-pausa="true"] .icon-play {
  display: block;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 8px;
  /* La striscia è un contenitore di scroll: quello che sborda resta dentro
     e non allarga mai la pagina (niente overflow orizzontale sul sito). */
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-md);
}

.carousel-slide {
  flex: 0 0 auto;
  width: clamp(260px, 30vw, 380px);
  aspect-ratio: 4 / 3;
  margin: 0;
  scroll-snap-align: start;
}

.carousel-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* La didascalia eredita l'aspetto di .gallery-copy, ma lì i testi sono
   lunghi e il riquadro può permettersi di essere grande: qui le slide sono
   più piccole e una didascalia della stessa taglia coprirebbe metà foto.
   Quindi stessa grafica, proporzioni più contenute. */
.carousel-caption {
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 12px;
  /* Stesso raggio dei riquadri compatti sovrapposti alle immagini nel resto
     del sito (.hero-badge, .editorial-overlay): --radius-lg di .gallery-copy
     sarebbe sproporzionato su una didascalia alta un terzo di quella. */
  border-radius: var(--radius-md);
  /* I click passano alla foto sotto: così è cliccabile tutta la slide,
     didascalia compresa, per aprire l'ingrandimento. */
  pointer-events: none;
}

.carousel-caption span {
  margin-bottom: 6px;
  padding: 5px 10px;
  font-size: 0.72rem;
}

.carousel-caption strong {
  font-size: 0.8rem;
  line-height: 1.4;
}

/* La foto è dentro un <button> (si apre ingrandita): qui si azzera
   l'aspetto da pulsante, lasciandone solo il comportamento. */
.carousel-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.carousel-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: var(--radius-xl);
}

.carousel-slide img {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide:hover img {
  transform: scale(1.08);
}

/* --- Ingrandimento foto (dialog nativo) --------------------------------- */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(8, 8, 11, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 16px clamp(12px, 3vw, 28px) clamp(16px, 3vw, 28px);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
}

.lightbox-counter {
  margin: 0;
  color: rgba(245, 245, 243, 0.7);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

/* La foto al centro, le frecce ai lati e la didascalia sotto: su schermi
   stretti le frecce scendono accanto alla didascalia (vedi media query). */
.lightbox-figure {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "prev foto next"
    "cap  cap  cap";
  align-items: center;
  justify-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
}

.lightbox-nav {
  grid-area: prev;
}

.lightbox-nav[data-lightbox-next] {
  grid-area: next;
}

.lightbox-picture {
  grid-area: foto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}

/* Contain, non cover: nell'ingrandimento la foto si vede INTERA, senza il
   ritaglio che la slide del carosello applica per restare uniforme. */
.lightbox-picture img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  filter: none;
  transform: none;
}

.lightbox-caption {
  grid-area: cap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 60ch;
  text-align: center;
}

.lightbox-caption span {
  display: inline-flex;
  padding: 5px 12px;
  border: 1px solid rgba(75, 140, 255, 0.32);
  border-radius: 999px;
  background: rgba(34, 96, 210, 0.16);
  color: #cfe0ff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.lightbox-caption strong {
  color: var(--text-on-dark);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Con il modal aperto la pagina dietro non deve scorrere. */
html.lightbox-open {
  overflow: hidden;
}

.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
}

.testimonial-card strong {
  display: block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.98rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Freccetta che ruota all'apertura: rende leggibile lo stato aperto/chiuso. */
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item p {
  margin-bottom: 0;
}

/* La risposta entra in dissolvenza mentre l'altezza si apre (vedi main.js). */
.faq-item[open] p {
  animation: faq-answer 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes faq-answer {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(75, 140, 255, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 32%),
    var(--panel);
}

.cta-band-copy {
  flex: 1 1 860px;
  max-width: 860px;
}

.cta-band-copy p {
  margin-bottom: 0;
}

.cta-band-note {
  margin-top: 14px;
}

.workshop-status-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.workshop-status-chip.is-open {
  color: #117a35;
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.24);
}

.workshop-status-chip.is-closing {
  color: #185fcb;
  background: rgba(34, 96, 210, 0.12);
  border-color: rgba(34, 96, 210, 0.24);
}

.workshop-status-chip.is-closed {
  color: #c43333;
  background: rgba(234, 67, 53, 0.1);
  border-color: rgba(234, 67, 53, 0.18);
}

.cta-band-links {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-right: 44px;
}

.cta-band-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.cta-band-links .social-icon {
  margin-right: 0;
}

.cta-band-links .contact-map-icon {
  width: 1.45rem;
  height: 1.45rem;
  background: rgba(234, 67, 53, 0.12);
}

.cta-band-links .contact-address {
  width: auto;
}

.cta-band-links a:hover {
  color: var(--accent);
}

.cta-band-links .contact-address {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(34, 96, 210, 0.24);
}


.footer {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 32px;
  padding: 0;
  background: #111114;
}

.footer-inner {
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.footer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 44px;
  width: 100%;
  max-width: none;
  padding: 40px 48px 30px;
  background:
    linear-gradient(135deg, rgba(75, 140, 255, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 32%),
    transparent;
  border: 0;
  border-radius: 0;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  box-shadow: none;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-policies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact-hours-card .footer-policies {
  justify-content: flex-start;
  margin-top: 8px;
}

.footer-bottom span,
.footer-bottom a {
  color: var(--muted-on-dark);
  font-size: 0.92rem;
}

.footer-card p,
.footer-card .contact-grid span,
.footer-card .contact-grid a,
.footer-card h2 {
  color: inherit;
}

.footer-card p,
.footer-card .contact-grid span,
.footer-card .contact-grid a {
  color: var(--muted-on-dark);
}

.footer-intro {
  max-width: 28rem;
}

.footer-intro h2 {
  margin-bottom: 14px;
}

.footer-intro p {
  margin: 0;
}

.footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 28px;
  align-items: start;
}

.contact-grid {
  display: grid;
  gap: 12px;
  text-align: left;
  align-content: start;
}

.contact-grid a,
.contact-grid span {
  font-size: 0.98rem;
}

.contact-primary a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.contact-details {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.contact-address,
.contact-hours-card {
  grid-column: 1 / -1;
}

.contact-details span,
.contact-details strong {
  line-height: 1.65;
}

.contact-address {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text-on-dark);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 0.22em;
}

.contact-map-icon {
  display: inline-flex;
  width: 1rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.contact-map-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-hours-card {
  display: grid;
  gap: 2px;
}

.contact-hours-card strong {
  color: var(--text-on-dark);
  font-size: 0.94rem;
}


.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 55;
  width: min(calc(100vw - 32px), 420px);
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(13, 13, 16, 0.96);
  color: var(--text-on-dark);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted-on-dark);
  font-size: 0.94rem;
  line-height: 1.6;
}

.cookie-banner-title {
  display: block;
  margin-bottom: 8px;
  color: var(--text-on-dark);
  font-size: 1rem;
  font-weight: 700;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.cookie-banner-link {
  color: var(--text-on-dark);
  text-decoration: none;
}

.cookie-banner-accept {
  min-height: 44px;
  padding: 0.78rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.cookie-banner-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(34, 96, 210, 0.28);
}

.cookie-banner-accept:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.social-icon {
  display: inline-flex;
  width: 1.45rem;
  height: 1.45rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
  line-height: 1;
  flex: 0 0 auto;
}

.social-icon-facebook {
  color: #1877f2;
  background: rgba(24, 119, 242, 0.16);
}

.social-icon-whatsapp {
  color: #25d366;
  background: rgba(37, 211, 102, 0.16);
}

.social-icon-phone {
  color: #8db8ff;
  background: rgba(141, 184, 255, 0.18);
}

.social-icon-email {
  color: #7fb0ff;
  background: rgba(127, 176, 255, 0.16);
}

.social-icon svg {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
  fill: currentColor;
}

.nav-cta,
.btn,
.hero-links a,
.social-link,
.contact-grid a {
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.nav-cta:hover,
.btn:hover,
.hero-links a:hover,
.social-link:hover,
.contact-grid a:hover {
  transform: translateY(-1px);
}

.footer-runway {
  position: relative;
  width: min(1200px, calc(100vw - 32px));
  margin: 40px auto 0;
  padding-top: 22px;
  /* La moto attraversa la pista con una corsa più lunga della pista stessa
     (vedi @keyframes footer-bike-run): a fine ciclo sporgeva oltre il bordo
     destro della finestra, e su mobile quell'ingombro allarga il viewport —
     la pagina si rimpicciolisce lasciando una striscia bianca a destra,
     salvo poi rientrare al ciclo successivo.
     Qui NON si può usare overflow: hidden: la pista è alta ~23px mentre la
     moto (~120px) sborda apposta verso l'alto, e verrebbe tagliata a metà.
     clip-path ritaglia SOLO in orizzontale (0 ai lati = bordo del box) e
     lascia respirare in verticale grazie ai valori negativi. */
  clip-path: inset(-300px 0 -300px 0);
}

.footer-runway-line {
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 96, 210, 0), rgba(34, 96, 210, 0.26), rgba(255, 90, 46, 0.55), rgba(34, 96, 210, 0.26), rgba(34, 96, 210, 0));
}

.footer-runway-trail {
  position: absolute;
  top: 4px;
  left: -520px;
  width: 104px;
  height: 28px;
  z-index: 0;
  opacity: 0;
  animation: footer-bike-run 9.2s linear infinite, footer-bike-enter 9.2s linear infinite;
}

.footer-runway-trail span {
  position: absolute;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(122, 176, 255, 0), rgba(122, 176, 255, 0.95));
  box-shadow: 0 0 10px rgba(122, 176, 255, 0.18);
  transform-origin: right center;
  animation: footer-speed-line 1s ease-out infinite;
}

.footer-runway-trail span:nth-child(1) {
  top: 2px;
  right: 0;
  width: 58px;
  height: 2px;
}

.footer-runway-trail span:nth-child(2) {
  top: 9px;
  right: 10px;
  width: 78px;
  height: 3px;
  animation-delay: 0.12s;
}

.footer-runway-trail span:nth-child(3) {
  top: 16px;
  right: 4px;
  width: 64px;
  height: 2px;
  animation-delay: 0.24s;
}

.footer-runway-trail span:nth-child(4) {
  top: 22px;
  right: 14px;
  width: 46px;
  height: 2px;
  animation-delay: 0.36s;
}

.footer-runway-bike {
  position: absolute;
  top: -28px;
  left: -408px;
  z-index: 1;
  opacity: 0;
  animation: footer-bike-run 9.2s linear infinite, footer-bike-enter 9.2s linear infinite;
}

.footer-runway-bike img {
  width: 120px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(18, 53, 128, 0.22));
}

.policy-page {
  background:
    radial-gradient(circle at top left, rgba(34, 96, 210, 0.08), transparent 24%),
    linear-gradient(180deg, #f5f2ed 0%, #efeeea 38%, #eceae6 100%);
}

.policy-main {
  position: relative;
  z-index: 2;
  flex: 1;
}

.policy-shell {
  padding-top: 56px;
  padding-bottom: 80px;
}

.policy-document {
  display: grid;
  gap: 24px;
  padding: 42px 48px;
  border: 1px solid rgba(18, 18, 22, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 251, 249, 0.98)),
    #fff;
  box-shadow: 0 24px 60px rgba(18, 18, 22, 0.08);
}

.policy-document-header {
  display: grid;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(18, 18, 22, 0.1);
}

.policy-document-header h1 {
  max-width: none;
  color: var(--text);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  letter-spacing: -0.045em;
}

.policy-document-intro {
  max-width: none;
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.policy-last-updated {
  margin: -2px 0 0;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.policy-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.policy-meta-item {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(18, 18, 22, 0.08);
  border-radius: 18px;
  background: rgba(17, 17, 20, 0.02);
}

.policy-meta-item strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.policy-meta-item span {
  color: var(--text);
  line-height: 1.55;
}

.policy-note {
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: rgba(34, 96, 210, 0.05);
}

.policy-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.policy-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.policy-body {
  display: grid;
  gap: 0;
}

.policy-section {
  padding: 24px 0;
  border-bottom: 1px solid rgba(18, 18, 22, 0.08);
}

.policy-section:first-child {
  padding-top: 4px;
}

.policy-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.policy-section p {
  max-width: 70rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.policy-section p + p {
  margin-top: 12px;
}

.policy-document code {
  padding: 0.18rem 0.42rem;
  border-radius: 8px;
  background: rgba(17, 17, 20, 0.06);
  color: var(--text);
  font-size: 0.92em;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes footer-bike-run {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(100vw + 420px));
  }
}

@keyframes footer-bike-enter {
  0% {
    opacity: 0;
  }

  6% {
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  88% {
    opacity: 1;
  }

  94% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes footer-bike-trail {
  0% {
    opacity: 0.34;
    transform: scaleX(0.72);
  }

  50% {
    opacity: 0.92;
    transform: scaleX(1);
  }

  100% {
    opacity: 0.18;
    transform: scaleX(1.18);
  }
}

@keyframes footer-speed-line {
  0% {
    opacity: 0;
    transform: scaleX(0.4);
  }

  30% {
    opacity: 0.95;
    transform: scaleX(1);
  }

  100% {
    opacity: 0;
    transform: scaleX(1.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.in-view,
  .ticker-track,
  .footer-runway-trail,
  .footer-runway-bike {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }

  .footer-runway-bike {
    left: calc(50% - 79px);
  }

  .footer-runway-trail {
    display: none;
  }

  /* Niente zoom sulle foto del carosello al passaggio del mouse. */
  .carousel-slide img,
  .carousel-slide:hover img {
    transition: none;
    transform: none;
  }

  /* L'altezza della FAQ non viene animata (vedi main.js): qui si fermano
     anche la freccetta e la dissolvenza della risposta. */
  .faq-item summary::after,
  .faq-item[open] p {
    transition: none;
    animation: none;
  }
}

/* Fascia intermedia, prima del menu mobile (1140px): appena sotto ~1377px le
   voci di menu, con i bottoni social a testo pieno, comincerebbero ad andare
   a capo sotto al logo. Si riducono quindi i bottoni alla sola icona per
   liberare spazio (il testo resta per lettori di schermo/tooltip). Soglia
   fissata poco sopra il punto di wrap misurato, così la riduzione scatta
   esattamente quando servirebbe e mai dopo. */
@media (max-width: 1385px) {
  .topbar-actions .social-link {
    padding: 10px;
    gap: 0;
  }

  .topbar-actions .social-link .social-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 1140px) {
  .reveal,
  .reveal.in-view,
  .tilt-card,
  .nav-cta,
  .btn,
  .hero-links a,
  .social-link,
  .contact-grid a,
  .service-card,
  .summary-card,
  .brand-logo-card,
  .gallery-card {
    transition: none;
    animation: none;
    transform: none;
  }

  .hero,
  .editorial,
  .pulse-cta,
  .footer-card,
  .gallery-grid,
  .stats-band,
  .testimonial-grid,
  .compendium-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-areas:
      "head"
      "copy"
      "visual";
    gap: 28px;
  }

  .hero-metrics,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-card {
    min-height: 420px;
  }

  .visual-stack {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    min-height: 260px;
  }

  /* Carosello su schermi stretti: testo e frecce impilati e centrati come
     il resto delle intestazioni, slide poco più strette dello schermo così
     la successiva "sbircia" dal bordo e si capisce che si può scorrere. */
  .carousel-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .carousel-slide {
    width: min(78vw, 340px);
  }

  /* La slide si rimpicciolisce ma il testo no: senza questo la didascalia
     arriverebbe a coprire oltre il 40% della foto su telefono. */
  .carousel-caption {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 9px 10px;
  }

  .carousel-caption span {
    margin-bottom: 5px;
    padding: 4px 9px;
    font-size: 0.68rem;
  }

  .carousel-caption strong {
    font-size: 0.76rem;
    line-height: 1.35;
  }

  /* Ingrandimento su schermi stretti: le frecce ai lati ruberebbero
     larghezza alla foto, quindi scendono sotto, ai lati della didascalia.
     Sul telefono si può comunque passare da una foto all'altra scorrendo
     il carosello e riaprendo, ma i pulsanti restano la via principale. */
  .lightbox-figure {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "foto foto foto"
      "prev cap  next";
    gap: 12px;
  }

  .lightbox-caption strong {
    font-size: 0.86rem;
  }

  .nav,
  .topbar-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu {
    position: fixed;
    top: 84px;
    left: 14px;
    right: 14px;
    z-index: 45;
    display: block;
  }

  .mobile-menu-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(13, 13, 16, 0.96);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  }

  .mobile-menu-card a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--text-on-dark);
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.94rem;
  }

  .hero-metrics,
  .service-grid,
  .testimonial-grid,
  .visual-stack {
    grid-template-columns: 1fr;
  }

  .section-head,
  .showcase-head,
  .footer-intro,
  .editorial-copy,
  .hero-copy,
  .pulse-copy {
    max-width: none;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .brand-wall,
  .faq-list,
  .service-grid,
  .compendium-grid,
  .stats-band,
  .gallery-grid,
  .hero-actions,
  .hero-links,
  .brand-points,
  .hero-copy {
    width: 100%;
  }

  .brand-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .brand-logo-card,
  .summary-card,
  .service-card,
  .stats-band article,
  .faq-item {
    width: 100%;
    text-align: center;
  }

  /* Qui la scheda FAQ è centrata: la freccetta resta accanto alla domanda
     invece di essere spinta al bordo destro. */
  .faq-item summary {
    justify-content: center;
    gap: 12px;
  }

  .brand-logo-card {
    width: min(180px, 100%);
    justify-items: center;
  }

  .hero-actions,
  .hero-links,
  .brand-points {
    justify-content: center;
  }

  .hero-actions .btn,
  .hero-links a {
    width: 100%;
  }

  .hero-links a {
    position: relative;
    justify-content: center;
    padding-left: 46px;
    text-align: center;
  }

  .hero-links a .social-icon {
    position: absolute;
    left: 14px;
  }

  .hero-copy > * {
    width: 100%;
  }

  .pulse-copy h2,
  .section-head h2,
  .editorial-copy h2,
  .showcase-head h2,
  .cta-band h2,
  .footer-intro h2 {
    justify-content: center;
    width: 100%;
  }

  .section-title-icon {
    width: 2rem;
    height: 2rem;
    padding: 0.28rem;
  }

  .feature-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin-top: 18px;
    list-style: none;
  }

  .feature-list li {
    padding: 14px 16px;
    border: 1px solid rgba(34, 96, 210, 0.12);
    border-radius: 16px;
    background: rgba(34, 96, 210, 0.05);
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.55;
    box-shadow: 0 10px 24px rgba(13, 20, 36, 0.05);
  }

  .feature-list li + li {
    margin-top: 0;
  }

  .pulse-cta-button {
    width: 100%;
  }

  .speedometer-card {
    width: min(100%, 252px);
    margin: 0 auto;
    padding: 8px 0 0;
  }

  .speedometer-shell {
    width: 100%;
  }

  .contact-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .contact-primary a {
    width: auto;
  }

  .contact-address,
  .contact-hours-card,
  .footer-bottom,
  .footer-meta,
  .footer-policies {
    justify-content: center;
    justify-items: center;
    text-align: center;
  }

  .cta-band,
  .footer-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-meta {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid {
    text-align: left;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .footer-runway {
    width: min(100%, calc(100vw - 28px));
    padding-top: 18px;
  }

  .footer-runway-bike img {
    width: 108px;
  }

  .footer-runway-trail {
    height: 14px;
    width: 150px;
    left: -560px;
  }

  .contact-details span:first-child {
    grid-column: auto;
  }

  .footer-policies {
    flex-direction: row;
    gap: 14px;
  }

  .topbar {
    padding: 14px 18px;
  }

  .section {
    width: min(100% - 28px, 1240px);
  }

  h1 {
    font-size: 1.9rem;
    white-space: normal;
  }

  .hero-actions,
  .hero-links,
  .cta-band {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band-copy {
    flex: 0 0 auto;
    max-width: none;
  }

  .cta-band {
    gap: 12px;
  }

  .topbar-actions .social-link {
    display: none;
  }

  .footer-card {
    padding: 28px 20px;
  }

  .policy-shell {
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .policy-document {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .policy-document-header h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .policy-meta-grid {
    grid-template-columns: 1fr;
  }

  .policy-meta-item,
  .policy-note {
    padding: 18px 16px;
  }

  .cookie-banner {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
  }

  .cookie-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-badge,
  .editorial-overlay,
  .gallery-copy {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@keyframes mobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
