/**
 * Palmerio 1932 Child — stili custom.
 */

/* --------------------------------------------------------------------------
   Font faces
   -------------------------------------------------------------------------- */

@font-face {
    font-family: "Cormorant";
    src: url("../fonts/Cormorant-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
    --palmerio-font-heading: "Cormorant", Georgia, "Times New Roman", serif;
    --palmerio-font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --palmerio-color-navy: #1a2744;
    --palmerio-color-text: #2c2c2c;
    --palmerio-color-muted: #6b6b6b;
    --palmerio-color-bg: #f5f5f3;
    --palmerio-color-border: #e0e0dc;
    --palmerio-header-height: 7rem;
    --palmerio-header-utility-height: 2.5rem;
    --palmerio-color-sand: #EDE9DD;
    --palmerio-transition: 0.2s ease;
}

/* --------------------------------------------------------------------------
   Base typography
   -------------------------------------------------------------------------- */

body {
    font-family: var(--palmerio-font-body);
    color: var(--palmerio-color-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
.palmerio-heading {
    font-family: var(--palmerio-font-heading);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Header — override Storefront defaults
   -------------------------------------------------------------------------- */

.palmerio-custom-header .site-header {
    background-color: #fff;
    border: none;
    border-bottom: none;
    padding: 0;
    box-shadow: none;
}

.palmerio-custom-header .site-header .col-full {
    max-width: 1440px;
    padding-left: 2rem;
    padding-right: 2rem;
}

.palmerio-custom-header .site-header .col-full::before,
.palmerio-custom-header .site-header .col-full::after {
    display: none;
}

/* --------------------------------------------------------------------------
   Header layout
   -------------------------------------------------------------------------- */

.palmerio-header-wrap {
    display: flex;
    flex-direction: column;
}

.palmerio-header__utility {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: var(--palmerio-header-utility-height);
    padding: 0.5rem 0 0.25rem;
}

.palmerio-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--palmerio-header-height);
    padding: 0.5rem 0 1rem;
}

.palmerio-header__left {
    justify-self: start;
    width: 100%;
}

.palmerio-header__branding {
    justify-self: center;
    text-align: center;
}

.palmerio-header__branding h1 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.palmerio-header__right-group {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.palmerio-header__right-group > .palmerio-header__nav--right {
    width: 100%;
}

.palmerio-header__nav--right .palmerio-nav__list {
    justify-content: flex-end;
}

.palmerio-header__nav--left .palmerio-nav__list {
    justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.palmerio-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.palmerio-nav__list a {
    font-family: var(--palmerio-font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--palmerio-color-navy);
    white-space: nowrap;
    transition: opacity var(--palmerio-transition);
}

.palmerio-nav__list a:hover,
.palmerio-nav__list a:focus {
    opacity: 0.65;
}

.palmerio-nav__list .current-menu-item > a,
.palmerio-nav__list .current-menu-ancestor > a {
    opacity: 0.65;
}

.palmerio-nav__fallback {
    font-size: 0.75rem;
    color: var(--palmerio-color-muted);
    font-style: italic;
}

/* Header dropdown — desktop */
.palmerio-header .palmerio-header__nav .menu-item-has-children {
    position: relative;
}

.palmerio-header .palmerio-header__nav .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.palmerio-nav__caret {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.palmerio-nav__caret svg {
    width: 0.65rem;
    height: 0.65rem;
    stroke: currentColor;
}

.palmerio-header .palmerio-header__nav .menu-item-has-children > ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    display: block;
    min-width: 12rem;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid var(--palmerio-color-border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0.25rem);
    transition: opacity var(--palmerio-transition), visibility var(--palmerio-transition), transform var(--palmerio-transition);
}

.palmerio-header .palmerio-header__nav .menu-item-has-children > ul > li {
    list-style: none;
}

.palmerio-header .palmerio-header__nav--right .menu-item-has-children > ul {
    right: 0;
    left: auto;
}

.palmerio-header .palmerio-header__nav .menu-item-has-children:hover > ul,
.palmerio-header .palmerio-header__nav .menu-item-has-children:focus-within > ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.palmerio-header .palmerio-header__nav .menu-item-has-children > ul a {
    display: block;
    padding: 0.65rem 1.25rem;
    white-space: nowrap;
}

.palmerio-header .palmerio-header__nav .menu-item-has-children > ul .current-menu-item > a,
.palmerio-header .palmerio-header__nav .menu-item-has-children > ul .current-menu-ancestor > a {
    opacity: 0.65;
}

/* Header dropdown — mobile burger panel */
.palmerio-mobile-nav .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.palmerio-mobile-nav .palmerio-nav__caret svg {
    width: 0.6rem;
    height: 0.6rem;
}

.palmerio-mobile-nav .menu-item-has-children > ul {
    position: static;
    display: block;
    margin: 0.5rem 0 0;
    padding: 0 0 0 1rem;
    list-style: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: 0;
    background: transparent;
}

.palmerio-mobile-nav .menu-item-has-children > ul > li {
    list-style: none;
}

.palmerio-mobile-nav .menu-item-has-children > ul a {
    display: block;
    padding: 0.35rem 0;
}

@media (max-width: 1024px) {
    .palmerio-header .palmerio-header__nav .menu-item-has-children > ul {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .palmerio-header .palmerio-header__nav .menu-item-has-children > ul {
        transition: none;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Branding placeholder
   -------------------------------------------------------------------------- */

.palmerio-branding {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--palmerio-color-navy);
}

.palmerio-branding__logo {
    display: block;
    width: auto;
    height: 5.75rem;
    max-width: 100%;
}

/* --------------------------------------------------------------------------
   Header icons
   -------------------------------------------------------------------------- */

.palmerio-header__icons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.palmerio-header__icons.palmerio-header__icons--mobile-cart {
    display: none;
}

.palmerio-header__icon-btn,
.palmerio-header__icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--palmerio-color-navy);
    text-decoration: none;
    cursor: pointer;
    transition: opacity var(--palmerio-transition);
}

.palmerio-header__icon-btn:hover,
.palmerio-header__icon-btn:focus,
.palmerio-header__icon-link:hover,
.palmerio-header__icon-link:focus {
    opacity: 0.65;
}

.palmerio-header__icon-btn svg,
.palmerio-header__icon-link svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
}

.palmerio-header__cart {
    position: relative;
}

.palmerio-cart-count {
    position: absolute;
    top: -0.15rem;
    right: -0.35rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background-color: var(--palmerio-color-navy);
    color: #fff;
    font-family: var(--palmerio-font-body);
    font-size: 0.5625rem;
    font-weight: 600;
    line-height: 1rem;
    text-align: center;
}

.palmerio-cart-count:empty,
.palmerio-cart-count[data-count="0"] {
    display: none;
}

/* --------------------------------------------------------------------------
   Search panel
   -------------------------------------------------------------------------- */

.palmerio-search-panel {
    display: none;
    border-top: 1px solid var(--palmerio-color-border);
    background-color: var(--palmerio-color-bg);
    padding: 1rem 0 1.25rem;
}

.palmerio-search-panel.is-open {
    display: block;
}

.palmerio-search-panel .col-full {
    max-width: 1440px;
    padding-left: 2rem;
    padding-right: 2rem;
}

.palmerio-search-panel .woocommerce-product-search {
    display: flex;
    gap: 0.75rem;
    max-width: 36rem;
    margin: 0 auto;
}

.palmerio-search-panel .woocommerce-product-search label {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

.palmerio-search-panel .woocommerce-product-search .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--palmerio-color-border);
    border-radius: 0;
    font-family: var(--palmerio-font-body);
    font-size: 0.875rem;
    background: #fff;
}

.palmerio-search-panel .woocommerce-product-search button {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--palmerio-color-navy);
    background: var(--palmerio-color-navy);
    color: #fff;
    font-family: var(--palmerio-font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

/* --------------------------------------------------------------------------
   Mobile navigation
   -------------------------------------------------------------------------- */

.palmerio-header__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--palmerio-color-navy);
    cursor: pointer;
}

.palmerio-header__menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.palmerio-mobile-nav {
    display: none;
    border-top: 1px solid var(--palmerio-color-border);
    background-color: var(--palmerio-color-bg);
    padding: 1.5rem 0 2rem;
}

.palmerio-mobile-nav.is-open {
    display: block;
}

.palmerio-mobile-nav .col-full {
    max-width: 1440px;
    padding-left: 2rem;
    padding-right: 2rem;
}

.palmerio-mobile-nav__section + .palmerio-mobile-nav__section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--palmerio-color-border);
}

.palmerio-mobile-nav .palmerio-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.palmerio-mobile-nav .palmerio-nav__list a {
    font-size: 0.75rem;
}

.palmerio-mobile-nav__search {
    margin-bottom: 1.25rem;
}

.palmerio-mobile-nav__search .woocommerce-product-search {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.palmerio-mobile-nav__search .woocommerce-product-search label {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

.palmerio-mobile-nav__search .woocommerce-product-search .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--palmerio-color-border);
    border-radius: 0;
    font-family: var(--palmerio-font-body);
    font-size: 0.875rem;
    background: #fff;
}

.palmerio-mobile-nav__search .woocommerce-product-search button {
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--palmerio-color-navy);
    background: var(--palmerio-color-navy);
    color: #fff;
    font-family: var(--palmerio-font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.palmerio-mobile-nav__account {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--palmerio-color-border);
}

.palmerio-mobile-nav__login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    padding: 0.85rem 2rem;
    border: 1px solid var(--palmerio-color-navy);
    background: transparent;
    color: var(--palmerio-color-navy);
    font-family: var(--palmerio-font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity var(--palmerio-transition);
}

.palmerio-mobile-nav__login-btn:hover,
.palmerio-mobile-nav__login-btn:focus {
    opacity: 0.65;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .palmerio-header__utility {
        display: none;
    }

    .palmerio-header {
        grid-template-columns: auto 1fr auto;
        gap: 0.75rem;
        padding: 0.75rem 0;
        min-height: 5rem;
    }

    .palmerio-header__left,
    .palmerio-header__right-group > .palmerio-header__nav--right {
        display: none;
    }

    .palmerio-header__menu-toggle {
        display: inline-flex;
        justify-self: start;
    }

    .palmerio-header__branding {
        justify-self: center;
    }

    .palmerio-header__right-group {
        justify-self: end;
        width: auto;
    }

    .palmerio-branding__logo {
        height: 3.75rem;
    }

    .palmerio-header__icons.palmerio-header__icons--mobile-cart {
        display: flex;
        gap: 0;
    }
}

@media (max-width: 782px) {
    .palmerio-custom-header .site-header .col-full {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .palmerio-search-panel .col-full,
    .palmerio-mobile-nav .col-full {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .palmerio-hero {
        height: clamp(220px, 48vh, 420px);
    }
}

/* --------------------------------------------------------------------------
   Homepage hero slider
   -------------------------------------------------------------------------- */

.palmerio-homepage #masthead,
.palmerio-homepage .site-header {
    margin-bottom: 0;
}

.palmerio-homepage .palmerio-hero {
    margin-top: 0;
}

.palmerio-homepage .site-content {
    padding-top: 0;
    margin-top: 0;
}

.palmerio-homepage .entry-header,
.palmerio-homepage .entry-title {
    display: none;
}

.palmerio-homepage .hentry {
    margin-bottom: 0;
}

.palmerio-homepage .entry-content:empty {
    display: none;
}

.palmerio-hero {
    position: relative;
    width: 100%;
    height: clamp(280px, 62vh, 640px);
    overflow: hidden;
    background-color: #000;
}

.palmerio-hero__slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.palmerio-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.palmerio-hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.palmerio-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (prefers-reduced-motion: reduce) {
    .palmerio-hero__slide {
        transition: none;
    }
}

/* --------------------------------------------------------------------------
   Homepage story grids
   -------------------------------------------------------------------------- */

.palmerio-home-story {
    background-color: #fff;
}

.palmerio-home-story__title {
    margin: 0;
    padding: clamp(2.5rem, 5vw, 4rem) 1.5rem clamp(1rem, 2vw, 1.5rem);
    font-family: var(--palmerio-font-heading);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    color: var(--palmerio-color-navy);
}

.palmerio-home-story__blocks {
    display: flex;
    flex-direction: column;
}

.palmerio-story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    height: clamp(320px, 42vw, 520px);
    min-height: clamp(320px, 42vw, 520px);
}

.palmerio-story-block__media {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.palmerio-story-block__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center;
}

.palmerio-story-block__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.25rem;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: clamp(2rem, 5vw, 4rem);
    background-color: var(--palmerio-color-sand);
    text-align: left;
}

.palmerio-story-block__title {
    margin: 0;
    font-family: var(--palmerio-font-heading);
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--palmerio-color-navy);
}

.palmerio-story-block__text {
    max-width: 28rem;
    margin: 0;
    font-family: var(--palmerio-font-body);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--palmerio-color-navy);
}

.palmerio-story-block__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12rem;
    padding: 0.85rem 1.75rem;
    border: 1px solid var(--palmerio-color-navy);
    background: transparent;
    color: var(--palmerio-color-navy);
    font-family: var(--palmerio-font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity var(--palmerio-transition);
}

.palmerio-story-block__button:hover,
.palmerio-story-block__button:focus {
    opacity: 0.65;
}

.palmerio-story-block--reverse .palmerio-story-block__media {
    order: 2;
}

.palmerio-story-block--reverse .palmerio-story-block__content {
    order: 1;
}

@media (max-width: 782px) {
    .palmerio-story-block,
    .palmerio-story-block--reverse {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .palmerio-story-block__media,
    .palmerio-story-block__content,
    .palmerio-story-block--reverse .palmerio-story-block__media,
    .palmerio-story-block--reverse .palmerio-story-block__content {
        order: unset;
    }

    .palmerio-story-block__image {
        position: static;
        min-height: 16rem;
    }

    .palmerio-home-story__title {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* --------------------------------------------------------------------------
   Footer custom
   -------------------------------------------------------------------------- */

.palmerio-custom-footer .site-footer {
    background-color: #fff;
    border-top: 1px solid var(--palmerio-color-border);
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
    color: var(--palmerio-color-navy);
}

.palmerio-custom-footer .site-footer .col-full {
    max-width: none;
    padding-left: clamp(1rem, 4vw, 2.5rem);
    padding-right: clamp(1rem, 4vw, 2.5rem);
}

.palmerio-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2rem);
    text-align: center;
}

.palmerio-footer__branding-link {
    display: inline-flex;
    line-height: 0;
}

.palmerio-footer__logo {
    display: block;
    width: clamp(5rem, 10vw, 6.5rem);
    height: auto;
}

.palmerio-footer__nav,
.palmerio-footer__legal {
    width: 100%;
}

.palmerio-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.75rem;
}

.palmerio-footer__nav-list,
.palmerio-footer__legal-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.palmerio-footer__nav-list a,
.palmerio-footer__legal-list a {
    display: inline-block;
    color: var(--palmerio-color-navy);
    font-family: var(--palmerio-font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-decoration: none;
    text-transform: uppercase;
    transition: opacity var(--palmerio-transition);
}

.palmerio-footer__nav-list a:hover,
.palmerio-footer__nav-list a:focus,
.palmerio-footer__legal-list a:hover,
.palmerio-footer__legal-list a:focus {
    opacity: 0.65;
}

.palmerio-footer__legal-list a {
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: none;
    color: var(--palmerio-color-muted);
}

.palmerio-footer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
    max-width: 64rem;
    margin: 0;
    font-family: var(--palmerio-font-body);
    font-size: 0.6875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--palmerio-color-muted);
}

.palmerio-footer__meta-sep {
    color: var(--palmerio-color-border);
}

@media (max-width: 782px) {
    .palmerio-footer__nav {
        gap: 0.75rem 1.25rem;
    }

    .palmerio-footer__nav-list,
    .palmerio-footer__legal-list {
        gap: 0.5rem 1.25rem;
    }

    .palmerio-footer__meta {
        flex-direction: column;
        gap: 0.35rem;
    }

    .palmerio-footer__meta-sep {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Collezione Lavs Vitae — hero archivio
   -------------------------------------------------------------------------- */

.palmerio-collection .woocommerce-products-header,
.palmerio-collection .storefront-sorting {
    display: none;
}

.palmerio-collection .site-content {
    padding-top: 0;
}

.palmerio-collection .col-full {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.palmerio-collection-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    height: clamp(320px, 42vw, 520px);
    min-height: clamp(320px, 42vw, 520px);
}

.palmerio-collection-hero__media {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.palmerio-collection-hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.palmerio-collection-hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    height: 100%;
    padding: clamp(2rem, 5vw, 4rem);
    background-color: #fff;
    text-align: center;
}

.palmerio-collection-hero__pictogram {
    display: block;
    width: clamp(2.5rem, 4vw, 3.25rem);
    height: auto;
}

.palmerio-collection-hero__title {
    margin: 0;
    font-family: var(--palmerio-font-heading);
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--palmerio-color-navy);
}

.palmerio-collection-hero__text {
    max-width: 28rem;
    margin: 0;
    font-family: var(--palmerio-font-body);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 400;
    line-height: 1.7;
    color: var(--palmerio-color-navy);
}

.palmerio-collection .woocommerce-result-count,
.palmerio-collection .woocommerce-ordering,
.palmerio-collection .woocommerce-pagination {
    display: none;
}

.palmerio-collection .site-main {
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}

.palmerio-collection ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.palmerio-collection ul.products::before,
.palmerio-collection ul.products::after {
    display: none;
}

.palmerio-collection ul.products li.product {
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
    clear: none;
}

/* --------------------------------------------------------------------------
   Card prodotto Palmerio (globale)
   -------------------------------------------------------------------------- */

ul.products li.palmerio-product-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    float: none;
    clear: none;
    background-color: #fff;
}

/* Override Storefront float/width percentuale (specificità matching) */
.storefront-full-width-content .site-main ul.products.columns-4 li.palmerio-product-card,
.site-main ul.products.columns-4 li.palmerio-product-card,
.woocommerce ul.products.columns-4 li.palmerio-product-card,
.palmerio-collection ul.products.columns-4 li.product {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    float: none;
    clear: none;
    margin: 0;
}

.storefront-full-width-content .site-main ul.products.columns-3 li.palmerio-product-card,
.site-main ul.products.columns-3 li.palmerio-product-card,
.woocommerce ul.products.columns-3 li.palmerio-product-card,
.palmerio-collection ul.products.columns-3 li.product {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    float: none;
    clear: none;
    margin: 0;
}

.storefront-full-width-content .site-main ul.products.columns-2 li.palmerio-product-card,
.site-main ul.products.columns-2 li.palmerio-product-card,
.woocommerce ul.products.columns-2 li.palmerio-product-card,
.palmerio-collection ul.products.columns-2 li.product {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    float: none;
    clear: none;
    margin: 0;
}

.palmerio-product-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-self: stretch;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.palmerio-product-card__image {
    display: block;
    width: 100%;
    align-self: stretch;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #fff;
}

.palmerio-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.palmerio-product-card__title {
    width: 100%;
    align-self: stretch;
    margin: 1rem 0 0.75rem;
    font-family: var(--palmerio-font-body);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    color: var(--palmerio-color-navy);
}

.palmerio-product-card__actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    align-self: stretch;
    min-height: 2.75rem;
    margin-top: auto;
}

.palmerio-product-card__price {
    font-family: var(--palmerio-font-body);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    color: var(--palmerio-color-navy);
    transition: opacity 0.25s ease;
}

.palmerio-product-card__price .woocommerce-Price-amount {
    font-weight: 400;
}

.palmerio-product-card__cta {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--palmerio-color-navy);
    background: transparent;
    color: var(--palmerio-color-navy);
    font-family: var(--palmerio-font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.palmerio-product-card__link:hover .palmerio-product-card__price,
.palmerio-product-card__link:focus .palmerio-product-card__price,
.palmerio-product-card__link:focus-within .palmerio-product-card__price {
    opacity: 0;
}

.palmerio-product-card__link:hover .palmerio-product-card__cta,
.palmerio-product-card__link:focus .palmerio-product-card__cta,
.palmerio-product-card__link:focus-within .palmerio-product-card__cta {
    opacity: 1;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    width: 100%;
    margin: 0;
    padding: 0;
    float: none;
    clear: none;
}

@media (max-width: 1024px) {
    .woocommerce ul.products,
    .palmerio-collection ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .palmerio-collection-hero {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .palmerio-collection-hero__image {
        position: static;
        width: 100%;
        min-height: 16rem;
        object-fit: cover;
    }
}

@media (max-width: 782px) {
    .palmerio-collection-hero,
    .woocommerce ul.products,
    .palmerio-collection ul.products {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .palmerio-product-card__price,
    .palmerio-product-card__cta {
        transition: none;
    }

    .palmerio-product-card__link:hover .palmerio-product-card__price,
    .palmerio-product-card__link:focus .palmerio-product-card__price,
    .palmerio-product-card__link:focus-within .palmerio-product-card__price {
        opacity: 1;
    }

    .palmerio-product-card__link:hover .palmerio-product-card__cta,
    .palmerio-product-card__link:focus .palmerio-product-card__cta,
    .palmerio-product-card__link:focus-within .palmerio-product-card__cta {
        opacity: 1;
    }
}
