:root {
  --pearl: #d9dcdf;
  --pearl-light: #eef0f1;
  --paper: #f8f9f9;
  --ink: #171925;
  --muted: #5f646d;
  --plum: #5e355f;
  --plum-deep: #2a1930;
  --steel: #8a8d8f;
  --steel-deep: #5f6468;
  --midnight: #0a1b3b;
  --line: rgba(95, 100, 104, 0.38);
  --shadow: 0 20px 55px rgba(26, 31, 40, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--pearl-light);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 5.6rem;
  padding: 0.7rem clamp(1rem, 4vw, 4rem);
  border-bottom: 2px solid rgba(95, 100, 104, 0.32);
  background: rgba(238, 240, 241, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.brand img {
  display: block;
  width: clamp(12rem, 19vw, 17rem);
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
}

.main-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: var(--plum);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.language-switch {
  display: flex;
  gap: 0.35rem;
}

.language-switch button {
  min-width: 3.4rem;
  padding: 0.48rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}

.language-switch button[aria-pressed="true"] {
  border-color: var(--plum);
  background: var(--plum);
  color: #fff;
}

main { overflow: hidden; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  align-items: end;
  gap: clamp(1.5rem, 5vw, 5rem);
  width: min(118rem, calc(100% - 1rem));
  margin: 0 auto;
  padding: clamp(1.25rem, 2.5vw, 2.4rem) clamp(1rem, 4vw, 4rem);
  border-bottom: 2px solid rgba(95, 100, 104, 0.25);
  background: var(--pearl);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--plum);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.02;
}

h1 { font-size: clamp(1.45rem, 2.7vw, 2.8rem); }
h2 { font-size: clamp(2rem, 4.5vw, 4.7rem); }

.intro-copy {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
}

.hero-frame {
  position: relative;
  width: min(118rem, calc(100% - 1rem));
  margin: 0.5rem auto 0;
  overflow: hidden;
  border: 3px solid var(--steel);
  border-radius: 0.15rem;
  background: #080b16;
  box-shadow: var(--shadow);
}

.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(1.12) contrast(0.96) saturate(0.96);
}

.poster-email-link {
  position: absolute;
  left: 8.5%;
  bottom: 7.4%;
  width: 18%;
  height: 5%;
  border-radius: 999px;
}

.poster-email-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.campaign-hero {
  position: relative;
  display: grid;
  min-height: clamp(32rem, 38vw, 46rem);
  place-items: center;
  width: min(118rem, calc(100% - 1rem));
  margin: 0.5rem auto 0;
  overflow: hidden;
  border: 4px solid var(--steel);
  background: #050915 url("assets/home-campaign-clean.webp") center / cover no-repeat;
  color: #f4f1ec;
  text-align: center;
  box-shadow: var(--shadow);
}

.campaign-hero::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 9, 23, 0.15) 0, rgba(6, 9, 23, 0.48) 34%, transparent 62%);
  content: "";
  pointer-events: none;
}

.campaign-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(42rem, 46vw);
  padding: 2rem 1rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
}

.campaign-signature {
  width: min(30rem, 90%);
  height: auto;
  margin-bottom: 1.1rem;
  filter: invert(1) brightness(1.35);
}

.campaign-rule {
  width: min(25rem, 78%);
  height: 1px;
  margin-bottom: 1.2rem;
  background: linear-gradient(90deg, transparent, #c8c9cb 25%, #c8c9cb 75%, transparent);
}

.campaign-kicker {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2.6rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.campaign-copy h2 {
  margin-top: 0.55rem;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.campaign-description {
  margin: 1.1rem 0 1.5rem;
  color: #e1e2e4;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.campaign-button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  padding: 0.7rem 1.4rem;
  border: 2px solid #b9bbbd;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.campaign-button:hover,
.campaign-button:focus-visible {
  background: #d9dcdf;
  color: #0a1b3b;
}

.home-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(118rem, calc(100% - 1rem));
  margin: 1rem auto 0;
}

.home-category {
  position: relative;
  min-height: clamp(19rem, 30vw, 34rem);
  overflow: hidden;
  border: 4px solid var(--steel);
  background: var(--midnight);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 35px rgba(16, 22, 34, 0.2);
}

.home-category img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.home-category:nth-child(2) img { object-position: 57% center; }
.home-category:nth-child(3) img { object-position: center 24%; }

.home-category::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 9, 21, 0.12) 20%, rgba(5, 9, 21, 0.84) 100%);
  content: "";
}

.home-category:hover img,
.home-category:focus-visible img { transform: scale(1.025); }

.category-overlay {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 0.45rem;
  padding: clamp(1.2rem, 2.5vw, 2.2rem);
}

.category-overlay strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-overlay small {
  max-width: 22rem;
  color: #e2e3e5;
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  line-height: 1.45;
}

.home-category.original-panel {
  min-height: 0;
  aspect-ratio: 1.49 / 1;
}

.home-category.original-panel img,
.home-category.original-panel:nth-child(2) img,
.home-category.original-panel:nth-child(3) img {
  object-position: center;
  filter: brightness(1.68) contrast(1.04) saturate(1.2);
}

.home-category.original-panel::after { background: none; }

.home-category.original-panel::before {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 42%;
  background: #070a17;
  box-shadow: 1rem 0 1.5rem #070a17;
  content: "";
}

.home-category.original-panel:nth-child(2)::before { width: 40%; }
.home-category.original-panel:nth-child(3)::before { width: 30%; }

.original-panel .category-overlay {
  z-index: 2;
  top: 0;
  right: auto;
  bottom: 0;
  width: 44%;
  align-content: start;
  padding: clamp(1rem, 2vw, 1.8rem);
}

.original-panel:nth-child(2) .category-overlay { width: 42%; }
.original-panel:nth-child(3) .category-overlay { width: 33%; }

.original-panel .category-overlay strong {
  font-size: clamp(1.35rem, 2.15vw, 2.4rem);
}

.original-panel .category-overlay small {
  font-size: clamp(0.82rem, 1vw, 1rem);
}

.category-overlay em {
  align-self: end;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.action-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  width: min(82rem, calc(100% - 2rem));
  margin: clamp(2rem, 5vw, 5rem) auto;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.action-band p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 2.3rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--plum);
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--plum-deep);
  transform: translateY(-2px);
}

.button.secondary {
  background: transparent;
  color: var(--plum-deep);
}

.page-heading {
  width: min(92rem, calc(100% - 2rem));
  margin: 0 auto clamp(2rem, 4vw, 4rem);
  padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 4vw, 4rem);
  border-right: 3px solid var(--steel);
  border-bottom: 3px solid var(--steel);
  border-left: 3px solid var(--steel);
  background: var(--pearl);
}

.page-heading p:last-child {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.gallery-section {
  width: min(92rem, calc(100% - 2rem));
  margin: 0 auto clamp(4rem, 8vw, 8rem);
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.3rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--steel);
}

.section-title h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
.section-title span { color: var(--muted); }

.gallery {
  columns: 3 18rem;
  column-gap: 1.35rem;
}

.gallery-card {
  position: relative;
  margin: 0 0 1.35rem;
  overflow: hidden;
  break-inside: avoid;
  border: 3px solid var(--steel);
  border-radius: 0.2rem;
  background: var(--paper);
  box-shadow: 0 12px 35px rgba(34, 25, 38, 0.08);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  cursor: zoom-in;
}

.gallery-card img:focus-visible {
  position: relative;
  z-index: 1;
  outline: 4px solid var(--plum);
  outline-offset: -4px;
}

.gallery-card figcaption {
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.lightbox-open { overflow: hidden; }

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(3.5rem, 1fr) minmax(0, auto) minmax(3.5rem, 1fr);
  align-items: center;
  justify-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(4, 7, 16, 0.94);
  backdrop-filter: blur(10px);
  animation: lightbox-fade 180ms ease-out;
}

.lightbox-figure {
  grid-column: 2;
  display: grid;
  max-width: min(82vw, 90rem);
  max-height: calc(100vh - 3rem);
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(217, 220, 223, 0.72);
  background: #080b16;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  margin: auto;
  object-fit: contain;
}

.lightbox-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 3.5rem;
  padding: 0.8rem 1rem;
  background: var(--midnight);
  color: #eef0f1;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-counter {
  flex: 0 0 auto;
  color: #c7cbd0;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(238, 240, 241, 0.62);
  border-radius: 50%;
  background: rgba(10, 27, 59, 0.78);
  color: #fff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  line-height: 1;
  transition: background 180ms ease, transform 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: var(--pearl);
  color: var(--midnight);
  outline: none;
  transform: scale(1.06);
}

.lightbox-close {
  position: absolute;
  top: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  z-index: 2;
  font-size: 2rem;
}

.lightbox-nav { font-size: 2.8rem; }
.lightbox-prev { grid-column: 1; }
.lightbox-next { grid-column: 3; }

@keyframes lightbox-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 4vw, 4rem);
  border-top: 3px solid var(--steel);
  background: var(--pearl);
}

.contact-strip p {
  margin: 0;
  color: var(--steel-deep);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(1rem, 3vw, 3rem);
}

.contact-links a {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--steel-deep);
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.contact-links a:hover,
.contact-links a:focus-visible { color: var(--plum); }

.site-footer {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 4vw, 4rem);
  background: var(--midnight);
  color: #eef0f1;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-primary,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 2rem;
}

.footer-primary {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(238, 240, 241, 0.42);
  font-size: 1.05rem;
}

.footer-primary a { color: #fff; }

.footer-legal {
  color: #d1d4d7;
  font-size: 0.9rem;
}

[data-lang] { display: none; }
html[data-site-language="it"] [data-lang="it"],
html[data-site-language="en"] [data-lang="en"] { display: revert; }

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.4rem 0 0.15rem;
  }

  .main-nav a { white-space: nowrap; }

  .intro {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.2rem 1rem;
  }

  .hero-frame { width: 100%; border-radius: 0; }
  .poster-email-link { display: none; }

  .campaign-hero {
    min-height: 39rem;
    width: 100%;
    border-width: 3px 0;
    background-position: center;
  }

  .campaign-copy {
    width: min(30rem, 92%);
    padding: 2rem 1.2rem;
    border-radius: 0.2rem;
    background: rgba(5, 9, 21, 0.54);
    backdrop-filter: blur(2px);
  }

  .home-categories { grid-template-columns: 1fr; }
  .home-category { min-height: 28rem; }
  .home-category.original-panel {
    min-height: 22rem;
    aspect-ratio: auto;
  }

  .action-band {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-links { justify-content: flex-start; }

  .button-row { align-items: stretch; }
  .button { flex: 1 1 12rem; }

  .footer-primary,
  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    align-content: center;
    gap: 0.8rem;
    padding: 4.5rem 0.8rem 1rem;
  }

  .lightbox-figure {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 100%;
    max-height: calc(100vh - 7.5rem);
  }

  .lightbox-image { max-height: calc(100vh - 12rem); }
  .lightbox-details { font-size: 0.78rem; }

  .lightbox-nav {
    width: 3rem;
    height: 3rem;
    font-size: 2.4rem;
  }

  .lightbox-prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .lightbox-next {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
