/* Custom CSS per OrologioUsato.it */

:root {
  --primary-color: #3f51b5; /* Blu acceso */
  --secondary-color: #ff4081; /* Rosa acceso */
  --dark-color: #303030;
  --light-color: #f8f9fa;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --gray-color: #f0f0f0;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background-color: #f8f9fa;
}

/* Navbar migliorata */
.navbar {
  padding: 1rem 0;
  background: linear-gradient(135deg, var(--primary-color), #2c3e95) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar .nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .nav-link:hover::after {
  width: 70%;
}

/* Pulsanti migliorati */
.btn {
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.6rem 1.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #2c3e95);
  border: none;
  box-shadow: 0 4px 10px rgba(63, 81, 181, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(63, 81, 181, 0.4);
  background: linear-gradient(135deg, #4a5fce, #3f51b5);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #388e3c);
  border: none;
  box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(63, 81, 181, 0.2);
}

/* Card design migliorato */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.watch-card {
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.watch-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.watch-card .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.watch-card:hover .card-img-top {
  transform: scale(1.05);
}

.card-title {
  font-weight: 600;
  color: var(--dark-color);
}

.card-footer {
  background-color: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Badge personalizzato */
.badge {
  padding: 0.5rem 0.8rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.75rem;
}

.badge-primary {
  background-color: var(--primary-color);
}

.badge-secondary {
  background-color: var(--secondary-color);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(63, 81, 181, 0.8), rgba(44, 62, 149, 0.8)), url('https://images.unsplash.com/photo-1539874754764-5a96559165b0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 50px 50px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-section h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Sezione categorie */
.category-section {
  padding: 4rem 0;
}

.category-card {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  background: white;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-card i {
  color: var(--primary-color);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.category-card h3 {
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Feature section */
.feature-section {
  padding: 4rem 0;
  background-color: var(--gray-color);
  border-radius: 50px;
  margin: 3rem 0;
}

.feature-box {
  text-align: center;
  padding: 2rem;
}

.feature-box i {
  color: var(--primary-color);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-box:hover i {
  transform: scale(1.2);
}

/* Footer migliorato */
.footer {
  background: linear-gradient(135deg, var(--dark-color), #212121);
  color: white;
  padding: 4rem 0 2rem;
  border-radius: 50px 50px 0 0;
  margin-top: 3rem;
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer h5::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  text-decoration: none;
}

.footer a:hover {
  color: white;
  text-decoration: none;
  padding-left: 5px;
}

.footer .social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: var(--transition);
}

.footer .social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

/* Effetti per le immagini */
.img-hover-zoom {
  overflow: hidden;
  border-radius: 15px;
}

.img-hover-zoom img {
  transition: transform .5s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.1);
}

/* Form migliorati */
.form-control {
  border-radius: 10px;
  padding: 0.8rem 1rem;
  border: 1px solid #e0e0e0;
  transition: var(--transition);
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.2);
  border-color: var(--primary-color);
}

/* Carosello migliorato */
.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 1.5rem;
}

/* Icone animate */
.animated-icon {
  transition: all 0.5s ease;
}

.animated-icon:hover {
  transform: rotate(10deg) scale(1.2);
}

/* Pulsante "Torna su" */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background-color: #2c3e95;
}

/* Animazioni */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
    border-radius: 0 0 30px 30px;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .feature-section {
    border-radius: 30px;
  }
  
  .footer {
    border-radius: 30px 30px 0 0;
  }
}

/* Prezzo in evidenza */
.price-tag {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.price-tag::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 5px;
  background-color: rgba(63, 81, 181, 0.2);
  bottom: 3px;
  left: 0;
  z-index: -1;
  border-radius: 5px;
}
