/* ===== MIOLLI — GLOBAL STYLES ===== */
/* Paleta: #ccc7c0 areia | #cead84 dourado | #886150 terracota | #1a1923 noite */

/* ══════════════════════════════════════
   SOFIA PRO — @font-face
══════════════════════════════════════ */
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro UltraLight Az.otf') format('opentype'); font-weight:100; font-style:normal; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro UltraLight Italic Az.otf') format('opentype'); font-weight:100; font-style:italic; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro ExtraLight Az.otf') format('opentype'); font-weight:200; font-style:normal; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro ExtraLight Italic Az.otf') format('opentype'); font-weight:200; font-style:italic; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro Light Az.otf') format('opentype'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro Light Italic Az.otf') format('opentype'); font-weight:300; font-style:italic; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro Regular Az.otf') format('opentype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro Regular Italic Az.otf') format('opentype'); font-weight:400; font-style:italic; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro Medium Az.otf') format('opentype'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro Medium Italic Az.otf') format('opentype'); font-weight:500; font-style:italic; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro Semi Bold Az.otf') format('opentype'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro Semi Bold Italic Az.otf') format('opentype'); font-weight:600; font-style:italic; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro Bold Az.otf') format('opentype'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro Bold Italic Az.otf') format('opentype'); font-weight:700; font-style:italic; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro Black Az.otf') format('opentype'); font-weight:900; font-style:normal; font-display:swap; }
@font-face { font-family:'Sofia Pro'; src:url('../fonts/Sofia Pro Black Italic Az.otf') format('opentype'); font-weight:900; font-style:italic; font-display:swap; }

:root {
    --areia:     #ccc7c0;
    --dourado:   #cead84;
    --terracota: #886150;
    --noite:     #1a1923;
    --preto:       var(--noite);
    --branco:      #f7f4f0;
    --ouro:        var(--dourado);
    --ouro-claro:  #d8bc9a;
    --ouro-escuro: var(--terracota);
    --cinza:       #9a9490;
    --cinza-claro: #e5dfd8;
    --cinza-escuro:#3a3530;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Sofia Pro', 'Montserrat', sans-serif;
    background: var(--branco);
    color: var(--noite);
    overflow-x: hidden;
}

/* ——— HEADER ——— */
.main-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 80px;
    background: rgba(247, 244, 240, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(206, 173, 132, 0.2);
    transition: all 0.4s ease;
}
.header-inner {
    max-width: 1140px; margin: 0 auto; padding: 0 40px;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-svg { height: 44px; width: auto; }

.nav-links { display: none; gap: 40px; list-style: none; }
.nav-links a {
    font-family: 'Sofia Pro', sans-serif;
    font-size: 0.58rem; font-weight: 500; letter-spacing: 2px;
    text-transform: uppercase; color: var(--cinza-escuro);
    text-decoration: none; position: relative; transition: color 0.3s;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: var(--dourado); transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--terracota); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 24px; }
.icon-btn {
    background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 4px;
    transition: transform 0.2s;
}
.icon-btn svg {
    width: 19px; height: 19px; stroke: var(--noite);
    stroke-width: 1.4; fill: none; transition: stroke 0.2s;
}
.icon-btn:hover svg { stroke: var(--terracota); }

/* ——— HAMBURGER ——— */
.hamburger {
    display: flex; flex-direction: column; justify-content: center;
    align-items: flex-end; gap: 6px; background: none; border: none;
    cursor: pointer; padding: 6px; z-index: 300; position: relative;
}
.hamburger span {
    display: block; height: 1px; background: var(--noite);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: right center;
}
.hamburger span:nth-child(1) { width: 28px; }
.hamburger span:nth-child(2) { width: 20px; }
.hamburger span:nth-child(3) { width: 24px; }
.hamburger.open span { background: var(--areia); }
.hamburger.open span:nth-child(1) { width: 28px; transform: translateY(7px) rotate(-45deg); }
.hamburger.open span:nth-child(2) { width: 0; opacity: 0; }
.hamburger.open span:nth-child(3) { width: 28px; transform: translateY(-7px) rotate(45deg); }

/* ——— FULLSCREEN MENU ——— */
.fullscreen-menu {
    position: fixed; inset: 0; z-index: 250;
    background: var(--noite);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    /* clip-path origin calculado via JS a partir da posição real do botão hamburger */
    clip-path: circle(0% at var(--menu-origin-x, calc(100% - 52px)) var(--menu-origin-y, 40px));
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    pointer-events: none;
}
.fullscreen-menu.open {
    clip-path: circle(170% at var(--menu-origin-x, calc(100% - 52px)) var(--menu-origin-y, 40px));
    pointer-events: all;
}
.fullscreen-menu::before {
    content: 'MIOLLI'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Sofia Pro', sans-serif; font-size: 18vw; font-weight: 900;
    color: rgba(206, 173, 132, 0.04); letter-spacing: 16px; white-space: nowrap;
    pointer-events: none; user-select: none;
}
.fullscreen-menu::after {
    content: ''; position: absolute; top: 10%; bottom: 10%; left: 50%; width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(206,173,132,0.12) 30%, rgba(206,173,132,0.12) 70%, transparent);
    pointer-events: none;
}

.menu-nav {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    gap: 0;
}
.menu-nav a {
    font-family: 'Sofia Pro', sans-serif;
    font-size: 58px;
    font-weight: 300;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: rgba(204, 199, 192, 0.3);
    text-decoration: none;
    padding: 8px 56px;
    opacity: 0; transform: translateY(20px);
    transition: color 0.3s, opacity 0.5s cubic-bezier(0.23,1,0.32,1), transform 0.5s cubic-bezier(0.23,1,0.32,1);
    cursor: pointer; display: flex; align-items: center; gap: 20px;
}
.fullscreen-menu.open .menu-nav a { opacity: 1; transform: translateY(0); }
.fullscreen-menu.open .menu-nav a:nth-child(1) { transition-delay: 0.12s; }
.fullscreen-menu.open .menu-nav a:nth-child(2) { transition-delay: 0.18s; }
.fullscreen-menu.open .menu-nav a:nth-child(3) { transition-delay: 0.24s; }
.fullscreen-menu.open .menu-nav a:nth-child(4) { transition-delay: 0.30s; }
.fullscreen-menu.open .menu-nav a:nth-child(5) { transition-delay: 0.36s; }
.fullscreen-menu.open .menu-nav a:nth-child(6) { transition-delay: 0.42s; }
.menu-nav a::before { content: ''; width: 0; height: 1px; background: var(--dourado); transition: width 0.4s ease; display: inline-block; }
.menu-nav a:hover { color: var(--areia); }
.menu-nav a:hover::before { width: 28px; }
.menu-nav a.active-link { color: var(--dourado); }

.menu-footer {
    position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 40px; opacity: 0; transition: opacity 0.5s ease 0.5s; white-space: nowrap;
}
.fullscreen-menu.open .menu-footer { opacity: 1; }
.menu-footer span { font-size: 0.55rem; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: rgba(204, 199, 192, 0.2); font-family: 'Sofia Pro', sans-serif; }
.menu-footer a { color: rgba(204, 199, 192, 0.2); text-decoration: none; font-family: 'Sofia Pro', sans-serif; font-size: 0.55rem; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; transition: color 0.2s; }
.menu-footer a:hover { color: var(--dourado); }

/* ——— FOOTER ——— */
.main-footer {
    background: var(--noite);
    padding: 80px 0 0;
    border-top: 1px solid rgba(206, 173, 132, 0.15);
}
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 64px; padding-bottom: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-logo-col .footer-logo-img { height: 52px; width: auto; margin-bottom: 16px; display: block; }
.footer-logo-col .footer-tagline { font-size: 0.55rem; letter-spacing: 3px; color: var(--dourado); text-transform: uppercase; margin-bottom: 24px; font-family: 'Sofia Pro', sans-serif; }
.footer-logo-col p { font-size: 0.75rem; font-weight: 300; color: rgba(204, 199, 192, 0.4); line-height: 1.9; max-width: 260px; font-family: 'Sofia Pro', sans-serif; }
.footer-col h5 { font-size: 0.58rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--dourado); margin-bottom: 28px; padding-bottom: 12px; border-bottom: 1px solid rgba(206, 173, 132, 0.15); font-family: 'Sofia Pro', sans-serif; }
.footer-col p, .footer-col address { font-size: 0.75rem; font-weight: 300; color: rgba(204, 199, 192, 0.4); line-height: 2; font-style: normal; font-family: 'Sofia Pro', sans-serif; }
.newsletter-col h5 { font-size: 0.58rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--dourado); margin-bottom: 28px; padding-bottom: 12px; border-bottom: 1px solid rgba(206, 173, 132, 0.15); font-family: 'Sofia Pro', sans-serif; }
.newsletter-col p { font-size: 0.72rem; font-weight: 300; color: rgba(204, 199, 192, 0.35); line-height: 1.8; margin-bottom: 20px; font-family: 'Sofia Pro', sans-serif; }
.newsletter-row { display: flex; }
.newsletter-input {
    flex: 1; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1); border-right: none;
    padding: 12px 16px; font-family: 'Sofia Pro', sans-serif;
    font-size: 0.7rem; color: var(--areia); outline: none; transition: border-color 0.3s;
}
.newsletter-input::placeholder { color: rgba(204,199,192,0.2); }
.newsletter-input:focus { border-color: var(--dourado); }
.newsletter-btn { background: var(--terracota); border: none; padding: 12px 20px; cursor: pointer; transition: background 0.3s; }
.newsletter-btn:hover { background: var(--dourado); }
.newsletter-btn svg { width: 16px; height: 16px; stroke: var(--areia); stroke-width: 2; fill: none; display: block; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; }
.footer-copy { font-size: 0.62rem; color: rgba(204, 199, 192, 0.2); letter-spacing: 0.5px; font-family: 'Sofia Pro', sans-serif; }
.footer-copy span { color: var(--dourado); }

/* wpp-float definido no footer.php */

/* ——— TOAST ——— */
.toast {
    position: fixed; bottom: 100px; right: 32px;
    background: var(--noite); color: var(--areia);
    padding: 14px 24px 14px 20px;
    font-size: 0.7rem; font-weight: 400; letter-spacing: 0.3px;
    font-family: 'Sofia Pro', sans-serif;
    z-index: 1000; pointer-events: none;
    opacity: 0; transform: translateY(8px);
    transition: all 0.25s ease;
    border-left: 2px solid var(--dourado); max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ——— RESPONSIVE ——— */
@media (max-width: 768px) {
    .header-inner { padding: 0 24px; }
    .main-header { height: 68px; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; padding: 0 24px 40px; }
    .footer-inner { padding: 0; }
    .footer-bottom { padding: 24px; flex-direction: column; gap: 12px; text-align: center; }

    /* Menu mobile — fonte menor para caber na tela */
    .menu-nav a {
        font-size: 36px;
        padding: 6px 32px;
        letter-spacing: 0;
    }
    .menu-footer { gap: 20px; flex-wrap: wrap; justify-content: center; bottom: 24px; }
}

@media (max-width: 375px) {
    .menu-nav a { font-size: 28px; padding: 5px 24px; }
}
