/* OLGA · Magici Dettagli — palette presa dal logo (ghirlanda rose su cipria) */
:root {
  --cipria: #fbeef1;
  --cipria-2: #f6dde4;
  --cream: #fffaf8;
  --bordeaux: #6b1d2e;
  --bordeaux-2: #8a2a40;
  --rosa: #b9476e;
  --malva: #9d7c8b;
  --ink: #3a2128;
  --muted: #7a5e66;
  --line: #ecd3da;
  --whatsapp: #1f9d55;
  --radius: 18px;
  --shadow: 0 10px 30px -14px rgba(107, 29, 46, 0.35);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--bordeaux); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--bordeaux); font-weight: 600; line-height: 1.1; margin: 0 0 .4em; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--rosa); margin: 0 0 .6rem; font-weight: 500; }
.section-title { text-align: center; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.6rem; }
[hidden] { display: none !important; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 .95rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--bordeaux); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--bordeaux-2); }
.btn-ghost { background: transparent; color: var(--bordeaux); border-color: var(--bordeaux); }
.btn-ghost:hover { background: var(--cipria); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { filter: brightness(1.05); }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--bordeaux); cursor: pointer; font-size: 1rem; flex-shrink: 0;
}
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1rem; padding: .6rem clamp(16px, 4vw, 48px);
  background: rgba(255, 250, 248, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { border-radius: 50%; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: var(--serif); font-size: 1.35rem; color: var(--bordeaux); letter-spacing: .12em; }
.brand small { font-size: .62rem; text-transform: uppercase; letter-spacing: .2em; color: var(--rosa); margin-top: 3px; }
.nav { margin-left: auto; display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; color: var(--ink); font-size: .92rem; cursor: pointer; }
.nav a:hover { color: var(--rosa); }
.basket-btn {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--bordeaux); background: #fff; color: var(--bordeaux); font: 500 .88rem var(--sans); cursor: pointer;
}
.badge { background: var(--rosa); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: .75rem; padding: 0 6px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 6vw, 96px);
  background: radial-gradient(ellipse at 80% 40%, var(--cipria-2), transparent 60%), var(--cipria);
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
.hero h1 em { color: var(--rosa); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-logo img { width: min(420px, 100%); margin: 0 auto; border-radius: 50%; box-shadow: 0 30px 60px -30px rgba(107, 29, 46, .45); }

/* ---------- Come funziona ---------- */
.steps { padding: clamp(48px, 7vw, 88px) clamp(16px, 6vw, 96px); }
.steps-list { list-style: none; padding: 0; margin: 0 auto; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.steps-list li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.steps-list h3 { font-size: 1.5rem; }
.steps-list p { margin: 0; color: var(--muted); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--cipria-2); color: var(--bordeaux); font: 600 1.2rem var(--serif); margin-bottom: .8rem; }

/* ---------- Catalogo ---------- */
.catalog { padding: 0 clamp(16px, 6vw, 96px) clamp(56px, 8vw, 96px); }
.filters { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.chip {
  padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font: 400 .9rem var(--sans); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; max-width: 1200px; margin: 0 auto; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-visual { aspect-ratio: 1; overflow: hidden; background: var(--cipria); }
.card-visual img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.placeholder {
  position: relative; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, transparent 38%, rgba(185, 71, 110, .14) 39%, rgba(185, 71, 110, .14) 40%, transparent 41%),
    radial-gradient(ellipse at 30% 20%, #fff 0, transparent 55%), var(--cipria);
}
.monogram { font: italic 500 5.5rem var(--serif); color: var(--bordeaux); opacity: .85; }
.photo-tag { position: absolute; bottom: 12px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--malva); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--rosa); margin: 0 0 .3rem; }
.card h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.card-tag { color: var(--muted); font-size: .92rem; margin: 0 0 1rem; flex: 1; }
.card .btn { align-self: flex-start; padding: .65rem 1.3rem; }

/* ---------- About / footer ---------- */
.about { padding: clamp(48px, 7vw, 96px) clamp(16px, 6vw, 96px); background: var(--cipria); }
.about-inner { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-visual img { width: min(360px, 100%); height: auto; aspect-ratio: 3 / 4; object-fit: cover; margin: 0 auto; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: 0 30px 60px -30px rgba(107, 29, 46, .45); }
.about h2 { font-size: clamp(2.2rem, 4.5vw, 3rem); }
.about-text p:not(.eyebrow) { color: var(--muted); margin: 0 0 1rem; }
.about-text .about-lead { font: italic 500 1.5rem/1.35 var(--serif); color: var(--bordeaux); }
.about-text .signature { font: italic 500 1.6rem var(--serif); color: var(--rosa); margin: 1.4rem 0 1.6rem; }
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-visual img { width: 220px; }
}
.site-footer { text-align: center; padding: 2.4rem 16px 3rem; color: var(--muted); font-size: .9rem; }
.site-footer img { border-radius: 50%; margin: 0 auto .8rem; }
.site-footer a { cursor: pointer; }

/* ---------- Dialog prodotto ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--cream); }
dialog::backdrop { background: rgba(58, 33, 40, .45); backdrop-filter: blur(2px); }
.sheet { width: min(1080px, 94vw); max-height: 92vh; border-radius: 24px; overflow: hidden; }
.pd-scroll { position: relative; max-height: 92vh; overflow-y: auto; padding: clamp(20px, 3vw, 36px); }
.close { position: sticky; top: 0; float: right; z-index: 2; }
.pd-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 3vw, 40px); clear: both; }
.pd-info h2 { font-size: 2.2rem; margin-top: 1rem; }
.pd-info p { color: var(--muted); }
.pd-image { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--cipria); }
.pd-image img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.zoomable { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.zoom-hint {
  position: absolute; right: 10px; bottom: 10px; padding: .35rem .7rem; border-radius: 999px;
  background: rgba(255, 250, 248, .92); color: var(--bordeaux); font: 500 .78rem var(--sans); pointer-events: none;
}
.thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.thumb { width: 64px; height: 64px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.form-head { background: var(--cipria-2); border-radius: var(--radius); padding: 1.1rem; text-align: center; margin-bottom: 1.2rem; }
.form-head h3 { font-size: 1.7rem; margin: 0; }
.form-head p:last-child { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- Foto a schermo intero ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; background: rgba(20, 10, 14, .96); color: #fff; }
.lb-bar { position: absolute; inset: 0 0 auto; z-index: 2; display: flex; align-items: center; gap: 1rem; padding: 12px 16px; }
.lb-counter { font-size: .9rem; min-width: 3.5rem; }
.lb-tip { flex: 1; text-align: center; font-size: .8rem; opacity: .75; }
.lb-stage { position: absolute; inset: 0; overflow: auto; display: grid; place-items: center; padding: 64px 16px; overscroll-behavior: contain; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 128px); object-fit: contain; cursor: zoom-in; user-select: none; }
.lb-stage.zoomed { display: block; padding: 0; }
.lb-stage.zoomed .lb-img { max-width: none; max-height: none; width: calc(100vw * var(--lb-zoom, 2.5)); cursor: zoom-out; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-nav[hidden] { display: none; }

/* ---------- Campi ---------- */
.field { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.field legend, .field > label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .45rem; padding: 0; }
.field input[type="text"], .field input[type="number"], .field input[type="date"], .field select, .field textarea {
  width: 100%; padding: .75rem .95rem; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  font: 400 1rem var(--sans); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(185, 71, 110, .15); }
.help { font-size: .8rem; color: var(--muted); margin: .4rem 0 0; }
.help.center { text-align: center; }
.field-note { background: #fff; border: 1px dashed var(--rosa); border-radius: 12px; padding: .7rem .9rem; font-size: .9rem; margin: 0 0 1.1rem; }
.options { display: flex; flex-wrap: wrap; gap: .5rem; }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option span {
  display: inline-block; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .92rem; transition: all .15s ease;
}
.option input:checked + span { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.option input:focus-visible + span { outline: 3px solid var(--rosa); outline-offset: 2px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: .6rem; }
.swatch { position: relative; cursor: pointer; text-align: center; }
.swatch input { position: absolute; opacity: 0; }
.swatch-color { display: block; height: 44px; border-radius: 12px; background: var(--swatch); border: 1px solid rgba(0, 0, 0, .1); transition: box-shadow .15s ease; }
.swatch-name { display: block; font-size: .8rem; margin-top: .3rem; }
.swatch input:checked + .swatch-color { box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--bordeaux); }
.swatch input:focus-visible + .swatch-color { outline: 3px solid var(--rosa); outline-offset: 4px; }

.preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: .4rem 0 1rem; }
.preview summary { cursor: pointer; font-weight: 500; color: var(--bordeaux); font-size: .92rem; }
.preview pre { white-space: pre-wrap; font: 400 .85rem/1.5 var(--sans); color: var(--ink); margin: .8rem 0 0; }

/* ---------- Drawer richiesta ---------- */
.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(460px, 100vw); }
.drawer-inner { padding: 20px; height: 100%; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.drawer-head h2 { font-size: 2rem; margin: 0; }
.empty { text-align: center; padding: 3rem 0; color: var(--muted); }
.basket-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .7rem; }
.basket-item { display: flex; gap: .8rem; align-items: flex-start; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; }
.basket-item h4 { font-size: 1.25rem; margin: 0 0 .2rem; }
.basket-lines { font-size: .8rem; color: var(--muted); margin: 0; }
.drawer .btn-block { margin-bottom: .6rem; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 100;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 999px; font-size: .9rem;
  max-width: calc(100vw - 32px); text-align: center; transition: transform .3s ease, opacity .3s ease;
  opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .basket-btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 220px; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .steps-list { grid-template-columns: 1fr; }
  .pd-grid { grid-template-columns: 1fr; }
  .sheet { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .pd-scroll { max-height: 100dvh; }
  .pd-image { aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
  .basket-btn span:first-child { display: none; }
  .basket-btn::before { content: '💌'; }
  .grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .card h3 { font-size: 1.2rem; }
  .card-tag { display: none; }
  .card .btn { align-self: stretch; padding: .55rem .6rem; font-size: .85rem; }
  .monogram { font-size: 3.8rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.add-more { margin-bottom: 1.2rem !important; border-style: dashed; }

/* ---------- Pagine legali ---------- */
.todo { background: #fff1b8; color: #6b4a00; padding: 0 .25em; border-radius: 4px; }
.back { margin-left: auto; padding: .55rem 1rem; font-size: .88rem; }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) 16px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.55rem; margin-top: 2rem; }
.legal .updated { color: var(--muted); font-size: .88rem; }
.legal li { margin-bottom: .5rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .92rem; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.legal th { background: var(--cipria); color: var(--bordeaux); font-weight: 500; }
.legal code { font-size: .85em; background: var(--cipria); padding: .1em .35em; border-radius: 4px; }
.legal-footer { padding-bottom: 3rem; }
.site-footer .biz { font-size: .82rem; margin-top: 1.2rem; }
.legal-links { font-size: .85rem; }
.legal-links a { color: var(--muted); }

/* ---------- Pulsante WhatsApp fisso ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.1rem .8rem .9rem; border-radius: 999px;
  background: var(--whatsapp); color: #fff; text-decoration: none; font: 500 .95rem var(--sans);
  box-shadow: 0 10px 24px -8px rgba(31, 157, 85, .6); transition: transform .15s ease;
}
.wa-float:hover { transform: translateY(-2px); }
.site-footer { padding-bottom: 6rem; }
@media (max-width: 420px) {
  .wa-float { padding: .8rem; }
  .wa-float span { display: none; }
}
@media (max-width: 860px) { .toast { bottom: 84px; } }

/* ---------- Prezzi ---------- */
.card-price { font: 500 1.15rem var(--sans); color: var(--bordeaux); margin: 0 0 .9rem; }
.option .hint { margin-left: .45em; font-size: .78em; opacity: .75; }
.option input:checked + span .hint { opacity: .9; }
.option input:disabled + span { cursor: default; opacity: .85; }
.price-box {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: var(--cipria); border-radius: var(--radius); padding: .9rem 1.1rem; margin: .4rem 0 1rem;
  font: 500 1.2rem var(--sans); color: var(--bordeaux);
}
.basket-price { font: 500 1rem var(--sans); color: var(--bordeaux); margin: .35rem 0 0; }
.basket-total {
  display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .3rem;
  padding: .8rem 1rem; background: var(--cipria); border-radius: 14px; font-weight: 500;
}
.basket-total strong { font: 500 1.35rem var(--sans); color: var(--bordeaux); }
#basket-total-note { margin: 0 0 1rem; }

/* ---------- Banner cookie (Accetta e Rifiuta con lo stesso peso visivo) ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 560px; margin: 0 auto; padding: 1.1rem 1.2rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.cookie-banner p { margin: 0 1.6rem .9rem 0; font-size: .9rem; color: var(--ink); }
.cookie-actions { display: flex; gap: .6rem; }
.cookie-actions .btn { flex: 1; padding: .65rem 1rem; }
.cookie-x {
  position: absolute; top: .5rem; right: .6rem; border: 0; background: none;
  font-size: 1rem; color: var(--muted); cursor: pointer; padding: .3rem;
}
