﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter";
  background: #f7f4ef;
  color: #1a1a1a;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* HERO */
.hero {
  position: relative;
  min-height: 75vh;
  background: #0d0d0d;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/image_148.png") center/cover no-repeat;
  opacity: 0.35;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(13, 13, 13, 0) 20%,
      rgba(13, 13, 13, 0) 100%);
}

/* GOLD DIVIDER */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #c9a84c, #e8c86a);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* BUTTONS */
.btn-gold {
  background: linear-gradient(135deg, #c9a84c, #e8c86a);
  color: #1a1a1a;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

.btn-whatsapp {
  background: #25d366;
  color: white;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
}

.btn-nav-outline {
  border: 1.5px solid #c9a84c;
  color: #c9a84c;
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-nav-outline:hover {
  background: #c9a84c;
  color: #fff;
}

/* NAV LINKS */
.nav-link {
  color: #333;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #c9a84c;
}

.nav-link.active {
  color: #c9a84c;
}

/* VALUE CARDS */
.value-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition: all 0.3s;
  border-top: 3px solid transparent;
}

.value-card:hover {
  transform: translateY(-4px);
  border-top-color: #c9a84c;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* STRUTTURA */
.struttura-card {
  text-align: center;
  padding: 32px 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  transition: all 0.3s;
}

.struttura-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.struttura-icon {
  width: 64px;
  height: 64px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}

/* AVVOCATO SECTION */
.avvocato-section {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.avvocato-bg {
  position: absolute;
  inset: 0;
  background: url("../images/image_150.png") center/cover no-repeat;
}

.avvocato-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 16px;
}

/* FADE ANIM */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 1.4rem;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
}

/* SCROLL PROGRESS */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, #c9a84c, #e8c86a);
  z-index: 999;
  width: 0%;
  transition: width 0.1s;
}

/* FOOTER */
footer {
  background: #111;
  color: rgba(255, 255, 255, 0.55);
}


.nav-desktop-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

#burger-btn {
  display: none;
}

#mobile-menu {
  display: none;
}

@media (max-width: 767px) {
  .nav-desktop-links {
    display: none !important;
  }

  .nav-desktop-btns {
    display: none !important;
  }

  #burger-btn {
    display: flex !important;
  }
}

#mobile-menu.open {
  display: block !important;
}

.mob-link {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.mob-link:hover {
  background: #fffbeb;
  color: #b45309;
}

.mob-link.active {
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.1);
}

.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}

#burger-btn.open .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#burger-btn.open .burger-line:nth-child(2) {
  opacity: 0;
}

#burger-btn.open .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}