/* =========================================================
   Centaur Cinema — foglio di stile
   Palette presa dal logo: nero del fondo, pietra sfaccettata
   del centauro, blu dei circuiti, luce del proiettore.
   ========================================================= */

/* ---------- Font (ospitati in locale, licenza OFL) ---------- */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Token ---------- */
:root {
  --ink:      #030305;   /* il nero esatto del logo */
  --ink-2:    #0B0C11;   /* pannelli */
  --line:     #24252D;   /* filetti */
  --stone:    #e5ddce;   /* la pietra del centauro: titoli */
  --text:     #ede8e0;   /* testo */
  --muted:    #bab4a9;   /* testo secondario */
  --circuit:  #4A8CFF;   /* i circuiti blu */
  --circuit-hi: #9CC2FF;
  --beam:     228 234 255; /* luce del proiettore (RGB) */
  --danger:   #FF8A7A;

  --serif: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --sans:  "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* scala tipografica: quarta giusta (1.333) su base 18px */
  --fs-sm: 0.875rem;
  --fs-base: 1.125rem;
  --fs-md: 1.5rem;
  --fs-lg: 2rem;
  --fs-xl: clamp(2rem, 1.4rem + 2.4vw, 2.67rem);
  --fs-hero: clamp(2.3rem, 1.2rem + 3.6vw, 4.1rem);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 10vw, 144px);
  --header-h: 72px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--circuit-hi); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
:focus-visible { outline: 2px solid var(--circuit); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--circuit); color: #fff; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--stone); color: var(--ink); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Titoli ---------- */
.h1, .h2, .h3, .hero-title, .service-title, .step-title, .strength-title {
  font-family: var(--serif);
  color: var(--stone);
  letter-spacing: 0.02em;
  font-weight: 500;
}
.h1  { font-size: var(--fs-xl); line-height: 1.15; margin-bottom: 0.4em; }
.h2  { font-size: var(--fs-xl); line-height: 1.12; }
.h3  { font-size: var(--fs-md); line-height: 1.25; }
.lede { font-size: 1.3rem; line-height: 1.55; color: var(--text); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; border-radius: 2px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--stone); color: var(--ink); border: 1px solid var(--stone); }
.btn-primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--stone); border: 1px solid #5A564D; }
.btn-ghost:hover { border-color: var(--stone); color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link { color: var(--circuit-hi); font-weight: 500; }

/* ---------- Testata ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .nav-open .site-header {
  background: rgba(3, 3, 5, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
body::before { /* fascia sotto la barra di stato dei telefoni */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.wordmark { display: inline-flex; align-items: baseline; gap: 0.6em; text-decoration: none; color: var(--stone); }
.wordmark-main { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: 0.16em; }
.wordmark-sub { font-family: var(--serif); font-size: 0.8rem; letter-spacing: 0.42em; color: var(--circuit-hi); }
.wordmark:hover { color: #fff; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 0.98rem; }
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta { color: var(--stone); border: 1px solid #5A564D; padding: 9px 18px; border-radius: 2px; }
.site-nav .nav-cta:hover { border-color: var(--stone); }
.nav-lang a { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.08em; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
    background: none; border: 0; color: var(--stone); font: 500 1rem var(--sans); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s ease;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after  { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: fixed; left: 0; right: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    background: rgba(3, 3, 5, 0.97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; }
  .site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav .nav-cta { border: 0; padding: 14px 0; }
  .nav-lang a { border-bottom: 0 !important; }
}

/* =========================================================
   HERO — il fascio della cinepresa proietta il titolo
   ========================================================= */
.hero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-h)); }
.hero-stage {
  position: relative;
  max-width: 1440px; margin: 0 auto;
  min-height: min(92vh, 860px);
  padding: calc(var(--header-h) + 24px) var(--gutter) 64px;
  display: grid; align-items: center;
}
.hero-emblem {
  position: absolute; z-index: 0;
  left: max(-2vw, -40px); bottom: 4%;
  width: min(66%, 980px);
}
.hero-emblem img {
  width: 100%; mix-blend-mode: lighten;
  /* sfuma i bordi dell'immagine: il fascio non deve "tagliarsi" sul margine */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 80%, transparent 99%), linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 80%, transparent 99%), linear-gradient(180deg, transparent 0, #000 8%, #000 90%, transparent 100%);
          mask-composite: intersect;
}

/* il fascio prosegue oltre l'immagine e illumina il titolo.
   Origine: il fronte dell'obiettivo nell'immagine (x 68.2%, y 26.5%). */
.hero-emblem::after {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  left: 68.2%; top: 26.5%;
  width: 115%; aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  background: conic-gradient(from 58deg at 0% 50%,
    transparent 0deg,
    rgb(var(--beam) / 0.035) 9deg,
    rgb(var(--beam) / 0.085) 21deg,
    rgb(var(--beam) / 0.035) 34deg,
    transparent 47deg);
  -webkit-mask-image: radial-gradient(circle at 0% 50%, #000 0%, #000 18%, transparent 72%);
          mask-image: radial-gradient(circle at 0% 50%, #000 0%, #000 18%, transparent 72%);
}
.hero-screen {
  position: relative; z-index: 2;
  justify-self: end;
  width: min(100%, 600px);
  margin-right: clamp(0px, 1vw, 24px);
  margin-top: -6vh;
}
.hero-title {
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: #F1ECE2;
  text-shadow: 0 0 40px rgb(var(--beam) / 0.18);
  margin-bottom: 0.45em;
  text-wrap: balance;
}
.hero-lead { font-size: 1.22rem; line-height: 1.6; color: var(--text); max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Accensione del proiettore: l'unico movimento automatico della pagina */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-emblem  { opacity: 0; animation: cc-fade 1.4s ease-out .1s forwards; }
  .js .hero-emblem::after { opacity: 0; animation: cc-flicker 1.6s ease-out .9s forwards; }
  .js .hero-screen  { opacity: 0; animation: cc-project 1.2s ease-out 1.2s forwards; }
}
@keyframes cc-fade { to { opacity: 1; } }
@keyframes cc-flicker {
  0% { opacity: 0; } 12% { opacity: .7; } 18% { opacity: .2; } 30% { opacity: .9; } 100% { opacity: 1; }
}
@keyframes cc-project {
  from { opacity: 0; filter: blur(6px); transform: scale(.985); }
  to   { opacity: 1; filter: blur(0);   transform: none; }
}

@media (max-width: 960px) {
  .hero { margin-top: 0; }
  .hero-stage { display: block; min-height: 0; padding: 8px var(--gutter) 72px; }
  .hero-emblem { position: relative; left: auto; bottom: auto; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)) 8px; }
  .hero-emblem::after { display: none; }
  .hero-screen { width: 100%; margin: 0; }
}

/* ---------- Utilità ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================
   TEMPI E COSTI — il vantaggio, detto in grande
   ========================================================= */
.section.impact { border-top: 0; padding-top: clamp(32px, 5vw, 72px); }
.impact-facts { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 80px); }
.impact-fact { grid-column: 1 / -1; grid-template-columns: subgrid; }
.impact-fact {
  display: grid; gap: 16px clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(32px, 4.5vw, 56px) 0; border-bottom: 1px solid var(--line);
}
.impact-figure {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 1.2rem + 2.8vw, 3.9rem); line-height: 1.08;
  letter-spacing: 0.01em; color: #F1ECE2; text-wrap: balance;
  text-shadow: 0 0 48px rgb(var(--beam) / 0.16);
  margin: 0;
}
.impact-text { font-size: 1.22rem; line-height: 1.55; color: var(--text); max-width: 30em; margin: 0; }

.impact-why-head-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px 64px; align-items: end; margin: clamp(64px, 8vw, 104px) 0 clamp(40px, 5vw, 56px); }
.impact-why-title { font-family: var(--serif); font-size: var(--fs-xl); line-height: 1.12; color: var(--stone); margin: 0; }
.impact-why-intro { color: var(--muted); margin: 0; max-width: 36em; }
.impact-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }
.impact-why li { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.impact-why li::before {
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid var(--circuit);
}
.impact-why-head { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--stone); margin: 0 0 10px; letter-spacing: .02em; }
.impact-why p { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 34em; }

@media (max-width: 860px) {
  .impact-facts { grid-template-columns: 1fr; }
  .impact-fact { grid-template-columns: 1fr; }
  .impact-why { grid-template-columns: 1fr; gap: 32px; }
  .impact-why-head-row, .pts-grid { grid-template-columns: 1fr; }
}

/* ---------- Sezioni ---------- */
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.section-intro { color: var(--muted); margin: 0; max-width: 36em; }

/* ---------- Immagini e video ---------- */
.media { display: block; width: 100%; height: auto; object-fit: cover; background: #000; border: 1px solid var(--line); }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3  { aspect-ratio: 4 / 3; }
.media-placeholder {
  display: grid; place-items: center; padding: 20px; text-align: center;
  border: 1px dashed #4A4B57; background: repeating-linear-gradient(135deg, #07080C 0 12px, #0A0B10 12px 24px);
}
.media-placeholder p { margin: 0; max-width: 34em; color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; }

/* Showreel */
.reel { padding: 0 0 clamp(24px, 4vw, 48px); }
.reel-frame { margin: 0; }
.reel-frame figcaption, .pts-item figcaption { color: var(--muted); font-size: var(--fs-sm); margin-top: 12px; }

/* Il nome / Chi siamo: titolo a sinistra, testo a destra */
.name-grid, .about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; }
.name-text p:last-child, .about-text p:last-child { margin-bottom: 0; }
.name-text p:not(.lede), .about-text p:not(.lede) { color: var(--muted); max-width: 38em; }

/* Showreel: anteprima in loop + pulsante */
.reel-player { position: relative; }
.reel-player .reel-teaser { filter: brightness(.82); }
.reel-play {
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 16px 28px 16px 18px; border-radius: 999px; text-decoration: none;
  background: rgba(3, 3, 5, 0.62); border: 1px solid rgba(220, 211, 193, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.reel-play:hover { background: rgba(3, 3, 5, 0.8); border-color: var(--stone); transform: scale(1.03); }
.reel-play-icon {
  grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--stone); position: relative;
}
.reel-play-icon::after {
  content: ""; position: absolute; left: 21px; top: 16px;
  border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--ink);
}
.reel-play-text { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .04em; color: #F1ECE2; }
.reel-play-hint { font-size: var(--fs-sm); color: var(--muted); }
.reel-player.is-playing .reel-teaser, .reel-player.is-playing .reel-play { display: none; }
@media (max-width: 640px) { .reel-play { padding: 10px 18px 10px 10px; } .reel-play-icon { width: 40px; height: 40px; }
  .reel-play-icon::after { left: 16px; top: 12px; border-width: 8px 0 8px 13px; } .reel-play-text { font-size: 1.05rem; } }

/* Dalla pagina allo schermo */
.pts-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px; align-items: end; }
.pts-item { margin: 0; }
.pts-grid:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }

/* Uno stile per ogni storia */
.styles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.style-item { margin: 0; }
.style-item figcaption { margin-top: 12px; font-family: var(--serif); font-size: 1.1rem; letter-spacing: .04em; color: var(--stone); }
.ratio-9x16 { aspect-ratio: 9 / 16; }
/* verticali: tre «schermi» affiancati, alti al massimo quanto la finestra */
.styles-9x16 { max-width: min(100%, calc((100svh - 220px) * 9 / 16 * 3 + 48px)); margin: 0 auto; }
@media (max-width: 860px) {
  .styles-16x9 { grid-template-columns: 1fr; gap: 32px; }
  /* su mobile i verticali scorrono di lato, uno alla volta, con il successivo che si intravede */
  .styles-9x16 {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%;
    gap: 16px; max-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .styles-9x16::-webkit-scrollbar { display: none; }
  .styles-9x16 .style-item { scroll-snap-align: start; }
}

/* ---------- Servizi: tracce di circuito ---------- */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
.service { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.service::before { /* nodo del circuito all'inizio della traccia */
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink); border: 1.5px solid var(--circuit);
}
.service .media { margin-bottom: 24px; }
.service-title { font-size: 1.35rem; line-height: 1.3; margin-bottom: 14px; }
.service-body { color: var(--text); font-size: 1.02rem; }
.service-for { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* ---------- Come lavoriamo: una traccia che collega i passi ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px;
  background: linear-gradient(90deg, var(--circuit) 0%, rgba(74, 140, 255, .35) 70%, transparent 100%);
}
.step { position: relative; }
.step-num {
  position: relative; z-index: 1;
  display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 10px;
  font-family: var(--serif); font-size: 1.1rem; color: var(--circuit-hi);
  background: var(--ink); border: 1px solid var(--circuit); border-radius: 24px;
  margin-bottom: 26px;
}
.step-title { font-size: 1.35rem; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- Che cosa cambia ---------- */
.strengths .h2 { margin-bottom: clamp(40px, 5vw, 64px); }
.strength-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }
.strength { padding-left: 24px; border-left: 1px solid var(--line); }
.strength-title { font-size: 1.35rem; margin-bottom: 10px; }
.strength p { color: var(--muted); margin: 0; max-width: 34em; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: start; }
.contact-intro .h2 { margin-bottom: 24px; }
.contact-facts { margin: 36px 0 32px; display: grid; gap: 20px; }
.contact-facts dt { color: var(--muted); font-size: var(--fs-sm); }
.contact-facts dd { margin: 2px 0 0; font-size: 1.15rem; color: var(--stone); }
.contact-facts a { color: var(--stone); }

.contact-panel { background: var(--ink-2); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.contact-form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 0.98rem; font-weight: 500; color: var(--text); }
.optional { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.5 var(--sans); color: var(--text);
  background: var(--ink); border: 1px solid #3A3B44; border-radius: 2px;
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #5A5B66; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--circuit); outline: none; box-shadow: 0 0 0 1px var(--circuit); }
.field-hint { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.field-error { margin: 0; font-size: var(--fs-sm); color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }

.field-check { grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--circuit); }
.field-check label { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.field-check .field-error { grid-column: 2; }

.form-error-summary { margin: 0; padding: 12px 16px; border-left: 2px solid var(--danger); background: rgba(255, 138, 122, .07); color: var(--text); }
.btn-submit { justify-self: start; }

.form-success { padding: 8px 0; }
.form-success:focus { outline: none; }
.form-success-title { font-family: var(--serif); font-size: var(--fs-lg); color: var(--stone); margin-bottom: .3em; }
.form-success p:last-child { color: var(--muted); margin: 0; }

/* trappola per bot: fuori schermo, non display:none (alcuni bot lo riconoscono) */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Piè di pagina ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 32px 48px; }
.footer-wordmark { font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.16em; color: var(--stone); margin-bottom: 8px; }
.footer-wordmark span { font-size: 0.6em; letter-spacing: 0.42em; color: var(--circuit-hi); margin-left: .4em; }
.footer-tagline { font-family: var(--serif); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--muted); margin: 0; }
.footer-info p { color: var(--muted); font-size: 0.95rem; margin-bottom: .6em; }
.footer-info a { color: var(--stone); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; font-size: 0.95rem; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 48px; padding-top: 24px;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer-base p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- Pagine di testo (privacy, 404) ---------- */
.text-page { padding: clamp(56px, 8vw, 112px) 0 var(--section); }
.text-wrap { max-width: 760px; }
.text-meta { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 48px; }
.text-page section { margin-bottom: 36px; }
.text-page section .h3 { margin-bottom: 10px; }
.text-page section p { color: var(--text); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .steps::before { display: none; }
}
@media (max-width: 860px) {
  .section-head, .name-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --fs-base: 1.0625rem; }
  .lede { font-size: 1.18rem; }
  .service-list, .strength-grid, .field-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 40px; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; }
  .step-num { grid-row: 1 / span 2; margin: 0; height: 40px; min-width: 40px; font-size: .95rem; }
  .step-title { align-self: center; margin-bottom: 6px; }
  .step p { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
