/*
Theme Name: Twenty Twenty-Five Child
Theme URI: http://localhost
Description: Tema child di Twenty Twenty-Five
Author: Gianluca Piemonte
Template: twentytwentyfive
Version: 1.0.2
License:  GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html  
*/


/* Sovrascrive il font predefinito Manrope con un font di sistema standard */
body, 
p, 
li, 
h1, h2, h3, h4, h5, h6 {
    /* Lista di font di sistema comuni e veloci */
    font-family: Arial, Helvetica, "Helvetica Neue", sans-serif !important; 
}

strong, b, 
p strong, p b, 
li strong, li b, 
a strong, a b,
body strong, body b {
    /*font-family: 'Roboto', sans-serif !important; */
    font-weight: 600 !important;
}

h1 { font-size: 2.2rem !important; }
h2 { font-size: 2.0rem !important; }
h3 { font-size: 1.7rem !important; }
h4 { font-size: 1.5rem !important; }




/* formattazione tabelle */


/* Stile del Contenitore */
table {
    width: 100% !important; 
    border-collapse: collapse !important; 
    margin-top: 15px !important; 
    margin-bottom: 25px !important;
    
    /* 🎯 NUOVA REGOLA: Riduci la dimensione del font della tabella intera */
    font-size: 0.9em !important; 
}

/* Stile delle Celle Generali (th e td) - Ripetiamo per massima compatibilità */
th, td {
    border: 1px solid #ddd !important; 
    padding: 12px 15px !important;
    text-align: left !important;
    
    /* 🎯 NUOVA REGOLA: Riduci la dimensione del font delle celle */
    font-size: 0.9em !important; 
}


/* Stile specifico dell'Intestazione (<th>) - Sfondo grigio chiaro */
thead th {
    background-color: #e6e6e6 !important; /* Grisio chiaro garantito */
    color: #333 !important; 
    font-weight: bold !important;
    text-transform: uppercase !important;
}

/* Stile delle Righe Alternate (Zebra Striping) */
tbody tr:nth-child(odd) {
    background-color: #f9f9f9 !important;
}

/* Regola Hover potenziata per risolvere il conflitto di specificità */
tbody tr:hover, 
tbody tr:hover td { 
    background-color: #f0f0f0 !important; /* Il grigio chiaro deve prevalere su odd/even */
    cursor: pointer; /* Aggiunto cursore per feedback visivo */
}

/* Stile per l'enfasi all'interno delle celle */
td strong {
    color: #004d99 !important;
}

/* Stile specifico dell'Intestazione (<th>) - Sfondo grigio chiaro */
tfoot {
    background-color: #e6e6e6 !important; /* Grisio chiaro garantito */
    color: #333 !important; 
    font-weight: bold !important;
}

/* Stile e Posizionamento Didascalia Tabella Gutenberg */
/* Selettore mirato al contenitore del blocco tabella */
figure.wp-block-table {
    display: flex !important;              /* Abilita Flexbox sul contenitore */
    flex-direction: column-reverse !important; /* Inverte l'ordine visuale: l'ultimo elemento va per primo */
}

/* Stili per la didascalia (figcaption) */
/* Questa parte è per colore e font-size */
/* Forziamo la didascalia (figcaption) a essere visualizzata per prima nell'ordine */
figcaption {
    order: -1 !important; /* Ordine Flexbox: forza l'elemento a salire in cima */
    background-color: #555555 !important; /* Sfondo Grigio Scuro */
    color: #ffffff !important;           /* Testo Bianco */
    font-weight: bold !important;        /* Testo Grassetto */
    text-align: left !important;
    font-size: 0.9em !important;
    padding: 10px 0 10px 10px !important;
}
/* fine formattazione tabelle */




/* ------------------------------------------------------------------ */
/* Imposta stili per l'Editor Gutenberg
/* ------------------------------------------------------------------ */


/* ------------------------------------------------------------------ */
/* Paragrafo: stile "test-rosso" */
/* ------------------------------------------------------------------ */

p.is-style-test-rosso { /* Deve funzionare per il frontend! */
    background-color: red !important;
    color: white !important;
    padding: 1em !important;
}



/* ------------------------------------------------------------------ */
/* Pulsante: stile "arrotondato" */
/* ------------------------------------------------------------------ */

.is-style-bordo-sottile-arrotondato .wp-block-button__link.wp-element-button {
    
    /* Forziamo gli stili richiesti con !important */
    background-color: #111111 !important; 
    border-radius: 5px !important; 
    border: 2px solid #000000 !important; 
    
    /* Stili di layout */
    color: white !important; 
    padding: 0.7em 1.5em !important; 
    display: inline-flex !important; 
}
