/* === RESET & BASE === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark: #1a1a2e;
  --gold: #c4a35a;
  --gold-light: #d4b86a;
  --cream: #faf6f0;
  --cream-dark: #f0ebe0;
  --text-dark: #2d2d2d;
  --text-light: #faf6f0;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
  --transition: all 0.4s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.2);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-icon {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-light);
  margin-left: 10px;
  letter-spacing: 0.5px;
}

.navbar.scrolled .nav-logo-text {
  color: var(--text-light);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link.active {
  opacity: 1;
  color: var(--gold);
}

.nav-link.active::after {
  width: 100%;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  opacity: 1;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/vicuna-wallpaper-3-842x526.jpg') center/cover no-repeat fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26,26,46,0.94) 0%, rgba(26,26,46,0.55) 45%, rgba(26,26,46,0.8) 100%),
    radial-gradient(ellipse at 25% 30%, rgba(196,163,90,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 70%, rgba(196,163,90,0.08) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-light);
}

.hero-since {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, #f0e6c8 25%, var(--gold-light) 50%, var(--gold) 75%, #f0e6c8 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: metallicSheen 5s ease-in-out infinite;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  opacity: 0.85;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-hero {
  display: inline-block;
  padding: 14px 44px;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.btn-hero:hover::before {
  left: 125%;
}

.btn-hero:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 163, 90, 0.3);
}

.btn-gold {
  display: inline-block;
  padding: 12px 36px;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
  margin-top: 16px;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.btn-gold:hover::before {
  left: 125%;
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 163, 90, 0.3);
}

/* === SECTIONS === */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--cream);
}

.section-dark {
  background: var(--dark);
  color: var(--text-light);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-title-left {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.gold-divider {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
}

.gold-divider-center {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 40px;
}

/* === TWO COL === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col.reverse {
  direction: rtl;
}

.two-col.reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .two-col, .two-col.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
}

.two-col-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
}

.two-col-img img {
  width: 100%;
  border-radius: 4px;
  filter: grayscale(0.1);
}

/* === IMAGE STRIP === */
.image-strip {
  overflow: hidden;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

@media (max-width: 768px) {
  .strip-grid {
    grid-template-columns: 1fr;
  }
}

.strip-grid img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.strip-grid img:hover {
  transform: scale(1.08);
  filter: brightness(0.65) saturate(1.2);
}

@media (max-width: 768px) {
  .strip-grid img {
    height: 250px;
  }
}

/* === PRODUCT CARDS === */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s ease;
}

.product-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.product-card:hover::after {
  transform: scaleX(1);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(26,26,46,0.85) 100%);
  transition: var(--transition);
}

.product-card:hover .product-overlay {
  background: linear-gradient(transparent 5%, rgba(26,26,46,0.96) 100%);
}

.product-content {
  position: relative;
  z-index: 1;
  padding: 32px 28px;
}

.product-content h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.product-content p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.6;
}

/* === CERT === */
.cert-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.cert-logo {
  opacity: 0.7;
  transition: var(--transition);
}

.cert-logo:hover {
  opacity: 1;
}

.cert-logo img {
  height: 80px;
  width: auto;
}

/* === MAP === */
.map-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-overlay-card {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  background: rgba(26, 26, 46, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(196, 163, 90, 0.15);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  color: var(--text-light);
  padding: 40px;
  max-width: 360px;
  border-radius: 4px;
}

.map-overlay-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.map-overlay-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 4px;
}

.map-overlay-card .piva {
  margin-top: 12px;
  font-size: 0.8rem;
  opacity: 0.6;
}

.footer-link {
  color: var(--gold);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--gold-light);
}

@media (max-width: 768px) {
  .map-wrapper {
    height: auto;
  }

  .map-wrapper iframe {
    height: 300px;
  }

  .map-overlay-card {
    position: static;
    transform: none;
    max-width: 100%;
    padding: 30px;
  }
}

/* === FOOTER === */
.footer {
  background: var(--dark);
  color: var(--text-light);
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  font-size: 0.85rem;
  opacity: 0.5;
}

/* === ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE NAV === */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    z-index: 1002;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    padding: 0;
    z-index: 1001;
  }

  .nav-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    font-size: 1.15rem;
    letter-spacing: 2.5px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-logo img {
    height: 40px;
  }
}

/* === SCROLL PROGRESS === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 1002;
  transition: width 0.1s linear;
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.scroll-indicator.hidden {
  opacity: 0;
}

.scroll-indicator-text {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
}

.scroll-indicator-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(-4px); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(4px); opacity: 1; }
}

/* === METALLIC GOLD ANIMATION === */
@keyframes metallicSheen {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* === SECTION TITLE GOLD ACCENTS === */
.section-title {
  letter-spacing: 0.5px;
}

.section-title-left {
  letter-spacing: 0.5px;
}

.two-col-text p {
  letter-spacing: 0.3px;
}

/* === PRODUCT CARD TYPOGRAPHY === */
.product-content h3 {
  letter-spacing: 0.5px;
}

.product-content p {
  letter-spacing: 0.2px;
}

/* === HAMBURGER ANIMATION === */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === FOCUS-VISIBLE ACCESSIBILITY === */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* === BODY SCROLL LOCK === */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* === NAV LOGO REFINEMENT === */
.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-icon {
  filter: brightness(1);
  transition: filter 0.4s ease;
}

.nav-logo-icon:hover {
  filter: brightness(1.1);
}

/* === STRIP GRID OVERLAY === */
.strip-grid {
  position: relative;
}

/* === MAP OVERLAY CARD >> MOBILE === */
@media (max-width: 768px) {
  .map-overlay-card {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(196, 163, 90, 0.12);
  }
}
