/* ============================================================
   ROSANNA BALZARINI "ROSS" - Memorial Website
   Elegant, minimal design with warm ivory tones & burgundy accents
   ============================================================ */

/* ----------------------------------------------------------
   DESIGN TOKENS (Custom Properties)
   ---------------------------------------------------------- */
:root {
  --bg-primary: #FDFAF6;
  --bg-alt: #F5F0E8;
  --white: #FFFFFF;
  --dark: #0A0A0A;
  --text-primary: #1A1A1A;
  --text-secondary: #6B6B6B;
  --text-muted: #999999;
  --accent: #6B2D3C;
  --accent-light: #8B4A5A;
  --border: #E5DDD3;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
}

/* ----------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
  outline: none;
}

/* ----------------------------------------------------------
   HEADER
   ---------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-primary);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-primary);
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text-primary);
  font-weight: 500;
}

/* Hamburger menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 28px;
  height: 28px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ----------------------------------------------------------
   HERO
   ---------------------------------------------------------- */
.hero {
  background-color: var(--bg-primary);
}

.hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px;
  display: flex;
  flex-direction: row;
  gap: 80px;
  align-items: center;
  min-height: 700px;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 300;
  letter-spacing: 6px;
  color: var(--text-primary);
  line-height: 1.05;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
}

.hero-description {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 440px;
}

.hero-cta {
  display: inline-block;
  padding: 16px 36px;
  background-color: var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.hero-cta:hover {
  background-color: var(--accent-light);
}

.hero-image {
  width: 500px;
  height: 540px;
  flex-shrink: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  background-color: var(--bg-alt);
}

/* ----------------------------------------------------------
   INTRO
   ---------------------------------------------------------- */
.intro {
  background-color: var(--white);
}

.intro-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.intro-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.intro-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1.2;
}

.intro-divider {
  width: 40px;
  height: 1px;
  background-color: var(--border);
}

.intro-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 700px;
}

/* ----------------------------------------------------------
   LIBRO
   ---------------------------------------------------------- */
.libro {
  background-color: var(--bg-alt);
}

.libro-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 80px;
  display: flex;
  flex-direction: row;
  gap: 80px;
  align-items: center;
}

.libro-image {
  width: 400px;
  height: 520px;
  flex-shrink: 0;
}

.libro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.libro-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.libro-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.libro-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1.2;
}

.libro-divider {
  width: 40px;
  height: 1px;
  background-color: var(--border);
}

.libro-description {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 500px;
}

.libro-cta {
  display: inline-block;
  padding: 16px 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.libro-cta:hover {
  background-color: var(--accent);
  color: var(--white);
}

/* ----------------------------------------------------------
   OPERE (Works Gallery)
   ---------------------------------------------------------- */
.opere {
  background-color: var(--white);
}

.opere-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.opere-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.opere-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.opere-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1.2;
}

.opere-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
}

.opere-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.opera-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease;
}

.opera-card:hover {
  transform: translateY(-4px);
}

.opera-card-image {
  width: 100%;
  height: 340px;
  overflow: hidden;
}

.opera-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.opera-card:hover .opera-card-image img {
  transform: scale(1.03);
}

.opera-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opera-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}

.opera-card-meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}

.opere-cta {
  display: inline-block;
  padding: 16px 36px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.opere-cta:hover {
  background-color: var(--accent);
  color: var(--white);
}

/* ----------------------------------------------------------
   CONTATTI (Contact)
   ---------------------------------------------------------- */
.contatti {
  background-color: var(--bg-alt);
}

.contatti-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 80px;
  display: flex;
  flex-direction: row;
  gap: 80px;
}

.contatti-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contatti-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.contatti-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1.2;
}

.contatti-divider {
  width: 40px;
  height: 1px;
  background-color: var(--border);
}

.contatti-description {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contatti-detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contatti-detail-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contatti-detail-value {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
}

.contatti-detail-value:hover {
  color: var(--accent);
}

/* Contact form */
.contatti-form {
  flex: 1;
  background-color: var(--white);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.form-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  transition: border-color 0.3s ease;
}

.form-field input:focus {
  border-color: var(--accent);
}

.form-field textarea {
  width: 100%;
  height: 120px;
  padding: 16px;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.form-field textarea:focus {
  border-color: var(--accent);
}

.form-submit {
  width: 100%;
  height: 48px;
  background-color: var(--accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

.form-submit:hover {
  background-color: var(--accent-light);
}

.form-success {
  background-color: #DFE6E1;
  padding: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
}

.form-error {
  background-color: #E5DCDA;
  padding: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
}

/* ----------------------------------------------------------
   OPERA DETAIL PAGE
   ---------------------------------------------------------- */

/* Breadcrumb */
.breadcrumb {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 80px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.breadcrumb .separator {
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Opera detail layout */
.opera-detail {
  background-color: var(--bg-primary);
}

.opera-detail-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 80px;
  display: flex;
  flex-direction: row;
  gap: 80px;
}

.opera-image {
  width: 720px;
  height: 560px;
  flex-shrink: 0;
}

.opera-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opera-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.opera-info-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.opera-info-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--text-primary);
  line-height: 1.2;
}

.opera-info-divider {
  width: 40px;
  height: 1px;
  background-color: var(--accent);
}

.opera-info-description {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}
.opera-info-description ul,
.opera-info-description ol {
  margin-left: 20px;
  margin-bottom: 8px;
}
.opera-info-description a {
  color: var(--accent);
  text-decoration: underline;
}
.opera-info-description a:hover {
  color: var(--accent-light);
}
.opera-info-description p {
  margin-bottom: 8px;
}
.opera-info-description p:last-child {
  margin-bottom: 0;
}

/* Opera details */
.opera-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
}

.opera-detail-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
}

.opera-detail-label {
  width: 120px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.opera-detail-value {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
}

.opera-detail-value.accent {
  color: var(--accent);
}

/* ----------------------------------------------------------
   OPERA NAV (Prev/Next Navigation)
   ---------------------------------------------------------- */
.opera-nav {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.opera-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 80px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.opera-nav-link {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.opera-nav-link:hover {
  opacity: 0.7;
}

.opera-nav-link-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opera-nav-arrow {
  font-size: 18px;
  color: var(--text-secondary);
}

.opera-nav-next .opera-nav-link-text {
  text-align: right;
}

.opera-nav-placeholder {
  min-width: 100px;
}

.opera-nav-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.opera-nav-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ----------------------------------------------------------
   OTHER OPERE (Related Works)
   ---------------------------------------------------------- */
.other-opere {
  background-color: var(--white);
}

.other-opere-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.other-opere-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.other-opere-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--text-primary);
}

.other-opere-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.other-opere-link:hover {
  color: var(--accent-light);
}

.other-opere-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Cards in other-opere reuse opera-card styles */
.other-opere-grid .opera-card-image {
  height: 280px;
}

.other-opere-grid .opera-card-title {
  font-size: 18px;
}

/* ----------------------------------------------------------
   FOOTER
   ---------------------------------------------------------- */
.footer {
  background-color: var(--dark);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 3px;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: #CCCCCC;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--white);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: #333333;
}

.footer-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: #777777;
}

.footer-credit {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: #777777;
}

.footer-credit a {
  color: #777777;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ----------------------------------------------------------
   RESPONSIVE - Tablet & Mobile (max-width: 768px)
   ---------------------------------------------------------- */
@media (max-width: 768px) {

  /* Header */
  .header-inner {
    padding: 20px 24px;
  }

  .menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .header-nav.nav-open {
    display: flex;
  }

  /* Hero */
  .hero-inner {
    flex-direction: column;
    padding: 40px 24px;
    min-height: auto;
    gap: 40px;
  }

  .hero-title {
    font-size: 48px;
    letter-spacing: 3px;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-image {
    width: 100%;
    height: 300px;
    order: -1;
  }

  /* Intro */
  .intro-inner {
    padding: 60px 24px;
  }

  .intro-title {
    font-size: 32px;
  }

  /* Libro */
  .libro-inner {
    flex-direction: column;
    padding: 60px 24px;
    gap: 40px;
  }

  .libro-image {
    width: 260px;
    height: 340px;
    align-self: center;
  }

  .libro-content {
    align-items: center;
    text-align: center;
  }

  .libro-cta {
    align-self: center;
  }

  /* Opere */
  .opere-inner {
    padding: 60px 24px;
  }

  .opere-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .opera-card-image {
    height: 200px;
  }

  .opera-card-title {
    font-size: 16px;
  }

  /* Contatti */
  .contatti-inner {
    flex-direction: column;
    padding: 60px 24px;
    gap: 40px;
  }

  .contatti-form {
    padding: 32px 24px;
  }

  /* Opera Detail */
  .opera-detail-inner {
    flex-direction: column;
    padding: 32px 24px;
    gap: 40px;
  }

  .opera-image {
    width: 100%;
    height: 300px;
  }

  .opera-detail-label {
    width: 110px;
  }

  /* Breadcrumb */
  .breadcrumb {
    padding: 12px 24px;
  }

  /* Opera Nav */
  .opera-nav-inner {
    padding: 24px;
  }

  /* Other Opere */
  .other-opere-inner {
    padding: 60px 24px;
  }

  .other-opere-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-inner {
    padding: 40px 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE - Small Mobile (max-width: 480px)
   ---------------------------------------------------------- */
@media (max-width: 480px) {

  .hero-title {
    font-size: 40px;
    letter-spacing: 2px;
  }

  .opere-grid {
    grid-template-columns: 1fr;
  }

  .other-opere-grid {
    grid-template-columns: 1fr;
  }

  .other-opere-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
