/* ==========================================================================
   Studio Architetti Aurora — style.css
   Estetica "tavola da disegno": carta calda, inchiostro, terracotta,
   dettagli monospace tecnici, griglia blueprint e layout editoriale asimmetrico.
   ========================================================================== */

:root {
  --paper: #f3f0e8;
  --paper-2: #ebe7dc;
  --ink: #17150f;
  --ink-2: #232019;
  --accent: #d96b3a;
  --accent-dark: #b34e24;
  --accent-soft: rgba(217, 107, 58, 0.12);
  --muted: #6e6a5e;
  --line: rgba(23, 21, 15, 0.16);
  --line-strong: rgba(23, 21, 15, 0.32);
  --line-light: rgba(243, 240, 232, 0.16);
  --line-light-strong: rgba(243, 240, 232, 0.34);
  --white: #fff;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --shadow-sm: 0 2px 10px rgba(23, 21, 15, 0.08);
  --shadow-md: 0 12px 34px rgba(23, 21, 15, 0.16);
  --shadow-lg: 0 28px 70px rgba(23, 21, 15, 0.32);

  --container: 1200px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.12; }
p { margin: 0; }
blockquote, figure { margin: 0; }

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

.container { width: min(var(--container), 92vw); margin-inline: auto; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  padding: 10px 18px; background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 12px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.btn-sm { padding: 10px 18px; font-size: 12.5px; }
.btn-lg { padding: 17px 32px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--paper); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(179, 78, 36, 0.35); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-outline-light { border-color: rgba(243, 240, 232, 0.5); color: var(--paper); background: transparent; }
.btn-outline-light:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  background: transparent; color: var(--paper);
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(243, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  width: min(var(--container), 92vw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 18px 0;
  border-bottom: 1px solid rgba(243, 240, 232, 0.18);
  transition: border-color 0.35s var(--ease);
}
.site-header.is-scrolled .header-inner { border-color: var(--line); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-flex; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-name em { font-style: normal; font-weight: 400; color: var(--accent); }
.brand-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; margin-top: 3px; }

.primary-nav { display: flex; gap: 34px; }
.primary-nav a {
  position: relative;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
  padding: 6px 0;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.primary-nav a:hover { opacity: 1; }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  background: none; border: 1px solid currentColor; border-radius: var(--radius);
  color: inherit; padding: 7px 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; transition: background 0.2s, color 0.2s;
}
.lang-toggle:hover { background: currentColor; color: var(--paper); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px 4px;
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 6px; width: 28px; height: 2px; background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px 8vw 40px; gap: 34px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: clamp(30px, 8vw, 44px);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em;
  padding: 8px 0; border-bottom: 1px solid var(--line-light);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.4s var(--ease) 0.1s, transform 0.4s var(--ease) 0.1s, color 0.2s;
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; }
.mobile-menu nav a:hover { color: var(--accent); }
.mobile-lang { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 13px; opacity: 0.8; }
.mobile-lang button { background: none; border: 1px solid var(--line-light-strong); color: var(--paper); padding: 8px 14px; font-family: var(--font-mono); font-size: 12px; }
.mobile-lang button:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--paper); overflow: hidden;
  padding-bottom: 0;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg.no-img { background: linear-gradient(160deg, #2a251c, #14120c); }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23, 21, 15, 0.55) 0%, rgba(23, 21, 15, 0.18) 38%, rgba(23, 21, 15, 0.78) 100%);
}
.blueprint-grid {
  position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image:
    linear-gradient(rgba(243, 240, 232, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 240, 232, 0.14) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
}

.hero-coord {
  position: absolute; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.85;
}
.hero-coord--tl { top: 96px; left: 4vw; }
.hero-coord--br { bottom: 160px; right: 4vw; writing-mode: vertical-rl; }

.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 40px; padding: 34vh 0 0;
}
.hero-content { max-width: 780px; padding-bottom: 46px; }

.hero-kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; opacity: 0.9; margin-bottom: 26px;
}
.hero-kicker-line { width: 52px; height: 1px; background: var(--accent); display: inline-block; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.4vw, 92px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.02;
  text-transform: uppercase;
}
.hero-title em {
  font-style: normal; color: transparent;
  -webkit-text-stroke: 1.5px rgba(243, 240, 232, 0.9);
}
.hero-sub {
  margin-top: 28px; max-width: 560px;
  font-size: 17px; line-height: 1.7; color: rgba(243, 240, 232, 0.86);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

.hero-index {
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--font-mono); font-size: 13px; color: rgba(243, 240, 232, 0.55);
  padding-bottom: 54px; padding-right: 4px;
}
.hero-index span { transition: color 0.3s; }
.hero-index span:nth-child(1) { color: var(--accent); }

.hero-scroll {
  /* Ancorato sopra la banda delle statistiche (che chiude .hero) */
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 160px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0.85;
}
.hero-scroll i {
  width: 1px; height: 44px; background: var(--paper);
  position: relative; overflow: hidden;
}
.hero-scroll i::after {
  content: ""; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%; background: var(--accent);
  animation: scroll-drop 1.9s var(--ease) infinite;
}
@keyframes scroll-drop { 0% { top: -100%; } 60%, 100% { top: 100%; } }

/* ---------- Stats ---------- */
.stats-band {
  position: relative; z-index: 2;
  background: rgba(23, 21, 15, 0.66);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line-light);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line-light);
}
.stat {
  padding: 26px 30px 28px;
  border-right: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: 2px;
}
.stat-value { font-family: var(--font-display); font-size: 42px; font-weight: 600; letter-spacing: -0.02em; color: var(--paper); }
.stat-suffix { font-family: var(--font-display); font-size: 42px; font-weight: 600; color: var(--accent); margin-left: 2px; }
.stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243, 240, 232, 0.7); margin-top: 4px; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  background: var(--accent); color: var(--ink);
  overflow: hidden; padding: 16px 0;
  border-bottom: 2px solid var(--ink);
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content; white-space: nowrap;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: 15px; letter-spacing: 0.12em;
}
.marquee-track i { font-style: normal; color: var(--ink); opacity: 0.75; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SEZIONI GENERALI
   ========================================================================== */
.section { padding: 110px 0; position: relative; }
.section.dark { background: var(--ink); color: var(--paper); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-code {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.section-code.light { color: var(--accent); }
.section-title {
  font-family: var(--font-display); font-size: clamp(34px, 5vw, 58px);
  font-weight: 500; letter-spacing: -0.02em; text-transform: uppercase;
}
.section-sub { margin-top: 20px; font-size: 16.5px; color: var(--muted); max-width: 640px; }
.dark .section-sub { color: rgba(243, 240, 232, 0.68); }

/* ==========================================================================
   STUDIO
   ========================================================================== */
.studio-grid {
  display: grid; grid-template-columns: 1.06fr 0.94fr;
  gap: 72px; align-items: center;
}
.studio-media { position: relative; padding: 0 8% 14% 0; }
.studio-img-main { position: relative; z-index: 1; box-shadow: var(--shadow-lg); }
.studio-img-main img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.img-caption {
  position: absolute; left: 0; bottom: -38px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  background: var(--paper); padding: 8px 14px; border: 1px solid var(--line);
}
.studio-img-small {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  width: 46%; border: 8px solid var(--paper);
  box-shadow: var(--shadow-md); transform: rotate(1.6deg);
  transition: transform 0.5s var(--ease);
}
.studio-img-small:hover { transform: rotate(0deg) scale(1.03); }
.studio-img-small img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; }
.studio-badge {
  position: absolute; left: 0; top: 22px; z-index: 3;
  background: var(--accent); color: var(--paper);
  padding: 16px 22px; display: flex; flex-direction: column; gap: 3px;
  box-shadow: var(--shadow-md);
}
.studio-badge-value { font-family: var(--font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.02em; }
.studio-badge-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.9; }

.studio-text > p { font-size: 17px; line-height: 1.75; color: #3a362c; margin-bottom: 20px; }
.studio-quote {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 24px; margin: 34px 0;
}
.studio-quote p {
  font-family: var(--font-display); font-size: 22px; line-height: 1.4;
  font-weight: 400; font-style: italic; color: var(--ink);
}
.studio-quote cite { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-style: normal; }

.timeline { display: flex; flex-direction: column; }
.timeline li {
  display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline-year { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--accent); }
.timeline-label { font-size: 15.5px; color: var(--ink); }

/* ==========================================================================
   PROGETTI (scroll orizzontale)
   ========================================================================== */
.progetti { padding-bottom: 120px; overflow: hidden; }
.progetti-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; margin-bottom: 56px;
}
.progetti-head .section-head { margin-bottom: 0; }

.progetti-nav { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; }
.progetti-hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243, 240, 232, 0.55); margin-right: 10px; }
.proj-arrow {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-light-strong); background: transparent;
  color: var(--paper); font-size: 18px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.proj-arrow:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.proj-arrow:disabled { opacity: 0.35; pointer-events: none; }

.progetti-track {
  display: flex; gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4vw 30px;
  scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.progetti-track::-webkit-scrollbar { height: 5px; }
.progetti-track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.progetti-track::-webkit-scrollbar-track { background: rgba(243, 240, 232, 0.12); }
.progetti-track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.project-card {
  position: relative; flex: 0 0 auto;
  width: min(430px, 82vw);
  scroll-snap-align: start;
  border: 1px solid var(--line-light);
  background: var(--paper); color: var(--ink);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project-card-media { position: relative; overflow: hidden; }
.project-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.7s var(--ease); }
.project-card:hover .project-card-media img { transform: scale(1.06); }
.project-card-no { position: absolute; top: 14px; left: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 13px; color: var(--paper);
  background: rgba(23, 21, 15, 0.78); padding: 5px 10px; letter-spacing: 0.1em;
}
.project-card-type { position: absolute; top: 14px; right: 16px; z-index: 2;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink); background: var(--paper);
  padding: 5px 10px; }
.project-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.project-card-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em; }
.project-card-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.project-card-desc { font-size: 14.5px; color: #4a463c; margin-top: 8px; flex: 1; }
.project-card-open {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-dark); margin-top: 14px;
}
.project-card-open::after { content: "→"; transition: transform 0.3s var(--ease); }
.project-card:hover .project-card-open::after { transform: translateX(6px); }

.progetti-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  flex-wrap: wrap; margin-top: 18px;
}
.progetti-foot-note { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243, 240, 232, 0.55); }
.progetti-foot-count { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.12em; }

/* ==========================================================================
   SERVIZI
   ========================================================================== */
.services-list { border-bottom: 1px solid var(--line); }
.services-row {
  position: relative;
  display: grid; grid-template-columns: 84px 1fr auto;
  gap: 28px; align-items: center;
  padding: 34px 8px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.services-row:hover { background: var(--paper-2); padding-left: 20px; }
.services-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.services-no { font-family: var(--font-mono); font-size: 15px; color: var(--accent); }
.services-body h3 { font-family: var(--font-display); font-size: clamp(21px, 2.6vw, 30px); font-weight: 500; text-transform: uppercase; letter-spacing: 0.01em; }
.services-body p { margin-top: 8px; color: var(--muted); font-size: 15.5px; max-width: 640px; }
.services-arrow { font-size: 22px; color: var(--ink); opacity: 0.35; transition: opacity 0.3s, transform 0.3s var(--ease); }
.services-row:hover .services-arrow { opacity: 1; transform: translateX(6px); }

/* Anteprima immagine al passaggio del mouse (desktop) */
.svc-preview {
  position: fixed; z-index: 200; pointer-events: none;
  width: 300px; height: 200px; overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
  opacity: 0; transform: scale(0.92) rotate(-2deg);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.svc-preview.is-visible { opacity: 1; transform: scale(1) rotate(0deg); }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   PROCESSO
   ========================================================================== */
.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line-light);
}
.process-step {
  position: relative; padding: 46px 30px 20px 0;
  border-right: 1px dashed var(--line-light-strong);
}
.process-step:last-child { border-right: 0; }
.process-no {
  font-family: var(--font-mono); font-size: 44px; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 240, 232, 0.4);
  display: block; margin-bottom: 18px;
}
.process-step h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; }
.process-step p { font-size: 14.5px; color: rgba(243, 240, 232, 0.68); line-height: 1.6; }

/* ==========================================================================
   PREMI
   ========================================================================== */
.premi { background: var(--paper-2); }
.premi-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.awards-list { border-bottom: 1px solid var(--line); }
.award-row {
  display: grid; grid-template-columns: 96px 1fr auto;
  gap: 24px; align-items: baseline;
  padding: 26px 4px; border-top: 1px solid var(--line);
  transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.award-row:hover { background: var(--paper); padding-left: 16px; }
.award-year { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.award-title { font-family: var(--font-display); font-size: 18px; font-weight: 500; text-transform: uppercase; }
.award-venue { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: right; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  background: var(--ink); color: var(--paper);
  border-top: 4px solid var(--accent);
  background-image: linear-gradient(rgba(243, 240, 232, 0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(243, 240, 232, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
}
.cta-inner { text-align: center; padding: 110px 0 120px; }
.cta-code { font-family: var(--font-mono); color: var(--accent); font-size: 18px; margin-bottom: 20px; }
.cta-title {
  font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 500; text-transform: uppercase; letter-spacing: -0.02em;
  max-width: 900px; margin: 0 auto; line-height: 1.15;
}
.cta-sub { margin: 24px auto 40px; max-width: 560px; color: rgba(243, 240, 232, 0.7); font-size: 16.5px; }

/* ==========================================================================
   CONTATTI
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }

.contact-form .field { margin-bottom: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-form label {
  display: block; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 2px;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1.5px solid var(--line-strong);
  border-radius: 0; outline: none;
  transition: border-color 0.25s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form select { cursor: pointer; }
.field-error { display: none; margin-top: 7px; font-family: var(--font-mono); font-size: 11.5px; color: #b3261e; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3261e; }
.field.is-invalid .field-error { display: block; }

.checkbox { display: flex !important; gap: 12px; align-items: flex-start; margin: 6px 0 20px; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.checkbox span { font-family: var(--font-body) !important; font-size: 14px; letter-spacing: 0 !important; text-transform: none !important; color: var(--muted); line-height: 1.55; }
.privacy-error { display: none; }
.privacy-error.is-shown { display: block; margin: -10px 0 18px; }

.form-note { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.btn .spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(243, 240, 232, 0.4); border-top-color: var(--paper);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.7; }

.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card {
  border: 1px solid var(--line); background: var(--white);
  padding: 24px 26px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.info-card h3 {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px;
}
.info-card p { font-size: 15.5px; line-height: 1.7; color: #3a362c; }
.info-card a { font-weight: 500; transition: color 0.2s; }
.info-card a:hover { color: var(--accent-dark); }
.info-coord { font-family: var(--font-mono) !important; font-size: 12px !important; color: var(--muted) !important; margin-top: 8px; }
.map-wrap { margin-top: 8px; }
.map-wrap iframe { width: 100%; height: 190px; border: 0; filter: grayscale(0.4) contrast(1.05); }
.map-link {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-dark);
}
.map-link:hover { text-decoration: underline; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #121009; color: var(--paper); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px;
  padding: 84px 0 60px;
}
.footer-brand p { margin-top: 22px; font-size: 15px; line-height: 1.7; color: rgba(243, 240, 232, 0.62); max-width: 340px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.footer-col a { font-size: 15px; color: rgba(243, 240, 232, 0.78); transition: color 0.2s, padding-left 0.25s var(--ease); }
.footer-col a:hover { color: var(--paper); padding-left: 6px; }
.footer-col p { font-size: 15px; color: rgba(243, 240, 232, 0.78); line-height: 1.7; }
.footer-col p a:hover { color: var(--accent); padding-left: 0; }
.footer-h3-mt { margin-top: 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 26px 0; border-top: 1px solid var(--line-light);
  font-family: var(--font-mono); font-size: 11.5px; color: rgba(243, 240, 232, 0.5);
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(23, 21, 15, 0.78); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: min(900px, 100%);
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.4s var(--ease);
}
.modal-card--small { width: min(480px, 100%); text-align: center; padding: 48px 40px 40px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(26px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--paper);
  font-size: 16px; color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal-close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }
.modal-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.modal-body { padding: 34px 42px 26px; }
.modal-code { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.14em; margin-bottom: 10px; }
.modal-body h3 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; text-transform: uppercase; }
.modal-meta { margin-top: 10px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.modal-desc { margin-top: 18px; font-size: 15.5px; line-height: 1.75; color: #3a362c; }
.modal-specs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 26px 0 0; border-top: 1px solid var(--line); padding-top: 22px;
}
.modal-specs div dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.modal-specs div dd { margin: 0; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.modal-card--small .modal-check { margin: 0 auto 18px; }
.modal-card--small .modal-check circle { stroke: var(--accent); stroke-width: 2; }
.modal-card--small .modal-check path { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 0.7s var(--ease) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.modal-card--small h3 { font-family: var(--font-display); font-size: 28px; text-transform: uppercase; }
.modal-text { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.modal-code-label { margin-top: 26px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.modal-card--small .modal-code { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--accent); margin-bottom: 26px; }

/* ==========================================================================
   TOAST / BACK TO TOP
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 400; background: var(--ink); color: var(--paper);
  border-left: 3px solid var(--accent);
  padding: 14px 26px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em;
  box-shadow: var(--shadow-md);
}
.toast[hidden] { display: none; }
.back-to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--accent); color: var(--paper); border: 0;
  font-size: 18px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, background 0.2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--accent-dark); }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .studio-grid { grid-template-columns: 1fr; gap: 64px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(-n+2) { border-bottom: 1px dashed var(--line-light-strong); }
  .process-step { padding: 36px 26px 36px 0; }
  .premi-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 22px; }
  .stat-value, .stat-suffix { font-size: 32px; }
  .hero-coord--br { display: none; }
  .hero-scroll { bottom: 230px; }
  .hero-index { display: none; }
  .hero-grid { padding-top: 26vh; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .services-row { grid-template-columns: 48px 1fr; gap: 16px; padding: 26px 4px; }
  .services-arrow { display: none; }
  .award-row { grid-template-columns: 70px 1fr; }
  .award-venue { display: none; }
  .modal-body { padding: 26px 22px 22px; }
  .modal-specs { grid-template-columns: 1fr 1fr; }
  .cta-inner { padding: 80px 0 90px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .progetti-head { flex-direction: column; align-items: flex-start; gap: 26px; }
  .progetti-hint { display: none; }
  .img-caption { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
  .hero-scroll { display: none; }
}

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