/* ==========================================================
   Sottoscala Produzioni, landing page
   Dark nativa. Cemento scuro, luce ambra da lampadina nuda,
   spray magenta per focus e dettagli.
   ========================================================== */

:root {
  --bg: #1c1d1f;
  --surface: #26272a;
  --surface-2: #2f3033;
  --line: #404246;
  --text: #ece9e4;
  --muted: #a8a49d;
  --amber: #ffa51f;
  --amber-dark: #c97a00;
  --magenta: #ff3d8b;

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background-color: var(--bg);
  /* grana di cemento, molto leggera */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
audio {
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
}

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

.hidden {
  display: none;
}

/* ---------- Barra superiore ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.75rem var(--gutter);
  background: rgba(28, 29, 31, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.topbar ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.topbar nav a:hover {
  color: var(--text);
  border-color: var(--amber);
}

/* ---------- Bottoni ---------- */

.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  border: 2px solid var(--amber);
  border-radius: 0;
  background: var(--amber);
  color: #1c1d1f;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  /* ombra dura, effetto adesivo */
  box-shadow: 5px 5px 0 var(--magenta);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--magenta);
}

.btn:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--magenta);
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 3.5rem);
  min-height: calc(100svh - 3.5rem);
  padding-block: 4rem;
  border-bottom: 1px solid var(--line);
}

.hero-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 15vw, 11rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero-title .line {
  display: block;
}

/* La seconda riga scende di un gradino, come una scala */
.hero-title .line-2 {
  margin-left: clamp(1.5rem, 9vw, 8rem);
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}

.hero-tagline {
  max-width: 34ch;
  margin: 0 0 2.25rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.375rem);
}

/* Gradini decorativi sotto il bottone */
.stairs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-top: 3.5rem;
}

.stairs span {
  display: block;
  height: 10px;
  background: var(--amber);
}

.stairs span:nth-child(1) { width: 16%; opacity: 1; }
.stairs span:nth-child(2) { width: 30%; opacity: 0.85; }
.stairs span:nth-child(3) { width: 44%; opacity: 0.7; }
.stairs span:nth-child(4) { width: 58%; opacity: 0.55; }
.stairs span:nth-child(5) { width: 72%; opacity: 0.4; }
.stairs span:nth-child(6) { width: 86%; opacity: 0.25; }

/* Unico momento animato: i gradini entrano al caricamento */
@keyframes step-in {
  from {
    transform: translateX(110%);
  }
  to {
    transform: translateX(0);
  }
}

.stairs span {
  animation: step-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stairs span:nth-child(1) { animation-delay: 0.1s; }
.stairs span:nth-child(2) { animation-delay: 0.2s; }
.stairs span:nth-child(3) { animation-delay: 0.3s; }
.stairs span:nth-child(4) { animation-delay: 0.4s; }
.stairs span:nth-child(5) { animation-delay: 0.5s; }
.stairs span:nth-child(6) { animation-delay: 0.6s; }

/* ---------- Sezioni ---------- */

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section-alt {
  background-color: var(--surface);
  border-block: 1px solid var(--line);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
}

.section-intro {
  max-width: 55ch;
  margin: 0 0 2.5rem;
  color: var(--muted);
}

/* ---------- Servizi ---------- */

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service {
  padding: 1.75rem;
  background: var(--surface);
  border: 2px solid var(--line);
  transition: border-color 0.2s;
}

.service:hover {
  border-color: var(--amber);
}

.service h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.service p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.service ul {
  margin: 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
}

.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 3px;
  background: var(--amber);
}

/* Su schermi larghi i blocchi scendono a gradini */
@media (min-width: 900px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .service:nth-child(2) {
    margin-top: 3rem;
  }

  .service:nth-child(3) {
    margin-top: 6rem;
  }
}

/* ---------- Ascolta ---------- */

.tracks {
  border-top: 1px solid var(--line);
}

.track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.track h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.track p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.track audio {
  width: 100%;
  color-scheme: dark;
}

@media (min-width: 800px) {
  .track {
    grid-template-columns: 1fr minmax(320px, 1.1fr);
    gap: 2rem;
  }
}

/* ---------- Il fonico ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.about .section-title {
  margin: 0;
}

.about-body {
  max-width: 60ch;
  padding-left: 1.25rem;
  border-left: 4px solid var(--amber);
}

.about-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.about-body .about-role {
  margin: 0.25rem 0 1rem;
  color: var(--amber);
  font-weight: 500;
}

.about-body p:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
  }
}

/* ---------- Booking ---------- */

.booking {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.booking-copy p {
  max-width: 42ch;
  color: var(--muted);
}

.booking-copy .note {
  padding-left: 1rem;
  border-left: 3px solid var(--magenta);
  font-size: 0.95rem;
}

.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--surface);
  border: 2px solid var(--line);
  border-top: 6px solid var(--amber);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.field input:hover,
.field select:hover {
  border-color: var(--muted);
}

.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 61, 139, 0.35);
}

.form .btn {
  justify-self: start;
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .booking {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }
}

/* ---------- Footer ---------- */

.footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer p {
  margin: 0.25rem 0;
}

.footer a {
  color: var(--text);
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

.footer .footer-brand {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
}

/* ---------- Accessibilità: meno movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stairs span {
    animation: none;
  }

  .btn,
  .service,
  .topbar nav a,
  .field input,
  .field select {
    transition: none;
  }
}
