/* ===================================
   GluFrì - Stili Comuni
   =================================== */

/* Stile di base con il font Inter */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

/* Colori personalizzati ispirati all'app */
.glufri-main {
    background-color: #007A6F;
}

.glufri-main-text {
    color: #007A6F;
}

.glufri-secondary {
    background-color: #FFC72C;
}

/* Stile per la forma curva dell'header */
.curved-header {
    position: relative;
    color: white;
    padding-bottom: 10rem;
}

.curved-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: #f8fafc;
    border-radius: 100% 100% 0 0 / 100%;
    transform: scaleX(2.5) scaleY(1);
}

/* Animazioni */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Stile per la galleria scorrevole */
.screenshot-gallery {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: #007A6F #e5e7eb;
}

.screenshot-gallery::-webkit-scrollbar {
    height: 8px;
}

.screenshot-gallery::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 10px;
}

.screenshot-gallery::-webkit-scrollbar-thumb {
    background: #007A6F;
    border-radius: 10px;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 250px;
}

@media (min-width: 768px) {
    .screenshot-item {
        width: 300px;
    }
}

/* Stili per pagina supporto */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Buttons hover effects */
.btn-primary {
    background-color: #007A6F;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #005d57;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 122, 111, 0.3);
}

.btn-secondary {
    background-color: #FFC72C;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #e6b328;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 199, 44, 0.3);
}

/* Supporto per preferenze di animazioni ridotte */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visibile per accessibilità da tastiera */
a:focus-visible, button:focus-visible {
    outline: 3px solid #007A6F;
    outline-offset: 2px;
}

/* Utilità per nascondere ma mantenere accessibile */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only:focus-visible,
.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}
