/* ==========================================================================
   GeniusMenu – foglio di stile
   ========================================================================== */

:root {
  --ink: #2b1a14;
  --brown: #4a2a1f;
  --brown-2: #5c3d35;
  --terra: #955535;
  --taupe: #a38e86;
  --cream: #fbf7f3;
  --sand: #f4ece5;
  --line: #e8ddd4;
  --muted: #76625a;
  --orange: #f07d1f;
  --orange-600: #d4640c;
  --orange-50: #fff1e4;
  --green: #2f8f3e;
  --red: #b3261e;

  --radius: 20px;
  --shadow: 0 18px 40px -20px rgba(74, 42, 31, .38);
  --shadow-sm: 0 4px 14px -6px rgba(74, 42, 31, .22);

  --head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --maxw: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* niente zoom da doppio tap sui controlli (es. tocchi ripetuti sul + dei noleggi); il pinch-zoom resta attivo */
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.02;
  color: var(--brown);
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 700; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brown); color: #fff; padding: .5rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Testo "adesivo" come nei post Instagram: bianco con contorno marrone */
.sticker {
  color: #fff;
  -webkit-text-stroke: .2em var(--brown);
  paint-order: stroke fill;
  text-transform: uppercase;
  font-family: var(--head);
  font-weight: 800;
}
.sticker-red { -webkit-text-stroke-color: var(--red); -webkit-text-stroke-width: .26em; }

/* ---------- Pulsanti e link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--head); font-weight: 700; font-size: 1.15rem; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none; line-height: 1;
  border: 2px solid transparent; border-radius: 999px; padding: .75em 1.4em;
  cursor: pointer; transition: transform .15s, background-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 22px -12px rgba(240, 125, 31, .9); }
.btn-primary:hover { background: var(--orange-600); }
.btn-ghost { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-ghost:hover { background: var(--brown); color: #fff; }
.btn-light { background: #fff; color: var(--brown); }
.btn-light:hover { background: var(--sand); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-whatsapp { background: #25d366; color: #073b1c; }
.btn-whatsapp:hover { background: #1fbd5a; }
.btn-sm { font-size: 1rem; padding: .6em 1.1em; }
.btn-lg { font-size: 1.25rem; padding: .85em 1.6em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--orange-600); text-decoration: none; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon, .module-card:hover .link-arrow .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 243, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(74, 42, 31, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 48px; width: auto; }
.site-footer .brand-logo { height: 52px; }
@media (max-width: 600px) { .site-header .brand-logo { height: 42px; } }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.site-nav ul a { display: block; padding: .5rem .75rem; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--brown-2); }
.site-nav ul a:hover { background: var(--sand); color: var(--brown); }
.site-nav ul a[aria-current="page"] { background: var(--brown); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-login { font-weight: 600; font-size: .95rem; color: var(--muted); text-decoration: none; }
.nav-login:hover { color: var(--brown); text-decoration: underline; }
.nav-toggle { display: none; }

@media (min-width: 1180px) {
  .site-nav { display: flex; align-items: center; gap: 1.25rem; }
}
@media (max-width: 1179.98px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px;
    border: 0; border-radius: 12px; background: var(--sand); color: var(--brown); cursor: pointer;
  }
  .nav-toggle .icon { width: 24px; height: 24px; }
  .nav-toggle .icon-close, .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 1rem 1.25rem 1.5rem;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: .85rem 1rem; font-size: 1.1rem; border-radius: 12px; }
  .nav-actions { flex-direction: column-reverse; align-items: stretch; gap: .75rem; margin-top: 1rem; text-align: center; }
  .nav-actions .btn { font-size: 1.15rem; padding: .85em 1.2em; }
}

/* ---------- Sezioni ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tight { padding-top: 0; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--brown-2); color: #f3e9e3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 780px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--head); font-weight: 700; font-size: 1.05rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--orange-600); margin-bottom: .8rem;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 62ch; }
.section-dark .lead { color: #e2d3cb; }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-reverse > :first-child { order: 2; }
}
.photo-frame { margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-duo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem; align-items: end; }
.photo-duo .photo-frame:nth-child(2) { margin-bottom: 2.5rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero::before {
  content: ""; position: absolute; right: -15%; top: -30%; width: 70vw; height: 70vw; pointer-events: none;
  background: radial-gradient(circle, rgba(240, 125, 31, .16), transparent 62%);
}
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-weight: 600; font-size: .98rem; color: var(--brown-2); }
.hero-points li { display: flex; align-items: center; gap: .4rem; }
.hero-points .icon { color: var(--green); stroke-width: 3; }

.hero-visual { position: relative; padding-bottom: 3rem; }
.hero-photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / .85; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-phone {
  position: absolute; right: -.75rem; top: -1.5rem; width: 34%; margin: 0;
  aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden;
  border: 5px solid #fff; box-shadow: var(--shadow); transform: rotate(3deg);
}
.hero-phone img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.stat-card {
  position: absolute; left: -1rem; bottom: 0; width: min(310px, 80%);
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
}
.stat-label, .mock-head { display: flex; justify-content: space-between; gap: 1rem; margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat-label { flex-wrap: wrap; row-gap: .2rem; }
.stat-label span { white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: .35rem; color: var(--green); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.stat-value { font-family: var(--head); font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--brown); margin: .3rem 0 .8rem; }
.stat-rows, .mock-stock ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .85rem; }
.stat-rows li { display: grid; grid-template-columns: 4.6rem 1fr 2.4rem; align-items: center; gap: .5rem; }
.stat-rows b { text-align: right; color: var(--brown); }
.bar { height: 7px; border-radius: 4px; background: var(--sand); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--orange); }
.stat-foot, .mock-foot { display: flex; justify-content: space-between; gap: 1rem; margin: .8rem 0 0; padding-top: .7rem; border-top: 1px dashed var(--line); font-size: .8rem; font-weight: 600; color: var(--muted); }
@media (max-width: 600px) {
  .hero-visual { padding-bottom: 0; }
  .stat-card { position: relative; left: auto; width: calc(100% - 2rem); margin: -3.5rem auto 0; }
  .hero-phone { right: -.25rem; }
}

/* ---------- Eventi (marquee) ---------- */
.trust { background: #fff; border-block: 1px solid var(--line); padding: 1.5rem 0 1.75rem; }
.trust-title { text-align: center; font-weight: 600; font-size: .95rem; color: var(--muted); margin: 0 1.25rem 1rem; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; }
.marquee-set > span {
  display: inline-flex; align-items: center; gap: 2.25rem; padding-right: 2.25rem; white-space: nowrap;
  font-family: var(--head); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; color: var(--brown-2);
}
.marquee-set > span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.event-name { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05; }
.event-name small { margin-top: .25rem; font-family: var(--body); font-weight: 600; font-size: .8rem; text-transform: none; letter-spacing: 0; color: var(--muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Problema ---------- */
.equation {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .15em .5em;
  margin: 0 0 clamp(2.5rem, 5vw, 4rem); text-align: center;
  font-size: clamp(2.1rem, 6vw, 4.4rem); line-height: 1.1;
}
.equation .op { font-family: var(--head); font-weight: 800; color: var(--orange); }
.pain-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }
.pain-card { display: flex; flex-direction: column; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 1.75rem; }
.pain-card .quote { font-family: var(--head); font-weight: 700; font-size: 1.6rem; line-height: 1.08; text-transform: uppercase; color: #fff; margin-bottom: .75rem; }
.pain-card p { color: #e2d3cb; }
.pain-card .pain-tag { display: flex; align-items: center; gap: .4rem; margin: auto 0 0; font-weight: 700; color: #ffb4a9; }
.pain-tag .icon { stroke-width: 3; }
.problem-solution { text-align: center; margin: 3rem 0 0; font-family: var(--head); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; text-transform: uppercase; color: #fff; }
.problem-solution strong { color: var(--orange); }

/* ---------- Flussi ---------- */
.flow-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .flow-grid { grid-template-columns: repeat(3, 1fr); } }
.flow-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.flow-card figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.flow-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.flow-card:hover img { transform: scale(1.04); }
.flow-num { position: absolute; left: 1rem; top: 1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-family: var(--head); font-weight: 800; font-size: 1.45rem; box-shadow: var(--shadow-sm); }
.flow-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.75rem; }
.flow-body p { color: var(--muted); flex: 1; }
.results {
  display: grid; gap: 1.25rem; align-items: center; margin-top: 2.5rem;
  background: var(--brown); color: #fff; border-radius: var(--radius); padding: 1.75rem clamp(1.25rem, 4vw, 2.5rem);
}
@media (min-width: 900px) { .results { grid-template-columns: .8fr repeat(3, 1fr); } }
.results-title { margin: 0; font-family: var(--head); font-weight: 800; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; }
.result { display: flex; gap: .75rem; align-items: flex-start; }
.result .icon { width: 1.6em; height: 1.6em; color: #7fd48c; stroke-width: 3; }
.result strong { display: block; font-family: var(--head); font-size: 1.9rem; line-height: 1; text-transform: uppercase; }
.result span { color: #e6d6cc; }

/* ---------- Liste funzionalità ---------- */
.feature-icon { width: 3rem; height: 3rem; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange-600); }
.feature-icon .icon { width: 1.5rem; height: 1.5rem; }
.feature-list { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1.25rem; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.feature-list h3 { font-size: 1.35rem; margin: 0 0 .15rem; }
.feature-list p { margin: 0; color: var(--muted); }
.check-list { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; font-weight: 600; color: var(--brown-2); }
.check-list .icon { margin-top: .2rem; color: var(--green); stroke-width: 3; }
.chips { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-weight: 600; font-size: .95rem; color: var(--brown-2); }
.chip .icon { width: 1.05em; height: 1.05em; }
.callout { margin: 1.5rem 0 0; background: #fff; border-left: 4px solid var(--orange); border-radius: 12px; padding: 1rem 1.25rem; color: var(--brown-2); }

/* ---------- Moduli (card) ---------- */
/* flex centrato: con 5 moduli la seconda riga resta in mezzo */
.module-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
.module-card {
  flex: 1 1 300px; max-width: 380px;
  display: flex; flex-direction: column; gap: .6rem; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f3c9a3; }
.module-card .feature-icon { margin-bottom: .35rem; }
.module-name { font-family: var(--head); font-weight: 800; font-size: 1.8rem; line-height: 1; text-transform: uppercase; color: var(--brown); }
.module-name small { display: block; font-size: .85rem; letter-spacing: .14em; color: var(--orange-600); margin-bottom: .2rem; }
.module-card p { margin: 0; color: var(--muted); flex: 1; }

/* ---------- Teaser noleggio ---------- */
.teaser { display: grid; overflow: hidden; border-radius: 28px; background: var(--brown); color: #fff; }
@media (min-width: 900px) { .teaser { grid-template-columns: 1fr 1fr; } }
.teaser figure { margin: 0; min-height: 300px; }
.teaser figure img { width: 100%; height: 100%; object-fit: cover; }
.teaser-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 3.5rem); }
.teaser-body h2 { color: #fff; }
.teaser-body p { color: #e8dad2; }
.teaser-body .eyebrow { color: #ffb070; }
.teaser .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.teaser .chips { margin-bottom: 1.75rem; }

/* ---------- Galleria eventi ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure { position: relative; margin: 0; aspect-ratio: 1 / 1.05; border-radius: 18px; overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: .6rem; right: .6rem; bottom: .6rem;
  display: flex; align-items: center; gap: .45rem;
  background: #fff; border-radius: 999px; padding: .45rem .9rem .45rem .7rem; box-shadow: var(--shadow-sm);
  font-family: var(--head); font-weight: 700; font-size: 1rem; line-height: 1.05; text-transform: uppercase; color: var(--brown);
}
.gallery figcaption small { display: block; font-size: .78rem; color: var(--muted); }
.gallery-more { text-align: center; color: var(--muted); margin: 1.75rem auto 0; max-width: 70ch; }
.gallery-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(150deg, var(--brown-2), var(--brown)); color: rgba(255, 255, 255, .3); }
.gallery-placeholder .icon { width: 3.5rem; height: 3.5rem; }

/* ---------- Per chi ---------- */
.audience { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.audience li {
  display: flex; flex-direction: column; gap: .7rem;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem;
  font-family: var(--head); font-weight: 700; font-size: 1.3rem; line-height: 1.05; text-transform: uppercase; color: var(--brown);
}
.audience .icon { width: 1.9rem; height: 1.9rem; color: var(--orange); }
.audience-list { grid-template-columns: 1fr; }
.audience-list li { flex-direction: row; align-items: center; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; } }
.faq details { border-bottom: 1px solid #dfd1c6; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.12rem; color: var(--brown);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--orange-600); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 2.5rem 1.25rem 0; color: var(--muted); }

/* ---------- CTA finale ---------- */
.cta-final { padding-top: 0; }
.cta-final:first-child, .section-sand + .cta-final, .module-section.alt + .cta-final { padding-top: clamp(4rem, 9vw, 7rem); }
.cta-box {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: var(--brown-2); border-radius: 32px; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
}
.cta-box::before, .cta-box::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta-box::before { width: 420px; height: 420px; right: -140px; top: -180px; background: rgba(240, 125, 31, .22); }
.cta-box::after { width: 300px; height: 300px; left: -120px; bottom: -160px; background: rgba(255, 255, 255, .06); }
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(2rem, 5vw, 3.6rem); color: #fff; }
.cta-box p { color: #ecdcd3; max-width: 56ch; margin-inline: auto; font-size: 1.15rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Pagine interne ---------- */
.page-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.page-hero .section-head { margin-bottom: 0; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }

.subnav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: var(--cream);   /* niente backdrop-filter: con l'header già sfocato appesantiva lo scroll */
  border-block: 1px solid var(--line);
}
.subnav ul { list-style: none; margin: 0; padding: .7rem 0; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--brown-2);
  transition: background-color .15s, color .15s, border-color .15s;
}
.subnav a .icon { width: 1.05em; height: 1.05em; color: var(--orange-600); }
.subnav a:hover { border-color: var(--taupe); }
.subnav a.is-active { background: var(--brown); border-color: var(--brown); color: #fff; }
.subnav a.is-active .icon { color: #ffb070; }

.module-section { padding: clamp(3.5rem, 7vw, 6rem) 0; scroll-margin-top: calc(var(--header-h) + 64px); }
.module-section.alt { background: var(--sand); }
.module-badge { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1rem; font-family: var(--head); font-weight: 800; font-size: 1.25rem; text-transform: uppercase; color: var(--orange-600); }
.module-visual { min-width: 0; }
.base-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.base-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
.base-item h3 { font-size: 1.35rem; margin: .9rem 0 .25rem; }
.base-item p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Scontrino finto (modulo Fiscal) */
.mock-receipt {
  position: relative; width: min(340px, 100%); margin: 0 auto 12px; padding: 1.6rem 1.4rem 1.4rem;
  background: #fff; color: #333; font-family: ui-monospace, Consolas, 'Courier New', monospace; font-size: .85rem; line-height: 1.5;
  transform: rotate(-2deg); filter: drop-shadow(0 16px 22px rgba(74, 42, 31, .22));
}
.mock-receipt::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 12px;
  background: conic-gradient(from -45deg at bottom, #fff 90deg, transparent 0) 0 0 / 16px 100%;
}
.mock-receipt p { margin: 0; }
.r-center { text-align: center; }
.r-small { font-size: .75rem; color: #666; margin: .5rem 0 !important; }
.r-row { display: flex; justify-content: space-between; gap: 1rem; }
.r-total { font-weight: 700; font-size: .95rem; }
.r-sep { border-top: 1px dashed #bbb; margin: .6rem 0; }

/* Magazzino finto (modulo Inventory) */
.mock-stock { max-width: 460px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.35rem; box-shadow: var(--shadow); }
.mock-stock ul { margin-top: 1rem; gap: .2rem; font-size: .95rem; }
.mock-stock li { display: grid; grid-template-columns: 1fr 34% 2.2rem; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--sand); }
.mock-stock li b { text-align: right; color: var(--brown); }
.mock-stock li.low .bar i { background: #e2a600; }
.mock-stock li.low b { color: #b07f00; }
.mock-stock li.out { color: var(--muted); }
.mock-stock li.out > span:first-child { text-decoration: line-through; }
.mock-stock li.out b { color: var(--red); }
.badge { justify-self: start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #fdecea; color: var(--red); border-radius: 6px; padding: .15rem .5rem; }
.mock-foot { justify-content: flex-start; }

/* ---------- Noleggi ---------- */
.steps { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #fff; font-family: var(--head); font-weight: 800; font-size: 1.25rem;
}
.steps strong { display: block; color: var(--brown); font-size: 1.08rem; }
.steps span { color: var(--muted); }

.device-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr)); }
.device-card {
  display: flex; flex-direction: column; gap: .45rem;
  background: #fff; border: 2px solid transparent; border-radius: 18px; padding: 1.35rem;
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.device-card.is-selected { border-color: var(--orange); box-shadow: 0 12px 26px -16px rgba(240, 125, 31, .9); }
.device-icon { width: 3.3rem; height: 3.3rem; border-radius: 14px; display: grid; place-items: center; background: var(--sand); color: var(--brown); transition: background-color .15s, color .15s; }
.device-icon .icon { width: 1.75rem; height: 1.75rem; }
.device-card.is-selected .device-icon { background: var(--orange-50); color: var(--orange-600); }
.device-card h3 { font-size: 1.4rem; margin: .45rem 0 0; }
.device-card p { flex: 1; margin: 0; color: var(--muted); font-size: .96rem; }
.tags { list-style: none; margin: .3rem 0 .7rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li { font-size: .78rem; font-weight: 700; color: var(--brown-2); background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: .15rem .5rem; }
.qty { display: inline-flex; align-self: flex-start; align-items: center; gap: .25rem; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: .25rem; }
.qty-btn { width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brown); cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color .15s, color .15s; }
.qty-btn:hover:not(:disabled) { background: var(--orange); color: #fff; }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.qty-input { width: 3rem; border: 0; background: transparent; text-align: center; font: 700 1.15rem var(--body); color: var(--brown); -moz-appearance: textfield; appearance: textfield; }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.25rem, 3.5vw, 2.25rem); box-shadow: var(--shadow-sm); }
.rent-form-grid { display: grid; gap: 2rem 3rem; }
@media (min-width: 960px) { .rent-form-grid { grid-template-columns: 1fr 1.2fr; } }
.form-title { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0; }
.summary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.summary-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem .6rem .6rem .9rem; background: var(--cream); border-radius: 12px; font-weight: 600; }
.summary-right { display: inline-flex; align-items: center; gap: .35rem; }
.summary-qty { font-family: var(--head); font-weight: 800; font-size: 1.25rem; color: var(--orange-600); }
.summary-remove { display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.summary-remove:hover { background: #fdecea; color: var(--red); }
.summary-empty { margin: 0; padding: 1rem; text-align: center; background: var(--cream); border: 1.5px dashed #dccfc5; border-radius: 12px; color: var(--muted); }
.summary-empty a { color: var(--orange-600); font-weight: 600; }
.days { margin: .6rem 0 0; font-weight: 700; color: var(--orange-600); }
.days:empty { display: none; }

.rent-bar {
  position: fixed; left: 50%; bottom: 1rem; z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: max-content; max-width: calc(100% - 2rem);
  background: var(--brown); color: #fff; text-decoration: none; font-weight: 600;
  border-radius: 999px; padding: .5rem .5rem .5rem 1.2rem; box-shadow: var(--shadow);
  transform: translate(-50%, 160%); transition: transform .3s;
}
.rent-bar.is-visible { transform: translate(-50%, 0); }
.rent-bar-count { display: inline-flex; align-items: center; gap: .5rem; }
.rent-bar-count .icon { color: #ffb070; }

/* ---------- Form ---------- */
.form-grid { display: grid; gap: 1.1rem; align-content: start; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-intro { margin: .4rem 0 0; color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label:not(.check), .label { display: block; margin-bottom: .35rem; padding: 0; font-weight: 600; font-size: .95rem; color: var(--brown-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-width: 0; max-width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #dccfc5; border-radius: 12px; padding: .75rem .9rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(240, 125, 31, .18); }
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c3d35' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field.has-error .summary-empty { border-color: var(--red); }
.field-error { margin: .35rem 0 0; font-size: .88rem; font-weight: 600; color: var(--red); }
.field-error:empty { display: none; }

/* Su iOS i campi data non si restringono sotto la loro larghezza naturale e sfondano la colonna:
   min-width 0 sulle celle, aspetto normalizzato solo su iOS (altrove resta l'icona del calendario). */
.field, .form-row > *, .form-grid > * { min-width: 0; }
@supports (-webkit-touch-callout: none) {
  .field input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 3.15rem; }
  .field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
}
.check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-size: .96rem; }
.check input, .radio-card input { width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; flex: none; accent-color: var(--orange); }
.check a { color: var(--orange-600); }
.radio-cards { display: grid; gap: .6rem; }
@media (min-width: 640px) { .radio-cards { grid-template-columns: 1fr 1fr; } }
.radio-card { display: flex; align-items: flex-start; gap: .7rem; padding: .85rem 1rem; background: #fff; border: 1.5px solid #dccfc5; border-radius: 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.radio-card:has(input:checked) { border-color: var(--orange); background: var(--orange-50); }
.radio-card strong { display: block; color: var(--brown); }
.radio-card small { color: var(--muted); font-size: .88rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; text-align: center; font-size: .9rem; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.is-ok, .form-status.is-error { padding: 1rem 1.2rem; border-radius: 12px; font-weight: 600; }
.form-status.is-ok { background: #e7f5ea; color: #1e6b2c; }
.form-status.is-error { background: #fdecea; color: var(--red); }
.form > .form-status, form > .form-status { margin-bottom: 1.25rem; }
.form-success { padding: 2.5rem 1rem; text-align: center; }
.form-success .success-icon { width: 4rem; height: 4rem; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; background: #e7f5ea; color: var(--green); }
.form-success .success-icon .icon { width: 2rem; height: 2rem; stroke-width: 3; }
.form-success h2 { font-size: 2.2rem; }
.form-success p { max-width: 52ch; margin-inline: auto; color: var(--muted); font-size: 1.1rem; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .75fr 1.25fr; } }
.contact-cards { display: grid; gap: .8rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.2rem;
  transition: border-color .15s, transform .15s;
}
.contact-card:hover { border-color: #f3c9a3; transform: translateY(-2px); }
.contact-card strong { display: block; color: var(--brown); font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-card span { color: var(--muted); font-size: .92rem; }
.contact-card.whatsapp .feature-icon { background: #e3f8ec; color: #189a48; }

/* ---------- Rivenditori ---------- */
.reseller-visual { margin: 0; justify-self: center; max-width: 520px; }
.benefit-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; }
.benefit h3 { margin: 1rem 0 .3rem; }
.benefit p { margin: 0; color: var(--muted); }
.offer-box { background: var(--brown); color: #fff; border-radius: 26px; padding: clamp(1.75rem, 4vw, 3rem); }
.offer-box h2 { color: #fff; }
.offer-box .eyebrow { color: #ffb070; }
.offer-box .check-list li { color: #fff; }
.offer-box .check-list .icon { color: #7fd48c; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; }
.timeline li::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: .6rem; font-family: var(--head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--orange); }
.timeline h3 { font-size: 1.35rem; margin: 0 0 .3rem; }
.timeline p { margin: 0; color: var(--muted); font-size: .96rem; }
.form-card { max-width: 900px; margin-inline: auto; }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound-code { font-size: clamp(5rem, 16vw, 9rem); line-height: 1; margin: 0 0 1rem; }
.notfound .lead { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: #2f1c15; color: #d9c9c0; padding: 4rem 0 1.5rem; font-size: .98rem; }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
.footer-brand p { margin: 1rem 0 0; max-width: 36ch; color: #bfaea5; }
.footer-title { margin: 0 0 1rem; font-family: var(--head); font-weight: 700; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { color: #d9c9c0; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contacts li { display: flex; align-items: flex-start; gap: .6rem; }
.footer-contacts .icon { margin-top: .25rem; color: var(--orange); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; color: #a8958b; }

/* ---------- Animazioni in ingresso ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-set { flex-wrap: wrap; justify-content: center; row-gap: .5rem; }
  .marquee-set[aria-hidden] { display: none; }
  .live::before { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
