/* =====================
   PALETTA COLORE - TEMA PROFESSIONALE BLU
===================== */
:root {
  --primary: #1a5490;
  --primary-dark: #0d3b66;
  --primary-light: #2e7fd4;
  --accent: #e63946;
  --accent-hover: #d62839;
  --bg-light: #f5f7fa;
  --bg-white: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --border-light: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}


/* =====================
   HEADER
===================== */
header {
  background: 
    radial-gradient(circle at 20% 80%, rgba(244, 208, 63, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244, 208, 63, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.5rem 2rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 
    -10px 0 30px rgba(0, 0, 0, 0.4),
    -5px 0 15px rgba(244, 208, 63, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border-left: 2px solid rgba(244, 208, 63, 0.3);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.logo {
  width: 180px;
  height: 110px;
  object-fit: cover;
  transition: transform 0.3s ease;
  border-radius: 50%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(244, 208, 63, 0.3);
}

.logo:hover {
  transform: scale(1.05);
  filter: 
    drop-shadow(0 0 12px rgba(244, 208, 63, 0.6))
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
  border-color: rgba(244, 208, 63, 0.6);
  background: rgba(255, 255, 255, 0.15);
}

.logo-title-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.logo-title-link:hover {
  text-decoration: none;
  color: inherit;
}

.logo-title-link:active {
  transform: scale(0.98);
}

.logo-container h1 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-left: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.8px;
  font-style: italic;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.logo-container h1:hover {
  color: #f4d03f;
  text-shadow: 0 0 12px rgba(244, 208, 63, 0.6);
  transform: scale(1.02);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: #f4d03f;
  text-shadow: 0 0 8px rgba(244, 208, 63, 0.5);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f4d03f, rgba(244, 208, 63, 0.8));
  transition: width 0.3s ease;
  box-shadow: 0 0 4px rgba(244, 208, 63, 0.6);
}

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

/* Hamburger Menu */
.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 35px;
  height: 25px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.mobile-menu-button:hover {
  background: rgba(244, 208, 63, 0.2);
  border-color: rgba(244, 208, 63, 0.4);
  transform: scale(1.05);
}

.bar {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-menu-button.active {
  background: rgba(244, 208, 63, 0.3);
  border-color: rgba(244, 208, 63, 0.6);
}

.mobile-menu-button.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: #f4d03f;
}

.mobile-menu-button.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background: #f4d03f;
}

/* =====================
   HERO SECTION
===================== */
.hero {
  background: 
    radial-gradient(circle at 20% 80%, rgba(244, 208, 63, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244, 208, 63, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary-light) 100%);
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(244, 208, 63, 0.1) 50%, transparent 70%);
  animation: heroShimmer 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroShimmer {
  0%, 100% {
    transform: translateX(-100%) translateY(-100%);
    opacity: 0;
  }
  50% {
    transform: translateX(100%) translateY(100%);
    opacity: 1;
  }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  animation: slideInUp 1s ease-out;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  padding: 3rem 2rem;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: fadeInScale 1.2s ease-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: white;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 1.4s ease-out;
  font-weight: 500;
}

/* Button Styles */
.btn {
  background: linear-gradient(135deg, #f4d03f 0%, #f1c40f 100%);
  color: #1a5490;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.4s ease;
  display: inline-block;
  border: 1px solid rgba(244, 208, 63, 0.2);
  cursor: pointer;
  box-shadow: 
    0 8px 25px rgba(244, 208, 63, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: linear-gradient(135deg, #f1c40f 0%, #f4d03f 100%);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 15px 40px rgba(244, 208, 63, 0.5),
    0 8px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  text-shadow: 0 0 8px rgba(244, 208, 63, 0.5);
  border-color: rgba(244, 208, 63, 0.6);
}

.btn-secondary {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  margin-left: 1rem;
  backdrop-filter: blur(15px);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.btn-secondary:hover {
  background: 
    linear-gradient(135deg, rgba(244, 208, 63, 0.2) 0%, rgba(244, 208, 63, 0.1) 100%);
  color: #f4d03f;
  border-color: #f4d03f;
  box-shadow: 
    0 15px 40px rgba(244, 208, 63, 0.3),
    0 8px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  text-shadow: 0 0 8px rgba(244, 208, 63, 0.5);
  transform: translateY(-5px) scale(1.05);
}

/* =====================
   SECTIONS
===================== */
.section {
  padding: 5rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

/* Pattern alternato per le sezioni */
.section-white {
  background: 
    radial-gradient(circle at 10% 20%, rgba(244, 208, 63, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(26, 84, 144, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  position: relative;
  overflow: hidden;
}

.section-white::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 3px,
      rgba(244, 208, 63, 0.03) 3px,
      rgba(244, 208, 63, 0.03) 6px
    );
  pointer-events: none;
  animation: patternShift 20s linear infinite;
}

.section-gray {
  background: 
    radial-gradient(circle at 20% 30%, rgba(26, 84, 144, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(244, 208, 63, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.section-gray::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 4px,
      rgba(26, 84, 144, 0.04) 4px,
      rgba(26, 84, 144, 0.04) 8px
    );
  pointer-events: none;
  animation: patternShift 25s linear infinite reverse;
}

@keyframes patternShift {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(20px) translateY(20px);
  }
}

/* Separazione tra sezioni */
.section + .section {
  margin-top: 0;
}

/* Pattern aggiuntivi per sezioni specifiche */
.section-white:nth-child(even) {
  background: 
    radial-gradient(circle at 30% 10%, rgba(244, 208, 63, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 70% 90%, rgba(26, 84, 144, 0.02) 0%, transparent 40%),
    linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.section-gray:nth-child(odd) {
  background: 
    radial-gradient(circle at 15% 25%, rgba(26, 84, 144, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(244, 208, 63, 0.04) 0%, transparent 45%),
    linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Effetti di profondità per le sezioni */
.section-white::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 208, 63, 0.3), transparent);
}

.section-gray::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26, 84, 144, 0.3), transparent);
}

.section-title {
  text-align: center;
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   CARDS & GRID
===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(244, 208, 63, 0.4);
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* =====================
   GALLERIA
===================== */
.gallery {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 2rem auto;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(244, 208, 63, 0.8), var(--primary));
}

.gallery-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  -webkit-overflow-scrolling: touch;
}

.gallery-grid::-webkit-scrollbar {
  height: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: rgba(241, 241, 241, 0.5);
  border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary), rgba(244, 208, 63, 0.8));
  border-radius: 10px;
}

.gallery-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, var(--primary-dark), #f4d03f);
}

.gallery-card {
  flex: 0 0 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(244, 208, 63, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-card:hover::before {
  opacity: 1;
}

.gallery-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 8px 16px rgba(244, 208, 63, 0.2);
}

.gallery-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 0;
}

.gallery-card:hover img {
  transform: scale(1.08);
}

/* =====================
   GOOGLE MAPS IFRAME
===================== */
.iframe {
  max-width: 1300px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.iframe iframe {
  width: 100%;
  max-width: 100%;
  height: 450px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow);
  transition: box-shadow 0.3s ease;
}

.iframe iframe:hover {
  box-shadow: 0 5px 20px var(--shadow-hover);
}

/* =====================
   CONTATTI
===================== */
.contacts {
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin: 2rem auto;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.contacts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), rgba(244, 208, 63, 0.8), var(--primary));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: 
    radial-gradient(circle at 20% 80%, rgba(244, 208, 63, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244, 208, 63, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 208, 63, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f4d03f, rgba(244, 208, 63, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2),
    0 5px 15px rgba(244, 208, 63, 0.3);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.contact-card p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item p {
  margin: 0.3rem 0;
}

.contact-item strong {
  display: inline;
  margin-bottom: 0;
  font-size: 1.05rem;
  margin-right: 0.5rem;
}

.contact-card a {
  color: white;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: #f4d03f !important;
}

/* =====================
   FOOTER
===================== */
footer {
  background: 
    radial-gradient(circle at 20% 80%, rgba(244, 208, 63, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244, 208, 63, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 
    -10px 0 30px rgba(0, 0, 0, 0.4),
    -5px 0 15px rgba(244, 208, 63, 0.2);
  backdrop-filter: blur(10px);
  border-left: 2px solid rgba(244, 208, 63, 0.3);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f4d03f, transparent);
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.8;
}

/* =====================
   ICONE SOCIAL MEDIA
===================== */
.social-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: #f4d03f;
}


.social-link:hover .social-icon {
  transform: scale(1.1);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: #f4d03f;
}
/* =====================
   CONTACT INFO HERO - COMPATTO
===================== */
.contact-info {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  animation: slideIn 1s ease-out 0.3s both;
}

.contact-info p {
  color: white;
  font-size: 1rem;
  margin: 0;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-link {
  color: white;
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-link:hover {
  color: #f4d03f;
  text-shadow: 0 2px 4px rgba(244, 208, 63, 0.3);
}

/* =====================
   RESPONSIVE - TABLET
===================== */
@media (max-width: 1024px) {
  .logo {
    width: 140px;
    height: 90px;
    border-radius: 50%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(244, 208, 63, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-info p {
    font-size: 0.95rem;
  }
}

/* =====================
   WHATSAPP FLOATING BUTTON
===================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 25px rgba(37, 211, 102, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: scale(1.1);
  box-shadow: 
    0 12px 35px rgba(37, 211, 102, 0.6),
    0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover svg {
  transform: scale(1.1);
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 
      0 8px 25px rgba(37, 211, 102, 0.4),
      0 4px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 
      0 8px 25px rgba(37, 211, 102, 0.6),
      0 4px 15px rgba(0, 0, 0, 0.2),
      0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 
      0 8px 25px rgba(37, 211, 102, 0.4),
      0 4px 15px rgba(0, 0, 0, 0.2);
  }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* Responsive Hero Full Screen */
@media (max-width: 768px) {
  .hero {
    height: calc(100vh - 60px);
    padding: 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: calc(100vh - 60px);
    padding: 1rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

/* =====================
   WHATSAPP FLOATING BUTTON
===================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 25px rgba(37, 211, 102, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  background: #128c7e;
  transform: scale(1.1);
  box-shadow: 
    0 12px 35px rgba(37, 211, 102, 0.6),
    0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:hover svg {
  transform: scale(1.1);
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 
      0 8px 25px rgba(37, 211, 102, 0.4),
      0 4px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 
      0 8px 25px rgba(37, 211, 102, 0.6),
      0 4px 15px rgba(0, 0, 0, 0.2),
      0 0 0 10px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 
      0 8px 25px rgba(37, 211, 102, 0.4),
      0 4px 15px rgba(0, 0, 0, 0.2);
  }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .whatsapp-float {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

/* =====================
   RESPONSIVE - MOBILE
===================== */
@media (max-width: 768px) {
  header {
    padding: 0.6rem 1rem;
  }

  .logo {
    width: 120px !important;
    height: 80px !important;
    border-radius: 50% !important;
    padding: 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(244, 208, 63, 0.3) !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
  }

  .logo:hover {
    transform: scale(1.05) !important;
    filter: 
      drop-shadow(0 0 12px rgba(244, 208, 63, 0.6))
      drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) !important;
    border-color: rgba(244, 208, 63, 0.6) !important;
    background: rgba(255, 255, 255, 0.15) !important;
  }

  .logo-container {
    gap: 0.3rem;
    align-items: center;
  }

  .logo-container h1 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: 0.3rem;
  }

  .mobile-menu-button {
    display: flex;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    background: 
      radial-gradient(circle at 20% 80%, rgba(244, 208, 63, 0.2) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(244, 208, 63, 0.15) 0%, transparent 50%),
      linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 80%;
    max-width: 350px;
    transition: right 0.3s ease;
    box-shadow: 
      -10px 0 30px rgba(0, 0, 0, 0.4),
      -5px 0 15px rgba(244, 208, 63, 0.2);
    backdrop-filter: blur(10px);
    border-left: 2px solid rgba(244, 208, 63, 0.3);
    z-index: 999;
  }

  .nav-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f4d03f, rgba(244, 208, 63, 0.8));
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
  }

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

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

  .hero {
    padding: 8rem 1.5rem 4rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
    margin: 0.3rem 0;
  }

  .btn-secondary {
    margin-left: 0;
  }

  .contact-info p {
    font-size: 0.9rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-card {
    flex: 0 0 250px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .iframe {
    padding: 0 1.5rem;
  }

  .iframe iframe {
    height: 300px;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* =====================
   RESPONSIVE - SMALL MOBILE
===================== */
@media (max-width: 480px) {
  .logo {
    width: 100px !important;
    height: 70px !important;
    border-radius: 50% !important;
    padding: 6px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px) !important;
    border: 2px solid rgba(244, 208, 63, 0.3) !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .iframe iframe {
    height: 250px;
  }

  .contact-info p {
    font-size: 0.85rem;
  }
}

/* =====================
   MODAL GALLERIA
===================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease-out;
}

.modal.show {
  display: block;
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  max-width: 800px;
  top: 50%;
  transform: translateY(-50%);
  animation: slideIn 0.3s ease-out;
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.close {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2002;
  background: rgba(0, 0, 0, 0.95);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 4px solid #f4d03f;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 6px 25px rgba(0, 0, 0, 0.9),
    0 0 0 3px rgba(244, 208, 63, 0.8),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  opacity: 1;
  visibility: visible;
}

.close:hover {
  color: #f4d03f;
  background: rgba(0, 0, 0, 0.95);
  transform: scale(1.1);
  box-shadow: 
    0 6px 25px rgba(0, 0, 0, 0.9),
    0 0 0 3px rgba(244, 208, 63, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.close:active {
  transform: scale(0.95);
}

/* Assicurati che il bottone di chiusura sia sempre visibile */
.modal.show .close {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2002 !important;
  position: fixed !important;
  top: 50% !important;
  right: 30px !important;
  transform: translateY(-50%) !important;
}

/* Forza la visibilità del bottone quando il modal è aperto */
.modal[style*="block"] .close {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: fixed !important;
  top: 50% !important;
  right: 30px !important;
  transform: translateY(-50%) !important;
  z-index: 2002 !important;
}

/* Responsive per modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-width: none;
  }
  
  .close {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    z-index: 2003;
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #f4d03f;
    box-shadow: 
      0 6px 25px rgba(0, 0, 0, 0.9),
      0 0 0 2px rgba(244, 208, 63, 0.8),
      inset 0 2px 0 rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98%;
  }
  
  .close {
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 2rem;
    width: 55px;
    height: 55px;
    z-index: 2003;
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #f4d03f;
    box-shadow: 
      0 6px 25px rgba(0, 0, 0, 0.9),
      0 0 0 2px rgba(244, 208, 63, 0.8),
      inset 0 2px 0 rgba(255, 255, 255, 0.3);
  }
}

/* =====================
   HERO CAR BACKGROUND
===================== */
.hero-car-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-car-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(1px) brightness(0.9) contrast(1.0);
  animation: carBgFloat 20s ease-in-out infinite;
  transform: scale(1.05);
}

.hero-car-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, rgba(26, 84, 144, 0.9) 0%, rgba(26, 84, 144, 0.7) 50%, rgba(26, 84, 144, 0.5) 100%),
    radial-gradient(circle at 30% 70%, rgba(244, 208, 63, 0.2) 0%, transparent 50%);
  animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes carBgFloat {
  0%, 100% {
    transform: scale(1.05) translateX(0) translateY(0);
  }
  25% {
    transform: scale(1.08) translateX(-5px) translateY(-3px);
  }
  50% {
    transform: scale(1.05) translateX(3px) translateY(-5px);
  }
  75% {
    transform: scale(1.06) translateX(-3px) translateY(3px);
  }
}

@keyframes overlayPulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.6;
  }
}
