/* ==========================================================================
   Milano Cosmetica — e-commerce (tema figlio di Blocksy)
   Parte 1: gli stili del catalogo (assets/styles/app.css del catalogo, senza la scheda prodotto
   del catalogo e i moduli). Parte 2 (in fondo): WooCommerce e Blocksy con lo stesso aspetto.
   ========================================================================== */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }

:root {
    --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

    --ink: #1d1d1d;
    --ink-soft: #4a4a4a;
    --muted: #7d7d7d;
    --faint: #b9b9b9;
    --line: #e4e4e4;
    --paper: #ffffff;
    --surface: #f2f2f2;
    --surface-strong: #ececec;
    --button-soft: #ecece8;
    --night: #1f1c1b;

    --pastel-blue: #d6eaec;
    --pastel-pink: #f7e0e6;
    --pastel-sand: #efe7dc;
    --pastel-green: #e2ede0;
    --accent: #cfe5e7;
    --accent-ink: #1f4d52;
    --whatsapp: #1fa855;
    --danger: #b3261e;
    --success: #2f6b3b;

    --radius-xl: 40px;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 14px;

    --frame: clamp(8px, 1.2vw, 16px);
    --frame-max: 1440px;
    --content: 1120px;
    --gutter: clamp(16px, 4vw, 40px);
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, .06);
    --shadow-float: 0 18px 50px rgba(20, 16, 14, .16);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.menu-open { overflow: hidden; }

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }

/* --- Animazioni ---------------------------------------------------------- */
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.04); } to { transform: scale(1); } }

/* Comparsa allo scroll: lo stato nascosto lo applica solo JavaScript (controller "reveal"). */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* --- Header -------------------------------------------------------------- */
/* La barra ha il suo aspetto definitivo fin dal primo disegno della pagina (nessuna animazione
   al caricamento): contenitore in vetro grigio chiaro, fisso in alto, leggermente piu' stretto
   dell'hero e con la stessa distanza dallo sfondo in alto e ai lati. JavaScript (controller "header")
   aggiunge solo il bordo scuro dopo un po' di scroll. */
.header-slot { position: relative; z-index: 30; }
.header-slot--overlay { position: absolute; inset: 0 0 auto 0; }
.page-hero .header-slot--overlay { position: relative; min-height: 104px; }
.header-slot--solid { min-height: 120px; }

.site-header {
    --bar-inset: clamp(6px, 1.5vw, 20px);
    position: fixed; top: calc(var(--frame) + var(--bar-inset)); left: 0; right: 0; z-index: 60;
    display: flex; align-items: center; gap: clamp(20px, 3vw, 44px);
    width: calc(100% - 2 * (var(--frame) + var(--bar-inset))); max-width: calc(var(--frame-max) - 2 * var(--bar-inset)); margin-inline: auto;
    /* il contenuto resta allineato alla colonna della pagina */
    padding-inline: max(12px, calc(var(--gutter) - var(--frame) - var(--bar-inset)), calc((100% - var(--content)) / 2 - max(var(--frame) + var(--bar-inset), (100% - var(--frame-max)) / 2 + var(--bar-inset))));
    padding-block: 12px;
    border-radius: var(--radius-md);
    color: var(--ink);
    isolation: isolate;
}
/* Effetto vetro su un livello dietro il contenuto: un backdrop-filter sulla barra stessa renderebbe
   la barra il riferimento degli elementi "fixed" al suo interno (es. il menu mobile a tutto schermo). */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: rgba(242, 242, 242, .62);
    -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
    box-shadow: 0 0 0 2px rgba(29, 29, 29, 0), 0 14px 36px -10px rgba(20, 16, 14, 0);
    transition: box-shadow .6s var(--ease-out);
}
/* dopo un po' di scroll compare il bordo scuro, che stacca la barra anche dalle pagine bianche */
.header-slot.is-stuck .site-header::before { box-shadow: 0 0 0 2px rgba(29, 29, 29, .12), 0 14px 36px -10px rgba(20, 16, 14, .16); }

.brand { flex: none; display: inline-flex; }
.brand img { height: 46px; width: auto; }

.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: clamp(20px, 2.8vw, 40px); list-style: none; margin: 0; padding: 0; }
.main-nav a { position: relative; font-size: 16px; font-weight: 400; letter-spacing: .005em; white-space: nowrap; padding-block: 6px; }
.main-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-button {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: transparent; border: 0; cursor: pointer; color: inherit;
    transition: background-color .25s;
}
.icon-button:hover { background: rgba(29, 29, 29, .06); }
.icon-button svg { width: 20px; height: 20px; }

/* <details> usati come dropdown: ricerca, menu mobile, WhatsApp */
.dropdown { position: relative; }
.dropdown > summary, .mobile-menu > summary, .wa-dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker, .mobile-menu > summary::-webkit-details-marker, .wa-dropdown > summary::-webkit-details-marker { display: none; }
.search-panel {
    position: absolute; right: 0; top: calc(100% + 10px);
    width: min(380px, calc(100vw - 32px));
    padding: 10px; border-radius: var(--radius-md);
    background: #fff; color: var(--ink); box-shadow: var(--shadow-float);
    animation: pop-in .35s var(--ease-out);
}
.search-form { display: flex; gap: 6px; }
.search-form input {
    flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 16px; background: var(--surface);
}
.search-form button { flex: none; }

/* Menu mobile a tutto schermo (<details>, funziona anche senza JS) */
.mobile-menu { display: none; }
.menu-button { position: relative; z-index: 101; }
.menu-icon { display: grid; place-items: center; }
.menu-icon--close { display: none; }
.mobile-menu[open] .menu-icon--open { display: none; }
.mobile-menu[open] .menu-icon--close { display: grid; }
.mobile-menu[open] > summary { color: var(--ink); background: var(--surface); }
.mobile-panel {
    position: fixed; inset: 0; z-index: 100; overflow-y: auto;
    display: flex; flex-direction: column; gap: 28px;
    padding: 110px var(--gutter) 40px; background: #fff; color: var(--ink);
    animation: fade-in .3s ease;
}
.mobile-panel-brand { position: absolute; top: 22px; left: var(--gutter); }
.mobile-panel-brand img { height: 48px; width: auto; }
.mobile-nav { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { animation: fade-up .5s var(--ease-out) both; }
.mobile-nav li:nth-child(2) { animation-delay: .04s; }
.mobile-nav li:nth-child(3) { animation-delay: .08s; }
.mobile-nav li:nth-child(4) { animation-delay: .12s; }
.mobile-nav li:nth-child(5) { animation-delay: .16s; }
.mobile-nav a { display: block; padding: 10px 0; font-size: 32px; line-height: 1.2; letter-spacing: -.02em; }
.mobile-nav a[aria-current="page"] { color: var(--muted); }
.mobile-search input { background: var(--surface); }
.mobile-panel-contacts { margin-top: auto; display: grid; gap: 10px; font-size: 15px; }
.mobile-panel-contacts a { display: inline-flex; align-items: center; gap: 10px; }
.mobile-panel-contacts svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
    .header-slot--solid { min-height: 88px; }
    .page-hero .header-slot--overlay { min-height: 76px; }
    .site-header { gap: 12px; padding-block: 8px; border-radius: var(--radius-sm); }
    .brand img { height: 42px; }
    .main-nav { display: none; }
    .mobile-menu { display: block; }
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 10px 24px;
    border-radius: 999px; border: 1px solid transparent;
    font-size: 16px; font-weight: 400; line-height: 1.2;
    cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg:last-child { transform: translateX(2px); }
.btn:active { transform: scale(.98); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #3a3a3a; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #bcdcdf; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--whatsapp { border-color: var(--whatsapp); color: #146c38; }
.btn--whatsapp:hover { background: var(--whatsapp); color: #fff; }
.btn--small { min-height: 38px; padding: 6px 16px; font-size: 14px; }

/* --- Hero home (slider con scroll-snap: senza JS si scorre a mano) -------- */
.hero {
    position: relative; margin: var(--frame) auto; width: calc(100% - 2 * var(--frame)); max-width: var(--frame-max);
    border-radius: var(--radius-xl); overflow: hidden; background: #8c6a55; color: #fff;
    /* proporzione vicina a quella delle foto (circa 2:1): riempie senza ingrandire troppo l'immagine */
    height: clamp(560px, 46vw, 660px);
}
.hero-track {
    position: absolute; inset: 0; display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: flex-end; overflow: hidden; }
.hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide > img.focus-cotton { object-position: 50% 62%; }
.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .4) 0%, rgba(0, 0, 0, .1) 55%, rgba(0, 0, 0, 0) 100%),
                linear-gradient(0deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0) 45%);
}
.hero-content {
    position: relative; z-index: 1;
    width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto;
    padding-bottom: clamp(48px, 7vw, 56px);
}
.hero-title {
    font-size: clamp(46px, 7vw, 96px); font-weight: 400; line-height: .98; letter-spacing: -.035em;
    margin-bottom: 30px; max-width: 11ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; }
/* Ingresso morbido del testo e lieve zoom-out dell'immagine a ogni cambio di slide */
.hero-slide.is-active .hero-title { animation: fade-up 1s var(--ease-out) both; }
.hero-slide.is-active .hero-actions { animation: fade-up 1s var(--ease-out) .15s both; }
.hero-slide.is-active > img { animation: hero-zoom 9s ease-out both; }

.hero-dots {
    position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--content)) / 2 + 170px));
    /* centrata verticalmente sulla riga dei pulsanti (alti 48px) */
    bottom: calc(clamp(48px, 7vw, 56px) + 12px); display: flex; align-items: center; height: 24px; padding: 0 11px; overflow: hidden;
    border-radius: 999px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-dots ol, .rail-dots ol { position: relative; z-index: 1; display: flex; align-items: center; gap: 7px; margin: 0; padding: 0; list-style: none; }
.hero-dots li, .rail-dots li { display: flex; }
.hero-dots button { display: block; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; transition: background-color .3s, transform .3s; }
.hero-dots button[aria-current="true"] { background: #fff; transform: scale(1.15); }
/* Avanzamento dell'autoplay: animazione CSS eseguita dal browser (fluida anche se la pagina e' occupata).
   Lo sfondo si riempie fino al cambio di slide e alla fine sfuma, senza azzerarsi di scatto. */
.carousel-progress {
    position: absolute; inset: 0; z-index: 0; background: rgba(255, 255, 255, .4);
    transform: scaleX(0); transform-origin: left center; will-change: transform, opacity;
}
.is-running > .carousel-progress { animation: carousel-progress var(--carousel-duration, 7s) linear forwards; }
.is-paused > .carousel-progress { animation-play-state: paused; }
@keyframes carousel-progress {
    0% { transform: scaleX(0); opacity: 1; }
    93% { transform: scaleX(1); opacity: 1; animation-timing-function: ease-out; }
    100% { transform: scaleX(1); opacity: 0; }
}

@media (max-width: 700px) {
    .hero { height: auto; min-height: 600px; border-radius: var(--radius-lg); }
    .hero-slide > img { object-position: 48% 50%; }
    .hero-content { padding-bottom: 76px; }
    .hero-title { margin-bottom: 22px; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn { flex: 1 1 auto; }
    .hero-dots { right: auto; left: 50%; transform: translateX(-50%); bottom: 24px; }
}

/* --- Hero delle pagine interne (pattern "Account" delle reference) -------- */
.page-hero {
    position: relative; margin: var(--frame) auto; width: calc(100% - 2 * var(--frame)); max-width: var(--frame-max);
    border-radius: var(--radius-xl); overflow: hidden; color: #fff; background: #8c6a55;
    min-height: clamp(280px, 34vw, 360px);
    display: flex; flex-direction: column;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 9s ease-out both; }
.page-hero > img.focus-low { object-position: 50% 62%; }
.page-hero > img.focus-top { object-position: 50% 22%; }
.page-hero::after {
    content: ""; position: absolute; inset: 0;
    /* testo sempre bianco e leggibile: sfumatura scura da sinistra (dove sta il titolo) e dal basso */
    background: linear-gradient(90deg, rgba(20, 16, 14, .52) 0%, rgba(20, 16, 14, .26) 50%, rgba(20, 16, 14, .06) 85%),
                linear-gradient(0deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, 0) 60%);
}
.page-hero-title, .page-hero-lead, .hero-title { text-shadow: 0 1px 20px rgba(0, 0, 0, .22); }
.page-hero--strong::after { background: linear-gradient(90deg, rgba(40, 24, 20, .62) 0%, rgba(40, 24, 20, .28) 60%, rgba(40, 24, 20, .12) 100%); }
.page-hero-content {
    position: relative; z-index: 1; margin-top: auto;
    width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto;
    padding-bottom: clamp(28px, 4vw, 40px);
}
.page-hero-title { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.03em; animation: fade-up 1s var(--ease-out) both; }
.page-hero-lead { margin: 12px 0 0; max-width: 52ch; font-size: 15px; opacity: .96; animation: fade-up 1s var(--ease-out) .12s both; }
@media (max-width: 700px) { .page-hero { border-radius: var(--radius-lg); min-height: 300px; } }

/* --- Breadcrumb ---------------------------------------------------------- */
.breadcrumb { margin-block: 26px 34px; font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "|"; margin-right: 6px; color: var(--faint); }
.breadcrumb a:hover { text-decoration: underline; }

/* --- Sections ------------------------------------------------------------ */
.section { margin-block: clamp(64px, 9vw, 120px); }
.section--tight { margin-block: clamp(40px, 6vw, 72px); }
.section-title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.02em; }
.section-title--spaced { margin-bottom: 26px; }
.section-title sup, .tab-link sup { font-size: 12px; font-weight: 300; vertical-align: super; margin-left: 4px; letter-spacing: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-more { margin: 22px 0 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Tab grandi delle categorie (home): link alle pagine categoria, potenziati da JS */
.category-tabs {
    display: flex; gap: clamp(20px, 3.4vw, 46px); white-space: nowrap;
    overflow-x: auto; scrollbar-width: none;
    /* Un'area a scorrimento orizzontale ritaglia anche in verticale: margine interno + margine negativo
       spostano il bordo di ritaglio fuori dal testo (lettere come "g" non vengono piu' tagliate)
       senza cambiare la posizione dei titoli. */
    padding: 8px 12px 18px; margin: -8px -12px 16px;
    scroll-padding-inline: 12px;
}
.category-tabs::-webkit-scrollbar { display: none; }
.tab-link {
    font-size: clamp(28px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -.02em;
    color: var(--faint); transition: color .35s; background: none; border: 0; padding: 0; cursor: pointer;
}
.tab-link:hover, .tab-link[aria-selected="true"], .tab-link.is-active { color: var(--ink); }
.tab-panel[hidden] { display: none; }
.tab-panel:not([hidden]) { animation: fade-in .5s ease; }

/* --- Product card -------------------------------------------------------- */
.product-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    padding: 12px 12px 18px; border-radius: var(--radius-lg);
    background: #fff; box-shadow: 0 0 0 1px var(--line);
    transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.product-card:hover {
    transform: translateY(-4px);
    /* ombra delicata e poco estesa */
    box-shadow: 0 0 0 1px rgba(29, 29, 29, .12), 0 8px 18px -6px rgba(20, 16, 14, .08);
}
.product-card-media {
    aspect-ratio: 1 / 1; display: grid; place-items: center; margin-bottom: 16px;
    border-radius: var(--radius-md); overflow: hidden; background: var(--surface);
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding-inline: 8px; }
.product-card-category { font-size: 11px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.product-card-name { font-size: 14px; font-weight: 400; line-height: 1.35; margin: 0; }
.product-card-name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.product-card-name a:focus-visible { outline: none; }
.product-card:has(a:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.product-card-size { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 20px 4px 0 8px; }
.price { font-size: 22px; font-weight: 300; letter-spacing: -.01em; }
.price--muted { font-size: 14px; color: var(--muted); }
.card-cta { font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.card-plus {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
    background: var(--button-soft); transition: background-color .35s, color .35s;
}
.card-plus svg { width: 16px; height: 16px; transition: transform .45s var(--ease-out); }
.product-card:hover .card-plus { background: var(--ink); color: #fff; }
.product-card:hover .card-plus svg { transform: rotate(90deg); }

.image-placeholder { width: 100%; height: 100%; min-height: 160px; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--faint); font-size: 12px; background: var(--surface-strong); }
.image-placeholder svg { width: 36px; height: 36px; }

/* --- Rail orizzontale (scroll-snap) ------------------------------------- */
.rail {
    list-style: none;
    /* spazio interno per sollevamento e ombre delle card, compensato dal margine negativo:
       le card restano allineate alla colonna ma non vengono piu' ritagliate */
    /* lo spazio laterale non supera il margine della pagina, altrimenti il rail sborderebbe dallo schermo */
    --rail-bleed: min(20px, var(--gutter));
    padding: 16px var(--rail-bleed) 36px; margin: -16px calc(-1 * var(--rail-bleed)) -30px;
    scroll-padding-inline: var(--rail-bleed);
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3);
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail:focus-visible { outline-offset: 6px; }
.rail-dots { display: flex; justify-content: center; margin-top: 26px; }
.rail-dots ol { height: 22px; padding: 0 10px; border-radius: 999px; background: var(--surface); }
.rail-dots button { display: block; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #c9c9c9; cursor: pointer; transition: background-color .3s; }
.rail-dots button[aria-current="true"] { background: var(--ink); }
@media (max-width: 900px) { .rail { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 600px) { .rail { grid-auto-columns: 72%; gap: 12px; } }

/* --- Griglia catalogo ---------------------------------------------------- */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 16px; white-space: nowrap;
    border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 400;
    transition: background-color .3s, color .3s;
}
.chip:hover { background: var(--surface-strong); }
.chip[aria-current="page"] { background: var(--ink); color: #fff; }
.chip small { font-size: 11px; opacity: .65; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.field-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.input, .select {
    min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 6px 16px; font-size: 14px;
}
.select { padding-right: 34px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.results-count { font-size: 13px; color: var(--muted); margin: 0 0 18px; }

.empty-state { text-align: center; padding: 64px 24px; border-radius: var(--radius-lg); background: var(--surface); }
.empty-state h2 { font-size: 26px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); }

@media (max-width: 640px) {
    /* griglia (non flex column + wrap: la riga si dimensionerebbe sui chip e sborderebbe) */
    .catalog-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .catalog-toolbar nav { min-width: 0; margin-inline: calc(-1 * var(--gutter)); }
    .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter); }
    .chips::-webkit-scrollbar { display: none; }
    .catalog-filters { display: grid; grid-template-columns: 1fr auto; }
    .catalog-filters .input { grid-column: 1 / -1; }
    /* griglia a 2 colonne con card compatte */
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-grid .product-card { padding: 8px 8px 12px; border-radius: var(--radius-md); }
    .product-grid .product-card-media { border-radius: 14px; margin-bottom: 10px; }
    .product-grid .product-card-body { padding-inline: 4px; }
    .product-grid .product-card-footer { padding-inline: 4px 0; }
    .product-grid .product-card-name { font-size: 13px; }
    .product-grid .product-card-category { font-size: 10px; }
    .product-grid .product-card-footer { padding-top: 12px; }
    .product-grid .price { font-size: 17px; }
    .product-grid .card-plus { width: 36px; height: 36px; border-radius: 12px; }
}

/* --- Editoriale ("Curated Conscious Beauty") ------------------------------ */
.editorial-title { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.035em; margin-bottom: clamp(32px, 4vw, 52px); }
.editorial-layout {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px clamp(32px, 6vw, 96px);
    align-items: center;
}
.editorial-copy .editorial-title { margin-bottom: clamp(24px, 3vw, 36px); }
.editorial-text { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 46ch; }
.editorial-text p { margin: 0 0 1em; }
.editorial-text p:last-child { margin: 1.4em 0 0; }
.arch-figure { margin: 0; }
@media (max-width: 760px) {
    .editorial-layout { grid-template-columns: 1fr; }
    .editorial-text { font-size: 16px; max-width: none; }
}

.arch {
    margin: 0; border-radius: 46% 46% var(--radius-xl) var(--radius-xl) / 58% 58% var(--radius-xl) var(--radius-xl);
    /* stesse proporzioni della foto (1200x580): viene solo rimpicciolita, mai ingrandita */
    overflow: hidden; aspect-ratio: 1200 / 580; background: var(--surface);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.arch-caption { margin: 16px auto 0; max-width: 60ch; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 700px) {
    /* su mobile un formato piu' orizzontale e un arco morbido: la foto (panoramica) resta leggibile */
    .arch:not(.arch--portrait) { aspect-ratio: 5 / 4; border-radius: 50% 50% var(--radius-md) var(--radius-md) / 26% 26% var(--radius-md) var(--radius-md); }
    .arch.arch--portrait { border-radius: var(--radius-lg); }
    .arch img { object-position: 58% 30%; }
}

/* --- Card dei valori (pastello) ------------------------------------------ */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.value-card { border-radius: var(--radius-lg); padding: 26px 24px 30px; min-height: 210px; transition: transform .5s var(--ease-out); }
.value-card:hover { transform: translateY(-3px); }
.value-card h3 { font-size: 30px; font-weight: 400; text-transform: lowercase; letter-spacing: -.02em; margin-bottom: 14px; }
.value-card p { font-size: 13px; line-height: 1.5; margin: 0; color: var(--ink-soft); }
.value-card--blue { background: var(--pastel-blue); }
.value-card--pink { background: var(--pastel-pink); }
.value-card--sand { background: var(--pastel-sand); }
.value-card--green { background: var(--pastel-green); }
@media (max-width: 700px) {
    .value-grid { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
    .value-grid::-webkit-scrollbar { display: none; }
    .value-card { scroll-snap-align: start; min-height: 180px; }
}

/* --- Instagram / laboratorio --------------------------------------------- */
.insta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.insta-grid a { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; display: block; background: var(--surface); }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.insta-grid a:hover img { transform: scale(1.05); }
@media (max-width: 800px) { .insta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .insta-grid a { border-radius: var(--radius-md); } }

/* --- Pagine informative -------------------------------------------------- */
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 80px); }
@media (max-width: 760px) { .two-columns { grid-template-columns: 1fr; } }
.lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; }

.split-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); }
.split-card > img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.split-card > img.split-card-portrait { object-position: 50% 28%; min-height: 460px; }
.split-card--reverse > img { order: 2; }
.split-card-body { padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.split-card .section-title { margin-bottom: 20px; }
.split-card-body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
    .split-card { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
    .split-card > img, .split-card > img.split-card-portrait { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
    .split-card--reverse > img { order: 0; }
}

.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; }
.check-list svg { flex: none; width: 18px; height: 18px; margin-top: 3px; }
/* --- Flash --------------------------------------------------------------- */
.flash { padding: 14px 20px; margin-bottom: 20px; border-radius: var(--radius-md); font-size: 14px; animation: fade-up .5s var(--ease-out); }
.flash-success { background: #e6f2e7; color: var(--success); }
.flash-error { background: #fbe9e8; color: var(--danger); }

/* --- Footer: un unico blocco scuro che contiene tutto -------------------- */
.site-footer {
    margin: clamp(80px, 10vw, 140px) auto var(--frame); width: calc(100% - 2 * var(--frame)); max-width: var(--frame-max);
    border-radius: var(--radius-xl); background: var(--night); color: #f3efec;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, .08);
}
.footer-inner {
    width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px 56px;
    padding-block: clamp(48px, 6vw, 72px) clamp(20px, 3vw, 28px);
}
.footer-brand { display: flex; flex-direction: column; gap: 32px; }
.footer-logo img { height: clamp(130px, 12vw, 170px); width: auto; }
.footer-claim { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.02em; margin: 0; color: #fff; max-width: 16ch; }
.footer-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content; gap: 24px 32px; align-self: end; }
.footer-col h2 { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; color: #a59d97; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: #e6e0db; }
.footer-col a { transition: color .25s; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-contacts a { display: inline-flex; gap: 10px; align-items: flex-start; }
.footer-contacts a[href^="mailto:"] { white-space: nowrap; }
.footer-contacts svg { flex: none; width: 17px; height: 17px; margin-top: 3px; opacity: .8; }
.footer-legal {
    grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
    margin-top: clamp(12px, 3vw, 28px); padding: 14px 20px; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .05); font-size: 12px; color: #a59d97;
}
@media (max-width: 760px) {
    .site-footer { border-radius: var(--radius-lg); }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 16px; }
    .footer-brand { flex-direction: row; align-items: center; gap: 20px; }
    .footer-logo img { height: 96px; }
    .footer-claim { font-size: 21px; }
    .footer-col--categories { display: none; }
    .footer-columns { grid-template-columns: 1fr; }
    .footer-legal { flex-direction: column; text-align: center; align-items: center; margin-top: 4px; }
}

/* --- WhatsApp: "Hai bisogno di aiuto?" ----------------------------------- */
.wa-widget {
    position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80;
    animation: fade-up .8s var(--ease-out) 1.2s both;
}
.wa-button {
    display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; cursor: pointer;
    border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px;
    box-shadow: var(--shadow-float), 0 0 0 1px rgba(0, 0, 0, .04);
    transition: transform .35s var(--ease-out), box-shadow .35s;
}
.wa-button:hover { transform: translateY(-2px); box-shadow: 0 22px 60px rgba(20, 16, 14, .22); }
.wa-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--whatsapp); color: #fff; }
.wa-icon svg { width: 24px; height: 24px; }
.wa-label strong { font-weight: 500; }
.wa-dropdown { position: relative; }
.wa-dropdown[open] .wa-button { box-shadow: 0 0 0 2px var(--whatsapp), var(--shadow-float); }
.wa-panel {
    position: absolute; right: 0; bottom: calc(100% + 12px); width: min(320px, calc(100vw - 32px));
    padding: 18px; border-radius: var(--radius-md); background: #fff; color: var(--ink);
    box-shadow: var(--shadow-float), 0 0 0 1px rgba(0, 0, 0, .04); animation: pop-in .35s var(--ease-out);
}
.wa-panel-title { font-size: 16px; font-weight: 500; margin: 0 0 2px; }
.wa-panel-text { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.wa-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wa-panel a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-sm); transition: background-color .25s; }
.wa-panel a:hover { background: var(--surface); }
.wa-panel a > span:nth-child(2) { flex: 1; display: grid; font-size: 14px; }
.wa-panel strong { font-weight: 400; }
.wa-panel small { color: var(--muted); font-size: 12px; }
.wa-panel a > svg { width: 16px; height: 16px; color: var(--muted); }
/* Posizione del pannello di scelta fuori dal pulsante fisso (scheda prodotto, footer) */
.wa-dropdown--below .wa-panel { top: calc(100% + 10px); bottom: auto; }
.wa-dropdown--start .wa-panel { left: 0; right: auto; }
.product-cta .wa-panel, .footer-contacts .wa-panel { z-index: 30; }
.footer-contacts .wa-dropdown > summary { cursor: pointer; }
.footer-wa { display: inline-flex; gap: 10px; align-items: flex-start; }
.footer-contacts .wa-panel { color: var(--ink); }
.footer-contacts .wa-panel a { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.footer-contacts .wa-panel svg { margin-top: 0; opacity: 1; }
.product-cta .wa-dropdown { display: flex; }
@media (max-width: 520px) { .product-cta .wa-dropdown { flex: 1 1 100%; } .product-cta .wa-dropdown .btn { flex: 1; } }
.wa-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e7f6ec; color: #146c38; font-weight: 500; }
@media (max-width: 600px) {
    .wa-button { padding: 6px; }
    .wa-label { display: none; }
    .wa-icon { width: 50px; height: 50px; }
}
html.menu-open .wa-widget { display: none; }

/* --- Pagine di errore ---------------------------------------------------- */
.error-page { padding-block: clamp(24px, 4vw, 48px) clamp(8px, 2vw, 24px); }
.error-card {
    max-width: 760px; margin-inline: auto; text-align: center;
    padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px);
    border-radius: var(--radius-xl); background: var(--surface);
    animation: fade-up .8s var(--ease-out) both;
}
.error-code {
    margin: 0 0 4px; font-size: clamp(96px, 18vw, 180px); font-weight: 300; line-height: .9;
    letter-spacing: -.06em; color: #dcdcdc;
}
.error-title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
.error-message { max-width: 48ch; margin: 0 auto 28px; color: var(--ink-soft); }
.error-search { max-width: 460px; margin: 0 auto 22px; }
.error-search input { background: #fff; }
.error-search .btn svg { width: 16px; height: 16px; }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.error-categories { margin-top: 36px; }
.error-categories p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.error-categories .chips { justify-content: center; flex-wrap: wrap; overflow: visible; padding-inline: 0; }
.error-categories .chip { background: #fff; }
.error-categories .chip:hover { background: var(--surface-strong); }
.error-contacts { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.error-contacts a { color: var(--ink); border-bottom: 1px solid currentColor; }
@media (max-width: 520px) { .error-actions .btn { flex: 1 1 100%; } }
/* Spazio sotto il footer su mobile, cosi' il pulsante WhatsApp non copre i contenuti */
@media (max-width: 600px) { body:has(.wa-widget) .site-footer { margin-bottom: 84px; } }

/* --- Fila scorrevole: frecce ai lati e sfumature (controller "scroller") ------------- */
.scroller { position: relative; }
.scroller-button {
    position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
    display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer; color: var(--ink);
    background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px var(--line), 0 6px 18px rgba(20, 16, 14, .08);
    opacity: 0; pointer-events: none; transition: opacity .3s ease, background-color .25s, scale .25s var(--ease);
}
.scroller-button svg { width: 18px; height: 18px; }
.scroller-button--prev { left: 0; }
.scroller-button--prev svg { rotate: 180deg; }
.scroller-button--next { right: 0; }
.scroller-button:hover { background: #fff; scale: 1.06; }
.scroller.can-prev .scroller-button--prev, .scroller.can-next .scroller-button--next { opacity: 1; pointer-events: auto; }
/* le tab hanno spazio interno in basso: le frecce si centrano sul testo */
.scroller--tabs .scroller-button { top: calc(50% - 13px); }

/* sfumatura sui lati da cui c'e' altro contenuto */
.scroller [data-scroller-target="track"] { --fade-prev: 0px; --fade-next: 0px; }
.scroller.can-prev [data-scroller-target="track"] { --fade-prev: 56px; }
.scroller.can-next [data-scroller-target="track"] { --fade-next: 56px; }
.scroller.can-prev [data-scroller-target="track"], .scroller.can-next [data-scroller-target="track"] {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-prev), #000 calc(100% - var(--fade-next)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-prev), #000 calc(100% - var(--fade-next)), transparent 100%);
}
/* su touch si scorre con il dito: frecce nascoste, restano le sfumature */
@media (hover: none) { .scroller-button { display: none; } }

/* Immagine verticale (sezione Eccellenza): stessi angoli arrotondati in alto e in basso */
.arch.arch--portrait {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
}
.arch.arch--portrait img { object-position: 50% 22%; }

/* ==========================================================================
   Parte 2 — WordPress, Blocksy e WooCommerce con l'aspetto del catalogo
   ========================================================================== */

/* Variabili di Blocksy (colori, caratteri, pulsanti, larghezza) allineate al catalogo */
body.mc-theme {
    --theme-font-family: var(--font);
    --theme-font-weight: 300;
    --theme-font-size: 15px;
    --theme-line-height: 1.6;
    --theme-text-color: var(--ink);
    --theme-headings-color: var(--ink);
    --theme-link-initial-color: var(--ink);
    --theme-link-hover-color: var(--ink-soft);
    --theme-border-color: var(--line);
    --theme-palette-color-1: var(--ink);
    --theme-palette-color-2: #3a3a3a;
    --theme-palette-color-3: var(--ink-soft);
    --theme-palette-color-4: var(--ink);
    --theme-palette-color-5: var(--line);
    --theme-palette-color-6: var(--surface);
    --theme-palette-color-7: #fafafa;
    --theme-palette-color-8: #fff;
    --theme-button-background-initial-color: var(--ink);
    --theme-button-background-hover-color: #3a3a3a;
    --theme-button-text-initial-color: #fff;
    --theme-button-text-hover-color: #fff;
    --theme-button-border-radius: 999px;
    --theme-button-min-height: 48px;
    --theme-button-font-weight: 400;
    --theme-form-field-border-radius: 999px;
    --theme-form-field-height: 48px;
    --theme-form-field-border-initial-color: var(--line);
    --theme-form-field-border-focus-color: var(--ink);
    --theme-form-field-background-initial-color: var(--surface);
    --theme-form-field-background-focus-color: #fff;
    --theme-normal-container-max-width: var(--content);
    --theme-narrow-container-max-width: 760px;
    font-family: var(--font); font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--paper);
}
.mc-theme h1, .mc-theme h2, .mc-theme h3, .mc-theme h4, .mc-theme h5, .mc-theme h6 { font-family: var(--font); font-weight: 400; letter-spacing: -.01em; }
/* i titoli prendono il colore della sezione (bianco su foto e piè di pagina scuro) */
.mc-theme .hero-section, .mc-theme .entry-content, .mc-theme .site-main, .mc-theme main#main { --theme-headings-color: var(--ink); }
.mc-theme .site-footer { --theme-headings-color: #a59d97; }
.mc-theme .site-footer .footer-col h2 { color: #a59d97; }
.mc-theme #main-container { background: var(--paper); }
.mc-theme .entry-content a:not(.btn):not(.button) { text-decoration: underline; text-underline-offset: 3px; }

/* Testata: menu di WordPress con l'aspetto del catalogo */
.main-nav ul li { margin: 0; }
.main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after { transform: scaleX(1); transform-origin: left; }
.mobile-nav .current-menu-item > a { color: var(--muted); }
.mobile-nav li { list-style: none; }
.cart-link { position: relative; }
.cart-count {
    position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
    display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: #fff;
    font-size: 11px; font-weight: 500; line-height: 1;
}
.cart-count.is-empty { display: none; }
/* Barra di WordPress e striscia della newsletter in alto: la testata fissa resta sotto
   (--mc-top-offset lo calcola theme.js; senza JavaScript vale solo la barra di WordPress) */
.mc-theme .site-header { top: calc(var(--frame) + var(--bar-inset) + var(--mc-top-offset, 0px)); }
.admin-bar { --mc-top-offset: 32px; }
@media (max-width: 782px) { .admin-bar { --mc-top-offset: 46px; } }
.mc-theme .mobile-panel { padding-top: calc(110px + var(--mc-top-offset, 0px)); }
.mc-theme .mobile-panel-brand { top: calc(22px + var(--mc-top-offset, 0px)); }

/* Home: l'hero parte dall'alto, sotto la barra fissa; titolo bianco sulla foto */
.home.mc-theme main#main { padding-top: 0; }
.mc-theme .hero, .mc-theme .hero .hero-title { color: #fff; }

/* Spazio tra testata e contenuto delle pagine */
body.mc-theme { --theme-content-vertical-spacing: 40px; }

/* Negozio senza barra laterale: la griglia usa tutta la larghezza */
.mc-theme [data-sidebar] { grid-template-columns: minmax(0, 1fr) !important; }
.mc-theme [data-sidebar] > aside { display: none; }

/* Contenitore delle pagine di Blocksy */
.mc-theme .ct-container { width: min(100% - 2 * var(--gutter), var(--content)); max-width: none; }
.mc-theme .ct-container-narrow { width: min(100% - 2 * var(--gutter), 760px); max-width: none; }

/* Titoli delle pagine (negozio, categorie, carrello, account) come le testate del catalogo */
.mc-theme .hero-section .page-title, .mc-theme .entry-header .page-title {
    font-size: clamp(36px, 5.4vw, 64px); font-weight: 400; line-height: 1.02; letter-spacing: -.03em;
}
.mc-theme .hero-section .page-description, .mc-theme .term-description { color: var(--ink-soft); max-width: 62ch; }
.mc-theme .ct-breadcrumbs, .mc-theme .woocommerce-breadcrumb { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.mc-theme .ct-breadcrumbs a:hover, .mc-theme .woocommerce-breadcrumb a:hover { text-decoration: underline; }

/* Pulsanti di WooCommerce = pulsanti del catalogo */
.mc-theme .button, .mc-theme button.button, .mc-theme a.button, .mc-theme input.button, .mc-theme .wp-element-button,
.mc-theme .single_add_to_cart_button, .mc-theme .checkout-button, .mc-theme #place_order, .mc-theme .wc-block-components-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 10px 26px; border: 1px solid transparent; border-radius: 999px;
    background: var(--ink); color: #fff; font-family: var(--font); font-size: 15px; font-weight: 400; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: background-color .3s, color .3s, transform .3s var(--ease), box-shadow .3s;
}
.mc-theme .button:hover, .mc-theme .single_add_to_cart_button:hover, .mc-theme .checkout-button:hover, .mc-theme #place_order:hover, .mc-theme .wp-element-button:hover {
    background: #3a3a3a; color: #fff; transform: translateY(-1px);
}
.mc-theme .checkout-button, .mc-theme #place_order { min-height: 54px; padding-inline: 32px; font-size: 16px; }
.mc-theme .button:disabled, .mc-theme .button.disabled { opacity: .45; cursor: not-allowed; transform: none; }
.mc-theme .woocommerce-message .button, .mc-theme .woocommerce-info .button, .mc-theme .woocommerce-error .button { min-height: 38px; padding: 6px 16px; font-size: 14px; background: #fff; color: var(--ink); }

/* Campi dei moduli (carrello, checkout, account) */
.mc-theme input[type="text"], .mc-theme input[type="email"], .mc-theme input[type="tel"], .mc-theme input[type="password"],
.mc-theme input[type="number"], .mc-theme input[type="search"], .mc-theme input[type="url"], .mc-theme select, .mc-theme textarea {
    border: 1px solid var(--line); border-radius: var(--radius-sm); background-color: var(--surface); color: var(--ink);
    font-size: 15px; transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.mc-theme input:focus, .mc-theme select:focus, .mc-theme textarea:focus { outline: none; border-color: var(--ink); background-color: #fff; box-shadow: 0 0 0 4px rgba(29, 29, 29, .06); }
.mc-theme .search-form input { border-radius: 999px; padding: 10px 16px; }
.mc-theme .woocommerce form .form-row label { font-size: 13px; font-weight: 400; }
.mc-theme .select2-container .select2-selection--single { height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.mc-theme .select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding-left: 16px; }
.mc-theme .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }

/* Avvisi */
.mc-theme .woocommerce-message, .mc-theme .woocommerce-info, .mc-theme .woocommerce-error {
    padding: 14px 20px; margin: 0 0 24px; border: 0; border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-size: 14px;
}
.mc-theme .woocommerce-message { background: #e6f2e7; color: var(--success); }
.mc-theme .woocommerce-error { background: #fbe9e8; color: var(--danger); }

/* --- Negozio e categorie -------------------------------------------------- */
.shop-categories { margin-bottom: 26px; }
.shop-categories .chips { padding: 0; }
.mc-theme .woocommerce-result-count, .mc-theme .woocommerce-ordering { font-size: 13px; color: var(--muted); }
.mc-theme .woocommerce-ordering select { min-height: 40px; padding: 6px 34px 6px 16px; border-radius: 999px; background-color: #fff; font-size: 14px; }
.mc-theme ul.products {
    display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important; gap: 16px !important;
    margin: 0 0 40px; padding: 0; list-style: none;
}
.mc-theme ul.products::before, .mc-theme ul.products::after { display: none; }
.mc-theme ul.products li.product { width: auto !important; margin: 0 !important; padding: 0 !important; float: none; background: none; box-shadow: none; border: 0; text-align: left; }
@media (max-width: 640px) {
    .mc-theme ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .mc-theme ul.products .product-card { padding: 8px 8px 12px; border-radius: var(--radius-md); }
    .mc-theme ul.products .product-card-media { border-radius: 14px; margin-bottom: 10px; }
    .mc-theme ul.products .product-card-body { padding-inline: 4px; }
    .mc-theme ul.products .product-card-name { font-size: 13px; }
    .mc-theme ul.products .product-card-category { font-size: 10px; }
    .mc-theme ul.products .product-card-footer { padding: 12px 0 0 4px; }
    .mc-theme ul.products .price { font-size: 16px; }
    .mc-theme ul.products .card-plus { width: 36px; height: 36px; border-radius: 12px; }
}
.mc-theme .woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; border: 0; }
.mc-theme .woocommerce-pagination ul li { border: 0; }
.mc-theme .woocommerce-pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 999px; background: var(--surface); }
.mc-theme .woocommerce-pagination .page-numbers.current { background: var(--ink); color: #fff; }

/* Card: prezzo di WooCommerce e "+" che aggiunge al carrello */
.product-card .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0; color: var(--ink); font-size: 20px; font-weight: 300; }
.product-card .price del { font-size: 14px; color: var(--muted); }
.product-card .price ins { text-decoration: none; }
.product-card .price--muted { font-size: 14px; color: var(--muted); }
.product-card-media img { aspect-ratio: 1; }
.product-card-media .image-placeholder { aspect-ratio: 1; min-height: 0; }
a.card-plus { position: relative; z-index: 2; color: var(--ink); }
a.card-plus:hover { background: var(--ink); color: #fff; }
/* "+" che aggiunge al carrello: un solo segno alla volta.
   WooCommerce e Blocksy aggiungono la loro icona (::after) durante il caricamento: si toglie e si usa la nostra
   rotellina; ad aggiunta fatta compare una spunta. */
a.card-plus::before, a.card-plus::after { content: none !important; }
a.card-plus.loading { pointer-events: none; background: var(--ink); color: #fff; }
a.card-plus.loading svg, a.card-plus.added svg { display: none; }
a.card-plus.loading::after {
    content: "" !important; display: block; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: mc-spin .7s linear infinite;
}
a.card-plus.added { background: var(--success); color: #fff; }
a.card-plus.added:not(.loading)::after {
    content: "" !important; display: block; width: 7px; height: 13px; margin-top: -3px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@keyframes mc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { a.card-plus.loading::after { animation-duration: 1.5s; } }
.product-card .added_to_cart { display: none; }
.product-card .stock-badge { display: inline-block; margin: 6px 0 0; padding: 2px 10px; border-radius: 999px; background: #fbe9e8; color: var(--danger); font-size: 12px; }

/* --- Scheda prodotto ------------------------------------------------------ */
.mc-theme .woocommerce-product-gallery { border-radius: var(--radius-xl); background: var(--surface); padding: 18px; }
.mc-theme .woocommerce-product-gallery .ct-media-container, .mc-theme .woocommerce-product-gallery img { border-radius: var(--radius-lg); }
.mc-theme .flexy-pills img, .mc-theme .flex-control-thumbs img { border-radius: 12px; }
.mc-theme .product_title { font-size: clamp(28px, 3vw, 40px) !important; font-weight: 400; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 12px; }
.mc-theme .entry-summary .price { font-size: 28px !important; font-weight: 300; color: var(--ink) !important; margin-bottom: 18px; }
.mc-theme .entry-summary .woocommerce-product-details__short-description { color: var(--ink-soft); }
.mc-theme .entry-summary .woocommerce-product-details__short-description strong { font-weight: 500; color: var(--ink); }
.mc-theme .quantity input.qty { min-height: 48px; border-radius: 999px; text-align: center; }
.mc-theme .variations { margin-bottom: 8px; border: 0; }
.mc-theme .variations th, .mc-theme .variations td { padding: 4px 0; border: 0; background: none; text-align: left; }
.mc-theme .variations label { font-weight: 400; font-size: 13px; }
.mc-theme .variations select { min-width: 200px; border-radius: 999px; }
.mc-theme .reset_variations { font-size: 13px; color: var(--muted); margin-left: 8px; }
.mc-theme .product_meta { font-size: 13px; color: var(--muted); }

.mc-theme .woocommerce-tabs, .mc-theme section.related, .mc-theme section.upsells { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.mc-theme .woocommerce-tabs { margin-top: clamp(40px, 6vw, 72px); }
.mc-theme .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px clamp(18px, 3vw, 34px); margin: 0 0 24px; padding: 0; border: 0; list-style: none; --tab-background: transparent; }
.mc-theme .woocommerce-tabs[data-type] ul.tabs { justify-content: flex-start !important; }
/* descrizione breve senza spazi vuoti in cima */
.mc-theme .woocommerce-product-details__short-description { display: flow-root; }
.mc-theme .woocommerce-product-details__short-description > :first-child,
.mc-theme .woocommerce-product-details__short-description > :first-child > :first-child { margin-top: 0; }
.mc-theme .woocommerce-tabs ul.tabs li a { text-transform: none; line-height: 1.2; }
@media (max-width: 689px) {
    .mc-theme .woocommerce-tabs[data-type] ul.tabs { flex-direction: row; gap: 6px 18px; }
    .mc-theme .woocommerce-tabs[data-type] ul.tabs li { border: 0; }
    .mc-theme .woocommerce-tabs[data-type] ul.tabs li a { font-size: 20px; padding: 0; }
}
/* scheda prodotto: spazi tra gli elementi del riepilogo come nel catalogo */
.mc-theme .entry-summary-items > * { --product-element-spacing: 20px; }
.mc-theme .entry-summary-items > .price { --product-element-spacing: 22px; }
.mc-theme .entry-summary .woocommerce-product-details__short-description > :last-child,
.mc-theme .entry-summary .woocommerce-product-details__short-description div:empty,
.mc-theme .entry-summary .woocommerce-product-details__short-description p:empty { margin-bottom: 0; }
.mc-theme .entry-summary .woocommerce-product-details__short-description .post-content { margin: 0; }
.mc-theme .woocommerce-tabs .panel { padding: 0; }
.mc-theme .woocommerce-tabs .panel h2, .mc-theme .woocommerce-tabs .panel h3 { font-size: 18px; margin: 1.2em 0 .6em; }
.mc-theme .woocommerce-tabs ul.tabs::before, .mc-theme .woocommerce-tabs ul.tabs::after { display: none; }
.mc-theme .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: none; }
.mc-theme .woocommerce-tabs ul.tabs li::before, .mc-theme .woocommerce-tabs ul.tabs li::after { display: none; }
.mc-theme .woocommerce-tabs ul.tabs li a { padding: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; letter-spacing: -.02em; color: var(--faint); transition: color .35s; }
.mc-theme .woocommerce-tabs ul.tabs li.active a, .mc-theme .woocommerce-tabs ul.tabs li a:hover { color: var(--ink); }
.mc-theme .woocommerce-tabs .panel { max-width: 76ch; font-size: 15px; color: var(--ink-soft); }
.mc-theme .woocommerce-tabs .shop_attributes { border: 0; }
.mc-theme .woocommerce-tabs .shop_attributes th, .mc-theme .woocommerce-tabs .shop_attributes td { border: 0; border-bottom: 1px dotted var(--faint); background: none; padding: 8px 0; font-weight: 300; }
.mc-theme .woocommerce-tabs .shop_attributes th { color: var(--muted); width: 40%; }

.mc-theme .related > h2, .mc-theme .upsells > h2, .mc-theme .cross-sells > h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 26px; }
.mc-theme .related, .mc-theme .upsells { margin-top: clamp(56px, 8vw, 100px); }

/* --- Carrello -------------------------------------------------------------- */
.mc-theme table.shop_table { border: 1px solid var(--line); border-radius: var(--radius-lg); border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; }
.mc-theme table.shop_table th { font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface); border: 0; }
.mc-theme table.shop_table td { border-top: 1px solid var(--line); border-bottom: 0; }
.mc-theme table.shop_table img { width: 72px; border-radius: 14px; background: var(--surface); }
.mc-theme table.shop_table .product-name a { font-weight: 400; }
.mc-theme .cart_totals, .mc-theme .woocommerce-checkout-review-order { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-xl); background: var(--surface); }
.mc-theme .cart_totals > h2, .mc-theme #order_review_heading, .mc-theme .woocommerce-billing-fields > h3, .mc-theme .woocommerce-additional-fields > h3, .mc-theme .woocommerce-shipping-fields h3 {
    font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 18px;
}
.mc-theme .cart_totals table.shop_table, .mc-theme .woocommerce-checkout-review-order table.shop_table { border: 0; border-radius: 0; background: none; }
.mc-theme .cart_totals table.shop_table th, .mc-theme .woocommerce-checkout-review-order table.shop_table th { background: none; }
.mc-theme .order-total .amount { font-size: 22px; font-weight: 400; }
.mc-theme .wc-proceed-to-checkout .checkout-button { width: 100%; }
.mc-theme .return-to-shop { text-align: center; }

/* --- Checkout e account ------------------------------------------------------ */
.mc-theme #payment { border-radius: var(--radius-lg); background: #fff; }
.mc-theme #payment div.payment_box { border-radius: var(--radius-sm); background: var(--surface); font-size: 13px; }
.mc-theme #payment div.payment_box::before { display: none; }
.mc-theme .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; border-radius: var(--radius-lg); background: var(--surface); }
.mc-theme .woocommerce-MyAccount-navigation li { border: 0; }
.mc-theme .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 16px; border-radius: 999px; font-weight: 400; text-decoration: none !important; }
.mc-theme .woocommerce-MyAccount-navigation li a::before, .mc-theme .woocommerce-MyAccount-navigation li a svg { display: none; }
.mc-theme .woocommerce-MyAccount-navigation li.is-active a, .mc-theme .woocommerce-MyAccount-navigation li a:hover { background: var(--ink); color: #fff; }
.mc-theme form.woocommerce-form-login, .mc-theme form.woocommerce-form-register, .mc-theme form.checkout_coupon {
    padding: clamp(22px, 4vw, 40px); border: 0; border-radius: var(--radius-xl); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
}
.mc-theme #customer_login h2 { font-size: 30px; margin-bottom: 16px; }

/* Il pulsante WhatsApp del plugin non copre il piè di pagina su mobile */
@media (max-width: 600px) { .mc-theme .site-footer { margin-bottom: 84px; } }

/* --- Contatti e moduli (dal catalogo) --- */
/* --- Contatti e form ----------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0 0 28px; }
.contact-cards li { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius-md); background: var(--surface); }
.contact-cards .icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; flex: none; }
.contact-cards svg { width: 18px; height: 18px; }
.contact-cards small { display: block; font-size: 12px; color: var(--muted); }
.contact-cards a { border-bottom: 1px solid currentColor; word-break: break-word; }

.form-card { background: #fff; border-radius: var(--radius-xl); padding: clamp(22px, 4vw, 40px); box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
.form-card h2 { font-size: 30px; margin-bottom: 6px; }

/* ==========================================================================
   Parte 3 — pagine come nel catalogo
   ========================================================================== */

/* Testata con immagine: la barra del sito le sta sopra (spazio riservato in alto) */
.mc-theme .page-hero { padding-top: 104px; }
.mc-theme .page-hero, .mc-theme .page-hero .page-hero-title { color: #fff; }
/* Testata con immagine chiara: testo bianco anche qui, con una sfumatura scura un po' piu' decisa */
.mc-theme .page-hero--light, .mc-theme .page-hero--light .page-hero-title { color: #fff; }
.mc-theme .page-hero--light { background: #8c7d74; }
.mc-theme .page-hero--light::after { background: linear-gradient(90deg, rgba(20, 16, 14, .62) 0%, rgba(20, 16, 14, .34) 50%, rgba(20, 16, 14, .1) 85%), linear-gradient(0deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 60%); }
@media (max-width: 900px) { .mc-theme .page-hero { padding-top: 76px; } }
/* titolo di Blocksy al posto della testata: non serve */
.mc-theme.woocommerce-cart .hero-section, .mc-theme.woocommerce-checkout .hero-section, .mc-theme.woocommerce-account .hero-section,
.mc-theme.woocommerce-shop .hero-section, .mc-theme.tax-product_cat .hero-section { display: none; }
/* dopo testata e percorso il contenuto parte subito */
.mc-theme .breadcrumb ~ [data-vertical-spacing*="top"], .mc-theme .breadcrumb ~ * [data-vertical-spacing*="top"] { padding-top: 0; }
.mc-theme .breadcrumb ol { padding: 0; }
.mc-theme .breadcrumb [aria-current="page"] { color: var(--muted); }

/* Negozio: barra del catalogo (categorie, ricerca, ordine) */
.mc-theme .woo-listing-top, .mc-theme .woocommerce-result-count, .mc-theme .woocommerce-ordering { display: none; }
.mc-theme .catalog-toolbar .shop-categories { margin: 0; }
.mc-theme .catalog-filters .input, .mc-theme .catalog-filters .select {
    min-height: 40px; height: 40px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background-color: #fff; font-size: 14px;
}
.mc-theme .catalog-filters .select { padding-right: 34px; }
.mc-theme .catalog-filters .input { width: 220px; }
.mc-theme .results-count a { text-decoration: underline; }
@media (max-width: 640px) { .mc-theme .catalog-filters .input { width: auto; } }

/* Paginazione: pulsanti rotondi come i "chip" del catalogo */
.mc-theme .ct-pagination, .mc-theme .woocommerce-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 48px 0 0; padding: 0; border: 0; }
.mc-theme .ct-pagination > div, .mc-theme .woocommerce-pagination ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; list-style: none; }
.mc-theme .ct-pagination .page-numbers, .mc-theme .woocommerce-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 16px;
    border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0;
    transition: background-color .3s, color .3s, box-shadow .3s;
}
.mc-theme .ct-pagination a.page-numbers:hover, .mc-theme .woocommerce-pagination a.page-numbers:hover { background: var(--surface-strong); }
.mc-theme .ct-pagination .page-numbers.current, .mc-theme .woocommerce-pagination .page-numbers.current { background: var(--ink); color: #fff; }
.mc-theme .ct-pagination .page-numbers.dots { background: none; }
.mc-theme .ct-pagination .next, .mc-theme .ct-pagination .prev, .mc-theme .woocommerce-pagination .next, .mc-theme .woocommerce-pagination .prev {
    padding: 0 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--ink);
}
.mc-theme .ct-pagination .next:hover, .mc-theme .ct-pagination .prev:hover { background: var(--ink); color: #fff; }
.mc-theme .ct-pagination svg { width: 10px; height: 10px; fill: currentColor; }

/* Card: freccia quando non si può aggiungere direttamente al carrello */
.product-card:hover .card-plus--open svg { transform: translateX(2px); }

/* Striscia della newsletter (plugin Simple Banner) nei colori del sito */
.mc-theme .simple-banner { background: var(--pastel-pink) !important; }
.mc-theme .simple-banner .simple-banner-text { color: var(--ink) !important; font-family: var(--font); font-size: 13px; font-weight: 400; letter-spacing: .01em; padding-block: 2px; }
.mc-theme .simple-banner .simple-banner-text a { color: var(--ink) !important; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.mc-theme .simple-banner .simple-banner-button { color: var(--ink) !important; }

/* Sezione newsletter (home) */
.newsletter-card {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 72px); align-items: center;
    padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-xl); background: var(--pastel-pink);
}
.newsletter-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.newsletter-copy .section-title { margin-bottom: 14px; }
.newsletter-copy p:last-child { margin: 0; color: var(--ink-soft); max-width: 44ch; }
.newsletter-form { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-lg); background: #fff; }
@media (max-width: 760px) { .newsletter-card { grid-template-columns: 1fr; border-radius: var(--radius-lg); } }

/* Moduli Fluent Forms (contatti, newsletter) con l'aspetto dei moduli del catalogo */
.mc-theme .fluentform .ff-el-group { margin-bottom: 16px; }
.mc-theme .fluentform .ff-el-input--label label { font-size: 13px; font-weight: 400; color: var(--ink); }
.mc-theme .fluentform .ff-el-form-control {
    width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 15px; box-shadow: none;
}
.mc-theme .fluentform textarea.ff-el-form-control { min-height: 150px; }
.mc-theme .fluentform .ff-el-form-control:focus { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(29, 29, 29, .06); }
.mc-theme .fluentform .ff-el-form-check label { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); }
.mc-theme .fluentform .ff-btn-submit, .mc-theme .fluentform button[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 28px; border: 0; border-radius: 999px;
    background: var(--ink) !important; color: #fff !important; font-family: var(--font); font-size: 15px; font-weight: 400; cursor: pointer;
}
.mc-theme .fluentform .ff-btn-submit:hover { background: #3a3a3a !important; }
.mc-theme .fluentform .ff-message-success { padding: 14px 20px; border: 0; border-radius: var(--radius-md); background: #e6f2e7; color: var(--success); box-shadow: none; }
.mc-theme .fluentform .text-danger, .mc-theme .fluentform .error { color: var(--danger); font-size: 13px; }

/* WhatsApp: il pulsante del catalogo sostituisce quello del plugin */
.mc-theme #wa { display: none !important; }

/* Carrello vuoto e accesso */
.mc-theme .wc-empty-cart-message .cart-empty, .mc-theme .cart-empty.woocommerce-info { padding: 40px 24px; justify-content: center; text-align: center; font-size: 17px; }
.mc-theme .return-to-shop .button { margin-top: 8px; }
.mc-theme #customer_login { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mc-theme #customer_login > div { width: auto; float: none; padding: 0; }
.mc-theme #customer_login form { margin: 0; }
@media (max-width: 760px) { .mc-theme #customer_login { grid-template-columns: 1fr; } }
.mc-theme .woocommerce-form-login .woocommerce-form-login__rememberme { display: inline-flex; gap: 8px; align-items: center; margin-right: 16px; }
.mc-theme .lost_password a { font-size: 13px; text-decoration: underline; }

/* Avvisi di WooCommerce: niente icona (il carattere delle icone non viene caricato) */
.mc-theme .woocommerce-info::before, .mc-theme .woocommerce-message::before, .mc-theme .woocommerce-error::before, .mc-theme .cart-empty::before { display: none !important; content: none !important; }

/* Moduli Fluent Forms: etichetta sempre sopra il campo, niente linee di separazione */
.mc-theme .fluentform .ff-el-form-left .ff-el-input--label, .mc-theme .fluentform .ff-el-form-right .ff-el-input--label { float: none; width: auto; text-align: left; padding: 0; }
.mc-theme .fluentform .ff-el-form-left .ff-el-input--content, .mc-theme .fluentform .ff-el-form-right .ff-el-input--content { margin-left: 0; margin-right: 0; }
.mc-theme .fluentform hr, .mc-theme .fluentform .ff-el-section-break { display: none; }

/* "Iscriviti ora" porta alla sezione: resta visibile sotto la barra fissa */
#newsletter { scroll-margin-top: 140px; }

/* --- Pagina 404 (uguale nel catalogo e nell'e-commerce): testo a sinistra, foto ad arco a destra --- */
.error-card--split {
    max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 32px clamp(32px, 6vw, 80px); align-items: center; text-align: left;
    padding: clamp(28px, 5vw, 64px);
}
.error-card--split .error-code { font-size: clamp(88px, 12vw, 150px); color: #d7d2cd; }
.error-card--split .error-message, .error-card--split .error-search { margin-left: 0; }
.error-card--split .error-actions, .error-card--split .error-categories .chips { justify-content: flex-start; }
.error-figure { margin: 0; }
.error-figure .arch { max-width: 420px; margin-inline: auto; }
.error-figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
    .error-card--split { grid-template-columns: 1fr; text-align: center; }
    .error-figure { order: -1; }
    .error-figure .arch { max-width: 220px; }
    .error-card--split .error-message, .error-card--split .error-search { margin-inline: auto; }
    .error-card--split .error-actions, .error-card--split .error-categories .chips { justify-content: center; }
}

/* ==========================================================================
   Parte 4 — carrello, account e checkout
   ========================================================================== */
.mc-theme input[type="radio"], .mc-theme input[type="checkbox"] { accent-color: var(--ink); }
.mc-theme .woocommerce-cart-form a, .mc-theme .woocommerce-MyAccount-navigation a, .mc-theme .account-cards a { text-decoration: none !important; }

/* Carrello: righe come le card del catalogo */
.mc-theme .woocommerce-cart-form .shop_table th, .mc-theme .woocommerce-cart-form .shop_table td { padding: 16px 20px; vertical-align: middle; }
.mc-theme .woocommerce-cart-form .product-thumbnail { width: 120px; }
.mc-theme .woocommerce-cart-form .product-thumbnail img { width: 88px; height: 88px; object-fit: cover; border-radius: 16px; }
.mc-theme .woocommerce-cart-form .product-name a { font-size: 15px; font-weight: 400; }
.mc-theme .woocommerce-cart-form .product-name .price, .mc-theme .woocommerce-cart-form .product-name .amount { font-size: 14px; color: var(--muted); }
.mc-theme .woocommerce-cart-form .product-subtotal { font-size: 16px; }
.mc-theme .woocommerce-cart-form .product-remove a.remove, .mc-theme .woocommerce-cart-form .product-remove .remove {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--ink) !important;
    transition: background-color .25s, color .25s;
}
.mc-theme .woocommerce-cart-form .product-remove .remove:hover { background: var(--danger); color: #fff !important; }
.mc-theme .woocommerce-cart-form .product-remove .remove svg { width: 14px; height: 14px; }
.mc-theme .woocommerce-cart-form td.actions { background: var(--surface); }
.mc-theme .ct-cart-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.mc-theme .coupon { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mc-theme .coupon .input-text { min-width: 220px; height: 44px; padding: 8px 18px; border-radius: 999px; background-color: #fff; }
.mc-theme .coupon .button, .mc-theme button[name="update_cart"] {
    min-height: 44px; padding: 8px 20px; font-size: 14px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink);
}
.mc-theme .coupon .button:hover, .mc-theme button[name="update_cart"]:not(:disabled):hover { background: var(--ink); color: #fff; }
.mc-theme button[name="update_cart"]:disabled { opacity: .35; }
.mc-theme .cart_totals .shop_table th, .mc-theme .cart_totals .shop_table td { padding: 14px 0; }
.mc-theme .continue-shopping { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.mc-theme .continue-shopping svg { width: 16px; height: 16px; transform: rotate(180deg); }
.mc-theme .continue-shopping:hover { color: var(--ink); }
@media (max-width: 760px) {
    .mc-theme .woocommerce-cart-form .shop_table th, .mc-theme .woocommerce-cart-form .shop_table td { padding: 12px 14px; }
    .mc-theme .coupon, .mc-theme .coupon .input-text { width: 100%; min-width: 0; }
}

/* Carrello vuoto */
.mc-theme .cart-empty-state { max-width: 760px; margin: 0 auto; }
.mc-theme .cart-empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: #fff; }
.mc-theme .cart-empty-icon svg { width: 28px; height: 28px; }
.mc-theme .cart-empty-state .btn svg { width: 18px; height: 18px; }

/* Checkout: un solo riquadro per il riepilogo */
.mc-theme .ct-order-review { padding: 0; border: 0; background: none; box-shadow: none; }
.mc-theme .ct-order-review #order_review_heading { margin-bottom: 18px; }
.mc-theme #payment ul.payment_methods { border-bottom: 0; }

/* Account: menu a pillole senza linee, bacheca con le card del catalogo */
.mc-theme .woocommerce-MyAccount-navigation li { border: 0 !important; margin: 0; }
.mc-theme .woocommerce-MyAccount-navigation li::before, .mc-theme .woocommerce-MyAccount-navigation li::after { display: none !important; }
.mc-theme .woocommerce-MyAccount-navigation ul { display: grid; gap: 4px; }
.mc-theme .woocommerce-MyAccount-content > p a { text-decoration: underline; text-underline-offset: 3px; }
.account-welcome { margin-bottom: 24px; }
.account-welcome-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 8px; }
.account-welcome p { color: var(--ink-soft); }
.account-welcome a { text-decoration: underline; text-underline-offset: 3px; }
.account-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.account-card { position: relative; display: block; height: 100%; min-height: 170px; padding-bottom: 56px; color: var(--ink); }
.account-card h3 { font-size: 26px; text-transform: none; margin-bottom: 8px; }
.account-card p { font-size: 14px; }
.account-card-arrow { position: absolute; right: 22px; bottom: 20px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .7); transition: background-color .3s, color .3s; }
.account-card-arrow svg { width: 16px; height: 16px; }
.account-card:hover .account-card-arrow { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .account-cards { grid-template-columns: 1fr; } }

/* Indirizzi: riquadri pieni con il pulsante "Modifica" */
.mc-theme .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.mc-theme .woocommerce-Addresses::before, .mc-theme .woocommerce-Addresses::after { display: none; }
.mc-theme .woocommerce-Address { width: auto !important; float: none !important; margin: 0 !important; padding: 24px !important; border: 0 !important; border-radius: var(--radius-lg); background: var(--surface); }
.mc-theme .woocommerce-Address-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.mc-theme .woocommerce-Address-title h2, .mc-theme .woocommerce-Address-title h3 { font-size: 20px; margin: 0; }
.mc-theme .woocommerce-Address-title .edit {
    display: inline-flex; align-items: center; min-height: 36px; padding: 6px 16px; border-radius: 999px; background: #fff;
    font-size: 13px; text-decoration: none !important; box-shadow: inset 0 0 0 1px var(--line);
}
.mc-theme .woocommerce-Address-title .edit:hover { background: var(--ink); color: #fff; }
.mc-theme .woocommerce-Address address { font-style: normal; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 640px) { .mc-theme .woocommerce-Addresses { grid-template-columns: 1fr; } }

/* Dati dell'account: cambio password in un riquadro */
.mc-theme .woocommerce-EditAccountForm fieldset { margin: 24px 0; padding: 24px; border: 0; border-radius: var(--radius-lg); background: var(--surface); }
.mc-theme .woocommerce-EditAccountForm fieldset legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; font-size: 18px; font-weight: 400; }
.mc-theme .woocommerce-EditAccountForm fieldset input { background-color: #fff; }
.mc-theme .woocommerce-EditAccountForm em { font-size: 12px; color: var(--muted); }

/* Ordini: tabella come il carrello, stato con un'etichetta */
.mc-theme .woocommerce-orders-table th, .mc-theme .woocommerce-orders-table td { padding: 14px 18px; }
.mc-theme .woocommerce-orders-table .woocommerce-button { min-height: 36px; padding: 6px 16px; font-size: 13px; }
.mc-theme .woocommerce-MyAccount-content .woocommerce-info .button { order: 2; }

/* Pagina 404 statica (vecchi indirizzi): senza WordPress intorno */
.mc-static-error .header-slot--solid { min-height: 120px; }
.mc-static-error .site-header { top: calc(var(--frame) + var(--bar-inset)); }
.mc-static-error main { padding-bottom: 60px; }

/* Ritocchi: titolo della bacheca, menu dell'account senza linee, scelte (spedizione, pagamento) nei colori del sito */
.mc-theme .account-welcome .account-welcome-title { font-size: clamp(28px, 3vw, 38px); }
.mc-theme .woocommerce-MyAccount-navigation li a { border: 0 !important; box-shadow: none !important; }
.mc-theme .woocommerce-MyAccount-navigation li a::before, .mc-theme .woocommerce-MyAccount-navigation li a::after { display: none !important; }
.mc-theme input[type="radio"]:checked { border-color: var(--ink) !important; background-color: var(--ink) !important; box-shadow: inset 0 0 0 3px #fff !important; }

/* --- Frecce sulle file di prodotti (home): centrate sulle card, appena fuori dalla colonna, senza sfumatura --- */
.scroller--rail .scroller-button { top: calc(50% - 32px); }
.scroller--rail .scroller-button--prev { left: -18px; }
.scroller--rail .scroller-button--next { right: -18px; }
.scroller.scroller--rail [data-scroller-target="track"], .scroller.scroller--rail [data-scroller-track] { -webkit-mask-image: none; mask-image: none; }
@media (max-width: 1220px) {
    .scroller--rail .scroller-button--prev { left: 6px; }
    .scroller--rail .scroller-button--next { right: 6px; }
}

/* Sfumature delle file scorrevoli (nel tema la fila e' [data-scroller-track]) */
.scroller [data-scroller-track] { --fade-prev: 0px; --fade-next: 0px; }
.scroller.can-prev [data-scroller-track] { --fade-prev: 56px; }
.scroller.can-next [data-scroller-track] { --fade-next: 56px; }
.scroller.can-prev [data-scroller-track], .scroller.can-next [data-scroller-track] {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-prev), #000 calc(100% - var(--fade-next)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-prev), #000 calc(100% - var(--fade-next)), transparent 100%);
}

/* ==========================================================================
   Parte 5 — account (tutte le sezioni) e newsletter
   ========================================================================== */

/* Menu dell'account: testo centrato in verticale nelle pillole */
.mc-theme .woocommerce-MyAccount-navigation li a {
    display: flex !important; align-items: center; min-height: 46px; padding: 0 18px !important; line-height: 1.2;
}

/* Titolo di ogni sezione dell'account (come "Ciao, …" della bacheca) */
.account-section-head { margin-bottom: 22px; }
.mc-theme .account-section-head .account-section-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 6px; }
.account-section-head p { margin: 0; color: var(--ink-soft); }
.mc-theme .woocommerce-MyAccount-content > p:first-of-type:not(.form-row) { color: var(--ink-soft); }

/* Nessun ordine / nessun metodo di pagamento: riquadro "vuoto" con il pulsante */
.mc-theme .woocommerce-MyAccount-content .woocommerce-info,
.mc-theme .woocommerce-MyAccount-content .woocommerce-message {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
    padding: 28px; border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); font-size: 15px;
}
.mc-theme .woocommerce-MyAccount-content .woocommerce-info .button, .mc-theme .woocommerce-MyAccount-content .woocommerce-message .button {
    order: 2; min-height: 44px; padding: 8px 22px; background: var(--ink); color: #fff; font-size: 14px;
}

/* Tabelle (ordini, metodi di pagamento, dettaglio ordine) */
.mc-theme .woocommerce-MyAccount-content table.shop_table th, .mc-theme .woocommerce-MyAccount-content table.shop_table td { padding: 14px 18px; vertical-align: middle; }
.mc-theme .woocommerce-MyAccount-content table.shop_table .button { min-height: 36px; padding: 6px 16px; font-size: 13px; }
.mc-theme .woocommerce-order-details, .mc-theme .woocommerce-customer-details { margin-top: 28px; }
.mc-theme .woocommerce-order-details__title, .mc-theme .woocommerce-column__title { font-size: 22px; margin-bottom: 14px; }
.mc-theme .woocommerce-customer-details address { padding: 22px; border: 0; border-radius: var(--radius-lg); background: var(--surface); font-style: normal; line-height: 1.7; }
.mc-theme mark { padding: 2px 10px; border-radius: 999px; background: var(--pastel-blue); color: var(--ink); }

/* Moduli (modifica indirizzo, dati dell'account, nuovo metodo di pagamento) in un riquadro */
.mc-theme .woocommerce-MyAccount-content form.edit-account,
.mc-theme .woocommerce-MyAccount-content form:has(.woocommerce-address-fields),
.mc-theme .woocommerce-MyAccount-content form#add_payment_method {
    padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-xl); background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
}
.mc-theme .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.mc-theme .woocommerce-address-fields__field-wrapper .form-row { width: auto !important; float: none !important; grid-column: 1 / -1; }
.mc-theme .woocommerce-address-fields__field-wrapper .form-row-first { grid-column: 1; }
.mc-theme .woocommerce-address-fields__field-wrapper .form-row-last { grid-column: 2; }
@media (max-width: 640px) {
    .mc-theme .woocommerce-address-fields__field-wrapper { grid-template-columns: 1fr; }
    .mc-theme .woocommerce-address-fields__field-wrapper .form-row-first, .mc-theme .woocommerce-address-fields__field-wrapper .form-row-last { grid-column: 1; }
}
.mc-theme .woocommerce-MyAccount-content form .button[type="submit"], .mc-theme .woocommerce-MyAccount-content form button[name] { margin-top: 8px; }
.mc-theme .woocommerce-EditAccountForm fieldset { box-shadow: none; }

/* --- Newsletter (home): foto con il bollino dello sconto, vantaggi e modulo corto --- */
.newsletter-card {
    position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 0; align-items: stretch;
    padding: 0; overflow: hidden; border-radius: var(--radius-xl); background: var(--pastel-pink);
}
.newsletter-media { position: relative; margin: 0; min-height: 420px; }
.newsletter-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.newsletter-badge {
    position: absolute; right: -44px; top: 50%; translate: 0 -50%; z-index: 1;
    display: grid; place-content: center; text-align: center; width: 112px; height: 112px; border-radius: 50%;
    background: var(--ink); color: #fff; box-shadow: 0 14px 34px rgba(20, 16, 14, .25);
}
.newsletter-badge strong { font-size: 34px; font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.newsletter-badge small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: 4px; }
.newsletter-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 64px) clamp(28px, 5vw, 64px) clamp(32px, 5vw, 64px) clamp(64px, 7vw, 96px); }
.newsletter-kicker { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.mc-theme .newsletter-body .section-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; margin-bottom: 18px; }
.newsletter-perks { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; font-size: 15px; color: var(--ink-soft); }
.newsletter-perks li { display: flex; gap: 10px; align-items: flex-start; }
.newsletter-perks svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ink); }
.newsletter-note { margin: 12px 0 0; font-size: 12px; color: var(--ink-soft); }
/* modulo: solo email, consenso e pulsante (nome e cognome sono facoltativi nel modulo) */
.newsletter-form { padding: 0; background: none; }
.newsletter-form .fluentform form > fieldset { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.newsletter-form .fluentform .ff-el-group { margin: 0; }
.newsletter-form .fluentform .ff-name-field-wrapper, .newsletter-form .fluentform .ff-el-section-break, .newsletter-form .ff-el-tooltip { display: none !important; }
.newsletter-form .fluentform .ff-el-group:has(input[type="email"]) { grid-column: 1; order: 1; }
.newsletter-form .fluentform .ff_submit_btn_wrapper { grid-column: 2; order: 2; margin: 0; }
.newsletter-form .fluentform .ff-el-group:has(.ff-el-tc), .newsletter-form .fluentform .ff-el-group:has([type="checkbox"]) { grid-column: 1 / -1; order: 3; margin-top: 4px; }
.newsletter-form .fluentform .ff-el-tc a { text-decoration: underline; }
.newsletter-form .fluentform .ff-el-input--label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.newsletter-form .fluentform input[type="email"] { min-height: 54px; border-radius: 999px; background: #fff; border-color: transparent; padding-inline: 22px; }
.newsletter-form .fluentform .ff-btn-submit { min-height: 54px; padding-inline: 30px; }
.newsletter-form .fluentform .ff-el-form-check label { font-size: 12px; }
.newsletter-form .fluentform .ff-message-success { grid-column: 1 / -1; }
@media (max-width: 860px) {
    .newsletter-card { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
    .newsletter-media { min-height: 220px; }
    .newsletter-badge { right: 20px; top: auto; bottom: -40px; translate: none; width: 96px; height: 96px; }
    .newsletter-body { padding: 56px 24px 32px; }
    .newsletter-form .fluentform form > fieldset { grid-template-columns: 1fr; }
    .newsletter-form .fluentform .ff-el-group:has(input[type="email"]), .newsletter-form .fluentform .ff_submit_btn_wrapper, .newsletter-form .fluentform .ff-el-group:has([type="checkbox"]) { grid-column: 1; }
    .newsletter-form .fluentform .ff-btn-submit { width: 100%; }
}

/* Indirizzi: la frase introduttiva di WooCommerce ripete il titolo della sezione */
.woocommerce-edit-address .woocommerce-MyAccount-content > p:not(.form-row) { display: none; }

/* Modifica indirizzo: il titolo e' gia' sopra il riquadro */
.woocommerce-edit-address .woocommerce-MyAccount-content form > h2:first-child, .woocommerce-edit-address .woocommerce-MyAccount-content form > h3:first-child { display: none; }

/* --- Piè di pagina: documenti legali e preferenze cookie --- */
.footer-legal { align-items: center; }
.footer-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.footer-legal-links a { color: #cfc7c1; transition: color .25s; }
.footer-legal-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .footer-legal { gap: 10px; } }

/* --- Angoli "concentrici" (come nel catalogo): un elemento dentro un riquadro ha il raggio del riquadro
   meno lo spazio che li separa; su mobile i raggi si riducono insieme agli spazi --- */
@media (max-width: 900px) { .site-header { border-radius: calc(var(--radius-xl) - var(--bar-inset)); } }
@media (max-width: 700px) { .site-header { border-radius: calc(var(--radius-lg) - var(--bar-inset)); } }

/* Galleria della scheda prodotto */
.mc-theme .woocommerce-product-gallery .ct-media-container, .mc-theme .woocommerce-product-gallery img { border-radius: calc(var(--radius-xl) - 18px); }
@media (max-width: 760px) {
    .mc-theme .woocommerce-product-gallery { padding: 12px; border-radius: var(--radius-lg); }
    .mc-theme .woocommerce-product-gallery .ct-media-container, .mc-theme .woocommerce-product-gallery img { border-radius: calc(var(--radius-lg) - 12px); }
    .mc-theme .flexy-pills img, .mc-theme .flex-control-thumbs img { border-radius: 10px; }
}

/* Card prodotto su mobile: stessi raggi nella griglia del negozio e nelle file della home */
@media (max-width: 640px) {
    .mc-theme ul.products .product-card-media { border-radius: calc(var(--radius-md) - 8px); }
}
@media (max-width: 600px) {
    .rail .product-card { padding: 10px 10px 14px; border-radius: 24px; }
    .rail .product-card-media { border-radius: 14px; margin-bottom: 12px; }
}

/* Riquadri grandi su mobile: raggi piu' contenuti */
@media (max-width: 760px) {
    .form-card, .error-card, .mc-theme .cart_totals, .mc-theme .woocommerce-checkout-review-order,
    .mc-theme form.woocommerce-form-login, .mc-theme form.woocommerce-form-register, .mc-theme form.checkout_coupon,
    .mc-theme .woocommerce-MyAccount-content form.edit-account, .mc-theme .woocommerce-MyAccount-content form:has(.woocommerce-address-fields) { border-radius: var(--radius-lg); }
    .mc-theme table.shop_table { border-radius: var(--radius-md); }
}

/* Pagina 404 su mobile: la ricerca e i pulsanti restano dentro il riquadro */
.error-card--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
@media (max-width: 760px) {
    .error-card--split { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; }
    .error-card--split .error-search { width: 100%; max-width: 100%; }
    .error-card--split .error-search input { min-width: 0; }
    .error-card--split .error-actions .btn { flex: 1 1 100%; }
}

/* --- Carrello: pagamenti alternativi senza "salti" ---
   Klarna, PayPal e i pulsanti rapidi (Apple Pay / Google Pay) arrivano da servizi esterni e compaiono dopo
   la pagina. "Procedi con l'ordine" sta sempre in cima e non si sposta; sotto, i pagamenti rapidi; i messaggi
   delle rate hanno il loro spazio gia' riservato, con un segnaposto animato finche' non arrivano. */
.mc-theme .wc-proceed-to-checkout { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.mc-theme .wc-proceed-to-checkout > * { margin: 0 !important; }
.mc-theme .wc-proceed-to-checkout .checkout-button { order: 1; }
.mc-theme .wc-proceed-to-checkout .wcpay-express-checkout-wrapper { order: 2; }
.mc-theme .wc-proceed-to-checkout #payment-method-message { order: 3; min-height: 42px; }
.mc-theme .wc-proceed-to-checkout .ppcp-messages { order: 4; min-height: 40px; }
.mc-theme .wc-proceed-to-checkout .continue-shopping { order: 5; }
.mc-theme .wc-proceed-to-checkout #payment-method-message:not(.ready),
.mc-theme .wc-proceed-to-checkout .ppcp-messages:not(:has(iframe)) {
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(0, 0, 0, .04) 0%, rgba(0, 0, 0, .08) 50%, rgba(0, 0, 0, .04) 100%) 0 0 / 200% 100%;
    animation: mc-shimmer 1.2s ease-in-out infinite;
}
@keyframes mc-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .mc-theme .wc-proceed-to-checkout > * { animation: none !important; } }

/* --- Tendine (select2: paese, provincia) in carrello, checkout e account ---
   Il raggio "a pillola" dei campi di Blocksy finiva anche sul riquadro che si apre: ovale tagliato. */
.mc-theme .select2-dropdown {
    border: 1px solid var(--line) !important; border-radius: var(--radius-sm) !important; overflow: hidden;
    background: #fff; box-shadow: 0 14px 34px rgba(20, 16, 14, .14);
}
.mc-theme .select2-container--open .select2-dropdown--below { margin-top: 6px; }
.mc-theme .select2-container--open .select2-dropdown--above { margin-top: -6px; }
.mc-theme .select2-container--open .select2-selection--single { border-color: var(--ink) !important; border-radius: var(--radius-sm) !important; }
.mc-theme .select2-search--dropdown { padding: 10px; }
.mc-theme .select2-search--dropdown .select2-search__field {
    height: 40px; padding: 6px 14px; border: 1px solid var(--line) !important; border-radius: 10px !important; background: var(--surface); font-size: 14px;
}
.mc-theme .select2-results__options { max-height: 260px !important; padding: 0 6px 6px; }
.mc-theme .select2-results__option { margin: 0; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.mc-theme .select2-results__option--highlighted, .mc-theme .select2-results__option--highlighted[aria-selected] { background: var(--surface) !important; color: var(--ink) !important; }
.mc-theme .select2-results__option[aria-selected="true"], .mc-theme .select2-results__option--selected { background: var(--ink) !important; color: #fff !important; }

/* Calcolo della spedizione nel carrello: campi bianchi sul riquadro grigio */
.mc-theme .shipping-calculator-form { margin-top: 12px; }
.mc-theme .shipping-calculator-form input.input-text, .mc-theme .shipping-calculator-form .select2-selection--single { background-color: #fff !important; }
.mc-theme .shipping-calculator-form .form-row { margin-bottom: 12px; }
.mc-theme .shipping-calculator-form button[name="calc_shipping"] { width: 100%; }

/* ==========================================================================
   Checkout ("Procedi con l'ordine")
   ========================================================================== */
/* Pallini e caselle nei colori del sito (Blocksy li colorava con il rosa della vecchia palette) */
body.mc-theme { --theme-form-selection-field-initial-color: var(--faint); --theme-form-selection-field-active-color: var(--ink); }

/* Pagamenti rapidi (Apple Pay / Google Pay) e separatore "oppure" in italiano */
.mc-theme #wcpay-express-checkout-element { margin-bottom: 4px; }
.mc-theme #wcpay-express-checkout-button-separator { position: relative; margin: 18px 0 8px !important; font-size: 0 !important; text-align: center; }
.mc-theme #wcpay-express-checkout-button-separator::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.mc-theme #wcpay-express-checkout-button-separator::after {
    content: "oppure compila i tuoi dati"; position: relative; padding: 0 14px; background: var(--paper);
    font-size: 13px; color: var(--muted);
}

/* Colonne: dati a sinistra, riepilogo a destra che resta visibile scorrendo */
@media (min-width: 1000px) {
    .mc-theme form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 0 clamp(32px, 4vw, 56px); align-items: start; }
    .mc-theme form.checkout > * { grid-column: 1; }
    .mc-theme form.checkout > .ct-order-review { grid-column: 2; grid-row: 1; }
    .mc-theme form.checkout .col2-set { width: auto; float: none; }
}
.mc-theme form.checkout .col2-set .col-1, .mc-theme form.checkout .col2-set .col-2 { width: 100% !important; float: none !important; }
.mc-theme .woocommerce-billing-fields > h3, .mc-theme .woocommerce-additional-fields > h3 { margin-top: 8px; }
.mc-theme #order_comments { min-height: 110px; }
.mc-theme #ship-to-different-address { margin: 18px 0 8px; font-size: 16px; font-weight: 400; }
.mc-theme #ship-to-different-address label { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }

/* Riepilogo: titolo dentro il riquadro, niente spazi vuoti, pagamenti dentro i bordi */
.mc-theme .ct-order-review {
    padding: clamp(20px, 3vw, 30px) !important; border-radius: var(--radius-xl) !important; background: var(--surface) !important;
}
.mc-theme .ct-order-review #order_review_heading { margin: 0 0 14px !important; font-size: clamp(24px, 2.4vw, 30px); }
.mc-theme .ct-order-review .woocommerce-checkout-review-order { padding: 0 !important; margin: 0 !important; background: none !important; border-radius: 0 !important; }
.mc-theme .woocommerce-checkout-review-order-table { margin: 0 0 18px !important; }
.mc-theme .woocommerce-checkout-review-order-table th, .mc-theme .woocommerce-checkout-review-order-table td { padding: 12px 0 !important; }
.mc-theme .woocommerce-checkout-review-order-table .order-total th, .mc-theme .woocommerce-checkout-review-order-table .order-total td { border-top: 1px solid var(--line) !important; }
.mc-theme #payment { width: 100% !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-sizing: border-box; }
.mc-theme #payment ul.payment_methods {
    margin: 0 0 16px !important; padding: 0 !important; border: 0 !important; border-radius: var(--radius-md); overflow: hidden; background: #fff;
    box-shadow: 0 0 0 1px var(--line);
}
.mc-theme #payment ul.payment_methods > li { margin: 0 !important; padding: 14px 18px !important; border: 0 !important; border-top: 1px solid var(--line) !important; list-style: none; }
.mc-theme #payment ul.payment_methods > li:first-child { border-top: 0 !important; }
.mc-theme #payment ul.payment_methods > li > label { font-weight: 500; }
.mc-theme #payment div.payment_box { margin: 12px 0 0 !important; padding: 14px !important; border-radius: var(--radius-sm) !important; background: var(--surface) !important; }
.mc-theme #payment .wcpay-upe-element, .mc-theme #payment .StripeElement { min-height: 0 !important; }
.mc-theme #payment .woocommerce-privacy-policy-text { margin: 0 0 16px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.mc-theme #payment .woocommerce-privacy-policy-text a { color: var(--ink-soft); text-decoration: underline; }
.mc-theme #payment .place-order { margin: 0 !important; padding: 0 !important; }
.mc-theme #place_order { width: 100%; }
@media (max-width: 760px) {
    .mc-theme .ct-order-review { padding: 18px !important; border-radius: var(--radius-lg) !important; }
    .mc-theme #payment ul.payment_methods > li { padding: 12px 14px !important; }
}

/* Apple Pay / Google Pay sotto il riepilogo ("Effettua ordine"), con "oppure paga con" sopra.
   Solo spostamento visivo: nel codice restano dove li mette WooPayments (spostati nel codice, Stripe non li mostra). */
.mc-theme form.checkout .ct-customer-details { display: contents; }
.mc-theme form.checkout .wcpay-express-checkout-wrapper { display: flex; flex-direction: column; }
.mc-theme form.checkout #wcpay-express-checkout-button-separator { order: -1; margin: 22px 0 14px !important; }
.mc-theme form.checkout #wcpay-express-checkout-button-separator::after { content: "oppure paga con"; }
@media (min-width: 1000px) {
    .mc-theme form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
    .mc-theme form.checkout .wcpay-express-checkout-wrapper { grid-column: 2; grid-row: 2; align-self: start; }
}
@media (max-width: 999px) {
    .mc-theme form.checkout { display: flex; flex-direction: column; }
    .mc-theme form.checkout #customer_details { order: 1; }
    .mc-theme form.checkout > .ct-order-review { order: 2; }
    .mc-theme form.checkout .wcpay-express-checkout-wrapper { order: 3; }
}

/* il riepilogo non "segue" lo scorrimento (Blocksy lo rende sticky): coprirebbe Apple Pay / Google Pay sotto */
.mc-theme form.checkout > .ct-order-review { position: static !important; }

/* --- Opzioni di spedizione: schede da scegliere (carrello e checkout) --- */
.mc-theme tr.woocommerce-shipping-totals { display: block; width: 100%; }
.mc-theme tr.woocommerce-shipping-totals th, .mc-theme tr.woocommerce-shipping-totals td { display: block; width: 100% !important; max-width: none !important; text-align: left !important; }
.mc-theme tr.woocommerce-shipping-totals th { padding-bottom: 4px !important; border: 0 !important; }
.mc-theme tr.woocommerce-shipping-totals td { padding-top: 0 !important; }
.mc-theme tr.woocommerce-shipping-totals td::before { display: none !important; }
.mc-theme #shipping_method { display: grid; gap: 8px; margin: 6px 0 4px !important; padding: 0 !important; list-style: none; }
.mc-theme #shipping_method li { position: relative; margin: 0 !important; padding: 0 !important; list-style: none; }
.mc-theme #shipping_method li::before { display: none !important; }
.mc-theme #shipping_method input.shipping_method {
    position: absolute; left: 16px; top: 50%; translate: 0 -50%; z-index: 1; margin: 0 !important;
    appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
    border: 1.5px solid var(--faint) !important; background: #fff !important; box-shadow: none !important; cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.mc-theme #shipping_method input.shipping_method:checked { border: 1.5px solid var(--ink) !important; background: var(--ink) !important; box-shadow: inset 0 0 0 4px #fff !important; }
.mc-theme #shipping_method input.shipping_method:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mc-theme #shipping_method label {
    display: flex !important; align-items: center; justify-content: space-between; gap: 12px; margin: 0 !important;
    min-height: 54px; padding: 12px 16px 12px 50px; border-radius: var(--radius-sm); background: #fff;
    box-shadow: 0 0 0 1px var(--line); font-size: 14px; color: var(--ink); cursor: pointer; transition: box-shadow .2s;
}
.mc-theme #shipping_method label:hover { box-shadow: 0 0 0 1px var(--faint); }
.mc-theme #shipping_method input.shipping_method:checked + label { box-shadow: 0 0 0 1.5px var(--ink); }
.mc-theme #shipping_method .shipping-option-name { font-weight: 400; }
.mc-theme #shipping_method .shipping-option-price { font-weight: 500; white-space: nowrap; }
/* una sola opzione (niente da scegliere): solo testo, senza pallino */
.mc-theme #shipping_method input[type="hidden"] + label { padding-left: 16px; box-shadow: 0 0 0 1px var(--line); cursor: default; }
.mc-theme .woocommerce-shipping-destination { margin: 10px 0 2px; font-size: 13px; color: var(--ink-soft); }

/* Apple Pay / Google Pay (carrello e checkout): segnaposto animato finche' Stripe non disegna i pulsanti
   (classe mc-express-loading messa e tolta da theme.js) */
/* WooPayments tiene il contenitore trasparente finche' carica: visibile, cosi' si vede il segnaposto */
.mc-express-loading #wcpay-express-checkout-element { position: relative; min-height: 48px; opacity: 1 !important; visibility: visible !important; }
.mc-express-loading #wcpay-express-checkout-element > * { opacity: 0; }
/* due "pulsanti" grigi animati, come Apple Pay e Google Pay affiancati */
.mc-express-loading #wcpay-express-checkout-element::before, .mc-express-loading #wcpay-express-checkout-element::after {
    content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; width: calc(50% - 6px); border-radius: 999px; /* a pillola come Apple Pay / Google Pay (raggio 24 in WooPayments) */
    background: linear-gradient(90deg, #e8e8e8 0%, #f5f5f5 50%, #e8e8e8 100%) 0 0 / 200% 100%;
    animation: mc-shimmer 1.2s ease-in-out infinite;
}
.mc-express-loading #wcpay-express-checkout-element::before { left: 0; }
.mc-express-loading #wcpay-express-checkout-element::after { right: 0; }

/* Riepiloghi (totale carrello, "Il tuo ordine"): righe flessibili invece che tabella, cosi' la riga della
   spedizione puo' usare tutta la larghezza per le schede */
.mc-theme .cart_totals table.shop_table, .mc-theme table.woocommerce-checkout-review-order-table,
.mc-theme .cart_totals table.shop_table tbody, .mc-theme table.woocommerce-checkout-review-order-table thead,
.mc-theme table.woocommerce-checkout-review-order-table tbody, .mc-theme table.woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; }
.mc-theme .cart_totals table.shop_table tr, .mc-theme table.woocommerce-checkout-review-order-table tr {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; border-bottom: 1px solid var(--line);
}
.mc-theme .cart_totals table.shop_table th, .mc-theme .cart_totals table.shop_table td,
.mc-theme table.woocommerce-checkout-review-order-table th, .mc-theme table.woocommerce-checkout-review-order-table td { display: block; border: 0 !important; }
.mc-theme .cart_totals table.shop_table td, .mc-theme table.woocommerce-checkout-review-order-table td { text-align: right; }
.mc-theme .cart_totals table.shop_table td::before { display: none !important; }
.mc-theme .cart_totals table.shop_table tr.woocommerce-shipping-totals, .mc-theme table.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals { flex-direction: column; align-items: stretch; gap: 0; }
.mc-theme .cart_totals table.shop_table tr:last-child, .mc-theme table.woocommerce-checkout-review-order-table tfoot tr:last-child { border-bottom: 0; }
.mc-theme .cart_totals .order-total, .mc-theme .woocommerce-checkout-review-order-table .order-total { align-items: center; }
.mc-express-loading #wcpay-express-checkout-button-separator { display: block !important; }

    border-radius: var(--radius-xl);
}
.arch.arch--portrait img { object-position: 50% 22%; }

/* --- Immagini piu' strette del contenitore: nitide alla loro larghezza reale ---------
   La foto resta a destra alla sua risoluzione (photo-max-N) e sfuma verso sinistra su una copia
   molto sfocata della stessa immagine, che riempie lo spazio restante senza che si noti l'ingrandimento. */
.hero-slide > img.photo-backdrop, .page-hero > img.photo-backdrop {
    position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px);
    object-fit: cover; filter: blur(36px) saturate(1.1); opacity: .95; animation: none !important;
}
.hero-slide > img.photo-contained, .page-hero > img.photo-contained {
    position: absolute; top: 0; right: 0; left: auto; height: 100%;
    object-fit: cover; animation: none !important;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22%);
}
img.photo-contained.photo-max-768 { width: min(100%, 768px); }
img.photo-contained.photo-max-1200 { width: min(100%, 1200px); }
img.photo-contained.photo-max-1254 { width: min(100%, 1254px); }
.page-hero > img.photo-contained.focus-face { object-position: 55% 28%; }
/* nelle slide il contenuto resta sopra le due immagini */
.hero-slide > .photo-backdrop, .hero-slide > .photo-contained { z-index: 0; }

/* Testata chiara (immagine con sfondo chiaro): testo scuro */
/* Testata con immagine chiara: testo bianco anche qui, con una sfumatura scura un po' piu' decisa */
.page-hero--light { color: #fff; background: #8c7d74; }
