/* ===========================================================
   Studio Musicale — Verona
   Archetype: music_room_editorial
   Local design system. No external assets.
   =========================================================== */

:root {
  --ink: #131019;
  --ink-soft: #221c2c;
  --paper: #f5f1ea;
  --paper-warm: #efe7da;
  --amber: #d98a3d;
  --amber-deep: #b9692a;
  --rose: #c2566b;
  --teal: #2f6f6a;
  --line: rgba(19, 16, 25, 0.12);
  --line-strong: rgba(19, 16, 25, 0.28);
  --muted: #5c5364;
  --shadow: 0 24px 60px -28px rgba(19, 16, 25, 0.45);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }

p { margin: 0 0 1rem; }

.wrap { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin: 0 0 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--amber-deep);
  display: inline-block;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--rose));
  z-index: 120;
  transition: width 0.1s linear;
}

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 234, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--rose));
}
.brand small { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav-links { display: flex; gap: 1.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(19,16,25,0.6); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(19,16,25,0.05); }
.btn-amber { background: var(--amber-deep); border-color: var(--amber-deep); }

.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 9px; padding: 0.45rem 0.6rem; cursor: pointer; }

/* ---------- Hero (editorial music room) ---------- */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: stretch;
}
.hero-copy { align-self: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  margin-bottom: 1.1rem;
}
.hero h1 em { font-style: italic; color: var(--amber-deep); }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px dashed var(--line-strong);
}
.hero-meta div strong { display: block; font-family: var(--serif); font-size: 1.5rem; }
.hero-meta div span { font-size: 0.82rem; color: var(--muted); }

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
  border: 1px solid var(--line);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.hero-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,16,25,0) 40%, rgba(19,16,25,0.55) 100%);
}
.hero-tag {
  position: absolute;
  left: 1.1rem; bottom: 1.1rem;
  z-index: 2;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(217,138,61,0.7); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217,138,61,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(217,138,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(217,138,61,0); }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  padding: 0.7rem 0;
  animation: scroll-x 26s linear infinite;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee-track span::after { content: "✶"; color: var(--amber); }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-alt { background: var(--paper-warm); }

/* ---------- Recording spaces (TABS) ---------- */
.spaces-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  align-items: start;
}
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.4rem;
  background: var(--ink);
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.segmented button {
  border: 0;
  background: transparent;
  color: rgba(245,241,234,0.7);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.segmented button[aria-selected="true"] {
  background: var(--amber);
  color: var(--ink);
}
.space-panel { display: none; animation: fade 0.4s ease; }
.space-panel.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.space-panel h3 { font-size: 1.55rem; margin-bottom: 0.7rem; }
.space-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.7rem; }
.space-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.96rem; }
.space-list li::before { content: "—"; color: var(--amber-deep); font-weight: 700; }
.spaces-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.spaces-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 380px; }
.space-chip {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(19,16,25,0.82);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

/* ---------- Demo workflow (PROCESS TIMELINE) ---------- */
.timeline {
  display: grid;
  gap: 0;
  counter-reset: step;
  margin-top: 1rem;
}
.timeline-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.timeline-row:last-child { border-bottom: 1px solid var(--line); }
.timeline-num {
  counter-increment: step;
  font-family: var(--serif);
  font-size: 1.7rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  position: relative;
  background: var(--paper);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.timeline-num::before { content: counter(step, decimal-leading-zero); }
.timeline-row:hover .timeline-num { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.timeline-body h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.timeline-body p { color: var(--muted); margin: 0; }
.timeline-flag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-deep); }
.workflow-shell { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.workflow-aside {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.workflow-aside img { width: 100%; min-height: 420px; object-fit: cover; }

/* ---------- Gear-neutral cards (BENTO + HOVER REVEAL) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1rem;
}
.bento-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-warm);
  padding: 1.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.bento-card h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.bento-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.bento-tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: auto; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; color: var(--paper); border: 0; }
.bento-tall .bento-tag { color: var(--amber); }
.bento-tall p { color: rgba(245,241,234,0.78); }
.bento-media { position: absolute; inset: 0; }
.bento-media img { width: 100%; height: 100%; object-fit: cover; }
.bento-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,16,25,0.15), rgba(19,16,25,0.78)); }
.bento-tall > .bento-tag, .bento-tall > h3, .bento-tall > p { position: relative; z-index: 2; }

/* hover-reveal */
.reveal-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.5rem;
  overflow: hidden;
}
.reveal-card .reveal-extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.3s ease;
  color: var(--muted);
  font-size: 0.9rem;
}
.reveal-card:hover .reveal-extra, .reveal-card:focus-within .reveal-extra {
  max-height: 140px;
  opacity: 1;
  margin-top: 0.7rem;
}
.reveal-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--amber), var(--rose));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
}
.reveal-card:hover::before, .reveal-card:focus-within::before { transform: scaleY(1); }

/* ---------- Signature: music room map (no fake address) ---------- */
.roommap-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.roomplan {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, var(--line) 31px 32px),
    var(--paper-warm);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.room {
  position: absolute;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: rgba(245,241,234,0.7);
  padding: 0.6rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.25s, color 0.25s;
  cursor: default;
}
.room small { display: block; font-size: 0.58rem; color: var(--muted); margin-top: 0.2rem; letter-spacing: 0.04em; }
.room:hover { background: var(--ink); color: var(--paper); }
.room:hover small { color: rgba(245,241,234,0.7); }
.room.r-live { left: 6%; top: 8%; width: 42%; height: 46%; }
.room.r-control { right: 6%; top: 8%; width: 40%; height: 30%; }
.room.r-vocal { right: 6%; top: 44%; width: 40%; height: 24%; }
.room.r-edit { left: 6%; bottom: 8%; width: 40%; height: 32%; }
.room.r-lounge { right: 6%; bottom: 8%; width: 40%; height: 24%; }
.roommap-info .legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  background: var(--paper);
  margin-top: 1.4rem;
}
.roommap-info dl { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1.2rem; margin: 0; font-size: 0.95rem; }
.roommap-info dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); align-self: center; }
.roommap-info dd { margin: 0; font-weight: 500; }
.note-line { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.8rem; max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.15rem 1.4rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
}
.faq-q .plus { font-family: var(--sans); font-size: 1.4rem; transition: transform 0.3s; color: var(--amber-deep); flex-shrink: 0; }
.faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  align-items: start;
}
.contact-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.contact-media img { width: 100%; height: 100%; object-fit: cover; min-height: 460px; }
.contact-card-overlay {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(19,16,25,0.85);
  backdrop-filter: blur(6px);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.contact-card-overlay h3 { color: var(--paper); font-size: 1.2rem; margin-bottom: 0.4rem; }
.contact-card-overlay a { color: var(--amber); text-decoration: none; font-weight: 600; }
.contact-card-overlay p { font-size: 0.9rem; color: rgba(245,241,234,0.8); margin: 0.3rem 0 0; }

form { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: 0.35rem; font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
input, textarea, select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--amber-deep); box-shadow: 0 0 0 3px rgba(217,138,61,0.18); }
textarea { min-height: 130px; resize: vertical; }
.form-consent { font-size: 0.8rem; color: var(--muted); display: flex; gap: 0.6rem; align-items: flex-start; }
.form-consent input { margin-top: 0.2rem; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-status { font-size: 0.9rem; font-weight: 600; color: var(--teal); min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: rgba(245,241,234,0.82); padding: clamp(2.5rem,5vw,4rem) 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-foot h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245,241,234,0.5); margin: 0 0 1rem; }
.site-foot a { color: rgba(245,241,234,0.82); text-decoration: none; }
.site-foot a:hover { color: var(--amber); }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; font-size: 0.92rem; }
.foot-brand p { font-size: 0.92rem; max-width: 38ch; color: rgba(245,241,234,0.66); }
.foot-legal {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(245,241,234,0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  font-size: 0.8rem;
  color: rgba(245,241,234,0.55);
  justify-content: space-between;
}
.foot-legal .ids { display: flex; flex-wrap: wrap; gap: 1.2rem; font-family: var(--mono); letter-spacing: 0.04em; }

/* ---------- Legal pages ---------- */
.legal-main { padding: clamp(2.5rem,6vw,4.5rem) 0; }
.legal-main .wrap { max-width: 820px; }
.legal-main h1 { font-size: clamp(2rem,4vw,3rem); margin-bottom: 0.6rem; }
.legal-main h2 { font-size: 1.4rem; margin: 2.4rem 0 0.8rem; }
.legal-main p, .legal-main li { color: var(--ink-soft); }
.legal-main ul { padding-left: 1.2rem; }
.legal-updated { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.legal-toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.5rem; margin: 1.6rem 0; background: var(--paper-warm); }
.legal-toc ol { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.legal-toc a { color: var(--amber-deep); }

/* ---------- Misc ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem,4vw,3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 { color: var(--paper); font-size: clamp(1.6rem,3vw,2.3rem); max-width: 22ch; }
.cta-band .btn { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .spaces-shell, .workflow-shell, .roommap-shell, .contact-shell { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-tall { grid-row: span 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; right: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.4rem; box-shadow: var(--shadow); }
  .menu-toggle { display: inline-flex; }
  .head-row { position: relative; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
