/* =========================================================
   pARTE da TE · MEGA MENU DESKTOP · V26
   Solo desktop (>1100px). Tablet e mobile restano invariati.
========================================================= */

.pdt-mega-wrap { position: relative; display: flex; align-items: center; }
.pdt-mega-wrap > .pdt-mega-products-link { display: inline-flex; align-items: center; gap: 6px; }
.pdt-mega-wrap > .pdt-mega-products-link::before {
    content: "";
    width: 5px;
    height: 5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    order: 2;
    opacity: .62;
    transition: transform .25s ease, opacity .25s ease;
}

.pdt-mega-panel { display: none; }

@media (min-width: 1101px) {
    .site-header { overflow: visible; }

    .pdt-mega-wrap::after {
        content: "";
        position: absolute;
        left: -18px;
        right: -18px;
        top: 100%;
        height: 24px;
    }

    .pdt-mega-panel {
        display: block;
        position: fixed;
        z-index: 1100;
        left: 50%;
        top: 87px;
        width: min(1320px, calc(100vw - 40px));
        padding: 10px;
        border: 1px solid rgba(52,40,32,.08);
        border-radius: 30px;
        background: rgba(250,247,242,.98);
        box-shadow: 0 30px 90px rgba(37,27,23,.18), 0 2px 10px rgba(37,27,23,.05);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-50%, -10px) scale(.988);
        transform-origin: 50% 0;
        transition: opacity .22s ease, transform .28s cubic-bezier(.2,.75,.25,1), visibility .22s ease;
    }

    .site-header.scrolled .pdt-mega-panel { top: 87px; }

    .pdt-mega-wrap:hover .pdt-mega-panel,
    .pdt-mega-wrap:focus-within .pdt-mega-panel,
    .pdt-mega-wrap.is-open .pdt-mega-panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0) scale(1);
    }

    .pdt-mega-wrap:hover > .pdt-mega-products-link,
    .pdt-mega-wrap:focus-within > .pdt-mega-products-link,
    .pdt-mega-wrap.is-open > .pdt-mega-products-link { color: var(--copper); }

    .pdt-mega-wrap:hover > .pdt-mega-products-link::before,
    .pdt-mega-wrap:focus-within > .pdt-mega-products-link::before,
    .pdt-mega-wrap.is-open > .pdt-mega-products-link::before {
        transform: rotate(225deg) translate(-1px,-1px);
        opacity: 1;
    }

    .pdt-mega-shell {
        position: relative;
        overflow: hidden;
        border-radius: 22px;
        background:
            radial-gradient(circle at 90% 10%, rgba(210,157,131,.17), transparent 29%),
            linear-gradient(135deg, #fffdfa 0%, #f7f0e8 100%);
    }

    .pdt-mega-shell::before {
        content: "A";
        position: absolute;
        z-index: 0;
        right: 34%;
        top: -112px;
        font-family: "Playfair Display", serif;
        font-size: 360px;
        font-weight: 600;
        font-style: italic;
        line-height: 1;
        color: rgba(182,120,89,.035);
        pointer-events: none;
    }

    .pdt-mega-main {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(390px, 1.18fr) minmax(210px, .64fr) minmax(310px, .92fr);
        gap: 18px;
        padding: 24px 24px 18px;
    }

    .pdt-mega-section { min-width: 0; }

    .pdt-mega-eyebrow {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 13px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .15em;
        text-transform: uppercase;
        color: var(--copper);
    }

    .pdt-mega-eyebrow::before {
        content: "";
        width: 22px;
        height: 1px;
        background: currentColor;
        opacity: .55;
    }

    .pdt-mega-products {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 7px;
    }

    .pdt-mega-product {
        position: relative;
        display: grid !important;
        grid-template-columns: 48px minmax(0,1fr) 20px;
        align-items: center;
        gap: 10px;
        min-height: 62px;
        padding: 7px 9px !important;
        border: 1px solid rgba(52,40,32,.065);
        border-radius: 16px;
        background: rgba(255,255,255,.58);
        color: var(--brown) !important;
        transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease !important;
    }

    .pdt-mega-product::after { display: none !important; }

    .pdt-mega-product:hover,
    .pdt-mega-product:focus-visible,
    .pdt-mega-product.is-current {
        transform: translateY(-2px);
        border-color: rgba(182,120,89,.30);
        background: #fff;
        box-shadow: 0 10px 24px rgba(52,40,32,.075);
    }

    .pdt-mega-product-thumb {
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        overflow: hidden;
        border-radius: 13px;
        background: linear-gradient(145deg, #f5eee6, #fff);
    }

    .pdt-mega-product-thumb img {
        width: 88%;
        height: 88%;
        object-fit: contain;
        filter: drop-shadow(0 5px 6px rgba(52,40,32,.08));
    }

    .pdt-mega-product-copy { min-width: 0; }
    .pdt-mega-product-name {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12.5px;
        line-height: 1.25;
        font-weight: 650;
        letter-spacing: .005em;
    }
    .pdt-mega-product-meta {
        display: block;
        margin-top: 3px;
        font-size: 9px;
        line-height: 1.2;
        letter-spacing: .09em;
        text-transform: uppercase;
        color: rgba(103,83,72,.68);
    }
    .pdt-mega-product-arrow {
        font-size: 16px;
        color: var(--copper);
        transform: translateX(-2px);
        transition: transform .2s ease;
    }
    .pdt-mega-product:hover .pdt-mega-product-arrow { transform: translateX(2px); }

    .pdt-mega-all {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
        padding: 0 !important;
        font-size: 11px !important;
        font-weight: 650 !important;
        letter-spacing: .05em !important;
        color: var(--brown) !important;
    }
    .pdt-mega-all::after { display: none !important; }
    .pdt-mega-all span { color: var(--copper); transition: transform .2s ease; }
    .pdt-mega-all:hover span { transform: translateX(4px); }

    .pdt-mega-discover {
        height: 100%;
        padding: 2px 6px 0 4px;
        border-left: 1px solid rgba(52,40,32,.075);
        padding-left: 22px;
    }

    .pdt-mega-discover-list { display: grid; gap: 3px; }
    .pdt-mega-discover-link {
        display: grid !important;
        grid-template-columns: 31px minmax(0,1fr);
        align-items: center;
        gap: 10px;
        padding: 8px 7px !important;
        border-radius: 12px;
        color: var(--brown) !important;
        transition: background .2s ease, transform .2s ease !important;
    }
    .pdt-mega-discover-link::after { display: none !important; }
    .pdt-mega-discover-link:hover { background: rgba(255,255,255,.68); transform: translateX(2px); }
    .pdt-mega-discover-icon {
        width: 31px;
        height: 31px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(182,120,89,.20);
        border-radius: 50%;
        background: rgba(182,120,89,.06);
        color: var(--copper);
    }
    .pdt-mega-discover-icon svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.65;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .pdt-mega-discover-link b { display: block; font-size: 11.5px; line-height: 1.2; font-weight: 650; }
    .pdt-mega-discover-link small { display: block; margin-top: 2px; font-size: 9.5px; line-height: 1.25; color: rgba(103,83,72,.70); }


    .pdt-mega-chat-link {
        margin-top: 2px;
        background: linear-gradient(90deg, rgba(182,120,89,.08), rgba(255,255,255,.46));
        border: 1px solid rgba(182,120,89,.13);
    }
    .pdt-mega-chat-link:hover {
        border-color: rgba(182,120,89,.28);
        background: rgba(255,255,255,.88);
    }
    .pdt-mega-chat-link .pdt-mega-discover-icon {
        background: var(--brown);
        border-color: var(--brown);
        color: #fff;
    }
    .pdt-mega-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
    .pdt-mega-tag {
        padding: 5px 8px;
        border: 1px solid rgba(52,40,32,.07);
        border-radius: 999px;
        background: rgba(255,255,255,.48);
        font-size: 8.5px;
        font-weight: 650;
        letter-spacing: .075em;
        text-transform: uppercase;
        color: rgba(52,40,32,.72);
    }

    .pdt-mega-feature {
        position: relative;
        min-height: 300px;
        overflow: hidden;
        isolation: isolate;
        border-radius: 22px;
        background:
            radial-gradient(circle at 72% 27%, rgba(210,157,131,.40), transparent 27%),
            linear-gradient(145deg, #3a2b23 0%, #241a16 100%);
        color: white;
        box-shadow: inset 0 1px rgba(255,255,255,.08);
    }

    .pdt-mega-feature::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(90deg, rgba(24,19,16,.88) 0%, rgba(24,19,16,.54) 43%, rgba(24,19,16,.02) 80%);
    }

    .pdt-mega-feature-mark {
        position: absolute;
        right: -18px;
        top: -30px;
        width: 205px;
        opacity: .055;
        filter: brightness(0) invert(1);
        transform: rotate(-7deg);
        pointer-events: none;
    }

    .pdt-mega-feature-product {
        position: absolute;
        z-index: -2;
        right: -7px;
        bottom: -8px;
        width: 57%;
        height: 88%;
        object-fit: contain;
        object-position: center bottom;
        filter: drop-shadow(0 20px 18px rgba(0,0,0,.30));
        transform: translate3d(0,0,0) scale(1);
        opacity: .97;
        transition: opacity .18s ease, transform .30s cubic-bezier(.2,.75,.25,1);
    }
    .pdt-mega-feature.is-switching .pdt-mega-feature-product { opacity: 0; transform: translate3d(10px,5px,0) scale(.96); }

    .pdt-mega-feature-copy {
        position: absolute;
        z-index: 2;
        left: 22px;
        bottom: 22px;
        width: 58%;
    }
    .pdt-mega-feature-kicker {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        margin-bottom: 9px;
        font-size: 8.5px;
        font-weight: 700;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: #e4b39b;
    }
    .pdt-mega-feature-kicker::before { content:""; width: 18px; height: 1px; background: currentColor; }
    .pdt-mega-feature h3 {
        margin: 0 0 8px;
        font-family: "Playfair Display", serif;
        font-size: clamp(25px, 2vw, 34px);
        line-height: .98;
        font-weight: 500;
        letter-spacing: -.025em;
    }
    .pdt-mega-feature h3 em { color: #d9a184; font-weight: 500; }
    .pdt-mega-feature p {
        max-width: 270px;
        margin: 0 0 14px;
        font-size: 10px;
        line-height: 1.55;
        color: rgba(255,255,255,.74);
    }
    .pdt-mega-feature-cta {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        padding: 0 !important;
        font-size: 10px !important;
        font-weight: 650 !important;
        letter-spacing: .08em !important;
        text-transform: uppercase;
        color: white !important;
    }
    .pdt-mega-feature-cta::after { display: none !important; }
    .pdt-mega-feature-cta span { color: #d9a184; transition: transform .2s ease; }
    .pdt-mega-feature-cta:hover span { transform: translateX(4px); }

    .pdt-mega-flow {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: auto repeat(3, minmax(0,1fr)) auto;
        align-items: center;
        gap: 0;
        min-height: 64px;
        margin: 0 10px 10px;
        overflow: hidden;
        border: 1px solid rgba(52,40,32,.06);
        border-radius: 17px;
        background: rgba(255,255,255,.62);
    }
    .pdt-mega-flow-title {
        padding: 0 19px;
        font-family: "Playfair Display", serif;
        font-size: 16px;
        font-style: italic;
        white-space: nowrap;
        color: var(--brown);
    }
    .pdt-mega-step {
        position: relative;
        display: grid;
        grid-template-columns: 25px minmax(0,1fr);
        gap: 8px;
        align-items: center;
        min-height: 40px;
        padding: 0 15px;
        border-left: 1px solid rgba(52,40,32,.065);
    }
    .pdt-mega-step span {
        font-family: "Playfair Display", serif;
        font-size: 17px;
        font-style: italic;
        color: var(--copper);
    }
    .pdt-mega-step b { display:block; font-size: 10.5px; line-height:1.2; font-weight:650; }
    .pdt-mega-step small { display:block; margin-top:2px; font-size:8.5px; line-height:1.2; color:rgba(103,83,72,.66); }
    .pdt-mega-flow-link {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        min-width: 126px;
        padding: 0 17px !important;
        background: var(--brown);
        color: white !important;
        font-size: 9px !important;
        font-weight: 650 !important;
        letter-spacing: .085em !important;
        text-transform: uppercase;
        transition: background .2s ease !important;
    }
    .pdt-mega-flow-link::after { display:none !important; }
    .pdt-mega-flow-link:hover { background: var(--copper); }

    @media (max-width: 1220px) {
        .pdt-mega-main { grid-template-columns: minmax(370px, 1.18fr) minmax(190px,.60fr) minmax(280px,.82fr); padding-inline: 20px; gap: 14px; }
        .pdt-mega-product { grid-template-columns: 43px minmax(0,1fr) 16px; gap: 8px; }
        .pdt-mega-product-thumb { width:43px; height:43px; }
        .pdt-mega-discover { padding-left: 16px; }
        .pdt-mega-feature-copy { left:18px; bottom:18px; }
        .pdt-mega-flow-title { display:none; }
        .pdt-mega-flow { grid-template-columns: repeat(3,minmax(0,1fr)) auto; }
        .pdt-mega-step:first-of-type { border-left:0; }
    }
}

@media (max-width: 1100px) {
    .pdt-mega-wrap { display: contents; }
    .pdt-mega-panel { display: none !important; }
    .pdt-mega-wrap > .pdt-mega-products-link::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .pdt-mega-panel,
    .pdt-mega-product,
    .pdt-mega-feature-product,
    .pdt-mega-product-arrow,
    .pdt-mega-feature-cta span { transition: none !important; }
}
