/* Teatro Smeraldo — identità visiva */
:root {
  --ink: #0b1210;
  --velvet: #06110e;
  --emerald: #0e4a3a;
  --emerald-mid: #167056;
  --emerald-bright: #1f8a6a;
  --gold: #c9a46a;
  --gold-soft: #e8d5a3;
  --cream: #f4eadc;
  --paper: #faf6ee;
  --muted: #8b938c;
  --line: rgba(201, 164, 106, 0.28);
  --shadow: 0 24px 60px rgba(6, 17, 14, 0.28);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --max: 1180px;
  --header-h: 112px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream);
  background-color: #050c0a;
  background-image:
    radial-gradient(120% 90% at 0% 8%, rgba(110, 22, 36, 0.42), transparent 52%),
    radial-gradient(90% 80% at 100% 0%, rgba(14, 74, 58, 0.38), transparent 48%),
    repeating-linear-gradient(
      88deg,
      rgba(255, 255, 255, 0.045) 0px,
      rgba(255, 255, 255, 0) 10px,
      rgba(0, 0, 0, 0.22) 22px,
      rgba(255, 255, 255, 0.02) 34px,
      transparent 52px
    );
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.5rem; }

.lede {
  font-size: 1.12rem;
  color: rgba(244, 234, 220, 0.78);
  max-width: 42rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  transition: 0.25s ease;
  cursor: pointer;
}
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
}
.btn-ghost:hover { background: var(--gold); color: var(--ink); }
.btn-dark {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--cream);
}
.btn-dark:hover { background: var(--emerald-mid); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.solid {
  background: rgba(6, 17, 14, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  padding: 0;
}
.brand img { width: auto; height: auto; }
.logo-smeraldo {
  width: auto !important;
  height: 92px !important;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(250, 246, 238, 0.4)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}
.site-footer .brand {
  display: inline-flex;
}
.site-footer .logo-smeraldo {
  height: 148px !important;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.brand-text span {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav a { opacity: 0.82; position: relative; }
.nav a:hover,
.nav a.is-active { opacity: 1; color: var(--gold-soft); }
.nav-cta { margin-left: 8px; padding: 10px 16px !important; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  margin: 5px auto;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--velvet);
  padding: 32px 24px;
  z-index: 49;
  flex-direction: column;
  gap: 22px;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mobile-nav.open { display: flex; }

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 72px;
}
.hero-bg {
  position: absolute;
  inset: -6%;
  background:
    linear-gradient(165deg, rgba(14,74,58,0.28) 0%, rgba(6,17,14,0.18) 38%, rgba(6,17,14,0.92) 100%),
    url("../img/teatro-hero.jpg") center 40%/cover no-repeat;
  animation: heroDrift 28s ease-in-out infinite alternate;
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(201, 164, 106, 0.28), transparent 46%),
    radial-gradient(ellipse at 88% 78%, rgba(31, 138, 106, 0.32), transparent 42%);
  animation: wash 10s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-2.4%, -2%, 0); }
}
@keyframes wash {
  from { opacity: 0.55; }
  to { opacity: 1; }
}
.hero-ornament {
  position: absolute;
  inset: 18px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 {
  max-width: none;
  font-size: clamp(2.4rem, 6.2vw, 5.2rem);
}
.hero-content > .kicker {
  color: var(--cream);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
.hero-content > .kicker::before {
  background: var(--gold);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.next-show {
  margin-top: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  max-width: 760px;
}
.next-show .date-block { color: var(--gold); }
.next-show h3 { font-size: 1.7rem; }
.next-show p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }

.date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
  line-height: 1;
}
.date-block .day {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
}
.date-block .month {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  margin-top: 6px;
}
.date-block .dow {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Season strip */
.season-strip {
  background: var(--emerald);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.season-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.season-track::-webkit-scrollbar { display: none; }
.season-item {
  flex: 0 0 auto;
  padding: 22px 32px;
  border-right: 1px solid rgba(232, 213, 163, 0.15);
  min-width: 220px;
}
.season-item small {
  display: block;
  color: var(--gold-soft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
}
.season-item strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
}

/* Sections */
.section {
  position: relative;
  isolation: isolate;
  padding: 88px 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(110, 24, 36, 0.26), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(22, 112, 86, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(5, 12, 10, 0.78) 0%, rgba(10, 24, 20, 0.86) 50%, rgba(5, 12, 10, 0.82) 100%);
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background: repeating-linear-gradient(
    92deg,
    transparent 0 26px,
    rgba(0, 0, 0, 0.28) 38px,
    transparent 54px,
    rgba(255, 255, 255, 0.035) 70px
  );
}
.section > .wrap { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero::after { animation: none; }
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}
.section-light {
  background: linear-gradient(180deg, #faf6ee 0%, #f0e6d4 50%, #faf6ee 100%);
  color: var(--ink);
}
.section-light::before { display: none; }
.section-light .lede,
.section-light p { color: #3d4742; }
.section-light .kicker { color: var(--emerald-mid); }
.section-light .kicker::before { background: var(--emerald-mid); }
.section-emerald { background: var(--emerald); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.split img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  filter: saturate(0.9);
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split.reverse img { order: -1; }

/* Event cards */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.event-card {
  background: #0d1b17;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, border-color 0.25s;
}
.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.event-card .poster {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}
.event-card .body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.event-card h3 { font-size: 1.55rem; }
.event-card .excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.event-row {
  display: grid;
  grid-template-columns: 90px 140px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.event-row img {
  width: 140px;
  height: 180px;
  object-fit: cover;
}
.event-row .when { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
.event-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.event-actions .btn { white-space: nowrap; }

/* Page hero */
.page-hero {
  padding: calc(var(--header-h) + 72px) 0 56px;
  background:
    linear-gradient(165deg, rgba(14,74,58,0.45), rgba(6,17,14,0.88)),
    url("../img/teatro-hero.jpg") center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.logo-ard {
  height: 78px;
  width: auto;
  margin: 0 0 22px;
  background: #faf6ee;
  padding: 12px 18px;
  border-radius: 8px;
  filter: none;
}
.page-hero.compagnia {
  background-image:
    linear-gradient(165deg, rgba(14, 74, 58, 0.22) 0%, rgba(6, 17, 14, 0.42) 48%, rgba(6, 17, 14, 0.78) 100%),
    url("../img/compagnia-palco.jpg");
  background-size: cover;
  background-position: center 28%;
}

/* Info cards / parking */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.info-card {
  border: 1px solid var(--line);
  padding: 22px;
  background: rgba(14, 74, 58, 0.25);
  transition: border-color 0.2s, transform 0.2s;
}
a.info-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.info-card strong { display: block; font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 6px; }
.info-card span { color: var(--muted); font-size: 0.92rem; }

/* Members */
.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.member {
  border: 1px solid var(--line);
  padding: 22px 18px;
  background: #0d1b17;
}
.member .role {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 8px;
}
.member p {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin: 10px 0 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; }
.contact-list a:hover { color: var(--gold-soft); }

form.contact-form,
form.rent-form {
  display: grid;
  gap: 14px;
}
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: #0d1b17;
  border: 1px solid var(--line);
  color: var(--cream);
  padding: 12px 14px;
  font-size: 1rem;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.map-embed {
  width: 100%;
  height: 360px;
  border: 0;
  filter: grayscale(0.4) contrast(1.05);
  margin-top: 32px;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  margin-top: 20px;
}

/* Footer */
.site-footer {
  background: #040a08;
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer a:hover { color: var(--gold-soft); }
.socials {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
.socials a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.legal {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Single show */
.show-hero {
  padding: calc(var(--header-h) + 48px) 0 48px;
}
.show-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: start;
}
.show-layout .poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.facts div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.facts small {
  display: block;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
}

.produzioni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.prod-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  background: #0d1b17;
  overflow: hidden;
}
.teatro-carousel .ts-carousel-track img {
  height: min(72vh, 680px) !important;
  object-fit: contain !important;
  object-position: center;
  background: #0d1b17;
}
.prod-card-body {
  padding: 16px 18px 20px;
  display: block;
}
.prod-card-body .btn { margin-top: 12px; }
.prod-card-body p {
  margin: 8px 0 0;
  color: #3d4742;
  font-size: 0.92rem;
}
.section:not(.section-light) .prod-card-body p,
.prod-card-body p { color: var(--muted); }
.section-light .prod-card-body p { color: #3d4742; }

.ts-carousel {
  position: relative;
  overflow: hidden;
  background: #0d1b17;
}
.ts-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}
.ts-carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.prod-card .ts-carousel-track img { height: 260px; }
.ts-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  background: rgba(6, 17, 14, 0.7);
  color: var(--gold);
  cursor: pointer;
  z-index: 2;
}
.ts-carousel-btn.prev { left: 12px; }
.ts-carousel-btn.next { right: 12px; }
.ts-carousel-btn.prev::before { content: "‹"; font-size: 28px; line-height: 1; }
.ts-carousel-btn.next::before { content: "›"; font-size: 28px; line-height: 1; }
.teatro-carousel .ts-carousel {
  border: 1px solid var(--line);
}

.member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 12px;
}
.values {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.values li {
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 14px;
  letter-spacing: 0.06em;
}

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .split,
  .split.reverse,
  .event-grid,
  .event-row,
  .info-grid,
  .member-grid,
  .contact-grid,
  .show-layout,
  .footer-grid,
  .produzioni-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
  .split.reverse img { order: 0; }
  .split img { height: 320px; }
  .next-show { grid-template-columns: 1fr; }
  .event-row img { width: 100%; height: 240px; }
  .event-actions { flex-direction: row; flex-wrap: wrap; }
  .show-layout .poster { max-width: 320px; }
  :root { --header-h: 88px; }
  .logo-smeraldo { height: 68px !important; }
  .site-footer .logo-smeraldo { height: 110px !important; }
}
