/*
Theme Name:   Astra Almanacco
Template:     astra
Version:      3.0.0
Text Domain:  astra-almanacco
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

/* ================================================================
   VARIABILI
================================================================ */
:root {
    --gold:       #B8860B;
    --gold-lt:    #D4A843;
    --gold-pale:  #FEF9EE;
    --dark:       #1C1C2E;
    --navy:       #1B2A4A;
    --blue:       #2C4A7C;
    --blue-lt:    #4A72B8;
    --red:        #7A1A1A;
    --green:      #1A5C3A;
    --purple:     #4A2060;
    --cream:      #F7F3EB;
    --white:      #FFFFFF;
    --text:       #2A2A2A;
    --muted:      #666;
    --border:     #DDD5C0;
    --border-lt:  #EDE8DC;
    --r:          10px;
    --serif:      'Playfair Display', Georgia, serif;
    --sans:       'Lato', 'Segoe UI', sans-serif;
}

/* ================================================================
   RESET BASE
================================================================ */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: var(--sans); color: var(--text); background: var(--cream); line-height: 1.7; }
a { color: var(--blue); transition: color .2s; }
a:hover { color: var(--gold); text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--serif); }

/* ================================================================
   HEADER ASTRA
================================================================ */
.site-header, .ast-primary-header-bar { background: var(--dark) !important; border-bottom: 3px solid var(--gold) !important; }
.site-title a, .ast-site-title-wrap .site-title a { font-family: var(--serif) !important; font-size: 1.7rem !important; color: #fff !important; }
.site-description { color: var(--gold-lt) !important; font-size: .78rem !important; text-transform: uppercase; letter-spacing: 2px; }
.main-header-menu a, .ast-header-navigation .menu-link { color: rgba(255,255,255,.88) !important; font-size: .82rem !important; font-weight: 700 !important; letter-spacing: .8px; text-transform: uppercase; }
.main-header-menu a:hover, .ast-header-navigation .menu-link:hover { color: var(--gold-lt) !important; }

/* ================================================================
   HERO
================================================================ */
.almanacco-hero {
    background: linear-gradient(160deg, #0D1117 0%, var(--dark) 40%, var(--navy) 100%);
    padding: 56px 24px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}
.almanacco-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(184,134,11,.08) 0%, transparent 60%),
                      radial-gradient(circle at 80% 20%, rgba(44,74,124,.12) 0%, transparent 50%);
}
.almanacco-hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-lt) 50%, var(--gold) 70%, transparent 100%);
}
.hero-data {
    font-size: .75rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: var(--gold-lt); margin-bottom: 10px;
    position: relative; z-index: 1;
}
.hero-titolo {
    font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
    color: #fff; margin: 0 0 8px; line-height: 1.15; position: relative; z-index: 1;
}
.hero-sottotitolo {
    color: rgba(255,255,255,.5); font-size: .9rem; margin: 0 0 24px;
    position: relative; z-index: 1;
}
.hero-santo-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(184,134,11,.15); border: 1px solid rgba(184,134,11,.45);
    border-radius: 40px; padding: 9px 24px;
    color: var(--gold-lt); font-size: .88rem; position: relative; z-index: 1;
}
.hero-santo-badge strong { color: #fff; }
.hero-dayinfo { font-size: .72rem; letter-spacing: 2px; margin-top: 6px; color: rgba(255,255,255,.7); }
.hero-zodiaco { font-size: 1.1rem; margin-top: 4px; color: var(--gold-lt); letter-spacing: 1px; }

/* ================================================================
   WRAPPER
================================================================ */
.almanacco-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 64px;
}

/* ================================================================
   SEZIONE — struttura comune con RIQUADRO
================================================================ */
.al-section {
    margin-top: 48px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    border: 1px solid var(--border-lt);
    overflow: hidden;
}

/* Intestazione colorata in cima al riquadro */
.al-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-lt);
}

/* Colori distinti per ogni sezione */
.s-santo  .al-section-head { background: linear-gradient(135deg, #2A1F00, #3D2C00); }
.s-eventi .al-section-head { background: linear-gradient(135deg, #0A1628, #162444); }
.s-persone .al-section-head { background: linear-gradient(135deg, #1A0A2E, #2E1050); }
.s-frase  .al-section-head { background: linear-gradient(135deg, #0A2018, #123028); }

.al-section-icon {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
    background: rgba(255,255,255,.12);
    line-height: 1;
}
.al-section-head-text { display: flex; flex-direction: column; justify-content: center; }
.al-section-label {
    font-size: .65rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: rgba(255,255,255,.55);
    margin-bottom: 2px; line-height: 1;
}
.al-section-titolo {
    font-family: var(--serif); font-size: 1.4rem;
    color: #fff; margin: 0; line-height: 1.15;
}

.al-section-body { padding: 28px; }

/* ================================================================
   SANTO — tabs
================================================================ */
.santo-main {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0;
}
.santo-sidebar {
    background: linear-gradient(180deg, #2A1F00, #3D2C00);
    padding: 28px 20px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 14px;
}
.santo-emblema {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(184,134,11,.2); border: 2px solid rgba(184,134,11,.5);
    display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
}
.santo-sidebar-label {
    font-size: .62rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--gold-lt); line-height: 1;
}
.santo-sidebar-nome {
    font-family: var(--serif); font-size: 1.1rem; color: #fff;
    margin: 0; line-height: 1.3;
}
.santo-content { display: flex; flex-direction: column; overflow: hidden; }
.santo-body    { display: flex; flex-direction: column; }

/* ---- Tab Nav ---- */
.tab-nav {
    display: flex; gap: 0;
    border-bottom: 2px solid var(--border-lt);
    padding: 0 24px;
    background: #FAFAF8;
}
.tab-btn {
    padding: 13px 18px; font-size: .8rem; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase;
    color: var(--muted); cursor: pointer;
    border: none; background: none;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    transition: all .2s; white-space: nowrap;
}
.tab-btn:hover { color: var(--blue); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }

.tab-panels { padding: 24px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-panel p {
    font-size: .93rem; line-height: 1.8; color: var(--text); margin-bottom: 14px;
}
.riflessione-box {
    background: var(--gold-pale); border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0; padding: 16px 20px;
    font-style: italic; color: #5a4010; font-size: .92rem; line-height: 1.8;
}
.curiosita-box {
    background: #EEF4FF; border-left: 4px solid var(--blue-lt);
    border-radius: 0 8px 8px 0; padding: 14px 18px;
    font-size: .9rem; color: var(--navy); line-height: 1.75; margin-bottom: 12px;
}

/* ================================================================
   EVENTI — timeline
================================================================ */
.eventi-list {
    display: flex; flex-direction: column; gap: 0;
    padding: 0 28px 20px;
}
.evento-item {
    border-left: 3px solid var(--blue-lt);
    margin-left: 52px;
    padding: 0 0 24px 20px;
    position: relative;
}
.evento-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.evento-item::before {
    content: '';
    position: absolute; left: -8px; top: 8px;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--white); border: 3px solid var(--blue);
}
.evento-anno-badge {
    position: absolute; left: -66px; top: 2px;
    font-family: var(--serif); font-size: 1rem; font-weight: 700;
    color: var(--blue); text-align: right; width: 48px; line-height: 1.2;
}
.evento-ac { font-size: .65rem; color: var(--muted); display: block; }

.evento-header-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; cursor: pointer; padding: 4px 0 6px;
    user-select: none;
}
.evento-titolo-h {
    font-family: var(--serif); font-size: 1rem; color: var(--dark);
    margin: 0; line-height: 1.35; flex: 1;
}
.evento-toggle-btn {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--blue); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 700; flex-shrink: 0;
    line-height: 1; transition: background .2s, transform .2s;
}
.evento-header-row.open .evento-toggle-btn { background: var(--navy); transform: rotate(45deg); }

.evento-dettaglio { display: none; padding-bottom: 4px; }
.evento-dettaglio.open { display: block; }
.evento-dettaglio p { font-size: .88rem; color: var(--text); line-height: 1.75; margin-bottom: 10px; }
.conseguenze-block {
    background: var(--gold-pale); border-left: 3px solid var(--gold);
    border-radius: 0 6px 6px 0; padding: 10px 14px;
    font-size: .85rem; color: #5a4010; line-height: 1.7;
}
.cons-label {
    font-size: .65rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--gold); margin-bottom: 4px;
}

/* ================================================================
   PERSONE — griglia
================================================================ */
.persone-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(270px,1fr));
    gap: 20px; padding: 28px;
}
.persona-card {
    border-radius: 10px; border: 1px solid var(--border-lt);
    overflow: hidden; transition: transform .2s, box-shadow .2s;
    background: var(--white);
}
.persona-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.persona-head {
    background: linear-gradient(135deg, var(--purple), #7A3A90);
    padding: 18px 20px; display: flex; align-items: center; gap: 14px;
}
.persona-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.persona-head-info { display: flex; flex-direction: column; }
.persona-anno-tag {
    font-size: .68rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 3px;
}
.persona-nome-h {
    font-family: var(--serif); font-size: 1.05rem; color: #fff;
    margin: 0; line-height: 1.25;
}
.persona-body { padding: 16px 18px; }
.persona-desc { font-size: .875rem; color: var(--text); line-height: 1.72; margin-bottom: 12px; }
.persona-curiosita {
    background: #F3EEFF; border-left: 3px solid #8B4AC0;
    border-radius: 0 6px 6px 0; padding: 10px 13px;
    font-size: .82rem; color: #3A1055; line-height: 1.65;
}
.curiosita-tag {
    font-size: .63rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: #8B4AC0; margin-bottom: 4px; display: block;
}

/* ================================================================
   PROVERBIO + CITAZIONE
================================================================ */
.frase-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 28px;
}
.proverbio-card, .citazione-card { border-radius: 8px; }

.proverbio-card {
    background: #F4FEF7;
    border: 1px solid #B8DEC8;
    padding: 28px;
}
.card-tipo {
    display: flex; align-items: center; gap: 6px;
    font-size: .68rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 14px;
}
.proverbio-card .card-tipo { color: var(--green); }
.proverbio-testo {
    font-family: var(--serif); font-size: 1.15rem; font-style: italic;
    color: var(--dark); line-height: 1.5; margin-bottom: 14px;
}
.proverbio-desc { font-size: .875rem; color: var(--muted); line-height: 1.7; margin: 0; }

.citazione-card {
    background: linear-gradient(150deg, var(--dark), var(--navy));
    padding: 28px; position: relative; overflow: hidden;
}
.citazione-card::before {
    content: '\201C'; font-family: var(--serif); font-size: 9rem;
    color: var(--gold); opacity: .12;
    position: absolute; top: -16px; left: 10px; line-height: 1; pointer-events: none;
}
.citazione-card .card-tipo { color: var(--gold-lt); }
.citazione-testo {
    font-family: var(--serif); font-size: 1.05rem; font-style: italic;
    color: #fff; line-height: 1.65; margin-bottom: 14px; position: relative; z-index: 1;
}
.citazione-desc {
    font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.65;
    border-top: 1px solid rgba(255,255,255,.1); padding-top: 12px; margin: 0;
}

/* ================================================================
   NAV GG
================================================================ */
.almanacco-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 40px; padding-top: 20px; border-top: 2px solid var(--border);
}
.almanacco-nav a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; background: var(--white);
    border: 1px solid var(--border); border-radius: 7px;
    font-size: .84rem; font-weight: 700; color: var(--dark);
    box-shadow: 0 2px 6px rgba(0,0,0,.06); transition: all .2s;
}
.almanacco-nav a:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.almanacco-nav .nav-label { font-family: var(--serif); font-size: 1rem; color: var(--muted); }

/* ================================================================
   NO DATA
================================================================ */
.no-almanacco {
    text-align: center; background: var(--white);
    border-radius: 14px; padding: 56px 40px; margin: 40px 0;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.no-almanacco h2 { font-size: 1.7rem; color: var(--dark); margin-bottom: 10px; }
.no-almanacco p { color: var(--muted); }

/* ================================================================
   FOOTER
================================================================ */
.site-footer, .ast-small-footer {
    background: var(--dark) !important; color: #aaa !important;
    border-top: 3px solid var(--gold) !important;
}
.site-footer a { color: var(--gold-lt) !important; }
.site-footer a:hover { color: #fff !important; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 800px) {
    .santo-main { grid-template-columns: 1fr; }
    .santo-sidebar { flex-direction: row; padding: 18px 20px; }
    .frase-grid { grid-template-columns: 1fr; }
    .persone-grid { grid-template-columns: 1fr; }
    .evento-item { margin-left: 36px; }
    .evento-anno-badge { left: -50px; width: 36px; font-size: .85rem; }
}
@media (max-width: 520px) {
    .almanacco-hero { padding: 36px 14px 30px; }
    .al-section-body, .eventi-list, .persone-grid, .frase-grid { padding: 18px; }
    .almanacco-nav { flex-direction: column; gap: 12px; }
    .tab-btn { padding: 10px 12px; font-size: .74rem; }
}

/* ================================================================
   CALENDARIO ALMANACCO
=============================================================== */
.almanacco-cal-section {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.almanacco-cal-section .almanacco-cal-wrap {
    width: 100%;
    max-width: 400px;
}
.almanacco-cal-wrap {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    border: 1px solid var(--border-lt);
    overflow: hidden;
    max-width: 380px;
    font-family: var(--sans);
}
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--dark);
    padding: 14px 16px;
    border-bottom: 2px solid var(--gold);
}
.cal-title {
    font-family: var(--serif);
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    text-decoration: none;
    transition: background .2s;
}
.cal-nav:hover {
    background: var(--gold-lt);
    color: var(--dark) !important;
    text-decoration: none;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    padding: 8px;
}
.cal-cell {
    text-align: center;
    padding: 6px 2px;
    font-size: .82rem;
}
.cal-dow {
    font-weight: 700;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    padding: 10px 2px 6px;
}
.cal-empty {
    visibility: hidden;
}
.cal-day {
    padding: 2px;
}
.cal-day a, .cal-day span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    margin: 0 auto;
    border-radius: 50%;
    font-size: .85rem;
    font-weight: 600;
    transition: all .2s;
}
.cal-day a {
    color: var(--blue);
    text-decoration: none;
    background: #F0F4FF;
}
.cal-day a:hover {
    background: var(--blue);
    color: #fff !important;
    text-decoration: none;
}
.cal-day span {
    color: #ccc;
    cursor: default;
}
.cal-today a {
    background: var(--gold-lt) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(184,134,11,.3);
}
.cal-today a:hover {
    background: var(--gold) !important;
}
.cal-empty-day {
    opacity: .5;
}

/* Responsive */
@media (max-width: 600px) {
    .almanacco-cal-wrap { max-width: 100%; }
    .cal-day a, .cal-day span { width: 30px; height: 30px; font-size: .8rem; }
}

/* ================================================================
   LINK WIKIPEDIA
=============================================================== */
.wiki-link {
    display: inline-block;
    font-size: .7rem;
    text-decoration: none;
    opacity: .5;
    transition: opacity .2s;
    vertical-align: super;
    line-height: 1;
    margin-left: 3px;
}
.wiki-link:hover { opacity: 1; text-decoration: none; }

/* ================================================================
   CATEGORIE EVENTO
=============================================================== */
.evento-categorie {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 56px;
    margin-bottom: 6px;
}
.evento-cat-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    background: #E8EDF6;
    color: var(--blue);
    border: 1px solid #CDD8EC;
}

/* ================================================================
   QUIZ DEL GIORNO
=============================================================== */
.s-quiz .al-section-head { background: linear-gradient(135deg, #2A1A0A, #4A2A10); }
.quiz-body { padding: 32px 28px; }
.quiz-domanda {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.5;
}
.quiz-opzioni {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.quiz-btn {
    padding: 10px 22px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-size: .9rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all .2s;
    font-family: var(--sans);
}
.quiz-btn:hover { border-color: var(--blue); background: #F0F4FF; }
.quiz-btn:disabled { opacity: .6; cursor: default; }
.quiz-corretto-btn { background: var(--green) !important; color: #fff !important; border-color: var(--green) !important; }
.quiz-sbagliato-btn { background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; }
.quiz-corretto { color: var(--green); font-weight: 700; font-size: 1rem; }
.quiz-sbagliato { color: var(--red); font-weight: 700; font-size: 1rem; }
.quiz-risultato { margin-top: 4px; min-height: 26px; }

/* ================================================================
   RICERCA
=============================================================== */
.almanacco-search-wrap {
    background: var(--dark);
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.almanacco-search-wrap form {
    display: flex;
    width: 100%;
    max-width: 600px;
    gap: 0;
}
.almanacco-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #555;
    border-right: none;
    border-radius: 6px 0 0 6px;
    background: #2A2A35;
    color: #E0E0E8;
    font-size: .88rem;
    font-family: var(--sans);
    outline: none;
    transition: background .2s;
}
.almanacco-search-input::placeholder { color: #888; }
.almanacco-search-input:focus { background: #333340; border-color: var(--gold-lt); }
.almanacco-search-btn {
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 0 6px 6px 0;
    background: var(--gold);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: background .2s;
}
.almanacco-search-btn:hover { background: var(--gold-lt); }

/* ================================================================
   MODALITÀ SCURA (DARK MODE)
=============================================================== */
.dm-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--gold-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 3px 14px rgba(0,0,0,.25);
    transition: all .3s;
    font-size: 1.2rem;
    line-height: 1;
}
.dm-toggle:hover { transform: scale(1.1); }
.dm-toggle .dm-sun { display: none; }
.dm-toggle.dm-on .dm-icon { display: none; }
.dm-toggle.dm-on .dm-sun { display: inline; }

/* Dark mode variabili */
body.dark-mode {
    --cream: #111118;
    --white: #1A1A24;
    --text: #D0D0D8;
    --muted: #888;
    --border: #333;
    --border-lt: #2A2A35;
    --dark: #0A0A0F;
}
body.dark-mode .almanacco-hero {
    background: linear-gradient(160deg, #050508 0%, #0A0A12 40%, #10101A 100%);
}
body.dark-mode .al-section { box-shadow: 0 2px 16px rgba(0,0,0,.3); }
body.dark-mode .evento-titolo-h,
body.dark-mode .quiz-domanda { color: var(--text); }
body.dark-mode .quiz-btn { background: var(--white); color: var(--text); border-color: var(--border); }
body.dark-mode .quiz-btn:hover { border-color: var(--blue-lt); background: #1A1A30; }
body.dark-mode .persona-card { background: var(--white); }
body.dark-mode .cal-day a { background: #1A1A30; color: var(--blue-lt); }
body.dark-mode .cal-day a:hover { background: var(--blue); color: #fff; }
body.dark-mode .cal-day span { color: #555; }
body.dark-mode .almanacco-nav a { background: var(--white); color: var(--text); border-color: var(--border); }
body.dark-mode .almanacco-nav a:hover { background: var(--dark); color: var(--gold-lt); }
body.dark-mode .proverbio-card { background: #0A1A10; border-color: #1A3A20; }
body.dark-mode .proverbio-testo { color: var(--text); }
body.dark-mode .persona-curiosita { background: #1A0A2E; color: #C8A0E8; }
body.dark-mode .riflessione-box { background: #1A1400; color: #C8A840; }
body.dark-mode .curiosita-box { background: #0A1020; color: #90A8D0; }
body.dark-mode .conseguenze-block { background: #1A1400; color: #C8A840; }
body.dark-mode .evento-cat-tag { background: #1A2030; color: var(--blue-lt); border-color: #2A3050; }
body.dark-mode .almanacco-search-input { background: rgba(0,0,0,.25); }
body.dark-mode .almanacco-search-input:focus { background: rgba(0,0,0,.35); }
body.dark-mode .site-footer p,
body.dark-mode .almanacco-cal-section p { color: var(--muted); }
