/* ── OAT VARIABLE OVERRIDES — CHIARO (avorio/carta) ── */
:root {
  color-scheme: light;

  --background:         rgb(247 243 236);
  --foreground:         rgb(26 21 18);
  --card:               rgb(255 253 248);
  --card-foreground:    rgb(26 21 18);
  --muted:              rgb(238 231 220);
  --muted-foreground:   rgb(112 100 88);
  --faint:              rgb(242 236 227);
  --faint-foreground:   rgb(150 138 124);
  --accent:             rgb(238 231 220);
  --accent-foreground:  rgb(26 21 18);
  --secondary:          rgb(238 231 220);
  --secondary-foreground: rgb(26 21 18);
  --border:             rgb(224 214 200);
  --input:              rgb(224 214 200);
  --ring:               rgb(150 32 40);

  /* rosso velluto */
  --primary:            rgb(150 32 40);
  --primary-foreground: rgb(255 253 248);

  /* layout */
  --max-w: 1320px;
  --ease:  0.18s ease;
  --r:     12px;
  --header-bg: rgba(247, 243, 236, 0.88);

  /* grana di pagina + "schermo" (fasce orario delle tessere) */
  --grain:     rgba(60 40 20 / 0.05);
  --screen-bg: rgb(16 13 12);
  --screen-fg: rgb(247 243 236);

  /* typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* typography scale */
  --fs-2xs:  0.7rem;   /* badges, micro-labels, buttons */
  --fs-xs:   0.8rem;   /* footer, notes, secondary nav */
  --fs-sm:   0.9rem;   /* nav links, card desc, body secondary */
  --fs-base: 1rem;     /* card date, card price, card-info */
  --fs-md:   1.1rem;   /* card title, info-text, section values */
  --fs-lg:   1.3rem;   /* contatti, prominent links */
  --fs-xl:   1.6rem;   /* cinema card title */
}

/* ── OAT VARIABLE OVERRIDES — SCURO (sala) ───── */
[data-theme="dark"] {
  color-scheme: dark;

  --background:         rgb(18 15 14);
  --foreground:         rgb(242 236 228);
  --card:               rgb(28 23 21);
  --card-foreground:    rgb(242 236 228);
  --muted:              rgb(40 33 30);
  --muted-foreground:   rgb(160 146 134);
  --faint:              rgb(33 27 25);
  --faint-foreground:   rgb(140 126 114);
  --accent:             rgb(40 33 30);
  --accent-foreground:  rgb(242 236 228);
  --secondary:          rgb(40 33 30);
  --secondary-foreground: rgb(242 236 228);
  --border:             rgba(255 240 220 / 0.10);
  --input:              rgba(255 240 220 / 0.10);
  --ring:               rgb(198 154 74);

  /* ottone: vuole testo scuro sopra */
  --primary:            rgb(198 154 74);
  --primary-foreground: rgb(20 16 14);

  --header-bg: rgba(18, 15, 14, 0.88);

  --grain:     rgba(255 240 220 / 0.035);
  --screen-bg: rgb(10 8 8);
  --screen-fg: rgb(242 236 228);
}

/* ── BASE ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

/* Grana leggerissima su tutta la pagina: la stessa texture dell'hero,
   tenuta dietro al contenuto (z-index -1) cosi' non intercetta i click. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--grain) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ── HEADER ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.header-inner {
  margin: 2rem auto;
  padding: 0px 5rem;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.main-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  transition: color var(--ease);
}
.main-nav a:hover { color: var(--foreground); }
.main-nav a[aria-current="page"] { color: var(--foreground); }
.mobile-nav a[aria-current="page"] { color: var(--foreground); }

/* theme toggle */
.theme-toggle {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 6px !important;
  border-radius: 50% !important;
  cursor: pointer;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--foreground); }

.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  padding: 4px !important;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--foreground);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--muted);
  padding: 0.75rem 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.mobile-nav a:last-child { border-bottom: none; }

/* ── HERO — cinema screen ────────────────────── */
.hero-screen-wrap {
  margin: 1.25rem 0 0;
  /* padding: 0 5rem; */
}

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2.20 / 1;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  /* Schermo spento finche' l'immagine non e' pronta */
  background: #000;
}

/* ── Attesa immagine hero ─────────────────────
   La classe .hero-wait la mette uno script inline nel <head> e la
   toglie quando lo sfondo e' caricato (o dopo 2s, quel che viene prima).
   Senza JS la classe non esiste mai e le animazioni partono subito. */
.hero-wait .letterbox-bar,
.hero-wait .hero-bg,
.hero-wait .hero-eyebrow,
.hero-wait .hero-title,
.hero-wait .hero-desc {
  animation-play-state: paused;
}

/* ── Letterbox bars ───────────────────────────── */
@keyframes letterboxGrow {
  /* from { transform: scaleY(1); }
  to   { transform: scaleY(0); } */
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.letterbox-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 15%;
  background: #000;
  z-index: 3;
  pointer-events: none;
}
.letterbox-top {
  top: 0;
  transform-origin: top;
  animation: letterboxGrow 5s cubic-bezier(0.80, 0.80, 0.70, 0.64) forwards;
  animation-delay: 0s;
}
.letterbox-bottom {
  bottom: 0;
  transform-origin: bottom;
  animation: letterboxGrow 5s cubic-bezier(0.80, 0.80, 0.70, 0.64) forwards;
  animation-delay: 0s;
}

/* ── Background: slow zoom-in + B&W → colour ── */
@keyframes cinemaZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.10); }
}
@keyframes cinemaColour {
  0%   { filter: grayscale(100%) brightness(0.6); }
  30%  { filter: grayscale(90%)  brightness(0.7); }
  100% { filter: grayscale(0%)   brightness(1);   }
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* background-image: url('../images/orciano-66.jpg'); */
  background-image: url('../images/orciano-66.webp');
  /* background-image: url('../images/IMG_6646.webp'); */
  background-size: cover;
  background-position: center 55%;
  z-index: 0;
  animation:
    cinemaZoom   7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
    cinemaColour  4s ease forwards;
}

/* ── Gradient vignette ────────────────────────── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.42) 55%,
    rgba(0, 0, 0, 0.80) 100%
  );
  pointer-events: none;
}

[data-theme="dark"] .hero::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.20) 0%,
    rgba(0, 0, 0, 0.60) 55%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

/* ── Projection screen weave texture ─────────── */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* dot matrix simulating screen perforation weave */
  background-image:
    radial-gradient(ellipse 55% 55% at 50% 40%, rgba(255,255,255,0.07) 0%, transparent 70%),
    radial-gradient(circle, rgba(0,0,0,0.20) 0.6px, transparent 0.6px);
  background-size: 100% 100%, 3px 3px;
}

/* ── Title animations ─────────────────────────── */
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-content {

  /* position: relative; */
  margin: auto;
  text-align: center;
  width: 100%;
  padding: 3rem 2.5rem 3.5rem;
  z-index: 4;
}

.hero-eyebrow {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.1rem;
  animation: heroFadeIn 3.2s ease 0.6s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.4vw, 6.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 1.5rem 0rem;
  color: rgb(250 246 240);
  animation: heroFadeIn 8.2s ease 0.6s both;
}

.hero-desc {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  /* max-width: 520px; */
  line-height: 1.55;
  animation: heroFadeIn 3.2s ease 0.6s both;
}

/* ── MAIN ────────────────────────────────────── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 5rem 5rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 3.5rem 0 2.5rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}

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

/* ── CALENDARIO — navigazione ─────────────────── */
.calendar-header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-nav-btn,
.cal-today-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--muted) !important;
  color: var(--foreground);
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.cal-nav-btn {
  width: 38px;
  height: 38px;
  padding: 0 !important;
  border-radius: 50% !important;
}
.cal-today-btn {
  height: 38px;
  padding: 0 1rem !important;
  border-radius: 999px !important;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cal-nav-btn:hover,
.cal-today-btn:hover { background: var(--primary) !important; color: var(--primary-foreground); border-color: var(--primary) !important; }

.cal-period {
  min-width: 9rem;
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── CALENDARIO — griglia ─────────────────────── */
.calendar { animation: fadeUp 0.3s ease both; }

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.6rem;
  align-items: start;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}
.cal-week:last-child { border-bottom: none; }

.cal-day {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cal-day.is-outside { opacity: 0.38; }
.cal-day.is-outside.is-today { opacity: 1; }

.cal-day-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.5rem 0.25rem;
  border-radius: var(--r);
  background: var(--muted);
  color: var(--muted-foreground);
  margin-bottom: 0.6rem;
}
.cal-dow {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cal-dnum {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.1;
}
.cal-dmonth { display: none; } /* mostrato solo su mobile (agenda verticale) */

/* stati giorno */
.cal-day.is-past   .cal-day-head { opacity: 0.5; }
.cal-day.is-past   .cal-day-body { opacity: 0.55; }
.cal-day.is-weekend .cal-day-head { color: var(--foreground); }
.cal-day.is-today  .cal-day-head {
  background: var(--primary);
  color: var(--primary-foreground);
}

.cal-day-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cal-empty { min-height: 1px; }

/* ── CALENDARIO — tessera film ────────────────── */
.cal-tile {
  display: block;
  width: 100%;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  cursor: pointer;
  text-align: left;
  border-radius: 0;
  overflow: hidden;
}
.cal-tile-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.35rem;
  background: var(--screen-bg);
  color: var(--screen-fg);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.cal-tile-time svg { flex-shrink: 0; opacity: 0.85; }

.cal-tile-label {
  display: block;
  padding: 0.45rem 0.5rem;
  background: var(--muted);
  color: var(--foreground);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.3;
  transition: background var(--ease);
}
.cal-tile:hover .cal-tile-label { background: var(--accent); }
.cal-tile:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ── VETRINA LOCANDINE ────────────────────────── */
.cal-section-header {
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 3.5rem;
}
.cal-section-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem 2rem;
  animation: fadeUp 0.3s ease both;
}

.film-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.film-poster {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0;
  overflow: hidden;
  background: var(--faint);
  cursor: pointer;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.film-card:hover .film-poster img { transform: scale(1.04); }
.film-card:hover .film-poster {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -12px rgba(40, 28, 16, 0.45);
}
/* nel tema scuro la locandina si illumina come in una bacheca */
[data-theme="dark"] .film-card:hover .film-poster {
  box-shadow:
    0 0 0 1px rgba(198, 154, 74, 0.35),
    0 14px 34px -10px rgba(198, 154, 74, 0.30);
}
.film-poster:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.film-poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--muted-foreground);
  text-align: center;
  line-height: 1.3;
}

.film-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 1rem;
}

.film-cat {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.4rem;
}

.film-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.85rem;
}

.film-dates {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.film-dates li { display: flex; }

.film-date {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem !important;
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: var(--fs-sm);
  color: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.film-date-day { font-weight: 600; }
.film-date-ora { color: var(--muted-foreground); }
.film-date-icon { align-self: center; opacity: 0.55; }

.film-date:hover {
  border-color: var(--primary) !important;
  color: var(--primary);
}
.film-date.is-buyable:hover {
  background: var(--primary) !important;
  color: var(--primary-foreground);
}
.film-date.is-buyable:hover .film-date-ora { color: inherit; opacity: 0.85; }
.film-date.is-buyable:hover .film-date-icon { opacity: 1; }
.film-date:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.film-date.is-today {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--primary-foreground);
}
.film-date.is-today .film-date-ora { color: inherit; opacity: 0.85; }
.film-date.is-today:hover { opacity: 0.85; }
.film-date.is-past { opacity: 0.45; }

.film-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}
.film-price {
  font-size: var(--fs-md);
  font-weight: 600;
}
.film-link {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  transition: opacity var(--ease);
}
.film-link:hover { opacity: 0.7; }

/* la trama compare solo nel formato "in evidenza" */
.film-desc { display: none; }

/* ── VETRINA — un solo film: locandina grande e scheda a fianco ── */
.film-grid--single { grid-template-columns: 1fr; }
.film-grid--single .film-card {
  flex-direction: row;
  align-items: center;
  gap: 3rem;
}
.film-grid--single .film-poster {
  width: clamp(280px, 30vw, 380px);
  flex-shrink: 0;
}
.film-grid--single .film-info {
  padding-top: 0.5rem;
  max-width: 46ch;
}
.film-grid--single .film-title {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin-bottom: 1.1rem;
}
.film-grid--single .film-dates {
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.film-grid--single .film-date {
  font-size: var(--fs-base);
  padding: 0.5rem 1rem !important;
}
.film-grid--single .film-desc { font-size: var(--fs-md); }
.film-grid--single .film-desc {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--muted-foreground);
  margin: 0 0 1.5rem;
}
.film-grid--single .film-foot {
  margin-top: 0;
  justify-content: flex-start;
  gap: 2.5rem;
}

/* ── MODALE DETTAGLIO ─────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; }

.modal-card {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: hidden;
  background: var(--card, var(--background));
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal-card { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  color: #fff;
  box-shadow: none !important;
  cursor: pointer;
}
.modal-close:hover { background: rgba(0, 0, 0, 0.75) !important; }

.modal-poster {
  flex-shrink: 0;
  width: 40%;
  background: var(--faint);
}
.modal-poster img { width: 100%; height: 100%; object-fit: cover; }
.modal-poster-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-align: center;
}

.modal-body {
  flex: 1;
  padding: 2rem 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.modal-cat {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.modal-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.modal-dates { margin: 0.5rem 0 0.25rem; }
.modal-dates-title {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 0.6rem;
}
.modal-dates ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-date {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: var(--fs-sm);
  transition: background var(--ease), border-color var(--ease);
}
.modal-date-day { font-weight: 600; }
.modal-date-ora { color: var(--muted-foreground); }
.modal-date.is-static { color: var(--muted-foreground); }

.modal-date-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  white-space: nowrap;
}
a.modal-date:hover {
  background: var(--faint);
  border-color: var(--primary);
}
a.modal-date:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.modal-desc {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0.4rem 0 0;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
}
.modal-price {
  font-size: var(--fs-md);
  font-weight: 600;
}

.card-info-sala {
  font-size: var(--fs-sm);
  color: var(--muted-foreground);
}

/* ── LOADING / EMPTY ─────────────────────────── */
.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 5rem 2rem;
  color: var(--muted-foreground);
  font-size: var(--fs-sm);
}
.loading-state p { margin: 0; }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted-foreground);
  font-size: var(--fs-sm);
}
.no-results p { margin: 0; }

/* ── PAGE SECTIONS ───────────────────────────── */
.page-section {
  border-top: 1px solid var(--border);
}

.page-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 5rem 5rem;
}

.page-section-inner h2 { margin-bottom: 2.5rem; }

/* shared info label / text */
.info-label {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 0.35rem;
}
.info-text {
  font-size: var(--fs-md);
  line-height: 1.6;
  margin: 0 0 2rem;
}

/* ── PAGINE INTERNE (ringraziamenti, ecc.) ───── */
.page-section--first { border-top: none; display: block; }

.page-eyebrow {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 0.75rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1.5rem;
}

.page-lead {
  font-size: var(--fs-md);
  line-height: 1.7;
  max-width: 60ch;
  color: var(--muted-foreground);
  margin: 0;
}

/* ── DONATORI ────────────────────────────────── */
.donatori-gruppo { margin-bottom: 2.5rem; }

.donatori-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem 2rem;
}

.donatori-lista li {
  font-size: var(--fs-base);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.donatori-nota {
  font-size: var(--fs-sm);
  color: var(--muted-foreground);
  margin: 1.5rem 0 0;
  max-width: 60ch;
}

/* ── DOVE SIAMO ──────────────────────────────── */
.dove-siamo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.dove-siamo-map {
  height: 380px;
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ── PREZZI ──────────────────────────────────── */
.prezzi-section {
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.prezzi-cols { display: flex; gap: 4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.prezzi-cat { display: flex; flex-direction: column; gap: 0.3rem; }

.prezzi-cat strong {
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.4rem;
  display: block;
}

.prezzi-cat span { font-size: var(--fs-md); }

.prezzi-note {
  font-size: var(--fs-xs);
  color: var(--muted-foreground);
  line-height: 1.6;
  margin: 0;
}

/* ── CONTATTI ────────────────────────────────── */
.contatti-grid {
  display: flex;
  gap: 5rem;
  flex-wrap: wrap;
}

.contatti-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contatti-link {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--foreground);
  transition: color var(--ease);
}
.contatti-link:hover { color: var(--primary); }

.contatti-social {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.contatti-social a {
  color: var(--muted-foreground);
  transition: color var(--ease);
}
.contatti-social a:hover { color: var(--foreground); }

/* ── FOOTER ──────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.footer-brand { flex: 1; min-width: 160px; }

.footer-brand address {
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-top: 0.5rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: var(--fs-xs); color: var(--muted-foreground); transition: color var(--ease); }
.footer-links a:hover { color: var(--foreground); }

.footer-social { display: flex; gap: 1rem; align-items: center; }
.footer-social a { color: var(--muted-foreground); transition: color var(--ease); }
.footer-social a:hover { color: var(--foreground); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--muted-foreground);
}
.footer-bottom p { margin: 0; }

/* ── LAVORI IN CORSO (src/wip.html) ──────────── */
.wip {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.wip .logo-main {
  color: var(--primary);
  margin-bottom: 3rem;
}
.wip .page-lead { max-width: 46ch; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  /* logo left, controls right */
  .logo-main { margin-right: auto; }

  .hero-screen-wrap { /* padding: 0 1rem; */ }
  .hero { aspect-ratio: 16 / 9; }
  .hero-content { padding: 2.5rem 1.5rem 2.5rem; }
  main  { padding: 0 1.5rem 4rem; }

  .section-header { padding: 2.5rem 0 2rem; }
  .calendar-header { gap: 1rem; }

  /* calendario: agenda verticale su mobile ─ un giorno per riga */
  .cal-week {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* annulla l'align-items: start della griglia desktop */
    gap: 1.25rem;
    padding: 0;
    border-bottom: none;
  }
  .cal-week + .cal-week { margin-top: 1.25rem; }

  /* giorni e settimane senza film non occupano spazio in agenda */
  .cal-day.is-empty { display: none; }
  .cal-week.is-empty { display: none; }

  .cal-day-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    margin-bottom: 0.85rem;
  }
  .cal-dow { font-size: var(--fs-sm); }
  .cal-dnum { font-size: var(--fs-md); }
  .cal-dmonth {
    display: inline;
    font-size: var(--fs-sm);
    font-weight: 500;
  }
  .cal-day.is-past .cal-day-head,
  .cal-day.is-past .cal-day-body { opacity: 1; } /* in agenda mostriamo comunque i giorni passati con film */

  /* in agenda le tessere sono righe: orario a sinistra, titolo a destra */
  .cal-day-body { gap: 0.5rem; }
  .cal-tile { display: flex; align-items: stretch; }
  .cal-tile-time { flex-shrink: 0; padding: 0.5rem 0.7rem; }
  .cal-tile-label {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: var(--fs-xs);
    padding: 0.5rem 0.7rem;
  }

  .cal-section-header { padding: 2.5rem 0 1.25rem; margin-top: 2.5rem; }
  .film-grid { gap: 2rem 1.25rem; }
  .film-grid--single .film-card { flex-direction: column; gap: 0; }
  .film-grid--single .film-poster { width: 100%; }
  .film-grid--single .film-info { padding-top: 1rem; }

  .modal-card { flex-direction: column; max-height: 88vh; }
  .modal-poster { width: 100%; max-height: 40vh; }
  .modal-poster img { max-height: 40vh; }
  .modal-body { padding: 1.5rem 1.25rem; }

  .page-section-inner { padding: 2.5rem 1.5rem 3.5rem; }

  .dove-siamo-layout { grid-template-columns: 1fr; gap: 2rem; }
  .dove-siamo-map { height: 280px; }

  .contatti-grid { gap: 2.5rem; }
  .prezzi-cols { gap: 2.5rem; }

  .footer-inner { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 1rem; }
  .logo-main { margin-right: auto; }
  .hero-screen-wrap { /* padding: 0 0.75rem; */ }
  .hero  { aspect-ratio: 4 / 3; }
  .hero-content { padding: 2rem 1.25rem 2rem; }
  main   { padding: 0 1rem 3rem; }
  .section-header { padding: 2rem 0 1.5rem; }
  .cal-day-body { gap: 0.5rem; }
  .cal-period { min-width: 6.5rem; font-size: var(--fs-sm); }
  .mobile-nav { padding: 0.75rem 1rem; }
  .page-section-inner { padding: 2rem 1rem 3rem; }
  .dove-siamo-map { height: 240px; }
  .contatti-link { font-size: var(--fs-md); }
  .footer-inner { padding: 2rem 1rem 1.5rem; }
  .footer-bottom { padding: 1rem; }
}
