/* Stili Personalizzati - Versione Responsive */

/* Reset e base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Container centrato */
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Hero gradient */
.hero-gradient {
    background: radial-gradient(circle at top right, #f0f9ff 0%, #ffffff 100%);
}

/* Product card animations */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* CTA button */
.cta-button {
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

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

/* Editor styles (per CMS) */
[data-editor-enabled] {
    min-height: 1.2em;
    min-width: 10px;
}

[data-editor-enabled].outline-dashed {
    outline: 2px dashed #3b82f6 !important;
    outline-offset: 2px !important;
    cursor: pointer !important;
}

[data-editor-enabled].outline-dashed:hover {
    outline-color: #2563eb !important;
    background-color: rgba(59, 130, 246, 0.05) !important;
}

/* Immagini responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Smooth scroll per anchor */
html {
    scroll-padding-top: 100px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }
}

/* Form input font-size per iOS */
@media (max-width: 640px) {
    input, 
    textarea, 
    select {
        font-size: 16px !important;
    }
}

/* Touch-friendly links su mobile */
@media (max-width: 768px) {
    a, button {
        -webkit-tap-highlight-color: transparent;
    }
    
    a:active,
    button:active {
        opacity: 0.8;
    }
}

/* Fix per Safari iOS */
@supports (-webkit-touch-callout: none) {
    /* Fix per l'altezza del viewport su iOS */
    .min-h-screen {
        min-height: -webkit-fill-available;
    }
}