
:root {
    --primary-dark: #45322e;    /* Marrone caffè molto scuro per i testi */
    --accent: #d97706;          /* Ambra/Arancio bruciato per icone e hover */
    --border-color: #e7e5e4;    /* Grigio pietra calda per i bordi */
    --sidebar-bg: #fafaf9;      /* Sfondo sidebar crema chiarissimo */
    --footer-bg: #f5f5f4;       /* Sfondo footer sabbia */
    --transition-speed: 0.3s;
}


/* ************************************************* */
/* Principale                                        */
/* ************************************************* */

/* Contenitore principale del details */
.DetPg_Section {
    width: 90%;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
    overflow: hidden; /* Taglia i bordi del summary se arrotondati */
    transition: box-shadow var(--transition-speed);
}

.DetPg_Section[open] {box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);}

/* ************************************************* */
/* Header della scheda                               */
/* ************************************************* */

.DetPg_Bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    cursor: pointer;
    list-style: none; /* Rimuove il triangolino standard di Chrome */
    /* Coerenza con .TabPg_Head delle tabelle */
    background-color: #fdfaf6; 
    color: var(--primary-dark);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed);
}

/* Rimuove il triangolino su Firefox */
.DetPg_Bar::-webkit-details-marker {display: none;}

/* Effetto Hover sulla Summary (Coerenza con tr:hover delle tabelle) - L'arancio/crema tenue della tabella  */
.DetPg_Bar:hover {background-color: #fff7ed;}


/* Icona Material */
.DetPg_Bar .material-symbols-outlined {
    font-size: 20px;
    color: var(--accent); /* Ambra per le icone come nel progetto */
    transition: transform var(--transition-speed);
}

/* Ruota l'icona quando il details è aperto */
.DetPg_Section[open] .DetPg_Bar .material-symbols-outlined {
    transform: rotate(180deg);
}

/* Title */
/* Titolo dentro la Summary */
.DetPg_Title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* ************************************************* */
/* Contenuto Interno                                 */
/* ************************************************* */
.DetPg_Container {
    padding: 20px;
    background-color: #ffffff;
}

