/* ═══════════════════════════════════════════════
   Transfer Experience – NCC Sicilia
   Shared stylesheet
   ═══════════════════════════════════════════════ */

/* ─── RESET & BASE ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #C9A84C;
  --gold-light: #E2C272;
  --gold-dim:   #8A6E2F;
  --dark:       #0a0a0a;
  --dark-2:     #111111;
  --dark-3:     #1a1a1a;
  --dark-4:     #222222;
  --text:       #e8e8e8;
  --text-muted: #888888;
  --white:      #ffffff;
  --nav-h:      80px;
  --radius:     6px;
}

html { scroll-behavior: smooth; }

/* ─── LEATHER TEXTURE ───────────────────────────── */
:root {
  --leather-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
}

body {
  background-color: var(--dark);
  background-image:
    var(--leather-grain),
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 3px,
      rgba(255,255,255,0.012) 3px,
      rgba(255,255,255,0.012) 4px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 3px,
      rgba(255,255,255,0.008) 3px,
      rgba(255,255,255,0.008) 4px
    );
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Sezioni alternate mantengono la texture */
section, footer, nav {
  background-image:
    var(--leather-grain),
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 3px,
      rgba(255,255,255,0.010) 3px,
      rgba(255,255,255,0.010) 4px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 3px,
      rgba(255,255,255,0.007) 3px,
      rgba(255,255,255,0.007) 4px
    );
  background-color: inherit;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold); }

.section-label {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.gold-divider {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 0 auto 40px;
}
.gold-divider.left { margin-left: 0; }

/* ─── BUTTONS ───────────────────────────────────── */
.btn-primary {
  background: var(--gold);
  color: var(--dark);
  padding: 15px 36px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  padding: 15px 36px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201,168,76,0.08); }

/* ─── NAV ───────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s;
}
#nav.scrolled {
  background: rgba(10,10,10,0.97);
  box-shadow: 0 1px 0 rgba(201,168,76,0.2);
}
#nav.solid {
  background: rgba(10,10,10,0.97);
  box-shadow: 0 1px 0 rgba(201,168,76,0.15);
}
#nav .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1.2;
}
.nav-logo-text span {
  display: block;
  font-size: 0.63rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--dark) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute;
  top: 28px; right: 28px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gold);
}

/* ─── PAGE HERO (inner pages) ───────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,168,76,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-grid {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero .section-label { text-align: center; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.page-hero .section-label { position: relative; z-index: 1; }

/* ─── STRIP ─────────────────────────────────────── */
.strip {
  background: var(--gold);
  padding: 14px 0;
  overflow: hidden;
}
.strip-inner {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}
.strip-item {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.strip-item::before { content: '◆'; font-size: 0.5rem; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── FOOTER ────────────────────────────────────── */
footer {
  background: var(--dark-2);
  padding: 60px 0 32px;
  border-top: 1px solid rgba(201,168,76,0.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 16px;
  max-width: 260px;
}
.footer-col h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── WHATSAPP FLOAT ────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 990;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

/* ─── SERVICE CARDS ─────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
}
.service-card {
  background: var(--dark-3);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}
.service-card:hover { background: var(--dark-4); }
.service-card:hover::before { height: 100%; }
.service-icon {
  width: 52px; height: 52px;
  margin-bottom: 22px;
  color: var(--gold);
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }
.service-number {
  position: absolute;
  bottom: 20px; right: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(201,168,76,0.06);
  line-height: 1;
}

/* ─── FORM ──────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark-4);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  padding: 13px 16px;
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--dark-4); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ─── SCROLL ANIMATIONS ─────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── CTA BOX ───────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, var(--dark-3), var(--dark-4));
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius);
  padding: 60px 48px;
  text-align: center;
}
.cta-box h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.cta-box p { color: var(--text-muted); max-width: 480px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cta-box { padding: 40px 24px; }
}
