/* ─────────────────────────────────────────────
   CENG - style.css
   Tema: dark warm, accento unico #ff751f
   Radius system: pill (interattivi) / 28px outer
   bezel / 20px inner core / 12px input
   Z-scale: noise 120 / nav 100 / menu 95
   ───────────────────────────────────────────── */

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

:root {
  --bg:          #0B0A08;
  --bg-2:        #100E0B;
  --surface:     #161410;
  --surface-2:   #1C1915;
  --line:        rgba(244, 242, 238, .08);
  --line-strong: rgba(244, 242, 238, .16);
  --text:        #F4F2EE;
  --muted:       #A09A8C;
  --label:       #C2BCAE;
  --accent:      #ff751f;
  --accent-soft: rgba(255, 117, 31, .12);
  --ok:          #34D399;

  /* Tinte dipendenti dal tema (default: scuro) */
  --tint:            rgba(244, 242, 238, .03);
  --tint-strong:     rgba(244, 242, 238, .07);
  --inset:           rgba(255, 255, 255, .05);
  --nav-bg:          rgba(11, 10, 8, .55);
  --nav-bg-scrolled: rgba(11, 10, 8, .85);
  --menu-bg:         rgba(11, 10, 8, .92);
  --scrim:           rgba(11, 10, 8, .55);
  --shadow-nav:      0 12px 40px rgba(0, 0, 0, .35);

  --r-bezel: 28px;
  --r-core:  20px;
  --r-input: 12px;

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io:     cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Outfit', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-logo:    'Nunito', sans-serif;
}

/* ── Tema chiaro (crema, non bianco accecante) ── */
[data-theme="light"] {
  --bg:          #EDECE8;
  --bg-2:        #E5E3DD;
  --surface:     #F5F4F0;
  --surface-2:   #FBFAF7;
  --line:        rgba(26, 24, 20, .10);
  --line-strong: rgba(26, 24, 20, .18);
  --text:        #1A1814;
  --muted:       #6E695E;
  --label:       #423E37;

  --tint:            rgba(26, 24, 20, .035);
  --tint-strong:     rgba(26, 24, 20, .07);
  --inset:           rgba(255, 255, 255, .65);
  --nav-bg:          rgba(237, 236, 232, .72);
  --nav-bg-scrolled: rgba(237, 236, 232, .9);
  --menu-bg:         rgba(237, 236, 232, .95);
  --scrim:           rgba(237, 236, 232, .55);
  --shadow-nav:      0 12px 40px rgba(26, 24, 20, .1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font: inherit; }

/* L'attributo hidden vince sempre, anche su elementi con display esplicito */
[hidden] { display: none !important; }

/* Campo honeypot anti-spam: nascosto agli utenti, visibile ai bot */
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

::selection { background: var(--accent); color: #14120D; }

/* ── Film grain ── */
.noise {
  position: fixed; inset: 0; z-index: 120; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  background-size: 220px;
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

section { padding: 112px 0; }

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section-body {
  margin-top: 16px;
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 56ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity .8s var(--ease-out),
    transform .8s var(--ease-out),
    filter .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ── Double-bezel panel ── */
.panel {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--r-bezel);
  padding: 8px;
}
.panel__core {
  background: var(--surface);
  border-radius: var(--r-core);
  box-shadow: inset 0 1px 0 var(--inset);
  height: 100%;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .92rem;
  padding: 12px 22px;
  transition:
    transform .16s var(--ease-out),
    background-color .2s ease,
    border-color .2s ease;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--accent);
  color: #14120D;
  font-weight: 600;
  padding: 8px 8px 8px 22px;
}
.btn__orb {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: rgba(20, 18, 13, .14);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: transform .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #ff8c42; }
  .btn--primary:hover .btn__orb { transform: translate(2px, -2px); }
  .btn--ghost:hover { background: var(--tint-strong); border-color: var(--line-strong); }
}

.btn--ghost {
  border: 1px solid var(--line);
  background: var(--tint);
  color: var(--text);
}

.btn--lg { font-size: 1rem; padding: 14px 26px; }
.btn--lg.btn--primary { padding: 10px 10px 10px 26px; }
.btn--full {
  width: 100%;
  justify-content: center;
  border-radius: var(--r-input);
  padding: 15px 22px;
}
.btn--nav { font-size: .85rem; }

/* ─────────────────────────────────────────────
   NAV: floating island
   ───────────────────────────────────────────── */
#navSentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.nav {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.nav.scrolled {
  background: var(--nav-bg-scrolled);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-nav);
}

.nav__logo {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}
.logo-dot { color: var(--accent); font-size: 1.65rem; line-height: 1; }

.nav__logo-img {
  display: block;
  height: 22px;
  width: auto;
}

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: color .2s ease, background-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { color: var(--text); background: var(--tint-strong); }
}

.nav__links { display: flex; gap: 24px; }
.nav__links a {
  font-size: .88rem;
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--text); }
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px; height: 40px;
  align-items: center;
}
.nav__burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease-out);
}
.nav__burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--menu-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease-drawer), visibility .4s;
}
.menu.open { opacity: 1; visibility: visible; }

.menu__links { display: flex; flex-direction: column; gap: 8px; }
.menu__links a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 8px 0;
}
.menu__links a, .menu__mail {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity .5s var(--ease-out),
    transform .5s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms);
}
.menu.open .menu__links a,
.menu.open .menu__mail {
  opacity: 1;
  transform: none;
}
.menu__mail {
  margin-top: 40px;
  color: var(--muted);
  font-size: 1rem;
}

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 56% 44% at 72% 30%, rgba(255, 117, 31, .07), transparent 70%),
    radial-gradient(ellipse 40% 36% at 12% 86%, rgba(255, 117, 31, .04), transparent 65%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 72px;
  align-items: center;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  font-weight: 400;
  color: var(--label);
  border: 1px solid var(--line);
  background: var(--tint);
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 28px;
}
.badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(52, 211, 153, .6);
}

.hero__title {
  font-size: clamp(2.7rem, 5.6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
  line-height: 1.1;
  display: inline-block;
  padding-bottom: 4px;
}

.hero__sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 40px;
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero visual frame */
.frame {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--r-bezel);
  padding: 8px;
}
.frame__core {
  position: relative;
  border-radius: var(--r-core);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.frame__core img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.8) contrast(1.05);
}
.frame__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, var(--scrim) 100%),
    rgba(255, 117, 31, .05);
}

/* ── Visual brandizzato (sostituisce le foto segnaposto) ── */
.brand-visual {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 95% at 25% 18%, rgba(255, 117, 31, .22), transparent 55%),
    radial-gradient(90% 80% at 82% 88%, rgba(255, 117, 31, .09), transparent 60%),
    linear-gradient(155deg, var(--surface-2), var(--surface));
}
.brand-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--line-strong) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 46%, #000 0%, transparent 72%);
  opacity: .65;
}
.brand-visual__icon {
  position: relative;
  font-size: clamp(3.2rem, 11vw, 6rem);
  color: var(--accent);
  filter: drop-shadow(0 10px 28px rgba(255, 117, 31, .35));
}
/* pallini decorativi fluttuanti (richiamo del punto del logo) */
.brand-visual__dot {
  position: absolute;
  border-radius: 999px;
  background: var(--accent);
  opacity: .9;
}
.brand-visual__dot--1 { width: 14px; height: 14px; top: 18%; right: 22%; opacity: .9; }
.brand-visual__dot--2 { width: 8px;  height: 8px;  bottom: 24%; left: 20%; opacity: .55; }
.brand-visual__dot--3 { width: 5px;  height: 5px;  top: 32%; left: 30%; opacity: .35; }
.brand-visual__ring {
  position: absolute;
  width: 58%; aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.brand-visual__ring--2 { width: 80%; opacity: .6; }

/* ── Showcase template (fasce scorrevoli) ── */
.showcase { padding: 0; border-top: 1px solid var(--line); overflow: hidden; }
.showcase__head { padding: 112px 0 56px; }
.showcase__rows { display: flex; flex-direction: column; gap: 24px; padding-bottom: 112px; }
.showcase__track {
  display: flex; width: max-content; gap: 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.showcase__row { display: flex; gap: 24px; padding-right: 24px; }
.showcase__track--ltr { animation: tpl-marquee 46s linear infinite; }
.showcase__track--rtl { animation: tpl-marquee 56s linear infinite reverse; }
.showcase:hover .showcase__track { animation-play-state: paused; }
@keyframes tpl-marquee { to { transform: translateX(-50%); } }

.tpl-card {
  width: 340px; flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-core);
  background: var(--surface);
  overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .tpl-card:hover { transform: translateY(-8px); border-color: rgba(255, 117, 31, .4); }
}
.tpl-card__frame { position: relative; aspect-ratio: 16 / 10; }
.tpl-card__bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  height: 28px; display: flex; align-items: center; gap: 6px; padding: 0 12px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.tpl-card__bar span { width: 8px; height: 8px; border-radius: 999px; background: var(--line-strong); }
.tpl-card__frame .brand-visual { padding-top: 28px; }
.tpl-card__frame .brand-visual__icon { font-size: clamp(2.2rem, 5vw, 2.8rem); }
.tpl-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-top: 1px solid var(--line);
}
.tpl-card__name { font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.tpl-card__tag {
  font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent);
  border: 1px solid rgba(255, 117, 31, .3); border-radius: 999px; padding: 3px 9px;
}
@media (prefers-reduced-motion: reduce) {
  .showcase__track--ltr, .showcase__track--rtl { animation: none; }
}

/* ─────────────────────────────────────────────
   STACK MARQUEE
   ───────────────────────────────────────────── */
.stack { padding: 48px 0; border-top: 1px solid var(--line); }
.stack__label {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}
.marquee__group img { height: 26px; width: auto; opacity: .75; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────
   STATS
   ───────────────────────────────────────────── */
.stats { padding: 88px 0; border-top: 1px solid var(--line); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.stat p { font-size: .88rem; color: var(--muted); max-width: 22ch; }

/* ─────────────────────────────────────────────
   SERVIZI: bento
   ───────────────────────────────────────────── */
.services { border-top: 1px solid var(--line); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 14px;
}
.cell--a { grid-column: span 7; grid-row: span 2; }
.cell--b, .cell--c { grid-column: span 5; }

.cell { transition: transform .3s var(--ease-out), border-color .3s ease; }
@media (hover: hover) and (pointer: fine) {
  .cell:hover { transform: translateY(-4px); border-color: rgba(255, 117, 31, .3); }
}

.cell__core { padding: 36px 32px; position: relative; }
.cell__core--tint {
  background:
    linear-gradient(165deg, rgba(255, 117, 31, .13), rgba(255, 117, 31, .02) 55%),
    var(--surface);
}

.cell__flag {
  position: absolute;
  top: 24px; right: 24px;
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  border: 1px solid rgba(255, 117, 31, .35);
  border-radius: 999px;
  padding: 5px 12px;
}

.cell__icon {
  font-size: 2.1rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 20px;
}

.cell h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.cell p {
  font-size: .94rem;
  color: var(--muted);
  max-width: 46ch;
}

.cell__list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cell__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--label);
}
.cell__list .ph { color: var(--accent); font-size: .95rem; }

.cell__media {
  margin: -16px -12px 24px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.cell__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.8) contrast(1.05);
}

.cell__more {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cell__more:hover { gap: 13px; }
}

/* ─────────────────────────────────────────────
   METODO
   ───────────────────────────────────────────── */
.process { border-top: 1px solid var(--line); }
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}
.step__num {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: .9rem; color: var(--muted); }

/* ─────────────────────────────────────────────
   PREZZI
   ───────────────────────────────────────────── */
.pricing { border-top: 1px solid var(--line); }
.pricing__rows { max-width: 880px; }
.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--line-strong);
  padding: 28px 0;
}
.price-row h3 { font-size: 1.15rem; margin-bottom: 6px; }
.price-row p { font-size: .9rem; color: var(--muted); }
.price-row__amount {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--accent);
  white-space: nowrap;
}
.pricing__note {
  margin-top: 36px;
  max-width: 720px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .92rem;
  color: var(--label);
  border: 1px solid var(--line);
  border-radius: var(--r-core);
  background: rgba(255, 117, 31, .05);
  padding: 18px 20px;
}
.pricing__note .ph {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   PAGINE LEGALI (privacy / cookie)
   ───────────────────────────────────────────── */
.legal { border-top: 1px solid var(--line); }
.legal__wrap { max-width: 760px; }
.legal__updated {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 40px;
}
.legal__notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--label);
  border: 1px solid rgba(255, 117, 31, .28);
  border-radius: var(--r-core);
  background: rgba(255, 117, 31, .06);
  padding: 18px 20px;
  margin-bottom: 48px;
}
.legal__notice .ph { color: var(--accent); font-size: 1.1rem; margin-top: 3px; flex-shrink: 0; }
.legal__block { margin-bottom: 40px; }
.legal__block h2 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.legal__block h3 {
  font-size: 1rem;
  margin: 22px 0 10px;
  color: var(--text);
}
.legal__block p {
  font-size: .96rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.legal__block ul {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal__block li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .94rem;
  color: var(--muted);
}
.legal__block li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
}
.legal__block a { color: var(--accent); text-decoration: underline; }
.legal__block strong { color: var(--label); font-weight: 600; }
.fill {
  color: var(--accent);
  font-weight: 500;
  font-style: normal;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: .9rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}
.legal-table th {
  font-weight: 600;
  color: var(--label);
  font-size: .82rem;
}
.legal-table td:first-child { color: var(--label); white-space: nowrap; }

/* ─────────────────────────────────────────────
   FASI (pagina metodo)
   ───────────────────────────────────────────── */
.phases { border-top: 1px solid var(--line); }
.phase {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  border-top: 1px solid var(--line-strong);
  padding: 48px 0;
}
.phase:last-child { padding-bottom: 0; }
.phase__num {
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 500;
  color: var(--accent);
  padding-top: 6px;
}
.phase h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 14px; }
.phase__body > p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 60ch;
}
.phase__list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phase__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  color: var(--label);
}
.phase__list .ph { color: var(--accent); }

/* ─────────────────────────────────────────────
   PRIMA / DOPO
   ───────────────────────────────────────────── */
.shift { border-top: 1px solid var(--line); background: var(--bg-2); }

.shift__core {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
}
.shift__col { padding: 40px 36px; }
.shift__divider { background: var(--line); }

.shift__head {
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}
.shift__head--now { color: var(--muted); }
.shift__head--after { color: var(--accent); }

.shift__col ul { display: flex; flex-direction: column; gap: 16px; }
.shift__col li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .95rem;
  color: var(--label);
}
.shift__col .ph { margin-top: 4px; flex-shrink: 0; }
.shift__col .ph-x { color: var(--muted); }
.shift__col .ph-check { color: var(--accent); }

/* ─────────────────────────────────────────────
   CLIENTI
   ───────────────────────────────────────────── */
.quotes { border-top: 1px solid var(--line); }
.quotes__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 14px;
  align-items: stretch;
}
.quotes__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quotes__side .quote { flex: 1; }

.quote {
  border: 1px solid var(--line);
  border-radius: var(--r-bezel);
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.quote blockquote {
  font-size: 1rem;
  color: var(--label);
  line-height: 1.6;
}
.quote--lead blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote figcaption img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.quote figcaption span { display: flex; flex-direction: column; font-size: .82rem; color: var(--muted); }
.quote figcaption strong { font-weight: 600; color: var(--text); font-size: .9rem; }

/* ─────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq .section-head { margin-left: auto; margin-right: auto; text-align: center; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  transition: color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .faq-item__q:hover { color: var(--accent); }
}
.faq-item__q .ph {
  font-size: 1.15rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s var(--ease-out);
}
.faq-item.open .faq-item__q .ph { transform: rotate(45deg); }

.faq-item__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease-io);
}
.faq-item__a p {
  padding: 0 4px 24px;
  font-size: .95rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ─────────────────────────────────────────────
   BOOKING
   ───────────────────────────────────────────── */
.booking {
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.booking__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 48% 52% at 80% 20%, rgba(255, 117, 31, .06), transparent 70%);
}

.booking__grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 72px;
  align-items: center;
  position: relative;
}

.booking__copy h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }

.booking__perks {
  margin: 36px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.booking__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .96rem;
  color: var(--label);
}
.booking__perks .ph { color: var(--accent); }

.booking__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  color: var(--accent);
  transition: color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .booking__mail:hover { color: #ff8c42; }
}

/* Form */
.form-card { padding: 40px 36px; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; position: relative; }
.field label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--label);
  letter-spacing: .03em;
}
.field input,
.field select,
.field textarea {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: 13px 15px;
  color: var(--text);
  font-size: .95rem;
  font-weight: 300;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: var(--font-body);
  line-height: 1.55;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 117, 31, .5);
  box-shadow: 0 0 0 3px rgba(255, 117, 31, .14);
}
.field select { cursor: pointer; padding-right: 42px; }
.field__caret {
  position: absolute;
  right: 15px; bottom: 15px;
  color: var(--muted);
  pointer-events: none;
}

.field__error {
  font-size: .8rem;
  color: #F08A8A;
}
.field.invalid input,
.field.invalid textarea { border-color: rgba(240, 138, 138, .55); }

.process__footer { margin-top: 40px; }

.form-note {
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
}

.form-error {
  margin-top: 14px;
  font-size: .85rem;
  color: #F08A8A;
  text-align: center;
}
.form-error a { color: var(--accent); text-decoration: underline; }

.spin { animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn__loading { display: inline-flex; align-items: center; gap: 10px; }

/* Success */
.form-success { text-align: center; padding: 32px 0; }
.form-success .ph-light {
  font-size: 3rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 16px;
}
.form-success h3 { font-size: 1.3rem; margin-bottom: 10px; }
.form-success p { font-size: .92rem; color: var(--muted); }
.form-success__mail { margin-top: 10px; font-size: .82rem; }
.form-success__mail strong { color: var(--label); }

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 72px 0 36px;
}
.footer__cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer__cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.footer__hint {
  font-size: .82rem;
  color: var(--muted);
  max-width: 24ch;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 56px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.footer__logo {
  display: inline-block;
  margin-bottom: 18px;
}
.footer__logo img {
  display: block;
  height: 30px;
  width: auto;
}
.footer__brand p {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 32ch;
}
.footer__mail { font-size: .9rem; color: var(--accent); }

.footer__social {
  display: flex; align-items: center; gap: 8px; width: fit-content;
  margin-top: 18px;
  font-size: .88rem; color: var(--muted);
  transition: color .2s ease;
}
.footer__social:hover { color: var(--accent); }
.footer__social i { font-size: 1.2rem; }

.story__social {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  font-size: .92rem; font-weight: 500; color: var(--accent);
  transition: gap .25s var(--ease-out), color .2s ease;
}
.story__social:hover { gap: 12px; }
.story__social i { font-size: 1.2rem; }

.footer__cols { display: flex; gap: 72px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 6px;
}
.footer__col a {
  font-size: .9rem;
  color: var(--label);
  transition: color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover { color: var(--text); }
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
}
.footer__bottom a { color: var(--label); }

/* ─────────────────────────────────────────────
   PAGINA CHI SIAMO
   ───────────────────────────────────────────── */
.about-hero {
  padding: 200px 0 96px;
  position: relative;
  overflow: hidden;
}
.about-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 52% 46% at 70% 18%, rgba(255, 117, 31, .06), transparent 70%);
}
.about-hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 22ch;
  margin-bottom: 24px;
}
.about-hero__title em {
  font-style: italic;
  color: var(--accent);
  display: inline-block;
  line-height: 1.12;
  padding-bottom: 4px;
}
.about-hero__sub {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 52ch;
}
.about-hero__cta {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Storia */
.story { border-top: 1px solid var(--line); }
.story__grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 72px;
  align-items: center;
}
.frame__core--wide { aspect-ratio: 4 / 3; }
.story__copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 20px; }
.story__copy p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 54ch;
}
.story__copy p + p { margin-top: 16px; }

.story__grid--flip .story__visual { order: 2; }

/* Cosa include / esempi (pagine servizio) */
.include { border-top: 1px solid var(--line); }
.include__core { padding: 44px 40px; }
.include__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 48px;
}
.include__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--label);
}
.include__list .ph {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

/* Valori */
.values { border-top: 1px solid var(--line); background: var(--bg-2); }
.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.value {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}
.value__icon {
  font-size: 1.7rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 16px;
}
.value h3 { font-size: 1.08rem; margin-bottom: 10px; }
.value p { font-size: .9rem; color: var(--muted); }

/* Team */
.team { border-top: 1px solid var(--line); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.member__photo {
  border-radius: var(--r-core);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 20px;
  border: 1px solid var(--line);
}
.member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85);
  transition: transform .5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .member:hover .member__photo img { transform: scale(1.04); }
}
.member h3 { font-size: 1.1rem; margin-bottom: 4px; }
.member p { font-size: .88rem; color: var(--muted); }

/* CTA finale */
.about-cta { border-top: 1px solid var(--line); }
.about-cta__core {
  padding: 72px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255, 117, 31, .08), transparent 70%),
    var(--surface);
}
.about-cta__core h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 22ch; }
.about-cta__core p { color: var(--muted); font-size: 1rem; margin-bottom: 12px; }

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .nav__links { gap: 16px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .story__grid { grid-template-columns: 1fr; gap: 48px; }
  .values__grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .team__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .hero__visual { max-width: 480px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cell--a { grid-column: span 2; grid-row: auto; }
  .cell--b, .cell--c { grid-column: span 1; }
  .process__grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .quotes__grid { grid-template-columns: 1fr; }
  .booking__grid { grid-template-columns: 1fr; gap: 56px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }

  .nav {
    width: calc(100% - 32px);
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 8px 20px;
  }
  .nav__links { display: none; }
  .nav .btn--nav { display: none; }
  .nav__burger { display: flex; }
  .theme-toggle { margin-left: auto; }

  .hero { padding: 120px 0 64px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .hero__cta .btn--primary { justify-content: space-between; }

  .bento { grid-template-columns: 1fr; }
  .cell--a, .cell--b, .cell--c { grid-column: span 1; }

  .shift__core { grid-template-columns: 1fr; }
  .shift__divider { height: 1px; width: 100%; }

  .process__grid { grid-template-columns: 1fr; }

  .footer__top { flex-direction: column; gap: 40px; }
  .footer__cols { gap: 48px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .about-hero { padding: 160px 0 72px; }
  .values__grid { grid-template-columns: 1fr; }
  .include__list { grid-template-columns: 1fr; gap: 16px; }
  .include__core { padding: 32px 24px; }
  .story__grid--flip .story__visual { order: 0; }
  .phase { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .price-row { grid-template-columns: 1fr; gap: 10px; }
  .team__grid { grid-template-columns: 1fr; gap: 36px; }
  .member__photo { max-width: 380px; }
  .about-cta__core { padding: 56px 24px; }
}

/* ─────────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .marquee__track { animation: none; }
  .menu__links a, .menu__mail { transition: opacity .2s ease; transform: none; }
  .btn, .cell, .btn__orb { transition: none; }
}

/* ─────────────────────────────────────────────
   LOGO PER TEMA (chiaro su scuro / scuro su chiaro)
   ───────────────────────────────────────────── */
img.logo--light-bg { display: none; }
[data-theme="light"] img.logo--dark-bg { display: none; }
[data-theme="light"] img.logo--light-bg { display: block; }
