/*
 * Theme Name:   Sunya Child
 * Theme URI:    https://dadesign.it/themes/sunya-child
 * Description:  Child theme di Sunya — personalizzazioni specifiche per il sito.
 * Author:       Davide Arduini
 * Author URI:   https://dadesign.it
 * Template:     sunya
 * Version:      1.1.1
 * License:      GPL-2.0-or-later
 * License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:  sunya-child
 * Tags:         custom, e-commerce, woocommerce
 * Requires at least: 6.0
 * Tested up to: 6.7
 * Requires PHP: 7.4
 *
 * Questo child theme eredita tutte le funzionalità del tema parent Sunya.
 * Tutte le personalizzazioni specifiche per il sito vanno qui.
 */


/* ==========================================================================
   PALETTE COLORI — davidearduini.com
   
   Colori brand:
   - Gold Dark:  #8C6E3A  (testo/link su sfondo chiaro, 4.75:1 su bianco)
   - Gold Base:  #B8965A  (hover, 3.4:1 — accettabile per stati interattivi)
   - Text:       #595E67  (body text, 6.56:1 su bianco, WCAG AAA)
   - Text Light: #6B7280  (meta/caption, 4.64:1, WCAG AA)
   - Footer:     #9CA3AD  (su #0D0E10, 7.5:1, WCAG AAA)
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Body text
   -------------------------------------------------------------------------- */

body,
.entry-content,
.sunya-entry-content,
.page-content {
    color: #595E67;
}

.sunya-meta,
.sunya-caption,
figcaption,
.wp-caption-text,
.comment-metadata {
    color: #6B7280;
}


/* --------------------------------------------------------------------------
   2. Link e heading dorati
   -------------------------------------------------------------------------- */

.entry-content a,
.sunya-entry-content a,
.page-content a {
    color: #8C6E3A;
}

.entry-content a:hover,
.entry-content a:focus,
.sunya-entry-content a:hover,
.sunya-entry-content a:focus,
.page-content a:hover,
.page-content a:focus {
    color: #B8965A;
}

.entry-content h3 a,
.sunya-entry-content h3 a {
    color: #8C6E3A;
}

.entry-content h3 a:hover,
.entry-content h3 a:focus,
.sunya-entry-content h3 a:hover,
.sunya-entry-content h3 a:focus {
    color: #B8965A;
}


/* --------------------------------------------------------------------------
   3. Navigazione — Gold su sfondo chiaro, bianco su trasparente
   -------------------------------------------------------------------------- */

.sunya-nav__menu > li > a {
    color: #8C6E3A;
}

.sunya-nav__menu > li > a:hover,
.sunya-nav__menu > li > a:focus {
    color: #B8965A;
}

/* Header trasparente (hero scuro): testo bianco */
.sunya-header--transparent .sunya-nav__menu > li > a {
    color: var(--sunya-color-white, #FAFAF8);
}

.sunya-header--transparent .sunya-nav__menu > li > a:hover,
.sunya-header--transparent .sunya-nav__menu > li > a:focus {
    color: var(--sunya-color-accent-light, #D4B07E);
}

/* Mobile: il parent garantisce già testo scuro via .sunya-nav__menu-wrapper
   con specificità (0,3,1). Le regole sopra (0,2,1) non vincono su mobile.
   Nessun override necessario qui — il parent gestisce. */


/* --------------------------------------------------------------------------
   4. Pulsanti CTA — Gold
   -------------------------------------------------------------------------- */

.sunya-btn--outline,
a.sunya-btn--outline {
    color: #8C6E3A;
    border-color: #8C6E3A;
}

.sunya-btn--outline:hover,
.sunya-btn--outline:focus,
a.sunya-btn--outline:hover,
a.sunya-btn--outline:focus {
    color: #B8965A;
    border-color: #B8965A;
}


/* --------------------------------------------------------------------------
   5. Footer — Ripristino colori su sfondo scuro
   
   Le regole body { color: #595E67 } cascadano ovunque.
   Ri-dichiariamo i colori footer per mantenere testo chiaro su sfondo scuro.
   -------------------------------------------------------------------------- */

.sunya-footer {
    color: var(--sunya-footer-color, #e5e7eb);
}

.sunya-footer a {
    color: var(--sunya-footer-color, #e5e7eb);
}

/* Copyright bar: #9CA3AD su #0D0E10 = 7.5:1 (AAA) */
.sunya-footer__bottom {
    color: #9CA3AD;
}

.sunya-footer__bottom a {
    color: #9CA3AD;
}


/* ==========================================================================
   FONT LOCALI — Dubai Family
   ========================================================================== */

@font-face {
    font-family: 'Dubai';
    src: url('fonts/Dubai-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dubai';
    src: url('fonts/Dubai-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dubai';
    src: url('fonts/Dubai-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dubai';
    src: url('fonts/Dubai-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ==========================================================================
   APPLICAZIONE FONT
   ========================================================================== */

:root {
    --sunya-font-body:    'Dubai', sans-serif;
    --sunya-font-heading: 'Dubai', sans-serif;
}

body {
    font-family: var(--sunya-font-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sunya-font-heading);
}


/* ==========================================================================
   FALLBACK ITALIC — Dubai non ha varianti italic
   
   font-synthesis: none (parent) impedisce il faux-italic del browser.
   Usiamo Dubai Medium (500) come distinzione visiva per l'enfasi.
   ========================================================================== */

em, i, cite, dfn, var,
.wp-block-quote cite,
blockquote cite {
    font-style: normal;
    font-weight: 500;
}
