/* =====================================================================
   FESTLJUD.nu — stile condiviso (5 pagine). Tema unico commutabile.
   ===================================================================== */
:root, :root[data-theme='dark'] {
  --c-ink: 12 11 14;
  --c-coal: 22 20 26;
  --c-steel: 142 140 150;
  --c-brass: 255 60 98;
  --c-brassLight: 255 122 152;
  --c-bone: 237 232 228;
  --c-line: 255 255 255;
  --bg-top: #211c2a; --bg-mid: #131118; --bg-bot: #0b0a0e;
  --cloud-blend: screen; --cloud-a: 0.5;
  --grad-1: #ffd60a; --grad-2: #34c759; --grad-3: #ff375f; --grad-4: #0a84ff;
  --tile: 24 21 28;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --c-ink: 247 245 250;
  --c-coal: 255 255 255;
  --c-steel: 104 100 112;
  --c-brass: 225 29 72;
  --c-brassLight: 244 63 94;
  --c-bone: 24 21 30;
  --c-line: 18 16 26;
  --bg-top: #ffffff; --bg-mid: #f6f3fa; --bg-bot: #eeeaf4;
  --cloud-blend: normal; --cloud-a: 0.42;
  --grad-1: #eab308; --grad-2: #16a34a; --grad-3: #e11d48; --grad-4: #2563eb;
  --tile: 249 246 252;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: rgb(var(--c-ink));
  color: rgb(var(--c-bone));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  transition: background-color .5s ease, color .5s ease;
}
html.theme-anim, html.theme-anim * {
  transition: background-color .45s ease, border-color .45s ease, color .4s ease, fill .4s ease, stroke .4s ease !important;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(125% 95% at 50% -12%, var(--bg-top) 0%, var(--bg-mid) 46%, var(--bg-bot) 100%) fixed,
    var(--bg-bot);
  transition: background-color .5s ease;
}
::selection { background: rgb(var(--c-brass)); color: rgb(var(--c-ink)); }
img { max-width: 100%; display: block; }
a { color: inherit; }

.font-display { font-family: 'Bodoni Moda', serif; }
.wrap { width: 100%; max-width: 1300px; margin-inline: auto; padding-inline: 6vw; }
.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .35em; color: rgb(var(--c-brass)); }
.accent { font-style: italic; background-image: linear-gradient(100deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4), var(--grad-1)); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: brandshift 9s linear infinite; }
.muted { color: rgb(var(--c-steel)); }
.center { text-align: center; }

/* nuvole ambientali */
.bg-dynamic { position: fixed; inset: -15%; z-index: -2; pointer-events: none; opacity: var(--cloud-a); }
.bg-dynamic::before, .bg-dynamic::after { content: ''; position: absolute; inset: 0; will-change: transform; mix-blend-mode: var(--cloud-blend); }
.bg-dynamic::before { background: radial-gradient(42% 46% at 16% 22%, rgba(255,55,95,.92), transparent 60%), radial-gradient(40% 44% at 84% 16%, rgba(255,214,10,.88), transparent 60%), radial-gradient(40% 44% at 60% 42%, rgba(10,132,255,.8), transparent 62%); animation: drift1 24s ease-in-out infinite alternate; }
.bg-dynamic::after { background: radial-gradient(46% 50% at 82% 70%, rgba(52,199,89,.9), transparent 60%), radial-gradient(44% 48% at 12% 84%, rgba(255,45,149,.9), transparent 62%), radial-gradient(40% 44% at 44% 64%, rgba(50,214,224,.78), transparent 66%); animation: drift2 30s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate3d(-4%,-3%,0) scale(1); } to { transform: translate3d(5%,4%,0) scale(1.18); } }
@keyframes drift2 { from { transform: translate3d(4%,3%,0) scale(1.12); } to { transform: translate3d(-5%,-4%,0) scale(1); } }

/* ── NAV ─────────────────────────────────────────────────────────── */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 1rem 6vw; border-bottom: 1px solid transparent; transition: background-color .4s ease, backdrop-filter .4s ease, border-color .4s ease; }
.nav.solid { background: rgb(var(--c-ink) / .78); backdrop-filter: blur(14px); border-bottom-color: rgb(var(--c-line) / .08); }
.brand { font-size: 1.5rem; letter-spacing: -.02em; text-decoration: none; font-family: 'Bodoni Moda', serif; background-image: linear-gradient(100deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4), var(--grad-1)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: brandshift 9s linear infinite; }
@keyframes brandshift { to { background-position: 250% 0; } }
.nav-links { display: none; gap: 2rem; list-style: none; }
.nav-links a { font-size: .76rem; text-transform: uppercase; letter-spacing: .18em; color: rgb(var(--c-steel)); text-decoration: none; transition: color .3s ease; white-space: nowrap; }
.nav-links a:hover { color: rgb(var(--c-bone)); }
.nav-links a.is-active { color: rgb(var(--c-brass)); }
.nav-right { display: flex; align-items: center; gap: .8rem; }

.toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; cursor: pointer; border: 1px solid rgb(var(--c-line) / .16); background: rgb(var(--c-line) / .04); color: rgb(var(--c-bone)); transition: border-color .3s ease, background-color .3s ease, color .3s ease; }
.toggle:hover { border-color: rgb(var(--c-brass) / .7); color: rgb(var(--c-brass)); }
.toggle svg { position: absolute; width: 18px; height: 18px; transition: opacity .35s ease, transform .45s cubic-bezier(.16,1,.3,1); }
.icon-sun { opacity: 1; transform: rotate(0) scale(1); }
.icon-moon { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme='light'] .icon-sun { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme='light'] .icon-moon { opacity: 1; transform: rotate(0) scale(1); }

.lang { display: inline-flex; gap: .1rem; align-items: center; font-size: .72rem; letter-spacing: .12em; }
.lang button { background: none; border: 0; cursor: pointer; padding: .35rem .45rem; border-radius: 6px; color: rgb(var(--c-steel)); font: inherit; letter-spacing: inherit; transition: color .3s ease; }
.lang button.on { color: rgb(var(--c-brass)); }
.lang button:hover { color: rgb(var(--c-bone)); }
.lang span { color: rgb(var(--c-line) / .3); }

.burger { display: inline-flex; flex-direction: column; justify-content: space-between; width: 28px; height: 16px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 1.5px; width: 100%; background: rgb(var(--c-bone)); transition: transform .35s ease, opacity .35s ease; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: 0 8vw; background: radial-gradient(120% 80% at 50% 0%, rgb(var(--c-coal)) 0%, rgb(var(--c-ink)) 60%); clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; transition: clip-path .6s cubic-bezier(.16,1,.3,1), opacity .4s ease; }
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: 'Bodoni Moda', serif; font-size: 10vw; line-height: 1.15; letter-spacing: -.04em; color: rgb(var(--c-bone)); text-decoration: none; border-bottom: 1px solid rgb(var(--c-line) / .1); padding: .35rem 0; }
.mobile-menu a span { color: rgb(var(--c-brass) / .5); font-family: 'Inter'; font-size: 1rem; margin-right: .6rem; }

/* ── BOTTONI ─────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; cursor: pointer; border-radius: 999px; padding: .8rem 1.6rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; border: 1px solid transparent; transition: all .3s ease; }
.btn-primary { background: rgb(var(--c-brass)); color: rgb(var(--c-ink)); font-weight: 500; }
.btn-primary:hover { background: rgb(var(--c-brassLight)); transform: translateY(-2px); }
.btn-ghost { border-color: rgb(var(--c-brass) / .4); background: rgb(var(--c-brass) / .06); color: rgb(var(--c-bone)); }
.btn-ghost:hover { border-color: rgb(var(--c-brass)); background: rgb(var(--c-brass) / .12); }
.btn .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.cta-nav { display: none; }

/* ── HERO (home) ─────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding-bottom: 12vh; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 20s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.16); } }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--c-ink) / .55) 0%, rgb(var(--c-ink) / .25) 38%, rgb(var(--c-ink) / .96) 100%); }
.hero h1 { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: clamp(2.8rem, 10vw, 8rem); line-height: .96; letter-spacing: -.035em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .02em; }
.hero h1 .line > span { display: block; transform: translateY(105%); }
.hero.in h1 .line > span { transform: translateY(0); transition: transform 1.15s cubic-bezier(.16,1,.3,1); }
.hero.in h1 .line:nth-child(2) > span { transition-delay: .08s; }
.hero.in h1 .line:nth-child(3) > span { transition-delay: .16s; }
.hero.in h1 .line:nth-child(4) > span { transition-delay: .24s; }
.hero .sub { max-width: 52ch; margin-top: 1.6rem; font-size: 1.05rem; line-height: 1.6; color: rgb(var(--c-bone) / .85); opacity: 0; transform: translateY(20px); }
.hero.in .sub { opacity: 1; transform: none; transition: opacity 1s ease .5s, transform 1s ease .5s; }
.hero .btns { opacity: 0; transform: translateY(20px); }
.hero.in .btns { opacity: 1; transform: none; transition: opacity 1s ease .66s, transform 1s ease .66s; }
.hero .eyebrow { opacity: 0; transform: translateY(14px); }
.hero.in .eyebrow { opacity: 1; transform: none; transition: opacity .9s ease .1s, transform .9s ease .1s; }
.btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .btns { margin-top: 2.2rem; }
.cue { position: absolute; bottom: 3vh; left: 6vw; display: flex; align-items: center; gap: 1rem; font-size: .66rem; text-transform: uppercase; letter-spacing: .3em; color: rgb(var(--c-steel)); }
.cue::before { content: ''; width: 1px; height: 3rem; background: linear-gradient(to bottom, rgb(var(--c-brass)), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ── HERO PAGINA INTERNA ─────────────────────────────────────────── */
.page-hero { padding: 22vh 6vw 8vh; }
.page-hero h1 { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: clamp(2.6rem, 8vw, 6rem); line-height: .98; letter-spacing: -.03em; margin: 1rem 0; }
.page-hero .lead { max-width: 60ch; font-size: 1.1rem; line-height: 1.7; color: rgb(var(--c-steel)); }

/* ── SEZIONI ─────────────────────────────────────────────────────── */
section.block { padding: 9vh 0; }
.section-head { max-width: 60ch; margin-bottom: 5vh; }
.section-head h2 { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.03; letter-spacing: -.03em; margin-top: 1rem; }
.section-head .lead { margin-top: 1.4rem; font-size: 1.02rem; line-height: 1.7; color: rgb(var(--c-steel)); }
.prose p { font-size: 1.02rem; line-height: 1.75; color: rgb(var(--c-bone) / .85); margin-bottom: 1.1rem; max-width: 68ch; }
.prose p.muted { color: rgb(var(--c-steel)); }

/* statement editoriale */
.statement { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: clamp(2.1rem, 6.5vw, 4.6rem); line-height: 1.0; letter-spacing: -.03em; max-width: 22ch; }
.lead-narrow { max-width: 54ch; margin-top: 1.6rem; font-size: 1.05rem; line-height: 1.7; color: rgb(var(--c-steel)); }

/* galleria a griglia */
.gallery { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 5vh; }
.gimg { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgb(var(--c-line) / .1); aspect-ratio: 4/3; }
.gimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.gimg:hover img { transform: scale(1.06); }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* CTA finale a tutta larghezza, centrata */
.final { text-align: center; padding: 15vh 6vw; }
.final h2 { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; }
.final .lead { margin: 1.4rem auto 0; }
.final .btns { justify-content: center; margin-top: 2.2rem; }

/* casi d'uso */
.usecases { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.uc { border: 1px solid rgb(var(--c-line) / .1); border-radius: 16px; padding: 2rem; background: rgb(var(--c-coal) / .5); transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .4s ease; }
.uc:hover { transform: translateY(-5px); border-color: rgb(var(--c-brass) / .4); }
.uc h3 { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: 1.5rem; margin-bottom: .7rem; }
.uc p { font-size: .95rem; line-height: 1.6; color: rgb(var(--c-steel)); }

/* combo in evidenza */
.combos { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.combo { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgb(var(--c-line) / .1); min-height: 340px; display: flex; align-items: flex-end; }
.combo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.combo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgb(0 0 0 / .55) 62%, rgb(0 0 0 / .9) 100%); }
.combo .body { position: relative; z-index: 2; padding: 1.8rem; color: #ece6da; }
.combo .body .cap { font-size: .74rem; text-transform: uppercase; letter-spacing: .2em; color: #ffd166; }
.combo .body h3 { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: 1.9rem; margin: .3rem 0; }
.combo .body p { font-size: .92rem; line-height: 1.5; color: #d8d2c6; max-width: 40ch; }
.combo .body .price { font-family: 'Bodoni Moda', serif; font-size: 1.6rem; color: #fff; margin-top: .6rem; }

/* griglia prodotti (ljudpaket) */
.prodgrid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
.prod { border: 1px solid rgb(var(--c-line) / .1); border-radius: 16px; overflow: hidden; background: rgb(var(--c-coal) / .5); display: flex; flex-direction: column; transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .4s ease; }
.prod:hover { transform: translateY(-5px); border-color: rgb(var(--c-brass) / .4); }
.prod .media { aspect-ratio: 3/2; background: #0c0b0a; overflow: hidden; }
.prod .media img { width: 100%; height: 100%; object-fit: cover; }
.prod .media.contain { display: flex; align-items: center; justify-content: center; background: rgb(var(--tile)); }
.prod .media.contain img { width: auto; height: 78%; object-fit: contain; }
.prod .body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.prod .body .top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.prod .body h3 { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: 1.5rem; }
.prod .body .price { font-family: 'Bodoni Moda', serif; font-size: 1.25rem; color: rgb(var(--c-brassLight)); white-space: nowrap; }
.prod .body .desc { font-size: .93rem; line-height: 1.6; color: rgb(var(--c-steel)); margin-top: .7rem; }
.prod .body .spec { margin-top: 1rem; border-top: 1px solid rgb(var(--c-line) / .1); padding-top: 1rem; list-style: none; display: grid; gap: .35rem; }
.prod .body .spec li { font-size: .82rem; color: rgb(var(--c-steel)); display: flex; gap: .5rem; }
.prod .body .spec li b { color: rgb(var(--c-bone)); font-weight: 500; }
.badge { align-self: flex-start; margin-bottom: .8rem; font-size: .64rem; text-transform: uppercase; letter-spacing: .2em; color: rgb(var(--c-brass)); border: 1px solid rgb(var(--c-brass) / .4); border-radius: 999px; padding: .25rem .7rem; }

/* griglia luci/effetti */
.tilegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.tile { border: 1px solid rgb(var(--c-line) / .1); border-radius: 14px; overflow: hidden; background: rgb(var(--c-coal) / .5); transition: transform .5s cubic-bezier(.16,1,.3,1), border-color .4s ease; }
.tile:hover { transform: translateY(-4px); border-color: rgb(var(--c-brass) / .4); }
.tile .media { aspect-ratio: 4/3; background: #0c0b0a; overflow: hidden; }
.tile .media.contain { display: flex; align-items: center; justify-content: center; background: rgb(var(--tile)); }
.tile .media.contain img { width: auto; height: 80%; object-fit: contain; }
.tile .media img { width: 100%; height: 100%; object-fit: cover; }
.tile .body { padding: 1.1rem 1.2rem 1.3rem; }
.tile .body .row { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.tile .body h4 { font-size: 1.02rem; font-weight: 600; }
.tile .body .price { font-family: 'Bodoni Moda', serif; color: rgb(var(--c-brassLight)); font-size: 1rem; white-space: nowrap; }
.tile .body p { font-size: .84rem; line-height: 1.5; color: rgb(var(--c-steel)); margin-top: .4rem; }

/* ── TABELLE PREZZI ──────────────────────────────────────────────── */
.pricewrap { overflow-x: auto; border: 1px solid rgb(var(--c-line) / .1); border-radius: 14px; }
table.price { width: 100%; border-collapse: collapse; min-width: 460px; }
table.price caption { text-align: left; font-family: 'Bodoni Moda', serif; font-size: 1.3rem; padding: 1.1rem 1.2rem .3rem; }
table.price th, table.price td { text-align: left; padding: .85rem 1.2rem; border-top: 1px solid rgb(var(--c-line) / .08); font-size: .92rem; vertical-align: top; }
table.price thead th { border-top: 0; font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; color: rgb(var(--c-brass)); }
table.price td.p { text-align: right; font-family: 'Bodoni Moda', serif; color: rgb(var(--c-brassLight)); white-space: nowrap; }
table.price td b { color: rgb(var(--c-bone)); font-weight: 500; }
table.price tbody tr:hover { background: rgb(var(--c-brass) / .04); }
.note { font-size: .82rem; color: rgb(var(--c-steel)); margin-top: .8rem; line-height: 1.6; }

/* ── STEPS ───────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.2rem; counter-reset: st; }
.step { border: 1px solid rgb(var(--c-line) / .1); border-radius: 16px; padding: 1.8rem; background: rgb(var(--c-coal) / .5); }
.step .n { font-family: 'Bodoni Moda', serif; font-size: 2.2rem; color: rgb(var(--c-brass) / .6); }
.step h3 { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: 1.3rem; margin: .4rem 0 .6rem; }
.step p { font-size: .92rem; line-height: 1.6; color: rgb(var(--c-steel)); }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid rgb(var(--c-line) / .1); }
.faq details { border-bottom: 1px solid rgb(var(--c-line) / .1); }
.faq summary { list-style: none; cursor: pointer; padding: 1.5rem .3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: 'Bodoni Moda', serif; font-size: clamp(1.1rem, 2.6vw, 1.6rem); letter-spacing: -.01em; transition: color .3s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: rgb(var(--c-brass)); }
.faq summary .plus { flex: 0 0 auto; width: 22px; height: 22px; position: relative; }
.faq summary .plus::before, .faq summary .plus::after { content: ''; position: absolute; background: rgb(var(--c-brass)); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.faq summary .plus::before { left: 0; top: 50%; width: 100%; height: 1.6px; transform: translateY(-50%); }
.faq summary .plus::after { top: 0; left: 50%; height: 100%; width: 1.6px; transform: translateX(-50%); }
.faq details[open] summary .plus::after { transform: translateX(-50%) scaleY(0); }
.faq .a { padding: 0 .3rem 1.6rem; max-width: 72ch; }
.faq .a p { font-size: .98rem; line-height: 1.7; color: rgb(var(--c-steel)); margin-bottom: .8rem; }

/* ── CONTATTI ────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.contact-card { border: 1px solid rgb(var(--c-line) / .1); border-radius: 16px; padding: 2rem; background: rgb(var(--c-coal) / .5); }
.contact-card h3 { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: 1.4rem; margin-bottom: 1rem; }
.contact-card .big { font-family: 'Bodoni Moda', serif; font-size: clamp(1.6rem, 4vw, 2.4rem); color: rgb(var(--c-brassLight)); text-decoration: none; display: inline-block; margin-bottom: .3rem; }
.contact-card a { text-decoration: none; }
.socials { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.socials a { border: 1px solid rgb(var(--c-line) / .14); border-radius: 999px; padding: .55rem 1.1rem; font-size: .82rem; text-decoration: none; color: rgb(var(--c-steel)); transition: all .3s ease; }
.socials a:hover { color: rgb(var(--c-brass)); border-color: rgb(var(--c-brass) / .5); }
.field { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgb(var(--c-line) / .2); padding: .9rem .2rem; color: rgb(var(--c-bone)); font-family: inherit; font-size: .95rem; transition: border-color .3s ease; }
.field:focus { outline: none; border-bottom-color: rgb(var(--c-brass)); }
.field::placeholder { color: rgb(var(--c-steel)); }
.field-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .22em; color: rgb(var(--c-steel)); display: block; margin-bottom: .2rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-bottom: 1.4rem; }

/* pillole/trust */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.pill { font-size: .78rem; color: rgb(var(--c-steel)); border: 1px solid rgb(var(--c-line) / .12); border-radius: 999px; padding: .5rem 1rem; }

/* ── SCROLL ORIZZONTALE ──────────────────────────────────────────── */
.hscroll { position: relative; }
.hscroll__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hscroll__intro { position: absolute; top: 12vh; left: 6vw; z-index: 2; pointer-events: none; }
.hscroll__track { display: flex; gap: 1.6rem; padding-inline: 6vw; will-change: transform; }
.hpanel { position: relative; flex: 0 0 auto; width: min(80vw, 560px); height: 66vh; border-radius: 18px; overflow: hidden; border: 1px solid rgb(var(--c-line) / .1); display: flex; align-items: flex-end; }
.hpanel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hpanel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / .9) 100%); }
.hpanel__meta { position: relative; z-index: 2; margin: 2rem; color: #ece6da; }
.hpanel__meta .n { font-family: 'Bodoni Moda', serif; font-size: 1rem; color: #ffd166; }
.hpanel__meta h3 { font-family: 'Bodoni Moda', serif; font-weight: 500; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.02; letter-spacing: -.03em; margin: .3rem 0 .5rem; }
.hpanel__meta p { max-width: 36ch; font-size: .92rem; line-height: 1.55; color: #d8d2c6; }
.hpanel__meta .price { font-family: 'Bodoni Moda', serif; font-size: 1.3rem; color: #fff; margin-top: .6rem; }
.hpanel__meta .spec-line { color: #cfc8ba; font-size: .82rem; margin-top: .4rem; }
a.hpanel { text-decoration: none; transition: transform .5s cubic-bezier(.16,1,.3,1); }
a.hpanel:hover { transform: translateY(-6px); }
a.hpanel .hpanel__meta .n { display: inline-flex; align-items: center; gap: .4rem; }
a.hpanel .hpanel__meta::after { content: 'Se mer →'; display: block; margin-top: .9rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: #ffd166; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s cubic-bezier(.16,1,.3,1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer { border-top: 1px solid rgb(var(--c-line) / .1); padding: 12vh 6vw 3rem; position: relative; margin-top: 6vh; }
.foot-inner { max-width: 1300px; margin-inline: auto; }
.foot-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; border-bottom: 1px solid rgb(var(--c-line) / .1); padding-bottom: 3.5rem; }
.foot-brand { font-family: 'Bodoni Moda', serif; font-size: 3rem; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.foot-cols h4 { font-size: .68rem; text-transform: uppercase; letter-spacing: .3em; color: rgb(var(--c-brass)); margin-bottom: 1rem; }
.foot-cols a, .foot-cols p { font-size: .9rem; color: rgb(var(--c-steel)); text-decoration: none; line-height: 1.9; display: block; }
.foot-cols a:hover { color: rgb(var(--c-bone)); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; padding-top: 1.8rem; font-size: .78rem; color: rgb(var(--c-steel)); }

@media (min-width: 720px) {
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .combos { grid-template-columns: repeat(3, 1fr); }
  .prodgrid { grid-template-columns: repeat(2, 1fr); }
  .tilegrid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-cols { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .cta-nav { display: inline-flex; }
  .burger { display: none; }
  .prodgrid.p3 { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span, .hero .sub, .hero .btns, .hero .eyebrow { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   MICRO-INTERAZIONI / ANIMAZIONI v2 — tutto più smooth
   ═══════════════════════════════════════════════════════════════════ */
:root { --ease: cubic-bezier(.16, 1, .3, 1); }

/* entrata più morbida: blur-in + stagger (delay via JS) */
[data-reveal] { filter: blur(8px); transition: opacity 1s ease, transform 1.05s var(--ease), filter 1s ease; }
[data-reveal].in { filter: blur(0); }

/* card: lift + glow d'accento + zoom immagine */
.prod, .tile, .uc, .step, .combo, .gimg, a.hpanel {
  transition: transform .55s var(--ease), border-color .45s ease, box-shadow .55s var(--ease);
  will-change: transform;
}
.prod:hover, .tile:hover, .uc:hover, .step:hover, .gimg:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px -26px rgb(var(--c-brass) / .5), 0 12px 34px -22px rgb(0 0 0 / .5);
}
.combo:hover, a.hpanel:hover { transform: translateY(-8px); box-shadow: 0 30px 64px -24px rgb(var(--c-brass) / .55); }
.prod .media img, .tile .media img, .combo img, .gimg img, .hpanel img { transition: transform 1s var(--ease); }
.prod:hover .media img, .tile:hover .media img, .combo:hover img, .gimg:hover img, a.hpanel:hover img { transform: scale(1.07); }
.prod .media.contain img, .tile .media.contain img { transition: transform .8s var(--ease); }
.prod:hover .media.contain img, .tile:hover .media.contain img { transform: scale(1.04); }

/* bottoni: sheen sweep + lift morbido */
.btn { position: relative; overflow: hidden; transition: transform .4s var(--ease), background-color .35s ease, border-color .35s ease, box-shadow .4s var(--ease); }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 32%, rgb(255 255 255 / .38) 50%, transparent 68%); transform: translateX(-130%); transition: transform .75s var(--ease); pointer-events: none; }
.btn:hover::after { transform: translateX(130%); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 36px -14px rgb(var(--c-brass) / .7); }
.btn-ghost:hover { transform: translateY(-3px); }

/* link nav: underline animata da sinistra */
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 100%; background: rgb(var(--c-brass)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

/* link footer + faq: slittamento morbido */
.foot-cols a { transition: color .3s ease, padding-left .3s var(--ease); }
.foot-cols a:hover { padding-left: 6px; }
.faq summary { transition: color .35s ease, padding-left .35s var(--ease); border-radius: 8px; }
.faq summary:hover { padding-left: 8px; }

/* social pill / lang / toggle: micro-lift */
.socials a { transition: color .3s ease, border-color .3s ease, transform .3s var(--ease); }
.socials a:hover { transform: translateY(-2px); }

/* barra avanzamento scroll (in cima) */
.scroll-prog { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 70; background: linear-gradient(90deg, var(--grad-1), var(--grad-2), var(--grad-3), var(--grad-4)); box-shadow: 0 0 12px rgb(var(--c-brass) / .6); pointer-events: none; }

/* cursore-glow che segue il mouse (solo desktop) */
.cursor-glow { position: fixed; top: 0; left: 0; width: 26px; height: 26px; border-radius: 999px; border: 1.5px solid rgb(var(--c-brass) / .7); pointer-events: none; z-index: 95; mix-blend-mode: difference; transition: width .3s var(--ease), height .3s var(--ease), background-color .3s ease; will-change: transform; }
.cursor-glow.big { width: 56px; height: 56px; background: rgb(var(--c-brass) / .14); }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { filter: none; }
  .btn::after, .cursor-glow { display: none !important; }
}
