/* BASIC RESET */
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #333;
  background-color: #faf8f4;
}

h1 {
  margin: 0;
}

h2, h3 {
  margin: 0;
  color: #989515;
}

a {
  color: inherit;
  text-decoration: none;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
  overflow: visible;
}

.navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* LOGO + TEXT */
.logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 63px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.logo-img:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 0;
  font-size: clamp(1.2rem, 5vw, 2.25rem);
  color: #989515;
}

/* DESKTOP NAV */
.desktop-nav {
  display: flex;
  gap: 48px;
  align-items: center;
}

/* MENU BASE COLOR → NERO */
.desktop-nav a {
  color: #000;
}

/* HOVER → VERDE, SENZA UNDERLINE */
.desktop-nav a:hover {
  color: #989515;
  text-decoration: none;
}

/* ACTIVE → LINEA VERDE */
.desktop-nav a.active {
  border-bottom: 2px solid #989515;
}

/* LANGUAGE TOGGLE */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle img {
  width: 24px;
  opacity: 0.75;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.lang-toggle img:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 9999;
}

.hamburger span {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  background-color: #989515;
}

/* HAMBURGER → X */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* MOBILE NAV — compact dropdown */
.mobile-nav {
  position: absolute;
  top: 100%;
  right: 0;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-radius: 12px;

  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.55),
    0 6px 20px rgba(0,0,0,0.12);

  border: 1px solid rgba(255, 255, 255, 0.4);

  padding: 12px 20px;
  display: none;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
  z-index: 9998;
}

.mobile-nav.show {
  display: flex;
  animation: fadeDown 0.25s ease-out;
}

.mobile-nav a {
  padding: 6px 0;
  white-space: nowrap;
  color: #000;
}

/* MOBILE HOVER → VERDE, SENZA UNDERLINE */
.mobile-nav a:hover {
  color: #989515;
  text-decoration: none;
}

/* MOBILE ACTIVE → LINEA VERDE */
.mobile-nav a.active {
  border-bottom: 2px solid #989515;
}

/* HERO */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.hero-text {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: #fff;
}

.hero-text h1 {
  font-size: 3.2rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin: 10px 0 20px;
}

.cta {
  padding: 12px 24px;
  background: #989515;
  color: #fff;
  border-radius: 4px;
}

/* INTRO */
.intro {
  text-align: center;
  padding: 80px 20px;
  max-width: 700px;
  margin: 0 auto;
}

/* HIGHLIGHTS */
.highlights {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
}

.highlight {
  max-width: 260px;
  text-align: center;
}

.highlight-icon {
  width: 56px;
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.highlight:hover .highlight-icon {
  opacity: 1;
  transform: scale(1.12);
}

/* PREVIEW GRID */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 60px 40px 80px;
}

.preview-card-link {
  display: block;
  color: inherit;
}

.preview-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.preview-card-link:hover .preview-card {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.preview-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  margin-bottom: 24px;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  animation: fadeInImage 0.8s ease forwards;
}

@keyframes fadeInImage {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.08);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.preview-card-link:hover .preview-overlay {
  opacity: 1;
}

.preview-card-link:hover .preview-img {
  transform: scale(1.03);
}

/* GALLERY */
.square-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.square-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.square-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTACTS */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
}

.contact-form label {
  width: 100%;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.contact-form .cta {
  width: 280px;
  text-align: center;
  padding: 12px 24px;
  background: #989515;
  color: #fff;
  border-radius: 4px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 16px;
  }
}

@media (max-width: 900px) {
  .two-column {
    grid-template-columns: 1fr !important;
  }

  .two-column .image-block {
    order: 1;
  }

  .two-column .text-block {
    order: 2;
    margin-top: 20px;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
