/* Stili personalizzati per il sito di contabilità */

:root {
    --primary-color: #6ABF69;
    --secondary-color: #8A7FD8;
    --accent-color: #FF9E80;
    --light-bg: #E8F5E9;
    --dark-text: #333333;
    --light-text: #FFFFFF;
    --gray-text: #666666;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
}

/* Header e navigazione */
.navbar {
    padding: 1rem 0;
    background-color: var(--light-bg) !important;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Bottoni */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Sezioni */
.section {
    padding: 5rem 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-weight: 500;
    color: var(--gray-text);
    margin-bottom: 3rem;
}

/* Card dei servizi */
.service-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.service-card .card-body {
    padding: 2rem;
}

.service-card .card-title {
    font-weight: 600;
    color: var(--primary-color);
}

.img-fluid
{
    width:70%
}

/* Hero section */
.hero {
    background-color: var(--light-bg);
    padding: 5rem 0;
    margin-bottom: 3rem;
}

.hero h1 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray-text);
}

/* Form */
.form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(106, 191, 105, 0.25);
}

/* Footer modificato */
footer {
    background-color: var(--light-bg) !important;
    color: var(--dark-text);
}

    footer .container {
        padding-top: 1.5rem; /* padding ridotto */
        padding-bottom: 1.5rem;
    }

    footer h5 {
        font-weight: 600;
        margin-bottom: 1rem; /* margine inferiore leggermente ridotto */
        color: var(--primary-color);
    }

    footer p {
        margin-bottom: 0.5rem; /* margine inferiore ridotto */
        font-size: 0.9rem;
    }

.social-icons a {
    width: 36px;
    height: 36px;
    font-size: 16px; /* eventuale riduzione se necessario */
    line-height: 36px;
}


.social-icons a:hover {
    transform: translateY(-3px);
    background-color: darken(var(--primary-color), 10%);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .navbar-collapse {
        background-color: var(--light-bg);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
}

/* Animazioni */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Utilities */
.rounded-lg {
    border-radius: 15px !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.bg-light-custom {
    background-color: var(--light-bg) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

/* Partners Carousel */
.partners-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.partners-carousel {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.partners-carousel:hover {
    animation-play-state: paused;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 80px;
    padding: 0.5rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.partner-item:hover {
    transform: scale(1.1);
    opacity: 1;
}

.partner-logo {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .partner-item {
        min-width: 120px;
        height: 60px;
    }
    
    .partner-logo {
        max-width: 120px;
        max-height: 60px;
    }
    
    .partners-carousel {
        gap: 2rem;
        animation: scroll 20s linear infinite;
    }
}
