/* ===========================
   Sala Teatro Massimo Troisi
   Stylesheet — tema teatrale scuro/oro
   =========================== */

:root {
  --bg: #0b0706;
  --bg-alt: #120c0a;
  --bg-card: #17100e;
  --gold: #d6a14a;
  --gold-light: #f0bd65;
  --text: #ffffff;
  --text-dim: rgba(255,255,255,.68);
  --text-dimmer: rgba(255,255,255,.55);
  --border: rgba(255,255,255,.1);
  --max-width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, .brand, blockquote {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 6vw;
}

@media (min-width: 1300px) {
  .container { padding: 0 2rem; }
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 50;
  padding: 20px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11,7,6,.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  letter-spacing: .02em;
  color: var(--text);
}

.logo-text span { color: var(--gold); }

@media (max-width: 480px) {
  .logo-text { font-size: .95rem; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: .03em;
  transition: color .2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: .25s ease;
}

.btn-primary {
  background: var(--gold);
  color: #111;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.28);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--text);
  color: #111;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 130px 6vw 70px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11,7,6,.92) 43%, rgba(11,7,6,.4) 100%),
    radial-gradient(circle at 75% 35%, rgba(214,161,74,.22), transparent 34%),
    var(--hero-img, url('https://images.unsplash.com/photo-1503095396549-807759245b35?auto=format&fit=crop&w=1800&q=80')) center/cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 38%);
}

.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero h1 {
  font-size: clamp(42px, 7vw, 84px);
  margin-top: 22px;
  color: var(--text);
}

.hero .lead {
  margin-top: 22px;
  font-size: clamp(20px, 2.6vw, 28px);
  color: rgba(255,255,255,.86);
  max-width: 680px;
}

.hero .body-text {
  margin-top: 20px;
  color: var(--text-dim);
  max-width: 600px;
  font-size: 17px;
}

.hero .buttons { margin-top: 38px; }

.page-hero {
  min-height: 50vh;
  padding: 150px 6vw 60px;
}

/* ---------- Sections ---------- */
section { padding: 100px 6vw; }
.dark-alt { background: var(--bg-alt); }

.section-head {
  max-width: var(--max-width);
  margin: 0 auto 44px;
}

.section-head.center { text-align: center; max-width: 760px; }

.section-head h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.8;
}

/* ---------- Two-column layout ---------- */
.grid-2 {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.portrait {
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--portrait-img, #1d1410) center/cover;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.text p {
  color: var(--text-dim);
  margin-top: 18px;
  font-size: 16px;
}

blockquote {
  margin-top: 30px;
  padding-left: 22px;
  border-left: 4px solid var(--gold);
  color: rgba(255,255,255,.92);
  font-size: 24px;
  line-height: 1.3;
}

/* ---------- Notice banner ---------- */
.notice {
  max-width: var(--max-width);
  margin: 0 auto 50px;
  background: rgba(214,161,74,.1);
  border: 1px solid rgba(214,161,74,.4);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
}

.notice strong {
  display: block;
  color: var(--gold);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.notice, .notice a { color: rgba(255,255,255,.85); }
.notice a { text-decoration: underline; }

/* ---------- Cards ---------- */
.cards {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: .3s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(214,161,74,.75);
}

.card-img {
  height: 260px;
  background-size: cover;
  background-position: center;
  background-color: #1d1410;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dimmer);
  font-size: .8rem;
  text-align: center;
  transition: .5s ease;
}

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

.card-content { padding: 24px; }
.card-content .meta {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
}
.card-content h3 { font-size: 1.4rem; margin-top: 8px; }
.card-content p { margin-top: 12px; color: var(--text-dimmer); font-size: .9rem; }

/* ---------- Gallery grid ---------- */
.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 1/1;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  background-color: #1d1410;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dimmer);
  font-size: .8rem;
  overflow: hidden;
  transition: .3s ease;
}

.gallery-item:hover { transform: scale(1.03); border-color: rgba(214,161,74,.6); }

/* ---------- Contact CTA ---------- */
.contact-cta {
  background: var(--gold);
  color: #111;
  text-align: center;
}

.contact-cta h2 { color: #111; }
.contact-cta p { color: rgba(0,0,0,.68); margin-top: 18px; font-size: 18px; }
.contact-cta .buttons { justify-content: center; margin-top: 32px; }
.contact-cta .btn-secondary { border-color: #111; color: #111; }
.contact-cta .btn-secondary:hover { background: #111; color: var(--gold); }
.contact-cta .btn-primary { background: #111; color: var(--gold); }
.contact-cta .btn-primary:hover { background: #2a2018; }

/* ---------- Contact page ---------- */
.contact-info ul { list-style: none; margin-top: 1.2rem; }
.contact-info li {
  margin-bottom: 1rem;
  padding-left: 1.6rem;
  position: relative;
  color: var(--text-dim);
}
.contact-info li::before {
  content: "\2022";
  color: var(--gold);
  font-weight: 700;
  position: absolute;
  left: 0;
}
.contact-info li strong { color: var(--text); }

.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 18px;
  filter: grayscale(0.3) contrast(1.1);
}

.social-links { display: flex; gap: 12px; margin-top: 1.2rem; flex-wrap: wrap; }
.social-links a {
  border: 1px solid var(--border);
  color: var(--text);
  padding: .65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  transition: .2s ease;
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); }

.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text-dim);
  font-size: .9rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-note { font-size: .85rem; color: var(--text-dimmer); margin-top: .8rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #070403;
  padding: 60px 6vw 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  color: var(--text-dimmer);
}

.footer-grid h3 { color: var(--text); font-size: 1.3rem; }
.footer-grid h4 {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  margin-bottom: 14px;
}
.footer-grid p { margin-top: 10px; font-size: .9rem; }
.footer-grid a { color: var(--text-dimmer); }
.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .82rem;
  color: var(--text-dimmer);
}

/* ---------- Animation ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp .8s ease both; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(11,7,6,.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem 6vw 1.2rem; }
  .main-nav li { border-top: 1px solid var(--border); }
  .main-nav a { display: block; padding: .9rem 0; }

  .grid-2, .cards, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .portrait { min-height: 360px; }
  section { padding: 70px 6vw; }
  .hero { padding: 120px 6vw 60px; }
}
