/*
Theme Name: Angelo Custode Child
Theme URI: https://www.angelocustode.net
Description: Child theme Divi per angelocustode.net
Author: Angelo Custode APS
Template: Divi
Version: 1.0.0
Text Domain: angelocustode-child
*/

/* =============================================
   VARIABILI GLOBALI — modifica solo qui
   ============================================= */
:root {
    --ac-dark:        #062631;   /* blu petrolio scuro — sfondi, header */
    --ac-primary:     #1a8b89;   /* verde acqua — CTA, link, accenti */
    --ac-light:       #f3f3f3;   /* grigio chiaro — sfondi sezioni alternate */
    --ac-white:       #ffffff;
    --ac-text:        #1a1a1a;   /* testo principale */
    --ac-text-muted:  #666666;   /* testo secondario */

    --ac-font-title:  'Georgia', serif;
    --ac-font-body:   'Open Sans', sans-serif;

    --ac-radius:      6px;
    --ac-transition:  0.3s ease;
}

/* =============================================
   TIPOGRAFIA E SPAZIATURA GLOBALE
   ============================================= */
body {
    font-size: 17px;
    line-height: 1.85;
    color: var(--ac-text);
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 0.6em;
    margin-top: 1.6em;
}

h1 { font-size: 2.4em; }
h2 { font-size: 1.7em; }
h3 { font-size: 1.3em; }

p {
    margin-bottom: 1.4em;
    max-width: 720px;
}

ul, ol {
    margin-bottom: 1.4em;
    padding-left: 1.4em;
}

li {
    margin-bottom: 0.5em;
    line-height: 1.75;
}

.et_pb_text_inner p:last-child {
    margin-bottom: 0;
}

.et_pb_section {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

.et_pb_row {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

/* Applica colori Divi tramite variabili */
a { color: var(--ac-primary); }
a:hover { color: var(--ac-dark); }

.et_pb_button,
.et_pb_button_module_wrapper a {
    background: var(--ac-primary) !important;
    border-color: var(--ac-primary) !important;
    transition: background var(--ac-transition), border-color var(--ac-transition);
}
.et_pb_button:hover {
    background: var(--ac-dark) !important;
    border-color: var(--ac-dark) !important;
}

/* Pulsante menu header */
.ac-btn-menu > a {
    background: var(--ac-primary) !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: background var(--ac-transition) !important;
}
.ac-btn-menu > a:hover {
    background: var(--ac-dark) !important;
    color: #ffffff !important;
}

/* Sezioni alternate */
.et_pb_section--light {
    background: var(--ac-light) !important;
}

/* =============================================
   FOOTER
   ============================================= */
.et-l--footer,
.et-l--footer .et_pb_section,
.et-l--footer .et_pb_row {
    background: var(--ac-dark) !important;
}

.et-l--footer p,
.et-l--footer span,
.et-l--footer li,
.et-l--footer div {
    color: var(--ac-light) !important;
}

.et-l--footer a {
    color: var(--ac-primary) !important;
}

.et-l--footer a:hover {
    color: var(--ac-white) !important;
    text-decoration: none;
}

.et-l--footer h1,
.et-l--footer h2,
.et-l--footer h3,
.et-l--footer h4 {
    color: var(--ac-white) !important;
}

#et-footer-nav {
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4) !important;
}

/* Footer override aggressivo Divi 5 */
footer *,
footer p,
footer span,
footer div,
footer li,
footer label,
[class*="tb_footer"] *,
[class*="tb-footer"] * {
    color: var(--ac-light) !important;
}

footer a,
[class*="tb_footer"] a,
[class*="tb-footer"] a {
    color: var(--ac-primary) !important;
}

footer h1, footer h2, footer h3, footer h4,
[class*="tb_footer"] h1,
[class*="tb_footer"] h2,
[class*="tb_footer"] h3,
[class*="tb_footer"] h4 {
    color: #ffffff !important;
}
