/* --- BASE --- */
.product-page-main { padding-top: 100px; background-color: #fff; overflow-x: hidden; }
.display-flex-center { display: flex; align-items: center; flex-wrap: wrap; }
.p-sys-divider { width: 60px; height: 4px; background: #e67e22; margin: 20px 0; border-radius: 2px; }
.p-sys-divider.center { margin: 20px auto 40px auto; }

/* --- HERO & SLIDER --- */
.product-hero-split { margin-top: 20px; padding: 60px 0; background: #fff; }
.p-main-display { width: 100%; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.p-slide { display: none; }
.p-slide.active { display: block; animation: fadeIn 0.4s ease-in; }
.p-slide img { width: 100%; height: auto; }
.p-slider-nav { display: flex; justify-content: center; align-items: center; margin-top: 20px; gap: 15px; }
.p-nav-btn { background: #fff; border: 1px solid #ddd; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.p-nav-btn:hover { background: #e67e22; color: #fff; border-color: #e67e22; }
.p-dots { display: flex; gap: 10px; }
.p-dot { width: 10px; height: 10px; background: #ccc; border-radius: 50%; cursor: pointer; transition: 0.3s; }
.p-dot.active { background: #e67e22; width: 25px; border-radius: 10px; }

/* --- HERO TEXT & TITLES --- */
.p-info-content { padding-left: 40px; }
.p-category { color: #e67e22; font-weight: 800; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }
.p-main-title { font-size: 34px !important; font-weight: 900; line-height: 1.2; color: #1a1a1a; margin: 15px 0; }
.p-description { font-size: 16px !important; line-height: 1.7 !important; color: #444; margin-bottom: 15px; }

/* --- CARDS SECTION --- */
/* ==========================================================================
   CARDS 4 IN RIGA (Design Slanciato "Foto Riferimento")
   ========================================================================== */

/* 1. Contenitore larghissimo per farle stare comode */
.p-four-cards .custom-wide-container {
    max-width: 1600px !important; 
    width: 95%;
    margin: 0 auto;
}

.p-four-cards { 
    padding: 80px 0; 
    background: #f1f4f7; /* Sfondo della sezione */
}

/* 2. Struttura Card Alta e Flessibile */
.p-feature-card { 
    display: flex;
    flex-direction: column;
    background: #fff; 
    padding: 40px 30px; 
    border-radius: 20px; 
    height: 100%;
    min-height: 550px; /* ALTEZZA MINIMA FONDAMENTALE: le rende alte e slanciate come in foto */
    text-align: left; /* Testo allineato a sinistra come in foto */
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
}

.p-feature-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.08); 
}

/* 3. L'icona in alto a sinistra nel cerchio grigio */
.p-card-icon { 
    width: 60px;
    height: 60px;
    background-color: #f4f4f4; /* Cerchio grigio chiaro */
    border-radius: 50%; /* Rende tondo lo sfondo */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px; 
    color: #d35400; /* Arancione scuro / Ruggine come in foto */
    
    /* IL TRUCCO MAGICO: Spinge via tutto ciò che c'è sotto verso il fondo! */
    margin-bottom: auto; 
}

/* 4. Titolo ancorato in basso */
.p-feature-card h4 { 
    font-size: 16px; 
    font-weight: 900; 
    color: #1a1a1a; 
    margin-top: 40px; /* Crea distanza dall'icona se il testo è corto */
    margin-bottom: 15px; 
    text-transform: uppercase; 
    line-height: 1.3;
}

/* 5. Paragrafo descrittivo */
.p-feature-card p { 
    font-size: 14px !important; 
    color: #555 !important; 
    line-height: 1.7 !important; 
    margin-bottom: 0; 
}

/* Modificatore per testo allineato a sinistra nelle card descrittive lunghe */
.p-card-left { text-align: left; }
.p-card-left .p-card-icon { text-align: left; margin-bottom: 15px; }

/* --- SANITARY SECTION (Immagine + Testo) --- */
.p-sanitary-section { padding: 80px 0; background: #f8fafc; }
.p-rounded-img { border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); width: 100%; height: auto; }

/* --- BUTTONS --- */
.btn-p-main { background: #e67e22; color: #fff !important; padding: 14px 30px; border-radius: 6px; font-weight: 800; text-transform: uppercase; font-size: 13px; text-decoration: none; display: inline-block; transition: 0.3s; }
.btn-p-outline { border: 2px solid #1a1a1a; color: #1a1a1a !important; padding: 12px 30px; border-radius: 6px; font-weight: 800; text-transform: uppercase; font-size: 13px; text-decoration: none; display: inline-block; margin-left: 10px; transition: 0.3s; }
.btn-p-main:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(230,126,34,0.3); }

/* --- ANIMATIONS & RESPONSIVE --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    .p-info-content { padding-left: 0; margin-top: 30px; text-align: center; }
    .btn-p-outline { margin-left: 0; margin-top: 15px; }
    .p-feature-card { margin-bottom: 20px; }
    .p-sanitary-section .col-md-6:first-child { margin-bottom: 40px; }
    .p-card-left { text-align: center; } /* Su mobile torna centrato per simmetria */
    .p-card-left .p-card-icon { text-align: center; }
}

/* --- WRAPPER PRINCIPALE --- */
.msf-main-wrapper {
    padding: 80px 0;
    background-color: #ffffff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* --- COLONNA SINISTRA (INTRO) --- */
@media (min-width: 992px) {
    .msf-intro-sticky {
        position: sticky;
        top: 120px; /* Si blocca durante lo scroll delle card */
        height: fit-content;
    }
}

.msf-badge {
    color: #e67e22;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}

.msf-main-title {
    font-size: 32px !important;
    font-weight: 900;
    color: #1a1a1a !important;
    line-height: 1.2;
    margin-bottom: 20px;
}

.msf-divider {
    width: 60px;
    height: 4px;
    background: #e67e22;
    margin-bottom: 25px;
}

.msf-lead-text {
    font-size: 18px !important;
    font-weight: 600;
    color: #333 !important;
    line-height: 1.5 !important;
    margin-bottom: 20px;
}

.msf-body-text {
    font-size: 15px !important;
    color: #555 !important;
    line-height: 1.6 !important;
    margin-bottom: 15px;
}

.msf-cta-area {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- COLONNA DESTRA (CARDS) --- */
.msf-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.msf-tech-card {
    background: #f8fafc;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 30px 25px;
    transition: all 0.3s ease;
}

.msf-tech-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: #e67e22;
}

.msf-full-width {
    grid-column: span 2; /* Twin San occupa tutta la larghezza della colonna destra */
}

.msf-icon {
    font-size: 28px;
    color: #e67e22;
    margin-bottom: 15px;
}

.msf-tech-card h3 {
    font-size: 16px !important;
    font-weight: 800;
    color: #1a1a1a !important;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msf-tech-card p {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #555 !important;
    margin-bottom: 0;
}

/* --- BOTTONI --- */
.btn-msf-primary {
    background: #e67e22;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-msf-link {
    color: #1a1a1a !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .msf-cards-grid {
        grid-template-columns: 1fr; /* Su mobile una card sotto l'altra */
    }
    .msf-full-width {
        grid-column: span 1;
    }
    .msf-intro-sticky {
        margin-bottom: 50px;
        text-align: center;
    }
    .msf-divider {
        margin: 20px auto;
    }
    .msf-cta-area {
        justify-content: center;
    }
}

/* --- FAQ SECTION --- */
.msf-faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.msf-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.msf-faq-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    overflow: hidden;
    transition: all 0.3s ease;
}

.msf-faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 16px !important;
    font-weight: 700;
    color: #1a1a1a !important;
    cursor: pointer;
    outline: none;
}

.msf-faq-question i {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #e67e22;
}

.msf-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
    background-color: #fff;
}

.msf-faq-answer p {
    padding-bottom: 20px;
    font-size: 15px !important;
    color: #555 !important;
    line-height: 1.6 !important;
    margin: 0;
}

/* Stato Attivo */
.msf-faq-item.active {
    border-color: #e67e22;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.msf-faq-item.active .msf-faq-answer {
    max-height: 500px; /* Altezza massima sufficiente per il contenuto */
}

.msf-faq-item.active .msf-faq-question i {
    transform: rotate(180deg);
}

.msf-divider.center {
    margin: 20px auto 40px auto;
}