/* ============================
   VARIABILI GLOBALI
============================ */
:root {
  --bg-main: #000000;
  --bg-section: #0c0f14;
  --accent-gold: #d4af37;
  --accent-orange: #BE6B35;
  --text-main: #ffffff;
  --text-muted: #e6e6e6;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;
}

/* ============================
   RESET
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* ============================
   NAVBAR
============================ */
.navbar {
  background: linear-gradient(180deg, #000 0%, #1a1a1a 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  border-bottom: 1px solid var(--accent-gold);
  position: relative;
  z-index: 1000;
}
.navbar-logo {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
}
.navbar-logo .italian {
  color: var(--accent-gold);
}
.navbar-logo .click {
  background: linear-gradient(90deg, var(--accent-gold) 0%, #fff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.desktop-menu a {
  color: #fff;
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
  transition: color 0.3s ease;
}
.desktop-menu a:hover {
  color: var(--accent-gold);
}

/* ============================
   HAMBURGER
============================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 9999;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--accent-gold);
  border-radius: 4px;
  transition: 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================
   MENU MOBILE
============================ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 78%;
  height: 100vh;
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(14px);
  border-left: 1px solid var(--accent-gold);
  padding: 80px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s ease, opacity 0.45s ease;
  z-index: 9998;
}
.mobile-menu a {
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ============================
   HERO
============================ */
.hero {
  position: relative;
  text-align: center;
  padding-top: 40px;
}
.hero-video {
  width: 100%;
  height: auto;
  display: block;
}
.hero-content {
  margin-top: 30px;
  padding: 0 20px;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--accent-gold);
}

/* ============================
   CARD GRID (Home)
============================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 40px;
  max-width: 1300px;
  margin: 0 auto;
}
.card {
  background: #11141b;
  border: 1px solid var(--accent-gold);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(212,175,55,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 28px rgba(212,175,55,0.45);
}

/* CARD IMAGE */
.card-image {
  width: 100%;
  height: 170px;
  background: #000;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* FIX MERCATINO */
.card-mercatino .card-image img {
  object-fit: contain;
  object-position: center bottom;
  padding-top: 20px;
}

/* ============================
   CARD BODY
============================ */
.card-body {
  padding: 16px;
  text-align: center;
}
.card-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.card-body p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================
   PARTNER / PORTAVOCE
============================ */
.partner-section {
  border-top: 1px solid var(--accent-gold);
  border-bottom: 1px solid var(--accent-gold);
  padding: 50px 0;
  text-align: center;
  background: var(--bg-section);
}
.partner-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  background: linear-gradient(90deg, var(--accent-gold) 0%, #fff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 30px;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 0 40px;
  max-width: 1300px;
  margin: 0 auto;
  justify-items: center;
}
.partner-card {
  width: 100%;
  min-height: 180px;
  background: #11141b;
  border: 1px solid var(--accent-gold);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(212,175,55,0.18);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.partner-card:hover {
  transform: translateY(-3px);
}
.partner-card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ============================
   MAPPA ITALIA
============================ */
.mappa-italia-section {
  text-align: center;
  padding: 40px 20px;
}
.mappa-italia-section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
}
.mappa-italia-section p {
  color: var(--text-muted);
  font-size: 1rem;
}
#map {
  width: 100%;
  max-width: 1200px;
  height: 600px;
  margin: 30px auto 0;
  border: 1px solid var(--accent-gold);
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(212,175,55,0.25);
}

/* ============================
   FOOTER
============================ */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 40px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}
.footer-inner {
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding: 0 20px;
}
.footer-links {
  margin-bottom: 15px;
  font-size: 0.95rem;
}
.footer-links a {
  color: #EBCB60;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: #fff;
}
.footer-links .sep {
  color: var(--accent-gold);
}
.pec-label {
  color: var(--text-muted);
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================
   RESPONSIVE DESIGN
============================ */
@media (max-width: 992px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .partner-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .desktop-menu { display: none !important; }
  .hamburger { display: flex !important; }
  .navbar { padding: 12px 20px; }
  .navbar-logo { font-size: 30px; }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.2;
  }
  .hero-content p {
    font-size: 0.95rem;
  }
  .cards-grid {
    grid-template-columns: 1fr !important;
    padding: 20px;
    gap: 16px;
  }
  .partner-grid {
    grid-template-columns: 1fr !important;
    padding: 0 20px;
  }
  .partner-card {
    min-height: auto;
    padding: 14px;
  }
  #map {
    height: 350px !important;
  }
}

