/* === LEXI — Digital Photography ================================= */

:root {
  --bg:        oklch(0.14 0.005 260);
  --bg-2:      oklch(0.17 0.008 260);
  --surface:   oklch(0.19 0.009 260);
  --surface-2: oklch(0.22 0.010 260);
  --line:      oklch(0.28 0.012 260);
  --line-soft: oklch(0.24 0.010 260 / 0.6);
  --fg:        oklch(0.97 0.003 260);
  --fg-dim:    oklch(0.78 0.006 260);
  --muted:     oklch(0.58 0.010 260);
  --muted-2:   oklch(0.44 0.010 260);
  --accent:    #5B5BF5;
  --accent-2:  #7A7AFF;
  --accent-soft: oklch(0.55 0.20 275 / 0.16);

  --font-sans: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --container: 1480px;
  --pad-x: clamp(20px, 4vw, 48px);
  --radius: 2px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  /* subtle film grain */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select {
  font: inherit; color: inherit; background: transparent; border: 0; outline: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 15px;
  text-transform: uppercase;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 10px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-2px);
}

/* Navigation =================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line-soft);
  transition: padding 0.3s ease;
}

.nav.compact { padding: 14px var(--pad-x); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-logo img { width: 22px; height: 22px; object-fit: contain; }
.nav-logo .logo-wordmark { width: auto; height: 500px; }
.nav-logo .tag {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-left: 12px;
  margin-left: 4px;
  border-left: 1px solid var(--line);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.nav-links a {
  color: var(--fg-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px;
}
.nav-cta .lang {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
}
.nav-cta .theme-toggle {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0;
  transition: color 0.2s ease;
}
.nav-cta .theme-toggle b { color: var(--fg); font-weight: 500; }
.nav-cta .theme-toggle:hover { color: var(--fg); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 16px;
  letter-spacing: 0.01em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: white;
  color: var(--bg);
  border-color: white;
}
.btn .arrow {
  width: 14px; height: 14px;
  transition: transform 0.25s ease;
}
.btn:hover .arrow { transform: translate(3px, -3px); }

/* Hero ========================================================= */

.hero {
  padding: 180px var(--pad-x) 100px;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-title-logo {
  flex: 1;
  margin-top: -60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2400&q=80");
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) contrast(1.05);
}
.hero-bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--bg) 88%, transparent) 0%,
      color-mix(in oklab, var(--bg) 72%, transparent) 40%,
      color-mix(in oklab, var(--bg) 92%, transparent) 80%,
      var(--bg) 100%);
}
.hero-bg-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 30% 40%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 60%),
    rgba(0, 0, 0, 0.56);
}
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 64px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding: 0;
}
.hero-meta .col { flex: 1; max-width: 300px; }
.hero-meta .col p {
  color: var(--fg-dim);
  font-size: 17px;
  line-height: 1.55;
  margin-top: 10px;
}

.hero-title {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  font-weight: 500;
  font-size: clamp(82px, 14.5vw, 238px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.hero-title-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(10px, 1.2vw, 18px);
  font-size: inherit;
  line-height: 1;
}
.hero-logo {
  width: clamp(380px, 52vw, 760px);
  height: auto;
  display: block;
}
.hero-tagline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 38px);
  letter-spacing: -0.01em;
  color: var(--fg-dim);
  white-space: nowrap;
}
.hero-title .row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 36px);
  flex-wrap: wrap;
}
.hero-title .italic {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}
.hero-sub {
  max-width: var(--container);
  margin: 48px auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line-soft);
}
.hero-sub .stat .n {
  font-size: clamp(35px, 3.6vw, 51px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-sub .stat .n .accent { color: var(--accent); }
.hero-sub .stat .lbl {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.hero-sub .descr {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 44ch;
  justify-self: end;
}

/* Marquee ticker ============================================== */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 24px 0;
  background: var(--bg-2);
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 60px;
  animation: ticker 40s linear infinite;
}
.ticker span {
  font-size: clamp(27px, 3vw, 43px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg-dim);
}
.ticker .dot {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ticker .dot svg { display: block; width: 0.7em; height: 0.7em; }
.ticker .dot img {
  display: block;
  width: 0.95em;
  height: 0.95em;
  object-fit: contain;
}
@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Sections ==================================================== */

.section {
  padding: 140px var(--pad-x);
  max-width: var(--container);
  margin: 0 auto;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head .title {
  font-size: clamp(43px, 6vw, 99px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.section-head .title em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}
.section-head .lead {
  color: var(--fg-dim);
  font-size: 20px;
  line-height: 1.55;
  max-width: 52ch;
}
.section-head-tight {
  gap: 32px;
  margin-bottom: 56px;
  align-items: center;
}
.section-head-tight .title {
  line-height: 0.92;
}
.section-head-tight .lead {
  max-width: 46ch;
  line-height: 1.45;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-num .bar { flex: 1; height: 1px; background: var(--line-soft); }

/* Carousel gallery =============================================== */

.carousel {
  position: relative;
  width: 100%;
  height: clamp(420px, 62vh, 680px);
  overflow: hidden;
  user-select: none;
}

.carousel-track {
  position: absolute;
  inset: 0;
}
.car-slide {
  --d: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(280px, 44vw, 720px);
  height: calc(clamp(280px, 44vw, 720px) * 2 / 3);
  transform: translate(-50%, -50%) translateX(calc(var(--d) * 52%)) scale(var(--scale, 1));
  transition: transform 0.9s cubic-bezier(.22,.8,.22,1), opacity 0.7s ease, filter 0.7s ease;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: 2px;
}
.car-slide.active {
  --scale: 1;
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}
.car-slide.adj {
  --scale: 0.82;
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  filter: brightness(0.6);
}
.car-slide.far {
  --scale: 0.68;
  opacity: 0;
  z-index: 1;
}
.car-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s ease;
}
.car-slide.active .car-img { transform: scale(1.03); }
.car-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45));
  pointer-events: none;
}
.car-meta {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 8px;
  z-index: 4;
}
.car-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: white;
  padding: 5px 10px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
}
.carousel-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 14%;
  pointer-events: none;
  z-index: 4;
}
.carousel-fade-l { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.carousel-fade-r { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.carousel-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}
.car-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.car-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.car-count {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--fg);
  min-width: 74px;
  text-align: center;
}
.car-sep { color: var(--muted); margin: 0 4px; }
.carousel-caption {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  z-index: 5;
  text-align: right;
}
.car-loc {
  font-size: 16px;
  color: var(--fg);
  font-weight: 500;
}
.car-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.14em;
}

/* Projects (legacy, unused) =============================== */

.projects-list {
  list-style: none;
  position: relative;
  border-top: 1px solid var(--line-soft);
}
.project-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 1fr 0.7fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  cursor: pointer;
  transition: padding 0.4s cubic-bezier(.2,.8,.2,1), background 0.3s ease;
}
.project-row:hover {
  padding-left: 32px;
  padding-right: 32px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--accent) 6%, transparent), transparent);
}
.project-row .num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.project-row .name {
  font-size: clamp(25px, 2.4vw, 37px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color 0.3s ease, transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.project-row:hover .name { color: var(--accent); }
.project-row .location {
  color: var(--fg-dim);
  font-size: 17px;
}
.project-row .year {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.project-row .tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-dim);
  white-space: nowrap;
}

.hover-image {
  position: fixed;
  top: 0; left: 0;
  width: 360px; height: 460px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.hover-image.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.hover-image .placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  position: relative;
  overflow: hidden;
}
.hover-image .placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg,
      oklch(0.22 0.01 260) 0 2px,
      transparent 2px 12px);
  opacity: 0.5;
}
.hover-image .placeholder > span {
  position: relative;
  padding: 10px 14px;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border: 1px solid var(--line);
}

/* Services ==================================================== */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.service {
  background: var(--bg);
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 520px;
  transition: background 0.3s ease;
  position: relative;
}
.service:hover { background: var(--bg-2); }
.service-num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.service-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
}
.service h3 {
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.service h3 em {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
}
.service p {
  color: var(--fg-dim);
  font-size: 17.5px;
  line-height: 1.6;
}
.service .price {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.service .price .from {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.service .price .amt {
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.service .price .amt sup {
  font-size: 17px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}
.service ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16.5px;
  color: var(--fg-dim);
}
.service ul li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.service ul li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent);
  flex-shrink: 0;
  transform: rotate(45deg);
  margin-top: 7px;
}

/* Services — 4 columns variant */
.services.services-4 {
  grid-template-columns: repeat(4, 1fr);
}
.services.services-4 .service { padding: 40px 32px 32px; min-height: 480px; }
.services.services-4 .service h3 { font-size: 26px; }
.services.services-4 .service .price .amt { font-size: 30px; }

/* Extras (Supplementi & Costi aggiuntivi) ====================== */
.extras {
  margin-top: 1px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-top: 0;
}
.extras-block {
  background: var(--bg);
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.extras-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.extras-num {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  line-height: 1;
}
.extras-lbl {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.extras-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.extras-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.extras-list li:last-child { border-bottom: 0; }
.ex-name {
  font-size: 18px;
  color: var(--fg-dim);
  letter-spacing: -0.005em;
}
.ex-name em {
  font-style: normal;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 6px;
}
.ex-amt {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg);
  white-space: nowrap;
}

.vat-note {
  margin-top: 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 18px 24px;
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 1100px) {
  .services.services-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services.services-4 { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
  .extras-block { padding: 28px 22px 24px; }
  .ex-name { font-size: 16px; }
  .ex-amt { font-size: 18px; }
  .vat-note { font-size: 11px; padding: 16px 12px; }

  /* Mobile: extras collapsibles */
  .extras-block .extras-head {
    cursor: pointer;
    user-select: none;
    padding-bottom: 0;
    border-bottom: 0;
    justify-content: flex-start;
    width: 100%;
    gap: 14px;
  }
  .extras-block .extras-head .extras-num {
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  }
  .extras-block.open .extras-head .extras-num {
    background: var(--accent);
    color: white;
    transform: rotate(45deg);
  }
  .extras-block .extras-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
  }
  .extras-block.open .extras-list {
    max-height: 600px;
    opacity: 1;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
  }
}

/* Before/After =============================================== */

.ba-wrap {
  position: relative;
  margin-top: 40px;
  border: 1px solid var(--line-soft);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  user-select: none;
}
.ba-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ba-before {
  background-image: url("assets/ba-before.jpg?v=5");
  background-size: cover;
  background-position: center;
  color: var(--fg-dim);
}
.ba-after {
  background-image: url("assets/ba-after.jpg?v=5");
  background-size: cover;
  background-position: center;
  color: var(--fg);
  clip-path: inset(0 0 0 50%);
}
.ro-before {
  background-image: url("assets/ro-before.jpg?v=2");
  background-size: cover;
  background-position: center;
}
.ro-after {
  background-image: url("assets/ro-after.jpg?v=2");
  background-size: cover;
  background-position: center;
  clip-path: inset(0 0 0 50%);
}
.ba-label {
  position: absolute;
  top: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  border: 1px solid var(--line);
  z-index: 3;
}
.ba-before-lbl { left: 20px; color: var(--fg-dim); }
.ba-after-lbl { right: 20px; color: var(--accent); border-color: var(--accent); }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  z-index: 4;
  cursor: ew-resize;
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px -6px rgba(91,91,245,0.6);
}
.ba-handle::after {
  content: "⟷";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 19px;
  font-weight: 700;
  z-index: 1;
}

.ba-caption {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Planimetria ================================================== */

.plan-image-wrap {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}
.plan-image-wrap img {
  max-width: 1100px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
}

/* Virtual Tour embed ========================================== */

.tour-embed {
  margin-top: 60px;
  width: 100%;
}
.tour-frame-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}
.tour-frame-box {
  width: 1200px;
  max-width: 100%;
  height: 800px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
  overflow: hidden;
  position: relative;
}
.tour-frame-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.tour-frame {
  position: relative;
  width: auto;
  height: 600px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
  transform: scale(1);
}
.tour-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.tour-caption {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Studio (legacy) ============================================== */

.studio {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.studio-portrait {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, oklch(0.22 0.02 275) 0%, oklch(0.16 0.01 260) 100%);
  position: relative;
  overflow: hidden;
}
.studio-portrait::after {
  content: "RITRATTO — LEXI";
  position: absolute;
  bottom: 24px; left: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding: 6px 10px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border: 1px solid var(--line);
}
.studio-portrait::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg,
      transparent 0 14px,
      oklch(0.26 0.015 275 / 0.35) 14px 15px);
}

.studio-body .kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.studio-body h2 {
  font-size: clamp(39px, 4.4vw, 67px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 32px;
}
.studio-body h2 em { font-style: normal; font-weight: 400; color: var(--accent); }
.studio-body p {
  color: var(--fg-dim);
  font-size: 19px;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 52ch;
}
.studio-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.studio-stats .s .n {
  font-size: 43px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.studio-stats .s .n .plus { color: var(--accent); }
.studio-stats .s .l {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* FAQ ========================================================= */

.faqs { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.faq {
  border-bottom: 1px solid var(--line-soft);
  padding: 28px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  cursor: pointer;
  user-select: none;
}
.faq-q .q-text {
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  flex: 1;
  transition: color 0.2s ease;
}
.faq:hover .q-text { color: var(--accent); }
.faq-q .q-num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 36px;
}
.faq-q .q-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.faq.open .q-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  color: var(--fg-dim);
  font-size: 18.5px;
  line-height: 1.65;
  padding-right: 80px;
  max-width: 72ch;
}
.faq.open .faq-a {
  max-height: 300px;
  padding-top: 20px;
  opacity: 1;
}

/* Contact ===================================================== */

.contact {
  padding: 140px var(--pad-x);
  background:
    linear-gradient(180deg, transparent, color-mix(in oklab, var(--accent) 4%, transparent));
  border-top: 1px solid var(--line-soft);
}
.contact-quick {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}
.contact-head {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: end;
}
.contact-head .section-num { grid-column: 1 / -1; margin-bottom: 0; }
.contact-head h2 {
  font-size: clamp(43px, 6vw, 99px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
}
.contact-head h2 em { font-style: normal; font-weight: 400; color: var(--accent); }
.contact-head .contact-lead {
  color: var(--fg-dim);
  font-size: 19px;
  line-height: 1.55;
  max-width: 52ch;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-right: 0;
}
.contact-card {
  --card-accent: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 44px 44px 32px;
  border-right: 1px solid var(--line-soft);
  background: transparent;
  color: var(--fg);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
  min-height: 320px;
}
.contact-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--card-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.contact-card:hover {
  background: color-mix(in oklab, var(--card-accent) 5%, transparent);
}
.contact-card:hover::before { transform: scaleX(1); }

.contact-card-wa { --card-accent: #25D366; }
.contact-card-mail { --card-accent: var(--accent); }

.cc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.cc-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.cc-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--card-accent);
  padding: 5px 10px;
  border: 1px solid color-mix(in oklab, var(--card-accent) 50%, var(--line));
  border-radius: 999px;
  background: color-mix(in oklab, var(--card-accent) 8%, transparent);
}
.cc-tag-alt {
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 50%, var(--line));
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}

.cc-title {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 20px;
}
.cc-title em {
  font-style: normal;
  font-weight: 400;
  color: var(--card-accent);
}

.cc-num {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  margin-bottom: auto;
}

.cc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  margin-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.cc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--fg);
  font-weight: 500;
}
.cc-cta .arrow {
  width: 13px; height: 13px;
  transition: transform 0.3s ease;
}
.contact-card:hover .cc-cta { color: var(--card-accent); }
.contact-card:hover .cc-cta .arrow { transform: translate(4px, -4px); }
.cc-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.cm-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cm-lbl {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cm-val {
  font-size: 17px;
  color: var(--fg-dim);
}

/* Legacy contact (kept for safety) */
.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact h2 {
  font-size: clamp(43px, 6vw, 99px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 32px;
}
.contact h2 em { font-style: normal; font-weight: 400; color: var(--accent); }
.contact p { color: var(--fg-dim); font-size: 19px; line-height: 1.6; max-width: 44ch; margin-bottom: 40px; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.contact-info .row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
}
.contact-info .row .lbl {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-info .row .val { font-size: 18px; color: var(--fg); }

.form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form .field {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.2s ease;
}
.form .field:focus-within { border-color: var(--accent); }
.form .field label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.form .field input,
.form .field textarea {
  font-size: 21px;
  color: var(--fg);
  font-family: inherit;
}
.form .field input::placeholder,
.form .field textarea::placeholder { color: var(--muted-2); }
.form .field textarea { resize: vertical; min-height: 80px; }
.form .chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  color: var(--fg-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.chip:hover { border-color: var(--muted); color: var(--fg); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.form .submit {
  margin-top: 36px;
  align-self: flex-start;
}

/* Footer ====================================================== */

.foot {
  padding: 80px var(--pad-x) 40px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.foot-top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-soft);
}
.foot-top h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.foot-top ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 17px; }
.foot-top ul a { color: var(--fg-dim); transition: color 0.2s ease; }
.foot-top ul a:hover { color: var(--accent); }
.foot-brand .big {
  font-size: clamp(51px, 7vw, 95px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.9;
  margin-bottom: 20px;
}
.foot-brand .big em { font-style: normal; font-weight: 400; color: var(--accent); }
.foot-brand p { color: var(--fg-dim); font-size: 17px; line-height: 1.6; max-width: 40ch; }

.foot-bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-bottom .copy { display: flex; gap: 20px; align-items: center; }
.foot-bottom a:hover { color: var(--accent); }

/* Tweaks ================================ */

.tweaks {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 9000;
  width: 280px;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  font-size: 16px;
  display: none;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8);
}
.tweaks.on { display: block; }
.tweaks h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.tweaks .tw-row { margin-bottom: 16px; }
.tweaks .tw-row:last-child { margin-bottom: 0; }
.tweaks label { display: block; margin-bottom: 8px; color: var(--fg-dim); font-size: 15px; }
.tweaks .swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.tweaks .sw {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s;
}
.tweaks .sw.active { border-color: white; transform: scale(1.1); }
.tweaks select, .tweaks input[type=range] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 8px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
}

/* Responsive ================================================== */

/* --- Tablet landscape / small desktop (max 1100px) --- */
@media (max-width: 1100px) {
  .section { padding: 100px var(--pad-x); }
  .hero { padding: 160px var(--pad-x) 80px; }
  .contact { padding: 100px var(--pad-x); }
  .tour-frame-box { width: 100%; height: auto; aspect-ratio: 16/9; }
  .foot-brand .big { font-size: clamp(40px, 6vw, 75px); }
}

/* --- Tablet portrait (max 960px) --- */
@media (max-width: 960px) {
  html, body { font-size: 17px; }

  /* Nav */
  .nav { grid-template-columns: 1fr auto; padding: 14px var(--pad-x); }
  .nav-links { display: none; }
  .nav-logo .logo-wordmark { height: 52px; }

  /* Hero */
  .hero { padding: 130px var(--pad-x) 64px; min-height: auto; }
  .hero-title { font-size: clamp(56px, 12vw, 130px); }
  .hero-sub {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 36px;
    padding-top: 28px;
  }
  .hero-sub .descr { justify-self: start; max-width: 100%; }

  /* Sections */
  .section { padding: 80px var(--pad-x); }
  .section-head {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
  }
  .section-head .title { font-size: clamp(36px, 7vw, 64px); }
  .section-head .title[style*="width"] { width: auto !important; max-width: 100% !important; }
  .section-head .lead { font-size: 17px; max-width: 100%; }

  /* Carousel */
  .carousel { height: auto; min-height: 0; padding-bottom: 0; overflow: visible; display: flex; flex-direction: column; }
  .carousel-track { position: relative; inset: auto; height: calc(clamp(240px, 72vw, 560px) * 2 / 3); width: 100%; order: 1; }
  .carousel-controls { position: relative; bottom: auto; left: auto; transform: none; margin: 20px auto 0; background: var(--bg); order: 2; }
  .carousel-caption { order: 0; }
  .car-slide {
    width: clamp(240px, 72vw, 560px);
    height: calc(clamp(240px, 72vw, 560px) * 2 / 3);
  }

  /* Services */
  .services { grid-template-columns: 1fr; }
  .service { padding: 36px 28px 32px; min-height: auto; gap: 18px; }
  .service .price .amt { font-size: 28px; }

  /* BA slider */
  .ba-wrap { margin-top: 28px; }

  /* Virtual tour */
  .tour-frame-box { width: 100%; height: auto; aspect-ratio: 16/9; }

  /* Contact */
  .contact { padding: 80px var(--pad-x); }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact h2 { font-size: clamp(36px, 7vw, 64px); margin-bottom: 20px; }
  .contact-info .row { grid-template-columns: 90px 1fr; }
  .contact-quick { gap: 48px; }
  .contact-head { grid-template-columns: 1fr; gap: 24px; }
  .contact-head h2 { font-size: clamp(36px, 7vw, 64px); }
  .contact-actions { grid-template-columns: 1fr; gap: 0; border-right: 1px solid var(--line-soft); }
  .contact-card { padding: 32px 28px 28px; min-height: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .contact-card:last-child { border-bottom: 0; }
  .cc-title { font-size: clamp(28px, 6vw, 40px); }
  .contact-meta { grid-template-columns: 1fr; gap: 18px; }

  /* Footer */
  .foot { padding: 60px var(--pad-x) 32px; }
  .foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding-bottom: 40px;
  }
  .foot-brand { grid-column: 1 / -1; }
  .foot-brand .big { font-size: clamp(40px, 8vw, 72px); }

  /* Misc */
  .hover-image { display: none; }
  .studio-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .studio-stats .s .n { font-size: 31px; }
}

/* --- Mobile (max 640px) --- */
@media (max-width: 640px) {
  html, body { font-size: 16px; }

  /* Nav */
  .nav { padding: 12px 20px; gap: 12px; }
  .nav-logo .logo-wordmark { height: 40px; }
  .nav-cta .theme-toggle { display: none; }
  .btn { padding: 10px 16px; font-size: 14px; }

  /* Hero */
  .hero { padding: 110px 20px 52px; min-height: 100vh; justify-content: space-between; }
  .hero-title { font-size: clamp(44px, 13vw, 88px); line-height: 0.9; }
  .hero-title .row { gap: 8px; }
  .hero-title-logo { flex: 1; margin: 60px 0 60px; justify-content: center; gap: 14px; }
  .hero-logo { width: 78vw; max-width: 460px; }
  .hero-tagline { font-size: 15px; white-space: normal; }
  .hero-sub {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 24px;
    margin-top: 32px;
  }
  .hero-sub > div:first-child {
    flex-direction: row !important;
    gap: 10px !important;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap !important;
    width: 100%;
  }
  .hero-sub .stat { flex: 1; min-width: 0; }
  .hero-sub .stat .n { font-size: clamp(15px, 4.2vw, 22px); white-space: nowrap; }
  .hero-sub .stat .lbl { font-size: 10px; letter-spacing: 0.1em; margin-top: 6px; }
  .hero-sub .descr { font-size: 16px; }

  /* Ticker */
  .ticker span { font-size: clamp(20px, 5vw, 30px); }
  .ticker-track { gap: 36px; }

  /* Sections */
  .section { padding: 60px 20px; }
  .section-head { gap: 18px; margin-bottom: 36px; }
  .section-head .title { font-size: clamp(32px, 9vw, 52px); }
  .section-head .lead { font-size: 16px; }
  .section-num { font-size: 12px; gap: 10px; margin-bottom: 20px; }

  /* Section title widths: kill desktop inline widths that overflow on phones */
  .section-head .title[style*="width"] { width: auto !important; max-width: 100% !important; }

  /* Carousel */
  .car-slide {
    width: clamp(220px, 80vw, 400px);
    height: calc(clamp(220px, 80vw, 400px) * 2 / 3);
  }
  .carousel { height: auto; min-height: 0; padding-bottom: 0; overflow: visible; display: flex; flex-direction: column; }
  .carousel-track { position: relative; inset: auto; height: calc(clamp(220px, 80vw, 400px) * 2 / 3); width: 100%; order: 1; }
  .carousel-controls {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 20px auto 0;
    background: var(--bg);
    border-color: var(--line);
    order: 2;
  }
  .carousel-caption { top: 12px; right: 12px; order: 0; }
  .car-loc { font-size: 13px; }

  /* Services — compact mobile */
  .services.services-4 { grid-template-columns: 1fr; }
  .service { padding: 20px 18px 18px; gap: 10px; min-height: auto; }
  .service-num { font-size: 12px; }
  .service-icon { width: 40px; height: 40px; }
  .service-icon svg { width: 22px; height: 22px; }
  .service h3 { font-size: 22px; line-height: 1.05; }
  .service h3 br { display: none; }
  .service p { font-size: 14.5px; line-height: 1.45; }
  .service ul { font-size: 13.5px; gap: 6px; }
  .service ul li::before { width: 4px; height: 4px; margin-top: 6px; }
  .service .price { padding-top: 14px; }
  .service .price .amt { font-size: 22px; }
  .service .price .from { font-size: 11px; letter-spacing: 0.12em; }
  .services.services-4 .service { padding: 20px 18px 18px; min-height: auto; }
  .services.services-4 .service h3 { font-size: 22px; }
  .services.services-4 .service .price .amt { font-size: 22px; }

  /* BA slider */
  .ba-handle::before { width: 36px; height: 36px; }
  .ba-handle::after { font-size: 15px; }
  .ba-label { font-size: 11px; padding: 4px 8px; }

  /* Contact — tighter rhythm */
  .contact { padding: 60px 20px; }
  .contact h2 { font-size: clamp(32px, 9vw, 52px); margin-bottom: 0; }
  .contact p { font-size: 16px; }
  .contact-info .row { grid-template-columns: 80px 1fr; gap: 10px; }
  .contact-info .row .val { font-size: 15px; }
  .contact-quick { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .contact-top { display: contents; }
  .contact-top-l { order: 0; margin-bottom: 0; }
  .contact-top-r { order: 2; display: contents; }
  .contact-top-r .contact-lead { order: 1; margin: 0; }
  .contact-actions { order: 2; margin: 4px 0 0; }
  .contact-top-r .contact-meta { order: 3; padding-top: 0; border-top: 0; margin-top: 4px; }
  .form .field input,
  .form .field textarea { font-size: 17px; }
  .chip { padding: 7px 12px; font-size: 14px; }

  /* Footer — studio / servizi / contatti on one row, brand on top */
  .foot { padding: 48px 20px 28px; }
  .foot-top { grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 28px; }
  .foot-top h3 { font-size: 11px; letter-spacing: 0.14em; margin-bottom: 12px; }
  .foot-top ul { font-size: 13px; gap: 8px; }
  .foot-top ul li { word-break: break-word; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-brand .big { font-size: clamp(36px, 10vw, 60px); }
  .foot-brand p { font-size: 15px; }
  .foot-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .foot-bottom .copy { flex-direction: column; gap: 6px; }

  /* Planimetria */
  .plan-image-wrap { margin-top: 32px; }

  /* FAQ */
  .faq { padding: 20px 0; }
  .faq-q .q-text { font-size: 17px; }
  .faq-a { font-size: 15px; padding-right: 20px; }
  .faq.open .faq-a { max-height: 400px; }

  /* Tweaks */
  .tweaks { width: calc(100vw - 40px); right: 20px; bottom: 16px; }
}

/* --- Small mobile (max 390px) --- */
@media (max-width: 390px) {
  .hero-title { font-size: clamp(38px, 12vw, 60px); }
  .section-head .title { font-size: clamp(28px, 9vw, 44px); }
  .contact h2 { font-size: clamp(28px, 9vw, 44px); }
  .car-slide {
    width: clamp(200px, 86vw, 340px);
    height: calc(clamp(200px, 86vw, 340px) * 2 / 3);
  }
}


/* ============================================================
   FORCE: tutti i titoli su una sola riga, ogni viewport
   ============================================================ */
.section-head .title,
.section-head-tight .title,
.contact-head h2,
.contact .contact-top-l h2,
.contact h2,
.service h3,
.cc-title,
.foot-brand .big {
  white-space: nowrap !important;
  overflow: visible;
}

/* Section titles — scala per stare in viewport.
   Il titolo piu' lungo e' "Quattro modi di raccontare uno spazio." (~38 ch).
   Usiamo min() in cvw cosi' si rimpicciolisce automaticamente. */
.section-head .title,
.section-head-tight .title {
  font-size: min(6vw, 92px) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.035em !important;
  width: auto !important;
  max-width: 100% !important;
}
/* Lo slide "Quattro modi" e' il piu' lungo: usa uno scale piu' aggressivo */
#services .section-head-tight .title {
  font-size: min(4.6vw, 76px) !important;
}

/* Contact title */
.contact-head h2,
.contact .contact-top-l h2,
.contact h2 {
  font-size: min(6vw, 92px) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.035em !important;
  margin-bottom: 0 !important;
}

/* Service card titles (Pacchetto X) */
.service h3,
.services.services-4 .service h3 {
  font-size: min(2.4vw, 28px) !important;
  line-height: 1.05 !important;
}
@media (max-width: 1100px) {
  .service h3,
  .services.services-4 .service h3 {
    font-size: min(3.4vw, 26px) !important;
  }
}
@media (max-width: 640px) {
  .service h3,
  .services.services-4 .service h3 {
    /* "Pacchetto Home Staging." ~23ch */
    font-size: min(5.6vw, 22px) !important;
  }
}

/* Contact card titles (Scrivici su WhatsApp / Mandaci una mail) */
.cc-title {
  font-size: min(3.6vw, 48px) !important;
  line-height: 1 !important;
}
@media (max-width: 640px) {
  .cc-title {
    font-size: min(7vw, 36px) !important;
  }
}

/* Footer brand "Lexi — Digital Photography." (~27ch) */
.foot-brand .big {
  font-size: min(5.2vw, 78px) !important;
  line-height: 1 !important;
  letter-spacing: -0.035em !important;
}
@media (max-width: 640px) {
  .foot-brand .big {
    font-size: min(7vw, 40px) !important;
  }
}

/* Hero tagline gia' su una riga: confermiamo */
.hero-tagline { white-space: nowrap !important; }


/* ============================================================
   LAYOUT: titoli nowrap + descrizioni allineate senza vuoti
   ============================================================ */

/* Section head: titolo prende lo spazio naturale, lead riempie il resto */
.section-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  gap: 48px !important;
  flex-wrap: nowrap !important;
}
.section-head .title {
  flex: 0 0 auto !important;
}
.section-head .lead {
  flex: 1 1 0 !important;
  max-width: 52ch !important;
  margin-left: auto !important;
}

.section-head-tight {
  align-items: center !important;
  gap: 32px !important;
}

/* Contact head (legacy) */
.contact-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  gap: 48px !important;
  flex-wrap: wrap !important;
}
.contact-head h2 { flex: 0 0 auto !important; }
.contact-head .contact-lead { flex: 1 1 0 !important; max-width: 52ch !important; }

/* Contact-quick: titolo a sinistra, lead+meta a destra, compatto */
.contact-quick .contact-top {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-end !important;
  gap: 48px !important;
  flex-wrap: nowrap !important;
}
.contact-quick .contact-top-l { flex: 0 0 auto !important; }
.contact-quick .contact-top-r {
  flex: 1 1 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

/* Tablet/mobile: stacking pulito, niente vuoti */
@media (max-width: 960px) {
  .section-head,
  .contact-head,
  .contact-quick .contact-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  .section-head .lead,
  .contact-head .contact-lead {
    margin-left: 0 !important;
    max-width: 100% !important;
  }
  .contact-quick .contact-top-r { width: 100%; gap: 18px !important; }
}

@media (max-width: 640px) {
  .section-head,
  .contact-head,
  .contact-quick .contact-top {
    gap: 12px !important;
  }
  .section-head .lead { font-size: 15.5px; line-height: 1.5; }
}


/* ============================================================
   OVERRIDE: descrizioni SEMPRE sotto al titolo, mai laterali
   ============================================================ */
.section-head,
.section-head-tight,
.contact-head,
.contact-quick .contact-top {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 18px !important;
  flex-wrap: nowrap !important;
}
.section-head .title,
.section-head-tight .title,
.contact-head h2,
.contact-quick .contact-top h2 {
  flex: 0 0 auto !important;
  margin-bottom: 0 !important;
}
.section-head .lead,
.contact-head .contact-lead {
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  max-width: 72ch !important;
  width: 100%;
}
.contact-quick .contact-top-l,
.contact-quick .contact-top-r {
  width: 100%;
  flex: 0 0 auto !important;
}
.contact-quick .contact-top-r {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

@media (max-width: 640px) {
  .section-head,
  .section-head-tight,
  .contact-head,
  .contact-quick .contact-top { gap: 12px !important; }
  .section-head .lead { font-size: 15.5px; line-height: 1.5; }
}


/* ============================================================
   CENTRA titoli e descrizioni con gli stessi margini laterali
   ============================================================ */
.section-head,
.section-head-tight,
.contact-head,
.contact-quick .contact-top {
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.section-head .title,
.section-head-tight .title,
.contact-head h2,
.contact-quick .contact-top h2 {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}
.section-head .lead,
.contact-head .contact-lead,
.contact-quick .contact-top-r .contact-lead {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  max-width: 72ch !important;
}
.contact-quick .contact-top-l,
.contact-quick .contact-top-r {
  align-items: center !important;
  text-align: center !important;
}
.contact-quick .contact-top-r .contact-meta {
  margin-left: auto !important;
  margin-right: auto !important;
}


/* ============================================================
   ENTRANCE ANIMATIONS — fade + lift, veloce e pulito
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.55s cubic-bezier(.2,.7,.2,1),
      transform 0.65s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
  /* Variante "image" — fade piu' lento, niente translate (le immagini grandi sono gia' pesanti visivamente) */
  .reveal-img {
    opacity: 0;
    transform: scale(1.015);
    transition:
      opacity 0.7s cubic-bezier(.2,.7,.2,1),
      transform 0.9s cubic-bezier(.2,.7,.2,1);
    will-change: opacity, transform;
  }
  .reveal-img.in {
    opacity: 1;
    transform: none;
  }
  /* Stagger: i figli diretti dei container marcati con .reveal-stagger si rivelano a cascata */
  .reveal-stagger > .reveal {
    transition-delay: calc(var(--i, 0) * 70ms);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { opacity: 1 !important; transform: none !important; }
}


/* ============================================================
   BA SLIDER — mobile UX: hint trascina, hide caption-side, ecc.
   ============================================================ */

/* Caption: piu' evidente */
.ba-caption {
  align-items: center;
  gap: 14px;
  color: var(--fg);
  font-weight: 500;
}
.ba-caption > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

/* Hint pulse sull'handle: 2 anelli che si espandono */
.ba-handle::before {
  animation: ba-pulse 2.4s ease-out infinite;
}
@keyframes ba-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent),
                     0 0 0 0 color-mix(in oklab, var(--accent) 40%, transparent),
                     0 8px 24px -6px rgba(91,91,245,0.6); }
  60%  { box-shadow: 0 0 0 18px color-mix(in oklab, var(--accent) 0%, transparent),
                     0 0 0 32px color-mix(in oklab, var(--accent) 0%, transparent),
                     0 8px 24px -6px rgba(91,91,245,0.6); }
  100% { box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent, 0 8px 24px -6px rgba(91,91,245,0.6); }
}

/* Hint sweep: l'handle oscilla leggermente al primo caricamento per indicare il drag */
.ba-wrap:not(.ba-touched) .ba-handle {
  animation: ba-hint-sweep 2.6s ease-in-out infinite;
}
@keyframes ba-hint-sweep {
  0%, 100% { transform: translateX(calc(-50% + 0px)); }
  25%      { transform: translateX(calc(-50% - 22px)); }
  50%      { transform: translateX(calc(-50% + 0px)); }
  75%      { transform: translateX(calc(-50% + 22px)); }
}
/* Frecce sui lati dell'handle (sempre visibili) */
.ba-handle .ba-arrows {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 0;
}
.ba-handle .ba-arrows .ba-arr {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  opacity: 0.85;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  animation: ba-arrow 1.6s ease-in-out infinite;
}
.ba-handle .ba-arrows .ba-arr.l { animation-delay: 0s; }
.ba-handle .ba-arrows .ba-arr.r { animation-delay: 0.8s; }
@keyframes ba-arrow {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50%      { transform: translateX(var(--shift, 0)); opacity: 1; }
}
.ba-handle .ba-arrows .ba-arr.l { --shift: -6px; }
.ba-handle .ba-arrows .ba-arr.r { --shift: 6px; }

/* No scroll lock when actively dragging */
body.ba-dragging {
  overflow: hidden !important;
  touch-action: none !important;
  overscroll-behavior: contain;
}
.ba-wrap { touch-action: pan-y; }
.ba-wrap.ba-active { touch-action: none; }

/* Mobile: nascondi la 2a parte della caption, evidenzia la prima */
@media (max-width: 640px) {
  .ba-caption {
    justify-content: center;
    margin-top: 16px;
  }
  .ba-caption > span:last-child { display: none; }
  .ba-caption > span:first-child {
    font-size: 13px;
    letter-spacing: 0.16em;
    padding: 10px 16px;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  /* Pulse + arrows piu' grandi su mobile */
  .ba-handle::before { width: 56px; height: 56px; }
  .ba-handle::after { font-size: 22px; }
  .ba-handle .ba-arrows { width: 150px; height: 56px; }
  .ba-handle .ba-arrows .ba-arr { width: 30px; height: 30px; }
}


/* ============================================================
   BA hint — la clip dell'after si muove insieme all'handle
   ============================================================ */
.ba-wrap:not(.ba-touched) .ba-after {
  animation: ba-hint-clip 2.6s ease-in-out infinite;
}
@keyframes ba-hint-clip {
  0%, 100% { clip-path: inset(0 0 0 50%); }
  25%      { clip-path: inset(0 0 0 35%); }
  50%      { clip-path: inset(0 0 0 50%); }
  75%      { clip-path: inset(0 0 0 65%); }
}
/* Sostituisce la sweep precedente con percentuali (sincronia perfetta col clip) */
.ba-wrap:not(.ba-touched) .ba-handle {
  animation: ba-hint-sweep-pct 2.6s ease-in-out infinite;
}
@keyframes ba-hint-sweep-pct {
  0%, 100% { left: 50%; }
  25%      { left: 35%; }
  50%      { left: 50%; }
  75%      { left: 65%; }
}


/* ============================================================
   BA hint — timing: pause 2s + slide 1.5s, applicato a ENTRAMBI
   ============================================================ */
#roWrap.ba-wrap:not(.ba-touched) .ba-after,
#baWrap.ba-wrap:not(.ba-touched) .ba-after {
  animation: ba-hint-clip-2 14s ease-in-out infinite;
}
#roWrap.ba-wrap:not(.ba-touched) .ba-handle,
#baWrap.ba-wrap:not(.ba-touched) .ba-handle {
  animation: ba-hint-sweep-2 14s ease-in-out infinite;
}
@keyframes ba-hint-clip-2 {
  0%      { clip-path: inset(0 0 0 50%); }
  14.3%   { clip-path: inset(0 0 0 50%); }
  25%     { clip-path: inset(0 0 0 25%); }
  39.3%   { clip-path: inset(0 0 0 25%); }
  50%     { clip-path: inset(0 0 0 50%); }
  64.3%   { clip-path: inset(0 0 0 50%); }
  75%     { clip-path: inset(0 0 0 75%); }
  89.3%   { clip-path: inset(0 0 0 75%); }
  100%    { clip-path: inset(0 0 0 50%); }
}
@keyframes ba-hint-sweep-2 {
  0%      { left: 50%; }
  14.3%   { left: 50%; }
  25%     { left: 25%; }
  39.3%   { left: 25%; }
  50%     { left: 50%; }
  64.3%   { left: 50%; }
  75%     { left: 75%; }
  89.3%   { left: 75%; }
  100%    { left: 50%; }
}


/* FIX: #roAfter ha classe .ro-after (non .ba-after) — target esplicito per id */
#roWrap.ba-wrap:not(.ba-touched) #roAfter,
#baWrap.ba-wrap:not(.ba-touched) #baAfter {
  animation: ba-hint-clip-2 14s ease-in-out infinite;
}


/* ============================================================
   CONTACT CARDS — redesign pulito, niente testo tagliato
   ============================================================ */
.contact-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}
.contact-card {
  --card-accent: var(--accent);
  background: var(--bg) !important;
  padding: 36px 32px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  min-height: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  overflow: visible !important;
  position: relative;
  text-decoration: none;
  color: var(--fg);
  transition: background 0.35s ease;
}
.contact-card:hover { background: color-mix(in oklab, var(--card-accent) 6%, var(--bg)) !important; }
.contact-card::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--card-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.contact-card:hover::before { transform: scaleX(1); }

.contact-card .cc-head {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0 !important;
  gap: 12px;
}
.contact-card .cc-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}
.contact-card .cc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--card-accent);
  padding: 5px 10px;
  border: 1px solid color-mix(in oklab, var(--card-accent) 50%, var(--line));
  border-radius: 999px;
  background: color-mix(in oklab, var(--card-accent) 8%, transparent);
  flex-shrink: 0;
}

/* Title row: icon + testo principale */
.contact-card .cc-title {
  display: flex !important;
  align-items: center;
  gap: 16px;
  font-size: clamp(22px, 2.4vw, 34px) !important;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1 !important;
  margin-bottom: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  min-width: 0;
}
.contact-card .cc-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--card-accent);
}
.contact-card .cc-title::before {
  content: "";
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--card-accent) 15%, transparent);
  border: 1px solid color-mix(in oklab, var(--card-accent) 40%, var(--line));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}
.contact-card-wa .cc-title::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2325D366' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>");
}
.contact-card-mail .cc-title::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B5BF5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='1'/><path d='M3 7l9 6 9-6'/></svg>");
}

/* Phone / mail line */
.contact-card .cc-num {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.2vw, 16px) !important;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  margin: 0 !important;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer of the card */
.contact-card .cc-foot {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding-top: 0 !important;
  margin-top: 0 !important;
  border-top: 0 !important;
  gap: 12px;
}
.contact-card .cc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}
.contact-card .cc-cta .arrow { width: 13px; height: 13px; transition: transform 0.3s ease; }
.contact-card:hover .cc-cta { color: var(--card-accent); }
.contact-card:hover .cc-cta .arrow { transform: translate(4px, -4px); }
.contact-card .cc-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Tablet & mobile: stacking pulito */
@media (max-width: 860px) {
  .contact-actions { grid-template-columns: 1fr; gap: 1px; }
  .contact-card { padding: 28px 22px 24px !important; gap: 20px !important; }
  .contact-card .cc-title { font-size: clamp(22px, 5.5vw, 30px) !important; gap: 14px; }
  .contact-card .cc-title::before { width: 40px; height: 40px; background-size: 20px 20px; }
  .contact-card .cc-num { font-size: 14px !important; padding: 12px 0; }
  .contact-card .cc-foot { flex-wrap: wrap; gap: 8px; }
  .contact-card .cc-meta { font-size: 10px; }
}
@media (max-width: 380px) {
  .contact-card .cc-title { font-size: 19px !important; }
  .contact-card .cc-num { font-size: 12.5px !important; }
}


/* ============================================================
   CONTACT CARDS — compact override
   ============================================================ */
.contact-card {
  padding: 26px 26px 22px !important;
  gap: 14px !important;
}
.contact-card .cc-head { margin-bottom: 0 !important; }
.contact-card .cc-title {
  font-size: clamp(20px, 1.9vw, 26px) !important;
  gap: 12px;
  line-height: 1.05 !important;
}
.contact-card .cc-title::before {
  width: 36px !important; height: 36px !important;
  background-size: 18px 18px !important;
}
.contact-card .cc-num {
  font-size: clamp(12px, 1vw, 14px) !important;
  padding: 10px 0 !important;
}
.contact-card .cc-cta { font-size: 14px; }
.contact-card .cc-meta { font-size: 10.5px; }
.contact-card .cc-index { font-size: 11px; }
.contact-card .cc-tag { font-size: 10.5px; padding: 4px 9px; }

@media (max-width: 860px) {
  .contact-card { padding: 22px 20px 20px !important; gap: 12px !important; }
  .contact-card .cc-title { font-size: clamp(19px, 5vw, 24px) !important; gap: 10px; }
  .contact-card .cc-title::before { width: 34px !important; height: 34px !important; background-size: 17px 17px !important; }
  .contact-card .cc-num { font-size: 13px !important; padding: 9px 0 !important; }
  .contact-card .cc-cta { font-size: 13.5px; }
}


/* Contact card titles: una sola riga, font scalabile per stare nel viewport */
.contact-card .cc-title {
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  min-width: 0;
  font-size: min(2.1vw, 24px) !important;
}
@media (max-width: 860px) {
  .contact-card .cc-title { font-size: min(4.8vw, 22px) !important; }
}
@media (max-width: 380px) {
  .contact-card .cc-title { font-size: min(5.4vw, 18px) !important; gap: 8px; }
  .contact-card .cc-title::before { width: 28px !important; height: 28px !important; background-size: 14px 14px !important; }
}
