/* ============================================================
   TuliCar — stylesheet
   Palette: nero/grafite + oro primario + rosso secondario.
   Approccio mobile-first; breakpoint maggiori in fondo.
============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:          #0a0a0b;
  --bg-alt:      #111114;
  --bg-card:     #16161b;
  --bg-card-2:   #1c1c22;
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --ink:         #f4f2ec;
  --ink-mute:    #a0a09a;
  --ink-soft:    #6c6c66;

  --gold:        #d4a857;
  --gold-bright: #efc97a;
  --gold-deep:   #a98238;
  --red:         #c1272d;
  --red-bright:  #e23f46;

  --shadow-1: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 0 0 1px rgba(212, 168, 87, 0.35), 0 14px 34px rgba(212, 168, 87, 0.12);

  --radius:    14px;
  --radius-sm: 8px;

  --container: 1240px;
  --header-h:  68px;

  --t-fast:   180ms cubic-bezier(.2,.7,.2,1);
  --t:        300ms cubic-bezier(.2,.7,.2,1);
  --t-slow:   600ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold-bright); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* ---------- Helpers ---------- */
.muted { color: var(--ink-mute); }
.small { font-size: 0.875rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  color: var(--gold);
  text-transform: uppercase;
}
.eyebrow .bar { width: 28px; height: 1px; background: var(--gold); display: inline-block; }

.icon { width: 1.1em; height: 1.1em; flex: none; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t);
}
.site-header.scrolled {
  background: rgba(10, 10, 11, 0.92);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-mark {
  display: inline-flex;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(212,168,87,0.18), rgba(212,168,87,0.04));
  border: 1px solid rgba(212, 168, 87, 0.4);
  border-radius: 8px;
}
.logo-mark .icon { width: 18px; height: 18px; }
.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
}
.logo-accent { color: var(--gold); }

/* Nav */
.nav { display: none; }
@media (min-width: 960px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav a {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    padding: 6px 0;
  }
  .nav a::after {
    content: '';
    position: absolute; left: 50%; bottom: -4px;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width var(--t), left var(--t);
  }
  .nav a:hover::after { width: 100%; left: 0; }
}

/* Toggle (mobile) */
.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--ink);
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .close { display: none; }
.nav-toggle[aria-expanded="true"] .open { display: none; }
.nav-toggle[aria-expanded="true"] .close { display: block; }
@media (min-width: 960px) { .nav-toggle { display: none; } }

/* Mobile nav (slide-down panel) */
@media (max-width: 959px) {
  .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(10,10,11,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 24px;
    transform: translateY(-110%);
    opacity: 0; visibility: hidden;
    transition: transform var(--t), opacity var(--t), visibility var(--t);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    font-weight: 500;
  }
  .nav a:last-child { border-bottom: 0; }
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 32px) 0 80px;
  background-image: linear-gradient(180deg, rgba(10,10,11,0.30) 0%, rgba(10,10,11,0.55) 65%, rgba(10,10,11,0.92) 100%), var(--hero-img);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,10,11,0.72) 0%, rgba(10,10,11,0.35) 45%, transparent 70%),
    radial-gradient(ellipse at 20% 30%, rgba(212,168,87,0.10), transparent 50%),
    radial-gradient(ellipse at 85% 80%, rgba(193,39,45,0.08), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 18vw, 11rem);
  letter-spacing: 0.02em;
  line-height: 0.9;
  margin: 8px 0 18px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.45);
}
.hero-title .word { display: inline-block; }
.hero-title .accent {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--gold-bright);
  margin: 0 0 14px;
  max-width: 32ch;
}
.hero-sub {
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  color: var(--ink-mute);
  max-width: 56ch;
  margin: 0 0 32px;
}

/* CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all var(--t);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn .icon { width: 16px; height: 16px; transition: transform var(--t); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1407;
  box-shadow: 0 10px 30px rgba(212,168,87,0.28);
}
.btn-primary:hover {
  color: #1a1407;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(212,168,87,0.42);
}
.btn-primary:hover .icon { transform: translateX(3px); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--gold);
  color: var(--gold-bright);
}



@keyframes bounce {
  0%,100% { transform: translate(-50%, 0); }
  50%     { transform: translate(-50%, 6px); }
}

/* ============================================================
   SECTIONS
============================================================ */
.section {
  position: relative;
  padding: 80px 0;
}
@media (min-width: 768px) { .section { padding: 110px 0; } }
.section-alt {
  background: var(--bg-alt);
  background-image:
    radial-gradient(circle at 80% 0%, rgba(212,168,87,0.05), transparent 50%);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}
.section-lead {
  color: var(--ink-mute);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  margin: 0;
}

/* ============================================================
   SERVIZI
============================================================ */
.services-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
.services-grid { max-width: 760px; margin-inline: auto; }

.service-card {
  position: relative;
  padding: 36px 28px 30px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  opacity: 0.30;
  transition: opacity var(--t);
  z-index: 0;
}
.service-card::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212,168,87,0.35);
  box-shadow: var(--shadow-2);
}
.service-card:hover::before { opacity: 0.45; }
.service-card:hover::after  { opacity: 1; }
.service-card > * { position: relative; z-index: 1; }

.service-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,168,87,0.18), rgba(212,168,87,0.04));
  border: 1px solid rgba(212,168,87,0.35);
  color: var(--gold-bright);
  margin-bottom: 22px;
}
.service-icon .icon { width: 26px; height: 26px; }

.service-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}
.service-lead {
  color: var(--ink-mute);
  margin: 0 0 20px;
}
.service-list {
  margin: 0 0 24px;
  display: grid;
  gap: 9px;
}
.service-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.94rem;
  color: var(--ink);
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ============================================================
   CONTATTI
============================================================ */
.section-contact {
  padding: 80px 0;
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0.58) 35%, rgba(10,10,11,0.78) 100%),
    var(--contact-img);
  background-size: cover;
  background-position: center;
}
.contact-overlay { display: none; }
.contact-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}

.contact-info h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin: 0 0 12px;
}
.contact-list {
  margin: 28px 0 24px;
  display: grid;
  gap: 18px;
}
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-list .ci {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  flex: none;
  background: rgba(212,168,87,0.10);
  border: 1px solid rgba(212,168,87,0.3);
  color: var(--gold-bright);
}
.contact-list .ci .icon { width: 20px; height: 20px; }
.contact-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1rem;
}
.contact-list span,
.contact-list a {
  display: block;
  font-size: 0.94rem;
  color: var(--ink-mute);
}
.contact-list a:hover { color: var(--gold-bright); }
.contact-list .muted { font-style: italic; font-weight: 400; color: var(--ink-mute); }



/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: #050506;
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
}
.footer-legal p {
  font-size: 0.76rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ============================================================
   ANIMAZIONI scroll-reveal
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   FOCUS-VISIBLE accessibilità
============================================================ */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Selezione testo
============================================================ */
::selection { background: var(--gold); color: #1a1407; }
