/* Stili Generali e Variabili */
:root {
    --primary-color: #16a2a7;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white-color: #ffffff;
    --grey-color: #f8f9fa;
    --success-color: #2ecc71;
    --font-family: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* Utilità */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #128b8f;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: #415a75;
}

.bg-light {
    background-color: var(--grey-color);
    padding: 60px 0;
}
.bg-dark {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0;
}
.bg-dark h2, .bg-dark p {
    color: var(--white-color);
}


/* Header */
.header {
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid var(--light-color);
}

.logo {
    max-height: 80px;
}

/* Sezione Eroe */
.hero {
    position: relative;
    padding: 80px 0;
    text-align: center;
    color: var(--white-color);
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5em;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.phone-cta {
    display: inline-block;
    background: var(--success-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 30px;
    transition: background-color 0.3s;
}
.phone-cta:hover {
    background: #27ae60;
}

.special-offer {
    margin: 30px auto;
}
.special-offer > i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.offer-card {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.offer-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}
.offer-card h3 {
    font-size: 1.4em;
}

/* Sezioni Contenuto */
.content-section {
    padding: 60px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.content-grid.reverse .text-block {
    order: 2;
}
.content-grid.reverse .image-block {
    order: 1;
}


.text-block h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.text-block ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.text-block ul li {
    margin-bottom: 10px;
    /* display: flex; */ /* Come da tua modifica */
    align-items: center;
}
.text-block ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.image-block img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Testimonianze */
.testimonials {
    padding: 60px 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: var(--primary-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.testimonial-card {
    background: var(--grey-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.testimonial-text {
    padding: 20px;
}

.testimonial-text p {
    font-style: italic;
    margin-bottom: 15px;
}
.testimonial-text h4 {
    font-weight: bold;
    color: var(--primary-color);
}

/* Sezione Prodotti con Slider */
.product-slider {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 50px;
}
.product-slider h2 { font-size: 2rem; margin-bottom: 1rem; }
.product-description p { margin-bottom: 1.5rem; }

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}
.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 100%;
    box-sizing: border-box;
}
.slide img {
    width: 100%;
    display: block;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.product-divider {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 60px 0;
}

/* Sezione Tabs */
.tabs-section { padding: 60px 0; }
.tabs-section h2 { text-align: center; margin-bottom: 40px; font-size: 2em; color: var(--primary-color); }

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.tab-button {
    padding: 10px 20px;
    border: 1px solid var(--light-color);
    background: var(--white-color);
    cursor: pointer;
}
.tab-button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-pane {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
    background-color: var(--grey-color);
    padding: 20px;
    border-radius: 10px;
}
.tab-pane img { max-width: 100%; }
.presidio-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}


/* Form di Contatto */
.contact-form-section { text-align: center; }
.contact-form {
    max-width: 800px;
    margin: 30px auto 0;
    text-align: left;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.form-group.consent {
    flex-direction: row;
    align-items: center;
}
.form-group.consent input {
    width: auto;
    margin-right: 10px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 40px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
    text-align: center;
}
.footer-col h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}
.footer-col ul { 
    list-style: none;
    padding: 0; 
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a { 
    color: var(--light-color); 
    text-decoration: none; 
}
.footer-col ul li a:hover { 
    color: var(--primary-color); 
    text-decoration: underline;
}
.footer-logo { 
    max-width: 150px; 
    margin: 0 auto;
}
.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9em;
}


/* Pulsante WhatsApp Fisso */
.whatsapp-sticky {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}
.whatsapp-sticky i {
    font-size: 1.5em;
    margin-right: 10px;
}

/* Media Queries per la Responsività */
@media (min-width: 768px) {
    .hero h1 { font-size: 3.5em; }
    .hero h2 { font-size: 1.8em; }

    .content-grid { grid-template-columns: 1fr 1fr; }
    .content-grid.reverse .text-block { order: 1; }
    .content-grid.reverse .image-block { order: 2; }
    
    .testimonial-grid { grid-template-columns: 1fr 1fr; }
    .testimonial-card { flex-direction: row; }
    .testimonial-card img { width: 150px; height: 100%; }

    .product-slider { grid-template-columns: 1fr 1.5fr; }
    .tab-pane { grid-template-columns: 1fr 1fr; }

    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-group.full-width { grid-column: 1 / -1; }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
    .footer-logo {
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Stili per la Nuova Sezione Vantaggi */
.vantaggi-section {
    padding: 60px 0;
    text-align: center;
}

.vantaggi-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.vantaggi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.vantaggio-item i {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.vantaggio-item h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--dark-color);
}

/* Stili per schermi più grandi */
@media (min-width: 768px) {
    .vantaggi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}