/* ──────────────────────────────────────────
   FONTS
────────────────────────────────────────── */

/* ──────────────────────────────────────────
   RESET & BASE
────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #ff2fa0;
  --pad:  40px;
}

html, body {
  width: 100%;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

/* ──────────────────────────────────────────
   TOP WRAP (nav + hero/page-header container)
────────────────────────────────────────── */
.top-wrap { position: relative; }

/* ──────────────────────────────────────────
   NAV
────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px var(--pad);
  position: relative;
  z-index: 20;
}

/* On index.html, malta logo is absolute and hidden in nav.
   On subpages (.nav--withlogo), it's inline in the nav. */
.nav__malta { display: none; }

.nav--withlogo {
  justify-content: space-between;
}
.nav--withlogo .nav__malta {
  display: block;
  height: 70px;
  width: auto;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.nav__sep  { opacity: .4; }
.nav__link { opacity: .85; transition: opacity .2s; }
.nav__link:hover { opacity: .45; }
.nav__link.is-active { opacity: 1; color: var(--pink); }
.ticket-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pink);
  color: #000;
  font-weight: 700;
  line-height: 1;
  transition: background .2s, color .2s;
}
.ticket-button:hover { background: #fff; color: #000; }
.nav__ticket { padding: 11px 16px; white-space: nowrap; }
.hero__ticket { margin-top: 22px; padding: 15px 22px; font-size: 16px; }
.mobile-ticket { margin-top: 8px; padding: 15px 18px; align-self: flex-start; }
.preview-badge {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 500;
  padding: 12px 8px;
  background: #000;
  color: var(--pink);
  border: 1px solid var(--pink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  pointer-events: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.nav__lang {
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,.2);
  opacity: .85;
  transition: opacity .2s;
}
.nav__lang:hover { opacity: .45; }
.nav__eye  { height: 22px; width: auto; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ──────────────────────────────────────────
   MALTA FESTIVAL LOGO — absolute (index desktop)
   Straddles nav + hero
────────────────────────────────────────── */
.malta-logo {
  position: absolute;
  left: var(--pad);
  top: 24px;
  height: 150px;
  width: auto;
  z-index: 10;
}

/* ──────────────────────────────────────────
   PAGE HERO (subpages — not index)
────────────────────────────────────────── */
.page-hero {
  background: #000;
  padding: 52px var(--pad) 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.page-hero__heading {
  font-size: 60px;
  font-weight: 700;
  color: var(--pink);
  line-height: .95;
}
.page-hero__sub {
  font-size: 15px;
  opacity: .6;
  margin-top: 12px;
  line-height: 1.5;
}

/* ──────────────────────────────────────────
   CONTENT SECTION (shared white block)
────────────────────────────────────────── */
.section {
  padding: 60px var(--pad) 64px;
}
.section--white {
  background: #fff;
  color: #000;
}
.section--dark {
  background: #000;
  color: #fff;
}
.section--gray {
  background: #f5f5f5;
  color: #000;
}

.section__heading {
  font-size: 36px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 32px;
  line-height: 1;
}

/* ──────────────────────────────────────────
   CTA BANNER
────────────────────────────────────────── */
.cta {
  background: var(--pink);
  padding: 44px var(--pad);
  text-align: center;
}
.cta__text {
  font-size: 38px;
  font-weight: 700;
  color: #000;
  letter-spacing: -.01em;
}

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
.footer {
  background: #000;
  padding: 44px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}
.footer__tilda { height: 70px; width: auto; }

.footer__address { font-size: 14px; line-height: 1.65; color: #ddd; }
.footer__address strong { font-weight: 700; display: block; }
.footer__address a { color: var(--pink); }
.footer__address a:hover { color: #ff6cc0; }
.footer__legal {
  display: block;
  margin-top: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer__legal:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}
.contact-ticket-action:not(:empty) { margin-top: 18px; }
.contact-ticket {
  min-height: 44px;
  padding: 11px 20px;
}

.footer__social { display: flex; gap: 14px; align-items: center; }
.footer__social a { transition: opacity .2s; }
.footer__social a:hover { opacity: .6; }
.footer__social img { width: 30px; height: 30px; }

.footer__org,
.footer__prod { font-size: 12px; color: #999; letter-spacing: .04em; }
.footer__org span,
.footer__prod span { display: block; margin-bottom: 6px; }
.footer__org img { height: 44px; width: auto; margin-top: 4px; }
.footer__prod img { height: 40px; width: auto; margin-top: 4px; }

/* ──────────────────────────────────────────
   INSTAGRAM FEED
────────────────────────────────────────── */
.ig-feed {
  background: #000;
  padding: 0;
  overflow: hidden;
}
.ig-feed__inner {
  display: flex;
  align-items: stretch;
}
.ig-feed__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}
.ig-feed__side {
  width: clamp(280px, 22vw, 320px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 32px;
  border-left: 1px solid rgba(255,255,255,.08);
}

/* 5-kolumnowy layout: 4 posty + sidebar jako równa 5. kolumna */
.ig-feed--5col .ig-feed__inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  align-items: stretch;
}
.ig-feed--5col .ig-feed__grid {
  flex: none;
  grid-column: span 4;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: auto;
}
.ig-feed--5col .ig-feed__side {
  width: auto;
  border-left: none;
}
.ig-feed__logo {
  width: 44px;
  height: 44px;
  opacity: .9;
}
.ig-feed__handle {
  max-width: 100%;
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 700;
  color: var(--pink);
  line-height: 1.2;
  white-space: nowrap;
  transition: opacity .2s;
}
.ig-feed__handle:hover { opacity: .7; }
.ig-feed__more {
  font-size: 15px;
  font-weight: 500;
  opacity: .6;
  transition: opacity .2s;
  line-height: 1.4;
}
.ig-feed__more:hover { opacity: 1; }
.ig-item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
  display: block;
}
.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.ig-item:hover img { transform: scale(1.06); }
.ig-item__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  pointer-events: none;
  line-height: 0;
}

/* ──────────────────────────────────────────
   MOBILE MENU OVERLAY
────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  flex-direction: column;
  padding: 14px 20px 24px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu.is-open ~ .preview-badge { display: none; }
.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}
.mobile-menu__top a { display: flex; }
.mobile-menu__close {
  background: none; border: none;
  color: #fff; font-size: 32px;
  cursor: pointer; line-height: 1; padding: 4px;
  opacity: .85;
}
.mobile-menu__close:hover { opacity: .5; }
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mobile-menu__links a {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  opacity: .9;
  transition: opacity .2s;
}
.mobile-menu__links a:hover { opacity: .5; }
.mobile-menu__links a.is-active { color: var(--pink); opacity: 1; }

.mobile-menu__social {
  display: flex;
  gap: 20px;
  margin-top: auto;
  padding-top: 40px;
}
.mobile-menu__social a { opacity: .85; transition: opacity .2s; }
.mobile-menu__social a:hover { opacity: .45; }
.mobile-menu__social img { width: 32px; height: 32px; }

.nav__social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__social a { opacity: .85; transition: opacity .2s; display: flex; }
.nav__social a:hover { opacity: .45; }
.nav__social img { width: 22px; height: 22px; }

/* ══════════════════════════════════════════
   RWD — TABLET  ≤ 1024px
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --pad: 32px; }

  .malta-logo { height: 110px; top: 20px; }
  .nav--withlogo .nav__malta { height: 58px; }

  .page-hero__heading { font-size: 50px; }
  .section__heading   { font-size: 30px; }
  .cta__text          { font-size: 32px; }
}

/* ══════════════════════════════════════════
   RWD — MOBILE  ≤ 768px
══════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --pad: 20px; }

  /* Nav — always: malta logo left, hamburger right */
  .nav {
    justify-content: space-between;
    padding: 14px var(--pad);
  }
  .nav__malta { display: block; height: 52px; width: auto; }
  .nav--withlogo .nav__malta { height: 52px; }
  .nav__right { gap: 14px; font-size: 13px; }
  .nav__link, .nav__sep, .nav__right .nav__lang, .nav__social, .nav__ticket { display: none; }
  .nav__eye   { height: 18px; }
  .nav__hamburger { display: flex; }

  .malta-logo { display: none; }

  .page-hero { padding: 32px var(--pad) 28px; }
  .page-hero__heading { font-size: 38px; }

  .section { padding: 40px var(--pad) 44px; }
  .section__heading { font-size: 26px; margin-bottom: 24px; }

  .cta { padding: 36px var(--pad); }
  .cta__text { font-size: 26px; }

  .ig-feed__inner { flex-direction: column; }
  .ig-feed__side { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--pad); border-left: none; border-top: 1px solid rgba(255,255,255,.08); }
  .ig-feed__handle { font-size: 17px; }
  .ig-feed__grid { grid-template-columns: repeat(3, 1fr); }

  /* Footer: 2-column grid */
  .footer__tilda   { height: 44px; }
  .footer__org img { height: 28px; }
  .footer__prod img{ height: 22px; }
  .footer__social img { width: 26px; height: 26px; }

  .footer {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-areas:
      "tilda  social"
      "addr   org"
      "addr   prod";
    gap: 24px 20px;
    align-items: start;
    padding: 36px var(--pad);
  }
  .footer__tilda   { grid-area: tilda; }
  .footer__address { grid-area: addr; }
  .footer__social  { grid-area: social; }
  .footer__org     { grid-area: org; }
  .footer__prod    { grid-area: prod; }
}

/* ══════════════════════════════════════════
   RWD — SMALL MOBILE  ≤ 480px
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .nav__malta  { height: 44px; }
  .page-hero__heading { font-size: 32px; }
  .section__heading { font-size: 22px; }
  .cta__text { font-size: 22px; }

  .ig-feed__grid { grid-template-columns: repeat(2, 1fr); }
  .ig-feed__side { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px var(--pad); }
  .ig-feed__logo { width: 32px; height: 32px; }
  .ig-feed__handle { font-size: 15px; }
  .ig-feed__more { font-size: 13px; }
  .preview-badge { font-size: 9px; padding: 10px 7px; }

}
