* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
  color: #1f2937;
  background: #fff;
}

/* Left-side vertical menu */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 24px 16px;
  background: #fff;
  color: #1f2937;
  border-right: 1px solid #e5e7eb;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar a {
  padding: 12px;
  border-radius: 6px;
  color: #1f2937;
  text-decoration: none;
}

.sidebar a:hover,
.sidebar a:focus-visible {
  background: #f3f4f6;
}

/* Logo at the top of the menu */
.sidebar .brand {
  display: flex;
  flex-direction: column;   
  justify-content: center;
  align-items: center;
  text-align: center;       
  margin-bottom: 24px;
  padding: 0;
}

.sidebar .brand p {
  margin: 8px 0 0;          
}

.sidebar .brand:hover,
.sidebar .brand:focus-visible {
  background: transparent;
}

.brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 150px;
}

/* Stile per la scritta sotto il logo */
.sidebar p.brand,
.brand-text {
  font-size: 1.25rem;       
  font-weight: bold;        
  line-height: 1.2;         
  color: #1f2937;
  margin: 12px 0 0;         
  text-align: center;
}

/* Bold the selected menu link */
.sidebar nav a[aria-current="page"] {
  font-weight: bold;
}

/* Page content and footer */
main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 250px;
  padding: 32px;
  background: #fff;
}

.page-content {
  flex: 1;
}

footer {
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Hidden on desktop */
.menu-toggle,
.backdrop {
  display: none;
}

/* L'header mobile è nascosto di default su desktop */
.mobile-header {
  display: none;
}

/* Small screens / Mobile */
@media (max-width: 700px) {
  .sidebar {
    z-index: 3;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: inline-flex;
    position: fixed;
    z-index: 4;
    top: 8px;
    left: 16px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #1f2937;
    font: inherit;
    font-size: 24px;
    cursor: pointer;
  }

  .menu-toggle:focus-visible {
    outline: 2px solid #1f2937;
    outline-offset: 2px;
  }

  .backdrop.is-visible {
    display: block;
    position: fixed;
    z-index: 2;
    inset: 0;
    background: rgb(0 0 0 / 35%);
  }

  .mobile-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 3;
    padding: 8px 16px;
  }

  .mobile-header img {
    max-height: 40px;
    width: auto;
    display: block;
  }

  main {
    margin-left: 0;
    padding: 76px 20px 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar {
    transition: none;
  }
}

.social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ==========================================================================
   Griglia Film (Homepage)
   ========================================================================== */
.prossimi-film-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
  gap: 20px; 
  margin-top: 20px; 
}

.film-card { 
  background: #fff; 
  border: 1px solid #e0e0e0; 
  border-radius: 8px; 
  padding: 15px; 
  box-shadow: 0 2px 4px rgba(0,0,0,0.05); 
}

.film-poster img { 
  width: 100%; 
  height: auto; 
  border-radius: 4px; 
  display: block; 
  margin-bottom: 10px; 
}

.film-title { font-size: 1.2rem; margin: 10px 0 5px 0; }
.film-meta { font-size: 0.9rem; color: #666; margin-bottom: 8px; }
.film-description { font-size: 0.95rem; color: #444; margin-bottom: 12px; }
.film-shows h4 { font-size: 0.95rem; margin-bottom: 5px; color: #222; }
.film-shows ul { margin: 0; padding-left: 20px; font-size: 0.9rem; color: #555; }

/* ==========================================================================
   Carosello Banner Homepage (Ottimizzato per Firefox e Chrome)
   ========================================================================== */
.home-carousel {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: #f9fafb;
}

.home-carousel .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.banner-card {
  position: relative;
  display: block;
  width: 100%;
  height: 380px;
}

.banner-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.banner-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 32px 40px;
  color: #ffffff;
  max-width: 650px;
}

.banner-content h3 {
  font-size: 1.8rem;
  margin: 0 0 8px 0;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
  font-size: 1.05rem;
  margin: 0 0 16px 0;
  line-height: 1.4;
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-btn {
  display: inline-block;
  padding: 8px 18px;
  background: #ffffff;
  color: #1f2937;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
}

.banner-btn:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}

.home-carousel .swiper-button-next,
.home-carousel .swiper-button-prev {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.home-carousel .swiper-pagination-bullet-active {
  background: #ffffff;
}

@media (max-width: 700px) {
  .banner-card {
    height: 280px;
  }

  .banner-content {
    padding: 20px;
  }

  .banner-content h3 {
    font-size: 1.3rem;
  }

  .banner-content p {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Stili Pagine Statiche (Come Raggiungerci, Info Sala, Promo)
   ========================================================================== */
.route-page {
  max-width: 1100px;
  margin: 0 auto;
}

.route-page h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #1f2937;
}

.route-intro {
  font-size: 1.05rem;
  color: #4b5563;
  margin-bottom: 24px;
}

.map-container {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 28px;
}

/* Contenitori per le pagine statiche (Spaziatura verticale uniforme garantita) */
.page-grid,
.route-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin-bottom: 32px;
}

.route-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin: 0; /* Evita margini in conflitto che uniscono i box */
}

.route-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 12px;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.route-card ol {
  margin: 0;
  padding-left: 20px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.route-card li {
  margin-bottom: 6px;
}

.route-contact-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-top: 24px;
}

.route-contact-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.route-contact-card p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.route-contact-card a {
  color: #1f2937;
  text-decoration: underline;
}

/* Tabelle e liste interne alle card */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.95rem;
}

.info-table td {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table td strong {
  color: #1f2937;
}

.tech-list {
  margin: 0;
  padding-left: 20px;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tech-list li {
  margin-bottom: 8px;
}

/* ==========================================================================
   Stile Footer Allineato alla Griglia della Pagina
   ========================================================================== */
footer {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.footer-info p {
  margin: 0;
  line-height: 1.5;
}

.footer-info a {
  color: #1f2937;
  text-decoration: underline;
}

.footer-info a:hover {
  color: #000;
}

.social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.social img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: opacity 0.2s;
}

.social img:hover {
  opacity: 0.8;
}

/* Adattamento Footer per Mobile */
@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* ==========================================================================
   Stile Evidenziato per le Date di Proiezione (Homepage)
   ========================================================================== */
.film-shows {
  margin-top: 16px;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
}

.film-shows h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Stile Date di Proiezione (Uniformato a "Prossimamente")
   ========================================================================== */
.screening-pills-container {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Spazio verticale tra le singole date */
  margin-top: 10px;
}

.screening-pill {
  background: #f3f4f6; /* Stesso sfondo di Prossimamente */
  border-left: 4px solid #1f2937; /* Stesso bordo marcato a sinistra */
  padding: 10px 14px;
  font-weight: bold;
  color: #1f2937;
  font-size: 0.95rem;
  border-radius: 0px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: background-color 0.2s ease;
}

.screening-pill:hover {
  background: #e5e7eb; /* Effetto hover leggero */
}

/* Eventuale badge per i formati speciali (2D, 3D, etc.) all'interno della pillola */
.showspec-badge {
  font-size: 0.85rem;
  font-weight: normal;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.screening-pill i {
  color: #475569;
}
