/* ==========================================================================
   0. RESET E POSIZIONAMENTO ANTI-SOVRAPPOSIZIONE
   ========================================================================== */
.dt-wrapper {
    display: block;
    clear: both;
    position: relative;
    z-index: 1;
    margin-top: 40px; 
    background-color: #ffffff !important; 
    color: #333;
    width: 100%;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.dt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   1. SEZIONE INTRO (ALTO)
   ========================================================================== */
.dt-intro-top {
    padding: 60px 0;
    background-color: #f8f9fa;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.dt-intro-top h1 {
    color: #0d1b2a;
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.dt-intro-top p {
    color: #666;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* ==========================================================================
   2. FASCIA BLU LOGO E INFO (3 RIGHE)
   ========================================================================== */
.dt-header-blue {
    background-color: #0d1b2a;
    color: #ffffff;
    padding: 45px 0;
    border-bottom: 5px solid #0056b3;
    text-align: center;
}

.dt-logo-row img {
    max-width: 280px;
    height: auto;
    margin-bottom: 30px;
}

.dt-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dt-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1rem;
}

.dt-info-item i { 
    color: #0056b3; 
    font-size: 1.2rem; 
}

.dt-info-item a, 
.dt-info-item a:visited, 
.dt-info-item a:hover, 
.dt-info-item a:active { 
    color: #ffffff !important; 
    text-decoration: underline !important; 
    font-weight: 600; 
}
.dt-info-item a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   3. SEZIONE PRODOTTI
   ========================================================================== */
.dt-section-products { 
    padding: 80px 0; 
    background: #fff; 
}

.dt-title-center { 
    text-align: center; 
    margin-bottom: 50px; 
    font-weight: 700; 
    color: #0d1b2a; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.dt-grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.dt-prod-card {
    border: 1px solid #eee;
    padding: 40px 20px;
    text-align: center;
    background: #fff;
    transition: 0.3s;
}

.dt-prod-card:hover { 
    border-color: #0056b3; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
}

.dt-prod-card img { 
    height: 200px; 
    object-fit: contain; 
    width: 100%; 
    margin-bottom: 25px; 
}

/* ==========================================================================
   4. PROFILO AZIENDALE & HIGHLIGHTS
   ========================================================================== */
.dt-company-profile {
    background-color: #f8f9fa;
    padding: 50px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.dt-profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.dt-profile-text h3 {
    color: #003366;
    font-size: 24px;
    margin-bottom: 15px;
}

.dt-profile-text p {
    color: #555;
    margin-bottom: 15px;
}

.dt-profile-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dt-highlight-item {
    background: #fff;
    padding: 15px;
    border-left: 4px solid #003366;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.dt-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #003366;
}

.dt-label {
    font-size: 13px;
    color: #666;
}

/* ==========================================================================
   5. SEZIONE ICONE (LOGICA SEMPLICE ORIGINALE - ZERO SCATTI)
   ========================================================================== */
.dt-bg-light {
    background-color: #fff;
    padding: 50px 0;
}

.btn-info-toggle {
    background: #f8f9fa;
    border: 1px solid #ddd;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 11px;
    border-radius: 4px;
    color: #444;
    transition: all 0.2s;
}
.btn-info-toggle:hover { 
    background: #e9ecef; 
}

.icona-img {
    width: 50px !important;
    height: 50px !important;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.diatest-icone-container.grid-view {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
    justify-content: center;
}

.diatest-icone-container.grid-view .icon-label {
    display: none;
}

.diatest-icone-container.grid-view .diatest-icona-item {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.diatest-icone-container.list-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
}

@media screen and (min-width: 992px) {
    .diatest-icone-container.list-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

.diatest-icone-container.list-view .diatest-icona-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f2f2f2;
    padding: 6px 5px;
    height: 62px; 
    box-sizing: border-box;
}

.diatest-icone-container.list-view .icon-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600; 
    color: #444;      
    white-space: nowrap;
    transition: all 0.3s ease-out; 
}

.highlight-icon .icon-label {
    font-size: 19px !important; 
    color: #b22222 !important;   
    letter-spacing: 0.5px;      
}


.highlight-icon {
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   6. CAROSELLO CATALOGHI (TASTI TONDI E COPERTINE 180PX)
   ========================================================================== */
#cataloghi {
    padding: 120px 30px;
    background: #f4f4f4; 
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

#cataloghi h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: #0d1b2a;
}

#cataloghi p {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    color: #555;
}

.catalog-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    scroll-behavior: smooth;
    padding: 20px 0;
}

.catalog-slider::-webkit-scrollbar {
    display: none;
}
.catalog-slider {
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.catalog-item {
    flex: 0 0 180px;
    text-align: center;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0; 
}

.catalog-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0 !important; 
}

.catalog-item:hover {
    transform: scale(1.05);
}

.catalog-controls {
    text-align: center;
    margin-top: 15px;
}

.catalog-controls button {
    background: #00b4d8;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 25px; 
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s ease;
}

.catalog-controls button:hover {
    background: #0077b6;
}

/* ==========================================================================
   7. FASCIA FINALE CERTIFICATO (SPAZI VUOTI CORRETTI IN CODA)
   ========================================================================== */
.dt-section-cert { 
    padding: 60px 0 20px 0; /* Ridotto il padding sotto al box a soli 20px per azzerare il vuoto */
    background: #fff; 
}

.dt-cert-box {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b3a57 50%, #0056b3 100%) !important;
    color: #ffffff !important;
    padding: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 45px;
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.2);
    margin-bottom: 0 !important; /* Blocca margini spuri inferiori */
}

.dt-cert-box i { 
    font-size: 70px; 
    color: #ffd700; 
    flex-shrink: 0;
}

.dt-cert-content h3 { 
    margin: 0 0 15px 0; 
    font-size: 1.9rem; 
    font-weight: 700; 
    color: #fff !important;
}

.dt-cert-content p { 
    margin: 0; 
    line-height: 1.8; 
    font-size: 1.1rem; 
    opacity: 0.95; 
    color: #fff !important;
}

/* ==========================================================================
   8. MEDIA QUERIES (MOBILE RESPONSIVE)
   ========================================================================== */
@media (max-width: 992px) {
    .dt-wrapper { 
        margin-top: 100px; 
    }
    .dt-profile-grid { 
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    .dt-cert-box { 
        flex-direction: column; 
        text-align: center; 
        padding: 40px; 
        gap: 20px; 
    }
    .dt-intro-top h1 { 
        font-size: 1.8rem; 
    }
}