/* Benito Lupo Autoservizi — stile condiviso */

:root {
  --blu-scuro: #0d2b4e;
  --blu: #14477e;
  --blu-chiaro: #1f6fb2;
  --oro: #c8972c;
  --grigio-testo: #4a5560;
  --grigio-chiaro: #f4f6f8;
  --bianco: #ffffff;
  --bordo: #e2e7ec;
  --ombra: 0 10px 30px rgba(13, 43, 78, 0.12);
  --radius: 6px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--grigio-testo);
  background: var(--bianco);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--blu-scuro);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.btn {
  display: inline-block;
  background: var(--oro);
  color: var(--bianco);
  padding: 0.85em 1.8em;
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: #b3841f; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--bianco);
  color: var(--bianco);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* Topbar */
.topbar {
  background: var(--blu-scuro);
  color: #cdd9e6;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: #cdd9e6; }
.topbar strong { color: var(--bianco); }
.topbar .orari { opacity: 0.85; }

/* Header / nav */
header.site-header {
  background: var(--bianco);
  box-shadow: 0 2px 10px rgba(13,43,78,0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo img { height: 52px; width: auto; }
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2em;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  font-weight: 600;
  color: var(--blu-scuro);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active { border-color: var(--oro); color: var(--blu); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--blu-scuro);
  cursor: pointer;
}

/* Hero slider */
.hero-slider {
  position: relative;
  height: 62vh;
  min-height: 380px;
  overflow: hidden;
  background: var(--blu-scuro);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,43,78,0.55), rgba(13,43,78,0.75));
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--bianco);
  padding: 0 24px;
}
.hero-slide-content .eyebrow {
  color: var(--oro);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.6em;
}
.hero-slide-content h1 { color: var(--bianco); margin-bottom: 0.7em; }
.hero-dots {
  position: absolute;
  bottom: 22px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px;
  z-index: 3;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--bianco);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active { background: var(--oro); border-color: var(--oro); }

/* Features strip */
.features-strip {
  background: var(--blu);
  color: var(--bianco);
}
.features-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
  text-align: center;
}
.features-strip h3 { color: var(--bianco); margin: 0; letter-spacing: 0.03em; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--grigio-chiaro); }
.section-header { max-width: 680px; margin: 0 auto 2.5em; text-align: center; }
.section-header .kicker { color: var(--oro); font-weight: 700; margin-bottom: 0.4em; display: block; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-grid .images { position: relative; }
.about-grid .images img:first-child { border-radius: var(--radius); box-shadow: var(--ombra); }
.about-grid .images img:last-child {
  position: absolute; bottom: -24px; right: -24px;
  width: 55%; border: 6px solid var(--bianco); border-radius: var(--radius);
  box-shadow: var(--ombra);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.mission-grid .card {
  background: var(--bianco);
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  padding: 28px;
}

.cta-banner {
  background: var(--blu-scuro);
  color: var(--bianco);
  text-align: center;
  padding: 56px 0;
}
.cta-banner h2 { color: var(--bianco); }
.cta-banner p { color: #cdd9e6; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--bianco);
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--ombra);
}
.testimonial-card .person { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-card .person img { width: 44px; height: 44px; border-radius: 50%; }
.testimonial-card .person strong { color: var(--blu-scuro); }

/* Contact section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info dl { margin: 0; }
.contact-info dt { color: var(--blu-scuro); font-weight: 700; margin-top: 1.2em; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 0.2em 0 0; }

.map-embed {
  border: 0; width: 100%; height: 340px; border-radius: var(--radius);
  filter: grayscale(15%);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid a { display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--ombra); }
.gallery-grid img { transition: transform 0.35s ease; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-grid a:hover img { transform: scale(1.06); }

/* Page header (interior pages) */
.page-header {
  background: linear-gradient(180deg, rgba(13,43,78,0.86), rgba(13,43,78,0.86)), url("https://benitolupoautoservizi.it/wp-content/uploads/2017/12/slide-3.jpg") center/cover;
  color: var(--bianco);
  padding: 70px 0 46px;
}
.page-header h1 { color: var(--bianco); margin-bottom: 0.3em; }
.breadcrumb { font-size: 0.9rem; color: #cdd9e6; }
.breadcrumb a { color: var(--oro); }

/* Tables (orari) */
.table-wrap { overflow-x: auto; margin-bottom: 2em; }
table.orari {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 0.93rem;
}
table.orari th {
  background: var(--blu);
  color: var(--bianco);
  padding: 10px 12px;
  text-align: left;
}
table.orari td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--bordo);
}
table.orari tr:nth-child(even) td { background: var(--grigio-chiaro); }
table.orari td strong { color: var(--blu-scuro); }

/* Prezzi / biglietterie */
.price-card {
  background: var(--bianco);
  border: 1px solid var(--bordo);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 18px;
}
.price-card h4 { margin-bottom: 0.4em; }
.price-card .price { color: var(--oro); font-weight: 700; }

.tabs-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2em;
  border-bottom: 1px solid var(--bordo);
  padding-bottom: 10px;
}
.tabs-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grigio-chiaro);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blu-scuro);
}
.tabs-nav a:hover { background: var(--oro); color: var(--bianco); }

.agency-list {
  columns: 2;
  column-gap: 40px;
  margin: 0 0 2.5em;
  padding: 0;
  list-style: none;
}
.agency-list li {
  break-inside: avoid;
  padding: 6px 0;
  border-bottom: 1px dashed var(--bordo);
}

.offer-box {
  background: var(--blu-scuro);
  color: var(--bianco);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 10px;
}
.offer-box h3 { color: var(--oro); }
.offer-box ul { margin: 0; padding-left: 1.2em; }

/* Footer */
footer.site-footer {
  background: var(--blu-scuro);
  color: #b9c7d6;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: var(--bianco); font-family: inherit; font-size: 1rem; margin-bottom: 0.9em; }
.footer-grid a:hover { color: var(--oro); }
.footer-grid .logo img { height: 44px; margin-bottom: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  font-size: 0.85rem;
}
.footer-bottom a { color: #cdd9e6; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--blu-scuro);
  color: #dbe4ee;
  padding: 16px 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  z-index: 100;
  font-size: 0.9rem;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.2);
}
.cookie-banner.show { display: flex; }
.cookie-banner a { color: var(--oro); text-decoration: underline; }

/* Back to top */
.back-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--oro);
  color: var(--bianco);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--ombra);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
}
.back-top.show { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
  .about-grid, .mission-grid, .contact-grid, .testimonials-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .about-grid .images { margin-bottom: 70px; }
  .features-strip .container { grid-template-columns: 1fr; gap: 10px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .agency-list { columns: 1; }
}

@media (max-width: 760px) {
  .topbar .container { justify-content: center; text-align: center; }
  nav.main-nav {
    position: fixed;
    top: 0; right: -280px;
    width: 260px; height: 100%;
    background: var(--bianco);
    box-shadow: -6px 0 20px rgba(0,0,0,0.15);
    padding: 90px 24px 24px;
    transition: right 0.25s ease;
  }
  nav.main-nav.open { right: 0; }
  nav.main-nav ul { flex-direction: column; gap: 1.4em; }
  .menu-toggle { display: block; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
