/* La Ceramica di Elena Ricciardi® – foglio di stile
   Colori: solo le variabili qui sotto. */
:root {
  --cream:      #FFFFFF; /* Bianco – sfondo pagina */
  --section:    #F7F4F1; /* Grigio caldo chiarissimo – sfondo sezioni */
  --panel:      #EFE9E3; /* Grigio caldo chiaro – riquadri, schede */
  --accent:     #B8915F; /* Cammello – divisori, bordi, linee hover */
  --primary:    #8C1D3A; /* Bordeaux del logo – titoli, bottoni, footer */
  --on-primary: #FFFFFF; /* testo su rosso e su foto */
  --text:       #2F2A27; /* Quasi nero caldo – testo */
  --muted:      #6B6461; /* Grigio caldo – header, icone, menu */

  --font-title: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --gutter: 16px;
  --header-h: 92px;
  --shadow: 0 12px 32px color-mix(in srgb, var(--text) 14%, transparent);
  --line: color-mix(in srgb, var(--accent) 45%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1080px) { :root { --header-h: 116px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 500; color: var(--primary); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }
address { font-style: normal; }
main:focus { outline: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--panel); color: var(--text); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.sr-only { 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: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 62ch; }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--beige { background: var(--section); }
.muted { color: var(--muted); }
.icon { flex: none; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; letter-spacing: .01em;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: color-mix(in srgb, var(--primary) 86%, var(--text)); }
.btn--ghost { border-color: var(--accent); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--panel); }
.btn--light { background: var(--cream); color: var(--primary); }
.btn--light:hover { background: var(--section); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary); text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 4px; transition: gap .2s var(--ease); }
.link-arrow:hover { gap: 12px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: transparent; color: var(--muted); position: relative; transition: background-color .2s;
}
.icon-btn:hover { background: var(--section); color: var(--text); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px color-mix(in srgb, var(--text) 7%, transparent); }
.header__inner { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; min-height: var(--header-h); transition: min-height .3s var(--ease); }
.header.is-scrolled .header__inner { min-height: 66px; }
.header__logo { justify-self: center; display: block; }
.header__logo img { height: 68px; width: auto; transition: height .3s var(--ease); }
.header.is-scrolled .header__logo img { height: 48px; }
.header__actions { display: flex; align-items: center; gap: 4px; }
.nav { display: none; }
.lang-switch { display: none; margin: 0 6px 0 0; font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; }
.lang-switch a { text-decoration: none; padding: 10px 4px; }
.lang-switch a:hover { color: var(--primary); }
.lang-switch__on { color: var(--primary); }
.lang-switch__sep { color: var(--accent); margin: 0 2px; }
.cart-btn__count {
  position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-size: .7rem; font-weight: 700; line-height: 19px; text-align: center;
}
.cart-btn__count.is-bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.3); } }

@media (min-width: 560px) { .lang-switch { display: block; } }
@media (min-width: 1080px) {
  .header__burger { display: none; }
  .header__inner { grid-template-columns: auto 1fr auto; gap: 24px; }
  .header__logo { justify-self: start; }
  .header__logo img { height: 88px; }
  .header.is-scrolled .header__inner { min-height: 76px; }
  .header.is-scrolled .header__logo img { height: 56px; }
  .nav__link { font-size: 1rem; }
  .nav { display: block; justify-self: center; }
  .nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
  .nav__item--sub { position: relative; display: flex; align-items: center; }
  .nav__link {
    display: block; padding: 10px 12px; font-size: .93rem; font-weight: 500; color: var(--muted); text-decoration: none;
    background: linear-gradient(var(--accent), var(--accent)) no-repeat 50% calc(100% - 4px) / 0 1.5px; transition: background-size .25s var(--ease), color .2s;
  }
  .nav__item--sub .nav__link { padding-right: 2px; }
  .nav__link:hover, .nav__link[aria-current] { color: var(--text); background-size: calc(100% - 24px) 1.5px; }
  .nav__item--sub .nav__link:hover, .nav__item--sub .nav__link[aria-current] { background-size: calc(100% - 14px) 1.5px; background-position: 12px calc(100% - 4px); }
  .nav__toggle { display: grid; place-items: center; width: 28px; height: 36px; border: 0; background: none; color: var(--muted); border-radius: 6px; }
  .nav__toggle .icon { transition: transform .2s var(--ease); }
  .nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .nav__sub {
    position: absolute; top: calc(100% + 6px); left: -8px; min-width: 280px; list-style: none; margin: 0; padding: 10px;
    background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav__sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
  .nav__item--sub:hover .nav__sub, .nav__item--sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__sub a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius-sm); text-decoration: none; font-size: .93rem; color: var(--text); }
  .nav__sub a:hover { background: var(--section); color: var(--primary); }
  .nav__sub-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .nav__sub-all a { font-weight: 600; color: var(--primary); }
}
@media (min-width: 1080px) and (max-width: 1240px) { .nav__link { padding-inline: 8px; font-size: .88rem; } }

/* ---------- Pannelli laterali (menu mobile, carrello) ---------- */
.drawer {
  position: fixed; inset: 0 auto 0 0; margin: 0; width: min(420px, 90vw); max-width: none; height: 100dvh; max-height: none;
  border: 0; padding: 0; background: var(--cream); color: var(--text); display: none; flex-direction: column;
}
.drawer[open] { display: flex; animation: slide-left .32s var(--ease); }
.drawer--right { inset: 0 0 0 auto; }
.drawer--right[open] { animation-name: slide-right; }
.drawer::backdrop { background: color-mix(in srgb, var(--text) 45%, transparent); animation: fade .3s; }
@keyframes slide-left { from { transform: translateX(-100%); } }
@keyframes slide-right { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer__logo { height: 44px; width: auto; }
.drawer__nav { padding: 8px 20px; overflow-y: auto; flex: 1; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 8px 0;
  font-family: var(--font-title); font-size: 1.3rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none;
}
.drawer__link::-webkit-details-marker { display: none; }
.drawer__group[open] > summary .icon { transform: rotate(180deg); }
.drawer__group ul { list-style: none; margin: 0; padding: 8px 0 14px 4px; border-bottom: 1px solid var(--line); }
.drawer__group li a { display: block; padding: 9px 0; text-decoration: none; }
.drawer__all { font-weight: 600; color: var(--primary); }
.drawer__lang { padding: 16px 20px 28px; margin: 0; }
.drawer__lang a { font-weight: 600; color: var(--primary); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: clamp(520px, 86vh, 780px); display: grid; align-items: end; color: var(--on-primary); overflow: hidden; }
.hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, color-mix(in srgb, var(--text) 82%, transparent) 0%, color-mix(in srgb, var(--text) 45%, transparent) 42%, transparent 78%);
}
.hero__content { padding-block: 64px clamp(56px, 9vw, 104px); }
.hero h1 { color: var(--on-primary); max-width: 15ch; font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
.hero p { max-width: 46ch; font-size: clamp(1.05rem, 1.7vw, 1.22rem); margin-bottom: 28px; }
.hero .eyebrow { color: var(--on-primary); opacity: .9; }

/* ---------- Sezioni alternate testo / foto (bordi netti) ---------- */
.split { display: grid; align-items: center; }
.split__media { position: relative; order: -1; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__text { padding: clamp(36px, 7vw, 56px) var(--gutter) clamp(56px, 9vw, 96px); position: relative; }
.split__text p { max-width: 52ch; }
.split__text .btn, .split__text .link-arrow { margin-top: 12px; }
.split__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.15fr; min-height: 600px; }
  .split__media { align-self: stretch; order: 0; }
  .split__media img { height: 100%; aspect-ratio: auto; min-height: 600px; }
  .split__text { margin: 0; padding: 80px clamp(24px, 5vw, 72px) 80px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))); }
  .split--reverse { grid-template-columns: 1.15fr 1fr; }
  .split--reverse .split__media { order: -1; }
  .split--reverse .split__text { padding: 80px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) 80px clamp(24px, 5vw, 72px); }
}

/* ---------- Striscia spedizioni ---------- */
.shipping { background: var(--section); padding-block: clamp(44px, 7vw, 72px); }
.shipping__inner { display: grid; gap: 24px; align-items: center; }
.shipping__title { display: flex; align-items: center; gap: 14px; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.shipping__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.shipping__list li { display: flex; gap: 12px; align-items: flex-start; }
.shipping__list .icon { color: var(--primary); margin-top: 3px; }
@media (min-width: 900px) { .shipping__inner { grid-template-columns: 1fr 1.2fr; gap: 56px; } }

/* ---------- Home ---------- */
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero__link { color: var(--on-primary); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--on-primary) 55%, transparent); text-underline-offset: .3em; }
.hero__link:hover { text-decoration-color: var(--on-primary); }
.hero .hero__note { display: inline-flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: .95rem; font-weight: 600; }
.home-block { padding-block: clamp(56px, 9vw, 104px); }
.home-block--tint { background: var(--section); }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.block-head h2 { margin-bottom: .25em; }
.block-head p { margin: 0; max-width: 52ch; }
.block-head .link-arrow { margin-bottom: 6px; }

.worlds { display: grid; gap: clamp(40px, 5vw, 56px); }
@media (min-width: 800px) { .worlds { grid-template-columns: 1fr 1fr; } }
.world__img { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; background: var(--panel); }
.world__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.world:hover .world__img img { transform: scale(1.03); }
.world h2 a { text-decoration: none; }
.world p { max-width: 52ch; }

.home-quote { padding-block: clamp(64px, 10vw, 120px); text-align: center; }
.home-quote figure { margin: 0 auto; max-width: 900px; }
/* Motivo maiolica (colori nel file SVG: bordeaux, bianco, oro): una piastrella sopra la citazione e un bordo sopra il footer */
.home-quote figure::before { content: ""; display: block; width: 120px; height: 24px; margin: 0 auto 32px; background: url("/images/motivo-maiolica.svg") 0 0 / 24px 24px; }
.home-quote blockquote { margin: 0; }
.home-quote blockquote p { font-family: var(--font-title); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.3; color: var(--primary); margin: 0; text-wrap: balance; }
.home-quote blockquote p::before { content: "“"; } .home-quote blockquote p::after { content: "”"; }
.home-quote figcaption { margin-top: 24px; font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.home-quote figcaption::before { content: ""; display: block; width: 40px; height: 1px; background: var(--accent); margin: 0 auto 18px; }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.tile { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.tile__img { display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--on-primary); border: 1px solid var(--panel); margin-bottom: 12px; }
.tile__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .5s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__name { font-family: var(--font-title); font-size: 1.05rem; line-height: 1.25; color: var(--text); }
.tile:hover .tile__name { color: var(--primary); }
.tile__count { font-size: .82rem; color: var(--muted); margin-top: 2px; }

.custom { display: grid; gap: 32px; align-items: center; }
.custom--solo-testo { text-align: center; }
.custom--solo-testo p { margin-inline: auto; }
.custom__text p { max-width: 52ch; }
.custom__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.custom__photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) { .custom:not(.custom--solo-testo) { grid-template-columns: 1fr 1.3fr; gap: 56px; } }

.visit { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--panel); }
.visit h3 { font-size: 1.2rem; margin-bottom: 12px; }
.visit p { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; }
.visit .icon { color: var(--primary); margin-top: 3px; }

/* ---------- Intestazione pagina, briciole ---------- */
.page-head { padding-block: clamp(32px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.page-head p { max-width: 62ch; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 20px; padding: 0; font-size: .86rem; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--accent); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.count { font-size: .9rem; color: var(--muted); }
.page-head__mark { width: 84px; height: 84px; margin-top: 8px; }
.page-head--center { text-align: center; }
.page-head--center .breadcrumb ol { justify-content: center; }
.page-head--center p, .page-head--center .page-head__mark { margin-inline: auto; }
header.page-head { text-align: center; }
header.page-head p { margin-inline: auto; }

/* ---------- Schede collezione ---------- */
/* la foto si vede intera: stesse proporzioni della foto (2400 × 1310) */
.col-banner { margin: 0 0 clamp(28px, 4vw, 44px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 2400 / 1310; background: var(--section); }
.col-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.col-card { display: flex; flex-direction: column; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--section); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.col-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.col-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.col-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.col-card:hover .col-card__img img { transform: scale(1.04); }
.col-card__body { padding: 18px 20px 22px; }
.col-card__body h3 { margin-bottom: 6px; }
.col-card__body p { margin: 0; font-size: .95rem; }
.col-card__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: .85rem; color: var(--muted); }
.col-card__meta .icon { color: var(--primary); transition: transform .2s var(--ease); }
.col-card:hover .col-card__meta .icon { transform: translateX(4px); }
.subsection-title { font-size: 1.4rem; margin: 0 0 20px; text-align: center; }
.subsection-title--center { text-align: center; }

/* ---------- Schede prodotto ---------- */
.product-grid { display: grid; gap: 28px 16px; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }
@media (min-width: 1120px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; height: 100%; }
.card__link { text-decoration: none; display: block; }
.card__img { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--on-primary); margin-bottom: 14px; }
.card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.card__link:hover .card__img img { transform: scale(1.04); }
.card__name { font-family: var(--font-title); font-size: 1.02rem; line-height: 1.3; color: var(--text); margin: 0 0 6px; font-weight: 500; }
.card__link:hover .card__name { color: var(--primary); }
.card__extra { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.card__price { font-weight: 700; margin: 0; }
.card__free { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.card__add {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1.5px solid var(--accent);
  background: transparent; color: var(--primary); transition: background-color .2s, color .2s, border-color .2s;
}
.card__add:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.coming-soon { text-align: center; padding: clamp(48px, 8vw, 96px) 24px; background: var(--section); border-radius: var(--radius); }
.coming-soon h2 { margin-bottom: 8px; }

/* ---------- Pagina prodotto ---------- */
.product { display: grid; gap: 32px; padding-bottom: clamp(48px, 8vw, 96px); }
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; } .product__info { position: sticky; top: calc(var(--header-h) + 16px); } }
.gallery__main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--on-primary); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; list-style: none; padding: 0; overflow-x: auto; }
.gallery__thumbs button { width: 76px; height: 76px; padding: 0; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; background: var(--on-primary); flex: none; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--primary); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product__title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.product__price { font-size: 1.6rem; font-weight: 700; margin: 0; }
.product__vat { font-size: .85rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--section); font-size: .85rem; font-weight: 600; }
.badge .icon { color: var(--primary); }
.product__desc { margin-block: 24px; }
.product__buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 24px; }
.product__buy .btn { flex: 1 1 200px; }
.product__note { font-size: .88rem; color: var(--muted); margin-top: 20px; display: flex; gap: 10px; }
.product__note .icon { color: var(--accent); margin-top: 2px; }
.chakra { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; background: var(--panel); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0 0; }
.chakra dt { font-weight: 700; }
.chakra dd { margin: 0; }

.qty { display: inline-flex; flex-direction: column; gap: 6px; }
.qty__label { font-size: .85rem; font-weight: 600; }
.qty__box { display: inline-flex; align-items: center; border: 1.5px solid var(--accent); border-radius: 999px; height: 48px; }
.qty__box button { width: 44px; height: 44px; border: 0; background: none; border-radius: 999px; display: grid; place-items: center; color: var(--text); }
.qty__box button:hover { background: var(--section); }
.qty__box input { width: 44px; text-align: center; border: 0; background: none; font-weight: 700; -moz-appearance: textfield; }
.qty__box input::-webkit-inner-spin-button, .qty__box input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty--small .qty__box { height: 40px; }
.qty--small .qty__box button { width: 36px; height: 36px; }
.qty--small .qty__box input { width: 32px; }

/* ---------- Carrello ---------- */
.cart-drawer__title { font-size: 1.5rem; margin: 0; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-drawer__foot { padding: 16px 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-sum { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: 1.05rem; }
.cart-empty { padding: 32px 0; text-align: center; }
.cart-line { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line__img { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; background: var(--on-primary); }
.cart-line__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-line__name { font-family: var(--font-title); font-size: 1rem; line-height: 1.3; text-decoration: none; display: block; margin-bottom: 4px; }
.cart-line__name:hover { color: var(--primary); }
.cart-line__unit { font-size: .85rem; color: var(--muted); }
.cart-line__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cart-line__total { font-weight: 700; }
.cart-line__remove { border: 0; background: none; padding: 8px 0; font-size: .85rem; color: var(--muted); text-decoration: underline; min-height: 44px; }
.cart-line__remove:hover { color: var(--primary); }
.cart-page { display: grid; gap: 32px; padding-bottom: clamp(48px, 8vw, 96px); }
@media (min-width: 900px) {
  .cart-page { grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
  .cart-page .cart-line { grid-template-columns: 110px 1fr; }
  .cart-page .cart-line__img { width: 110px; height: 110px; }
}
.summary { background: var(--section); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
@media (min-width: 900px) { .summary { position: sticky; top: calc(var(--header-h) + 16px); } }
.summary h2 { font-size: 1.4rem; margin: 0; }
.summary__row { display: flex; justify-content: space-between; margin: 0; }
.summary__total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.15rem; font-weight: 700; }
.summary__note { font-size: .85rem; color: var(--muted); margin: 0; }
.pickup { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.pickup__title { font-weight: 600; margin: 0 0 6px; }
.pickup__text { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.pickup__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pickup__actions .btn { display: inline-flex; align-items: center; gap: 8px; }

.summary__discount { color: var(--primary); font-weight: 600; }
.discount { display: grid; gap: 6px; padding-top: 4px; }
.discount label { font-weight: 600; font-size: .92rem; }
.discount__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.discount__row input { min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--accent); background: var(--cream); text-transform: uppercase; letter-spacing: .06em; min-width: 0; }
.discount__row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.discount__row input[readonly] { background: var(--panel); }
.discount__row .btn { padding-inline: 18px; background: var(--cream); }
.discount__msg { margin: 0; font-size: .88rem; font-weight: 600; }
.discount__msg:empty { display: none; }
.discount__msg.is-err { color: var(--primary); }

/* ---------- Moduli ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } .form__row--3 { grid-template-columns: 2fr 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--accent); background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.field [aria-invalid="true"] { border-color: var(--primary); }
.field__error { font-size: .85rem; color: var(--primary); font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--primary); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; }
.alert--ok { background: var(--panel); }
.alert--err { background: var(--cream); border: 1.5px solid var(--primary); color: var(--primary); }
.req { color: var(--primary); }
.field__hint { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Buoni regalo ---------- */
.voucher-step { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 16px; min-width: 0; }
.voucher-step legend { padding: 0; margin-bottom: 16px; }
.voucher-free { max-width: 340px; }
.voucher-free__box { position: relative; }
.voucher-free__box input { font-family: var(--font-title); font-size: 1.6rem; padding-right: 44px; min-height: 64px; }
.voucher-free__box span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-family: var(--font-title); font-size: 1.4rem; color: var(--muted); pointer-events: none; }
.voucher-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 16px; background: var(--section); border-radius: var(--radius-sm); font-size: .95rem; }
.voucher-note svg { flex: none; margin-top: 2px; color: var(--primary); }
.voucher-step textarea { min-height: 96px; }
.voucher-step .form__row { align-items: start; }
.voucher-how { background: var(--section); border-radius: var(--radius); padding: 20px 24px; }
.voucher-how__title { font-size: 1.15rem; margin: 0 0 12px; }
.voucher-how ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.voucher-how li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.voucher-how li svg { flex: none; margin-top: 3px; color: var(--primary); }

/* ---------- Contatti ---------- */
.contact { display: grid; gap: 40px; padding-bottom: clamp(48px, 8vw, 96px); }
@media (min-width: 900px) { .contact { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.info-card { background: var(--section); border-radius: var(--radius); padding: 24px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.info-list .icon { color: var(--primary); margin-top: 3px; }
.info-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; background: var(--panel); aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 24px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map.is-loaded { padding: 0; }
.map p { font-size: .88rem; max-width: 36ch; margin: 12px auto 0; }

/* ---------- Testi lunghi (Chi siamo, legali) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; color: var(--text); font-family: var(--font-body); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--section); }
.prose blockquote { margin: 1em 0; padding: 20px 24px; background: var(--panel); border-radius: var(--radius); }
.prose blockquote p { margin: 0 0 .6em; }
.table-wrap { overflow-x: auto; }
mark.todo { background: var(--panel); color: var(--primary); font-weight: 700; padding: 1px 6px; border-radius: 4px; outline: 1.5px dashed var(--primary); outline-offset: 1px; }
.notice { display: flex; gap: 12px; background: var(--panel); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 32px; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--primary); color: var(--on-primary); padding-top: calc(24px + clamp(48px, 7vw, 80px)); font-size: .95rem; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 24px; background: url("/images/motivo-maiolica.svg") 0 0 / 24px 24px; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr .8fr; } }
.footer__logo { height: 64px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer__title { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--on-primary) 75%, transparent); margin-bottom: 14px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer__list a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; text-decoration: none; }
.footer__list a:hover { text-decoration: underline; }
.footer__list .icon { color: var(--on-primary); }
.footer__social { list-style: none; display: flex; gap: 6px; margin: 0 0 0 -10px; padding: 0; }
.footer__social .icon-btn { color: var(--on-primary); }
.footer__social .icon-btn:hover { background: color-mix(in srgb, var(--on-primary) 15%, transparent); color: var(--on-primary); }
/* pagina Contatti: le stesse icone su fondo chiaro, nel colore del logo */
.info-card .footer__social .icon-btn { color: var(--primary); }
.info-card .footer__social .icon-btn:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.footer__bottom { margin-top: 48px; padding-block: 20px; border-top: 1px solid color-mix(in srgb, var(--on-primary) 25%, transparent); font-size: .85rem; color: color-mix(in srgb, var(--on-primary) 80%, transparent); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.footer__bottom p { margin: 0; }
.footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: .8rem; }
.footer__legal a { display: inline-block; padding: 8px 0; text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; }

/* ---------- Avviso (toast) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: opacity .25s var(--ease), transform .25s var(--ease); display: flex; align-items: center; gap: 8px;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Comparsa allo scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.section[data-flush] { padding-top: 0; }
.breadcrumb.page-head { padding-bottom: 0; }

/* ---------- Personalizzazioni ---------- */
.works { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .works { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.works img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--section); }
.works__item { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.works__item img { transition: transform .4s var(--ease); }
.works__item:hover img { transform: scale(1.03); }
.works--empty img { aspect-ratio: 1; }
.works-cta { text-align: center; }
.works-cta p { max-width: 56ch; margin: 12px auto 28px; }
.works-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.zoom { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.zoom::backdrop { background: rgb(30 24 20 / .9); }
.zoom[open] { display: flex; align-items: center; justify-content: center; }
.zoom img { max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); object-fit: contain; border-radius: var(--radius); }
.zoom__close { position: absolute; top: 16px; right: 16px; color: #fff; }
