/* ==========================================================================
   DESIGN TOKENS - da Figma
   ========================================================================== */

:root {
    /* Colors */
    --color-grey: #454545;
    --color-white: #FFFFFF;
    --color-yellow: #FFCC00;
    --color-beige: #FFF5D9;
    --color-shadow-yellow: #FFB900;
    --color-light-yellow: #FFDA49;
    --color-yellow-border: #FFCC00;

    /* Typography - scale */
    --font-heading: 'Adobe Caslon Pro', 'Georgia', serif;
    --font-body: 'Reddit Sans', 'Helvetica Neue', sans-serif;
    --font-ui: 'Inter', sans-serif;

    /* Font sizes */
    --text-h1: 48px;
    --text-h2: 40px;
    --text-h3: 32px;
    --text-h4: 24px;
    --text-h5: 16px;
    --text-body: 22px;
    --text-small: 18px;

    /* Line heights */
    --lh-h1: 40px;
    --lh-h4: 22px;
    --lh-h5: 16px;
    --lh-body: 24px;
    --lh-small: 20px;

    /* Letter spacing */
    --ls-tight: -0.03em;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 40px;
    --space-4xl: 48px;
    --space-5xl: 64px;
    --space-6xl: 80px;

    /* Layout */
    --container-width: 1440px;
    --content-width: 1312px;
    --content-padding: 64px;

    /* Borders */
    --border-accent: 4px solid var(--color-yellow);
    --border-button: 2px solid var(--color-grey);
    --border-button-white: 2px solid var(--color-white);
}

/* ==========================================================================
   FONTS
   ========================================================================== */

@font-face {
    font-family: 'Adobe Caslon Pro';
    src: url('../fonts/ACaslonPro-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--lh-body);
    color: var(--color-grey);
    background-color: var(--color-white);
    letter-spacing: var(--ls-tight);
}

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

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, .h1 {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: var(--lh-h1);
    letter-spacing: -1.44px;
    color: var(--color-grey);
}

h2, .h2 {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -1.2px;
    color: var(--color-grey);
}

h3, .h3 {
    font-family: var(--font-body);
    font-size: var(--text-h3);
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -0.96px;
    color: var(--color-grey);
}

h4, .h4 {
    font-family: var(--font-body);
    font-size: var(--text-h4);
    font-weight: 600;
    line-height: var(--lh-h4);
    letter-spacing: -0.72px;
    color: var(--color-grey);
}

h5, .h5 {
    font-family: var(--font-body);
    font-size: var(--text-h5);
    font-weight: 600;
    line-height: var(--lh-h5);
    letter-spacing: -0.48px;
    color: var(--color-grey);
}

p {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: var(--lh-body);
    letter-spacing: -0.66px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.site-container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.content-area {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

/* ==========================================================================
   GRID LINES (4 vertical decorative lines)
   ========================================================================== */

.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.grid-lines__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    height: 100%;
}

.grid-lines__inner span {
    position: relative;
}

.grid-lines__inner span::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #454545;
}

/* Ensure content sits above grid lines */
.site-header,
.hero,
main,
.prefooter,
.site-footer {
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--space-5xl) 0;
}

/* ==========================================================================
   COMPONENTS - Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: var(--text-h5);
    font-weight: 600;
    line-height: var(--lh-h5);
    letter-spacing: -0.48px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn--outline {
    padding: 12px 24px;
    border: var(--border-button);
    background: #fff;
    color: var(--color-grey);
}

/* Transparent bg on yellow backgrounds (hero, beige sections) */
.hero .btn--outline,
.hero--page .btn--outline,
.section--beige .btn--outline {
    background: transparent;
}

.btn--outline:hover {
    background: var(--color-grey);
    color: var(--color-white);
}

/* Load More button — white bg, full-width (SHOP-03) */
.load-more-wrap {
    text-align: center;
    margin-top: var(--space-3xl);
}

.btn--load-more {
    display: inline-block;
    width: 100%;
    padding: 14px 32px;
    background: var(--color-white);
    border: 2px solid var(--color-grey);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn--load-more:hover {
    background: var(--color-grey);
    color: var(--color-white);
}

.btn--outline-white {
    padding: 4px 24px;
    border: var(--border-button-white);
    background: transparent;
    color: var(--color-white);
}

.btn--outline-white:hover {
    background: var(--color-white);
    color: var(--color-grey);
}

.btn--pill {
    padding: 12px 24px;
    border-radius: 100px;
    border: 2px solid var(--color-white);
    background: var(--color-white);
    color: var(--color-grey);
}

.btn--pill:hover {
    background: var(--color-beige);
}

.btn--cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--color-grey);
    color: var(--color-yellow);
    font-size: var(--text-h4);
    font-weight: 600;
    letter-spacing: -0.72px;
    line-height: 22px;
}

.btn--cta:hover {
    background: #333;
}

.btn--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--color-grey);
    color: var(--color-white);
    font-family: var(--font-ui);
    font-size: var(--text-small);
    font-weight: 600;
    line-height: 40px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.btn--icon:hover {
    background: #333;
}

.btn--tag {
    padding: 0 24px;
    border-radius: 100px;
    background: var(--color-beige);
    color: var(--color-grey);
    font-family: var(--font-ui);
    font-size: var(--text-small);
    font-weight: 600;
    line-height: 40px;
}

/* ==========================================================================
   COMPONENTS - Cards
   ========================================================================== */

/* --- Card base --- */
.card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--color-grey);
}

/* --- Card Featured (pacchetto grande) --- */
.card--featured {
    position: relative;
    margin-bottom: var(--space-lg);
}

.card--featured__image {
    width: 100%;
    height: 436px;
    overflow: hidden;
    border-bottom: var(--border-accent);
}

.card--featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card--featured__overlay {
    position: absolute;
    top: 45px;
    left: 35px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card--featured__overlay .h3 a {
    color: var(--color-white);
    text-decoration: none;
}

.card--featured .btn--icon {
    background: transparent;
    border: var(--border-button-white);
    color: var(--color-white);
}

.card--featured .btn--icon:hover {
    background: var(--color-white);
    color: var(--color-grey);
}

.card--featured__image img {
    transition: transform 0.3s ease;
}

.card--featured:hover .card--featured__image img {
    transform: scale(1.03);
}

/* --- Card Pacchetto (grid) --- */
.cards-grid.cards-grid--pacchetti {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}



/* Active chip filter state (D-12) */
.btn--chip.is-active {
    background: var(--color-grey);
    color: #fff;
}

.card--pacchetto {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card--pacchetto__image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: block;
    background: var(--color-beige);
}

.card--pacchetto__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card__body {
    padding: 16px 10px;
    background: var(--color-white);
    border-bottom: var(--border-accent);
    transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

/* --- Card Collezione (contain images, no yellow hover) --- */
.card--collezione {
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: transform 0.3s ease-in-out;
}

.card--collezione:hover {
    transform: translateY(-5px);
}

.card--collezione:hover .card__body {
    background: var(--color-yellow);
}

.card--collezione__image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background: transparent;
}

.card--collezione__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Card Pacchetto hover: lift + yellow bg */
.card--pacchetto {
    transition: transform 0.3s ease-in-out;
}

.card--pacchetto:hover {
    transform: translateY(-5px);
}

.card--pacchetto:hover .card__body {
    background: var(--color-yellow);
}

.card__title {
    font-family: var(--font-body);
    font-size: var(--text-h4);
    font-weight: 600;
    line-height: var(--lh-h4);
    letter-spacing: -0.72px;
    color: var(--color-grey);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(var(--lh-h4) * 2); /* always 2 lines */
}

.card__price {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: var(--lh-body);
    letter-spacing: -0.66px;
    color: var(--color-grey);
}

.card__author {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-grey);
    opacity: 0.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.3em * 2); /* always reserves 2 lines so cards align */
}

.card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

/* Dot decoration (pacchetti + eventi) */
.card__dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--color-grey);
    background: white;
    margin: -13px auto 0;
    position: relative;
    z-index: 1;
    transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

/* Event card dot: centered under the body (vertical card) */
.event-card-wrap .card__dot {
    margin: -13px 0 0;
    align-self: flex-start;
    margin-left: calc(50% - 5px);
    transform: translateX(-50%);
}

/* Card pacchetto dot: centered in each column, aligned with grid lines */
.card--pacchetto .card__dot {
    margin-left: auto;
    margin-right: auto;
}

/* Card consiglio dot */
.card--consiglio .card__dot {
    flex-shrink: 0;
}

/* --- Card Consiglio (hover) --- */
.card--consiglio {
    align-items: center;
    position: relative;
    width: 100%;
    height: 570px;
    display: flex;
    flex-direction: column;
}

.card--consiglio .card__image {
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    transition: flex 0.3s ease-in-out, height 0.3s ease-in-out;
}

.card--consiglio .card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: height 0.3s ease-in-out;
}

.card--consiglio .card__body {
    text-align: center;
    width: 100%;
    padding: 24px 10px;
    background: var(--color-white);
    border-bottom: var(--border-accent);
    flex-shrink: 0;
    transition: background 0.3s ease-in-out;
}

.card--consiglio:hover .card__body {
    background: var(--color-yellow);
}

/* Hide default content, show hover content on hover */
.card--consiglio__default {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.card--consiglio__expanded {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.card--consiglio:hover .card--consiglio__default {
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.card--consiglio:hover .card--consiglio__expanded {
    max-height: 200px;
    opacity: 1;
}

.card--consiglio__expanded .consiglio-name {
    font-family: var(--font-body);
    font-size: var(--text-h4);
    font-weight: 600;
    line-height: var(--lh-h4);
    letter-spacing: -0.72px;
    color: var(--color-grey);
}

.card--consiglio__expanded .consiglio-label {
    font-family: var(--font-body);
    font-size: var(--text-h5);
    font-weight: 300;
    line-height: 16px;
    letter-spacing: -0.48px;
    color: var(--color-grey);
}

.card--consiglio__expanded .consiglio-book {
    font-family: var(--font-body);
    font-size: var(--text-h4);
    font-weight: 600;
    line-height: var(--lh-h4);
    letter-spacing: -0.72px;
    color: var(--color-grey);
}

.card--consiglio__expanded .consiglio-author {
    font-family: var(--font-body);
    font-size: var(--text-h5);
    font-weight: 300;
    line-height: 16px;
    letter-spacing: -0.48px;
    color: var(--color-grey);
}

/* --- Card image generic --- */
.card__image {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   COMPONENTS - Section Title
   ========================================================================== */

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: white;
}

.section-title__label {
    display: inline-flex;
}

.section-title__heading {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.44px;
    color: var(--color-grey);
}

.section-title__description {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: var(--lh-body);
    letter-spacing: -0.66px;
    color: var(--color-grey);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    position: relative;
    z-index: 100;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px var(--content-padding);
    background: var(--color-grey);
    color: var(--color-white);
}

.top-bar__social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px var(--content-padding) 24px;
    background: var(--color-yellow);
}

.nav-bar__menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    height: 40px;
    position: relative;
    z-index: 2;
}

.nav-bar__menu a {
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: 400;
    line-height: 40px;
    letter-spacing: -0.54px;
    color: var(--color-grey);
    transition: opacity 0.2s ease;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
/* Reserve bold width so items don't shift on hover */
.nav-bar__menu a::after {
    content: attr(data-text);
    font-weight: 700;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.nav-bar__menu a:hover {
    font-weight: 700;
}

.nav-bar__logo-row {
    position: relative;
    margin-top: -25px;
    height: 75px;
    width: 100%;
}

.nav-bar__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid var(--color-grey);
    background: var(--color-yellow);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.nav-bar__line {
    position: absolute;
    left: 6px;
    right: 38px;
    top: calc(50% - 1px);
    height: 1px;
    background: var(--color-grey);
    z-index: 1;
}

.nav-bar__logo {
    position: absolute;
    right: 0;
    top: 0;
    display: block;
    z-index: 2;
}

.nav-bar__logo img,
.nav-bar__logo svg,
.nav-bar__logo .header-logo-svg {
    display: block;
    height: 75px;
    width: auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.prefooter {
    display: flex;
    align-items: stretch;
    border-bottom: 2px solid var(--color-yellow);
}

.prefooter__text {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 24px var(--content-padding);
    background: var(--color-beige);
    font-family: var(--font-body);
    font-size: var(--text-h4);
    font-weight: 600;
    letter-spacing: -0.72px;
    text-align: center;
    color: var(--color-grey);
}

.prefooter__cta {
    width: 460px;
    height: 100px;
}

.site-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    padding: var(--space-3xl) var(--content-padding) 120px;
    background: var(--color-grey);
    border-top: 2px solid var(--color-yellow);
    color: var(--color-white);
}

.footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__columns {
    display: flex;
    gap: var(--space-2xl);
}

.footer__menu {
    display: flex;
    flex: 1;
    gap: var(--space-2xl);
    max-width: 800px;
    min-width: 600px;
}

.footer__menu-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
    max-width: 180px;
}

.footer__menu-column a {
    font-family: var(--font-ui);
    font-size: var(--text-small);
    font-weight: 600;
    line-height: var(--lh-small);
    letter-spacing: -0.54px;
    color: var(--color-white);
    transition: opacity 0.2s ease;
}

.footer__menu-column a:hover {
    opacity: 0.7;
}

.footer__menu-column a.highlight {
    color: var(--color-yellow);
}

.footer__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-xl);
    padding: 0 12px;
}

.footer__hours {
    text-align: right;
    font-family: var(--font-ui);
    font-size: var(--text-small);
    font-weight: 500;
    line-height: 18px;
    letter-spacing: -0.54px;
}

.footer__hours p {
    font-size: var(--text-small);
    line-height: 18px;
}

.footer__address {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: flex-end;
}

.footer__address-text {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--color-yellow);
    letter-spacing: -0.66px;
}

/* ==========================================================================
   HERO (Homepage)
   ========================================================================== */

.hero {
    position: relative;
    padding: var(--space-4xl) var(--content-padding) var(--content-padding);
    background: var(--color-yellow) url('../images/220.svg') top left / auto no-repeat;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Hero for internal pages */
.hero--page {
    min-height: auto;
    padding: var(--space-4xl) var(--content-padding) var(--content-padding);
    gap: 0;
    background: var(--color-yellow) url('../images/220.svg') top left / auto no-repeat;
}

/* Dark hero variant (single consiglio, etc.) */
.hero--dark {
    background: var(--Main-Grey, #454545);
    color: #fff;
}

.hero--dark h1,
.hero--dark .h1 {
    color: #fff;
}

.hero--dark .h5 {
    color: var(--color-shadow-yellow);
}

.hero--dark .back-link {
    position: absolute;
    top: var(--space-4xl);
    left: var(--content-padding);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-small);
    color: var(--Main-Yellow, #FC0);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.48px;
    z-index: 2;
}

.hero--page__content {
    display: grid;
    grid-template-columns: 3fr 2fr 7fr;
    align-items: end;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

.hero--page__text {
    grid-column: 1;
    padding-bottom: var(--space-3xl);
}

.hero--page__text .h1 {
    margin-top: var(--space-sm);
}

.hero--page__image {
    grid-column: 3;
    overflow: hidden;
}

.hero--page__image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .hero--page__content {
        grid-template-columns: 1fr;
    }

    .hero--page__text {
        grid-column: 1;
    }

    .hero--page__image {
        grid-column: 1;
        width: 100%;
    }
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.hero__heading {
    text-align: center;
}

.hero-swiper {
    width: 100%;
    overflow: hidden;
}

.hero__image {
    height: 200px;
    overflow: hidden;
}

.hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   CARDS GRID
   ========================================================================== */

.cards-grid {
    display: flex;
    gap: 20px;
}

/* Collezione grid — 4 columns */
.cards-grid.cards-grid--collezione,
.cards-grid.cards-grid--consiglio {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cards-grid .card {
    flex: 1;
}

.cards-row {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   BOOK CAROUSEL
   ========================================================================== */

/* Book grid — 4 per row for Letti da noi */
.book-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 31px;
    margin: 0 42px;
}

.book-carousel {
    display: flex;
    gap: 31px;
    padding: 0 42px;
    align-items: flex-end;
}

.book-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-decoration: none;
    color: var(--color-grey);
}

.book-item__cover {
    height: 331px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.book-item__cover img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.book-item__title {
    font-family: var(--font-body);
    font-size: var(--text-h4);
    font-weight: 600;
    line-height: var(--lh-h4);
    letter-spacing: -0.72px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(var(--lh-h4) * 2);
}

.book-item__author {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.66px;
    color: var(--color-grey);
}

.book-item__publisher {
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: 400;
    line-height: var(--lh-small);
    color: var(--color-grey);
    opacity: 0.7;
}

/* ==========================================================================
   LETTI DA NOI section
   ========================================================================== */

.section--white {
    background: #fff;
    position: relative;
    z-index: 1;
}

.section--beige {
    background: var(--color-beige);
    border-radius: 8px;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.section--beige .section-title {
    background: none;
}

/* ==========================================================================
   EVENT CARDS (vertical)
   ========================================================================== */

.cards-row--eventi {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.event-card-wrap {
    width: calc(25% - 15px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
}

.event-card-wrap:hover {
    transform: translateY(-5px);
}

.event-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    text-decoration: none;
    color: var(--color-grey);
    flex: 1;
}

.event-card__image {
    width: 100%;
    height: 273px;
    overflow: hidden;
    position: relative;
}

.event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-wrap .btn--tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 16px;
    border: 1px solid var(--color-grey);
    border-radius: 300px;
    background: var(--color-beige);
    color: var(--color-grey);
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: var(--lh-body);
    letter-spacing: -0.04em;
    white-space: nowrap;
    z-index: 2;
}

.event-card__body {
    position: relative;
    width: 100%;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    border-bottom: 4px solid var(--color-yellow);
    transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.event-card-wrap:hover .event-card__body {
    background: var(--color-yellow);
    border-color: var(--color-white);
}

.event-card__meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.event-card__date,
.event-card__time {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: var(--lh-body);
    letter-spacing: -0.04em;
    margin: 0;
}

.event-card__title {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 700;
    line-height: 26px;
    letter-spacing: -0.03em;
    margin: 0;
}

.event-card__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    line-height: var(--lh-body);
    letter-spacing: -0.04em;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ==========================================================================
   CONTATTI PAGE
   ========================================================================== */

.contatti-layout {
    display: flex;
    gap: var(--space-5xl);
    align-items: flex-start;
}

.contatti-layout__intro {
    flex: 0 0 30%;
    background: #fff;
    border-radius: 24px;
    padding: var(--space-3xl);
}

.contatti-layout__form {
    flex: 1;
}

.contatti-form-area {
    background: var(--color-beige);
    border-radius: 24px;
    padding: var(--space-3xl);
}

/* ==========================================================================
   MY ACCOUNT — WooCommerce
   ========================================================================== */

.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
    display: inline-block;
    vertical-align: top;
}

.woocommerce-account .woocommerce {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.woocommerce-account .entry-content {
    max-width: none;
}

.woocommerce-account .addresses .title .edit {
    float: right;
    border-radius: 10px;
    padding: 2px 5px;
    font-size: smaller;
    margin: 0 0 10px;
    background: var(--color-yellow);
}

/* ==========================================================================
   CART & CHECKOUT — WooCommerce
   ========================================================================== */

/* Cart & checkout: force font on all descendants */
.woocommerce-cart .entry-content *,
.woocommerce-checkout .entry-content * {
    font-family: var(--font-body);
    font-weight: 600;
}

/* Hide WC Blocks snackbar notices */
.wc-block-components-notices__snackbar {
    display: none !important;
}

/* Payment method icons sizing */
.wc-block-components-payment-method-icons .wc-block-components-payment-method-icon {
    height: 24px;
    max-height: 54px;
    max-width: 68px;
}

/* Single product: minimum height for content area */
.single-product main.site-main.content-area {
    min-height: 200px;
}

/* Global font for all WooCommerce forms */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce input[type="tel"],
.woocommerce input[type="number"],
.woocommerce input[type="search"],
.woocommerce select,
.woocommerce textarea,
.woocommerce label,
.woocommerce .woocommerce-form__label,
.woocommerce .woocommerce-input-wrapper,
.wc-block-components-form input,
.wc-block-components-form select,
.wc-block-components-form textarea,
.wc-block-components-form label,
.wc-block-components-checkbox__label,
.wc-block-components-checkbox .wc-block-components-checkbox__label {
    font-family: var(--font-body);
}

.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content {
    max-width: none;
}

.woocommerce-cart-form {
    background: var(--color-beige);
    border-radius: 24px;
    padding: var(--space-3xl);
}

.woocommerce-cart-form table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-cart-form table th {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--Main-Grey, #454545);
    padding: 12px 16px;
    border-bottom: 2px solid var(--Main-Grey, #454545);
    text-align: left;
}

.woocommerce-cart-form table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid #e5e5e5;
}

.woocommerce-cart-form table td.product-thumbnail img {
    width: 80px;
    height: auto;
    border-radius: 4px;
}

.woocommerce-cart-form table td.product-name a {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--Main-Grey, #454545);
    text-decoration: none;
}

.woocommerce-cart-form table td.product-remove a {
    color: var(--Main-Grey, #454545);
    font-size: 20px;
    text-decoration: none;
}

.woocommerce-cart-form .quantity input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 16px;
}

.woocommerce-cart-form .actions .button {
    background: var(--Main-Grey, #454545);
    color: var(--Main-Yellow, #FC0);
    border: none;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.48px;
}

.woocommerce-cart-form .coupon input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    background: #fff;
}

/* Cart totals sidebar */
.cart_totals {
    background: var(--color-beige);
    border-radius: 24px;
    padding: var(--space-3xl);
    max-width: 400px;
    margin-left: auto;
    margin-top: var(--space-xl);
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals table th,
.cart_totals table td {
    padding: 12px 0;
    font-family: var(--font-body);
    border-bottom: 1px solid #e5e5e5;
}

.cart_totals table th {
    font-weight: 600;
    text-align: left;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 20px;
    font-weight: 700;
    border-bottom: none;
}

.cart_totals .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    background: var(--Main-Grey, #454545);
    color: var(--Main-Yellow, #FC0);
    border: none;
    padding: 16px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: -0.48px;
    margin-top: var(--space-lg);
}

/* Cart blocks (WC Blocks) */
table.wc-block-cart-items.wp-block-woocommerce-cart-line-items-block {
    background: var(--color-beige) !important;
    border-radius: 24px;
    padding: var(--space-3xl);
}

.wp-block-woocommerce-cart-order-summary-block {
    background: var(--color-beige);
    border-radius: 24px;
    padding: var(--space-3xl);
}

.wc-block-components-form {
    background: var(--color-beige);
    border-radius: 24px;
    padding: 20px;
}

.wp-block-woocommerce-checkout-order-summary-block {
    background: var(--color-beige);
    border-radius: 24px;
    padding: var(--space-3xl);
}

a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained,
.wc-block-components-checkout-place-order-button {
    background: var(--Main-Yellow, #FC0);
    color: var(--Main-Grey, #454545);
    border: none;
    border-radius: 100px;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.48px;
    text-decoration: none;
}

/* Empty cart — custom layout */
.cart-empty-custom {
    text-align: center;
    padding: var(--space-5xl) 0 var(--space-3xl);
}
.cart-empty-custom__title {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    line-height: var(--lh-h1);
    letter-spacing: var(--ls-tight);
    margin: 0 0 var(--space-xl);
}
.cart-empty-custom__btn {
    display: inline-block;
}

/* Checkout form */
.woocommerce-checkout-review-order {
    background: var(--color-beige);
    border-radius: 24px;
    padding: var(--space-3xl);
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    background: #fff;
}

.woocommerce-checkout #place_order {
    display: block;
    width: 100%;
    background: var(--Main-Grey, #454545);
    color: var(--Main-Yellow, #FC0);
    border: none;
    padding: 16px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.48px;
}

/* Tab navigation (left) */
.woocommerce-MyAccount-navigation {
    flex: 0 0 220px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--Main-Grey, #454545);
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--color-beige);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--color-beige);
    border-radius: 12px;
}

/* Tab content (right) */
.woocommerce-MyAccount-content {
    flex: 1;
    background: var(--color-beige);
    border-radius: 24px;
    padding: var(--space-3xl);
}

/* Form fields inside my-account */
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    background: #fff;
}

.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"] {
    background: var(--Main-Grey, #454545);
    color: var(--Main-Yellow, #FC0);
    border: none;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.48px;
}

/* Login form (not logged in) */
.woocommerce-form-login {
    background: var(--color-beige);
    border-radius: 24px;
    padding: var(--space-3xl);
    max-width: 480px;
}

.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    background: #fff;
}

.woocommerce-form-login .woocommerce-button,
.woocommerce-form-login button[type="submit"] {
    background: var(--Main-Grey, #454545);
    color: var(--Main-Yellow, #FC0);
    border: none;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.48px;
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation {
        flex: none;
        width: 100%;
    }

    .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.contact-form__row {
    display: flex;
    gap: var(--space-xl);
}

.contact-form__row .contact-form__field {
    flex: 1;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-form__field label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-grey);
}

.contact-form__field input,
.contact-form__field textarea {
    font-family: var(--font-body);
    font-size: var(--text-small);
    padding: 12px 16px;
    border: 1px solid var(--color-grey);
    border-radius: 0;
    background: transparent;
    color: var(--color-grey);
    outline: none;
    transition: border-color 0.2s ease;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    border-color: var(--color-yellow);
}

.contact-form__field textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form__counter {
    font-size: 12px;
    color: var(--color-grey);
    opacity: 0.6;
}

.contact-form__submit {
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 16px;
    border: 1px solid var(--color-grey);
    border-radius: 100px;
    background: transparent;
    color: var(--color-grey);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.contact-form__submit:hover {
    background: var(--color-grey);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .contatti-layout {
        flex-direction: column;
    }

    .contact-form__row {
        flex-direction: column;
    }
}

/* ==========================================================================
   LIBRERIA PAGE
   ========================================================================== */

.libreria-carousel-section {
    overflow: hidden;
    padding: 0;
}

.libreria-swiper {
    width: 100%;
    overflow: visible;
}

.libreria-slide {
    height: 500px;
    overflow: hidden;
}

.libreria-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   LIBRERIA SECTIONS (ACF Flexible Content)
   Each section type has its own spacing and width rules.
   ========================================================================== */

/* Base section spacing — 48px margin between sections, 32px internal padding */
.libreria-section {
    margin: 48px 0;
}

/* Inner container — boxed content (quotes, text), white bg */
.libreria-section__inner {
    max-width: 850px;
    margin: 0 auto;
    padding: 32px var(--space-xl);
    background: white;
}

/* --- Quote section — Figma node 276:4599 --- */
.libreria-section--quote {
    /* no extra padding — __inner handles it */
}

.libreria-quote {
    text-align: center;
    border: none;
    padding: 0;
    margin: 0;
}

.libreria-quote p {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -1.44px;
    color: var(--color-grey);
    margin: 0;
}

.libreria-quote cite {
    display: block;
    margin-top: var(--space-md);
    font-family: var(--font-body);
    font-size: 32px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: -0.96px;
    font-style: normal;
    color: var(--color-grey);
}

/* --- Carousel section — full width, no extra padding --- */
.libreria-section--carousel {
    /* full width, spacing comes from base .libreria-section margin */
}

/* --- Text section — boxed --- */
.libreria-section--text .h1 {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.libreria-section--text .entry-content {
    max-width: 751px;
    margin: 0 auto;
}

/* Card team - aspect ratio 5:4 */
.card--team__image {
    width: 100%;
    aspect-ratio: 5 / 4;
    overflow: hidden;
}

.card--team__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   ENTRY CONTENT (generic page typography)
   ========================================================================== */

/* Base typography for generic pages using the_content() via page.php.
   Matches the inline style on .entry-content in page-libreria.php (Figma node 276-4083):
   font-size: 24px; line-height: 26px; letter-spacing: -0.456px */
.entry-content {
    font-family: var(--font-heading);
    font-size: 24px;
    line-height: 26px;
    letter-spacing: -0.456px;
    color: var(--color-grey);
    max-width: 751px;
    background: #fff;
    padding: var(--space-xl);
}

.entry-content p {
    margin-bottom: var(--space-xl);
}

/* ==========================================================================
   SINGLE PRODUCT HERO
   ========================================================================== */

.product-hero {
    background: var(--color-grey);
    color: var(--color-white);
    padding: var(--space-4xl) 0 var(--content-padding);
    position: relative;
    z-index: 1;
}

.product-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-yellow);
    font-family: var(--font-body);
    font-size: var(--text-h5);
    font-weight: 600;
    text-decoration: none;
    margin-bottom: var(--space-3xl);
}

.product-hero__layout {
    display: flex;
    align-items: flex-end;
    gap: var(--space-3xl);
}

.product-hero__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.product-hero__title {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: var(--lh-h1);
    letter-spacing: -1.44px;
    color: var(--color-white);
}

.product-hero__desc {
    font-size: var(--text-body);
    color: var(--color-white);
}

.product-hero__meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.product-hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-hero__meta-label {
    font-family: var(--font-body);
    font-size: var(--text-h5);
    font-weight: 600;
    color: var(--color-yellow);
    line-height: 16px;
    letter-spacing: -0.48px;
}

.product-hero__meta-value {
    font-family: var(--font-body);
    font-size: var(--text-h4);
    font-weight: 600;
    color: var(--color-white);
    line-height: var(--lh-h4);
    letter-spacing: -0.72px;
}

.product-hero__price {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 700;
    line-height: var(--lh-h1);
    letter-spacing: -1.44px;
    color: var(--color-white);
}

.product-hero__price .woocommerce-Price-amount {
    color: var(--color-white);
}
.product-hero__shipping-note {
    display: inline-block;
    position: relative;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    margin-top: var(--space-sm);
    letter-spacing: 0;
    line-height: 1.4;
    cursor: pointer;
}
.product-hero__shipping-note:hover {
    color: var(--color-white);
}
.product-hero__shipping-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background: var(--color-white);
    color: var(--color-grey);
    font-size: 13px;
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    width: 260px;
    z-index: 10;
    text-decoration: none;
}
.product-hero__shipping-note:hover .product-hero__shipping-tooltip,
.product-hero__shipping-note:focus .product-hero__shipping-tooltip {
    display: block;
}

.product-hero__actions {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.product-hero__qty {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: 0 24px;
    border: 2px solid var(--color-yellow);
    color: var(--color-yellow);
    font-family: var(--font-ui);
    font-size: var(--text-small);
    font-weight: 600;
    line-height: 40px;
}

.product-hero__qty-controls {
    display: flex;
    gap: 4px;
    align-items: center;
}

.product-hero__qty-controls button {
    background: none;
    border: none;
    color: var(--color-yellow);
    font-family: var(--font-ui);
    font-size: var(--text-small);
    font-weight: 600;
    cursor: pointer;
    padding: 0 4px;
}

.product-hero__add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--color-yellow);
    border: 2px solid var(--color-yellow);
    color: var(--color-grey);
    font-family: var(--font-body);
    font-size: var(--text-h5);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.product-hero__add-to-cart:hover {
    background: var(--color-shadow-yellow);
}

.product-hero__image {
    flex: 0 0 441px;
    max-width: 441px;
}

.product-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Chat widget - fixed bottom right, links to WhatsApp */
.chat-widget {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-white);
    border: 4px solid var(--color-grey);
    border-radius: 100px;
    color: var(--color-grey);
    font-family: var(--font-body);
    font-size: var(--text-h5);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.16);
}
.chat-widget__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #25D366;
    display: inline-block;
}

/* Hide WooCommerce default add to cart on single product */
.product-hero .woocommerce-variation-add-to-cart,
.product-hero .cart {
    display: none;
}

@media (max-width: 768px) {
    .product-hero__layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-hero__image {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .product-hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   SINGLE CONSIGLIO
   ========================================================================== */

.consiglio-hero {
    position: relative;
}

.consiglio-hero .hero--page__image {
    justify-self: end;
    align-self: end;
}

.consiglio-video {
    justify-self: end;
    align-self: end;
}

.consiglio-video__placeholder {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
}

.consiglio-video--vertical .consiglio-video__placeholder {
    aspect-ratio: 9 / 16;
}

.consiglio-video__placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.consiglio-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.consiglio-video__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.consiglio-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    display: block;
}

/* Vertical video — taller aspect, fixed width */
.consiglio-video--vertical {
    width: 358px;
}

.consiglio-video--vertical iframe {
    aspect-ratio: 9 / 16;
}

.consiglio-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.consiglio-meta__label {
    font-size: 16px;
    color: var(--Main-Yellow, #FC0);
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -0.48px;
}

.consiglio-meta__value {
    font-size: 24px;
    font-weight: 600;
    line-height: 22px;
    letter-spacing: -0.72px;
    color: #fff;
}

/* Evento single: dark hero meta — labels + bold values, larger title */
.consiglio-meta--evento {
    gap: var(--space-xl);
    margin-top: 0;
    padding-top: 76px; /* clear absolute-positioned back-link (48px top + 32px height - 4px) and 44px Figma gap */
}

.consiglio-meta--evento .consiglio-meta__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.consiglio-meta--evento .consiglio-meta__value {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 700;
    line-height: var(--lh-body);
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin: 0;
}

.consiglio-meta--evento .consiglio-meta__value--title {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 700;
    line-height: 26px;
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin: 0;
}

.btn--chiedi {
    position: absolute;
    bottom: 64px;
    right: 64px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    height: 60px;
    background: #fff;
    border: 4px solid var(--Main-Grey, #454545);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--Main-Grey, #454545);
    letter-spacing: -0.48px;
    text-decoration: none;
    z-index: 2;
}

.btn--chiedi::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--Main-Grey, #454545);
    border-radius: 50%;
}

.consiglio-content {
    position: relative;
    z-index: 1;
    padding: var(--space-5xl) 0;
}

.consiglio-content .entry-content {
    max-width: 889px;
    background: #fff;
    padding: var(--space-xl);
}

.consiglio-content h2,
.consiglio-content .entry-content h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -1.44px;
    color: var(--Main-Grey, #454545);
    margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
    .consiglio-video,
    .consiglio-video--vertical {
        width: 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   WOOCOMMERCE OVERRIDES
   ========================================================================== */

.woocommerce .products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.woocommerce .product {
    flex: 1 1 calc(25% - 15px);
    min-width: 250px;
}

.woocommerce .price {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--color-grey);
}

.woocommerce .button,
.woocommerce a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--color-grey);
    color: var(--color-yellow);
    font-family: var(--font-body);
    font-size: var(--text-h5);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.woocommerce .button:hover,
.woocommerce a.button:hover {
    background: #333;
    color: var(--color-yellow);
}

/* ==========================================================================
   ICONS & SOCIAL
   ========================================================================== */

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: currentColor;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon--white {
    color: var(--color-white);
}

.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.cart-icon svg {
    width: 20px;
    height: 16px;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-yellow);
    color: var(--color-grey);
    font-size: 11px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Top bar icon colors */
.top-bar a {
    color: var(--color-white);
}

.top-bar svg {
    fill: none;
}

/* ==========================================================================
   FOOTER MENU FIX
   ========================================================================== */

.footer__menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__menu-column li {
    list-style: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    :root {
        --content-padding: 32px;
    }

    .cards-grid {
        flex-wrap: wrap;
    }

    .cards-grid .card {
        flex: 1 1 calc(50% - 10px);
    }

    .cards-grid.cards-grid--consiglio,
    .cards-grid--pacchetti {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-carousel {
        padding: 0 20px;
        overflow-x: auto;
    }
}

/* ==========================================================================
   HAMBURGER MENU TOGGLE (hidden on desktop)
   ========================================================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.menu-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-grey);
    transition: all 0.3s ease;
}

/* ==========================================================================
   MOBILE MENU OVERLAY
   ========================================================================== */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-yellow);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.mobile-menu.is-open {
    transform: translateX(0);
}

.mobile-menu__header {
    padding: 0;
}

.mobile-menu__top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--color-grey);
    color: var(--color-white);
}

.mobile-menu__social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu__social .social-icon {
    color: var(--color-white);
}

.mobile-menu__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
}

.mobile-menu__actions a {
    color: var(--color-white);
}

.btn--outline-grey {
    padding: 4px 16px;
    border: 2px solid var(--color-grey);
    background: transparent;
    color: var(--color-grey);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.mobile-menu__logo-row {
    display: flex;
    align-items: center;
    padding: 24px 20px;
    position: relative;
    width: 100%;
}

.mobile-menu__logo-row .nav-bar__dot {
    position: static;
    transform: none;
    flex-shrink: 0;
}

.mobile-menu__logo-row .nav-bar__line {
    position: absolute;
    flex: 1;
    height: 1px;
    min-width: 10px;
    width: 260px;
    left: 25px;
    top: 61px;
}

.mobile-menu__logo-row .nav-bar__logo {
    position: static;
    flex-shrink: 0;
}

.mobile-menu__close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-grey);
    cursor: pointer;
    padding: 8px;
    margin-left: 16px;
    flex-shrink: 0;
}

.mobile-menu__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 20px;
    background: var(--color-yellow) url('../images/220.svg') bottom right / auto no-repeat;
}

.mobile-menu__nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu__nav li a {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-grey);
    text-decoration: none;
    letter-spacing: -1px;
}

.mobile-menu__cta {
    margin-top: auto;
    padding-top: 40px;
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-grey);
    text-decoration: none;
}

@media (max-width: 768px) {
    :root {
        --content-padding: 20px;
        --text-h1: 36px;
        --text-h2: 30px;
        --text-body: 18px;
    }

    /* Header mobile: hide top-bar and desktop menu */
    .top-bar {
        display: none;
    }

    .nav-bar__menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
        right: 10px;
    }

    .nav-bar {
        padding: 16px var(--content-padding) 16px;
    }

    .nav-bar__logo-row {
        margin-top: 0;
        height: 60px;
        padding-right: 48px; /* space for hamburger */
    }

    /* Grid lines hidden on mobile */
    .grid-lines {
        display: none;
    }

    .cards-grid .card {
        flex: 1 1 100%;
    }

    .cards-grid--pacchetti {
        grid-template-columns: 1fr;
    }

    .event-card-wrap {
        width: 100%;
    }

    .event-card {
        flex-direction: column;
    }

    .event-card__image,
    .event-card__body {
        width: 100%;
    }

    .footer__columns {
        flex-direction: column;
    }

    .footer__menu {
        min-width: auto;
        flex-direction: column;
    }

    .footer__info {
        align-items: flex-start;
    }

    .prefooter {
        flex-direction: column;
    }

    .prefooter__cta {
        width: 100%;
    }
}

/* ==========================================================================
   PHASE 9 — MOBILE: Shared Components
   ========================================================================== */

/* -- Tablet (1024px): grids that were missed by existing tablet block -- */
@media (max-width: 1024px) {
    .cards-grid--collezione {
        grid-template-columns: repeat(2, 1fr);
    }

    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 20px;
    }

    /* Event cards: 4-up → 2-up on tablet */
    .event-card-wrap {
        width: calc(50% - 10px);
    }
}

/* -- Mobile (768px): shared components -- */
@media (max-width: 768px) {
    /* Navbar: constrain logo row width, nudge logo up */
    .nav-bar__logo-row {
        width: 90%;
    }

    .nav-bar__logo {
        top: -8px;
    }

    /* Section padding: 64px → 40px */
    .section {
        padding: 40px 0;
    }

    /* Collezione grid: 2-col → 1-col */
    .cards-grid--collezione {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Book grid: remove side margin, 2-col on mobile */
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 0;
        gap: 16px;
    }

    /* Featured card: reduce height, adjust overlay position */
    .card--featured__image {
        height: 280px;
    }

    .card--featured__overlay {
        top: 24px;
        left: 20px;
        right: 20px;
    }

    .card--featured__overlay .h3 {
        font-size: 24px;
        line-height: 1.2;
    }
}

/* ==========================================================================
   PHASE 9 — MOBILE: Homepage
   ========================================================================== */
@media (max-width: 768px) {
    /* Homepage hero: reduce min-height and gap */
    .hero {
        min-height: 350px;
        gap: 24px;
        padding: 40px var(--content-padding);
    }

    .hero__heading {
        font-size: var(--text-h1);
    }

    /* Homepage swiper strip: reduce height */
    .hero-swiper {
        height: 200px;
    }

    .hero-swiper .swiper-slide img {
        height: 200px;
    }

    /* Pacchetti grid: 2 columns on mobile */
    .cards-grid.cards-grid--pacchetti {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Event card dot: center on mobile */
    .event-card-wrap .card__dot {
        margin-left: calc(50% - 5px);
    }
}

/* ==========================================================================
   PHASE 9 — MOBILE: Libreria
   ========================================================================== */
@media (max-width: 768px) {
    /* Quote: scale 48px → 30px, line-height proportional */
    .libreria-quote p {
        font-size: 30px;
        line-height: 32px;
    }

    .libreria-quote cite {
        font-size: 20px;
        line-height: 24px;
    }

    /* Carousel: reduce slide height 500px → 250px */
    .libreria-slide {
        height: 250px;
    }

    /* Section spacing: reduce margin between libreria sections */
    .libreria-section {
        margin: 24px 0;
    }

    .libreria-section__inner {
        padding: 24px var(--content-padding);
    }
}

/* ==========================================================================
   PHASE 9 — MOBILE: Shop / Proposte
   ========================================================================== */
@media (max-width: 768px) {
    /* Collezione filters: ensure chips wrap tightly */
    .collezione-filters {
        gap: 8px;
        justify-content: flex-start;
    }

    .collezione-filters .btn--chip {
        font-size: 14px;
        padding: 6px 12px;
    }

    /* Load more button: ensure full width on mobile */
    .load-more-wrap {
        padding: 0 var(--content-padding);
    }
}

/* ==========================================================================
   PHASE 9 — MOBILE: Single Product
   ========================================================================== */
@media (max-width: 768px) {
    /* Product hero actions: tighten spacing when stacked */
    .product-hero__actions {
        gap: 12px;
    }

    .product-hero__meta {
        font-size: 14px;
    }

    /* Qty selector: compact on mobile */
    .product-hero__qty {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ==========================================================================
   PHASE 9 — MOBILE: Single Consiglio
   ========================================================================== */
@media (max-width: 768px) {
    /* Card consiglio: auto height; on mobile show only the default (name),
       hide the hover-expanded panel entirely (no hover on touch). */
    .card--consiglio {
        height: auto;
        min-height: 300px;
    }

    .card--consiglio__expanded {
        display: none;
    }

    /* Vertical video: cap height to prevent full-screen takeover */
    .consiglio-video--vertical {
        max-height: 400px;
    }

    .consiglio-video--vertical iframe {
        max-height: 400px;
    }

    /* Consiglio content: reduce padding */
    .consiglio-content {
        padding: var(--content-padding);
    }

    /* Back link: tighten positioning */
    .back-link {
        top: var(--space-xl);
    }
}

/* ==========================================================================
   PHASE 9 — MOBILE: Archives (Parola di, Incontri, WC Taxonomy)
   ========================================================================== */
@media (max-width: 768px) {
    /* Parola di: section-title max-width → full width on mobile */
    .section-title {
        max-width: 100%;
        padding: 0 var(--content-padding);
        margin: 20px 0;
    }

    /* Incontri: event card image height when stacked */
    .event-card__image {
        height: 200px;
    }

    .event-card__image img {
        height: 200px;
        object-fit: cover;
    }

    /* Incontri/Parola di filters: tighter chips */
    .eventi-filters {
        gap: 8px;
        padding: 0 var(--content-padding);
    }
}

/* ==========================================================================
   PHASE 9 — MOBILE: Generic Page (Chi Siamo, Policy, Terms)
   ========================================================================== */
@media (max-width: 768px) {
    /* Entry content: scale raw 24px → 18px to match --text-body on mobile */
    .entry-content {
        font-size: 18px;
        line-height: 1.6;
        padding: 0 var(--content-padding);
    }

    .entry-content h2 {
        font-size: var(--text-h2);
    }

    .entry-content h3 {
        font-size: 22px;
    }
}

/* ==========================================================================
   PHASE 9 — MOBILE: Contatti
   ========================================================================== */
@media (max-width: 768px) {
    /* Contatti layout gap: reduce vertical gap when stacked */
    .contatti-layout {
        gap: 32px;
    }

    /* Form area: reduce border-radius on small screens */
    .contatti-form-area {
        border-radius: 16px;
        padding: 24px;
    }

    /* Intro card: mirror form-area mobile radius/padding */
    .contatti-layout__intro {
        border-radius: 16px;
        padding: 24px;
    }

    /* Contact info section: tighter spacing */
    .contatti-layout__intro .h1 {
        font-size: var(--text-h1);
    }
}

/* ==========================================================================
   PHASE 10 — Cross-page desktop fixes
   ========================================================================== */

/* PH10-NAV: Current/hover nav item bold */
.nav-bar__menu .current-menu-item > a,
.nav-bar__menu .current-menu-ancestor > a,
.nav-bar__menu a:hover {
    font-weight: 700;
}

/* PH10-LIB16: Libreria slides always 16:9 */
.libreria-slide {
    height: auto;
    aspect-ratio: 16 / 9;
}

/* PH10-HERO16: Hero slides always 16:9 */
.hero__image {
    height: auto;
    aspect-ratio: 16 / 9;
}

/* PH10-ACCOUNT: My Account layout */
.woocommerce-account .woocommerce {
    justify-content: space-between;
}
.woocommerce-account .woocommerce h2 {
    flex: 1;
}
.woocommerce form.login {
    min-width: 66%;
}

/* PH10-SHOPCSS: Shop card + button tweaks */
.card--collezione__image {
    justify-content: center;
}
.card__author {
    font-size: var(--text-body);
}
.btn--load-more {
    height: 80px;
}

/* PH10-PLAY: Card consiglio play icon overlay */
.card--consiglio .card__image {
    position: relative;
}
.card__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
}
.card--consiglio:hover .card__play-icon {
    opacity: 0.8;
}

/* PH10-PACFEAT: 2 card--featured side by side */
.cards-grid--pacchetti-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: var(--space-lg);
}

@media (max-width: 767px) {
    .cards-grid--pacchetti-featured {
        grid-template-columns: 1fr;
    }
}

/* PH10-SIDEBAR: Sidebar cart panel */
.sidebar-cart {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
}
.sidebar-cart.is-open {
    pointer-events: auto;
    visibility: visible;
}
.sidebar-cart__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-cart.is-open .sidebar-cart__overlay {
    opacity: 1;
}
.sidebar-cart__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}
.sidebar-cart.is-open .sidebar-cart__panel {
    transform: translateX(0);
}
.sidebar-cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl);
    border-bottom: 1px solid #eee;
}
.sidebar-cart__title {
    font-family: var(--font-body);
    font-size: var(--text-h4);
    font-weight: 700;
    margin: 0;
}
.sidebar-cart__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: var(--color-grey);
}
.sidebar-cart__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-xl);
}
.sidebar-cart__items {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}
.sidebar-cart__item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}
.sidebar-cart__item-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}
.sidebar-cart__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-cart__item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-cart__item-name {
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: 600;
}
.sidebar-cart__item-qty {
    font-size: 14px;
    color: #888;
}
.sidebar-cart__item-price {
    font-size: var(--text-small);
    font-weight: 700;
}
.sidebar-cart__footer {
    margin-top: auto;
    padding-top: var(--space-xl);
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.sidebar-cart__subtotal {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: 700;
}
.sidebar-cart__shipping {
    font-size: 16px;
    font-weight: 400;
    color: #888;
}
.sidebar-cart__total {
    padding-top: var(--space-md);
    border-top: 1px solid #eee;
    font-size: var(--text-h4);
}
.sidebar-cart__btn {
    display: block;
    text-align: center;
    padding: 12px 24px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}
.sidebar-cart__btn.btn--primary {
    background: var(--color-yellow);
    color: var(--color-grey);
    border: 2px solid var(--color-yellow);
}
.sidebar-cart__btn.btn--primary:hover {
    background: var(--color-shadow-yellow);
    border-color: var(--color-shadow-yellow);
}
.sidebar-cart__item-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #888;
    padding: 0 4px;
    margin-left: auto;
    flex-shrink: 0;
    transition: color 0.2s;
}
.sidebar-cart__item-remove:hover {
    color: #1a1a1a;
}
.sidebar-cart__clear {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    color: #888;
    text-decoration: underline;
    padding: 0;
    text-align: center;
    transition: color 0.2s;
}
.sidebar-cart__clear:hover {
    color: #1a1a1a;
}
.sidebar-cart__empty {
    text-align: center;
    font-size: var(--text-body);
    color: #888;
    padding: var(--space-3xl) 0;
}

/* Cart toggle button reset (was <a>, now <button>) */
#cart-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    position: relative;
}

/* PH10-FIX: Featured card gradient overlay */
.card--featured__image {
    position: relative;
}
.card--featured__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #45454594, transparent);
    width: 100%;
    height: 100%;
}

/* PH10-FIX: Mobile fixes */
@media (max-width: 768px) {
    .footer__top {
        flex-direction: column;
    }
    .mobile-menu {
        max-width: 100vw;
    }
    .cards-grid.cards-grid--collezione,
    .cards-grid.cards-grid--consiglio {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .cards-grid.cards-grid--consiglio .card--consiglio,
    .cards-grid.cards-grid--collezione .card {
        min-width: 0;
    }
    .section {
        padding: 20px 0;
    }
    li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads {
        display: none;
    }
    .entry-content,
    .wp-block-woocommerce-checkout-order-summary-block {
        padding: 0;
    }
    .wc-block-cart {
        gap: 20px;
    }
    .hero--dark .back-link {
        position: relative;
        top: 0;
    }
    .consiglio-video--vertical {
        max-height: max-content;
    }
    .consiglio-video--vertical iframe {
        max-height: max-content;
    }
}

/* ==========================================================================
   PHASE 11 — Eventi empty state
   ========================================================================== */

.eventi-empty {
    text-align: center;
    margin: var(--space-xl) 0;
}

/* ==========================================================================
   PHASE 11 — Mobile: prevent horizontal scroll
   ========================================================================== */

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
}

/* ==========================================================================
   PHASE 12 — Home mobile sliders (mobile-only; DOM injected by JS)
   ========================================================================== */
@media (max-width: 768px) {
    .home-mobile-swiper {
        width: 100%;
        padding: 0 11vw; /* side peek of adjacent slides */
        overflow: visible;
        margin: 0;
    }

    /* When JS injects .swiper-wrapper onto an existing grid, neutralise the
       grid layout so Swiper's flex row can take over. !important defeats the
       existing .cards-grid.cards-grid--pacchetti { display:grid } and any
       other equal-specificity rule. flex-direction:row defeats Swiper's own
       .swiper-vertical default if applied. */
    .home-mobile-swiper > .swiper-wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        margin: 0 !important;
    }

    .home-mobile-swiper .swiper-slide {
        width: 78vw !important;
        max-width: 320px;
        height: auto !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
        display: block !important;
    }

    .home-mobile-swiper--pacchetti .swiper-slide {
        width: 80vw !important;
        max-width: 340px;
    }
}

/* ==========================================================================
   PHASE 12 — WooCommerce typography + order actions
   ========================================================================== */

.woocommerce-notices-wrapper {
    font-family: var(--font-body);
    font-size: 16px;
}

.woocommerce-MyAccount-content {
    font-family: var(--font-body);
    font-size: var(--text-body);
}

td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions {
    display: flex;
    gap: 4px;
}

/* ==========================================================================
   PHASE 12 — WC notices: ensure visibility on cart/checkout/account
   so failed payments / errors don't go unnoticed
   ========================================================================== */

.woocommerce-notices-wrapper:empty {
    display: none;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    display: block;
    margin: 0 0 16px 0;
    padding: 14px 18px;
    border-radius: 8px;
    border-left: 4px solid;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.4;
    list-style: none;
}

.woocommerce-message {
    background: #e8f5e9;
    border-left-color: #2e7d32;
    color: #1b5e20;
}

.woocommerce-error {
    background: #fdecea;
    border-left-color: #c62828;
    color: #8e1c1c;
}

.woocommerce-error li {
    list-style: none;
    margin: 0;
}

.woocommerce-info {
    background: #fff8e1;
    border-left-color: #f9a825;
    color: #6d4c00;
}

.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

/* ==========================================================================
   POST-LIVE — Letti da noi cover alignment
   ========================================================================== */

#letti-da-noi .book-item__cover {
    justify-content: start;
}

/* ==========================================================================
   POST-LIVE — Mobile: central decorative line + lock html horizontal scroll
   ========================================================================== */

@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }

    /* Re-enable grid lines on mobile but render ONE central vertical line
       instead of the four-column desktop pattern. */
    .grid-lines {
        display: block;
    }

    .grid-lines__inner {
        display: block;
        position: relative;
    }

    .grid-lines__inner span {
        display: none;
    }

    .grid-lines__inner::after {
        content: '';
        position: absolute;
        left: calc(50% + 1px);
        top: 0;
        bottom: 0;
        width: 1px;
        background: #454545;
    }
}
