/* A/V Dicted — luxury AV integrator */
:root {
  --bg: #0c0c0c;
  --bg-elevated: #141414;
  --bg-card: #161616;
  --bg-soft: #1a1a1a;
  --text: #f2f0eb;
  --text-muted: #a8a49c;
  --text-dim: #6e6a63;
  --accent: #b8ff00;
  --accent-soft: rgba(196, 181, 160, 0.12);
  --border: rgba(242, 240, 235, 0.08);
  --border-strong: rgba(242, 240, 235, 0.16);
  --max: 1180px;
  --nav-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

ul { list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 2.5rem, 1320px);
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  gap: 1.5rem;
}

.logo {
  font-size: 1.05rem;
  font-weight: 560;
  letter-spacing: 0.08em;
  text-transform: none;
  white-space: nowrap;
}

.logo span { color: var(--accent); font-weight: 400; }

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 1px;
  background: var(--text);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 3rem) 0 4.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,12,12,0.45) 0%, rgba(12,12,12,0.15) 35%, rgba(12,12,12,0.78) 100%),
    linear-gradient(90deg, rgba(12,12,12,0.55) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1714;
}

.btn-accent:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.btn-ghost {
  border-color: transparent;
  padding-inline: 0;
}

.btn-ghost:hover {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
}

.btn-ghost::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

/* —— Sections —— */
section {
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.lede {
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

/* —— Service cards —— */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.6rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.925rem;
  flex: 1;
}

.card-link {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.5rem;
}

.card-link:hover { opacity: 0.8; }

/* —— Featured project —— */
.featured {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
}

.featured-media {
  min-height: 420px;
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.featured-body h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 450;
  letter-spacing: -0.02em;
}

.featured-body p {
  color: var(--text-muted);
  max-width: 28rem;
}

/* —— CTA strip —— */
.cta-strip {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
  text-align: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.cta-strip h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 450;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.cta-strip p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-inline: auto;
}

/* —— Page hero (inner) —— */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
  border-bottom: 1px solid var(--border);
}

.page-hero .lede { margin-top: 1rem; }

/* Illuminazione: fixed viewport day→evening stack (content scrolls over it) */
html:has(body.page-illuminazione) {
  background: #0c0c0c;
}

body.page-illuminazione {
  /* Let the fixed photo stack show through; html keeps the solid fallback */
  background: transparent;
}

.lighting-scroll-bg {
  --lighting-evening: 0;
  --lighting-day: 1;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: #0c0c0c;
}

.lighting-scroll-bg__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: opacity;
}

.lighting-scroll-bg__layer--day {
  /* Paths relative to style.css (site root) — same as page-relative from illuminazione.html */
  background-image: url("assets/images/lighting/giorno-freddo.jpg");
  opacity: var(--lighting-day, 1);
  z-index: 0;
}

.lighting-scroll-bg__layer--evening {
  background-image: url("assets/images/lighting/cena-2700k.jpg");
  opacity: var(--lighting-evening, 0);
  z-index: 1;
}

.lighting-scroll-bg__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Lighter veil so the dining room stays clearly readable in the hero */
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.28) 0%, rgba(12, 12, 12, 0.08) 38%, rgba(12, 12, 12, 0.42) 100%),
    linear-gradient(90deg, rgba(12, 12, 12, 0.38) 0%, rgba(12, 12, 12, 0.1) 48%, transparent 100%);
}

/* Keep header fixed (do not override position:fixed from .site-header) */
.page-illuminazione .site-header {
  z-index: 100;
  border-bottom: none;
}

.page-illuminazione main,
.page-illuminazione .site-footer {
  position: relative;
  z-index: 1;
}

.page-hero--lighting {
  border-bottom: none;
  background: transparent;
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  min-height: clamp(28rem, 78svh, 52rem);
  display: flex;
  align-items: flex-end;
}

.page-hero--lighting .container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.page-hero--lighting .lede {
  color: rgba(242, 240, 235, 0.92);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

.page-hero--lighting h1 {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

/* Keep dining scene visible while scrolling: transparent section chrome */
.page-illuminazione main > section {
  background: transparent !important;
  border-top: none;
}

.page-illuminazione main > section .container {
  background: transparent;
}

.page-illuminazione main > section .card,
.page-illuminazione main > section .pillar,
.page-illuminazione main > section .step {
  background: rgba(10, 10, 10, 0.42) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-illuminazione .site-footer {
  background: rgba(12, 12, 12, 0.35) !important;
}

.page-illuminazione .cta-strip {
  background: rgba(12, 12, 12, 0.28) !important;
}

.page-illuminazione .section-head,
.page-illuminazione .section-kicker,
.page-illuminazione h2,
.page-illuminazione h3 {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.65);
}

/* Delégo UI shots — dark framed presentation (images already composited on #0c0c0c) */
.pillar-media--delego {
  aspect-ratio: auto;
  background: #0c0c0c;
  border: 1px solid rgba(184, 255, 0, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55);
}

.pillar-media--delego img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  background: transparent;
}

.delego-shot {
  margin: 1rem 0 0;
  background: #0c0c0c;
  border: 1px solid rgba(184, 255, 0, 0.14);
  border-radius: 10px;
  overflow: hidden;
  padding: 0.85rem;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
}

.delego-shot img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  margin: 0;
  border-radius: 6px;
  display: block;
}

/* —— Gallery —— */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.7s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item.tall img { aspect-ratio: 3 / 4; }
.gallery-item.wide img { aspect-ratio: 16 / 10; }

.gallery-item:nth-child(1) { grid-column: span 7; }
.gallery-item:nth-child(2) { grid-column: span 5; }
.gallery-item:nth-child(3) { grid-column: span 4; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item:nth-child(6) { grid-column: span 5; }
.gallery-item:nth-child(7) { grid-column: span 7; }
.gallery-item:nth-child(8) { grid-column: span 6; }
.gallery-item:nth-child(9) { grid-column: span 6; }

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gallery-item:hover .gallery-caption { opacity: 1; }

/* —— Service pillars (servizi) —— */
.pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--border);
}

.pillar:last-of-type { border-bottom: none; }

.pillar:nth-child(even) .pillar-media { order: 2; }
.pillar:nth-child(even) .pillar-copy { order: 1; }

.pillar-media {
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 5 / 4;
  background: var(--bg-soft);
}

.pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar-copy h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 450;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.pillar-copy p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-size: 0.98rem;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

/* —— Steps (approccio) —— */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.step:last-child { border-bottom: none; }

.step-num {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-top: 0.35rem;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  max-width: 40rem;
}

.approccio-visual {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.85rem;
}

.approccio-visual figure {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.approccio-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.contact-meta {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.contact-meta dd {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.25s var(--ease);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
}

textarea { min-height: 8rem; resize: vertical; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 22rem;
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-col ul {
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

/* —— Lighting page —— */
.lighting-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 52% 42%, rgba(184, 255, 0, 0.16), transparent 30%),
    linear-gradient(135deg, #20221c, var(--bg-soft));
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.lighting-placeholder span {
  padding: 1.25rem;
  border: 1px solid rgba(184, 255, 0, 0.35);
}

.lighting-placeholder small {
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.lighting-caption {
  color: var(--text-dim) !important;
  font-size: 0.78rem !important;
  margin-top: 1.25rem;
  margin-bottom: 0 !important;
}

.footer-disclaimer {
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.5;
  max-width: 52rem;
  margin-bottom: 1.5rem;
}

/* —— Misc —— */
.note-cinema {
  margin-top: 3rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--accent-soft);
  border: 1px solid rgba(196, 181, 160, 0.22);
}

.note-cinema h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.65rem;
}

.note-cinema p {
  color: var(--text-muted);
  max-width: 42rem;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured-media { min-height: 280px; aspect-ratio: 16 / 10; }
  .pillar { grid-template-columns: 1fr; }
  .pillar:nth-child(even) .pillar-media,
  .pillar:nth-child(even) .pillar-copy { order: unset; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .approccio-visual { grid-template-columns: 1fr; }
  .gallery-item:nth-child(n) { grid-column: span 6; }
  .form-row.two { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(12, 12, 12, 0.96);
    backdrop-filter: blur(16px);
    padding: 1.25rem 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border);
    gap: 1.1rem;
  }
  .nav-links.is-open { display: flex; }
  .gallery-item:nth-child(n) { grid-column: span 12; }
  .step { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .container, .container-wide, .nav {
    width: min(100% - 1.75rem, var(--max));
  }
}

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

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.logo img {
  height: 28px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .logo img { height: 32px; }
}
