/* =========================================================
   Bodo · Nicola Valletta
   Direzione: "Il microfono e il palco" (Backstage Theatre + Studio Sound)
   ========================================================= */

:root {
  /* Palette */
  --bg-stage:      #0E0C0B;            /* nero teatro, non pure black */
  --bg-stage-2:    #16110E;            /* gradino sottile per separare sezioni */
  --bg-paper:      #F2EDE3;            /* paper cream caldo per band chiare */
  --bg-paper-2:    #EAE3D5;            /* paper più scuro */

  --fg-stage:      #F2EDE3;            /* testo su stage */
  --fg-stage-mute: #C9BFAF;            /* muted su stage */
  --fg-stage-faint:#8A7E70;            /* faint su stage */

  --fg-paper:      #1A1612;            /* testo su paper */
  --fg-paper-mute: #5C544A;            /* muted su paper */

  --accent:        #FD802E;            /* arancione brand cliente, "luce di scena" */
  --accent-warm:   #FF9651;            /* hover/lighter dell'accent */
  --bordeaux:      #7A1F2B;            /* memoria visiva dell'abito di scena Bodo */
  --bordeaux-deep: #5B141C;
  --night:         #233D4C;            /* blu scuro brand cliente, dettaglio */

  --border-stage:  rgba(242, 237, 227, 0.12);
  --border-paper:  rgba(26, 22, 18, 0.14);

  /* Tipografia */
  --font-display:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body:     "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono:     "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --maxw:          1240px;
  --gutter:        clamp(20px, 5vw, 56px);
  --radius:        14px;
  --radius-sm:     8px;
}

/* ===== Reset minimale ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-stage);
  background: var(--bg-stage);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #000;
  padding: 12px 18px; font-weight: 600; z-index: 9999;
  border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; outline: 2px solid #000; }

/* Focus visibile generico */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}


/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 12, 11, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-stage);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--fg-stage);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.wordmark-b {
  color: var(--accent);
}
.wordmark-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg-stage-mute);
  transition: color .15s ease;
  padding: 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--fg-stage); }

.nav-cta {
  color: var(--fg-stage) !important;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  transition: background .15s ease, color .15s ease;
}
.nav-cta:hover {
  background: var(--accent);
  color: #18120E !important;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-stage);
  border-radius: 10px;
  width: 44px; height: 44px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  width: 20px; height: 2px;
  background: var(--fg-stage);
  border-radius: 1px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border-stage);
  background: rgba(14, 12, 11, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  padding: 16px var(--gutter) 28px;
  gap: 4px;
}
.mobile-menu-inner a {
  text-decoration: none;
  color: var(--fg-stage);
  font-size: 18px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-stage);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-menu-inner a:last-child { border-bottom: none; }
.mobile-cta {
  margin-top: 12px !important;
  border: 1px solid var(--accent) !important;
  border-radius: 999px !important;
  justify-content: center !important;
  color: var(--accent) !important;
  font-weight: 600 !important;
  padding: 14px 24px !important;
}


/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 100px) var(--gutter) clamp(72px, 11vw, 120px);
  background:
    radial-gradient(ellipse 80% 60% at 75% 30%, rgba(253, 128, 46, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 25% 80%, rgba(122, 31, 43, 0.18), transparent 70%),
    var(--bg-stage);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, transparent 0, transparent 95%, rgba(242, 237, 227, 0.04) 95%, rgba(242, 237, 227, 0.04) 100%);
  background-size: 100% 28px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  margin: 0 0 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-stage-mute);
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-tag::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(253, 128, 46, 0.18);
  flex-shrink: 0;
}

.hero-h1 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 7.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--fg-stage);
}
.hero-h1 .line {
  display: block;
}
.hero-h1 .line-accent {
  color: var(--accent);
}

.hero-sub {
  margin: 0 0 32px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: var(--fg-stage-mute);
  max-width: 540px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #18120E;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  min-height: 52px;
  transition: background .15s ease, transform .15s ease;
}
.cta-primary:hover {
  background: var(--accent-warm);
  transform: translateY(-1px);
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--fg-stage);
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  min-height: 52px;
  border: 1px solid var(--border-stage);
  transition: border-color .15s ease, color .15s ease;
}
.cta-ghost:hover {
  border-color: var(--fg-stage-mute);
  color: var(--fg-stage);
}

.hero-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 560px;
}
.hero-marks span {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: rgba(242, 237, 227, 0.06);
  border: 1px solid var(--border-stage);
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-stage-mute);
}

.hero-photo {
  margin: 0;
  position: relative;
}
.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-stage);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55);
  background: var(--bg-stage-2);
}
.hero-photo figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--fg-stage-faint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.005em;
}
.photo-marker {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(253, 128, 46, 0.6); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 6px rgba(253, 128, 46, 0); }
}


/* =========================================================
   BAND (sezioni scure)
   ========================================================= */
.band {
  padding: clamp(56px, 9vw, 110px) var(--gutter);
  background: var(--bg-stage-2);
  border-top: 1px solid var(--border-stage);
}

.band-head {
  max-width: var(--maxw);
  margin: 0 auto clamp(40px, 5vw, 64px);
}
.band-head h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg-stage);
  max-width: 720px;
}
.band-head p {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--fg-stage-mute);
  max-width: 620px;
  line-height: 1.5;
}

.cards {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: var(--bg-stage);
  border: 1px solid var(--border-stage);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover {
  border-color: rgba(253, 128, 46, 0.35);
  transform: translateY(-2px);
}
.card-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--fg-stage);
}
.card-body {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-stage-mute);
}
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--fg-stage-mute);
  line-height: 1.5;
}
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 12px; height: 1px;
  background: var(--accent);
}


/* =========================================================
   PROGETTI (paper section)
   ========================================================= */
.projects {
  padding: clamp(56px, 9vw, 110px) var(--gutter);
  background: var(--bg-paper);
  color: var(--fg-paper);
  border-top: 1px solid var(--border-stage);
}
.projects .band-head h2,
.projects .band-head p {
  color: var(--fg-paper);
}
.projects .band-head h2 { color: var(--fg-paper); }
.projects .band-head p { color: var(--fg-paper-mute); }

.projects-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.project {
  background: var(--bg-paper-2);
  border: 1px solid var(--border-paper);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, border-color .2s ease;
  position: relative;
}
.project:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 31, 43, 0.55);
}
.project-kind {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--bordeaux);
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.project-kind::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--bordeaux);
  display: inline-block;
}
.project-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--fg-paper);
}
.project-body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-paper-mute);
}


/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: clamp(56px, 9vw, 110px) var(--gutter);
  background: var(--bg-stage);
  border-top: 1px solid var(--border-stage);
}

.about-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.about-photo {
  margin: 0;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border-stage);
}

.about-text h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--fg-stage);
}
.about-text p {
  margin: 0 0 18px;
  font-size: clamp(15.5px, 1.9vw, 18px);
  line-height: 1.6;
  color: var(--fg-stage-mute);
}
.about-text p strong {
  color: var(--fg-stage);
  font-weight: 600;
}

.about-facts {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-stage);
}
.about-facts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-facts dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-stage-faint);
  font-weight: 500;
}
.about-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-stage);
}


/* =========================================================
   CONTATTI
   ========================================================= */
.contact {
  padding: clamp(56px, 10vw, 130px) var(--gutter);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(253, 128, 46, 0.12), transparent 70%),
    var(--bg-stage-2);
  border-top: 1px solid var(--border-stage);
  text-align: left;
}

.contact-inner {
  max-width: 900px;
  margin: 0 auto;
}

.contact-h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg-stage);
}
.contact-sub {
  margin: 0 0 44px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--fg-stage-mute);
  line-height: 1.5;
  max-width: 640px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 28px;
  background: rgba(242, 237, 227, 0.04);
  border: 1px solid var(--border-stage);
  border-radius: var(--radius);
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-stage-faint);
  font-weight: 500;
}
.contact-value {
  font-size: 17px;
  font-weight: 500;
  color: var(--fg-stage);
  word-break: break-word;
}
.contact-email {
  color: var(--accent);
}

.contact-note {
  margin: 28px 0 0;
  font-size: 14.5px;
  color: var(--fg-stage-faint);
  font-style: italic;
}


/* =========================================================
   FOOTER
   ========================================================= */
.site-foot {
  padding: 40px var(--gutter) 100px;   /* spazio extra in fondo per non sovrapporsi al badge sticky */
  background: var(--bg-stage);
  border-top: 1px solid var(--border-stage);
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.foot-name {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg-stage);
  font-weight: 500;
}
.foot-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.foot-divider {
  color: var(--fg-stage-faint);
  margin: 0 6px;
}
.foot-copy {
  margin: 0;
  font-size: 13px;
  color: var(--fg-stage-faint);
}


/* =========================================================
   BADGE WEEBY (sticky)
   ========================================================= */
.weeby-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 10, 10, 0.92);
  color: #fff;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, padding 0.25s ease;
  animation: weebyBadgeIn 0.6s ease 1.5s both;
}
.weeby-badge:hover {
  transform: translateY(-2px);
  padding-right: 20px;
}
.weeby-badge img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
}
.weeby-badge .label { color: rgba(255, 255, 255, 0.9); }
.weeby-badge .label strong { color: #fff; font-weight: 700; }
.weeby-badge .cta {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #ffb547;
  font-weight: 600;
  margin-left: -6px;
  transition: max-width 0.3s ease, opacity 0.2s ease 0.05s, margin-left 0.3s ease;
}
.weeby-badge:hover .cta {
  max-width: 200px;
  opacity: 1;
  margin-left: 0;
}
@keyframes weebyBadgeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 36px 40px;
  }
  .about-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 920px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
  }
  .hero-h1 {
    max-width: 100%;
  }
  .about-grid {
    grid-template-columns: 0.85fr 1fr;
    gap: 60px;
  }
  .about-photo img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 20%;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-h1 {
    font-size: clamp(38px, 11vw, 56px);
  }
  .weeby-badge {
    bottom: 14px;
    right: 14px;
    padding: 6px 14px 6px 6px;
    font-size: 12px;
  }
  .weeby-badge img { width: 22px; height: 22px; border-radius: 6px; }
}

/* Riduce motion per chi preferisce */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
