:root {
  --brand-navy: #0f172a;
  --brand-navy-strong: #111827;
  --brand-gold: #c7a46a;
  --brand-gold-soft: #e9d3a7;
  --brand-bone: #f8f4ee;
  --brand-ivory: #f7f3ee;
  --brand-slate: #475569;
  --brand-ink: #1f2937;
  --brand-line: rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--brand-ink);
  background: linear-gradient(180deg, #fffdfb 0%, #f3efe9 100%);
}

img {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 3px solid rgba(199, 164, 106, 0.8);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand-navy);
  color: white;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(31, 41, 55, 0.78)),
    url("https://images.unsplash.com/photo-1516280440614-37939bbacd81?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.23));
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-gold);
  font-size: 0.75rem;
}

.section-heading::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--brand-gold);
}

.card-surface {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow-soft);
}

.soft-panel {
  background: linear-gradient(180deg, rgba(248, 244, 238, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
  border: 1px solid var(--brand-line);
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  color: #ffffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  background: var(--brand-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

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

.image-card {
  overflow: hidden;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.image-card:hover img {
  transform: scale(1.04);
}

.image-card-no-hover:hover img {
  transform: none;
}

.gallery-image-trigger {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.image-lightbox[open] {
  display: grid;
  place-items: center;
}

.image-lightbox__content {
  position: relative;
  width: min(96vw, 1200px);
}

.image-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.82);
}

.image-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 2rem);
  object-fit: contain;
  border-radius: 1rem;
  background: #0f172a;
}

.image-lightbox__close-form {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
}

.image-lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  background: rgba(15, 23, 42, 0.95);
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background: var(--brand-gold);
  border: 2px solid white;
  box-shadow: 0 0 0 2px rgba(199, 164, 106, 0.26);
}

.footer-accent {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96));
}

.map-placeholder {
  position: relative;
  min-height: 260px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(15,23,42,0.18)),
    url("images/dove-ci-troviamo.png") center/cover no-repeat;
  border-radius: 1.25rem;
  overflow: hidden;
}

.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.35));
  border-radius: inherit;
}

.map-placeholder > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .mobile-menu-panel {
    display: none;
  }

  .mobile-menu-panel.is-open {
    display: block;
  }
}
