/* AF Arte del Ferro Veneri - Custom Styles */

/* Background pattern */
.bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: rgba(233, 115, 22, 0.2);
  color: inherit;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid #e97316;
  outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-in {
  animation: slideIn 0.5s ease-out forwards;
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 115, 22, 0.2);
}

/* Product checkbox styles */
.product-checkbox input:checked + .product-card {
  border-color: #e97316;
  background-color: #fef7ee;
}

.product-checkbox input:checked + .product-card .checkbox-indicator {
  background-color: #e97316;
  border-color: #e97316;
}

.product-checkbox input:checked + .product-card .checkbox-indicator i {
  display: block;
}

/* FAQ accordion */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content.open {
  max-height: 500px;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

/* Loading state */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Button hover effects */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Image lazy loading placeholder */
.img-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Mobile menu transition */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
  max-height: 1000px;
}

/* Dropdown menu styles */
.group:hover .group-hover\:visible {
  visibility: visible;
  opacity: 1;
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  z-index: 9999;
  animation: slideIn 0.3s ease-out;
}

.toast-success {
  background: #22c55e;
}

.toast-error {
  background: #ef4444;
}

.toast-info {
  background: #3b82f6;
}

/* File upload drag state */
#file-upload-area.drag-over {
  border-color: #e97316;
  background-color: #fef7ee;
}

/* Print styles */
@media print {
  header, footer, .no-print {
    display: none !important;
  }
  
  main {
    padding: 0 !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :focus-visible {
    outline-width: 3px;
  }
  
  .btn-primary {
    border: 2px solid currentColor;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  /* Can be implemented if needed */
}

/* ==========================================
   PROTEZIONE ANTI-COPIA
   ========================================== */

/* Disabilita selezione testo su tutto il sito */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Abilita selezione solo nei campi input/textarea per usabilità */
input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Disabilita trascinamento immagini */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Disabilita menu contestuale su immagini */
img::selection {
  background: transparent;
}

/* Nascondi selezione generale */
*::selection {
  background: transparent;
}

/* Permetti selezione solo nei form */
input::selection,
textarea::selection {
  background-color: rgba(233, 115, 22, 0.3);
}

/* ==========================================
   CHATBOT AI STYLES
   ========================================== */

#chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9998;
  font-family: 'Inter', sans-serif;
}

/* Toggle Button */
.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e97316 0%, #d97706 100%);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(233, 115, 22, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(233, 115, 22, 0.5);
}

.chatbot-toggle.chatbot-open {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.chatbot-toggle.chatbot-open i::before {
  content: "\f00d"; /* fa-times */
}

.chatbot-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.chatbot-toggle.chatbot-open .chatbot-badge {
  display: none;
}

/* Chatbot Window */
.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-window.hidden {
  display: none;
}

/* Header */
.chatbot-header {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #e97316 0%, #d97706 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chatbot-header h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.chatbot-status {
  font-size: 12px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.chatbot-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Messages Area */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chatbot-message {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

.chatbot-bot {
  justify-content: flex-start;
}

.chatbot-user {
  justify-content: flex-end;
}

.chatbot-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.chatbot-bot .chatbot-bubble {
  background: white;
  color: #1f2937;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chatbot-user .chatbot-bubble {
  background: linear-gradient(135deg, #e97316 0%, #d97706 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-bubble a {
  text-decoration: underline;
}

.chatbot-bot .chatbot-bubble a {
  color: #e97316;
}

.chatbot-user .chatbot-bubble a {
  color: white;
}

/* Typing Indicator */
.chatbot-typing {
  display: flex;
  gap: 4px;
  padding: 16px !important;
}

.chatbot-typing span {
  width: 8px;
  height: 8px;
  background: #9ca3af;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.chatbot-typing span:nth-child(1) { animation-delay: 0s; }
.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
}

/* Quick Replies */
.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}

.chatbot-quick-reply {
  background: white;
  border: 1px solid #e5e7eb;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  color: #374151;
}

.chatbot-quick-reply:hover {
  background: #fef7ee;
  border-color: #e97316;
  color: #e97316;
}

/* Input Area */
.chatbot-input-area {
  padding: 16px;
  background: white;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
}

#chatbot-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-user-select: text;
  user-select: text;
}

#chatbot-input:focus {
  border-color: #e97316;
  box-shadow: 0 0 0 3px rgba(233, 115, 22, 0.1);
}

#chatbot-send {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #e97316 0%, #d97706 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#chatbot-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(233, 115, 22, 0.3);
}

/* Mobile Responsive */
@media (max-width: 480px) {
  #chatbot-widget {
    bottom: 10px;
    right: 10px;
  }
  
  .chatbot-window {
    width: calc(100vw - 20px);
    height: calc(100vh - 100px);
    bottom: 70px;
    right: -10px;
    border-radius: 16px;
  }
  
  .chatbot-toggle {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }
}

/* ==========================================
   UX ENHANCEMENTS STYLES
   ========================================== */

/* 1. Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #e97316 0%, #f59e0b 100%);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(233, 115, 22, 0.5);
}

/* 2. Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #e97316 0%, #d97706 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(233, 115, 22, 0.3);
}

.back-to-top i {
  font-size: 18px;
}

/* 3. Smart Navbar */
header {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

header.nav-hidden {
  transform: translateY(-100%);
}

header.nav-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* 4. Image Lazy Loading */
.img-loading {
  filter: blur(10px);
  transform: scale(1.05);
  transition: filter 0.5s ease, transform 0.5s ease;
}

.img-loaded {
  filter: blur(0);
  transform: scale(1);
}

/* 5. Ripple Effect */
.ripple-container {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  pointer-events: none;
  width: 100px;
  height: 100px;
  margin-left: -50px;
  margin-top: -50px;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* 6. Form Animations */
.form-floating {
  position: relative;
}

.form-floating label {
  transition: all 0.2s ease;
}

.form-floating.focused label,
.form-floating input.has-value + label {
  transform: translateY(-24px) scale(0.85);
  color: #e97316;
}

.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.input-valid {
  border-color: #22c55e !important;
}

.shake {
  animation: shakeAnim 0.5s ease-in-out;
}

@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* 7. Card 3D Effect */
.card-3d {
  transition: transform 0.15s ease;
  transform-style: preserve-3d;
}

.card-3d:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 8. Counter Animation - No special styles needed, handled by JS */

/* 9. Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
}

.skeleton-pulse {
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Additional Micro-interactions */

/* Hover lift effect for cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Pulse animation for CTAs */
.pulse-cta {
  animation: pulseCTA 2s infinite;
}

@keyframes pulseCTA {
  0% { box-shadow: 0 0 0 0 rgba(233, 115, 22, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(233, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 115, 22, 0); }
}

/* Glow effect on hover */
.glow-hover:hover {
  box-shadow: 0 0 20px rgba(233, 115, 22, 0.4);
}

/* Underline animation for links */
.underline-anim {
  position: relative;
  text-decoration: none;
}

.underline-anim::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: #e97316;
  transition: width 0.3s ease;
}

.underline-anim:hover::after {
  width: 100%;
}

/* Stagger animation for lists */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerIn 0.5s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icon bounce on hover */
.icon-bounce:hover i {
  animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #e97316 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tooltip styles */
.tooltip {
  position: relative;
}

.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  padding: 8px 12px;
  background: #1f2937;
  color: white;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
}

.tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1f2937;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Focus ring for accessibility */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 115, 22, 0.4);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 90px;
    right: 15px;
    width: 44px;
    height: 44px;
  }
  
  .scroll-progress-bar {
    height: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar,
  .back-to-top,
  .ripple,
  .skeleton-pulse,
  .pulse-cta,
  .stagger-item,
  .icon-bounce:hover i {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================
   WHATSAPP WIDGET STYLES
   ========================================== */

#whatsapp-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9996;
  font-family: 'Inter', sans-serif;
}

/* WhatsApp Button */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  color: white;
  font-size: 32px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  background: #20BA5C;
}

.whatsapp-btn i {
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover i {
  transform: rotate(-10deg) scale(1.1);
}

/* Pulse Animation */
.whatsapp-pulse {
  animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  left: 70px;
  background: #1f2937;
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.whatsapp-tooltip::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #1f2937;
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* WhatsApp Popup */
.whatsapp-popup {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 320px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: popupSlideUp 0.3s ease-out;
}

@keyframes popupSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.whatsapp-popup.hidden {
  display: none;
}

/* Popup Header */
.whatsapp-popup-header {
  background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
  color: white;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.whatsapp-popup-header h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.whatsapp-status {
  font-size: 12px;
  opacity: 0.9;
}

.whatsapp-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s;
}

.whatsapp-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Popup Body */
.whatsapp-popup-body {
  padding: 16px;
  background: #E5DDD5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4ccc4' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.whatsapp-message {
  background: white;
  padding: 12px 16px;
  border-radius: 0 12px 12px 12px;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.whatsapp-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  border: 8px solid transparent;
  border-top-color: white;
  border-right-color: white;
}

.whatsapp-message p {
  margin: 0;
  font-size: 14px;
  color: #1f2937;
}

.whatsapp-time {
  font-size: 11px;
  color: #6b7280;
  display: block;
  text-align: right;
  margin-top: 4px;
}

/* Popup Footer */
.whatsapp-popup-footer {
  padding: 12px 16px;
  background: white;
  border-top: 1px solid #e5e7eb;
}

.whatsapp-start-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}

.whatsapp-start-chat:hover {
  background: #20BA5C;
  transform: scale(1.02);
}

.whatsapp-start-chat i {
  font-size: 20px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  #whatsapp-widget {
    bottom: 15px;
    left: 15px;
  }
  
  .whatsapp-btn {
    width: 54px;
    height: 54px;
    font-size: 28px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
  
  .whatsapp-popup {
    width: calc(100vw - 30px);
    left: 0;
    bottom: 75px;
  }
}

/* Adjust position when chatbot is open */
@media (max-width: 480px) {
  #chatbot-widget:has(.chatbot-window:not(.hidden)) ~ #whatsapp-widget {
    bottom: calc(100vh - 100px);
  }
}

/* ==========================================
   PWA UPDATE NOTIFICATION
   ========================================== */

.update-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10003;
  animation: slideUp 0.3s ease-out;
}

.update-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.update-content button {
  background: #e97316;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.update-content button:hover {
  background: #d97706;
}

.update-content button:last-child {
  background: transparent;
  padding: 8px;
}

/* ==========================================
   LEAD CAPTURE POPUP STYLES
   ========================================== */

.lead-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10001;
  animation: fadeIn 0.3s ease;
}

.lead-popup-overlay.hidden {
  display: none;
}

.lead-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  background: white;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  z-index: 10002;
  overflow: hidden;
  animation: popupZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupZoomIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.lead-popup.hidden {
  display: none;
}

.lead-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 50%;
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.lead-popup-close:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #1f2937;
  transform: rotate(90deg);
}

.lead-popup-content {
  padding: 32px 28px;
  overflow-y: auto;
  max-height: 85vh;
}

/* Header */
.lead-popup-header {
  text-align: center;
  margin-bottom: 24px;
}

.lead-popup-badge {
  display: inline-block;
  background: linear-gradient(135deg, #e97316 0%, #f59e0b 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

.lead-popup-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 12px;
  line-height: 1.2;
}

.lead-popup-header h2 span {
  color: #e97316;
}

.lead-popup-header p {
  color: #6b7280;
  font-size: 15px;
  margin: 0;
}

/* Form */
.lead-popup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lead-form-group label i {
  color: #e97316;
  font-size: 12px;
}

.lead-form-group input,
.lead-form-group select {
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s ease;
  -webkit-user-select: text;
  user-select: text;
}

.lead-form-group input:focus,
.lead-form-group select:focus {
  outline: none;
  border-color: #e97316;
  box-shadow: 0 0 0 4px rgba(233, 115, 22, 0.1);
}

.lead-form-group input::placeholder {
  color: #9ca3af;
}

/* Submit Button */
.lead-popup-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #e97316 0%, #d97706 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.lead-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 115, 22, 0.35);
}

.lead-popup-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Privacy */
.lead-popup-privacy {
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lead-popup-privacy i {
  color: #22c55e;
}

/* Trust Badges */
.lead-popup-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.lead-popup-trust span {
  font-size: 11px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lead-popup-trust i {
  font-size: 12px;
}

/* Success State */
.lead-popup-success {
  text-align: center;
  padding: 20px 0;
}

.lead-popup-success .success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.lead-popup-success .success-icon i {
  font-size: 40px;
  color: white;
}

.lead-popup-success h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 12px;
}

.lead-popup-success p {
  color: #6b7280;
  font-size: 15px;
  margin: 0 0 24px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .lead-popup {
    width: 95%;
    max-width: none;
    border-radius: 20px;
  }
  
  .lead-popup-content {
    padding: 24px 20px;
  }
  
  .lead-popup-header h2 {
    font-size: 22px;
  }
  
  .lead-popup-trust {
    gap: 12px;
  }
  
  .lead-popup-trust span {
    font-size: 10px;
  }
}

/* ==========================================
   NUOVE ANIMAZIONI UI/UX - GENNAIO 2026
   ========================================== */

/* Animazione entrata hero elements */
@keyframes heroFadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate {
  animation: heroFadeInUp 0.8s ease-out forwards;
}

.hero-animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.hero-animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.hero-animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.hero-animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
.hero-animate-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* Effetto parallasse leggero per lo sfondo */
.parallax-bg {
  transform: translateZ(0);
  will-change: transform;
}

/* Effetto glassmorphism migliorato */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Animazione contatore stats */
@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.stat-animate {
  animation: countUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Effetto highlight per CTA */
@keyframes ctaGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(233, 115, 22, 0.3),
                0 0 10px rgba(233, 115, 22, 0.2),
                0 0 15px rgba(233, 115, 22, 0.1);
  }
  50% {
    box-shadow: 0 0 10px rgba(233, 115, 22, 0.5),
                0 0 20px rgba(233, 115, 22, 0.4),
                0 0 30px rgba(233, 115, 22, 0.2);
  }
}

.cta-glow {
  animation: ctaGlow 2.5s ease-in-out infinite;
}

/* Effetto shimmer per loading premium */
@keyframes shimmerPremium {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-premium {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmerPremium 2s linear infinite;
}

/* Card hover transform 3D avanzato */
.card-premium {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.card-premium:hover {
  transform: translateY(-12px) rotateX(2deg);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 15px 30px -15px rgba(233, 115, 22, 0.15);
}

.card-premium::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card-premium:hover::after {
  opacity: 1;
}

/* Badge animato floating */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

.badge-float {
  animation: floatBadge 4s ease-in-out infinite;
}

/* Bordo animato gradient */
@keyframes borderGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.border-animated {
  position: relative;
}

.border-animated::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(90deg, #e97316, #f59e0b, #22c55e, #3b82f6, #e97316);
  background-size: 300% 100%;
  animation: borderGradient 6s linear infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.border-animated:hover::before {
  opacity: 1;
}

/* Text reveal animation */
@keyframes textReveal {
  from {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.text-reveal {
  animation: textReveal 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Smooth image zoom su hover */
.img-zoom-smooth {
  overflow: hidden;
}

.img-zoom-smooth img {
  transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

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

/* Effetto tap feedback mobile */
@media (hover: none) {
  .tap-feedback:active {
    transform: scale(0.97);
    opacity: 0.9;
  }
}

/* Loading skeleton migliorato */
.skeleton-premium {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 20%, #f0f0f0 40%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: skeletonWave 1.5s ease-in-out infinite;
}

@keyframes skeletonWave {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Notification badge pulse */
@keyframes notificationPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.notification-pulse {
  animation: notificationPulse 1.5s ease-in-out infinite;
}

/* Scroll indicator bounce */
@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Typing cursor blink */
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typing-cursor::after {
  content: '|';
  animation: cursorBlink 0.8s step-end infinite;
  margin-left: 2px;
}

/* Success checkmark animation */
@keyframes checkmarkDraw {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

.checkmark-animate {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: checkmarkDraw 0.6s ease-out forwards;
}

/* Rotazione infinite per loader */
@keyframes spinSmooth {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spin-smooth {
  animation: spinSmooth 1s linear infinite;
}

/* Effetto morphing per i bottoni */
.btn-morph {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-morph:hover {
  border-radius: 30px;
}

/* Badge urgenza lampeggiante */
@keyframes urgentFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.urgent-badge {
  animation: urgentFlash 1s ease-in-out infinite;
}

/* ==========================================
   CALCOLATORE PREVENTIVO AI STYLES
   ========================================== */

#calc-preventivo-ai {
  position: fixed;
  bottom: 20px;
  left: 90px;
  z-index: 9995;
  font-family: 'Inter', sans-serif;
}

/* Calculator Button */
.calc-preventivo-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.calc-preventivo-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

.calc-preventivo-btn.calc-open {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* Tooltip */
.calc-tooltip {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.calc-tooltip::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #1f2937;
}

.calc-preventivo-btn:hover .calc-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Calculator Window */
.calc-preventivo-window {
  position: absolute;
  bottom: 60px;
  left: 0;
  width: 360px;
  max-width: calc(100vw - 40px);
  max-height: 80vh;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.calc-preventivo-window.hidden {
  display: none;
}

/* Header */
.calc-header {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-header-info i {
  font-size: 24px;
}

.calc-header h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.calc-header span {
  font-size: 12px;
  opacity: 0.8;
}

.calc-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.calc-close:hover {
  background: rgba(255,255,255,0.2);
}

/* Body */
.calc-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

/* Form */
.calc-form-group {
  margin-bottom: 16px;
}

.calc-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.calc-form-group label i {
  color: #3b82f6;
  margin-right: 6px;
  width: 16px;
}

.calc-form-group input,
.calc-form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  transition: border-color 0.2s;
  -webkit-user-select: text;
  user-select: text;
}

.calc-form-group input:focus,
.calc-form-group select:focus {
  outline: none;
  border-color: #3b82f6;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Checkboxes */
.calc-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.calc-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.calc-checkbox:hover {
  background: #f3f4f6;
}

.calc-checkbox input {
  width: auto;
  accent-color: #3b82f6;
}

/* Submit Button */
.calc-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.calc-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Risultato */
.calc-risultato {
  margin-top: 20px;
  border-top: 2px solid #e5e7eb;
  padding-top: 20px;
}

.calc-risultato.hidden {
  display: none;
}

.calc-risultato-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.calc-risultato-header i {
  color: #3b82f6;
}

.calc-risultato-body {
  background: #f0f9ff;
  border-radius: 12px;
  padding: 16px;
}

.calc-prezzo-main {
  text-align: center;
  margin-bottom: 16px;
}

.calc-prezzo-label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.calc-prezzo-value {
  font-size: 28px;
  font-weight: 800;
  color: #1d4ed8;
}

.calc-dettagli {
  border-top: 1px solid #dbeafe;
  padding-top: 12px;
}

.calc-dettaglio-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #374151;
  padding: 6px 0;
}

.calc-dettaglio-row.note {
  color: #6b7280;
  font-style: italic;
  font-size: 12px;
}

.calc-dettaglio-row.total {
  border-top: 1px dashed #dbeafe;
  margin-top: 8px;
  padding-top: 8px;
  font-weight: 600;
}

.calc-nota {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  background: #fef3c7;
  border-radius: 8px;
  font-size: 11px;
  color: #92400e;
}

.calc-nota i {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Actions */
.calc-risultato-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.calc-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.calc-action-btn.primary {
  background: linear-gradient(135deg, #e97316 0%, #d97706 100%);
  color: white;
}

.calc-action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(233, 115, 22, 0.3);
}

.calc-action-btn.secondary {
  background: #25D366;
  color: white;
}

.calc-action-btn.secondary:hover {
  background: #20BA5C;
}

/* Mobile */
@media (max-width: 480px) {
  #calc-preventivo-ai {
    left: 80px;
    bottom: 15px;
  }
  
  .calc-preventivo-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  .calc-tooltip {
    display: none;
  }
  
  .calc-preventivo-window {
    width: calc(100vw - 30px);
    left: -65px;
    bottom: 60px;
  }
  
  .calc-checkboxes {
    grid-template-columns: 1fr;
  }
  
  .calc-risultato-actions {
    grid-template-columns: 1fr;
  }
}
