/* ============================================
   Infinita Conscia Symphony Orchestra
   Stylesheet
   Palette faithful to original:
     background #000 (black)
     primary    #fff8dc (cornsilk)
     accent     #d2b48c (tan) - copyright
     accent2    #cccccc (light gray) - bookmarks heading
   Typography: Times New Roman / Georgia (as original)
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  color: #fff8dc;
  font-family: 'Times New Roman', Georgia, Times, serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #fff8dc;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
  color: #ffffe0;
}

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

em, i { font-style: italic; }
strong, b { font-weight: bold; }

/* ============================================
   Navigation
   ============================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 248, 220, 0.2);
  padding: 0.8rem 2rem;
}

nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff8dc;
}

nav .nav-brand img {
  width: 48px;
  height: auto;
  display: block;
}

nav .nav-brand .brand-text {
  font-family: 'Times New Roman', Georgia, Times, serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff8dc;
}

nav .nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

nav .nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d8cfa8;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: #fff8dc;
  border-bottom-color: #d2b48c;
}

nav .nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #d8cfa8;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem;
}

/* ============================================
   Main Content
   ============================================ */
main {
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
  width: 100%;
  text-align: center;
}

/* Home hero (luna).
   No overflow clipping: the moon is a spherical object on black,
   same as the page background, so we let it scale freely without
   a container frame that would crop its edges. */
.home-hero {
  margin: 2rem auto 3rem;
  max-width: 460px;
  text-align: center;
  /* Leave vertical breathing room so the scaled-up image never
     visually crowds the elements above/below. */
  padding: 1.5rem 0;
}

.home-hero img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transform-origin: center center;
  animation: kenburns 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenburns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero img {
    animation: none;
  }
}

/* Brand scritta grande / piccola */
.brand-scritta-grande,
.brand-scritta-piccola {
  margin: 2.5rem auto;
  text-align: center;
}

.brand-scritta-grande img {
  max-width: 612px;
  width: 100%;
  margin: 0 auto;
}

.brand-scritta-piccola img {
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
  opacity: 0.95;
}

/* Generic page image */
.page-image {
  margin: 2rem auto;
  text-align: center;
}

.page-image img {
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.page-image.puntale img { max-width: 454px; }
.page-image.egitto img { max-width: 280px; }
.page-image.energy img { max-width: 460px; }
.page-image.riccioloblu img { max-width: 340px; }

/* Orchestra / text blocks */
.orchestra-intro {
  max-width: 720px;
  margin: 2.5rem auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #fff8dc;
  font-family: 'Times New Roman', Georgia, Times, serif;
}

.orchestra-intro p {
  margin-bottom: 1.2rem;
}

.director {
  margin: 2.5rem auto 1rem;
  font-size: 1.05rem;
  color: #fff8dc;
  letter-spacing: 0.03em;
}

.contact-block {
  margin: 2rem auto 3rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #fff8dc;
}

.contact-block a {
  color: #fff8dc;
  border-bottom: 1px solid rgba(210, 180, 140, 0.45);
  padding-bottom: 2px;
}

.contact-block a:hover {
  color: #ffffe0;
  border-bottom-color: #ffffe0;
}

/* Recordings page (energy journeys) */
.recording-details {
  max-width: 640px;
  margin: 2rem auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.recording-details .title {
  font-size: 1.3rem;
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: #fff8dc;
}

.recording-details .subtitle {
  font-size: 1rem;
  color: #d8cfa8;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.recording-details .meta {
  margin-top: 0.6rem;
  color: #e8dcb0;
}

.recording-details sup {
  font-size: 0.65em;
  vertical-align: super;
}

.external-link {
  margin: 2.5rem auto 1rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.external-link .label {
  color: #d8cfa8;
  margin-bottom: 0.4rem;
  font-style: italic;
}

.external-link a {
  color: #fff8dc;
  border-bottom: 1px solid rgba(210, 180, 140, 0.45);
  padding-bottom: 2px;
}

.external-link a:hover {
  color: #ffffe0;
  border-bottom-color: #ffffe0;
}

/* Bookmarks page */
.page-title {
  margin: 1.5rem auto 2rem;
}

.page-title h1 {
  font-family: 'Times New Roman', Georgia, Times, serif;
  font-size: 2.3rem;
  font-weight: normal;
  color: #cccccc;
  letter-spacing: 0.04em;
}

.bookmarks-intro {
  max-width: 640px;
  margin: 1rem auto 2.5rem;
  font-size: 1.1rem;
  font-style: italic;
  color: #d8cfa8;
  letter-spacing: 0.02em;
}

.bookmarks-grid {
  max-width: 900px;
  margin: 2rem auto 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2rem;
  text-align: left;
  font-family: 'Times New Roman', Georgia, Times, serif;
}

.bookmarks-grid .bm-name {
  font-size: 1.05rem;
  color: #fff8dc;
  padding: 0.35rem 0;
  text-align: right;
}

.bookmarks-grid .bm-link {
  font-size: 1.05rem;
  padding: 0.35rem 0;
  text-align: left;
  word-break: break-word;
}

.bookmarks-grid .bm-link a {
  color: #fff8dc;
  border-bottom: 1px solid rgba(210, 180, 140, 0.35);
  padding-bottom: 2px;
}

.bookmarks-grid .bm-link a:hover {
  color: #ffffe0;
  border-bottom-color: #ffffe0;
}

/* Section divider */
.section-divider {
  width: 80px;
  height: 1px;
  background: rgba(210, 180, 140, 0.35);
  margin: 2.5rem auto;
  border: none;
}

/* ============================================
   Footer
   ============================================ */
footer {
  border-top: 1px solid rgba(210, 180, 140, 0.18);
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
}

footer .footer-logo {
  margin: 0 auto 1.2rem;
  max-width: 340px;
  opacity: 0.9;
}

footer .footer-logo img {
  margin: 0 auto;
}

footer p {
  font-size: 0.72rem;
  color: #d2b48c;
  line-height: 1.9;
  letter-spacing: 0.02em;
  font-family: 'Times New Roman', Georgia, Times, serif;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  nav {
    padding: 0.7rem 1rem;
  }

  nav .nav-toggle {
    display: block;
  }

  nav .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
    padding-top: 0.8rem;
    align-items: flex-start;
  }

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

  nav .nav-links a {
    font-size: 0.9rem;
    padding: 0.4rem 0;
    width: 100%;
  }

  nav .nav-brand .brand-text {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
  }

  nav .nav-brand img {
    width: 40px;
  }

  main {
    padding: 2rem 1.2rem;
  }

  .home-hero {
    max-width: 90%;
  }

  .page-title h1 {
    font-size: 1.7rem;
  }

  .bookmarks-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-width: 420px;
  }

  .bookmarks-grid .bm-name {
    text-align: center;
    padding-bottom: 0;
    font-weight: bold;
  }

  .bookmarks-grid .bm-link {
    text-align: center;
    padding-top: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(210, 180, 140, 0.1);
  }

  .bookmarks-grid .bm-link:last-child {
    border-bottom: none;
  }

  .orchestra-intro {
    font-size: 1rem;
  }

  .recording-details {
    font-size: 0.98rem;
  }

  .recording-details .title {
    font-size: 1.15rem;
  }

  footer {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 1.5rem 1rem;
  }

  .page-title h1 {
    font-size: 1.4rem;
  }

  .brand-scritta-grande img {
    max-width: 100%;
  }

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

  nav .nav-brand .brand-text {
    font-size: 0.75rem;
  }

  footer p {
    font-size: 0.7rem;
  }
}
