/* LOMS v3 — home "cinematografica" */

/* menu che galleggia sopra la scena */
.home3 .nav { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
.home3 .nav.is-scrolled { background: linear-gradient(rgba(8, 8, 11, 0.85), rgba(8, 8, 11, 0)); }
@media (min-width: 921px) {
  .home3 .nav__links { padding: 5px; border-radius: 999px; background: rgba(18, 20, 25, 0.55); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .home3 .nav__links a { font-size: 0.9rem; padding: 9px 14px; }
}

.mono { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sec { padding: clamp(90px, 13vw, 170px) 0; position: relative; }
.sec--alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015) 20%, rgba(255, 255, 255, 0.015) 80%, transparent); }

/* ---------- 1. scena cinematografica ---------- */
.cine { position: relative; height: 420vh; }
.cine__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cine__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cine__veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 30% 50%, rgba(8, 8, 11, 0.55), transparent 70%), linear-gradient(transparent 70%, var(--bg)); }
.cine__text { position: absolute; z-index: 2; left: var(--gutter); top: 50%; translate: 0 -50%; width: min(620px, calc(100% - 2 * var(--gutter))); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.cine__text[aria-hidden="true"] { opacity: 0; transform: translateY(18px); pointer-events: none; }
.cine__text h1 { font-size: clamp(2.7rem, 7.2vw, 6rem); margin: 18px 0 22px; }
.cine__text h1 .it { font-size: 1.08em; }
.cine__text--mid { width: min(600px, calc(100% - 2 * var(--gutter))); }
.cine__text--end { width: min(520px, calc(100% - 2 * var(--gutter))); }
.cine__text--end h2 { margin: 10px 0 14px; }
.cine__lede { color: var(--belly); font-size: clamp(1rem, 1.35vw, 1.15rem); max-width: 50ch; }
.cine__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cine__ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 30px 0 0; }
.cine__ticks li { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cine__ticks li::before { content: "✓ "; color: var(--glow); }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(18, 20, 25, 0.6); font-size: 0.82rem; color: var(--belly); backdrop-filter: blur(8px); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); animation: pulse 2.4s ease-in-out infinite; }
.cine__hint { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; display: grid; justify-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); transition: opacity 0.4s; }
.cine__hint i { width: 1px; height: 38px; background: linear-gradient(var(--glow), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.cine__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; z-index: 60; }
.cine__bar i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 10px rgba(52, 231, 228, 0.6); }
@media (max-width: 760px) {
  .cine__text, .cine__text--mid, .cine__text--end { left: var(--gutter); right: auto; top: auto; bottom: 90px; translate: none; text-align: left; }
  .cine__veil { background: linear-gradient(rgba(8, 8, 11, 0) 25%, rgba(8, 8, 11, 0.92) 70%, var(--bg)); }
  .cine__ticks, .cine__hint, .cine__text[data-hero-step="0"] .cine__lede { display: none; }
  .cine__text[data-hero-step="0"] { bottom: 40px; }
  .cine__text h1 { margin: 14px 0 14px; }
  .cine__lede { font-size: 0.98rem; }
}

/* ---------- 2. striscia ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; }
.marquee__track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 34px; padding-right: 34px; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.04em; white-space: nowrap; }
.marquee__track span.it { color: #6f6f6c; background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.marquee__track span::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 16px rgba(52, 231, 228, 0.5); }

/* ---------- 3. affermazione + confronto ---------- */
.statement { max-width: 980px; margin-bottom: clamp(48px, 7vw, 90px); }
.statement h2 { font-size: clamp(2rem, 5.2vw, 4.2rem); margin-bottom: 26px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }
.vs__card { padding: clamp(24px, 3.5vw, 40px); border-radius: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.vs__card h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); margin: 10px 0 22px; }
.vs__card--yes { border-color: rgba(52, 231, 228, 0.28); background: radial-gradient(500px circle at 100% 0%, rgba(52, 231, 228, 0.08), transparent 60%), rgba(255, 255, 255, 0.02); }
.vs__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.vs__list li { display: flex; gap: 12px; color: var(--belly); }
.vs__list li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; color: #0b0b0e; background: var(--glow); }
.vs__list--no li { color: var(--muted); }
.vs__list--no li::before { content: "×"; color: var(--muted); background: var(--surface-2); font-size: 0.9rem; }

/* ---------- 4. servizi a righe ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row__btn { width: 100%; display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 18px; padding: clamp(20px, 3vw, 34px) 0; background: none; border: 0; text-align: left; cursor: pointer; }
.row__n { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--muted); }
.row__name { font-size: clamp(1.6rem, 4.2vw, 3.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; transition: transform 0.5s var(--ease), color 0.3s; }
.row__short { display: block; font-size: 0.95rem; color: var(--muted); margin-top: 8px; letter-spacing: 0; font-weight: 400; }
.row__arr { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all 0.35s var(--ease); }
.row:hover .row__name, .row.is-open .row__name { transform: translateX(10px); }
.row:hover .row__arr, .row.is-open .row__arr { background: var(--paper); color: #0b0b0e; border-color: var(--paper); transform: rotate(-45deg); }
.row.is-open .row__arr { transform: rotate(45deg); }
.row__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.row.is-open .row__body { grid-template-rows: 1fr; }
.row__inner { overflow: hidden; }
.row__content { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 18px; padding-bottom: 34px; }
.row__content p { color: var(--belly); margin: 0 0 16px; max-width: 52ch; }
.row__content ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.row__content li { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.row__content li::before { content: "— "; color: var(--glow); }
@media (max-width: 760px) {
  .row__btn { grid-template-columns: 40px 1fr auto; }
  .row__content { grid-template-columns: 1fr; padding-left: 0; }
  .row__content > :first-child { display: none; }
}
#servizi { padding-bottom: clamp(30px, 4vw, 60px); }
.row-lomi { width: 100%; max-width: 300px; height: auto; mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent); -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent); }
.rows-peek .row-lomi { max-width: 260px; }
.rows-peek { position: fixed; left: 0; top: 0; z-index: 5; width: 300px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.85) rotate(-4deg); transition: opacity 0.25s, transform 0.4s var(--ease); }
.rows-peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
@media (hover: none), (max-width: 900px) { .rows-peek { display: none; } }

/* ---------- 5. il software che si smonta ---------- */
.stack { position: relative; height: 280vh; }
.stack__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.stack__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(20px, 4vw, 60px); align-items: center; }
.stack__copy h2 { margin-bottom: 18px; }
.stack__stage { position: relative; aspect-ratio: 1; max-height: 78vh; width: 100%; justify-self: center; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, rgba(52, 231, 228, 0.07), transparent 60%), #0b0c10; overflow: hidden; touch-action: pan-y; cursor: grab; }
.stack__stage:active { cursor: grabbing; }
.stack__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stack__tag { position: absolute; right: 18px; top: 16px; }
.stack__drag { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(8, 8, 11, 0.6); }
.layers { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.layers li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.86rem; color: var(--muted); transition: all 0.35s var(--ease); }
.layers li.is-on { color: var(--text); border-color: rgba(52, 231, 228, 0.6); background: rgba(52, 231, 228, 0.1); box-shadow: 0 0 18px -6px var(--glow); }
.layers li small { display: block; font-size: 0.74rem; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
@media (max-width: 900px) {
  .stack { height: 240vh; }
  .stack__grid { grid-template-columns: 1fr; gap: 14px; }
  .stack__copy .lede { display: none; }
  .stack__copy h2 { font-size: 2rem; margin-bottom: 0; }
  .layers { margin-top: 14px; gap: 6px; }
  .layers li { font-size: 0.76rem; padding: 6px 10px; }
  .stack__stage { max-height: 52vh; max-width: 52vh; }
}

/* ---------- 6. software in orizzontale ---------- */
.hscroll { position: relative; }
.hscroll__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 3vw, 36px); padding-top: 70px; overflow: hidden; }
.hscroll__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.hscroll__track { display: flex; gap: 20px; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.hcard { position: relative; width: min(78vw, 540px); flex: none; display: grid; gap: 12px; padding: 22px 24px; border-radius: 26px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); text-decoration: none; overflow: hidden; transition: border-color 0.3s; }
.hcard:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.hcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(480px circle at 100% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 60%); pointer-events: none; }
.hcard__top { display: flex; justify-content: space-between; align-items: start; }
.hcard__n { font-family: var(--font-serif); font-style: italic; font-size: 3.4rem; line-height: 0.8; color: #4d4d4a; }
.hcard h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.hcard p { color: var(--belly); margin: 0; }
.hcard .screen { box-shadow: none; }
.hcard__more { display: inline-flex; gap: 8px; color: var(--text); font-weight: 500; }
.hcard--new { justify-content: center; align-content: center; border-style: dashed; text-align: left; }
@media (max-width: 760px) {
  .hscroll__sticky { position: static; height: auto; padding: 90px 0; }
  .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; transform: none !important; }
  .hcard { scroll-snap-align: start; width: 84vw; }
}

/* ---------- 7. metodo a schede impilate ---------- */
.deck { display: grid; gap: 22px; }
.deck__card { position: sticky; top: calc(96px + var(--i) * 14px); display: grid; grid-template-columns: 160px 1fr; gap: clamp(18px, 3vw, 40px); align-items: start; padding: clamp(26px, 4vw, 48px); border-radius: 28px; border: 1px solid var(--line); background: #0f1014; min-height: 260px; transform-origin: top center; transition: filter 0.3s; box-shadow: 0 -20px 60px -30px #000; }
.deck__n { font-family: var(--font-serif); font-style: italic; font-size: clamp(4rem, 9vw, 7.5rem); line-height: 0.8; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.deck__card h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: 14px; }
.deck__card p { color: var(--belly); max-width: 58ch; margin: 0 0 18px; }
.deck__card ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.deck__card li { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
@media (max-width: 760px) {
  .deck__card { grid-template-columns: 1fr; top: calc(80px + var(--i) * 10px); min-height: 0; }
  .deck__card ul { grid-template-columns: 1fr; }
}

/* ---------- 8. calcolatore ---------- */
.calc { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc h2 { margin-bottom: 18px; }
.sliders { display: grid; gap: 26px; margin-top: 36px; }
.slider { display: grid; gap: 12px; }
.slider span { display: flex; justify-content: space-between; gap: 16px; font-size: 0.95rem; color: var(--belly); }
.slider b { font-family: var(--font-mono); font-weight: 500; color: var(--text); white-space: nowrap; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--glow) var(--v, 50%), var(--surface-2) var(--v, 50%)); outline: none; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 5px rgba(52, 231, 228, 0.2); cursor: pointer; }
.slider input::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 5px rgba(52, 231, 228, 0.2); cursor: pointer; }
.slider input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--glow); }
.calc__out { padding: clamp(26px, 4vw, 44px); border-radius: 28px; border: 1px solid rgba(52, 231, 228, 0.28); background: radial-gradient(500px circle at 100% 0%, rgba(52, 231, 228, 0.1), transparent 60%), #0f1014; display: grid; gap: 6px; }
.calc__big { font-size: clamp(3.6rem, 9vw, 6.4rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.calc__unit { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--belly); margin-bottom: 14px; }
.calc__row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
.calc__row b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.calc__note { font-size: 0.8rem; color: var(--muted); margin: 14px 0 18px; }

/* ---------- 10. chi siamo ---------- */
.lomi-card { position: relative; margin: 0; border-radius: 28px; border: 1px solid var(--line); background: #000; overflow: hidden; aspect-ratio: 4 / 5; max-width: 480px; }
.lomi-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; mask-image: radial-gradient(ellipse 60% 56% at 50% 50%, #000 62%, transparent); -webkit-mask-image: radial-gradient(ellipse 60% 56% at 50% 50%, #000 62%, transparent); }
.lomi-card figcaption { position: absolute; left: 20px; right: 20px; bottom: 18px; text-transform: none; letter-spacing: 0.02em; font-size: 0.78rem; line-height: 1.5; }

/* ---------- 11. FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } }
.home3 .faq details { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.home3 .faq details[open] { border-color: var(--line-2); }
.home3 .faq summary { padding: 24px 0; font-size: 1.12rem; font-weight: 500; }
.home3 .faq summary small { display: none; }
.home3 .faq .ans { padding: 0 0 24px; }

/* ---------- 12. finale ---------- */
.final { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; padding: 120px var(--gutter); }
.final__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.final__copy { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.final__copy h2 { font-size: clamp(2.4rem, 6.6vw, 5.6rem); }
.final__copy .lede { margin: 0; color: var(--belly); }

.home3 .footer { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .cine { height: auto; }
  .cine__sticky { position: relative; height: 100vh; }
  .cine__text--mid, .cine__text--end, .cine__hint { display: none; }
  .stack { height: auto; }
  .stack__sticky { position: relative; height: auto; padding: 100px 0; }
  .hscroll__sticky { position: static; height: auto; padding: 100px 0; }
  .hscroll__track { width: auto; overflow-x: auto; }
  .marquee__track { animation: none; }
}
