/* CIAFAAV — brand #0093d0 */
:root {
  --brand: #0093d0;
  --brand-dark: #0077a8;
  --brand-light: #e8f6fc;
  --text: #1a1a1a;
  --text-muted: #4a5568;
  --bg: #f8fafb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --notice-bg: #fff8e6;
  --notice-border: #e6a800;
  --shadow: 0 4px 24px rgba(0, 80, 120, 0.08);
  --shadow-hover: 0 12px 40px rgba(0, 80, 120, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 960px;
  --header-height: auto;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, #eef6fa 0%, var(--bg) 120px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  font-weight: 600;
}

a:hover {
  color: var(--brand-dark);
}

/* —— Notice banner —— */
.notice-banner {
  background: var(--notice-bg);
  border-bottom: 3px solid var(--notice-border);
  padding: 0.85rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}

.notice-banner p {
  margin: 0;
  max-width: 52rem;
  margin-inline: auto;
}

.notice-banner strong {
  color: #8b6914;
}

/* —— Header —— */
.site-header {
  position: relative;
  text-align: center;
}

.header-logo-band {
  background: #fff;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0, 80, 120, 0.06);
}

.header-brand-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 1rem 1.25rem 1.35rem;
  position: relative;
}

.header-brand-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.logo-link {
  display: block;
  max-width: 560px;
  margin: 0 auto;
}

.logo-img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.lang-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}

.lang-toggle button {
  background: var(--brand-light);
  color: var(--brand-dark);
  border: 2px solid var(--brand);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle button:hover {
  background: var(--brand);
  color: #fff;
}

.lang-toggle button.is-active {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}

.tagline {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 40rem;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 50, 80, 0.2);
}

/* —— Navigation —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 80, 120, 0.06);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  max-width: var(--max-width);
  margin-inline: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  background: var(--brand);
}

/* —— Main layout —— */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}

.section-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.85rem 1.65rem;
  margin-bottom: 1.85rem;
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.section-card:hover {
  box-shadow: var(--shadow-hover);
}

.section-card h2 {
  color: var(--brand-dark);
  margin: 0 0 1.15rem;
  font-size: 1.55rem;
  text-align: center;
  letter-spacing: -0.02em;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--brand-light);
}

.section-card h3 {
  color: var(--brand-dark);
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.section-card p {
  margin: 0 0 1rem;
  color: var(--text);
}

.section-card p:last-child {
  margin-bottom: 0;
}

.hero-image {
  border-radius: var(--radius);
  margin: 0 0 1.25rem;
  box-shadow: var(--shadow);
  width: 100%;
}

.edition {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--brand-light);
}

.edition:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.edition img {
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0, 147, 208, 0.35);
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--brand) !important;
  border: 2px solid var(--brand);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--brand-light);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* —— Gallery page —— */
.page-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.page-hero h1 {
  color: var(--brand-dark);
  margin: 0 0 0.5rem;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--text-muted);
  margin: 0;
  max-width: 36em;
  margin-inline: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 77, 120, 0.5), transparent 50%);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item .zoom-icon {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
  z-index: 1;
  color: var(--brand);
  font-size: 1.1rem;
}

.gallery-item:hover .zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.photo-credit {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1.25rem 0 0;
  font-style: italic;
}

.photo-credit strong {
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 700;
}

.section-card .photo-credit {
  margin: -0.5rem 0 1rem;
}

.gallery-grid + .photo-credit {
  margin-top: 1.5rem;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* —— Lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 30, 50, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__inner {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox__caption {
  color: #fff;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
}

.lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__counter {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

/* —— Footer —— */
.site-footer {
  text-align: center;
  padding: 2rem 1.25rem;
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.site-footer a {
  color: #fff;
}

/* —— Responsive —— */
@media (max-width: 600px) {
  .header-logo-band {
    padding-top: 3.25rem;
  }

  .lang-toggle {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    justify-content: flex-end;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .header-brand-band {
    padding: 0.85rem 1rem 1.15rem;
  }

  .lightbox__prev {
    left: 0.5rem;
  }

  .lightbox__next {
    right: 0.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }
}

@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
