:root {
  --brand: #5b7a46;
  --brand-dark: #4c6639;
  --ink: #1f2937;
  --muted-bg: #f5f7f6;
  --footer: #4b5563;
}

html,
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}

.section-pad {
  padding: 5rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.navbar-brand img {
  height: 60px;
  width: auto;
}

.site-navbar {
  transition: transform 0.3s ease;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.08);
}

.site-navbar.nav-hidden {
  transform: translateY(-100%);
}

.nav-link {
  font-weight: 700;
  color: #111 !important;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.01em;
}

.nav-link.active,
.nav-link:hover {
  border-bottom-color: #111;
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.48));
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  max-width: 650px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(5px);
}

.hero-logo {
  max-width: 150px;
}

.brand-btn {
  background: var(--brand);
  color: #fff;
  border: 0;
}

.brand-btn:hover,
.brand-btn:focus {
  background: var(--brand-dark);
  color: #fff;
}

.soft-bg {
  background:
    radial-gradient(circle at top right, rgba(91, 122, 70, 0.09), transparent 35%),
    var(--muted-bg);
}

.picture-card img,
.rounded-shadow {
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.rounded-shadow:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.18);
}

.gallery-card {
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.07);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-radius: 14px;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.gallery-cover {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.78));
  display: flex;
  align-items: end;
}

.modal-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
}

.modal-thumb.active {
  border-color: #fff;
}

.site-footer {
  background: linear-gradient(135deg, #44515f 0%, #4b5563 100%);
}

#chiSono h2,
#calendario h2,
#gallery h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
}

#chiSono h2::after,
#calendario h2::after,
#gallery h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 99px;
  background: var(--brand);
}

#gallery h2::after {
  left: 50%;
  transform: translateX(-50%);
}

#calendario .lead {
  color: #25313f;
}

#calendarCarousel {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 767.98px) {
  .section-pad {
    padding: 3.4rem 0;
  }

  .hero-card {
    margin: 0 1rem;
  }

  #chiSono h2::after,
  #calendario h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
