/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0066cc; text-decoration: none; transition: color 0.2s; }
a:hover { color: #004999; text-decoration: underline; }
.container { width: min(90%, 1200px); margin-inline: auto; padding: 0 1rem; }
.section { padding: 3rem 0; }
.section-intro { color: #555; margin-bottom: 1.5rem; max-width: 700px; }

/* ===== HEADER ===== */
.site-header {
  background: #1a1a2e;
  color: #fff;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  white-space: nowrap;
}
.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: #fff;
  opacity: 0.9;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}
.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  text-decoration: none;
  border-bottom: 2px solid #fff;
}
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.hero p {
  font-size: 1rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
  max-width: 650px;
  margin-inline: auto;
}
.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BOTTONI ===== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s, background 0.2s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: #0066cc; color: #fff; }
.btn-primary:hover { background: #0052a3; color: #fff; }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: #1a1a2e; }
.btn-text { color: #0066cc; font-weight: 500; }
.btn-text:hover { text-decoration: none; color: #004999; }

/* ===== SEZIONI PREVIEW ===== */
.preview {
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.preview h2 { margin-bottom: 1rem; color: #1a1a2e; }

/* ===== LOGO SCROLLER VERTICALE ===== */
.logo-scroller {
  overflow: hidden;
  height: 380px;
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
.logo-track {
  display: flex;
  flex-direction: column;
  animation: scrollVertical 45s linear infinite;
  padding: 0.5rem 0;
}
.logo-track:hover { animation-play-state: paused; }
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s;
}
.logo-item:hover { background: #f0f7ff; text-decoration: none; }
.logo-item img {
  max-height: 55px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.75);
  transition: filter 0.3s ease;
}
.logo-item:hover img { filter: grayscale(0%) opacity(1); }

@keyframes scrollVertical {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ===== GRID MARCHI ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.brand-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
}
.brand-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  text-decoration: none;
}
.brand-card img {
  max-height: 70px;
  margin: 0 auto 0.75rem;
  filter: grayscale(100%) opacity(0.8);
  transition: filter 0.3s;
}
.brand-card:hover img { filter: grayscale(0%) opacity(1); }
.brand-card span {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a2e;
}

/* ===== MAPPA GOOGLE ===== */
.map-container {
  aspect-ratio: 16/9;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  margin: 1.25rem 0;
  background: #f9fafb;
}
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== INFO BOX ===== */
.info-box {
  background: #f8fafc;
  border-left: 4px solid #0066cc;
  padding: 1.25rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
}
.info-box p { margin: 0.4rem 0; }
.info-box a { font-weight: 500; }

/* ===== FOOTER ===== */
.site-footer {
  background: #1a1a2e;
  color: #fff;
  text-align: center;
  padding: 1.75rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}
.site-footer a { color: #fff; opacity: 0.9; }
.site-footer a:hover { opacity: 1; text-decoration: none; }
.site-footer p { margin: 0.25rem 0; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1a1a2e;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
  }
  .main-nav.active { display: flex; }
  .main-nav a { padding: 0.4rem 0; }
  .hero { padding: 2.5rem 0; }
  .logo-scroller { height: 320px; }
  .logo-item img { max-height: 48px; max-width: 140px; }
  .brands-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .section { padding: 2.5rem 0; }
}
@media (max-width: 480px) {
  .logo { font-size: 1rem; }
  .hero h1 { font-size: 1.4rem; }
  .btn { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
  .logo-scroller { height: 280px; }
}