        :root { --primary: #0056b3; --secondary: #e63946; }
        .bg-primary { background-color: var(--primary); }
        .text-primary { color: var(--primary); }
        .nav-active {
              position: relative;
              display: inline-block !important;
              color: #ffffff !important;
              font-weight: 700;
          }
          .nav-active::after {
              content: "";
              position: absolute;
              left: 0;
              right: 0;
              bottom: -3px;
              height: 2px;
              background-color: #ffffff;
        }
        .btn-cta { background-color: var(--secondary); transition: 0.3s; }
        .btn-cta:hover { background-color: #c32f3a; transform: scale(1.05); }
        
        /* Modal Style Potenziato */
        #login-modal { display: none; }
        #login-modal.active { display: flex; }
        .modal-content { transition: all 0.4s ease; transform: scale(0.9); opacity: 0; }
        #login-modal.active .modal-content { transform: scale(1); opacity: 1; }
        .view-hidden { display: none; }
        .input-focus:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1); outline: none; }
        
        /* Slider Setup */
        .slider-container { position: relative; overflow: hidden; width: 100%; border-radius: 1rem; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
        .slider-wrapper { display: flex; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
        .slider-item { min-width: 100%; flex-shrink: 0; position: relative; }
        .slider-item img { width: 100%; height: 500px; object-fit: cover; object-position: top;}
        
        .slider-caption { 
            position: absolute; bottom: 0; left: 0; right: 0; 
            background: linear-gradient(transparent, rgba(0,0,0,0.85)); 
            color: white; padding: 3rem 1.5rem 1.5rem; 
        }
        
        /* Mobile Menu - Fix per visibilità */
        #mobile-menu { 
            display: none !important;
            background-color: #0056b3;
        }
        
        #mobile-menu.open { 
            display: block !important;
            animation: slideDown 0.3s ease-out;
        }
        
        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Menu button visibile solo su mobile - CONTRASTO ELEVATO */
        #menu-btn {
            display: block !important;
            z-index: 1000;
            min-width: 50px;
            min-height: 50px;
            color: #1e40af !important; /* Blu scuro per il testo */
            background-color: white !important; /* Bianco per contrasto */
            border: 3px solid #1e40af !important; /* Bordo blu spesso */
            position: relative !important;
            cursor: pointer;
            font-size: 1.5rem;
            padding: 0.5rem !important;
            line-height: 1;
            transition: all 0.3s ease;
            border-radius: 8px; /* Angoli arrotondati */
            box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Ombra */
        }
        
        #menu-btn:hover {
            background-color: #f8fafc !important; /* Bianco leggermente grigio su hover */
            transform: scale(1.1);
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
        }
        
        @media (min-width: 1024px) {
            #menu-btn { display: none !important; }
            #mobile-menu { display: none !important; }
        }

        .btn-3d {
    background: linear-gradient(145deg, #0062cc, #004a99); /* Gradiente per volume */
    box-shadow: 
        0 4px 0px #003366,              /* Spessore 3D inferiore */
        0 8px 15px rgba(0, 0, 0, 0.2);  /* Ombra morbida a terra */
    transition: all 0.1s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    position: relative;
    top: 0;
}

.btn-3d:hover {
    background: linear-gradient(145deg, #006df5, #0056b3);
    transform: translateY(-2px);       /* Si solleva leggermente */
    box-shadow: 
        0 6px 0px #003366, 
        0 12px 20px rgba(0, 0, 0, 0.3);
}

.btn-3d:active {
    transform: translateY(3px);        /* Effetto pressione reale */
    box-shadow: 
        0 1px 0px #003366, 
        0 2px 5px rgba(0, 0, 0, 0.2);  /* L'ombra scompare mentre schiacci */
}

/* Effetto riflesso lucido sopra il bottone */
.btn-3d::after {
    content: "";
    position: absolute;
    top: 0; left: 5%;
    width: 90%; height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50px;
    pointer-events: none;
}

.dpr-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.5;
    padding: 20px;
    background-color: #f9f9f9;
  }

  .dpr-title {
    text-align: center;
    color: #1a3a5a;
    margin-bottom: 30px;
    border-bottom: 2px solid #c20e1a;
    padding-bottom: 10px;
  }

  .dpr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Quattro colonne su desktop */
    gap: 20px;
  }

  .dpr-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 4px solid #c20e1a;
  }

  .dpr-card h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: #c0392b;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
  }

  .dpr-card p {
    font-size: 0.9em;
    text-align: justify;
  }

  .dpr-footer {
    grid-column: span 4;
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    font-size: 0.85em;
    color: #666;
  }

  /* Responsive: Passa a 2 colonne su tablet e 1 su mobile */
  @media (max-width: 1024px) {
    .dpr-grid { grid-template-columns: repeat(2, 1fr); }
    .dpr-footer { grid-column: span 2; }
  }

  @media (max-width: 600px) {
    .dpr-grid { grid-template-columns: 1fr; }
    .dpr-footer { grid-column: span 1; }
  }
/* Container per gestire i margini destra/sinistra */
        .page-wrapper {
            padding: 20px 10%; /* 40px sopra/sotto, 10% ai lati */
            background: #c20e1a ; 
            display: flex;
            justify-content: center;
        }

        /* Titolo fuori dal form */
        .main-title {
            color: #fff;       /* Rosso */
            text-align: center;
            font-size: 1.5em;
            margin-bottom: 30px;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
        }

        .contact-form { 
            width: 100%;
            max-width: 1578px; /* Limite massimo per non farlo diventare troppo largo */
            background: #c20e1a ; 
            padding: 30px; 
            border-radius: 12px; 
            box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
        }

        h2 { margin-top: 0; color: #333; }


        /* Layout 6 campi sulla stessa riga */
        .row-six {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }
/* Stile Campi: Fondo Rosso, Testo Bianco, No Bordi */
        .row-six input
        {
            flex: 1;
            padding: 15px;
            background-color: #c20e1a !important; /* Rosso fisso */
            color: white !important;              /* Testo che scrivi bianco */
            border: none !important;
            outline: none !important;             /* Rimuove bordo al click */
            border-radius: 6px;
            font-size: 14px;
            min-width: 0;
        }

        /* Colore Placeholder Bianco */
        .row-six input::placeholder 
        {
            color: rgba(255, 255, 255, 0.8) !important; /* Bianco leggermente trasparente */
            font-weight: bold;
            opacity: 1; 
        }

        .full-width { width: 100%; margin-bottom: 20px; }
        
        textarea { 
            width: 100%; 
            padding: 12px; 
            border: 1px solid #ddd; 
            border-radius: 0px; 
            resize: vertical;
            font-family: inherit;
        }
        
        /* Area Privacy con Scroll */
        .privacy-scroll {
            height: 120px;
            overflow-y: auto;
            background: #fafafa;
            padding: 15px;
            font-size: 13px;
            color: #666;
            border: 1px solid #eee;
            margin-bottom: 15px;
            line-height: 1.6;
        }

        .acceptance-box { margin-bottom: 25px; font-size: 15px; }
        .acceptance-box input { margin-right: 5px; cursor: pointer; }
        .acceptance-box label { margin-right: 15px; cursor: pointer; }

        .submit-btn {
            background-color: #dc3545;
            color: white;
            padding: 15px 40px;
            border: 2px solid #fff ; 
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: background 0.3s;
        }
        .submit-btn:hover { background-color:  #c20e1a; 
                            border: 2px solid #fff ; }

        /* Mobile-first Responsive */
        @media (max-width: 768px) {
            .slider-item img { height: 300px; }
            .slider-caption { padding: 2rem 1rem 1rem; }
            .slider-caption h3 { font-size: 1.2rem; }
            .container { padding: 0 1rem; }
            header { position: sticky; }
        }
        
        @media (max-width: 480px) {
            .slider-item img { height: 220px; }
            .slider-caption { padding: 1.5rem 0.75rem 0.75rem; font-size: 0.9rem; }
            .slider-caption h3 { font-size: 1rem; }
            .slider-caption p { font-size: 0.8rem; line-height: 1.3; }
            
            /* Slider buttons per mobile */
            button.absolute { width: 40px; height: 40px; }
            
            /* Responsive grid per servizi */
            .grid { gap: 1rem; }
        }

        /* Contenitore per mettere tutto sulla stessa riga */
    .bottom-row {
        display: flex;
        gap: 15px;
        align-items: flex-start; /* Allinea in alto */
        margin-bottom: 20px;
    }

    /* 1. Area Messaggio (più larga) */
    .message-container {
        flex: 2; /* Prende più spazio */
    }

    .message-container textarea {
        width: 100%;
        height: 120px;
        background-color: #dc3545 !important;
        color: white !important;
        border: none !important;
        outline: none !important;
        padding: 12px;
        border-radius: 0px;
        resize: none;
    }
    .message-container textarea::placeholder { color: rgba(255, 255, 255, 0.8); }

    /* 2. Area Privacy con Scroll (larghezza media) */
    .privacy-container {
        flex: 1.5;
        height: 120px;
        overflow-y: auto;
/*        background-color: #dc3545 !important;*/
        background-color: #fff !important;
/*        color: white !important;*/
        color: #000  !important;
        padding: 12px;
        border-radius: 0px;
        font-size: 11px; /* Font leggermente più piccolo per far stare il testo legale */
        line-height: 1.3;
    }

    /* 3. Area Accettazione (più stretta) */
    .acceptance-container {
        flex: 1.5;
        background-color: #c20e1a !important;
        color: white !important;
        padding: 12px;
        border-radius: 0px;
        height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        font-size: 13px;
        font-weight: normal;
    }

    .acceptance-container input {
        accent-color: white; /* Il pallino diventa bianco su fondo rosso */
        margin-top: 8px;
    }

    /* Responsive: se lo schermo è troppo stretto (mobile), le mette una sotto l'altra */
    @media (max-width: 900px) {
        .bottom-row { flex-direction: column; }
        .message-container, .privacy-container, .acceptance-container { width: 100%; height: auto; }
    }

    .flatpickr-day.disabled {
    background: #ffcccc !important;
    color: #999 !important;
    text-decoration: line-through;
    cursor: not-allowed;
}
.flatpickr-day.today { border-color: #007bff; }
