/* ============================================================
   AUTOCLUB SNC — Stylesheet
   Palette: #0a0a0a (bg), #E30613 (rosso), #ffffff (testo)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #E30613;
  --red-dark: #b50010;
  --black:    #0a0a0a;
  --dark:     #111111;
  --card:     #181818;
  --border:   #2a2a2a;
  --white:    #ffffff;
  --gray:     #999999;
  --light:    #cccccc;
  --font-head: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Trebuchet MS', 'Segoe UI', sans-serif;
  --radius:   4px;
  --shadow:   0 4px 24px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Utility ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px;
  color: var(--light);
  max-width: 620px;
  line-height: 1.75;
}

/* ---------- Navbar ---------- */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--light);
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* CTA button */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
}

.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../officina1.png');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  filter: grayscale(40%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.85) 50%, rgba(227,6,19,0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 88px;
  max-width: 680px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--red);
}

.hero-sub {
  font-size: 18px;
  color: var(--light);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- Chi Siamo ---------- */
#chi-siamo {
  background: var(--black);
}

.chi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.chi-img {
  position: relative;
}

.chi-img img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 480px;
}

.chi-img::before {
  content: '';
  position: absolute;
  top: -12px; left: -12px;
  width: 80px; height: 80px;
  border-top: 3px solid var(--red);
  border-left: 3px solid var(--red);
  border-radius: 2px 0 0 0;
  z-index: 1;
}

.chi-img::after {
  content: '';
  position: absolute;
  bottom: -12px; right: -12px;
  width: 80px; height: 80px;
  border-bottom: 3px solid var(--red);
  border-right: 3px solid var(--red);
  border-radius: 0 0 2px 0;
}

.chi-text p {
  color: var(--light);
  margin-bottom: 16px;
  font-size: 16px;
}

.chi-highlights {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chi-highlight {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.chi-highlight svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.chi-highlight strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  margin-bottom: 2px;
}

.chi-highlight span {
  font-size: 13px;
  color: var(--gray);
}

/* ---------- Servizi ---------- */
#servizi {
  background: var(--dark);
}

.servizi-header {
  text-align: center;
  margin-bottom: 60px;
}

.servizi-header .section-sub {
  margin: 0 auto;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.servizio-card {
  background: var(--card);
  padding: 36px 24px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.servizio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.servizio-card:hover {
  background: #1f1f1f;
}

.servizio-card:hover::before {
  transform: scaleX(1);
}

.servizio-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--red);
}

.servizio-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.servizio-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
}

/* ---------- Officina (seconda sezione immagine) ---------- */
#officina {
  background: var(--black);
}

.officina-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.officina-img img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 440px;
}

.officina-text .section-sub {
  margin-bottom: 32px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--light);
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ---------- Contatti ---------- */
#contatti {
  background: var(--dark);
}

.contatti-header {
  text-align: center;
  margin-bottom: 60px;
}

.contatti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.contatto-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: border-color 0.25s, transform 0.2s;
}

.contatto-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.contatto-icon {
  width: 48px;
  height: 48px;
  color: var(--red);
  margin: 0 auto 20px;
}

.contatto-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.contatto-value {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.contatto-card a {
  color: var(--white);
  transition: color 0.2s;
}

.contatto-card a:hover {
  color: var(--red);
}

.orari-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.orari-box h3 {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--white);
  margin-bottom: 24px;
  text-align: center;
}

.orario-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.orario-row:last-child { border-bottom: none; }

.orario-giorno { color: var(--light); font-weight: 600; }
.orario-ora { color: var(--gray); }
.orario-chiuso { color: var(--red); font-weight: 600; }

.maps-cta {
  text-align: center;
  margin-top: 48px;
}

.maps-cta p {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
#footer {
  background: #060606;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand img {
  height: 44px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--gray);
  max-width: 280px;
  line-height: 1.6;
}

.footer-legal-info p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.8;
}

.footer-legal-info strong {
  color: var(--light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 12px;
  color: var(--gray);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: var(--gray);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--red);
}

/* ---------- Policy pages ---------- */
.policy-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.policy-page h1 {
  font-family: var(--font-head);
  font-size: 36px;
  color: var(--white);
  margin-bottom: 8px;
}

.policy-page .updated {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.policy-page h2 {
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--white);
  margin: 36px 0 12px;
}

.policy-page p,
.policy-page li {
  color: var(--light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-page a {
  color: var(--red);
  text-decoration: underline;
}

.policy-page strong {
  color: var(--white);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 40px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid .stat-item:nth-child(2) { border-right: none; }
  .stats-grid .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .chi-grid, .officina-grid { grid-template-columns: 1fr; gap: 40px; }
  .chi-img::before, .chi-img::after { display: none; }
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
  .contatti-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav-links { display: none; flex-direction: column; gap: 0; position: fixed; top: 68px; left: 0; right: 0; background: var(--dark); border-bottom: 1px solid var(--border); padding: 16px 0; }
  .nav-links.open { display: flex; }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: 12px 24px; }
  .nav-toggle { display: flex; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
  .servizi-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}

/* ---------- Scroll animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
