/* Layout comune a tutte le pagine: header, hero e footer (core/templates/core/
   _site_header.html, _site_hero.html, _site_footer.html), inclusi da homepage,
   ricerca e pagine Django (base_page.html). Larghezza massima unica: 1440 px.
   Il font Outfit arriva dal CSS di ogni pagina. */

body {
  margin: 0;
  background: #f8fafc;
  color: #1e293b;
  font-family: "Outfit", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.6rem 2rem;
  font-family: "Outfit", system-ui, sans-serif;
}
.site-header img { display: block; width: 168px; height: auto; }
.site-header nav { display: flex; gap: 1.75rem; font-size: 15px; font-weight: 500; }
.site-header nav a { color: #1e293b; text-decoration: none; }
.site-header nav a:first-child { color: #2563eb; }
.site-header nav a:hover { color: #1d4ed8; text-decoration: underline; text-underline-offset: 4px; }
.site-header a:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
/* Area da toccare piu' alta del testo, senza spostare nulla (#70). */
.site-header nav a, .site-footer a { display: inline-block; padding-block: 0.6rem; margin-block: -0.6rem; }

/* Hero: fascia chiara con la foto del concerto a destra e il pentagramma a
   sinistra. La homepage aggiunge la ricerca rapida; la ricerca usa la variante
   compatta, con titolo e sottotitolo. */
.site-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(100deg, #eef4ff 0%, #f5f8ff 45%, #e8efff 100%);
  border-block: 1px solid #dbe6ff;
}
.site-hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 56%;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 38%);
  mask-image: linear-gradient(to right, transparent 0%, black 38%);
}
.site-hero-media picture { display: block; height: 100%; }
.site-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.site-hero-staff {
  position: absolute;
  left: -4%;
  top: 50%;
  width: 600px;
  max-width: 55%;
  height: auto;
  transform: translateY(-46%);
  opacity: 0.13;
  z-index: -1;
  pointer-events: none;
}
.site-hero-inner {
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto;
  padding: 3.25rem 2rem 2.25rem;
}
.site-hero h1 {
  max-width: 640px;
  margin: 0;
  color: #0f172a;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-hero-lead {
  max-width: 560px;
  margin: 0.9rem 0 1.6rem;
  color: #334155;
  font-size: 17px;
  line-height: 1.5;
}
.site-hero--compact .site-hero-inner { padding-block: 2.25rem; }
.site-hero--compact h1 { font-size: 36px; }
.site-hero--compact .site-hero-lead { margin-bottom: 0; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.25rem 2rem 2rem;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 13px;
}
.site-footer img { display: block; width: 120px; height: auto; opacity: 0.8; }
.site-footer p { flex: 1; margin: 0; text-align: right; }
.site-footer a { color: #1e293b; font-weight: 500; }
.site-footer a:hover { color: #2563eb; }
.site-footer a:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }


@media (max-width: 1000px) {
  .site-hero h1 { font-size: 36px; }
  .site-hero--compact h1 { font-size: 30px; }
}

@media (max-width: 640px) {
  .site-header { padding-inline: 1rem; }
  .site-header img { width: 140px; }
  .site-hero-inner { padding-inline: 1rem; }
  /* Su telefono (#70, proposta B): la foto resta a destra come su desktop, piu'
     presente, e il testo le passa davanti con un alone dello sfondo. */
  .site-hero-media {
    width: 78%;
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 55%);
    mask-image: linear-gradient(to right, transparent 0%, black 55%);
  }
  .site-hero-media img { object-position: 70% 40%; }
  .site-hero h1 { max-width: 82%; font-size: 28px; text-shadow: 0 1px 12px rgb(238 244 255 / 90%); }
  .site-hero-lead { max-width: 70%; text-shadow: 0 1px 10px rgb(238 244 255 / 95%); }
  .site-hero-staff { width: 420px; max-width: none; left: -70px; opacity: 0.16; }
  .site-hero--compact .site-hero-inner { padding-block: 1.25rem; }
  .site-hero--compact h1 { font-size: 24px; }
  .site-header nav { gap: 0.9rem; font-size: 13.5px; white-space: nowrap; }
  /* Homepage: tre collegamenti, sotto il logo. */
  .site-header-band--home .site-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .site-footer { flex-wrap: wrap; padding-inline: 1rem; }
  .site-footer p { flex-basis: 100%; order: 3; text-align: left; }
}
