/*
Theme Name: Cera Una Volta 1961
Theme URI: https://ceraunavolta1961.example
Author: Cera Una Volta
Description: Tema WooCommerce su misura per gioielli artigianali realizzati con la tecnica della cera persa.
Version: 1.4.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: ceraunavolta
*/

:root {
  --cuv-ink: #211d1a;
  --cuv-muted: #746d66;
  --cuv-cream: #f7f3ec;
  --cuv-paper: #fffdf9;
  --cuv-gold: #a97938;
  --cuv-gold-dark: #7a5425;
  --cuv-sage: #66705d;
  --cuv-line: #ded7cc;
  --cuv-shadow: 0 20px 55px rgba(43, 33, 24, .12);
  --cuv-radius: 22px;
  --cuv-display: Georgia, 'Times New Roman', serif;
  --cuv-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cuv-ink);
  background: var(--cuv-paper);
  font-family: var(--cuv-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.cuv-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.cuv-kicker { color: var(--cuv-gold-dark); font-size: .78rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.cuv-section { padding: 92px 0; }
.cuv-section--cream { background: var(--cuv-cream); }
.cuv-section-heading { max-width: 720px; margin-bottom: 38px; }
.cuv-section-heading h2, .cuv-story h2 { margin: 8px 0 14px; font: 400 clamp(2rem, 4vw, 3.5rem)/1.08 var(--cuv-display); }
.cuv-section-heading p { margin: 0; color: var(--cuv-muted); }
.cuv-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--cuv-ink);
  border-radius: 999px;
  background: var(--cuv-ink);
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.cuv-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--cuv-gold-dark); color: #fff; transform: translateY(-2px); }
.cuv-button--light { border-color: rgba(255,255,255,.7); background: #fff; color: var(--cuv-ink); }
.cuv-button--ghost { background: transparent; color: var(--cuv-ink); }

/* Header */
.cuv-topbar { padding: 8px 16px; background: var(--cuv-ink); color: #fff; font-size: .77rem; letter-spacing: .09em; text-align: center; text-transform: uppercase; }
.cuv-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(33,29,26,.08); background: rgba(255,253,249,.94); backdrop-filter: blur(12px); }
.admin-bar .cuv-header { top: 32px; }
.cuv-header__inner { display: grid; grid-template-columns: 230px 1fr auto; min-height: 86px; align-items: center; gap: 24px; }
.cuv-brand img { display: block; width: 210px; max-height: 58px; object-fit: contain; object-position: left center; }
.cuv-brand__text { font: 400 1.55rem/1 var(--cuv-display); text-decoration: none; }
.cuv-nav ul { display: flex; justify-content: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.cuv-nav a { font-size: .84rem; font-weight: 650; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.cuv-nav a:hover, .cuv-nav .current-menu-item > a { color: var(--cuv-gold-dark); }
.cuv-actions { display: flex; align-items: center; gap: 16px; }
.cuv-actions a { display: inline-flex; position: relative; align-items: center; gap: 7px; font-size: .8rem; text-decoration: none; }
.cuv-actions svg { width: 22px; height: 22px; }
.cuv-cart-count { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--cuv-gold); color: #fff; font-size: .68rem; font-weight: 700; }
.cuv-menu-toggle { display: none; width: 44px; height: 44px; flex: 0 0 44px; align-items: center; justify-content: center; padding: 0; border: 1px solid #cfc5b7; border-radius: 50%; background: #fff; box-shadow: 0 4px 13px rgba(33,29,26,.1); color: var(--cuv-ink); cursor: pointer; }
.cuv-menu-toggle svg { display: block; width: 25px; height: 25px; overflow: visible; }
.cuv-menu-toggle path { stroke: currentColor; }
.cuv-menu-toggle:hover, .cuv-menu-toggle:focus-visible { border-color: var(--cuv-gold-dark); background: var(--cuv-cream); color: var(--cuv-gold-dark); outline: 2px solid transparent; }
.cuv-menu-toggle[aria-expanded="true"] { border-color: var(--cuv-ink); background: var(--cuv-ink); color: #fff; }

/* Home */
.cuv-hero { min-height: min(760px, calc(100vh - 118px)); display: grid; align-items: end; position: relative; overflow: hidden; color: #fff; background: #2e2a25; }
.cuv-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,18,15,.82) 0%, rgba(22,18,15,.42) 50%, rgba(22,18,15,.12) 100%), url('assets/images/hero.jpg') center/cover no-repeat; transform: scale(1.015); }
.cuv-hero__content { position: relative; z-index: 1; max-width: 760px; padding: 140px 0 110px; }
.cuv-hero .cuv-kicker { color: #e5c18f; }
.cuv-hero h1 { max-width: 720px; margin: 14px 0 22px; font: 400 clamp(3.1rem, 8vw, 6.8rem)/.94 var(--cuv-display); letter-spacing: -.035em; }
.cuv-hero p { max-width: 610px; margin: 0 0 34px; color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.cuv-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cuv-intro { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.cuv-intro blockquote { margin: 0; font: 400 clamp(2rem, 4vw, 3.6rem)/1.12 var(--cuv-display); }
.cuv-intro__copy { color: var(--cuv-muted); }
.cuv-intro__copy p:first-child { margin-top: 0; color: var(--cuv-ink); font-size: 1.22rem; }
.cuv-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cuv-category { min-height: 420px; display: flex; align-items: flex-end; position: relative; overflow: hidden; border-radius: var(--cuv-radius); background: #d8d0c3; box-shadow: var(--cuv-shadow); text-decoration: none; }
.cuv-category::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(18,14,11,.8)); }
.cuv-category img { position: absolute; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cuv-category:hover img { transform: scale(1.045); }
.cuv-category__content { position: relative; z-index: 1; width: 100%; padding: 28px; color: #fff; }
.cuv-category__content h3 { margin: 0; font: 400 2rem/1.05 var(--cuv-display); }
.cuv-category__content span { display: inline-block; margin-top: 8px; font-size: .77rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cuv-story { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; overflow: hidden; border-radius: 28px; background: var(--cuv-sage); color: #fff; }
.cuv-story__image { background: url('assets/images/story.jpg') center/cover no-repeat; }
.cuv-story__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(42px, 7vw, 88px); }
.cuv-story__copy p { color: rgba(255,255,255,.82); }
.cuv-contact-band { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 55px 60px; border-radius: var(--cuv-radius); background: var(--cuv-ink); color: #fff; }
.cuv-contact-band h2 { margin: 0 0 6px; font: 400 clamp(1.8rem, 4vw, 3rem)/1.1 var(--cuv-display); }
.cuv-contact-band p { margin: 0; color: rgba(255,255,255,.72); }

/* WooCommerce */
.cuv-main { min-height: 55vh; padding: 64px 0 96px; }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 28px; color: var(--cuv-muted); font-size: .8rem; }
.woocommerce-products-header__title, .woocommerce div.product .product_title, .entry-title { font: 400 clamp(2.4rem, 5vw, 4.4rem)/1.02 var(--cuv-display); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; }
.woocommerce ul.products li.product a img { aspect-ratio: 4/5; margin: 0 0 17px; border-radius: 16px; object-fit: cover; background: var(--cuv-cream); transition: transform .35s ease; }
.woocommerce ul.products li.product a:hover img { transform: translateY(-4px); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; color: var(--cuv-ink); font: 400 1.2rem/1.25 var(--cuv-display); }
.woocommerce ul.products li.product .price { color: var(--cuv-gold-dark); font-size: .93rem; font-weight: 650; }
.woocommerce span.onsale { min-width: auto; min-height: auto; margin: 12px !important; padding: 7px 11px; border-radius: 999px; background: var(--cuv-gold-dark); line-height: 1; }
.woocommerce ul.products li.product .button { margin-top: 11px; padding: 10px 16px; min-height: 40px; font-size: .72rem; }
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images img { border-radius: 18px; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--cuv-gold-dark); font-size: 1.35rem; }
.woocommerce div.product form.cart .variations select, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .select2-container--default .select2-selection--single {
  min-height: 48px; padding: 10px 13px; border: 1px solid var(--cuv-line); border-radius: 10px; background: #fff; color: var(--cuv-ink);
}
.woocommerce .quantity .qty { min-height: 48px; border: 1px solid var(--cuv-line); border-radius: 10px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--cuv-gold); background: var(--cuv-cream); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--cuv-gold-dark); }
.woocommerce table.shop_table { border-color: var(--cuv-line); border-radius: 14px; }
.woocommerce-checkout #payment { background: var(--cuv-cream); }
.woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation a { display: block; padding: 13px 16px; border-bottom: 1px solid var(--cuv-line); text-decoration: none; }
.woocommerce-MyAccount-navigation .is-active a { color: var(--cuv-gold-dark); font-weight: 700; }

/* Pages and footer */
.cuv-page { max-width: 820px; }
.cuv-page > *:first-child { margin-top: 0; }
.cuv-footer { padding: 68px 0 28px; background: #171411; color: #fff; }
.cuv-footer__grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 70px; }
.cuv-footer__brand { max-width: 420px; }
.cuv-footer__brand h2 { margin: 0 0 18px; font: 400 2rem/1 var(--cuv-display); }
.cuv-footer p, .cuv-footer a { color: rgba(255,255,255,.68); }
.cuv-footer h3 { margin: 0 0 15px; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; }
.cuv-footer ul { margin: 0; padding: 0; list-style: none; }
.cuv-footer li { margin: 8px 0; }
.cuv-footer a { text-decoration: none; }
.cuv-footer a:hover { color: #fff; }
.cuv-footer__bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .76rem; }

@media (max-width: 960px) {
  .cuv-header__inner { grid-template-columns: minmax(0,1fr) auto auto; }
  .cuv-brand { grid-column: 1; grid-row: 1; }
  .cuv-actions { grid-column: 2; grid-row: 1; }
  .cuv-menu-toggle { display: inline-flex; }
  .cuv-menu-toggle { grid-column: 3; grid-row: 1; }
  .cuv-nav { display: none; grid-column: 1 / -1; grid-row: 2; padding-bottom: 22px; }
  .cuv-nav.is-open { display: block; }
  .cuv-nav ul { align-items: flex-start; flex-direction: column; gap: 13px; }
  .cuv-actions__label { display: none; }
  .cuv-intro, .cuv-story { grid-template-columns: 1fr; }
  .cuv-story__image { min-height: 420px; }
  .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .admin-bar .cuv-header { top: 46px; }
  .cuv-container { width: min(100% - 28px, 1180px); }
  .cuv-header__inner { min-height: 72px; gap: 10px; }
  .cuv-brand img { width: min(170px, 43vw); }
  .cuv-actions { gap: 9px; }
  .cuv-hero { min-height: 660px; }
  .cuv-hero__content { padding: 120px 0 70px; }
  .cuv-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .cuv-section { padding: 68px 0; }
  .cuv-categories { grid-template-columns: 1fr; }
  .cuv-category { min-height: 380px; }
  .cuv-story__image { min-height: 330px; }
  .cuv-story__copy { padding: 40px 28px; }
  .cuv-contact-band { grid-template-columns: 1fr; padding: 38px 28px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px 13px; }
  .woocommerce ul.products li.product .button { display: none; }
  .cuv-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .cuv-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
