@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --bg: #fbf4ea; --ink: #1f1a24; --muted: #6d6570; --line: #eadfce; --card: #efe5d6;
  --pink: #d63d72; --teal: #138f87; --orange: #e0612e; --violet: #6e4bc4; --blue: #2b6fc6; --gold: #b07a00;
  --xmas: #b3262e; --pine: #1f5c45;
  --wrap: 1200px; --pad: clamp(18px, 4vw, 36px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 "Figtree", system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.muted { color: var(--muted); }

/* bottoni */
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; font: 600 15px/1 "Figtree", sans-serif; text-decoration: none; transition: background .15s, color .15s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn--main { background: var(--pink); color: #fff; } .btn--main:hover { background: #b92f5f; }
.btn--line { box-shadow: inset 0 0 0 1.5px var(--ink); } .btn--line:hover { background: var(--ink); color: #fff; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--pink); }

/* testata */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__bar { display: flex; align-items: center; gap: 26px; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font: 600 21px/1 "Fraunces", serif; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.menu { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.menu a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-bottom-color: var(--line); }
.menu a[aria-current="page"] { border-bottom-color: var(--pink); }
.menu .xmas { color: var(--xmas); font-weight: 600; }
.toggle { display: none; margin-left: auto; border: 0; background: none; padding: 8px; cursor: pointer; }
.toggle svg { width: 24px; height: 24px; }
@media (max-width: 860px) {
  .top .btn { display: none; }
  .toggle { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px; }
  .menu a { padding: 12px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .top.open .menu { display: flex; }
}

/* sezioni */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section + .section:not(.xmas-band):not(.order) { padding-top: 0; }
.section.xmas-band + .section:not(.order) { padding-top: clamp(48px, 7vw, 88px); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 26px; }
.head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.head p { max-width: 46ch; color: var(--muted); }
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 36px); }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); }
.page-head p { margin-top: 14px; max-width: 52ch; font-size: 18px; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

/* apertura home */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); }
.hero p { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 36ch; margin-top: 20px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__pic { border-radius: 18px; overflow: hidden; aspect-ratio: 1; }
.hero__pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .hero__grid { grid-template-columns: 1fr; } .hero__pic { order: -1; aspect-ratio: 4 / 3; } }

/* categorie */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.cat { text-decoration: none; display: block; }
.cat__pic { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--card); }
.cat__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat:hover .cat__pic img { transform: scale(1.03); }
.cat__name { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-weight: 600; font-size: 18px; }
.cat__name span { font-weight: 400; font-size: 14px; color: var(--muted); }
.cat__name::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 9px; align-self: center; }
.cat__name b { margin-right: auto; font-weight: 600; }

/* griglia prodotti */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }
.item { border: 0; padding: 0; background: none; text-align: left; cursor: zoom-in; color: inherit; font: inherit; }
.item__pic { display: block; position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--card); }
.item__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .4s; }
.item__pic img + img { opacity: 0; }
.item:hover .item__pic img + img { opacity: 1; }
.item:hover .item__pic img { transform: scale(1.03); }
.item__name { display: block; margin-top: 10px; font-weight: 600; line-height: 1.35; }
.item__name::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 2px; }
.c-specchi { --c: var(--teal); } .c-orologi { --c: var(--orange); } .c-dischi { --c: var(--blue); }
.c-quadri { --c: var(--violet); } .c-casa { --c: var(--pink); } .c-portachiavi { --c: var(--gold); }

.jump { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.jump a { text-decoration: none; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; padding: 3px 0; }
.jump a:hover { color: var(--ink); border-bottom-color: var(--c, var(--ink)); }
.shop-cat { padding-top: clamp(36px, 5vw, 56px); }
.shop-cat .head h2 a { text-decoration: none; } .shop-cat .head h2 a:hover { text-decoration: underline; text-underline-offset: 6px; }
.others { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.others a { text-decoration: none; padding: 9px 15px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 15px; }
.others a:hover { box-shadow: inset 0 0 0 1.5px var(--c, var(--ink)); }

/* natale */
.xmas-band { background: var(--xmas); color: #fff; }
.xmas-band .head h2 { color: #fff; } .xmas-band .head p { color: rgba(255,255,255,.85); }
.xmas-band .item__name { color: #fff; } .xmas-band .item__name::before { background: #fff; }
.xmas-band .btn { background: #fff; color: var(--xmas); } .xmas-band .btn:hover { background: var(--ink); color: #fff; }
.note { margin-top: 32px; padding: 22px 24px; border-radius: 14px; background: #fff; max-width: 720px; }
.note h2 { font-size: 24px; margin-bottom: 8px; }

/* su ordinazione */
.order { background: var(--teal); color: #fff; }
.order__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.order__text { padding: clamp(40px, 6vw, 80px) clamp(0px, 4vw, 56px) clamp(40px, 6vw, 80px) 0; }
.order h2 { font-size: clamp(30px, 3.6vw, 44px); }
.order p { margin-top: 18px; max-width: 42ch; font-size: 18px; }
.order .btn { margin-top: 28px; background: #fff; color: var(--teal); } .order .btn:hover { background: var(--ink); color: #fff; }
.order__pic { min-height: 320px; position: relative; }
.order__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .order__grid { grid-template-columns: 1fr; } .order__text { padding-right: 0; } .order__pic { margin: 0 calc(var(--pad) * -1); } }

/* testi lunghi */
.prose { max-width: 680px; font-size: 18px; }
.prose p + p, .prose h2 + p, .prose p + h2 { margin-top: 16px; }
.prose h2 { font-size: 28px; margin-top: 40px; }
.prose blockquote { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--pink); font-family: "Fraunces", Georgia, serif; font-size: 22px; line-height: 1.4; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split__pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split__pics img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.split__pics img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 18px 0 18px 48px; border-top: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 16px; font: 600 26px/1 "Fraunces", serif; color: var(--pink); }
.steps h2 { font-size: 22px; margin: 0 0 4px; }

/* fondo */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--muted); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot h2 { font: 600 16px/1.3 "Figtree", sans-serif; color: var(--ink); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); text-decoration: underline; }
.foot__bottom { margin-top: 28px; }
@media (max-width: 700px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > :first-child { grid-column: 1 / -1; } }

.actionbar { display: none; }
@media (max-width: 700px) {
  .actionbar { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; }
  .actionbar .btn { display: block; text-align: center; padding: 15px; }
  body { padding-bottom: 76px; }
}

/* foto grande a carosello */
dialog { border: 0; padding: 0; border-radius: 16px; width: min(860px, 94vw); background: #fff; color: var(--ink); }
dialog::backdrop { background: rgba(31, 26, 36, .72); }
.zoom__stage { position: relative; background: var(--card); }
dialog img { width: 100%; height: min(74vh, 640px); object-fit: contain; user-select: none; }
.zoom__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.zoom__bar strong { font-size: 18px; }
.nav-btn { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .15s; }
.nav-btn:hover { background: #fff; transform: scale(1.06); }
.nav-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-btn--prev { left: 12px; } .nav-btn--next { right: 12px; }
.dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.dots i.on { background: #fff; }
.close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
@media (max-width: 700px) { dialog img { height: 62vh; } .nav-btn { width: 38px; height: 38px; } }

@media (prefers-reduced-motion: no-preference) {
  .hero__grid > *, .page-head > * { animation: in .6s ease-out both; }
  .hero__pic { animation-delay: .1s !important; }
  @keyframes in { from { opacity: 0; translate: 0 12px; } }
}

/* WordPress: pagina prodotto, prezzi, pagine WooCommerce */
.item__price { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; }
.item__cat { font: 700 12px/1 "Figtree", sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--c); margin: 10px 0 16px; }
.product__pics { display: grid; gap: 12px; }
.product__pics img { width: 100%; height: auto; border-radius: 14px; background: var(--card); }
.product__info { position: sticky; top: 90px; }
.product__info h1 { font-size: clamp(32px, 4vw, 48px); }
.product__price { font: 600 24px/1.2 "Fraunces", serif; margin: 18px 0; }
.product__info .prose { font-size: 17px; }
.product form.cart { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.product form.cart .qty { width: 64px; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.product form.cart button { padding: 13px 22px; border: 0; border-radius: 999px; background: var(--pink); color: #fff; font: 600 15px/1 "Figtree", sans-serif; cursor: pointer; }
@media (max-width: 820px) { .product__info { position: static; } }
.wc-page { max-width: 1000px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; padding: 14px 18px; border-radius: 12px; background: #fff; margin: 0 0 20px; }
.page-head p:empty { display: none; }
.jump .xmas-link { color: var(--xmas); }
.shop-xmas .head h2 { color: var(--xmas); }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot__credit a { text-decoration: underline; text-underline-offset: 3px; }
.c-resina { --c: #0e7c9a; }
.c-sughero-sassi { --c: #8a5a2b; }
