/* Naclerio Studio — stili
   Colori e caratteri si cambiano qui sotto. */
@font-face { font-family: 'Space Grotesk'; src: url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #0B1220;
  --surface: #121B2E;
  --surface-2: #1B2740;
  --line: #26334D;
  --line-strong: #33415A;
  --text: #F2EFE8;
  --text-soft: #C9D1DE;
  --muted: #9AA6B8;
  --accent: #F5D547;
  --font-title: 'Space Grotesk', system-ui, sans-serif;
  --font-body: Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: #FFE98A; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 104px; }
.accent { color: var(--accent); }
.muted { color: var(--text-soft); }

h1, h2, h3 { font-family: var(--font-title); margin: 0; }
h1 { font-weight: 700; font-size: clamp(42px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-weight: 700; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; max-width: 640px; margin-bottom: 48px; }
h3 { font-weight: 600; font-size: 24px; }
p { margin: 0; }
.eyebrow { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.lead { font-size: 20px; color: var(--text-soft); max-width: 600px; }

/* Intestazione */
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.logo { display: inline-flex; align-items: center; font-family: var(--font-title); font-weight: 700; font-size: 24px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo-icon { width: 36px; height: 36px; margin-right: 12px; border-radius: 9px; outline: 1px solid var(--line-strong); outline-offset: -1px; }
.logo:hover { color: var(--text); }
.logo .dot { color: var(--accent); }
.logo-sub { font-weight: 500; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { color: var(--text-soft); text-decoration: none; padding: 12px 0; }
.nav a:not(.btn):hover { color: var(--text); }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; padding: 16px 26px; border-radius: 999px; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 12px 20px; }
.btn-accent, .btn-accent:hover { background: var(--accent); color: var(--bg); }
.btn-ghost, .btn-ghost:hover { color: var(--text); border: 1px solid var(--line-strong); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 88px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-text .eyebrow { margin: 0; }
.hero-text .lead { max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { flex: 1 1 440px; min-width: 0; }
.hero-video { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }

/* Striscia scorrevole */
.marquee { border-top: 1px solid #1F2A40; border-bottom: 1px solid #1F2A40; padding: 20px 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-flex; font-family: var(--font-title); font-size: 22px; font-weight: 500; color: var(--muted); animation: marquee 32s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; padding-left: 48px; gap: 48px; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Schede */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; transition: transform .25s ease, border-color .25s ease; }
.card:hover, .work:hover { transform: translateY(-6px); border-color: var(--accent); }
.card-icon { width: 36px; height: 36px; color: var(--accent); stroke-width: 1.6; }
.card p { color: var(--text-soft); }
.card .price { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--text); }
.price small { display: block; font-weight: 400; font-size: 15px; color: var(--muted); }
.terms { margin-top: 28px; font-size: 15px; color: var(--muted); max-width: 760px; }

/* Metodo */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px; }
.steps li { flex: 1 1 220px; min-width: 0; border-top: 2px solid var(--line-strong); padding-top: 20px; }
.steps li:first-child { border-top-color: var(--accent); }
.num { font-family: var(--font-title); font-size: 44px; font-weight: 700; color: var(--accent); }
.steps h3 { font-size: 21px; margin: 6px 0 8px; }
.steps p { color: var(--text-soft); }

/* Lavori */
.work { flex: 1 1 320px; min-width: 0; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, border-color .25s ease; }
.work:hover { color: var(--text); }
.work img { width: 100%; height: 220px; object-fit: cover; object-position: top; }
.work-info { padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.tag { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.work-name { font-family: var(--font-title); font-size: 24px; font-weight: 600; line-height: 1.2; }
.work-next { flex: 1 1 320px; min-width: 0; border: 1px dashed var(--line-strong); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 280px; }
.work-next a { font-weight: 600; padding: 10px 0; align-self: flex-start; }

/* Chi sono */
.about h2 { margin-bottom: 18px; }
.about .lead { font-size: 19px; margin-bottom: 18px; }

/* Contatti */
#contatti { padding-bottom: 96px; }
.cta { background: var(--accent); color: var(--bg); border-radius: 28px; padding: clamp(32px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.cta-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.03em; margin: 0; max-width: none; }
.cta p { font-size: 19px; max-width: 460px; }
.cta-links { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.contact, .contact:hover { background: var(--bg); color: var(--text); text-decoration: none; font-weight: 600; padding: 16px 24px; border-radius: 16px; display: flex; align-items: center; gap: 12px; transition: transform .2s ease; overflow-wrap: anywhere; }
.contact:hover { transform: translateY(-2px); }
.contact svg { color: var(--accent); flex: none; }
.contact-big { font-family: var(--font-title); font-size: 22px; padding: 18px 24px; }

/* Piè di pagina */
.footer { border-top: 1px solid #1F2A40; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }

/* Pagine di testo (privacy, cookie) */
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 12px; }
.legal h2 { font-size: 24px; margin: 40px 0 10px; max-width: none; }
.legal p, .legal li { color: var(--text-soft); }
.legal p { margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal .updated { color: var(--muted); font-size: 15px; }

/* Animazioni */
@keyframes up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float-alt { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(12px) rotate(1deg); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 213, 71, .55); } 100% { box-shadow: 0 0 0 18px rgba(245, 213, 71, 0); } }
@keyframes ringing { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }

.load { animation: up .8s cubic-bezier(.2, .7, .2, 1) both; }
.grow { animation: grow 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; } .d4 { animation-delay: .5s; }
.float { animation: float 6s ease-in-out infinite; }
.float-alt { animation: float-alt 7s ease-in-out infinite; }
.pulse { animation: pulse 1.8s ease-out infinite; }
.ringing { animation: ringing 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
.spin { animation: spin 28s linear infinite; }
.caret { animation: blink 1s steps(1) infinite; }

/* Comparsa allo scorrimento: attiva solo se JavaScript funziona */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .section { padding-top: 72px; }
  .nav { gap: 18px; }
  .contact { font-size: 15px; padding: 16px 18px; }
  .contact-big { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .load, .grow, .float, .float-alt, .pulse, .ringing, .spin, .caret, .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
