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

body {
  font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  overflow-x: hidden;
}

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

/* ==================== HEADER MODERNIZZATO ==================== */
.header {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: white;
  padding: 20px 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-bottom: 3px solid #d4af37;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(212, 175, 55, 0.1) 50%, transparent 51%);
  pointer-events: none;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.logo img {
  width: 200px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  font-weight: 600; /* ✅ PIÙ IN RISALTO */
  font-size: 0.95rem;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #d4af37, #FFCC00);
  border-radius: 50%;
  transition: all 0.3s ease;
  padding: 0 !important;
}

.user-icon i {
  font-size: 16px;
  color: #1a1a1a;
}

.user-icon:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.user-icon::after {
  display: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(90deg, #d4af37, #FFCC00);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: #d4af37;
  transform: translateY(-2px);
}

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

/* ==================== MENU MOBILE ==================== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: transparent;
  border: none;
  z-index: 3;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.nav-links {
  display: flex;
  gap: 25px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links a {
    font-size: 1.2rem;
    color: white;
  }
  .header .container {
    position: relative;
  }
}

/* ==================== HERO SECTION MODERNIZZATA ==================== */
.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(45deg, transparent 49%, rgba(212, 175, 55, 0.03) 50%, transparent 51%);
  animation: shimmer 20s linear infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.hero-title h1 {
  font-size: 380%;
  font-weight: 700;
  background: linear-gradient(135deg, #2c2c2c, #1a1a1a, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  position: relative;
  white-space: nowrap;
}

.hero-title h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 66.67%;
  height: 4px;
  background: linear-gradient(90deg, #d4af37, #FFCC00);
  border-radius: 2px;
}

.hero-grid {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}



.hero-text h4 {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 40px;
  text-align: justify;
  font-weight: 400;
}

/* ==================== CTA BUTTON MODERNIZZATO ==================== */
.cta-container {
  display: flex;
  justify-content: flex-start;
  margin-top: 40px;
}

.modern-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 18px 35px;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(44, 44, 44, 0.3);
  border: 2px solid #d4af37;
}

.modern-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
  transition: left 0.5s;
}

.modern-cta-btn:hover::before {
  left: 100%;
}

.modern-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(44, 44, 44, 0.4);
  border-color: #FFCC00;
}

.btn-icon {
  background: #d4af37;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modern-cta-btn:hover .btn-icon {
  background: #FFCC00;
  transform: rotate(360deg);
}

.btn-icon i {
  font-size: 14px;
  color: #1a1a1a;
}

/* ==================== FOOTER MODERNIZZATO ==================== */
.footer {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #ddd;
  padding: 40px 0 20px;
  position: relative;
  border-top: 3px solid #d4af37;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(212, 175, 55, 0.05) 50%, transparent 51%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  align-items: center;
}

.footer-column h5 {
  color: #d4af37;
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.footer-info {
  text-align: center;
}

.footer-social {
  text-align: right;
}

.footer-logo img {
  width: 350px;
  height: 350px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  transition: all 0.3s ease;
}

.footer-logo img:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ==================== SOCIAL ICONS MODERNIZZATE ==================== */
.social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
  border-radius: 12px;
  transition: all 0.4s ease;
  color: #d4af37;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: 1px solid #444;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: left 0.5s;
}

.social-icon:hover::before {
  left: 100%;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  border-color: #d4af37;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.social-icon i {
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-icon:hover i {
  color: #FFCC00;
  transform: scale(1.2);
}

/* Social Colors */
.social-icon:hover:nth-child(1) { background: linear-gradient(135deg, #25d366, #128c7e); } /* WhatsApp */
.social-icon:hover:nth-child(2) { background: linear-gradient(135deg, #0088cc, #00aced); } /* Telegram */
.social-icon:hover:nth-child(3) { background: linear-gradient(135deg, #ea4335, #fbbc05); } /* Email */
.social-icon:hover:nth-child(4) { background: linear-gradient(135deg, #1877f2, #42a5f5); } /* Facebook */
.social-icon:hover:nth-child(5) { background: linear-gradient(135deg, #e4405f, #f56040); } /* Instagram */
.social-icon:hover:nth-child(6) { background: linear-gradient(135deg, #0077b5, #00a0dc); } /* LinkedIn */
.social-icon:hover:nth-child(7) { background: linear-gradient(135deg, #4285f4, #34a853); } /* Maps */

.footer-info p {
  line-height: 1.8;
  color: #bbb;
  font-size: 1rem;
}

/* ==================== PULSANTE NEWSLETTER NEL FOOTER ==================== */
.btn-footer-newsletter {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #d4af37, #FFCC00);
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-footer-newsletter:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
  .hero-grid {
    gap: 40px;
  }
  .footer-content {
    gap: 40px;
  }
}

.hero-content {
    padding-right: 0;
  }
  .hero-title h1 {
    font-size: clamp(3rem, 4vw, 6rem);
    white-space: normal;
  }
  .cta-container {
    justify-content: center;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 15px 0;
  }
  .header .container {
    flex-direction: column;
    gap: 20px;
  }
  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-links a {
    font-size: 0.9rem;
  }
  .user-icon {
    width: 30px;
    height: 30px;
  }
  .user-icon i {
    font-size: 14px;
  }
  .logo img {
    width: 180px;
    height: auto;
  }
  .hero-section {
    padding: 60px 0 80px;
  }
  .hero-title {
    margin-bottom: 40px;
  }
  .hero-text h4 {
    text-align: left;
    font-size: 1rem;
  }
  .footer {
    padding: 30px 0 20px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .footer-social {
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
  .footer-logo img {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }
  .header {
    padding: 12px 0;
  }
  .logo img {
    width: 160px;
  }
  .hero-section {
    padding: 40px 0 60px;
  }
  .hero-title h1 {
    font-size: clamp(2rem, 3.5vw, 4rem);
    white-space: normal;
  }
  .modern-cta-btn {
    padding: 15px 25px;
    font-size: 0.9rem;
  }
  .btn-icon {
    width: 30px;
    height: 30px;
  }
  .nav-links {
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-links a {
    font-size: 0.85rem;
    padding: 6px 8px;
  }
  .user-icon {
    width: 28px;
    height: 28px;
  }
  .user-icon i {
    font-size: 12px;
  }
  .footer-logo img {
    width: 200px;
    height: 200px;
  }
  .btn-footer-newsletter {
    font-size: 0.85rem;
    padding: 10px 20px;
  }
}

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
.nav-links a:focus,
.modern-cta-btn:focus,
.social-icon:focus {
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-title h1 {
    -webkit-text-fill-color: #000;
    color: #000;
  }
}
/* ==================== FIX MODALI ==================== */
.modal.active {
  z-index: 2001; /* Sopra l’overlay per permettere la chiusura al click fuori */
}
