:root {
    --ink: #27302f;
    --muted: #6f7d78;
    --line: #d9ddcf;
    --bg: #f3dfaf;
    --panel: #e0cb8c;
    --sand: #e6d4b4;
    --foam: #eef8f5;
    --water: #9fc8c5;
    --water-deep: #507b78;
    --accent: #b6905f;
    --accent-dark: #77613f;
    --rose: #9f2f23;
    --shadow: 0 18px 54px rgba(61, 87, 82, .12);
    --card: #e6d4b4;;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f8fbf8 0, var(--bg) 46%, #f3eadb 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif
}

button,
input {
    font: inherit
}

button {
    cursor: pointer
}

a {
    color: inherit
}

.topbar {
    align-items: center;
    background-color: var(--sand);
    border-bottom: 1px solid rgba(159, 200, 197, .34);
    display: flex;
    height: 72px;
    justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 48px);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 20;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px)
}

.brand {
    color: var(--ink);
    font-size: 18px;
    font-weight: 760;
    gap: 12px;
    text-decoration: none;
    white-space: nowrap;
    margin-right: 30px;
}

.brand,
.brand-mark {
    align-items: center;
    display: inline-flex
}

.brand-mark {
    height: 60px;
}

.site-nav {
    flex: 2;
    align-items: center;
    display: flex;
    gap: 28px
}

.dropdown-menu a,
.site-nav a {
    color: var(--muted);
    font-size: 16px;
    font-weight: 650;
    text-decoration: none
}

.dropdown-menu a:hover,
.site-nav a:hover {
    color: var(--accent)
}

.nav-actions,
.nav-dropdown {
    align-items: center;
    display: flex;
    position: relative
}

.menu-toggle,
.nav-select,
.primary,
.secondary {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    gap: 8px;
    justify-content: center
}

.menu-toggle,
.nav-select {
    background: transparent;
    border: 1px solid rgba(80, 123, 120, .28);
    color: var(--ink);
    min-height: 40px;
    padding: 0 12px
}

.menu-toggle {
    display: none;
    width: 42px
}

.dropdown-menu {
    background: var(--sand);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    gap: 4px;
    min-width: 190px;
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px)
}

.dropdown-menu.is-open {
    display: grid
}

.dropdown-menu a {
    border-radius: 6px;
    padding: 11px 12px
}

.dropdown-menu a:hover {
    background: var(--foam)
}

.hero {
    color: #fff;
    min-height: calc(100vh - 72px);
    padding: clamp(76px, 10vw, 138px) clamp(18px, 5vw, 72px) clamp(104px, 12vw, 150px);
    display: flex;
    align-items: center;
}

.heritage-hero {
    background:
        url("/Paestum%20Heritage%20Images/about/heroimage.webp") no-repeat center/cover;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.heritage-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(39, 48, 47, 0.65) 0%,
            rgba(39, 48, 47, 0.45) 30%,
            rgba(39, 48, 47, 0.15) 60%,
            rgba(39, 48, 47, 0) 100%);
    z-index: 1;
}

.heritage-hero {
    position: relative;
}

.hero-copy {
    max-width: 600px;
    position: relative;
    z-index: 2;

}

.hero h1,
.intro-section h2,
.section-heading h2 {
    font-family: Georgia, Times New Roman, serif;
    font-weight: 500;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero h1 {
    font-size: clamp(44px, 8vw, 94px);
    line-height: .98;
    margin: 0 0 22px
}

.hero p {
    color: rgba(255, 253, 247, .93);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.65;
    margin: 0;
    max-width: 660px
}

.eyebrow {
    color: var(--accent);
    font-size: 12px !important;
    font-weight: 820;
    letter-spacing: 0;
    margin: 0 0 14px;
    text-transform: uppercase
}

.hero .eyebrow {
    color: #effbf8
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px
}

.primary,
.secondary {
    border: 0;
    min-height: 46px;
    padding: 0 18px;
    text-decoration: none
}

.primary {
    background: var(--accent);
    color: #fff
}

.secondary {
    background: rgba(255, 253, 247, .14);
    border: 1px solid rgba(255, 253, 247, .58);
    color: #fff
}

.primary:hover {
    background-color: var(--accent-dark);
}

.intro-section {
    align-items: flex-end;
    display: grid;
    grid-gap: 28px;
    gap: 28px;
    grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
    margin: 0 auto;
    max-width: 1240px;
    padding: clamp(52px, 8vw, 88px) clamp(18px, 4vw, 32px) 32px
}

.intro-section h2 {
    font-size: clamp(30px, 4.5vw, 56px);
    line-height: 1.08;
    margin: 0
}

.intro-section p:last-child,
.muted,
.section-heading p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.65
}

.intro-section p:last-child {
    font-size: 16px;
    margin: 0
}

.catalog-section {
    margin: 0 auto 64px;
    max-width: 1280px;
    padding: 32px clamp(18px, 4vw, 32px) 0
}

.section-heading {
    background: rgba(255, 253, 247, .86);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 24px
}

.section-heading h2 {
    font-size: 28px;
    margin: 0 0 8px
}

.section-heading p:not(.eyebrow) {
    margin: 0
}

.product-grid {
    display: grid;
    grid-gap: 16px;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr))
}

.product-card {
    background: #fffdf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    grid-gap: 10px;
    gap: 10px;
    padding: 14px;
    text-align: left;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease
}

.product-card:hover {
    transform: translateY(-2px)
}

.product-card.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(159, 200, 197, .26)
}

.product-card img {
    aspect-ratio: 1;
    background: #eef3ed;
    border-radius: 6px;
    object-fit: cover;
    width: 100%
}

.price,
.product-name {
    font-weight: 800
}

.price {
    color: var(--accent-dark)
}

.swatches {
    display: flex;
    gap: 6px
}

.swatches i {
    border: 1px solid var(--line);
    border-radius: 999px;
    height: 18px;
    width: 18px
}

.form-error,
.notice {
    color: var(--rose)
}

.notice {
    margin: 24px auto 0;
    max-width: 1224px;
    padding: 0 28px
}

.form-error {
    font-size: 14px;
    margin: 0
}

.panel {
    background: rgba(255, 253, 247, .88);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px
}

@media (max-width:1020px) {
    .site-nav {
        display: flex
    }

    .menu-toggle {
        display: inline-flex
    }

    .nav-select {
        display: none
    }

    .dropdown-menu {
        right: 0
    }

    .intro-section,
    .wellness-section {
        grid-template-columns: 1fr
    }

    .hero {
        min-height: 620px
    }
}

@media (max-width:640px) {
    .topbar {
        height: 64px
    }

    .brand {
        font-size: 15px;
        gap: 9px
    }

    .brand-mark {
        height: 34px;
        width: 34px
    }

    .hero {
        min-height: 560px;
        padding-top: 72px
    }

    .hero-actions,
    .hero-button,
    .primary,
    .secondary {
        width: 100%
    }

    .catalog-section,
    .intro-section {
        padding-top: 34px
    }

    .panel,
    .section-heading,
    .wellness-card {
        padding: 16px
    }

    .dropdown-menu {
        width: min(280px, calc(100vw - 32px))
    }
}

.nav-dropdown {
    display: none;
}

@media (max-width:1020px) {
    .nav-dropdown {
        display: flex;
    }
}

@media (max-width:640px) {
    .hero {
        min-height: 100vh;
        padding: 100px 20px 60px;
    }
}

@media (max-width:640px) {
    .hero {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
}

@media (max-width:640px) {
    .heritage-hero {
        background-position: 65% center;
    }
}

@media (max-width:640px) {
    .hero-copy {
        margin: 0;
        padding: 20px;
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(34px, 9vw, 48px);
        line-height: 1.1;
    }
}

@media (max-width:640px) {
    .heritage-hero::before {
        background: linear-gradient(180deg,
                rgba(39, 48, 47, 0.2) 0%,
                rgba(39, 48, 47, 0.6) 60%,
                rgba(39, 48, 47, 0.85) 100%);
    }
}

@media (max-width:640px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-button {
        width: 100%;
    }
}

@media (max-width:640px) {
    .brand-mark {
        height: 42px;
        width: auto;
    }
}

@media (max-width:640px) {
    .brand {
        display: flex;
        align-items: center;
    }
}

@media (max-width:640px) {
    .site-nav {
        gap: 12px;
    }

    .site-nav a {
        font-size: 12px;
        font-weight: 600;
    }
}

@media (max-width:640px) {
    .nav-actions {
        display: none;
    }
}

@media (max-width:640px) {
    .topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .site-nav {
        justify-content: center;
        flex: 1;
    }

    .brand {
        flex: 0;
    }
}

@media (max-width:640px) {
    .topbar {
        justify-content: space-between;
    }

    .site-nav {
        display: flex;
        justify-content: center;
        gap: 16px;
        flex: 1;
    }

    .brand {
        flex: 0;
    }
}

@media (max-width:640px) {
    .brand-mark {
        height: 44px;
        width: auto;
        filter: contrast(1.2) brightness(0.9);
    }
}

.desktop-logo {
    display: inline-block;
}

.mobile-logo {
    display: none;
}

@media (max-width:640px) {
    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: inline-block;
        height: 42px;
        width: auto;
    }
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.catalog-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.catalog-loading,
.catalog-error {
    grid-column: 1 / -1;
    margin: 0;
    padding: 32px 0;
    text-align: center;
}

.catalog-error {
    color: var(--rose);
}

.view-all {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.view-all:hover {
    color: var(--accent);
}


/* ===== SEZIONE ===== */
.catalog-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 32px 0 0;
}

/* ===== GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

/* ===== CARD ===== */
.product-card {
    width: 100%;
    background-color: var(--card);
}

/* ===== IMAGE BOX ===== */
.product-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

/* ===== IMG ===== */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== INFO ===== */
.product-info {
    padding: 12px 16px;
}

.product-name {
    font-size: 13px;
    margin: 0;
}

.price {
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
}

/* ===== TAG ===== */
.tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    background: white;
    padding: 4px 8px;
}

/* ===== MOBILE ===== */
@media (max-width:1020px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-image {
        padding: 00px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name,
    .price {
        font-size: 12px;
    }
}

.product-image {
    padding: 0px;
}

.catalog-section {
    width: 100%;
    margin: 0;
    padding: 32px clamp(16px, 4vw, 48px) 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 cambia tutto */
}

.product-image {
    aspect-ratio: 1; /* oppure 4/5 per stile fashion */
}

.product-image img {
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.color-options {
    display: flex;
    gap: 8px;
    align-items: center;
}

.product-color-options {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.22);
    padding: 0;
    cursor: pointer;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.72);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.color-swatch:hover,
.color-swatch.active {
    transform: scale(1.08);
    border-color: var(--accent);
    box-shadow:
        0 0 0 2px rgba(112, 68, 42, 0.18),
        inset 0 0 0 2px rgba(255,255,255,0.72);
}

.color-swatch-white {
    background: #fff;
}

.color-swatch-black {
    background: #111;
}

.drawer-panel .color-options {
    padding: 0 20px;
    margin: 14px 0 4px;
}

.drawer-panel .color-swatch {
    width: 30px;
    height: 30px;
}

.color-options[hidden] {
    display: none;
}
/* SIZES */
.size-options {
    display: flex;
    gap: 8px;
}

.size-options button {
    border: 1px solid #ccc;
    background: none;
    padding: 8px 12px;
    cursor: pointer;
}

/* CTA */
.add-to-cart {
    margin-top: 16px;
    padding: 14px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
}

/* CONTENUTO SOTTO */
.drawer-panel h2,
.drawer-panel p,
.size-options,
.add-to-cart,
.buy-now {
    padding: 0 20px;
}

/* SPACING */
.drawer-panel h2 {
    margin-top: 16px;
}

.drawer-panel p {
    margin: 8px 0;
}

/* TAGLIE */
.size-options {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

/* BOTTONI */
.add-to-cart,
.buy-now {
    margin-top: 10px;
    padding: 14px;
}

.add-to-cart {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent-dark);
    cursor: pointer;
    transition: 0.2s;
}

.add-to-cart:hover {
    background: var(--accent);
    color: white;
}

.buy-now-product,
.buy-now {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}

.buy-now-product,
.buy-now:hover {
    background: var(--accent-dark);
}

.drawer-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.drawer-slider {
    position: relative;
    overflow: hidden;
}

.prev { left: 10px; }
.next { right: 10px; }


@media (max-width: 768px) {

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .catalog-section {
        padding: 20px 16px 0;
    }

}

@media (max-width: 768px) {

    .product-image {
        aspect-ratio: 1;
    }

    .product-info {
        padding: 8px;
    }

    .product-name {
        font-size: 12px;
    }

    .price {
        font-size: 12px;
    }

}

@media (max-width: 768px) {
    .size-options {
        gap: 6px;
    }

    .size-options button {
        flex: 1;
    }

}

@media (max-width: 768px) {

    .add-to-cart,
    .buy-now {
        padding: 16px;
        font-size: 14px;
    }

}

.size-options button {
    border: 1px solid rgba(182, 144, 95, 0.4);
    background: transparent;
    color: var(--accent-dark);
    transition: 0.2s;
}

/* hover */
.size-options button:hover {
    background: rgba(182, 144, 95, 0.15);
}

/* attiva */
.size-options button.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

@media (max-width: 768px) {

    .slider-btn {
        padding: 10px 14px;
    }

    .drawer-close {
        padding: 8px 12px;
    }

    .size-options button {
        padding: 10px 0;
        font-size: 13px;
    }

}

/* ===== CONTAINER ===== */
.drawer-slider {
    position: relative;
    width: 100%;
    overflow: hidden; /* nasconde overflow visivo */
}

/* ===== TRACK ===== */
.slider-track {
    display: flex;
    overflow-x: auto; /* 🔥 fondamentale */
    -webkit-overflow-scrolling: touch;

    /* snap corretto */
    scroll-snap-type: x mandatory;

    /* smooth */
    scroll-behavior: smooth;
}
/* ===== FRECCE ===== */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    z-index: 10;

    background: rgba(182, 144, 95, 0.2);
    color: var(--accent-dark);

    border: none;
    border-radius: 50%;

    padding: 10px 14px;
    cursor: pointer;

    transition: 0.2s;
}

.slider-btn:hover {
    background: var(--accent);
    color: white;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.product-image {
    position: relative; /* necessario */
}

/* ICONA */
.cart-btn {
    position: relative;
    border: none;
    background: transparent;
    font-size: 18px;
}

#cartCount {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
}

/* DRAWER */

.cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

#cartItems {
    flex: 1;
    overflow-y: auto;
}

/* ITEM */
.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cart-footer {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* LISTA */
.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-top: 16px;
}

/* ITEM */
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

/* IMG */
.cart-item img {
    width: 70px;
    height: 90px;
    object-fit: cover;
}

/* INFO */
.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* CONTROLLI */
.cart-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-controls button {
    border: 1px solid #ccc;
    background: none;
    padding: 4px 8px;
    cursor: pointer;
}

/* REMOVE */
.remove {
    font-size: 12px;
    color: red;
    cursor: pointer;
}

/* FOOTER */
.cart-footer {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.cart-close {
    position: absolute;
    top: 12px;
    right: 12px;

    background: rgba(182, 144, 95, 0.15);
    color: var(--accent-dark);

    border: none;
    border-radius: 6px;

    padding: 6px 10px;
    font-size: 16px;

    cursor: pointer;
    z-index: 10;

    transition: 0.2s;
}

.cart-close:hover {
    background: var(--accent);
    color: white;
}

/* CONTENITORE */
.cart-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

/* BOTTONI */
.cart-controls button {
    width: 32px;
    height: 32px;

    border: none;
    background: transparent;

    font-size: 16px;
    font-weight: 500;

    cursor: pointer;
    transition: 0.2s;
}

/* HOVER */
.cart-controls button:hover {
    background: rgba(182, 144, 95, 0.15);
}

/* NUMERO */
.cart-controls span {
    width: 36px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.remove {
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;

    margin-top: 6px;
    display: inline-block;

    transition: 0.2s;
}

/* hover elegante */
.remove:hover {
    color: var(--accent);
    text-decoration: underline;
}

.cart-controls {
    display: inline-flex;   /* 🔥 NON flex */
    align-items: center;

    border: 1px solid var(--line);
    border-radius: 6px;

    overflow: hidden;

    width: fit-content;     /* 🔥 fondamentale */
}

.cart-btn {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--muted);
}

.cart-icon {
    width: 22px;
    height: 22px;
    display: block;
}

/* badge */
#cartCount {
    position: absolute;
    top: -6px;
    right: -8px;

    background: var(--accent);
    color: white;

    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
}

.cart-btn:hover .cart-icon {
    color: var(--accent);
}

.info-tabs {
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

/* header */
.tab-header {
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    color: var(--accent-dark);
    cursor: pointer;
}

/* content */
.tab-content {
    display: none;
    padding: 16px 20px;
    color: var(--muted);
    line-height: 1.6;
}

.tab.active .tab-content {
    display: block;
}

/* FAQ spacing */
.faq p {
    margin-bottom: 12px;
}

/* FIX SCROLL DRAWER */
.drawer-panel {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

/* contenuto fluido */
.drawer-panel > * {
    flex-shrink: 0;
}

/* spazio finale per evitare tagli */
.drawer-panel::after {
    content: "";
    height: 40px;
    flex-shrink: 0;
}

/* item cliccabile */
.cart-item {
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-item:hover {
    background: rgba(182, 144, 95, 0.08);
}

/* bottoni restano cliccabili */
.cart-controls button,
.remove {
    cursor: pointer;
}

/* ===== MOBILE PRODUCT DRAWER ===== */
@media (max-width: 640px) {

    .drawer-panel {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    /* spacing migliore */
    .drawer-panel h2 {
        font-size: 18px;
    }

    .drawer-panel p {
        font-size: 14px;
    }

    /* bottoni grandi (touch friendly) */
    .add-to-cart,
    .buy-now-product {
        height: 52px;
        font-size: 15px;
    }

    /* taglie più cliccabili */
    .size-options button {
        flex: 1;
        padding: 12px 0;
        font-size: 14px;
    }
}
/* ===== MOBILE CART ===== */
@media (max-width: 640px) {
    /* item più leggibili */
    .cart-item {
        gap: 10px;
    }

    .cart-item img {
        width: 60px;
        height: 80px;
    }

    .cart-item-info p {
        font-size: 13px;
    }

    /* controlli più grandi */
    .cart-controls button {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .cart-controls span {
        width: 40px;
        font-size: 15px;
    }

    /* footer fisso */
    .cart-footer {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 12px 0;
    }

    .buy-now {
        height: 50px;
        font-size: 15px;
    }
}

/* ===== MOBILE TABS ===== */
@media (max-width: 640px) {

    .tab-header {
        font-size: 14px;
        padding: 16px 20px;
    }

    .tab-content {
        font-size: 13px;
        padding: 12px 20px;
    }

    .tab-content ul {
        padding-left: 16px;
    }
}

/* ===== MOBILE PRODUCTS ===== */
@media (max-width: 640px) {

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .product-card {
        border-radius: 0;
    }

    .product-image {
        aspect-ratio: 1;
    }

    .product-name {
        font-size: 12px;
    }

    .price {
        font-size: 12px;
    }
}

/* ===== TOUCH FEEDBACK ===== */
button:active,
.cart-item:active,
.product-card:active {
    transform: scale(0.98);
}

/* ===== CLOSE BUTTON FIX ===== */
.drawer-close {
    position: sticky;   /* 🔥 resta visibile nello scroll */
    top: 12px;

    align-self: flex-end; /* resta a destra */
    margin-right: 20px;

    z-index: 50;

    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);

    border: 1px solid var(--line);
    border-radius: 8px;

    padding: 8px 12px;

    font-size: 16px;
    font-weight: 600;

    color: var(--accent-dark);

    cursor: pointer;

    box-shadow: 0 6px 18px rgba(0,0,0,0.1);

    transition: all 0.2s ease;
}

/* hover */
.drawer-close:hover {
    background: var(--accent);
    color: white;
}

/* mobile più grande */
@media (max-width: 640px) {
    .drawer-close {
        top: 16px;
        padding: 10px 14px;
        font-size: 18px;
    }
}

.drawer-panel {
    will-change: transform;
}
.cart-panel {
    will-change: transform;
}

/* ===== HERO ===== */
.about-hero {
    position: relative;
    height: 60vh;
    background: url("/Paestum%20Heritage%20Images/about/heroabout.webp") center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: rgba(39, 48, 47, 0.5);
}

.about-hero-content {
    position: relative;
    color: white;
    text-align: center;
}

/* ===== ABOUT GRID ===== */
.about-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-text {
    font-size: 16px;
    line-height: 1.7;
}

.highlight {
    font-weight: bold;
    font-size: 18px;
    margin: 20px 0;
}

.about-images img {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
}

/* ===== BANNER ===== */
.about-banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ===== FAQ ===== */
.faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
}

.faq-title {
    text-align: center;
    margin-bottom: 30px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 16px;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 0 16px 16px;
    color: var(--muted);
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        height: 50vh;
    }

    .about-banner img {
        height: 250px;
    }
}

/* ===== HERO IMAGE ===== */
.hero-image {
    position: relative;
    height: 100vh;

    background: url("/Paestum%20Heritage%20Images/about/heroabout.webp");
    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* overlay elegante */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(39, 48, 47, 0.2),
        rgba(39, 48, 47, 0.6)
    );
}

/* testo */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: clamp(42px, 6vw, 90px);
    font-family: Georgia, serif;
}

.hero-content .eyebrow {
    color: rgba(255,255,255,0.8);
}

@media (max-width: 640px) {

    .hero-image {
        height: 100vh;

        /* 🔥 fondamentale: mantieni i soggetti visibili */
        background-position: 65% center;

        padding: 0 20px;
        display: flex;
        align-items: flex-end;
    }

    .hero-content {
        width: 100%;
        text-align: left;
        padding-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 36px;
        line-height: 1.1;
    }

    .hero-content .eyebrow {
        font-size: 11px;
    }
}
@media (max-width: 640px) {

    .banner-section {
        height: 65vh;

        /* 🔥 evita di tagliare le due figure */
        background-position: 60% center;

        padding: 0 20px;
        align-items: flex-end;
    }

    .banner-content {
        text-align: left;
        padding-bottom: 30px;
    }

    .banner-content h2 {
        font-size: 28px;
        line-height: 1.2;
    }

    .banner-content p {
        font-size: 13px;
    }
}

@media (max-width: 768px) {

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .highlight {
        font-size: 16px;
    }

    .about-image img {
        height: 260px;
        object-fit: cover;
        border-radius: 8px;
    }
}

@media (max-width: 640px) {

    h1, h2 {
        letter-spacing: -0.5px;
    }

    p {
        max-width: 90%;
    }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--foam);
    padding: 80px 20px 40px;
    text-align: center;
    border-top: 1px solid var(--line);
}

/* titolo */
.footer-title {
    font-family: Georgia, serif;
    font-size: clamp(36px, 6vw, 72px);
    color: var(--ink);
    margin-bottom: 60px;
    letter-spacing: 1px;
}

/* grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: auto;
    gap: 60px;
    text-align: left;
}

/* colonne */
.footer-col h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--accent-dark);
    font-weight: 700;
}

.footer-col a,
.footer-col p {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--muted);
    text-decoration: none;
    transition: 0.2s ease;
}

/* hover elegante */
.footer-col a:hover {
    color: var(--accent);
}

/* pagamenti */
.payments {
    display: flex;
    gap: 10px;
    align-items: center;
}

.payments img {
    height: 22px;
    opacity: 0.8;
}

/* bottom */
.footer-bottom {
    margin-top: 40px;
    font-size: 12px;
    color: var(--muted);
}

/* ===== ABOUT TYPOGRAPHY FIX ===== */
.about-section {
    color: var(--ink);
    font-family: inherit; /* usa il font globale del sito */
}

/* titolo principale */
.about-text h2 {
    font-family: Georgia, serif; /* coerente con hero */
    font-size: clamp(28px, 3vw, 36px);
    color: var(--ink);
    margin-bottom: 20px;
}

/* paragrafi */
.about-text p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 14px;
}

/* parole importanti */
.about-text strong {
    color: var(--accent-dark);
    font-weight: 600;
}

/* frase highlight */
.highlight {
    font-family: Georgia, serif;
    font-size: 18px;
    color: var(--ink);
    margin: 24px 0;
    line-height: 1.5;
}

.about-hero-content h1 {
    font-family: Georgia, serif;
    color: white;
}

@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-title {
        font-size: 34px;
        margin-bottom: 40px;
    }

    .payments {
        justify-content: center;
    }
}

/* ===== FAQ MARRONE SCURO ===== */

/* linea */
.faq-item {
    border-bottom: 1px solid var(--accent-dark);
}

/* domanda */
.faq-question {
    color: var(--accent-dark);
}

/* risposta */
.faq-answer {
    color: var(--accent-dark);
}

/* hover */
.faq-question:hover {
    opacity: 0.75;
}

/* ===== ICONA + / - ===== */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* contenitore icona */
.faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

/* linea orizzontale */
.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--accent-dark);
    transition: 0.3s ease;
}

/* orizzontale */
.faq-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* verticale */
.faq-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* ===== STATO APERTO (-) ===== */
.faq-item.active .faq-icon::after {
    transform: translateX(-50%) scaleY(0);
}

/* supporto drawer */
.tab.active .faq-icon::after {
    transform: translateX(-50%) scaleY(0);
}

/* layout */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* icona */
.faq-icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* linee */
.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--accent-dark);
    transition: 0.3s ease;
}

/* orizzontale */
.faq-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* verticale */
.faq-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* stato aperto */
.faq-item.active .faq-icon::after,
.tab.active .faq-icon::after {
    transform: translateX(-50%) scaleY(0);
}

.cart-btn {
    position: relative;
}

/* =========================
   DRAWER BASE
========================= */
#drawer,
#cartDrawer {
    position: fixed;
    inset: 0;
    z-index: 9999;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.35s ease;
}

/* stato aperto */
#drawer.open,
#cartDrawer.open {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   OVERLAY
========================= */
#overlay,
#cartOverlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);

    opacity: 0;
    backdrop-filter: blur(0px);
    transition: opacity 0.35s ease, backdrop-filter 0.35s ease;
}

/* attivo */
#overlay.active,
#cartOverlay.active {
    opacity: 1;
    backdrop-filter: blur(4px);
}

/* =========================
   PANEL (SLIDE + SPRING FEEL)
========================= */
.drawer-panel,
.cart-panel {
    position: absolute;
    right: 0;
    top: 0;

    width: 90%;
    max-width: 420px;
    height: 100%;

    background: var(--sand);

    transform: translateX(110%);
    transition: transform 0.45s cubic-bezier(.22, 1, .36, 1);

    will-change: transform;
}

.drawer-panel {
    max-width: 500px;
}

/* apertura */
#drawer.open .drawer-panel {
    transform: translateX(0);
}

#cartDrawer.open .cart-panel {
    transform: translateX(0);
}

/* =========================
   CONTENUTO (STAGGER EFFECT)
========================= */
.drawer-panel > *,
.cart-panel > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* attivo */
#drawer.open .drawer-panel > *,
#cartDrawer.open .cart-panel > * {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   MICRO DELAY (effetto premium)
========================= */
.drawer-panel > *:nth-child(1) { transition-delay: 0.05s; }
.drawer-panel > *:nth-child(2) { transition-delay: 0.1s; }
.drawer-panel > *:nth-child(3) { transition-delay: 0.15s; }
.drawer-panel > *:nth-child(4) { transition-delay: 0.2s; }
.drawer-panel > *:nth-child(5) { transition-delay: 0.25s; }

.cart-panel > *:nth-child(1) { transition-delay: 0.05s; }
.cart-panel > *:nth-child(2) { transition-delay: 0.1s; }
.cart-panel > *:nth-child(3) { transition-delay: 0.15s; }
.cart-panel > *:nth-child(4) { transition-delay: 0.2s; }

/* =========================
   FIX LAYOUT DRAWER (IMMAGINI)
========================= */

/* container slider */
.drawer-slider {
    width: 100%;
    overflow: hidden;
}

/* track */
.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

/* immagini slider */
.slider-track img {
    flex: 0 0 100%;
    width: 100%;

    /* 🔥 QUESTO RISOLVE TUTTO */
    height: auto;

    aspect-ratio: 4 / 5;   /* proporzione pulita fashion */
    object-fit: cover;

    scroll-snap-align: start;
}

/* RIMUOVE QUALSIASI ALTEZZA SBAGLIATA */
.drawer-panel img {
    height: auto !important;
    max-height: none !important;
}

/* =========================
   FRECCE SLIDER FIX
========================= */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    z-index: 20; /* 🔥 sopra le immagini */

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    border: none;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);

    font-size: 22px;
    font-weight: 600;

    color: var(--accent-dark);

    cursor: pointer;
    transition: all 0.25s ease;
}

/* hover elegante */
.slider-btn:hover {
    background: var(--accent);
    color: white;
}

/* posizione */
.slider-btn.prev {
    left: 12px;
}

.slider-btn.next {
    right: 12px;
}

@media (max-width: 640px) {
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* =========================
   NASCONDI SCROLLBAR
========================= */

.slider-track {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

.slider-track::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
}

.drawer-slider {
    background: var(--sand);
}

.cart-panel {
    padding: 24px; /* 🔥 questo è il fix principale */
}

/* lista prodotti */
.cart-items {
    margin-top: 20px;
}

/* ogni item */
.cart-item {
    padding: 16px 0;
}

/* info testo */
.cart-item-info p {
    margin: 0;
}

.cart-item-info small {
    display: block;
    margin: 4px 0;
}

.cart-footer {
    margin-top: 20px;
    padding-top: 16px;
}

.buy-now {
    margin-top: 12px;
    border-radius: 6px;
}

/* =========================
   CART ITEM CLEAN LAYOUT
========================= */

.cart-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    align-items: flex-start;
}

.cart-item img {
    width: 72px;
    height: 92px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-info p {
    margin: 0;
    font-size: 14px;
}

.cart-item-info small {
    color: var(--muted);
    font-size: 12px;
}

.cart-item-info p:last-of-type {
    font-weight: 600;
    margin-top: 2px;
}

.cart-controls {
    margin-top: 6px;
}

.remove {
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
}

.remove:hover {
    color: var(--accent);
}

.cart-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

#cartTotal {
    font-weight: 600;
    margin-bottom: 12px;
}

/* =========================
   WHATSAPP FLOAT BUTTON
========================= */

.whatsapp-float {
    position: fixed;
    left: 20px;
    bottom: 20px;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: #25D366;
    color: white;

    display: grid;
    place-items: center;

    padding: 0;

    box-shadow: 0 10px 30px rgba(0,0,0,0.18);

    z-index: 99999;
}

.whatsapp-float svg {
    width: 29px;
    height: 29px;

    display: block;

    transform: translate(0.5px, 0.5px);
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);

    box-shadow:
        0 14px 36px rgba(0,0,0,0.22);
}

.whatsapp-float:active {
    transform: scale(0.96);
}

/* MOBILE */
@media (max-width: 640px) {

    .whatsapp-float {
        width: 54px;
        height: 54px;

        left: 16px;
        bottom: 16px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 640px) {

    .cart-footer {
        position: sticky;
        bottom: 0;

        background: var(--sand);

        padding: 14px 16px;

        border-top: 1px solid rgba(0,0,0,0.06);

        backdrop-filter: blur(10px);
    }

}

.whatsapp-buy {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: #25D366;
    color: #fff;

    text-decoration: none;
    border: none;

    padding: 14px;
    margin-top: 10px;

    font-weight: 600;
    transition: .2s;
}

.whatsapp-buy:hover {
    background: #1faa52;
}

.whatsapp-buy .fa-whatsapp {
    font-size: 22px;
}

.drawer-panel {
    padding-left: 0;
    padding-right: 0;
}

.continue-shopping {
    width: 100%;
    padding: 14px;

    background: transparent;
    border: 1px solid var(--accent);

    color: var(--accent-dark);

    cursor: pointer;

    margin-bottom: 10px;

    transition: 0.2s;
}

.continue-shopping:hover {
    background: var(--accent);
    color: white;
}

/* ===== QUALITY SELECTOR CARD ===== */
.card-quality-selector {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    padding: 2px;
    width: fit-content;
}

.card-quality-selector button {
    border: none;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--muted);
    transition: all 0.2s ease;
    cursor: pointer;
}

.card-quality-selector button.active {
    background: var(--accent);
    color: white;
}

/* ===== QUALITY SELECTOR DRAWER ===== */
.drawer-quality-selector {
    display: flex;
    gap: 8px;
    padding: 0 20px;
    margin: 16px 0 8px;
}

.drawer-quality-selector button {
    flex: 1;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
}

.drawer-quality-selector button.active {
    background: var(--accent);
    color: white;
}

.drawer-quality-selector button:hover:not(.active) {
    background: rgba(182, 144, 95, 0.1);
}

/* ===== DRAWER PANEL BUTTON MARGINS ===== */
.drawer-panel .add-to-cart,
.drawer-panel .buy-now-product {
    width: calc(100% - 40px) !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    box-sizing: border-box;
}
