/* Stili personalizzati per Bootstrap con font moderni */

/* Typography moderna */
:root {
  --bs-primary: #1e3c72;
  --bs-primary-rgb: 30, 60, 114;
  --bs-success: #28a745;
  --bs-success-rgb: 40, 167, 69;
  --font-primary: "Inter", system-ui, -apple-system, sans-serif;
  --font-secondary: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* Override font di Bootstrap */
body {
  font-family: var(--font-primary) !important;
  font-weight: 400;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary) !important;
  font-weight: 600;
  letter-spacing: -0.025em;
}

main {
  background-color: #f0f0f0;
}
.btn {
  font-family: var(--font-secondary) !important;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.bg-yellow {
  background: #ffdd00 !important;
}

.text-body-xl {
  font-size: 1.5rem !important;
}


.text-body-sm {
  font-size: 0.875rem !important;
}

.text-display-lg {
  font-family: "Merriweather", serif !important;
  font-weight: 700 !important;
  font-size: 2.5rem !important;
} 

/* Calendario compatto */
.calendar-compact {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 0.75rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.04);
  max-width: 100%;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid transparent;
  font-family: var(--font-primary);
}

.calendar-day.header {
  background: linear-gradient(135deg, #f7f121 0%, #ffc033 100%);
  color: #000000;
  font-weight: 600;
  cursor: default;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  font-family: var(--font-secondary);
}

.calendar-day.other-month {
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.3;
}

.calendar-day.unavailable {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #adb5bd;
  cursor: not-allowed;
  position: relative;
}

.calendar-day.unavailable::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 20%;
  right: 20%;
  height: 1px;
  background: #adb5bd;
  transform: translateY(-50%) rotate(-45deg);
}

.calendar-day.available {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid rgba(40, 167, 69, 0.2);
  box-shadow: 0 1px 4px rgba(40, 167, 69, 0.08);
}

.calendar-day.available:hover {
  background: linear-gradient(135deg, #b8daff 0%, #9fcdff 100%);
  color: #004085;
  border-color: #007bff;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.calendar-day.selected {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #2a5298 100%);
  color: white;
  border: 1px solid #ffc107;
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(30, 60, 114, 0.25);
  z-index: 2;
}

.calendar-day.selected::before {
  content: "✓";
  position: absolute;
  top: 1px;
  right: 1px;
  font-size: 0.6rem;
  background: #ffc107;
  color: var(--bs-primary);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.calendar-day.today {
  border: 2px solid #ffc107;
  box-shadow: 0 0 0 1px rgba(255, 193, 7, 0.2);
}

.calendar-day.today.available {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
}

.calendar-day.today.selected {
  border-color: #fd7e14;
  box-shadow: 0 2px 12px rgba(253, 126, 20, 0.3);
}

/* Legenda calendario ottimizzata */
.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-color-sm {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-color.available {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border: 1px solid var(--bs-success);
}

.legend-color.selected {
  background: var(--bs-primary);
}

.legend-color.unavailable {
  background: #f8f9fa;
  border: 1px solid #ccc;
}

/* Carrello personalizzato */
.cart-item {
  padding: 0.5rem 0.85rem;
  margin-bottom: 0.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cart-item:hover {
  background: #e9ecef;
}

.cart-item-date {
  font-weight: 600;
  color: #333;
}

.cart-item-price {
  color: var(--bs-success);
  font-weight: 600;
}

.remove-btn {
  background: #dc3545;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.remove-btn:hover {
  background: #c82333;
  transform: scale(1.1);
}

/* Pulsanti quantità */
.quantity-btn {
  background: var(--bs-primary);
  color: white;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.quantity-btn:hover {
  background: #2a5298;
  transform: scale(1.05);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-display {
  font-weight: 600;
  color: var(--bs-primary);
  min-width: 24px;
  text-align: center;
  font-size: 0.95rem;
}

/* Opzioni di consegna personalizzate */
.delivery-option {
  cursor: pointer;
  transition: all 0.3s ease;
}

.delivery-option:hover {
  border-color: var(--bs-primary) !important;
  background-color: rgba(var(--bs-primary-rgb), 0.05) !important;
  border-radius: 10px;
}

.delivery-option input[type="radio"]:checked + div {
  border-color: var(--bs-primary) !important;
  background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

/* Miglioramenti responsive per calendario compatto */
@media (max-width: 768px) {
  .calendar-compact {
    gap: 1px;
    padding: 0.5rem;
  }

  .calendar-day.header {
    font-size: 0.65rem;
  }

  .calendar-day.selected::before {
    width: 10px;
    height: 10px;
    font-size: 0.5rem;
  }
}

/* Miglioramenti tipografici */
.text-primary {
  font-weight: 600 !important;
}

.form-label {
  font-family: var(--font-secondary) !important;
  font-weight: 500;
}

.form-select,
.form-control {
  font-family: var(--font-primary) !important;
  font-weight: 400;
}

/* Card e contenitori più moderni */
.rounded-3 {
  border-radius: 0.75rem !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.05) !important;
}

/* Animazioni per pulsanti Bootstrap */
.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Override per modal Bootstrap */
.modal-content {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Stili per form Bootstrap */
.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Gradiente per header */
.bg-primary {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #2a5298 100%) !important;
}

/* Nuovi stili per la pagina migliorata */

/* Hero Card */
.hero-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
}

/* Mockup Container */
.mockup-container {
  position: relative;
  transition: transform 0.3s ease;
}

.mockup-container:hover {
  transform: scale(1.02);
}


/* Price Card - Design Migliorato */
.price-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid var(--bs-success);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(40, 167, 69, 0.15);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  margin: 2rem 0;
}

.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--bs-success) 0%, #20c997 100%);
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(40, 167, 69, 0.25);
  border-color: #20c997;
}

.price-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-icon {
  font-size: 1.25rem;
  color: var(--bs-success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.price-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bs-success);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-secondary);
}

.price-main {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.price-currency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-success);
  font-family: var(--font-secondary);
  margin-top: 0.5rem;
}

.price-amount {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--bs-success);
  font-family: var(--font-secondary);
  letter-spacing: -0.02em;
}

.price-decimal {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-success);
  font-family: var(--font-secondary);
  margin-top: 0.5rem;
}

.price-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(40, 167, 69, 0.08);
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: #155724;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: rgba(40, 167, 69, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.price-feature:hover {
  background: rgba(40, 167, 69, 0.12);
  transform: translateX(5px);
}

.price-feature i {
  color: var(--bs-success);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.price-feature span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

/* Shadow Hover Effect */
.shadow-hover {
  transition: all 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-3px) scale(1.02);
}

/* Info Box */
.info-box {
  border-left: 4px solid var(--bs-primary);
  transition: all 0.3s ease;
}

.info-box:hover {
  background-color: #f0f8ff !important;
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.08);
}

/* Custom List */
.custom-list {
  list-style: none;
  padding-left: 0;
}

.custom-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.custom-list li i {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Feature Cards */
.feature-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(30, 60, 114, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ffdd00 0%, #ffc033 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(255, 221, 0, 0.3);
}

.feature-icon i {
  font-size: 1.75rem;
  color: #000;
}

.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li i {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-header h4 {
  color: #333;
  margin-bottom: 0.5rem;
}

.contact-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: currentColor;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-icon.bg-primary {
  background: linear-gradient(135deg, var(--bs-primary) 0%, #2a5298 100%);
}

.contact-icon.bg-success {
  background: linear-gradient(135deg, var(--bs-success) 0%, #20c997 100%);
}

/* Modern Footer */
.modern-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-links {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .text-display-lg {
    font-size: 2rem !important;
  }
  
  .price-amount {
    font-size: 3.5rem;
  }
  
  .price-currency, .price-decimal {
    font-size: 1.75rem;
  }
  
  .hero-card {
    padding: 2rem !important;
  }
}

@media (max-width: 768px) {
  .text-display-lg {
    font-size: 1.75rem !important;
  }
  
  .price-card {
    padding: 1.5rem;
  }
  
  .price-amount {
    font-size: 3rem;
  }
  
  .price-currency, .price-decimal {
    font-size: 1.5rem;
  }
  
  .mockup-container {
    margin-bottom: 2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .contact-section {
    padding: 1.5rem;
  }
  
  .contact-card {
    padding: 1rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Animazioni */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card {
  animation: fadeInUp 0.6s ease-out;
}
