/* Responsive - Forza l'applicazione delle regole */
@media only screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info {
        gap: 2rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        display: block;
        width: 100%;
        margin: 10px 0;
    }

    .contatti {
        flex-direction: column;
        align-items: center;  
    }

    .contact-cta {
        padding: 2rem 1rem !important;
        width: 95vw !important;
        margin-top: 1rem !important;
    }

    .contact-cta p {
        color: var(--text-secondary);
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    /* Fix per le sezioni copertina su mobile */
    .copertina,
    .copertina_automazione,
    .copertina_elettronica,
    .copertina_dosaggio {
        height: 60vh !important;
    }

    .info {
        padding: 20px !important;
        width: 90% !important;
    }

    .info h1 {
        font-size: 2rem !important;
    }

    .info p {
        font-size: 1rem !important;
    }

    /* Fix per TUTTE le sezioni su mobile - Padding molto ridotto */
    .section-standard {
        padding: 1.5rem 0 !important;
        margin-top: 0 !important;
    }

    /* Fix per le card - Forza l'applicazione */
    .campi-card,
    .service-card {
        padding: 2rem 1rem !important;
        margin-bottom: 0rem !important;
        margin-top: 0rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .campi-card {
        height: auto !important;
    }

    .service-card {
        height: auto !important;
    }

    .campi-title,
    .service-title {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }

    /* Fix per i bottoni */
    .btn-azzurro,
    .btn-bianco {
        display: block;
        width: 80%;
        margin: 1rem auto;
        padding: 12px 20px;
    }

    /* Fix per prodotto */
    .prodotto {
        width: 95vw;
        padding: 2rem 1rem;
        margin-top: 1rem;
    }
    .imgdos{
        width: auto;
        height: 55vh !important; 
    }
}

.imgdos{
    width:Auto; 
    height:60vh;
}
/* Media query aggiuntiva per schermi molto piccoli */
@media only screen and (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .info h1 {
        font-size: 1.5rem;
    }

    .campi-card,
    .service-card {
        padding: 1.5rem 1rem;
    }

    .contact-cta,
    .prodotto {
        width: 98vw;
        padding: 1.5rem 0.5rem;
    }

    .btn-azzurro,
    .btn-bianco {
        width: 90%;
        font-size: 14px;
    }
}

/* Resto del CSS */
.footer-custom {
    background-color: #212529;
    color: #adb5bd;
}

.footer-custom h5 {
    color: #f8f9fa;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-custom .footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-custom .footer-links a:hover {
    color: #0d6efd;
}

.footer-custom .social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #495057;
    color: #f8f9fa;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-custom .social-link:hover {
    background-color: #0d6efd;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom {
    background-color: #000;
    color: #6c757d;
}

.footer-bottom a {
    color: #6c757d;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #0d6efd;
}

    .carousel {
      width: 100%;
      margin: auto;
    }

    .slide img {
      height: 60vh;
      width: auto;
    }

    .slide {
      margin-right: 20px;
    }

    .slick-prev:before,
    .slick-next:before {
      color: black;
      font-size: 30px;
    }

.copertina {
    background-image: url('../images/COPERTINA copy.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copertina::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.copertina_automazione {
    background-image: url('../images/automazione.JPG');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copertina_automazione::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.copertina_elettronica {
    background-image: url('../images/elettronica.JPG');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copertina_elettronica::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.copertina_dosaggio {
    background-image: url('../images/dosaggio.JPG');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copertina_dosaggio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.info {
    padding: 40px;
    text-align: center;
    animation: fadeIn 1.2s ease-in-out;
    font-family: sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translate(-50%, -50%) translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%) translateY(0); 
    }
}

/* CLASSE STANDARD PER TUTTE LE SEZIONI - SPAZIO MOLTO RIDOTTO */
.section-standard {
    padding: 2rem 0;
    background: var(--white);
    margin-top: 0;
}

/* Titolo sezione standard */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Contenuto sezione standard */
.section-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: auto;
    margin: 0 auto;
    text-align: center;
}

/* DEPRECATE - Vecchie classi mantenute per compatibilità */
.about-section {
    padding: 3rem 0 2rem 0;
    background: var(--white);
    margin-top: 0;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: auto;
    margin: 2rem auto 0 auto;
    text-align: center;
}

.campi-section {
    padding: 2rem 0;
    background: var(--white);
    margin-top: 0;
}

.services-section {
    padding: 2rem 0;
    background: var(--white);
    margin-top: 0;
}

/* Card standardizzate */
.campi-card {
    margin-top: 0;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.campi-title.no_bianco {
    color: #007BFF;
}

.campi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.campi-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.service-card {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact CTA */
.contact-cta {
    background: #f8f9fa;
    padding: 2.5rem 2rem;
    width: 90vw;
    margin: 1rem auto;
    border-radius: 20px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-cta h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn-azzurro {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    margin: 1rem;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-azzurro:hover {
    background-color: white;
    color: #3498db;
    border: 2px solid #3498db;
    transform: translateY(-2px);
}

.btn-bianco {
    background-color: white;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 12px 24px;
    margin: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-bianco:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

.contatti {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.prodotto {
    background: #f8f9fa;
    padding: 2.5rem 2rem;
    width: 90vw;
    margin: 1rem auto;
    border-radius: 20px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Variabili CSS per coerenza */
:root {
    --primary-color: #007BFF;
    --accent-color: #3498db;
    --text-secondary: #6c757d;
    --white: #ffffff;
}