/* Color Palette — WEB 3.0: "Tres actes" */
:root {
  /* Paleta base validada (fixa) */
  --noguera: #160f08;
  --noguera-elev: #20160d;
  --or: #c8923d;
  --garnat: #7a2f1c;
  --marfil: #f1e7d6;
  --vermell: #E52421;
  --sepia: #1a1208;
  --negre: #0d0a08;

  /* Atmosfera dinàmica (la muta el scroll; default = acte II) */
  --bg: var(--noguera);
  --bg-elev: var(--noguera-elev);
  --accent: var(--or);
  --text-primary: var(--marfil);
  --text-secondary: rgba(241, 231, 214, 0.6);
  --hairline: rgba(200, 146, 61, 0.22);

  /* Tipografia */
  --font-head: 'Bodoni Moda', serif;
  --font-body: 'Inter', sans-serif;
  --font-label: 'Inter', sans-serif;

  /* Escala tipogràfica fluida */
  --fs-display: clamp(3.5rem, 12vw, 11rem);
  --fs-act: clamp(3rem, 14vw, 13rem);
  --fs-h2: clamp(2rem, 5vw, 4rem);
  --fs-quote: clamp(1.6rem, 3.5vw, 3rem);
  --fs-body: clamp(1rem, 1.1vw, 1.15rem);

  /* Ritme */
  --pad-section: clamp(5rem, 12vh, 11rem);
  --pad-inline: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1320px;

  /* Snackbar (conservat de main.js) */
  --snackbar-bg: #222;
  --snackbar-success: #4caf50;
  --snackbar-error: #d32f2f;

  /* Aliases de compatibilitat: l'estil editorial conservat (agenda, EPK, contacte,
     peu) encara els usa. Es mantenen com a indirecció als tokens nous. */
  --black: var(--bg);
  --secondary: var(--bg-elev);
  --garnet: var(--garnat);
  --white: #ffffff;
  --red: var(--vermell);
  --border-color: var(--hairline);
  --font-primary: var(--font-body);
  --font-secondary: var(--font-body);
}

/* ===== Fase 3: utilitats d'identitat ===== */

/* Eyebrow / overline label */
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.6s ease, color 0.6s ease;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

/* Cursiva de Bodoni per a èmfasi dins titulars */
.it { font-style: italic; font-weight: 500; }

/* Site Header (web3 "Tres actes") */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px var(--pad-inline);
  background: linear-gradient(180deg, rgba(13,10,8,0.72), transparent);
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease, background 0.3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-solid { background: rgba(13,10,8,0.92); border-bottom: 1px solid var(--hairline); }
.brand-logo { height: 30px; width: auto; display: block; }
.main-nav { display: flex; gap: clamp(14px, 1.6vw, 28px); }
.main-nav a {
  font-family: var(--font-label); font-size: 0.82rem; letter-spacing: 0.02em;
  color: var(--text-primary); text-decoration: none; opacity: 0.82; transition: opacity 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus-visible { opacity: 1; color: var(--accent); }
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch button {
  background: none; border: 0; cursor: pointer; padding: 2px 4px;
  font-family: var(--font-label); font-size: 0.8rem; color: var(--text-secondary); transition: color 0.2s;
}
.lang-switch button.active { color: var(--accent); }
.lang-switch span { color: var(--text-secondary); }
.nav-toggle { display: none; }

/* Hero Section */
/* (Hero web1 antic eliminat — el sistema de hero web3 viu a la secció "Hero — Obertura") */

.cta-btn {
  background: var(--accent);
  color: var(--black);
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 2px;
  font-size: 0.78rem;
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s;
  text-decoration: none;
}

.cta-btn:hover {
  background: var(--text-primary);
  color: var(--black);
}

/* Sections */
.about-section,
.gallery-section,
.contact-section,
.media-section,
.events-section {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.gallery-carousel-section {
  margin-bottom: 2.5rem;
}

.gallery-carousel-section:last-child {
  margin-bottom: 0;
}

/* Gallery subsection titles */
.gallery-carousel-section-title {
  font-size: 2rem;
  font-family: var(--font-secondary);
  color: var(--white);
  margin-top: 60px;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}
@media (max-width: 600px) {
  .gallery-carousel-section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .about-section,
  .gallery-section,
  .contact-section,
  .media-section,
  .events-section {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }
}

.about-section {
  background: var(--black);
}

.gallery-section {
  background: var(--secondary);
  padding: 5rem 1rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-section .container {
  width: 100%;
  max-width: 1400px;
  text-align: center;
  position: relative;
  padding: 40px 80px;
}

.swiper {
  width: 100%;
  height: 500px;
  margin: 0 auto;
}

.swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.swiper-button-prev,
.swiper-button-next {
  width: 40px !important;
  height: 40px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  font-size: 2rem !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--accent) !important;
  background: rgba(15, 15, 15, 0.6);
  border-radius: 0;
  transition: all 0.3s ease;
  margin: 0;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: var(--accent);
  color: var(--black) !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 1.2rem !important;
  font-weight: bold;
  transform: scale(0.7);
}

/* Position the buttons */
.swiper-button-prev {
  left: -60px;
}

.swiper-button-next {
  right: -60px;
}

/* Mobile styles */
@media (max-width: 768px) {
  .gallery-section .container {
    padding: 0 20px;
  }

  .swiper {
    height: 400px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 40px;
    height: 40px;
  }

  .swiper-button-prev:after,
  .swiper-button-next:after {
    font-size: 1rem !important;
  }

  .swiper-button-prev {
    left: 10px;
  }

  .swiper-button-next {
    right: 10px;
  }
  .hero-section {
    padding: 0 20px;
  }
}

.contact-section {
  background: var(--black);
}

/* Section Dividers — purfling double hairline */
.about-section::before,
.media-section::before,
.gallery-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
  box-shadow: 0 3px 0 -2px var(--border-color);
}

.about-section h2,
.gallery-section h2,
.contact-section h2 {
  color: var(--text-primary);
  font-family: var(--font-secondary);
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-align: left;
  letter-spacing: -0.015em;
}

.about-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Contact Section */
.contact-section .container {
  max-width: 800px;
  margin: auto;
}

/* Contact Form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#contact-form label {
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.2em;
}

#contact-form input,
#contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-primary);
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: border-color 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

#contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

#contact-form button {
  background: var(--accent);
  color: var(--black);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-label);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  width: fit-content;
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#contact-form button:hover {
  background: var(--text-primary);
  color: var(--black);
}

#submitBtn.success {
  background: #4caf50;
  color: #fff;
}

#submitBtn.error {
  background: #d32f2f;
  color: #fff;
}

#submitBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid #fff;
  border-top: 2.5px solid var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}

#submitBtn.loading .spinner {
  display: inline-block;
}

#submitBtn:not(.loading) .spinner {
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .about-section,
  .gallery-section,
  .contact-section {
    padding: 3rem 0.5rem 2rem 0.5rem;
  }
  .about_text {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0 0.5rem;
  }
}

.about-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about_text {
  text-align: justify;
  text-align-last: left;
  max-width: 90%;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .about_text {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height;
    display: block;
  }
  .about_text.truncated::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3em;
    background: linear-gradient(
      to bottom,
      rgba(26, 26, 26, 0) 0%,
      var(--black) 100%
    );
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .about_text.expanded {
    max-height: 1000px;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .about-see-more {
    display: block;
    margin: 1rem auto 0 auto;
    background: transparent;
    color: var(--accent);
    border: none;
    border-bottom: 1px solid var(--accent);
    border-radius: 0;
    padding: 0.4rem 0.2rem;
    font-size: 0.66rem;
    font-family: var(--font-label);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
      color 0.3s,
      border-color 0.3s;
    animation: fadeInUp 0.7s;
  }
  .about-see-more:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
  }
  #contact-form {
    padding: 0 20px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  background: var(--secondary);
  color: var(--text-primary);
  padding: 2rem 0 1rem;
  width: 100%;
}

.footer .container {
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-section h3 {
  color: var(--accent);
  font-size: 0.7rem;
  margin-bottom: 1rem;
  font-family: var(--font-label);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Footer newsletter slim bar */
.footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1.5rem 0 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 3px 0 -2px var(--border-color);
}
.footer-newsletter .eyebrow {
  flex: 0 0 auto;
}
.footer-newsletter .newsletter-form {
  flex: 1 1 320px;
  max-width: 480px;
  margin: 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-link {
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: color 0.3s ease;
  font-size: 0.9rem;
  font-family: var(--font-primary);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link i {
  font-size: 1rem;
  width: 16px;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.social-link {
  color: var(--text-primary);
  font-size: 1.4rem;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none; /* Remove underline */
}

.social-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.social-link i {
  transition: transform 0.3s ease;
}

.social-link:hover i {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .social-links {
    gap: 1.2rem;
  }

  .social-link {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  width: 100%;
}

.footer-bottom p {
  font-family: var(--font-primary);
  font-weight: 400;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-section {
    width: 100%;
    text-align: center;
  }

  .contact-info {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* Media Section */
.media-section {
  background: var(--black);
  padding: 5rem 1rem;
  position: relative;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.media-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, border-color 0.3s;
}

.media-item iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.media-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.spotify-embed {
  max-width: 760px;
  margin: 28px auto 0;
}

@media (max-width: 768px) {
  .media-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Gallery cinematic restyle */
.gallery-swiper {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-swiper .swiper-slide img {
  width: 100%;
  height: 60vh;
  max-height: 600px;
  object-fit: cover;
  display: block;
}

.gallery-swiper .swiper-button-prev,
.gallery-swiper .swiper-button-next {
  color: var(--accent);
}

.gallery-swiper .swiper-pagination-bullet-active {
  background: var(--accent);
}

.about-see-more.see-less {
  background: var(--black);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.events-section {
  background: var(--secondary);
  padding: 5rem 1rem 3rem 1rem;
  position: relative;
}

.events-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
  box-shadow: 0 3px 0 -2px var(--border-color);
}
.events-tabs {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  justify-content: flex-start;
}

.events-tab {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
  outline: none;
}

.events-tab:hover,
.events-tab:focus {
  color: var(--text-primary);
  border-color: var(--accent);
}

.events-tab.active {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
  font-weight: 700;
}

.events-section h2 {
  color: var(--text-primary);
  font-family: var(--font-secondary);
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-align: left;
  letter-spacing: -0.015em;
}

.events-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.events-ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
}

.event-item .event-detail a {
  color: var(--text-primary);
  text-decoration: underline;
  font-family: var(--font-secondary);
  letter-spacing: 0.01em;
  background: none;
  border-radius: 0;
  box-shadow: none;
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
  outline: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--white);
}

.event-item .event-detail a:hover,
.event-item .event-detail a:focus {
  color: var(--accent);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
}

@media (max-width: 1000px) {
  .events-ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .events-ul {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.event-item {
  background: var(--black);
  color: var(--text-secondary);
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-primary);
  line-height: 1.55;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  min-height: auto;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.event-item strong {
  color: var(--accent);
  font-weight: 500;
  font-family: var(--font-secondary);
}

.event-item:hover {
  border-color: var(--accent);
}

/* Clickable past-event card */
.event-item--past {
  cursor: pointer;
}

.event-item--past:hover,
.event-item--past:focus {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px -12px rgba(0, 0, 0, 0.7);
  outline: none;
}

.event-more {
  margin-top: 0.9rem;
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Concert modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal[hidden] {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 28px;
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow: auto;
}
.modal-box h3 {
  color: var(--text-primary);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.4rem;
  margin: 0 2rem 0.6rem 0;
  line-height: 1.25;
}
.modal-box p {
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  margin: 0;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  color: var(--text-primary);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.modal-photos {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.modal-photos img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

/* Add vertical padding to event <p> elements */
.event-item .event-detail {
  padding-top: 0.3em;
  padding-bottom: 0.3em;
}

@media (max-width: 768px) {
  .events-section {
    padding: 3rem 0.5rem 2rem 0.5rem;
  }
  .events-section .container {
    padding: 0 10px;
  }
  .events-ul {
    max-width: 100%;
  }
  .event-item {
    padding: 1rem 1rem;
    font-size: 1rem;
  }
}

/* Snackbar/Toast Notification */
.snackbar {
  display: block;
  position: fixed;
  top: 32px;
  right: 32px;
  min-width: 220px;
  max-width: 350px;
  color: var(--white);
  padding: 16px;
  border-radius: 2px;
  font-size: 1.1rem;
  font-family: var(--font-primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition:
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.snackbar--visible {
  opacity: 0.98;
  pointer-events: auto;
  transform: translateY(0);
}
.snackbar--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}
.snackbar-content {
  position: relative;
  width: 100%;
}
.snackbar-close {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  margin: 0;
  z-index: 2;
}
.snackbar-close:hover,
.snackbar-close:focus {
  opacity: 1;
}
.snackbar-message {
  display: block;
  width: 100%;
  word-break: break-word;
  padding-right: 2rem;
  text-align: left;
}
.snackbar.success {
  background: var(--snackbar-success);
  color: var(--white);
}
.snackbar.error {
  background: var(--snackbar-error);
  color: var(--white);
}
@media (max-width: 600px) {
  .snackbar {
    right: 10px;
    left: 10px;
    min-width: unset;
    max-width: 95vw;
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
  }
}

.about-photos {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 2.5rem auto 0 auto;
  flex-direction: row;
  align-items: stretch;
  flex-wrap: nowrap;
  padding-top: 24px;
  padding-bottom: 24px;
  width: 100%;
}

.about-photo {
  width: 100%;
  max-width: 500px;
  min-width: 120px;
  height: auto;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  object-fit: cover;
  filter: grayscale(100%) sepia(0.2);
  transition:
    filter 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-photo:hover,
.about-photo:focus {
  transform: translateY(-4px);
  filter: none;
}

/* Credentials block ("Ha actuat amb") */
.creds {
  margin-top: 2.5rem;
  max-width: 560px;
}
.creds .eyebrow {
  display: block;
  margin-bottom: 0.6rem;
}
.creds ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.creds li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 900px) {
  .about-photos {
    gap: 1rem;
  }
  .about-photo {
    width: 30vw;
    max-width: 180px;
  }
}

@media (max-width: 1000px) {
  .about-photos {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .about-photo {
    width: 100%;
    max-width: 500px;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  .about-section {
    overflow-x: hidden;
  }
}

@media (max-width: 600px) {
  .about-photos {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .about-photo {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  .about-section {
    overflow-x: hidden;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
}
.logo-link:focus {
  outline: none;
}

/* ===== Fase 2: seccions noves ===== */

/* Secondary CTA button */
.cta-btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--accent);
  padding: 0.85rem 0.4rem;
  margin-left: 1.4rem;
}
.cta-btn--secondary:hover {
  background: transparent;
  color: var(--accent);
}
@media (max-width: 600px) {
  .cta-btn--secondary { margin-left: 0; margin-top: 0.8rem; display: inline-block; }
}

/* Trust / social proof strip */
.trust-section {
  background: var(--black);
  padding: 3rem 1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.trust-section .container { max-width: 1100px; margin: 0 auto; text-align: center; }
.trust-title {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2.5rem;
}
.trust-logo {
  font-family: var(--font-secondary);
  font-size: 1.05rem;
  color: rgba(239, 233, 221, 0.6);
  letter-spacing: 0.01em;
}

/* Programs */
.programs-section { background: var(--black); padding: 6rem 1rem 4rem; }
.programs-section .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.programs-section h2 {
  color: var(--accent);
  font-family: var(--font-secondary);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}
.programs-intro { text-align: center; color: var(--text-secondary); margin-bottom: 2.5rem; }
.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 900px;
  margin: 0;
}
.program-card {
  background: transparent;
  border: none;
  border-top: 1px solid var(--border-color);
  border-radius: 0;
  padding: 1.6rem 0;
}
.program-card h3 {
  font-family: var(--font-secondary);
  color: var(--text-primary);
  font-weight: 400;
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
}
.program-card p { color: var(--text-secondary); margin-bottom: 0.4rem; }
.program-meta {
  color: var(--accent) !important;
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (max-width: 768px) { .programs-grid { grid-template-columns: 1fr; } }

/* Tickets button on event cards */
.event-tickets-btn {
  display: inline-block;
  margin-top: 0.9rem;
  background: transparent;
  color: var(--accent) !important;
  text-decoration: none !important;
  padding: 0.3rem 0;
  border-radius: 0;
  border-bottom: 1px solid var(--accent);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font-label);
  transition: color 0.3s, border-color 0.3s;
}
.event-tickets-btn:hover { color: var(--text-primary) !important; border-color: var(--text-primary); }

/* Booking / For bookers + EPK */
.booking-section { background: var(--secondary); padding: 6rem 1rem 4rem; border-top: 1px solid var(--border-color); box-shadow: 0 3px 0 -2px var(--border-color) inset; }
.booking-section .container { max-width: 1000px; margin: 0 auto; padding: 0 2rem; text-align: left; }
.booking-section h2 { color: var(--text-primary); font-family: var(--font-secondary); font-weight: 400; font-size: 2.4rem; margin-bottom: 0.5rem; letter-spacing: -0.015em; }
.booking-section h3 { color: var(--text-primary); font-family: var(--font-secondary); font-weight: 400; font-size: 1.7rem; margin: 2.5rem 0 1rem; letter-spacing: -0.015em; }
.booking-intro { color: var(--text-secondary); margin-bottom: 2.5rem; }
.booking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border-color);
}
.booking-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 1.5rem 1.4rem 0;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--border-color);
}
.booking-k { color: var(--accent); font-family: var(--font-label); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.booking-v { color: var(--text-secondary); font-size: 0.95rem; }
.booking-epk-btn { display: inline-block; }
.booking-epk-note { display: inline-block; margin-left: 0.8rem; color: var(--text-secondary); font-size: 0.8rem; font-style: italic; }
@media (max-width: 768px) { .booking-grid { grid-template-columns: 1fr; } }

/* Testimonials */
.testimonials { margin-top: 3.5rem; }
.testimonial {
  max-width: 700px;
  margin: 0 0 1.4rem;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: transparent;
  color: var(--text-secondary);
  font-style: italic;
  text-align: left;
  border-radius: 0;
}
.testimonial cite { color: var(--accent); font-style: normal; font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* Newsletter */
.newsletter-section { background: var(--black); padding: 5rem 1rem; text-align: center; }
.newsletter-section .container { max-width: 700px; margin: 0 auto; }
.newsletter-section h2 { color: var(--accent); font-family: var(--font-secondary); font-size: 2.2rem; margin-bottom: 0.5rem; }
.newsletter-section p { color: var(--text-secondary); margin-bottom: 2rem; }
.newsletter-form { display: flex; gap: 0.8rem; max-width: 480px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.6rem 0;
  font-family: var(--font-primary);
  font-size: 1rem;
}
.newsletter-form input:focus { outline: none; border-bottom-color: var(--accent); }
.newsletter-form button {
  background: var(--accent);
  color: var(--black);
  border: none;
  border-radius: 2px;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  font-family: var(--font-label);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
.newsletter-form button:hover { background: var(--text-primary); color: var(--black); }
@media (max-width: 600px) { .newsletter-form { flex-direction: column; } }

/* Teaching */
.teaching-section { background: var(--secondary); padding: 5rem 1rem; text-align: center; border-top: 1px solid var(--border-color); }
.teaching-section .container { max-width: 700px; margin: 0 auto; }
.teaching-section h2 { color: var(--accent); font-family: var(--font-secondary); font-size: 2.2rem; margin-bottom: 1rem; }
.teaching-section p { color: var(--text-secondary); margin-bottom: 2rem; }

/* Contact type select */
#contact-form select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0;
  font-size: 1rem;
  font-family: var(--font-primary);
}
#contact-form select:focus { outline: none; border-bottom-color: var(--accent); }
#contact-form select option { background: var(--black); color: var(--text-primary); }

/* ===== Hero — Obertura (web3 "Tres actes") ===== */
/* Hero fosc: vídeos del canal de fons (main.js) i el cello 3D de cello3d.js al davant */
.hero {
  position: relative; height: 100svh; min-height: 600px; display: flex; align-items: center; overflow: hidden;
  background: var(--negre); color: var(--text-primary);
}
/* Escenari del cello 3D: fix a tota la pàgina; svh = alçada visible amb la barra del mòbil (no redimensiona en scroll) */
.cello-stage { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100svh; z-index: 1; pointer-events: none; display: block; opacity: 0; transition: opacity 0.9s ease; }
.cello-stage.is-ready { opacity: 1; }
.is-bowing, .is-bowing * { cursor: none !important; }
.cello-sound { display: inline-flex; align-items: center; gap: 0.5em; margin-top: 1.4rem; padding: 0; background: none; border: 0; cursor: pointer; font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); transition: color 0.2s, opacity 0.6s; }
.cello-sound:hover { color: var(--accent); }
.cello-sound.is-on { opacity: 0; pointer-events: none; }
.footer-credits { font-size: 0.75rem; opacity: 0.6; margin-bottom: 0.4rem; }
.footer-credits a { color: inherit; }
@media (max-width: 860px) { .hero { align-items: flex-end; padding-bottom: 9svh; } }

/* Capçalera transparent sobre el vídeo del hero (fins que passa a .is-solid) */
.site-header:not(.is-solid) { background: linear-gradient(rgba(13,10,8,0.55), transparent); backdrop-filter: none; }
.hero-content { position: relative; z-index: 2; padding: 0 var(--pad-inline); max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-eyebrow { font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8rem; }
.hero-name { font-size: var(--fs-display); line-height: 0.92; text-transform: uppercase; }
.hero-name .line { display: block; overflow: hidden; }
.hero-name .line-inner { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; margin-top: 2.2rem; }
.hero-social { list-style: none; display: flex; gap: 22px; margin-top: 2rem; padding: 0; }
.hero-social a { color: var(--text-primary); font-size: 1.15rem; opacity: 0.85; transition: color 0.2s, opacity 0.2s; text-decoration: none; }
.hero-social a:hover { color: var(--accent); opacity: 1; }
.hero-scroll { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 2; display: block; }
.hero-scroll-line { display: block; width: 1px; height: 48px; background: var(--accent); animation: scrollPulse 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollPulse { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll-line { animation: none; } }

/* ===== Task 4 — Sobre Alfons ===== */
.section { padding:90px 32px; max-width:1200px; margin:0 auto; }
body { counter-reset: sec; }
.section-head { position:relative; text-align:left; padding-bottom:22px; margin-bottom:54px; border-bottom:1px solid var(--border-color); counter-increment:sec; }
.kicker { color:var(--accent); font-size:12px; letter-spacing:.24em; text-transform:uppercase; font-weight:500; }
.section-head h2 { font-size:clamp(40px,7vw,88px); margin:10px 0 0; line-height:.92; max-width:78%; position:relative; z-index:1; }
/* ===== Pròleg — Sobre Alfons (web3) ===== */
.prologue { padding: var(--pad-section) var(--pad-inline); max-width: var(--maxw); margin: 0 auto; }
.section-kicker { font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 2.5rem; }
.prologue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.prologue-photos { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.prologue-photos img:first-child { grid-column: 1 / -1; }
.prologue-photos img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.5s ease; aspect-ratio: 4/3; }
.prologue-photos img:hover { filter: grayscale(0) contrast(1); }
.prologue-body h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.prologue-quote { font-family: var(--font-head); font-style: italic; font-size: var(--fs-quote); line-height: 1.1; color: var(--accent); margin-bottom: 1.5rem; }
.prologue-body .lead { font-size: var(--fs-body); color: var(--text-secondary); margin-bottom: 1.5rem; max-width: 46ch; line-height: 1.6; }
.link-underline { display: inline-block; color: var(--text-primary); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color 0.2s; }
.link-underline:hover { color: var(--accent); }
@media (max-width: 820px) { .prologue-grid { grid-template-columns: 1fr; } }
.about-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:40px; align-items:center; }
.about-portrait img { width:100%; border-radius:8px; border:1px solid var(--border-color); }
.about-text p { font-size:16px; line-height:1.7; color:var(--text-secondary); }
.rne-badge { display:inline-flex; align-items:center; gap:10px; margin-top:20px; color:var(--accent); text-decoration:none; border:1px solid var(--border-color); padding:10px 16px; border-radius:30px; font-size:14px; transition:.2s; }
.rne-badge:hover { background:rgba(200,146,61,.12); }
/* override old .about-photos (was flexbox row, now CSS grid) */
.about-photos { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:40px; padding:0; width:auto; flex-direction:unset; align-items:unset; flex-wrap:unset; }
.about-photos img { width:100%; height:260px; object-fit:cover; border-radius:8px; filter:grayscale(100%); transition:filter .4s; }
.about-photos img.hover-color:hover { filter:grayscale(0%); }
/* fix old flex-based responsive overrides that would break the new grid */
@media (max-width:1000px) {
  .about-grid { grid-template-columns:1fr; }
  .about-photos { gap:16px; overflow-x:visible; }
}
@media (max-width:600px) {
  .about-photos { grid-template-columns:1fr; gap:12px; }
}

/* ===== Task 9 — Sección Contacto propia + ajuste footer ===== */
.section.contact { background: var(--black); }
.contact-form-wrap, #contact-form { max-width:560px; margin:0 auto; display:grid; gap:14px; }
#contact-form .form-group { display:grid; gap:6px; }
#contact-form input, #contact-form textarea, #contact-form select { background:var(--secondary); border:1px solid var(--border-color); border-radius:8px; padding:14px 16px; color:var(--text-primary); font-family:var(--font-body); font-size:15px; }
#contact-form input:focus, #contact-form textarea:focus, #contact-form select:focus { outline:none; border-color:var(--accent); }
#contact-form select option { background:var(--secondary); color:var(--text-primary); }
#contact-form button[type=submit] { background:var(--accent); color:var(--black); border:0; border-radius:8px; padding:14px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; cursor:pointer; width:100%; }
/* Light footer touch: delineate from contact section */
.footer { border-top:1px solid var(--border-color); }
/* Teló: logo gran centrat com a tancament escènic (web3) */
.footer-curtain { text-align: center; margin-bottom: 3rem; }
.footer-logo { height: 64px; width: auto; opacity: 0.9; }

/* ===== Task 10 — Responsive + menu mòbil off-canvas ===== */
@media (max-width: 860px) {
  .nav-toggle { display:flex; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; }
  .nav-toggle span { width:24px; height:2px; background:var(--text-primary); display:block; }
  .main-nav { position:fixed; inset:0 0 0 auto; width:70%; max-width:300px; background:var(--secondary); flex-direction:column; padding:80px 28px; gap:18px; transform:translateX(100%); transition:transform .3s; z-index:60; }
  .main-nav.open { transform:translateX(0); }
  .about-grid, .cello-grid, .media-grid { grid-template-columns:1fr; }
  .about-photos { grid-template-columns:1fr; }
  .section { padding:64px 20px; }
}

/* ============================================================
   FASE EDITORIAL — restyle de seccions al llenguatge #sobre
   (full-bleed, asimètric, serif gran, hairlines, sense card-kit)
   Blocs afegits al final perquè guanyin la cascada.
   ============================================================ */

/* ===== Els tres actes (Barroco / Clásico / Eléctrico) — web3 ===== */
/* Dalt, una franja amb el títol i el text; davall, FOTO FOTO FOTO i l'espai del mini cello
   (.act-cello: cello3d.js hi dibuixa el cello) fins al final de la pantalla */
.act { position: relative; height: 100svh; min-height: 620px; display: flex; flex-direction: column; gap: clamp(1rem, 3vh, 2rem); padding: clamp(5.5rem, 12vh, 7.5rem) var(--pad-inline) clamp(1rem, 4vh, 2.5rem); overflow: hidden; }
.act-numeral { position: absolute; left: -3vw; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-weight: 700; font-size: clamp(14rem, 38vw, 40rem); line-height: 1; color: var(--accent); opacity: 0.04; pointer-events: none; z-index: 0; }
.act-inner { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; flex-wrap: wrap; }
.act-kicker { font-family: var(--font-label); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.8rem; }
.act-name { font-size: clamp(2.6rem, 6vw, 5.5rem); text-transform: uppercase; line-height: 0.95; letter-spacing: 0.02em; color: var(--text-primary); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55); }
.act-desc { font-size: clamp(1.15rem, 1.8vw, 1.7rem); font-family: var(--font-head); font-style: italic; color: var(--text-secondary); max-width: 30ch; }
/* Tres fotos alhora; main.js en fon una cada 3 s amb una altra de data-photos */
.act-photos { position: relative; z-index: 2; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr) minmax(120px, 14%); gap: 12px; }
.act-photos figure { position: relative; margin: 0; overflow: hidden; background: var(--bg-elev); }
.act-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(0.9); }
.act-photos img.is-new { opacity: 0; transition: opacity 1.2s ease; }
.act-photos img.is-new.is-on { opacity: 1; }
@media (max-width: 900px) {
  .act { height: auto; min-height: 0; }
  .act-photos { flex: none; height: 52svh; grid-template-columns: repeat(3, 1fr) 18%; gap: 6px; }
}

/* ----- #agenda: tabs de text + files editorials amb hairlines ----- */
.events-section h2 { font-family:var(--font-head); font-weight:600; font-size:clamp(40px,7vw,72px); line-height:.95; letter-spacing:0; margin-bottom:1.4rem; }
.events-tabs { gap:2rem; margin-bottom:0; border-bottom:1px solid var(--border-color); }
.events-tab { background:none; border:0; border-radius:0; padding:0 0 12px; color:var(--text-secondary); border-bottom:1px solid transparent; font-family:var(--font-label); font-size:.72rem; letter-spacing:.18em; transform:translateY(1px); }
.events-tab:hover, .events-tab:focus { color:var(--text-primary); background:none; border-color:transparent; border-bottom-color:var(--border-color); }
.events-tab.active { background:none; color:var(--accent); border-bottom:1px solid var(--accent); font-weight:600; }
.events-ul { grid-template-columns:1fr; gap:0; max-width:none; margin-top:0; }
.event-item { background:none; border:0; border-bottom:1px solid var(--border-color); border-radius:0; padding:1.8rem 0; transition:background .3s; }
.event-item:hover { border-color:var(--border-color); background:rgba(169,140,95,.04); }
.event-item--past:hover, .event-item--past:focus { border-color:var(--border-color); transform:none; box-shadow:none; background:rgba(169,140,95,.06); }
.event-item .event-detail { margin:0; padding:.12em 0; color:var(--text-secondary); }
.event-item .event-detail:first-child { padding-bottom:.35em; }
.event-item .event-detail:first-child strong { color:var(--accent); font-family:var(--font-label); font-size:.72rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase; }
.event-item .event-detail:nth-child(2) { font-family:var(--font-head); font-size:clamp(24px,2.6vw,38px); line-height:1.04; color:var(--text-primary); padding:.05em 0 .25em; }
.event-item .event-detail:nth-child(2) a { font-family:var(--font-head); color:var(--text-primary); text-decoration:none; text-underline-offset:6px; text-decoration-thickness:1px; text-decoration-color:var(--accent); }
.event-item .event-detail:nth-child(2) a:hover { color:var(--accent); text-decoration:underline; }
.event-more { display:inline-block; margin-top:1rem; border-bottom:1px solid var(--accent); padding-bottom:2px; }
.event-more::after { content:" \2192"; }
/* modal pla, sense radius pesat */
.modal-box { border-radius:0; padding:32px; }
.modal-box h3 { font-family:var(--font-head); font-weight:600; font-size:clamp(24px,3vw,38px); line-height:1.05; }
.modal-photos img { border-radius:0; }

/* ----- #escucha: façanes YouTube (lazy) + Spotify (web3) ----- */
.media-section { padding: var(--pad-section) var(--pad-inline); max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--hairline); }
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 2.5rem 0; width: auto; max-width: none; margin-left: 0; background: none; }
.yt-facade { position: relative; border: 0; padding: 0; cursor: pointer; background: var(--bg-elev); aspect-ratio: 16/9; overflow: hidden; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, filter 0.4s; filter: brightness(0.8); }
.yt-facade:hover img { transform: scale(1.04); filter: brightness(1); }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--marfil); font-size: 1.6rem; }
.yt-play i { background: rgba(13,10,8,0.55); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; transition: background 0.2s; }
.yt-facade:hover .yt-play i { background: var(--vermell); }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spotify-embed { margin-top: 1.5rem; width: auto; max-width: none; margin-left: 0; }
.spotify-embed iframe { border-radius: 12px !important; display: block; }
@media (max-width: 820px) { .media-grid { grid-template-columns: 1fr; } }

/* ----- #galeria: swiper full-bleed, cantons rectes ----- */
.gallery-section { display:block; padding:90px 0; overflow-x:hidden; }
.gallery-section .container { max-width:none; width:100%; padding:0; text-align:left; }
.gallery-section h2 { font-family:var(--font-head); font-weight:600; font-size:clamp(40px,7vw,72px); line-height:.95; letter-spacing:0; margin:0 0 36px; padding:0 32px; }
.gallery-swiper { max-width:none; margin:0; border-radius:0; }
.gallery-swiper, .gallery-section .swiper { height:80vh; }
.gallery-swiper .swiper-slide img { height:80vh; max-height:none; border-radius:0; }
.gallery-swiper .swiper-button-prev { left:24px; }
.gallery-swiper .swiper-button-next { right:24px; }
.gallery-swiper .swiper-button-prev, .gallery-swiper .swiper-button-next { color: var(--marfil); transition: color 0.2s; }
.gallery-swiper .swiper-button-prev:hover, .gallery-swiper .swiper-button-next:hover { color: var(--accent); }
.gallery-counter { position: absolute; bottom: 18px; right: 32px; z-index: 5; font-family: var(--font-label); font-size: 0.85rem; letter-spacing: 0.15em; color: var(--marfil); background: rgba(13,10,8,0.5); padding: 4px 10px; }
@media (max-width:768px){
  .gallery-section { padding:64px 0; }
  .gallery-section h2 { padding:0 20px; font-size:clamp(32px,9vw,48px); }
  .gallery-swiper, .gallery-section .swiper, .gallery-swiper .swiper-slide img { height:60vh; }
  .gallery-counter { right: 20px; }
}

/* ----- #booking: titulars serif + CTA com a link editorial ----- */
.booking-section h2 { font-family:var(--font-head); font-weight:600; font-size:clamp(34px,5vw,64px); line-height:.95; letter-spacing:0; margin-bottom:.6rem; }
.booking-section h3 { font-family:var(--font-head); font-weight:600; font-size:clamp(22px,3vw,34px); letter-spacing:0; }
.program-card h3 { font-family:var(--font-head); font-size:clamp(22px,2.4vw,30px); }
/* Concerts i dossiers: 4 targetes amb foto, gènere, frase i descàrrega */
.programs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; max-width: none; margin-bottom: 3rem; }
.program-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 0; border-top: 0; }
.program-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 0.6rem; filter: contrast(1.05) saturate(0.9); }
.booking-section .program-card h3 { margin: 0.15rem 0 0; }
.program-dl { align-self: flex-start; margin-top: 0.4rem; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; font-size: 14px; font-weight: 500; text-decoration: none; }
.program-dl:hover { opacity: 0.7; }
.program-dl::after { content: " \2192"; }
@media (min-width: 1100px) { .programs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .programs-grid { grid-template-columns: 1fr; } }
.testimonial { font-family:var(--font-head); font-size:clamp(19px,1.7vw,26px); font-style:italic; color:var(--text-primary); line-height:1.3; }
.booking-epk-btn.cta-btn, .booking-epk-btn { background:none; color:var(--accent); padding:0 0 3px; border:0; border-bottom:1px solid var(--accent); border-radius:0; letter-spacing:.04em; text-transform:none; font-family:var(--font-body); font-weight:500; font-size:15px; }
.booking-epk-btn.cta-btn:hover, .booking-epk-btn:hover { background:none; color:var(--accent); opacity:.7; }
.booking-epk-btn::after { content:" \2192"; }

/* ----- #contacto: camps amb subratllat, submit com a link ----- */
.section.contact { border-top:1px solid var(--border-color); }
.contact-form-wrap, #contact-form { max-width:620px; gap:34px; }
#contact-form .form-group { gap:10px; }
#contact-form label { font-family:var(--font-label); font-size:.66rem; font-weight:600; text-transform:uppercase; color:var(--accent); letter-spacing:.2em; }
#contact-form input, #contact-form textarea, #contact-form select { background:transparent; border:0; border-bottom:1px solid var(--border-color); border-radius:0; padding:10px 0; color:var(--text-primary); font-family:var(--font-body); font-size:clamp(16px,1.2vw,19px); }
#contact-form input:focus, #contact-form textarea:focus, #contact-form select:focus { outline:none; border-color:var(--border-color); border-bottom-color:var(--accent); }
#contact-form textarea { min-height:120px; resize:vertical; }
#contact-form select option { background:var(--secondary); color:var(--text-primary); }
#contact-form button[type=submit], #submitBtn { background:none; color:var(--accent); border:0; border-bottom:1px solid var(--accent); border-radius:0; padding:6px 0 4px; width:auto; justify-self:start; font-family:var(--font-label); font-weight:600; font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; cursor:pointer; transition:opacity .2s; }
#contact-form button[type=submit]:hover, #submitBtn:hover { opacity:.7; background:none; color:var(--accent); }

/* ===== WEB 3.0 "Tres actes": gra de pel·lícula i hairline ===== */

/* Hairline en or, element compositiu recurrent */
.hairline {
  height: 0;
  border: 0;
  border-top: 1px solid var(--hairline);
}

/* Atmosferes per acte (les activa mutateAtmosphere via classe al body) */
body.atmo-1 { --bg: var(--sepia);   --accent: var(--or);      --text-primary: var(--marfil); }
body.atmo-2 { --bg: var(--noguera); --accent: var(--marfil);  --text-primary: var(--marfil); }
body.atmo-3 { --bg: var(--negre);   --accent: var(--vermell); --text-primary: var(--marfil); }

/* Accessibilitat: focus visible coherent a tota la UI interactiva */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Contracte de moviment: per defecte tot visible. Només amaguem si has-motion. */
.has-motion [data-reveal] { opacity: 0; }
.no-motion [data-reveal],
.has-motion [data-reveal].is-in { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; }
}

/* Lenis smooth-scroll — classes que Lenis afig a <html> en activar-se */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Vinyeta cinematogràfica global — enfosqueix les vores de tota la finestra. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 89; /* sota el gra, damunt del contingut */
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(0,0,0,0.55) 100%);
}

/* Gra de film — textura cinematogràfica global. Blend overlay (equilibra foscos i
   clars sense fer boira); puja/baixa opacity (0.25–0.7) per a més o menys gra. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90; /* damunt del contingut i el header; sota modals/snackbar */
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
}
/* Parpelleig del gra (només si l'usuari accepta moviment) — l'efecte "film" real. */
body.has-motion::after { animation: grain-flicker 0.5s steps(4) infinite; }
@keyframes grain-flicker {
  0%   { background-position: 0 0; }
  25%  { background-position: -40px 30px; }
  50%  { background-position: 60px -20px; }
  75%  { background-position: -30px -50px; }
  100% { background-position: 0 0; }
}

/* ===== Interludi — les quatre cordes del cello (A·D·G·C) ===== */
/* El gruix creix cap a la corda greu, com a l'instrument real. */
.strings-interlude { max-width: var(--maxw); margin: 0 auto; padding: clamp(2.5rem, 8vh, 5rem) var(--pad-inline); }
.strings-hint {
  display: block; text-align: center; margin-bottom: 1.8rem;
  font-family: var(--font-label); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-secondary);
}
.strings-box { display: flex; align-items: stretch; gap: 1.1rem; height: 160px; }
.string-labels { display: grid; grid-template-rows: repeat(4, 1fr); }
.string-labels i {
  display: flex; align-items: center; font-style: normal;
  font-family: var(--font-label); font-size: 0.62rem; letter-spacing: 0.2em;
  color: var(--accent); opacity: 0.55;
}
.strings-svg { flex: 1; height: 100%; touch-action: pan-y; } /* pan-y: no segresta l'scroll tàctil */
.string { fill: none; stroke: var(--accent); stroke-opacity: 0.35; transition: stroke 0.6s ease; }
.string:nth-of-type(1) { stroke-width: 1; }
.string:nth-of-type(2) { stroke-width: 1.4; }
.string:nth-of-type(3) { stroke-width: 1.9; }
.string:nth-of-type(4) { stroke-width: 2.5; }
@media (max-width: 768px) { .strings-box { height: 120px; } }

/* ===== La A del logo — progrés de lectura que es dibuixa amb l'scroll ===== */
/* Fallback sense JS o sense moviment: la A es veu completa i estàtica. */
.scroll-mark {
  position: fixed; left: 18px; bottom: 18px; width: 56px; height: auto;
  z-index: 60; /* sota la vinyeta (89) i el gra (90), com el header */
  pointer-events: none; opacity: 0.6;
}
.scroll-mark path {
  fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.6s ease; /* muta de color amb les atmosferes dels actes */
}
.scroll-mark .mark-f { fill: var(--accent); }
@media (max-width: 768px) { .scroll-mark { width: 40px; left: 12px; bottom: 12px; } }

/* Cognom al hero: Bodoni cursiva en or, més menut que el nom */
.hero-name .hero-name-sur {
  font-style: italic;
  font-weight: 500;
  font-size: 0.5em;
  text-transform: none;
  color: var(--accent);
}

/* Agenda buida: etiqueta que introdueix els últims concerts com a prova d'activitat */
.events-recent-label {
  list-style: none;
  padding: 2.2rem 0 0.4rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ===== Web clàssica 2026-10 ===== */
/* Hero: vídeos de YouTube de fons, a pantalla completa (cover 16:9) i sense interacció */
.hero-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* L'iframe és un 20 % més gran que la pantalla: les vores (títol, logo de YouTube) queden fora */
.hero-video img, .hero-video iframe { position: absolute; top: 50%; left: 50%; width: max(120%, 213svh); height: max(120%, 67.5vw); transform: translate(-50%, -50%); border: 0; object-fit: cover; }
/* La miniatura tapa el reproductor: s'aparta amb fosa i torna a l'instant (sense controls de YouTube) */
.hero-video img { z-index: 1; }
.hero-video.is-playing img { opacity: 0; transition: opacity 1s ease; }
.hero-video::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(13,10,8,0.85) 0%, rgba(13,10,8,0.55) 45%, rgba(13,10,8,0.35) 100%), linear-gradient(transparent 60%, var(--bg)); }
/* Logo ALFONS amb la F (efa de cello) daurada, en gran */
.hero-name { line-height: 1; }
.hero-logo { display: block; width: clamp(240px, 42vw, 620px); height: auto; filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5)); }
.brand-logo { height: 34px; }
/* Botó «Escucha al ALFONS» */
.cello-album { display: inline-flex; align-items: center; gap: 0.6em; margin-top: 1.6rem; padding: 0.7rem 1.2rem; background: none; border: 1px solid var(--accent); color: var(--text-primary); font-family: var(--font-label); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; transition: background 0.2s, color 0.2s; }
.cello-album span[aria-hidden] { color: var(--accent); }
.cello-album:hover { background: var(--accent); color: var(--negre); }
.cello-album:hover span[aria-hidden] { color: inherit; }
.hero-content .cello-sound { display: flex; }
/* Pista que sona del disc (mostra d'Apple Music) */
.album-now { min-height: 1.2em; margin-top: 0.6rem; font-family: var(--font-head); font-style: italic; font-size: 0.95rem; color: var(--text-secondary); max-width: 46ch; }
.album-now a { font-family: var(--font-label); font-style: normal; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-left: 0.5em; white-space: nowrap; }
.cello-album.is-playing span[aria-hidden] { animation: albumPulse 1s ease-in-out infinite; }
@keyframes albumPulse { 50% { opacity: 0.3; } }
/* Selector Barroc · Clàssic · Elèctric */
.cello-picker { display: flex; align-items: center; gap: 0.7rem; margin-top: 1.6rem; color: var(--text-secondary); }
.cello-picker button { padding: 0.2rem 0; background: none; border: 0; border-bottom: 1px solid transparent; font-family: var(--font-label); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); transition: color 0.2s, border-color 0.2s; }
.cello-picker button:hover { color: var(--text-primary); }
.cello-picker button[aria-pressed="true"] { color: var(--text-primary); border-bottom-color: var(--accent); }
/* Sobre: el text es queda fix mentre passen els 3 cellos (cello3d.js els dibuixa dins de .trio-slot) */
.prologue-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 24%); gap: clamp(2rem, 4vw, 4rem); }
.prologue-layout .prologue-grid { position: sticky; top: 18svh; align-self: start; }
.trio-slot { height: 62svh; margin-bottom: 16svh; display: flex; align-items: flex-end; justify-content: center; }
.trio-slot:last-child { margin-bottom: 0; }
.trio-slot span { margin-bottom: 5svh; font-family: var(--font-label); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 820px) { .prologue-layout { grid-template-columns: 1fr; } .prologue-layout .prologue-grid { position: static; } }
/* «Escucha y mira»: vídeo destacat amb títol que va canviant + llista */
.reel { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin: 2.5rem 0; align-items: start; }
.reel-main { width: 100%; }
.reel-main.is-in img, .reel-main.is-in .reel-title { animation: reelIn 0.8s ease; }
@keyframes reelIn { from { opacity: 0; } to { opacity: 1; } }
.reel-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.2rem 1rem; text-align: left; font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 2rem); color: var(--marfil); background: linear-gradient(transparent, rgba(13,10,8,0.85)); pointer-events: none; }
.reel-list { list-style: none; margin: 0; padding: 0; counter-reset: reel; }
.reel-list li { border-bottom: 1px solid var(--hairline); counter-increment: reel; }
.reel-list button { display: flex; gap: 0.9rem; width: 100%; padding: 1rem 0; background: none; border: 0; text-align: left; font-family: var(--font-head); font-size: 1.1rem; line-height: 1.25; color: var(--text-secondary); transition: color 0.2s; }
.reel-list button::before { content: counter(reel, decimal-leading-zero); font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.15em; color: var(--accent); padding-top: 0.3em; }
.reel-list button:hover, .reel-list button[aria-current] { color: var(--text-primary); }
@media (max-width: 820px) { .reel { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .act-photos img.is-new, .hero-video.is-playing img { transition: none; } .reel-main.is-in img, .reel-main.is-in .reel-title { animation: none; } }
