:root {
  /* Palette chiara e romantica */
  --bg: #f6f1e9;        /* crema */
  --surface: #ffffff;   /* superfici */
  --text: #2b2a28;      /* testo principale */
  --muted: #6f6a62;     /* testo secondario */
  --primary: #c19a53;   /* oro logo */
  --primary-600: #a6823f; /* hover oro */
  --rose: #e9c7c1;      /* blush soft */
  --ring: rgba(193, 154, 83, 0.35);
  --card: #fffaf3;      /* card calda */
  --border: #e6ded2;    /* bordo chiaro */
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(233,199,193,.35) 0%, transparent 60%),
    radial-gradient(800px 400px at -10% 0%, rgba(255,223,196,.35) 0%, transparent 60%),
    var(--bg);
  line-height: 1.6;
}

/* Scroll progress bar */
.scroll-progress { position: absolute; inset: 0 auto auto 0; height: 3px; width: 0%; background: linear-gradient(90deg, var(--primary), var(--rose)); box-shadow: 0 0 0 1px rgba(0,0,0,.03); transition: width .08s linear; }
.site-header { position: sticky; top: 0; z-index: 1000; -webkit-backdrop-filter: saturate(1.1) blur(8px); backdrop-filter: saturate(1.1) blur(8px); background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--border); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; -webkit-backdrop-filter: saturate(1.1) blur(8px); backdrop-filter: saturate(1.1) blur(8px); background: rgba(255,255,255,0.86); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.5px; }
.brand img { display: block; width: 40px; height: 40px; object-fit: cover; }
.brand-text em { font-style: normal; color: var(--primary); }

.site-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; align-items: center; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; opacity: 0.9; }
.site-nav a:hover { opacity: 1; }
.site-nav a.is-active { color: var(--primary); font-weight: 700; }
.nav-toggle { display: none; }

/* Sections */
.section { padding: 84px 0; scroll-margin-top: 84px; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero-inner { text-align: center; max-width: 920px; margin: 0 auto; }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; }
.headline { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.15; margin: 10px 0 16px; }
.accent { background: linear-gradient(90deg, var(--primary), #d9a1a1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subhead {
  color: #4a4742;          /* contrasto alto su sfondo chiaro */
  font-size: 1.125rem;     /* leggermente più grande */
  line-height: 1.7;        /* più respirata */
  max-width: 58ch;         /* linea più corta per leggibilità */
  margin: 0 auto 22px;
}

/* Animazioni di ingresso leggere */
@keyframes fadeUp { from { transform: translateY(12px);} to { transform: translateY(0);} }
@keyframes popIn { 0% { opacity: 0; transform: scale(.96);} 100% { opacity: 1; transform: scale(1);} }
@keyframes floatY { 0% { transform: translateY(0);} 50% { transform: translateY(-4px);} 100% { transform: translateY(0);} }

/* Stagger su collezioni comuni (solo con JS attivo) */
.js .reveal .grid-3 > *,
.js .reveal .two-col > *,
.js .reveal .quotes > *,
.js .reveal .badges > li,
.js .reveal .tags > li { transform: translateY(8px); }

.js .reveal.is-visible .grid-3 > *,
.js .reveal.is-visible .two-col > *,
.js .reveal.is-visible .quotes > *,
.js .reveal.is-visible .badges > li,
.js .reveal.is-visible .tags > li { animation: fadeUp .6s ease forwards; }

/* Ritardi progressivi */
.js .reveal.is-visible .grid-3 > *:nth-child(1),
.js .reveal.is-visible .two-col > *:nth-child(1),
.js .reveal.is-visible .quotes > *:nth-child(1),
.js .reveal.is-visible .badges > li:nth-child(1),
.js .reveal.is-visible .tags > li:nth-child(1) { animation-delay: .02s; }
.js .reveal.is-visible .grid-3 > *:nth-child(2),
.js .reveal.is-visible .two-col > *:nth-child(2),
.js .reveal.is-visible .quotes > *:nth-child(2),
.js .reveal.is-visible .badges > li:nth-child(2),
.js .reveal.is-visible .tags > li:nth-child(2) { animation-delay: .08s; }
.js .reveal.is-visible .grid-3 > *:nth-child(3),
.js .reveal.is-visible .two-col > *:nth-child(3),
.js .reveal.is-visible .quotes > *:nth-child(3),
.js .reveal.is-visible .badges > li:nth-child(3),
.js .reveal.is-visible .tags > li:nth-child(3) { animation-delay: .14s; }
.js .reveal.is-visible .grid-3 > *:nth-child(4),
.js .reveal.is-visible .two-col > *:nth-child(4),
.js .reveal.is-visible .quotes > *:nth-child(4),
.js .reveal.is-visible .badges > li:nth-child(4),
.js .reveal.is-visible .tags > li:nth-child(4) { animation-delay: .2s; }
.js .reveal.is-visible .grid-3 > *:nth-child(5),
.js .reveal.is-visible .two-col > *:nth-child(5),
.js .reveal.is-visible .quotes > *:nth-child(5),
.js .reveal.is-visible .badges > li:nth-child(5),
.js .reveal.is-visible .tags > li:nth-child(5) { animation-delay: .26s; }
.js .reveal.is-visible .grid-3 > *:nth-child(6) { animation-delay: .32s; }

/* Micro-interazioni */
.hero .cta .btn-primary { animation: popIn .45s ease both .12s; }
.feature:hover, .card:hover { transform: translateY(-2px); transition: transform .15s ease; }
.badges li:hover { transform: translateY(-1px); transition: transform .12s ease; }

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; letter-spacing: 0.2px; transition: transform .08s ease, background .2s ease, color .2s ease; border: 1px solid transparent; }
.btn-sm { padding: 8px 12px; font-weight: 600; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #1b1b1b; box-shadow: 0 10px 28px rgba(193,154,83,.25); }
.btn-primary:hover { background: var(--primary-600); color: #111; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: white; }

.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0 0; padding: 0; list-style: none; }
.badges li { border: 1px solid var(--border); padding: 8px 12px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,0.9); display: inline-flex; align-items: center; gap: 8px; }
.icon { width: 16px; height: 16px; fill: var(--primary); }

/* Layouts */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 14px; }
h3 { margin: 0 0 8px; }
p { margin: 0 0 12px; }

.card { border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 18px; }
.card-title { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 24px; position: relative; margin: 10px 0; }
.checklist li::before { content: "✓"; color: #22c55e; position: absolute; left: 0; top: 0; }

.feature { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: rgba(255,255,255,0.02); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 14px; }
.tags li { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: #cbd5e1; }

.media { text-align: center; }
.media-placeholder { height: 180px; border: 1px dashed var(--border); border-radius: 12px; display: grid; place-items: center; color: var(--muted); background: #fff; }
.video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quotes figure { margin: 0; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff; display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'avatar text' 'avatar meta'; column-gap: 12px; }
.quotes .avatar { grid-area: avatar; width: 56px; height: 56px; border-radius: 999px; background: linear-gradient(135deg, #ead8bf, #f5e9da); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 700; color: #5b4927; }
.quotes blockquote { grid-area: text; margin: 0 0 8px; color: #1f2937; }
.quotes .meta { grid-area: meta; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.stars { display: inline-flex; align-items: center; gap: 2px; }
.stars .icon { width: 16px; height: 16px; fill: var(--primary); }
.stars .icon.empty { fill: none; stroke: var(--border); }
.quotes figcaption { color: var(--muted); }

details { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: rgba(255,255,255,0.02); }
details[open] { outline: 2px solid var(--ring); }
summary { cursor: pointer; font-weight: 600; }
summary::-webkit-details-marker { display: none; }

.contacts { list-style: none; padding: 0; margin: 10px 0 18px; }
.contacts a { color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--border); }
.contacts a:hover { border-color: var(--primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #f1ebe2; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; flex-wrap: wrap; }
.sitemap { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.sitemap a { color: var(--muted); text-decoration: none; }
.sitemap a:hover { color: var(--text); }
.legal { color: var(--muted); margin: 0; }

/* Reveal animations (solo con JS) - niente opacity per evitare contenuto nascosto su alcuni browser */
.js .reveal { transform: translateY(10px); transition: transform .6s ease; }
.js .reveal.is-visible { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Ornaments */
.ornaments { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.orn { position: absolute; width: 34vw; height: auto; opacity: .45; }
.orn-a { top: -6vh; left: -6vw; }
.orn-b { bottom: -10vh; right: -10vw; }

/* Focus outline */
:where(a, button, [role="button"], summary, input, select, textarea):focus { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Responsive */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .header-inner { gap: 8px; height: 56px; padding: 6px 12px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border); color: var(--text); width: 36px; height: 36px; border-radius: 8px; }
  .nav-toggle .nav-icon { width: 22px; height: 22px; }
  .brand { margin: 0 auto; } /* centra logo tra pulsante e bordo opposto */
  .site-nav { position: fixed; inset: 56px 12px auto 12px; background: #fff; border: 1px solid var(--border); border-radius: 12px; transform: translateY(-20px) scale(.98); opacity: 0; pointer-events: none; transition: transform .18s ease, opacity .18s ease; box-shadow: 0 10px 30px rgba(0,0,0,.12); }
  .site-nav.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px; gap: 6px; max-height: calc(100vh - 100px); overflow: auto; }
  .site-nav a, .site-nav .btn { display: block; padding: 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; }
  .site-nav .btn { text-align: left; }
  .nav-backdrop { position: fixed; inset: 56px 0 0 0; background: rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .18s ease; }
  .site-nav.open ~ .nav-backdrop, .nav-backdrop.open { opacity: 1; pointer-events: auto; }
}


