/* Stili di base e reset */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --white-color: #fff;
    --accent-color: #00b8d4;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 40px;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.primary-btn:hover {
    background-color: #0056b3;
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.secondary-btn:hover {
    background-color: #5a6268;
}

.highlight {
    color: var(--primary-color);
}

/* Header e Navigazione */
.main-header {
    background-image: linear-gradient(to right, #1a498fab, #fefeff);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 31px;
}

.logo img {
    height: 75px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.contact-header .phone-number {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sezione Hero */
.hero-section {
    position: relative;
    color: var(--white-color);
    text-align: center;
    padding: 150px 0 100px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 30px;
}

.call-action {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.small-text {
    font-size: 1rem;
    margin-top: 5px;
}

.phone-img-link {
    display: block;
    margin: 20px auto;
    max-width: 250px; 
}

.phone-img {
    width: 100%;
    height: auto;
}

/* Sezione Valori/Info */
.info-section {
    position: relative;
    padding: 80px 0;
/*    background-color: var(--light-color);*/
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item .icon-feature {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Sezione Servizi */
.services-section {
    position: relative;
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.service-item {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item .icon-service {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Sezione Chi Siamo */
.about-contact-section {
    position: relative;
 /*   background-color: var(--primary-color);*/
	background-color: #033870;
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}

.about-contact-section h2 {
    color: var(--white-color);
}

.about-contact-section p {
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Sezione Testimonianze */
.testimonials-section {
    position: relative;
    padding: 80px 0;
  /*  background-color: var(--light-color);*/
}

.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-item {
    min-width: 100%;
    text-align: center;
    padding: 20px;
}

.testimonial-item p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial-item span {
    font-weight: 600;
    color: var(--primary-color);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white-color);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.slider-btn.prev-btn {
    left: 10px;
}

.slider-btn.next-btn {
    right: 10px;
}

.slider-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Sezione Marchi Partner */
.brands-slider-section {
    position: relative;
    padding: 50px 0;
    background-color: var(--white-color);
    text-align: center;
}

.brand-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.brand-slider::-webkit-scrollbar {
    display: none;
}

.brand-logo {
    flex-shrink: 0;
    scroll-snap-align: start;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.brand-logo img {
    max-height: 100%;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.brand-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Sezione Contatti */
.full-contact-section {
    position: relative;
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}

.contact-details-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.contact-info a {
    color: var(--white-color);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-form h3 {
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background-color: #555;
    color: var(--white-color);
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.map-container {
    padding-top: 20px;
    text-align: center;
}

/* Footer */
.main-footer {
    background-color: #2c2f33;
    color: var(--light-color);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.main-footer .social-links a {
    color: var(--light-color);
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.main-footer .social-links a:hover {
    color: var(--primary-color);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--white-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1000;
}

.cookie-banner p {
    margin-bottom: 0;
    flex: 1;
}

.cookie-banner a {
    color: var(--accent-color);
}

.cookie-banner .btn {
    margin-left: 20px;
}

/* Modali */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding-top: 60px;
}
/* Regola aggiunta per mostrare la modale quando ha la classe 'active' */
.modal.active {
    display: block;
}

.modal-content {
/*    background-color: var(--white-color);*/
	background-image: linear-gradient(to right, #deecf1, #79798d);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-btn:hover, .close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Segnaposto Immagini di Sfondo */
.background-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
}

/* Stili specifici per ogni sezione con immagine di sfondo */
.hero-section {
    position: relative; /* Per posizionare lo sfondo correttamente */
}

.hero-background {
    background-image: url('images/image01.jpg');
    opacity: 0.5;
}

.info-section, .services-section, .about-contact-section, .testimonials-section, .brands-slider-section, .full-contact-section {
    position: relative;
    overflow: hidden;
}

.valori-background {
    background-image: url('images/Rec1.jpg');
}

.servizi-background {
    background-image: url('images/Rec2.jpg');
}

.chi-siamo-background {
    background-image: url('images/Rec3.jpg');
}

.testimonianze-background {
    background-image: url('images/clienti2.jpg');
}

.brands-background {
    background-image: url('images/Rec3.jpg');
}

.contatti-background {
    background-image: url('images/Rec3.jpg');
}

/* Media Queries per la Responsività */
@media (max-width: 768px) {
    .main-header .container {
    /*    flex-direction: column;*/
        align-items: center;
        text-align: center;
    }

    .main-nav {
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .contact-header {
        margin-top: 10px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
}
/* Pulsante flottante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999;
    transition: transform 0.3s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}
