/* Custom Animations */
@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-in-left {
    animation: fade-in-left 0.8s ease-out forwards;
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite ease-in-out;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #0ea5e9;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* Header scroll effect */
.header-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
}

/* Form focus styles */
input:focus, select:focus, textarea:focus {
    transform: translateY(-1px);
}

/* Service card hover effect */
.group:hover .group-hover\:bg-sky-500 {
    transition: all 0.3s ease;
}

/* Mobile menu transition */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Button ripple effect simulation */
button:active, a:active {
    transform: scale(0.98);
}

/* Loading state for form */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive typography adjustments */
@media (max-width: 640px) {
    .text-4xl {
        font-size: 2rem;
    }
    .text-3xl {
        font-size: 1.75rem;
    }
}

/* Print styles */
@media print {
    header, footer, #preventivo {
        display: none;
    }
}
/* Blocca lo scroll orizzontale e previene overflow indesiderato */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Assicura che tutti i contenitori e immagini non superino il viewport */
*, *::before, *::after {
    box-sizing: inherit;
}

img, iframe, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Sezioni principali a piena larghezza */
section, footer, header, div.container {
    width: 100%;
}

/* Evita padding/margin extra su container globali */
.container {
    max-width: 100%;
    padding-left: 1rem;  /* puoi regolare come vuoi */
    padding-right: 1rem; /* puoi regolare come vuoi */
}
