/* ──────────────────────────────────────────────
   TAVERNA EST — CLEAN SYSTEM REFACTORED
────────────────────────────────────────────── */

:root {
  --bg: #f7f7f5;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: #e2e2df;
  --accent: #b5121b;
  --dark: #090909;
  --accent-soft: #f8e8ea;
  --grey-soft: #f0f0ee;

  --container: 1180px;
  --space-x: clamp(1.25rem, 4vw, 4rem);
  --space-y: clamp(4rem, 8vw, 7rem);

  --font-title: "Poppins", sans-serif;
  --font-text: "Quicksand", sans-serif;
}

/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  overflow-x: hidden;
}

img,
video {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

/* HEADER */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;

  padding: 1.1rem var(--space-x);

  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(14px);
}

.site-logo,
.footer-logo {
  display: inline-block;
  color: var(--ink);
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.site-logo span,
.footer-logo span {
  color: var(--accent);
}

.site-logo-img {
  width: 100px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  opacity: 1;
  color: var(--accent);
}

.site-cta {
  min-height: 38px;
  padding: 0.55rem 1rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  text-decoration: none;

  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition: background 0.2s, color 0.2s;
}

.site-cta:hover {
  background: var(--accent);
  color: #fff;
}

.site-menu-toggle,
.site-mobile-nav {
  display: none;
}

.site-menu-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.site-menu-bars {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-menu-bars span {
  width: 100%;
  height: 2px;
  display: block;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-open .site-menu-toggle {
  background: var(--accent);
  border-color: var(--accent);
}

.menu-open .site-menu-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .site-menu-bars span:nth-child(2) {
  opacity: 0;
}

.menu-open .site-menu-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-mobile-nav {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 0.85rem var(--space-x) 1rem;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
}

.site-mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-mobile-nav a::after {
  content: ">";
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
}

.site-mobile-nav a:last-child {
  border-bottom: 0;
  color: var(--accent);
}

.site-mobile-nav a.is-active {
  color: var(--accent);
}

/* LAYOUT */

.page {
  padding-top: 72px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-x);
}

.section {
  padding: var(--space-y) 0;
  border-bottom: 1px solid var(--line);
}

.section.white {
  background: var(--paper);
}

.section.dark {
  background: var(--dark);
  color: #fff;
}

.section-header {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;

  color: var(--paper);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.title {
  color: var(--ink);
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.title.small {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.title span {
  color: var(--accent);
}

.text {
  max-width: 680px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.section.dark .text {
  color: #fff;
}

/* Titolo: prima riga bianca, seconda riga (span) rossa */
.section.dark .title {
  color: #fff;
}

.section.dark .title span {
  color: var(--accent);
}

/* Pulsante secondario in variante rossa per la sezione dark */
.section.dark .btn.secondary {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

.section.dark .btn.secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* BUTTONS */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  min-height: 44px;
  padding: 0.75rem 1.25rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;

  font-family: var(--font-text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--dark);
  border-color: var(--dark);
  transform: translateY(-2px);
}

/* Pulsante grande (usato per 'Ripercorri le tappe') */
.btn.btn-large {
  padding: 1rem 1.6rem;
  font-size: 0.9rem;
  min-width: 220px;
  border-width: 2px;
}

.btn.secondary:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.section.dark .btn.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.section.dark .btn.secondary:hover {
  background: #fff;
  color: var(--ink);
}

/* GRIDS */

.grid {
  display: grid;
  gap: 1rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* TIMELINE (collapsible) */
.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  font-weight: 800;
  color: #fff;
  cursor: default;
  background: var(--accent);
  padding: 1.2rem 1.6rem;
  display: inline-block;
  min-width: 120px;
  text-align: center;
}

.timeline-content {
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.28s ease;
  max-height: 0;
  opacity: 0;
}

.timeline-item.is-open .timeline-content {
  max-height: 400px;
  opacity: 1;
}

/* timeline locked: can't open items until unlocked */
.timeline.timeline-locked {
  display: none;
}

.timeline-item .timeline-content h3 {
  margin-bottom: 0.5rem;
}

/* Rendere l'intera riga cliccabile */
.timeline-item {
  cursor: pointer;
}

.timeline-item:hover {
  background: rgba(0,0,0,0.02);
}

.timeline-year {
  display: flex;
  align-items: center;
}

/* CARDS */

.card {
  min-height: 240px;
  padding: 1.25rem;

  display: flex;
  flex-direction: column;

  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;

  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 18, 27, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.card-label {
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 0.85rem;
  font-family: var(--font-title);
  font-size: clamp(1.08rem, 1.7vw, 1.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.card p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.68;
}

.card-meta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);

  display: flex;
  justify-content: space-between;
  gap: 1rem;

  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-card {
  padding: 0;
  overflow: hidden;
}

.image-card img,
.image-card video {
  height: 260px;
  object-fit: cover;
  filter: grayscale(0.2) saturate(0.85);
}

.image-card .card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* HERO GENERALE */

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: clamp(5rem, 9vw, 8rem) 0;

  display: flex;
  align-items: flex-end;

  overflow: hidden;
  border-bottom: 1px solid var(--line);

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 247, 245, 1)),
    radial-gradient(circle at 82% 18%, rgba(181, 18, 27, 0.08), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

/* HERO COLLAGE HOME */

.hero-collage {
  background: var(--bg);
}

.hero-collage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      90deg,
      rgba(247, 247, 245, 0.96) 0%,
      rgba(247, 247, 245, 0.86) 38%,
      rgba(247, 247, 245, 0.58) 68%,
      rgba(247, 247, 245, 0.42) 100%
    ),
    radial-gradient(circle at 20% 30%, rgba(181, 18, 27, 0.1), transparent 38%);

  pointer-events: none;
}

.hero-collage-bg {
  position: absolute;
  inset: 72px var(--space-x) 4rem 38%;
  z-index: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-collage-img {
  min-height: 230px;
  overflow: hidden;
  background: var(--line);
}

.hero-collage-img:nth-child(1) {
  transform: translateY(1.5rem);
}

.hero-collage-img:nth-child(2) {
  transform: translateY(-0.5rem);
}

.hero-collage-img:nth-child(3) {
  transform: translateY(0.5rem);
}

.hero-collage-img:nth-child(4) {
  transform: translateY(-1.5rem);
}

.hero-collage-img img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) saturate(0.75) contrast(1.05);
}

.hero-collage .container {
  position: relative;
  z-index: 2;
}

.hero-collage .hero-content {
  max-width: 680px;
}

/* HERO VISUALI PAGINE */

.spettacoli-hero-clean,
.bandi-hero-clean,
.progetti-speciali-hero,
.trasparenza-hero {
  min-height: calc(100vh - 72px);
  align-items: center;
  padding: clamp(4rem, 7vw, 6rem) 0;

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 247, 245, 1)),
    radial-gradient(circle at 84% 18%, rgba(181, 18, 27, 0.08), transparent 34%);
}

.spettacoli-hero-clean-grid,
.bandi-hero-clean-grid,
.progetti-speciali-hero-grid,
.trasparenza-hero-grid,
.chi-siamo-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.spettacoli-hero-clean .hero-content,
.bandi-hero-clean .hero-content,
.progetti-speciali-hero .hero-content,
.trasparenza-hero .hero-content,
.chi-siamo-hero .hero-content {
  max-width: 680px;
}

.spettacoli-hero-stack,
.bandi-hero-visual,
.progetti-speciali-visual,
.chi-siamo-hero-visual {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;

  height: min(68vh, 620px);
  min-height: 430px;
}

.spettacoli-stack-img,
.bandi-hero-img,
.progetti-speciali-img,
.chi-siamo-hero-img {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--grey-soft);
}

.spettacoli-stack-img.is-large,
.bandi-hero-img.is-large,
.progetti-speciali-img.is-large,
.chi-siamo-hero-img.is-large {
  grid-row: span 2;
}

.spettacoli-stack-img img,
.bandi-hero-img img,
.progetti-speciali-img img,
.chi-siamo-hero-img img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.18) saturate(0.88) contrast(1.03);
  transition: transform 0.5s, filter 0.5s;
}

.spettacoli-stack-img:hover img,
.bandi-hero-img:hover img,
.progetti-speciali-img:hover img,
.chi-siamo-hero-img:hover img {
  transform: scale(1.035);
  filter: grayscale(0.03) saturate(0.96) contrast(1.04);
}

.spettacoli-stack-img::after,
.bandi-hero-img::after,
.progetti-speciali-img::after,
.chi-siamo-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.18));
  pointer-events: none;
}

/* HOME — SPETTACOLI CAROUSEL */

#spettacoli-attivi {
  background: var(--paper);
}

.spettacoli-home-style-grid .image-card,
#spettacoli-attivi .image-card,
.spettacolo-home-card {
  min-height: 100%;
}

.spettacoli-home-style-grid .image-card img,
.spettacoli-home-style-grid .image-card video,
#spettacoli-attivi .image-card img,
#spettacoli-attivi .image-card video {
  height: 230px;
}

.spettacoli-home-style-grid .card-body,
#spettacoli-attivi .card-body {
  padding: 1rem;
}

.spettacoli-home-style-grid .card h3,
#spettacoli-attivi .card h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1rem, 1.45vw, 1.28rem);
}

.spettacolo-subtitle {
  margin-top: -0.2rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.55;
}

.home-section-more {
  margin-top: 2rem;

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.home-section-more-line {
  height: 1px;
  background: var(--line);
}

.home-carousel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.home-carousel-btn {
  cursor: pointer;
  font-family: var(--font-text);
}

.spettacoli-home-style-grid {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.42s ease, transform 0.42s ease;
  will-change: opacity, transform;
}

.spettacoli-home-style-grid.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.spettacoli-home-style-grid.is-changing {
  opacity: 0;
  transform: translateY(10px);
}

.spettacoli-home-style-grid .card {
  animation: spettacoloCardIn 0.48s ease both;
}

.spettacoli-home-style-grid .card:nth-child(2) {
  animation-delay: 0.05s;
}

.spettacoli-home-style-grid .card:nth-child(3) {
  animation-delay: 0.1s;
}

@keyframes spettacoloCardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HOME — SALA SOLE */

.sala-sole-home {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 247, 245, 1)),
    radial-gradient(circle at 16% 22%, rgba(181, 18, 27, 0.08), transparent 34%);
}

.sala-sole-home-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.sala-sole-home-media {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 560px;
}

.sala-sole-home-img {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--grey-soft);
}

.sala-sole-home-img.is-large {
  grid-row: span 2;
}

.sala-sole-home-img img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.14) saturate(0.9) contrast(1.03);
  transition: transform 0.45s, filter 0.45s;
}

.sala-sole-home-img:hover img {
  transform: scale(1.035);
  filter: grayscale(0.02) saturate(1) contrast(1.04);
}

.sala-sole-home-content {
  max-width: 620px;
}

.sala-sole-home-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.sala-sole-home-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.sala-sole-home-item span {
  color: var(--accent);
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 800;
}

.sala-sole-home-item p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

/* SALA SOLE PAGE */

.hero-sala {
  align-items: center;
}

.hero-sala-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-sala .hero-content {
  max-width: 680px;
}

.hero-gallery {
  position: relative;
  height: min(68vh, 620px);
  min-height: 420px;
  overflow: hidden;
  background: var(--grey-soft);
  border: 1px solid var(--line);
}

.hero-gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.75s ease, transform 1.2s ease;
}

.hero-gallery-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-gallery-slide img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.08) saturate(0.9) contrast(1.03);
}

.hero-gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.18));
  pointer-events: none;
}

.hero-gallery-controls {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 5;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-gallery-btn {
  width: 42px;
  height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid var(--line);

  font-family: var(--font-text);
  font-size: 1rem;
  cursor: pointer;
}

.hero-gallery-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.hero-gallery-count {
  padding: 0.65rem 0.85rem;

  display: inline-flex;
  align-items: center;
  gap: 0.35rem;

  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--muted);

  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-gallery-count span:first-child {
  color: var(--accent);
}

/* BANDI / PROGETTI / LABORATORI CARD */

.bandi-card-grid,
.progetti-speciali-grid,
.laboratori-grid {
  align-items: stretch;
}

.bando-image-card,
.progetto-speciale-card,
.laboratorio-card {
  min-height: 100%;
}

.bando-image-card img,
.progetto-speciale-card img {
  height: 260px;
  object-fit: cover;
}

.laboratorio-card img {
  height: 230px;
  object-fit: cover;
}

.bando-image-card .card-body,
.progetto-speciale-card .card-body,
.laboratorio-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bando-image-card .card-meta,
.progetto-speciale-card .card-meta,
.laboratorio-card .card-meta {
  margin-top: auto;
}

/* TIMELINE */

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;

  margin-top: -1px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.timeline-year {
  padding: 1.4rem;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--accent);
  color: #fff;

  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.timeline-content {
  padding: 1.4rem 1.4rem 1.4rem 0;
}

.timeline-content h3 {
  margin-bottom: 0.45rem;
  font-family: var(--font-title);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.timeline-content p {
  max-width: 820px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.75;
}

/* PUBLIC MEDIA */

.public-file-cover {
  min-height: 240px;
  padding: 1.25rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;

  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.public-file-cover span {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.public-file-cover strong {
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.public-file-cover small {
  color: var(--muted);
  font-size: 0.76rem;
}

.public-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.public-media-item {
  height: 210px;
  display: block;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}

.public-media-item img,
.public-media-item video {
  height: 100%;
  object-fit: cover;
}

.public-media-file {
  padding: 1rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

/* SPETTACOLO DETAIL */

.spettacolo-page {
  background: var(--bg);
}

.spettacolo-detail-hero {
  padding: clamp(4rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--line);

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 247, 245, 1)),
    radial-gradient(circle at 84% 16%, rgba(181, 18, 27, 0.08), transparent 34%);
}

.spettacolo-detail-hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.spettacolo-detail-hero-text {
  max-width: 680px;
}

.spettacolo-detail-lead {
  max-width: 680px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.65;
}

.spettacolo-detail-cover {
  min-height: 520px;
  height: min(68vh, 640px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--grey-soft);
}

.spettacolo-detail-cover img,
.spettacolo-detail-cover video,
.spettacolo-hero-media {
  height: 100%;
  object-fit: cover;
}

.spettacolo-detail-cover .public-file-cover {
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.spettacolo-cover-placeholder {
  width: 100%;
  height: 100%;
  min-height: 520px;
  padding: 2rem;

  display: grid;
  place-items: center;

  background: var(--dark);
  color: #fff;
}

.spettacolo-cover-placeholder span {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  text-align: center;
}

.spettacolo-detail-main {
  padding-top: clamp(4rem, 7vw, 6rem);
}

.spettacolo-detail-content {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 7vw, 6rem);
}

.spettacolo-section {
  width: 100%;
}

.spettacolo-info-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.spettacolo-meta-panel {
  position: sticky;
  top: 96px;
  padding-top: 0.4rem;
  border-top: 3px solid var(--accent);
}

.spettacolo-meta-item {
  margin: 1.4rem 0;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.spettacolo-meta-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: -0.02em;
}

.spettacolo-meta-item span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.spettacolo-text-block {
  max-width: 860px;
}

.spettacolo-text-block h2 {
  margin-bottom: 1.5rem;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.spettacolo-text-block p {
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.9;
}

.spettacolo-detail-subtitle {
  max-width: 780px;
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.55;
}

.spettacolo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.spettacolo-gallery-item {
  height: 260px;
  display: block;
  overflow: hidden;

  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;

  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.spettacolo-gallery-item:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 18, 27, 0.35);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.spettacolo-gallery-item img,
.spettacolo-gallery-item video {
  height: 100%;
  object-fit: cover;
}

.spettacolo-gallery-item .public-file-cover {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

/* SPETTACOLI — VISTA COMPATTA */

.spettacoli-index-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.spettacoli-index-sidebar {
  position: sticky;
  top: 96px;
  padding-top: 0.4rem;
  border-top: 3px solid var(--accent);
}

.spettacoli-index-sidebar h3 {
  margin-bottom: 1rem;
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.spettacoli-index-sidebar p {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.spettacoli-compact-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.spettacolo-compact-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;

  padding: 1rem 0;
  border-bottom: 1px solid var(--line);

  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.spettacolo-compact-item:hover {
  opacity: 0.75;
  transform: translateX(4px);
}

.spettacolo-compact-thumb {
  height: 82px;
  overflow: hidden;
  background: var(--grey-soft);
  border: 1px solid var(--line);
}

.spettacolo-compact-thumb img,
.spettacolo-compact-thumb video {
  height: 100%;
  object-fit: cover;
}

.spettacolo-compact-content {
  min-width: 0;
}

.spettacolo-compact-content .card-label {
  margin-bottom: 0.35rem;
}

.spettacolo-compact-content h3 {
  margin-bottom: 0.25rem;
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.spettacolo-compact-content p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;

  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.spettacolo-compact-meta {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
}

.spettacoli-dense-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.spettacoli-dense-grid .image-card img,
.spettacoli-dense-grid .image-card video {
  height: 180px;
}

.spettacoli-dense-grid .card-body {
  padding: 0.95rem;
}

.spettacoli-dense-grid .card h3 {
  font-size: 1rem;
}

.spettacoli-dense-grid .spettacolo-subtitle {
  font-size: 0.72rem;
  line-height: 1.45;
}

/* TRASPARENZA */

.trasparenza-hero-visual {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 500px;
}

.trasparenza-doc-card {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  padding: clamp(1.3rem, 2.5vw, 2rem);

  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.045);
}

.trasparenza-doc-card.is-large {
  grid-row: span 2;
  justify-content: flex-end;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,232,234,0.95)),
    var(--accent-soft);
}

.trasparenza-doc-card.is-muted {
  background: var(--grey-soft);
}

.trasparenza-doc-card::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;

  width: 64px;
  height: 64px;

  border-top: 1px solid rgba(181, 18, 27, 0.25);
  border-right: 1px solid rgba(181, 18, 27, 0.25);
}

.trasparenza-doc-kicker {
  display: block;
  margin-bottom: 1rem;

  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trasparenza-doc-card h2 {
  position: relative;
  z-index: 1;

  max-width: 420px;
  margin-bottom: 1rem;

  font-family: var(--font-title);
  font-size: clamp(1.35rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.trasparenza-doc-card p {
  position: relative;
  z-index: 1;

  max-width: 390px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.75;
}

.trasparenza-doc-meta {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;

  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.trasparenza-doc-meta span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trasparenza-doc-meta strong {
  color: var(--accent);
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.trasparenza-info-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.trasparenza-info-panel {
  position: sticky;
  top: 96px;
  padding-top: 0.4rem;
  border-top: 3px solid var(--accent);
}

.trasparenza-info-item {
  margin: 1.4rem 0;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.trasparenza-info-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: -0.02em;
}

.trasparenza-info-item span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.trasparenza-text-block {
  max-width: 860px;
}

.trasparenza-text-block h2 {
  margin-bottom: 1.5rem;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.trasparenza-text-block p {
  margin-bottom: 1.15rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.9;
}

.trasparenza-doc-grid {
  align-items: stretch;
}

.trasparenza-download-card {
  min-height: 260px;
}

/* NEWSLETTER */

.newsletter-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  margin-top: 2rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 1rem;

  border: 1px solid var(--line);
  border-right: none;
  background: var(--bg);

  font-family: var(--font-text);
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  padding: 1rem 1.3rem;

  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;

  font-family: var(--font-text);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;
}

.newsletter-form button:hover {
  background: var(--dark);
  border-color: var(--dark);
}

.success-msg {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--accent);
  border: 1px solid #ead1d4;
  color: var(--ink);
}

/* FOOTER */

.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 4rem var(--space-x) 2rem;
}

.footer-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto 3rem;

  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}

.footer-logo {
  color: #fff;
  font-size: 1.35rem;
}

.footer-brand p {
  max-width: 340px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  line-height: 1.8;
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-title);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 0.74rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 1.5rem;

  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;

  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.65rem;
}

/* ADMIN */

.admin-hero {
  min-height: 54vh;
  align-items: center;
}

.admin-login-card {
  max-width: 520px;
}

.admin-tabs {
  position: sticky;
  top: 72px;
  z-index: 20;

  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;

  margin-bottom: 3rem;
  padding: 0.9rem;

  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.admin-tabs a {
  padding: 0.65rem 0.85rem;

  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;

  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.admin-tabs a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.admin-section {
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.admin-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  align-items: start;
}

.admin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1rem, 2.5vw, 1.4rem);
}

.admin-title {
  margin-bottom: 1rem;
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.admin-field {
  margin-bottom: 1rem;
}

.admin-field label {
  display: block;
  margin-bottom: 0.4rem;

  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;

  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);

  font-family: var(--font-text);
  font-size: 0.9rem;
  outline: none;
}

.admin-field textarea {
  resize: vertical;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.admin-hint {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.admin-list {
  display: flex;
  flex-direction: column;
}

.admin-list-compact {
  gap: 0;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;

  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.admin-row:first-child {
  border-top: 1px solid var(--line);
}

.admin-list-compact .admin-row {
  min-height: auto;
  padding: 0.85rem 0;
}

.admin-row-k {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-row-t {
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.admin-list-compact .admin-row-t {
  font-size: 0.9rem;
}

.admin-row-d {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
  word-break: break-word;
}

.admin-list-compact .admin-row-d {
  max-width: 680px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.admin-row-actions {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.admin-mini,
.btn.admin-mini {
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  font-size: 0.62rem;
}

.admin-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-card form .actions {
  margin-top: 1.4rem;
}

.admin-newsletter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-newsletter-head .admin-title,
.admin-newsletter-head .admin-hint {
  margin-bottom: 0;
}

.admin-newsletter-row .admin-row-t a {
  color: var(--ink);
  text-decoration: none;
}

.admin-newsletter-row .admin-row-t a:hover {
  color: var(--accent);
}

/* ADMIN UPLOAD */

.admin-dropzone {
  margin-top: 0.75rem;
  padding: 1.2rem;

  border: 1.5px dashed var(--line);
  background: var(--bg);
  color: var(--muted);

  cursor: pointer;
  text-align: center;

  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.admin-dropzone strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 0.95rem;
}

.admin-dropzone span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.5;
}

.admin-dropzone:hover,
.admin-dropzone.is-dragover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.admin-dropzone-large {
  min-height: 170px;
  display: grid;
  place-content: center;
}

.admin-image-preview {
  margin-top: 0.75rem;
}

.admin-image-preview img,
.admin-image-preview video {
  max-height: 240px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--grey-soft);
}

.admin-file-preview {
  min-height: 140px;
  padding: 1rem;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .sala-sole-home-grid,
  .spettacolo-detail-hero-grid,
  .spettacolo-info-grid,
  .spettacoli-index-layout,
  .trasparenza-info-grid {
    grid-template-columns: 1fr;
  }

  .sala-sole-home-media {
    min-height: 460px;
  }

  .spettacolo-meta-panel,
  .spettacoli-index-sidebar,
  .trasparenza-info-panel {
    position: static;
  }

  .spettacolo-detail-cover {
    min-height: 420px;
    height: 460px;
  }

  .spettacolo-detail-cover .public-file-cover,
  .spettacolo-cover-placeholder {
    min-height: 420px;
  }

  .spettacolo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spettacoli-dense-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .site-cta {
    display: none;
  }

  .site-menu-toggle {
    display: inline-flex;
  }

  .menu-open .site-mobile-nav {
    display: block;
  }

  .grid.two,
  .grid.three,
  .footer-inner,
  .hero-sala-grid,
  .spettacoli-hero-clean-grid,
  .bandi-hero-clean-grid,
  .progetti-speciali-hero-grid,
  .trasparenza-hero-grid,
  .chi-siamo-hero-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-gallery,
  .spettacoli-hero-stack,
  .bandi-hero-visual,
  .progetti-speciali-visual,
  .chi-siamo-hero-visual {
    height: 420px;
    min-height: 420px;
  }

  .trasparenza-hero-visual {
    min-height: 420px;
  }

  .hero-collage-bg {
    inset: auto 1.2rem 2rem 1.2rem;
    height: 280px;
    opacity: 0.26;
  }

  .hero-collage {
    align-items: flex-start;
    padding-top: 6rem;
    padding-bottom: 20rem;
  }

  .hero-collage::before {
    background:
      linear-gradient(
        to bottom,
        rgba(247, 247, 245, 0.98) 0%,
        rgba(247, 247, 245, 0.92) 55%,
        rgba(247, 247, 245, 0.68) 100%
      );
  }

  .hero-collage-img {
    min-height: 130px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-year {
    justify-content: flex-start;
  }

  .timeline-content {
    padding: 1.4rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-right: 1px solid var(--line);
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .public-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spettacoli-home-style-grid .image-card img,
  .spettacoli-home-style-grid .image-card video,
  #spettacoli-attivi .image-card img,
  #spettacoli-attivi .image-card video {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .hero-collage-bg,
  .hero-gallery,
  .spettacoli-hero-stack,
  .bandi-hero-visual,
  .progetti-speciali-visual,
  .chi-siamo-hero-visual,
  .trasparenza-hero-visual {
    display: none;
  }

  .hero-collage {
    padding-bottom: 4.2rem;
  }

  .hero-collage::before {
    background: rgba(247, 247, 245, 0.96);
  }

  .hero-sala {
    min-height: auto;
  }

  .admin-tabs {
    position: static;
  }

  .spettacolo-compact-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .spettacolo-compact-meta {
    display: none;
  }

  .spettacolo-compact-thumb {
    height: 72px;
  }

  .spettacoli-dense-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 1rem;
    padding: 1rem 1.1rem;
  }

  .site-logo-img {
    width: 96px;
  }

  .site-menu-toggle {
    width: 40px;
    height: 40px;
  }

  .site-menu-bars {
    width: 20px;
    height: 15px;
  }

  .site-mobile-nav {
    padding-right: 1.1rem;
    padding-left: 1.1rem;
  }

  .page {
    padding-top: 72px;
  }

  .hero {
    min-height: auto;
    padding: 4.2rem 0;
  }

  .title {
    font-size: clamp(2.6rem, 15vw, 4.4rem);
    line-height: 0.92;
    overflow-wrap: anywhere;
  }

  .title.small {
    font-size: clamp(1.85rem, 10vw, 2.8rem);
  }

  .text {
    font-size: 0.84rem;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .actions {
    width: 100%;
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }

  .card {
    padding: 1.25rem;
  }

  .card h3,
  .card p,
  .footer-col a,
  .detail-text {
    overflow-wrap: anywhere;
  }

  .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .grid.four {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    height: 0;
    min-height: 0;
  }

  .hero-gallery-controls {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .hero-gallery-btn {
    width: 38px;
    height: 38px;
  }

  .hero-collage-bg {
    height: 240px;
    gap: 0.5rem;
  }

  .hero-collage {
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
  }

  .spettacoli-hero-stack,
  .bandi-hero-visual,
  .progetti-speciali-visual,
  .trasparenza-hero-visual,
  .chi-siamo-hero-visual,
  .sala-sole-home-media {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    min-height: 0;
  }

  .spettacoli-stack-img,
  .bandi-hero-img,
  .progetti-speciali-img,
  .chi-siamo-hero-img,
  .sala-sole-home-img,
  .trasparenza-doc-card {
    min-height: 220px;
  }

  .spettacoli-stack-img.is-large,
  .bandi-hero-img.is-large,
  .progetti-speciali-img.is-large,
  .chi-siamo-hero-img.is-large,
  .sala-sole-home-img.is-large,
  .trasparenza-doc-card.is-large {
    grid-row: auto;
  }

  .home-section-more {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-carousel-actions {
    width: 100%;
    flex-direction: column;
  }

  .home-carousel-actions .btn,
  .home-section-more .btn {
    width: 100%;
  }

  .newsletter-form button {
    width: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .admin-card {
    padding: 1rem;
  }

  .admin-row-actions {
    flex-wrap: wrap;
  }

  .public-media-grid {
    grid-template-columns: 1fr;
  }

  .spettacolo-detail-cover {
    min-height: 320px;
    height: 340px;
  }

  .spettacolo-detail-cover .public-file-cover,
  .spettacolo-cover-placeholder {
    min-height: 320px;
  }

  .spettacolo-gallery {
    grid-template-columns: 1fr;
  }

  .spettacolo-gallery-item {
    height: 240px;
  }
}
/* ─── GENERIC DETAIL PAGE ───────────────────── */

.detail-page {
  background: var(--bg);
}

.detail-hero {
  padding: clamp(4rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--line);

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 247, 245, 1)),
    radial-gradient(circle at 84% 16%, rgba(181, 18, 27, 0.08), transparent 34%);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.detail-hero-text {
  max-width: 700px;
}

.detail-lead {
  max-width: 680px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.65;
}

.detail-hero-media {
  min-height: 500px;
  height: min(66vh, 620px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--grey-soft);
}

.detail-hero-media img,
.detail-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-media .public-file-cover {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.detail-placeholder {
  width: 100%;
  height: 100%;
  min-height: 500px;
  padding: 2rem;

  display: grid;
  place-items: center;

  background: var(--dark);
  color: #fff;
}

.detail-placeholder span {
  max-width: 420px;

  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-align: center;
}

.detail-main {
  padding-top: clamp(4rem, 7vw, 6rem);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.detail-meta-panel {
  position: sticky;
  top: 96px;

  padding-top: 0.4rem;
  border-top: 3px solid var(--accent);
}

.detail-meta-item {
  margin: 1.4rem 0;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.detail-meta-item strong {
  display: block;
  margin-bottom: 0.35rem;

  color: var(--ink);
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: -0.02em;
}

.detail-meta-item span,
.detail-meta-item a {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  word-break: break-word;
}

.detail-meta-item a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.detail-meta-item a:hover {
  text-decoration: underline;
}

.detail-content {
  max-width: 860px;
}

.detail-content h2 {
  margin-bottom: 1.5rem;

  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.detail-content p {
  margin-bottom: 1.15rem;

  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.9;
}

.detail-document-box {
  margin-top: 2rem;
  padding: 1.4rem;

  background: var(--bg);
  border: 1px solid var(--line);
}

.detail-document-box h3 {
  margin-bottom: 0.75rem;

  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: -0.035em;
}

.detail-document-box p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 1000px) {
  .detail-hero-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta-panel {
    position: static;
  }

  .detail-hero-media {
    min-height: 420px;
    height: 460px;
  }

  .detail-hero-media .public-file-cover,
  .detail-placeholder {
    min-height: 420px;
  }
}

@media (max-width: 560px) {
  .detail-hero-media {
    min-height: 320px;
    height: 340px;
  }

  .detail-hero-media .public-file-cover,
  .detail-placeholder {
    min-height: 320px;
  }
}
/* ─── PROGETTI SPECIALI — CARD SENZA FOTO ───── */

.progetto-speciale-card-clean {
  min-height: 280px;
}

.progetto-speciale-card-clean h3 {
  max-width: 520px;
}

.progetto-speciale-card-clean p {
  max-width: 720px;
}

.progetto-speciale-card-clean .card-meta {
  margin-top: auto;
}
