/* ==========================================================================
   DALZOVO — Main Stylesheet
   v1.0.0 — Creativart
   ========================================================================== */

/* ── WORK SANS SELF-HOSTED ─────────────────────────────────────────────── */

@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/worksans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                   U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                   U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/worksans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
                   U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                   U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                   U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── BRAND VARS ─────────────────────────────────────────────────────────── */
:root {
    --dz-brown:  #2c1a0e;
    --dz-gold:   #c9a84c;
    --dz-white:  #ffffff;
    --dz-gray:   #f5f5f5;
    --dz-text:   #333333;
    --dz-font:   'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --dz-max-w:  1200px;
}

/* ── RESET + BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
	overflow-x: hidden;
}

body {
    font-family: var(--dz-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dz-text);
    background: var(--dz-white);
    -webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ── HEADER ─────────────────────────────────────────────────────────────── */

#dz-header {
    background-color: var(--dz-brown);
    height: 75px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

#dz-header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--dz-max-w);
    margin: 0 auto;
    padding: 0;
}

/* Logo */
#dz-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    padding-left: 15px;
    padding-right: 15px;
}

#dz-logo-link img {
    height: 55px;
    width: auto;
    /* PNG con canale alpha — logo bianco su sfondo scuro */
}

/* Navigation */
#dz-nav {
    flex-shrink: 0;
    padding-left: 15px;
    padding-right: 15px;
}

#dz-nav ul.dz-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

#dz-nav ul.dz-menu > li {
    position: relative;
}

#dz-nav ul.dz-menu > li > a {
    display: block;
    padding: 0 20px;
    color: var(--dz-white);
    font-family: var(--dz-font);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 75px;        /* centra verticalmente nel header */
    white-space: nowrap;
    transition: color .2s ease;
}

#dz-nav ul.dz-menu > li > a:hover,
#dz-nav ul.dz-menu > li.current-menu-item > a,
#dz-nav ul.dz-menu > li.current-page-ancestor > a,
#dz-nav ul.dz-menu > li.current_page_item > a {
    color: var(--dz-gold);
}

/* Dropdown di secondo livello */
#dz-nav ul.dz-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--dz-brown);
    border-top: 2px solid var(--dz-gold);
    list-style: none;
    padding: 8px 0;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

#dz-nav ul.dz-menu li:hover > ul {
    display: block;
}

#dz-nav ul.dz-menu ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--dz-white);
    font-family: var(--dz-font);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease;
}

#dz-nav ul.dz-menu ul li a:hover {
    color: var(--dz-gold);
    background: rgba(255,255,255,.05);
}

#dz-hamburger { display: none; }

@media (max-width: 1024px) {
    #dz-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px; height: 20px;
        background: none; border: none;
        cursor: pointer; padding: 0;
        margin-left: auto; margin-right: 20px;
        flex-shrink: 0;
    }
    #dz-hamburger span {
        display: block; width: 100%; height: 2px;
        background: var(--dz-white); border-radius: 2px;
        transition: transform .3s ease, opacity .3s ease;
    }
    body.dz-nav-open #dz-hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    body.dz-nav-open #dz-hamburger span:nth-child(2) { opacity: 0; }
    body.dz-nav-open #dz-hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    #dz-nav {
        display: none;
        position: absolute; top: 75px; left: 0;
        width: 100%; background: var(--dz-brown);
        box-shadow: 0 4px 12px rgba(0,0,0,.5);
        z-index: 999;
    }
    body.dz-nav-open #dz-nav { display: block; }

    #dz-nav ul.dz-menu { flex-direction: column; align-items: stretch; }
    #dz-nav ul.dz-menu > li > a { line-height: 1; padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.1); }

    #dz-nav ul.dz-menu ul,
    .dz-mega-dropdown { display: none !important; }
}

/* ── MAIN CONTENT ───────────────────────────────────────────────────────── */

#dz-main {
    min-height: 60vh;
}

.dz-container {
    max-width: var(--dz-max-w);
    margin: 0 auto;
    padding: 0 32px;
}

.dz-section {
    padding: 0 0 80px;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */

/* Wrapper: nessuno stile proprio — sezioni gestiscono bg e spacing */
#dz-footer {
    font-size: 14px;
}

/* ─ Sezione principale (sfondo marrone) ───────────────────────────────── */
#dz-footer-main {
    background-color: var(--dz-brown);
    color: rgba(255,255,255,.75);
    /* padding dai valori originali PS (base 14px) */
    padding-top: 1.4285714286rem;    /* ≈ 20px */
    padding-bottom: 0.4285714286rem; /* ≈ 6px  */
}

/* ─ Sezione 1: barra nav replica header ──────────────────────────────── */
#dz-footer-nav-bar {
    /* border sul container interno: si ferma al max-width del contenuto */
}

/* Grid 1fr | auto | 1fr: i menu si appoggiano al logo, non ai bordi */
.dz-footer-nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;           /* espande fino al max-width per 1fr simmetrici */
    max-width: 1290px;
    margin: 0 auto;
    min-height: 118px; /* altezza effettiva originale — non fissata nel sorgente PS */
    border-bottom: 1px solid rgba(255,255,255,1); /* linea bianca entro il contenuto */
}

.dz-footer-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Voci sinistra: distribuite uniformemente nell'intera metà sinistra */
.dz-footer-nav--left ul {
    justify-content: space-evenly;
}

/* Voci destra: distribuite uniformemente nell'intera metà destra */
.dz-footer-nav--right ul {
    justify-content: space-evenly;
}

/* Link e span voci menu — stile identico al menu header */
.dz-footer-nav ul li a,
.dz-footer-nav-label {
    display: block;
    padding: 0 15px;
    color: var(--dz-white);
    font-family: var(--dz-font);
    font-size: 0.8125rem;    /* 13px */
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color .2s ease;
}

.dz-footer-nav ul li a:hover {
    color: var(--dz-gold);
}

/* Ricorrenze: testo non cliccabile, visivamente uguale alle voci link */
.dz-footer-nav-label {
    cursor: default;
}

/* Logo centrato nella barra — 2/3 della min-height della barra (118px) */
.dz-footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.dz-footer-logo img,
.dz-footer-logo a img {
    height: 78px;
    width: auto;
}

/* WP custom logo (the_custom_logo()) porta il suo <a> — lo neutralizziamo */
.dz-footer-logo .custom-logo-link {
    display: flex;
    align-items: center;
}

/* ─ Sezione 2: Info ──────────────────────────────────────────────────── */
#dz-footer-info {
    padding: 1em 0;
}

/* Grid 1fr | 1.4fr | 1fr: colonne allineate ai blocchi della barra nav sopra */
.dz-footer-info-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    align-items: center;
    width: 100%;           /* espande fino al max-width per colonne simmetriche */
    max-width: 1290px;
    margin: 0 auto;
    gap: 2rem;
}

.dz-footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Colonna sx: Gambero Rosso */
.dz-footer-col--gambero {
    justify-self: center;
}

.dz-footer-col--gambero img {
    max-width: 100%;
    height: auto;
}

/* Colonna centrale: contatti + social */
.dz-footer-col--contacts {
    flex: 1;
    max-width: 100%;
    gap: .3rem;
}

.dz-footer-col-title {
    font-size: 0.75rem;   /* 12px */
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dz-white);
}

.dz-footer-social-title {
    margin-top: .6rem;
}

.dz-footer-col--contacts p {
    font-size: 0.8125rem;  /* 13px */
    line-height: 1.5;
}

/* Bottoni social (cerchi) */
.dz-footer-social {
    display: flex;
    gap: .6rem;
    justify-content: center;
    margin-top: .3rem;
}

.dz-footer-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    color: var(--dz-white);
    font-size: 0.8125rem;
    transition: background .2s ease;
}

.dz-footer-social-btn:hover {
    background: rgba(255,255,255,.45);
    color: var(--dz-white);
    opacity: 1;
}

/* Colonna dx: servizi */
.dz-footer-col--services {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
}

.dz-footer-service {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.dz-footer-service img {
    width: 48px;
    height: auto;
    flex-shrink: 0;
    /* PNG già bianche su fondo trasparente — nessun filter necessario */
}

.dz-footer-service p {
    font-size: 0.8125rem;  /* 13px */
    line-height: 1.45;
}

/* ─ Area copyright (sfondo bianco) ──────────────────────────────────── */
#dz-footer-copyrights {
    background: #ffffff;
    border-top: none;
    padding-top: 1.0714285714rem;    /* ≈ 15px */
    padding-bottom: 1.0714285714rem;
    color: var(--dz-text);
    font-size: 0.75rem;   /* 12px */
}

.dz-footer-copy-inner {
    width: 100%;
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 15px;     /* padding laterale originale PS */
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.dz-footer-copy-inner p {
    margin-bottom: .8rem;
    text-align: center;
}

.dz-footer-copy-policies {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .8rem;
}

.dz-footer-copy-inner a {
    color: var(--dz-text);
    transition: color .2s;
}

.dz-footer-copy-inner a:hover {
    color: var(--dz-brown);
}

/* ─ Footer responsive ────────────────────────────────────────────────── */

@media (max-width: 991px) {
    /* Sezione 1: barra nav nascosta su tablet e phone */
    #dz-footer-nav-bar {
        display: none;
    }

    /* Info: grid collassa a colonna singola */
    .dz-footer-info-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1.5rem;
    }

    .dz-footer-col--services {
        align-items: center;
        text-align: center;
    }

    .dz-footer-service {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ── WOOCOMMERCE BASE ───────────────────────────────────────────────────── */

.woocommerce-page #dz-main,
.woocommerce #dz-main {
    padding: 60px 0;
}

/* ── UTILITY ────────────────────────────────────────────────────────────── */

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}
