/* NILAI — Harmonia visual dels primers blocs del menú principal.
   Només portades de secció. Disseny d'escriptori >= 1100px.
   Les pàgines interiors, els H2, el SEO i els formularis no es toquen.
   v2 · 07/11/2026
*/

/* Les pàgines d'Esdeveniments i Contacte no eliminaven el marge
   de 8px per defecte de l'element <body>. */
body { margin: 0; }

@media (min-width: 1100px) {
  :root {
    --nilai-hero-padding-top: 58px;
    --nilai-hero-padding-bottom: 40px;
  }

  /* Mateix inici de text i escala, però l'alçada és natural segons el contingut. */
  body main > section.hero:first-child,
  body main > section.horaris-hero:first-child,
  body main > section.ev2-hero:first-child,
  body main > section.ac2-hero:first-child,
  body main.nc > section.nc-hero:first-child {
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    padding: var(--nilai-hero-padding-top) 0 var(--nilai-hero-padding-bottom);
  }

  /* Escala tipogràfica comuna a les vuit portades: independent
     de si el paquet de tipografia anterior ja és al servidor. */
  body main > section.hero:first-child h1,
  body main > section.horaris-hero:first-child h1,
  body main > section.ev2-hero:first-child h1,
  body main > section.ac2-hero:first-child h1,
  body main.nc > section.nc-hero:first-child h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(52px, 5.25vw, 76px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.035em;
    color: #9F066B;
  }

  body main > section.hero:first-child .kicker,
  body main > section.horaris-hero:first-child .kicker,
  body main > section.ev2-hero:first-child .ev2-kicker,
  body main > section.ac2-hero:first-child .ac-kicker,
  body main.nc > section.nc-hero:first-child .nc-kicker {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .21em;
    text-transform: uppercase;
    color: #9F066B;
    margin: 0 0 14px;
  }

  /* Alineem el principi de les etiquetes i els títols.
     Evita el centrat automàtic que feia "ballar" el text. */
  body main > section.hero:first-child .hero-grid,
  body main > section.horaris-hero:first-child .horaris-hero-grid {
    align-items: start;
  }

  /* La foto de Home manté les seves proporcions; sense alçada imposada. */
  body main > section.hero:first-child .hero-media {
    max-width: 540px;
    width: 100%;
    justify-self: end;
  }

  /* Contacte distribuïa l'espai vertical al contenidor intern.
     Ara la gestió de l'alçada i el padding correspon a .nc-hero. */
  body main.nc > section.nc-hero:first-child > .nc-hero-grid {
    height: auto;
    min-height: 0;
    padding: 0;
    align-items: start;
  }

  /* El primer bloc s'alinea també en horitzontal amb el patró general. */
  body main > section.ev2-hero:first-child > .ev2-wrap,
  body main > section.ac2-hero:first-child > .ac-wrap,
  body main.nc > section.nc-hero:first-child > .nc-wrap {
    width: min(1160px, calc(100% - 44px));
    margin-inline: auto;
  }
}
