/* ═══════════════════════════════════════════════════════
   SESAAN Design Studio — Landing "Progettazione immersiva"
   Dark elegant · Fraunces + Manrope
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #0d0c0a;
  --bg-raise: #14120f;
  --ink: #ece5d8;
  --ink-dim: #a89f8f;
  --accent: #c9a87a;
  --accent-soft: rgba(201, 168, 122, 0.14);
  --line: rgba(236, 229, 216, 0.12);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.container { width: min(1240px, 92vw); margin-inline: auto; }
.container--narrow { width: min(860px, 92vw); }

::selection { background: var(--accent); color: var(--bg); }

/* ─────────── Bottoni ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 1.05em 2.2em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out), background 0.35s, color 0.35s, border-color 0.35s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--accent); color: #171410; }
.btn--solid:hover { background: #dcc094; }
.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { color: var(--ink-dim); border-color: transparent; }
.btn--ghost:hover { color: var(--ink); }
.btn--full { width: 100%; }

/* ─────────── Cookie banner (sopra il preloader) ─────────── */
.cookie {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 300;
  max-width: 420px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 26px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.cookie.is-visible { opacity: 1; transform: none; }
.cookie__text {
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 18px;
}
.cookie__text a {
  color: var(--accent);
  border-bottom: 1px solid rgba(201, 168, 122, 0.4);
}
.cookie__actions { display: flex; gap: 10px; }
.cookie__btn {
  flex: 1;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  padding: 0.85em 1.4em;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
}
.cookie__btn:hover { transform: translateY(-1px); }
.cookie__btn--accept {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #171410;
}
.cookie__btn--accept:hover { background: #dcc094; }
.cookie__btn--reject {
  background: transparent;
  border: 1px solid rgba(236, 229, 216, 0.35);
  color: var(--ink);
}
.cookie__btn--reject:hover { border-color: var(--ink); }

@media (max-width: 640px) {
  .cookie {
    left: 12px; right: 12px; bottom: 12px;
    max-width: none;
    padding: 20px;
  }
}

/* ─────────── Preloader ─────────── */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { text-align: center; }
.preloader__logo { width: clamp(160px, 30vw, 230px); opacity: 0; }
.preloader__bar {
  width: clamp(160px, 30vw, 230px); height: 1px;
  background: var(--line); margin-top: 28px; overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}

/* ─────────── Nav ─────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(20px, 4vw, 56px);
  transition: background 0.4s, backdrop-filter 0.4s, height 0.4s, box-shadow 0.4s;
}
.nav.is-scrolled {
  height: 68px;
  background: rgba(13, 12, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__logo img { width: clamp(120px, 12vw, 150px); height: auto; }
.nav__links { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav__links a {
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--ink-dim);
  transition: color 0.3s;
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: 0.8em 1.7em; font-size: 0.85rem; }

.nav__burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav__burger span {
  display: block; width: 26px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav__burger.is-open span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(13, 12, 10, 0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 12vh 8vw 6vh;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s, visibility 0.45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.4rem; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 300; color: var(--ink);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.06s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.18s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: 0.24s; }
.mobile-menu__cta { color: var(--accent) !important; }
.mobile-menu__foot {
  margin-top: auto; display: flex; gap: 2rem;
  font-size: 0.9rem; color: var(--ink-dim);
}

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  /* il padding inferiore riserva lo spazio all'indicatore di scroll */
  padding: calc(var(--nav-h) + 3vh) 6vw clamp(120px, 16vh, 170px);
  overflow: hidden;
  /* Fallback statico del virtual tour: visibile finché il canvas non è
     pronto e in caso di reduced-motion / assenza di WebGL. */
  background: var(--bg) url("../assets/img/hero-360-interior-torino.jpg") center / cover no-repeat;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  /* dissolvenza dal fondo statico al tour vivo (stessa immagine → nessuno scatto) */
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero__canvas.is-live { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  /* Velatura media: uno scrim uniforme scurisce la panoramica luminosa,
     la vignettatura radiale la fonde col fondo e tiene leggibile la headline. */
  background:
    linear-gradient(rgba(13,12,10,0.34), rgba(13,12,10,0.34)),
    radial-gradient(ellipse at center 44%, rgba(13,12,10,0.12) 0%, rgba(13,12,10,0.62) 74%, var(--bg) 100%);
  pointer-events: none;
}
.hero__content {
  position: relative; z-index: 2; max-width: 1000px;
  text-shadow: 0 2px 26px rgba(8, 7, 5, 0.45);
}

.hero__eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: clamp(0.68rem, 1.4vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(20px, 3.5vh, 36px);
}
.hero__display {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.7rem, 8.2vw, 6.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.hero__display .line { display: block; overflow: hidden; }
.hero__display .line > * , .hero__display .line { will-change: transform; }
.hero__display em { color: var(--accent); }

.hero__sub {
  margin: clamp(18px, 3vh, 34px) auto 0;
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: var(--ink-dim);
}
.hero__actions {
  margin-top: clamp(22px, 3.5vh, 40px);
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.hero__note {
  margin-top: clamp(14px, 2.5vh, 24px);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-dim);
}
.hero__note a {
  color: var(--accent);
  border-bottom: 1px solid rgba(201, 168, 122, 0.4);
  transition: border-color 0.3s;
}
.hero__note a:hover { border-bottom-color: var(--accent); }

/* Desktop: bottoni CTA equidistanti tra sottotitolo e nota (mobile invariato) */
@media (min-width: 641px) {
  .hero__actions { margin-top: clamp(18px, 3vh, 32px); }
  .hero__note { margin-top: clamp(18px, 3vh, 32px); }
}

.hero__scroll {
  position: absolute; bottom: 3vh; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim);
  pointer-events: none;
}
.hero__scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}
/* schermi bassi: niente indicatore, meno aria */
@media (max-height: 800px) {
  .hero__scroll { display: none; }
  .hero { padding-bottom: clamp(60px, 8vh, 100px); }
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(30px); opacity: 0; }
}

/* ─────────── Manifesto ─────────── */
.manifesto { padding: clamp(110px, 18vh, 200px) 0; }
.manifesto__text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 4.4vw, 3.3rem);
  line-height: 1.28;
  max-width: 21ch;
}
.manifesto__text em { color: var(--accent); }
.manifesto__note {
  margin-top: clamp(36px, 6vh, 60px);
  max-width: 480px;
  color: var(--ink-dim);
  font-size: 0.98rem;
  padding-left: 24px;
  border-left: 1px solid var(--accent);
}

/* ─────────── Section head ─────────── */
.section-head { margin-bottom: clamp(50px, 9vh, 90px); }
.section-head__label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-head__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.section-head__title em { color: var(--accent); }
.section-head__sub {
  margin-top: 22px;
  max-width: 560px;
  color: var(--ink-dim);
  font-size: 1rem;
}

/* link testuali nel corpo */
.text-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(201, 168, 122, 0.4);
  transition: border-color 0.3s;
}
.text-link:hover { border-bottom-color: var(--accent); }

/* ─────────── Steps / Esperienza ─────────── */
.steps { padding: clamp(80px, 12vh, 140px) 0 0; }
.steps__list { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  width: min(1240px, 92vw);
  margin-inline: auto;
  padding: clamp(40px, 8vh, 80px) 0;
  border-top: 1px solid var(--line);
}
.step__media {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}
.step__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}
.step__num {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--accent);
  display: block; margin-bottom: 14px;
}
.step__body h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 18px;
}
.step__body p { color: var(--ink-dim); max-width: 46ch; }
.steps__cta { padding: clamp(50px, 9vh, 90px) 0; text-align: center; }

/* ─────────── Marquee ─────────── */
.marquee {
  border-block: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 42px;
  padding-right: 42px;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: var(--ink-dim);
}
.marquee__track i { color: var(--accent); font-size: 0.6rem; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─────────── Progetti ─────────── */
.projects { padding: clamp(90px, 14vh, 160px) 0 0; }
.project {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(90px, 14vh, 160px);
}
.project--reverse { grid-template-columns: 1fr 1.35fr; }
.project--reverse .project__gallery { order: 2; }
.project__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 22px);
}
.project__img {
  overflow: hidden; border-radius: 4px;
  position: relative;
}
.project__img--main { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.project__img--side { aspect-ratio: 4 / 3.4; }
.project__img img {
  width: 100%; height: 110%; object-fit: cover;
  will-change: transform;
}
/* ─────────── Virtual tour (CloudPano, click-to-load) ─────────── */
.tour {
  position: relative;
  background: var(--bg-raise);
}
.tour__cover {
  position: absolute; inset: 0;
  cursor: pointer;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}
.tour__cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.tour__cover::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(13,12,10,0.18) 0%, rgba(13,12,10,0.55) 100%);
  transition: background 0.4s;
}
.tour:hover .tour__cover img { transform: scale(1.04); }
.tour__btn {
  position: absolute; inset: 0; z-index: 2;
  background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  color: var(--ink);
  font-family: var(--sans);
}
.tour__btn-circle {
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(236, 229, 216, 0.55);
  background: rgba(13, 12, 10, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  transition: transform 0.5s var(--ease-out), background 0.4s, border-color 0.4s, color 0.4s;
  animation: tourPulse 3s ease-in-out infinite;
}
.tour__btn-label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.tour:hover .tour__btn-circle {
  transform: scale(1.08);
  background: var(--accent);
  border-color: var(--accent);
  color: #171410;
}
@keyframes tourPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 122, 0.35); }
  50% { box-shadow: 0 0 0 18px rgba(201, 168, 122, 0); }
}
.tour.is-loading .tour__btn-circle {
  animation: tourSpin 1s linear infinite;
  font-size: 0;
  border-top-color: var(--accent);
}
@keyframes tourSpin { to { transform: rotate(360deg); } }
.tour.is-loaded .tour__cover {
  opacity: 0; visibility: hidden;
  pointer-events: none;
}
/* l'iframe CloudPano riempie il riquadro senza spostare il layout */
.tour > div { position: absolute; inset: 0; }
.tour iframe {
  position: absolute; inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

.project__meta {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 16px;
}
.project__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 20px;
}
.project__info p { color: var(--ink-dim); max-width: 44ch; }
.projects__cta {
  text-align: center;
  padding-bottom: clamp(90px, 14vh, 150px);
}
.projects__cta p {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--ink-dim);
  margin-bottom: 28px;
}

/* ─────────── La proposta ─────────── */
.offer {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(90px, 13vh, 150px) 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201, 168, 122, 0.07), transparent 70%),
    var(--bg);
}
.offer__inner { text-align: center; }
.offer__inner .section-head { margin-bottom: 30px; }
.offer__lead {
  max-width: 640px;
  margin-inline: auto;
  color: var(--ink-dim);
  font-size: 1.05rem;
}
.offer__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  margin: clamp(50px, 8vh, 80px) 0;
  text-align: left;
}
.offer__step {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 3vw, 38px);
  background: rgba(20, 18, 15, 0.55);
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
}
.offer__step:hover { border-color: rgba(201, 168, 122, 0.45); transform: translateY(-4px); }
.offer__num {
  font-family: var(--serif); font-style: italic;
  color: var(--accent);
  display: block; margin-bottom: 16px;
}
.offer__step h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.25;
  margin-bottom: 12px;
}
.offer__step p { color: var(--ink-dim); font-size: 0.95rem; }
.offer__closing {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  color: var(--ink);
  max-width: 34ch;
  margin: 0 auto clamp(28px, 4vh, 40px);
}
.offer__cta { display: flex; justify-content: center; }

/* ─────────── Studio ─────────── */
.studio {
  background: var(--bg-raise);
  border-block: 1px solid var(--line);
  padding: clamp(90px, 13vh, 150px) 0;
}
.studio__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.studio__text .section-head { margin-bottom: 34px; }
.studio__text p { color: var(--ink-dim); margin-bottom: 18px; max-width: 54ch; }
.studio__facts {
  list-style: none;
  margin-top: 40px;
  display: grid; gap: 22px;
}
.studio__facts li {
  display: flex; align-items: baseline; gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.studio__facts strong {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--accent);
  min-width: 2.4ch;
}
.studio__facts span { color: var(--ink-dim); font-size: 0.95rem; }
.studio__media {
  overflow: hidden; border-radius: 4px;
  aspect-ratio: 1294 / 1216;
}
.studio__media img { width: 100%; height: 100%; object-fit: cover; }

/* ─────────── FAQ ─────────── */
.faq { padding: clamp(90px, 13vh, 150px) 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 44px 26px 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  position: relative;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans); font-weight: 300;
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.35s var(--ease-out);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item summary:hover { color: var(--accent); }
.faq__answer { overflow: hidden; }
.faq__answer p {
  padding: 0 0 28px;
  color: var(--ink-dim);
  max-width: 62ch;
}

/* ─────────── Contatti / Form ─────────── */
.contact {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  padding: clamp(90px, 13vh, 150px) 0;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact__intro .section-head__title { margin-bottom: 24px; }
.contact__intro > p { color: var(--ink-dim); max-width: 50ch; }
.contact__details {
  list-style: none;
  margin-top: 40px;
  display: grid; gap: 14px;
}
.contact__details li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  font-size: 0.95rem;
  align-items: baseline;
}
.contact__details span {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-dim);
}
.contact__details a { border-bottom: 1px solid transparent; transition: border-color 0.3s, color 0.3s; }
.contact__details a:hover { color: var(--accent); border-color: var(--accent); }

/* Pannello form — inversione avorio caldo per massimo risalto sul dark */
.contact__form {
  --panel-ink: #262119;
  --panel-dim: #6f6656;
  --panel-line: rgba(38, 33, 25, 0.16);
  position: relative;
  background: #f4efe6;
  border: 1px solid rgba(38, 33, 25, 0.08);
  border-radius: 12px;
  padding: clamp(30px, 4vw, 48px);
  display: grid; gap: 20px;
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
/* filetto oro in cima al pannello */
.contact__form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #e4cfa4);
}
.form-field { display: grid; gap: 8px; }
.form-field label {
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--panel-dim);
}
.form-field label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.form-field input,
.form-field textarea {
  background: #fffdf9;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--panel-ink);
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(38, 33, 25, 0.36); }
.form-field.is-invalid input { border-color: #c0402e; box-shadow: 0 0 0 3px rgba(192, 64, 46, 0.12); }

.form-consent {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.8rem; color: var(--panel-dim);
  cursor: pointer;
}
.form-consent input {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px; height: 16px; flex: none;
}
.form-consent a { color: #8a6d3b; text-decoration: underline; }
.form-feedback { font-size: 0.9rem; min-height: 1.4em; color: var(--panel-dim); }
.form-feedback.is-ok { color: #4b7a3f; }
.form-feedback.is-err { color: #c0402e; }

/* ─────────── Footer ─────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 9vh, 90px) 0 120px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  padding-bottom: 50px;
}
.footer__brand img { width: 150px; margin-bottom: 20px; }
.footer__brand p { color: var(--ink-dim); font-size: 0.92rem; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col span {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.footer__col a, .footer__col address {
  font-style: normal;
  color: var(--ink-dim);
  font-size: 0.92rem;
  transition: color 0.3s;
}
.footer__col a:hover { color: var(--ink); }
.footer__legal {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.78rem; color: var(--ink-dim);
}
.footer__legal a:hover { color: var(--ink); }

/* ─────────── Sticky CTA mobile ─────────── */
.sticky-cta {
  position: fixed; left: 14px; right: 14px; bottom: 14px;
  z-index: 80;
  display: none;
  gap: 10px;
  transform: translateY(120%);
  transition: transform 0.5s var(--ease-out);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__main {
  flex: 1;
  background: var(--accent); color: #171410;
  font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  border-radius: 100px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}
.sticky-cta__call {
  width: 54px; height: 54px; flex: none;
  border-radius: 50%;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* ─────────── Reveal helpers (GSAP) ─────────── */
.reveal-lines .rl-line { display: block; overflow: hidden; }
.reveal-lines .rl-inner { display: block; }

/* ═══════════ Responsive ═══════════ */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .step { grid-template-columns: 1fr; gap: 26px; }
  .step__media { order: -1; }

  .project, .project--reverse { grid-template-columns: 1fr; align-items: start; }
  .project--reverse .project__gallery { order: 0; }
  .project__info { margin-top: 4px; }

  .offer__steps { grid-template-columns: 1fr; }

  .studio__grid { grid-template-columns: 1fr; }
  .studio__media { aspect-ratio: 1294 / 1216; order: -1; }

  .contact__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero {
    padding-bottom: 18vh; padding-inline: 5vw;
    background-image: url("../assets/img/hero-360-interior-torino-mobile.jpg");
  }
  .hero__eyebrow { font-size: 0.62rem; letter-spacing: 0.22em; }
  .hero__display { font-size: clamp(2.1rem, 10.5vw, 2.7rem); }
  .hero__actions .btn { width: 100%; }
  .hero__scroll { display: none; }

  .project__gallery { grid-template-columns: 1fr; }
  .project__img--main.tour { aspect-ratio: 4 / 5; }
  .tour__btn-circle { width: 76px; height: 76px; font-size: 1.1rem; }
  .project__img--side { aspect-ratio: 16 / 10; }
  .project__img--side:last-child { display: none; }

  .sticky-cta { display: flex; }
  .footer { padding-bottom: 130px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; }
}

/* ─────────── Reduced motion ─────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__canvas { display: none; }
}
