/* guitararcadia.com - foglio di stile
   Stessa famiglia della landing danieleponzoni.it: tema scuro, verde oliva del marchio,
   accento verde fosforo, Outfit + JetBrains Mono, raggio 6px. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jbmono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0e10;
  --bg-alt: #101316;
  --surface: #14181c;
  --line: rgba(236, 235, 230, 0.09);
  --line-strong: rgba(236, 235, 230, 0.18);
  --text: #ecebe6;
  --muted: #a3a6a1;
  --dim: #6e716d;
  --olive: #828d68;
  --accent: #7fcf93;
  --accent-ink: #0c0e10;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 6px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-weight: 350; font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 600; color: var(--text); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 14px; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); font-weight: 600;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

/* ---------- Selettore lingua ---------- */
.lang {
  position: absolute; top: 22px; right: var(--gutter); z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--dim);
}
.lang a { color: var(--dim); padding: 6px 2px; transition: color 0.25s var(--ease-out); }
.lang a:hover { color: var(--accent); }
.lang-on { color: var(--text); }
.lang a + .lang-on::before, .lang-on + a::before { content: "/"; color: var(--dim); margin-right: 6px; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 1rem; white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #93dba5; transform: translateY(-1px); }
  .btn-ghost:hover { background: rgba(236, 235, 230, 0.06); border-color: rgba(236, 235, 230, 0.32); }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; align-items: end;
  background: radial-gradient(ellipse 90% 70% at 70% 30%, #15181a 0%, var(--bg) 70%);
}
.scene { position: absolute; inset: 0; }
/* velatura: scurisce il basso e la sinistra della scena, dove stanno logo e testo */
.scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(to top, rgba(12, 14, 16, 0.88) 0%, rgba(12, 14, 16, 0.35) 30%, rgba(12, 14, 16, 0) 55%),
    linear-gradient(to right, rgba(12, 14, 16, 0.55) 0%, rgba(12, 14, 16, 0) 55%);
}
.scene-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 0.9s var(--ease-out);
}
.scene-canvas.ready { opacity: 1; }
/* nave statica di riserva: visibile finché la scena 3D non è pronta, o se WebGL manca */
.scene-fallback {
  position: absolute; right: -4%; top: 12%; width: min(78vw, 1100px); height: auto;
  opacity: 0.9; transition: opacity 0.9s var(--ease-out);
}
.scene.webgl .scene-fallback { opacity: 0; }

.hero > .wrap { position: relative; z-index: 2; }
.hero-copy {
  padding: clamp(96px, 16vh, 180px) 0 clamp(72px, 10vh, 120px);
  max-width: 600px;
}
.logo { margin: 0; }
.logo img { width: min(380px, 78vw); height: auto; }
.tagline {
  margin-top: 28px; font-size: clamp(1.25rem, 2.1vw, 1.7rem); font-weight: 500;
  line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance;
}
.sub { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.sub a { color: var(--accent); border-bottom: 1px solid rgba(127, 207, 147, 0.35); transition: border-color 0.2s; }
.sub a:hover { border-color: var(--accent); }
.hero .cta-row { margin-top: 30px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line-strong); border-radius: 13px;
  display: grid; justify-items: center; padding-top: 7px;
}
.scroll-hint span { width: 3px; height: 8px; border-radius: 2px; background: var(--accent); }

/* Rivelazione del testo dell'hero: solo opacità e transform, ease-out forte,
   parte quando la nave è quasi a posto. */
.hero-copy > * { opacity: 0; transform: translateY(14px); }
.hero.in .hero-copy > * {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.hero.in .hero-copy > :nth-child(1) { transition-delay: 0s; }
.hero.in .hero-copy > :nth-child(2) { transition-delay: 0.12s; }
.hero.in .hero-copy > :nth-child(3) { transition-delay: 0.24s; }
.hero.in .hero-copy > :nth-child(4) { transition-delay: 0.36s; }
.scroll-hint { opacity: 0; transition: opacity 0.8s var(--ease-out) 1s; }
.hero.in .scroll-hint { opacity: 1; }
.hero.in .scroll-hint span { animation: hint 1.8s var(--ease-out) infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ---------- Sezioni ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; border-top: 1px solid var(--line); background: var(--bg-alt); }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; max-width: 30ch; }
.rotta { list-style: none; margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.rotta a, .rotta div {
  display: grid; grid-template-columns: 240px 1fr 200px; gap: 8px 32px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.rotta strong { font-size: 1.2rem; letter-spacing: -0.01em; transition: color 0.2s var(--ease-out); }
.rotta span { color: var(--muted); text-wrap: pretty; }
.rotta em { font-style: normal; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive); justify-self: end; text-align: right; line-height: 1.5; }
.rotta .in-arrivo strong { color: var(--muted); }
.rotta .in-arrivo em { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .rotta a:hover strong { color: var(--accent); } }

/* ---------- Cosa facciamo ---------- */
.intro { margin-top: 22px; max-width: 62ch; font-size: 1.15rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.servizi {
  list-style: none;
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.servizi li { background: var(--bg-alt); padding: clamp(24px, 3vw, 36px); display: grid; gap: 10px; align-content: start; }
.servizi .num { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--accent); }
.servizi h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin-top: 2px; }
.servizi p { color: var(--muted); font-size: 1rem; line-height: 1.6; text-wrap: pretty; }
.chiusura { margin-top: clamp(28px, 4vw, 44px); max-width: 62ch; font-size: 1.05rem; color: var(--text); }
@media (min-width: 768px) and (max-width: 1023px) {
  .servizi { grid-template-columns: repeat(2, 1fr); }
  .rotta a, .rotta div { grid-template-columns: 220px 1fr; }
  .rotta em { grid-column: 2; justify-self: start; text-align: left; }
}

/* ---------- Footer ---------- */
.footer { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-size: 0.9rem; color: var(--dim); }
.footer-logo { margin-left: auto; }
.footer-logo img { width: 120px; height: auto; opacity: 0.85; transition: opacity 0.2s var(--ease-out); }
.footer-logo:hover img { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .hero { align-items: start; }
  .scene-fallback { right: -30%; top: 8%; width: 150vw; opacity: 0.55; }
  .hero-copy { padding-top: 46svh; }
  .tagline br { display: none; }
  .rotta a, .rotta div { grid-template-columns: 1fr; gap: 6px; }
  .rotta em { justify-self: start; text-align: left; margin-top: 4px; }
  .servizi { grid-template-columns: 1fr; }
  .footer-logo { margin-left: 0; }
}

/* ---------- Movimento ridotto: niente viaggio della nave, niente beccheggio, solo dissolvenze ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > * { transform: none; }
  .hero.in .hero-copy > * { transition: opacity 0.4s ease; }
  .hero.in .scroll-hint span { animation: none; }
}
