/* Officina Benito Pallotta - custom styles (CSS puro, compatibile con Tailwind CDN) */

.nav-link {
  padding: 0.5rem 1rem;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #111111;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #E41F26;
}
.nav-link-active {
  color: #E41F26;
}
.nav-link-active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 2px;
  background: #E41F26;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #E41F26;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  transition: background 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #B3151A; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #111111;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  transition: background 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
}
.btn-secondary:hover { background: #000; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid #111111;
  color: #111111;
  background: transparent;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-outline:hover { background: #111111; color: #fff; }

.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 2rem;
  color: #111111;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .section-title { font-size: 2.5rem; }
}
.section-title-accent { color: #E41F26; }

.card {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.product-card-img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  background: #f4f4f4;
}
@media (min-width: 768px) {
  .product-card-img { height: 13rem; }
}

.badge-red {
  display: inline-block;
  background: #E41F26;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
}

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

.stripe-accent {
  background: repeating-linear-gradient(45deg, #E41F26, #E41F26 12px, #111111 12px, #111111 24px);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: #111;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  border-left: 4px solid #E41F26;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  font-size: 14px;
  max-width: 320px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #E41F26;
  box-shadow: 0 0 0 3px rgba(228,31,38,0.15);
}

html { scroll-behavior: smooth; }
