/* Base */
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  color: #222;
  background: #fff;
}
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Navbar */
.site-header {
  background: #fff8f2;
  border-bottom: 2px solid #fca733;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo img {
  height: 48px;
}
.nav-links {
  display: flex;
  gap: 18px;
}
.nav-links a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #f57c00;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #f57c00;
  margin: 3px 0;
  border-radius: 2px;
}

/* Mobile menu */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 65px;
    right: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    padding: 10px 20px;
    border-bottom: 1px solid #f4f4f4;
  }
  .hamburger {
    display: flex;
  }
}

/* Hero section
.hero {
  text-align: center;
  padding: 30px 10px;
  background: #fff;
}
.hero .cover {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
}
.hero-text h1 {
  color: #f57c00;
  margin-top: 15px;
}
 */
/* Sezione hero orizzontale */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px 20px;
  background: #fff;
  border-bottom: 3px solid #ff8a00;
}

.hero img.cover {
  width: 420px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.hero-text {
  max-width: 520px;
}

.hero-text h1 {
  font-size: 1.8rem;
  color: #ff8a00;
  margin: 0 0 10px;
  font-weight: 700;
}

.hero-text p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.5;
}



/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 30px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-4px);
}
.card-head {
  background: #fca733 url('/assets/img/brillantini.png') center/cover no-repeat;
  padding: 16px;
  border-radius: 12px 12px 0 0;
  position: relative;
  text-align: center;
  overflow: hidden; /* ✅ arrotonda anche il ::before */
  border-radius: 12px 12px 0 0;
}
.card-head h4 {
  margin: 0;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}
/* effetto lucido sopra i brillantini */
.card-head::before {
  /* Riflesso diagonale leggero */
.card-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.15) 35%,
    rgba(255,255,255,0) 70%
  );
  z-index: 1;
  pointer-events: none;
}
/*
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), transparent 70%);
  border-radius: 12px 12px 0 0;
  z-index: 1;
  */
}
.card p {
  padding: 15px;
  font-size: 0.95rem;
  color: #444;
}
.card .btn {
  display: inline-block;
  margin: 0 0 15px 15px;
  background: #f57c00;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.card .btn:hover {
  background: #e26f00;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 25px 10px;
  background: #fff8f2;
  border-top: 2px solid #fca733;
  font-size: 0.9rem;
  color: #444;
}
.site-footer a {
  color: #f57c00;
  text-decoration: none;
  font-weight: 500;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer .social {
  margin-top: 10px;
}
.site-footer .social a {
  margin: 0 8px;
  font-size: 1.2rem;
  color: #f57c00;
}
.site-footer .social a:hover {
  color: #e26f00;
}

/* Versione responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 25px 10px;
  }
  .hero img.cover {
    width: 100%;
    max-width: 340px;
  }
  .hero-text h1 {
    font-size: 1.5rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
}