/* ============================================================
   AUTOTRASPORTI LUIGI VOLPE — style.css
   ============================================================ */

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

:root {
  --white:       #FFFFFF;
  --warm-white:  #F7F4F0;
  --orange:      #ED6A1A;
  --orange-dark: #d45c12;
  --dark:        #1A1A1A;
  --green:       #1E9E4A;
  --red:         #D6242C;
  --text:        #1A1A1A;
  --text-muted:  #6B7280;
  --border:      #E5E7EB;
  --shadow:      0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.14);
  --radius:      12px;
  --radius-sm:   8px;
  --nav-h:       75px;
  --transition:  0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-align: center;
}

.btn-lg  { padding: 15px 38px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(237,106,26,0.38);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.8);
}
.btn-outline-white:hover {
  background: white;
  color: var(--dark);
  border-color: white;
  transform: translateY(-2px);
}

/* ---- SHARED SECTION ELEMENTS ---- */
.section-eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-eyebrow.light { color: rgba(237,106,26,0.9); }

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 14px;
}
.section-title.orange { color: var(--orange); }

.section-title-dark {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: white;
  margin-bottom: 14px;
}

.section-subtitle-light {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-top: 6px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 6px auto 0;
}

.underline-bar {
  width: 52px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 20px;
}
.underline-bar.centered { margin: 0 auto 20px; }

.section-header       { text-align: center; margin-bottom: 60px; }
.section-header .underline-bar { margin: 0 auto 20px; }
.section-header-dark  { text-align: center; margin-bottom: 60px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: white;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo img { height: 55px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: 6px;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--orange); }
.nav-cta { margin-left: 12px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.65);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  max-width: 920px;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInDown 0.7s ease 0.3s forwards;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: white;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
  opacity: 0;
  animation: fadeInDown 0.7s ease 0.5s forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 42px;
  font-weight: 400;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.7s forwards;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.9s forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}
.hero-scroll:hover { color: white; }
.scroll-arrow { animation: bounce 2.2s ease-in-out infinite; }

/* ============================================================
   TICKER STRIP
   ============================================================ */
.ticker-wrap {
  background: var(--orange);
  overflow: hidden;
  padding: 15px 0;
  position: relative;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--orange), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--orange), transparent); }

.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  will-change: transform;
}

.ticker-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-content span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: white;
  text-transform: uppercase;
  padding: 0 20px;
}

.ticker-content .dot {
  color: rgba(255,255,255,0.5);
  padding: 0 4px;
}

/* ============================================================
   CHI SIAMO
   ============================================================ */
.chi-siamo {
  background: var(--warm-white);
  padding: 110px 0;
}

.chi-siamo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Image side */
.chi-siamo-img {
  position: relative;
}
.chi-siamo-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.img-badge {
  position: absolute;
  bottom: 28px;
  right: -20px;
  background: var(--orange);
  color: white;
  padding: 18px 26px;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: 0 8px 32px rgba(237,106,26,0.45);
}
.badge-year {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
}
.badge-label {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.05em;
}

/* Text side */
.chi-siamo-text { display: flex; flex-direction: column; }
.chi-siamo-text p {
  color: #4B5563;
  margin-bottom: 16px;
  font-size: 1.03rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 28px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
}
.check-icon {
  width: 28px; height: 28px;
  background: rgba(237,106,26,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   MAGAZZINO
   ============================================================ */
.magazzino {
  background: var(--dark);
  padding: 110px 0;
}

.magazzino-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.mag-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(237,106,26,0.3);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
}
.mag-card:hover {
  background: rgba(237,106,26,0.07);
  border-color: var(--orange);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(237,106,26,0.12);
}

.mag-icon {
  width: 72px; height: 72px;
  background: rgba(237,106,26,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.mag-card h3 { font-size: 1.4rem; color: white; margin-bottom: 12px; }
.mag-card p  { color: rgba(255,255,255,0.6); font-size: 0.94rem; line-height: 1.7; }

.magazzino-photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 44px;
}
.magazzino-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.6s ease;
}
.magazzino-photo:hover img { transform: scale(1.02); }

.magazzino-cta { text-align: center; }

/* ============================================================
   SERVIZI
   ============================================================ */
.servizi {
  background: var(--white);
  padding: 110px 0;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}
.serv-card:nth-child(1),
.serv-card:nth-child(2),
.serv-card:nth-child(3) { grid-column: span 2; }
.serv-card:nth-child(4) { grid-column: 2 / span 2; }
.serv-card:nth-child(5) { grid-column: 4 / span 2; }

.serv-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  background: white;
}
.serv-card:hover {
  border-color: var(--orange);
  transform: scale(1.025);
  box-shadow: 0 10px 36px rgba(237,106,26,0.14);
}

.serv-img { height: 205px; overflow: hidden; }
.serv-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.serv-card:hover .serv-img img { transform: scale(1.07); }

.serv-body { padding: 24px; }
.serv-body h3 { font-size: 1.25rem; color: var(--dark); margin-bottom: 10px; }
.serv-body p  { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; }

/* ============================================================
   PERCHÉ SCEGLIERCI
   ============================================================ */
.perche {
  background: var(--warm-white);
  padding: 110px 0;
}

.perche-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
}
.perche-block:nth-child(1),
.perche-block:nth-child(2),
.perche-block:nth-child(3) { grid-column: span 2; }
.perche-block:nth-child(4) { grid-column: 2 / span 2; }
.perche-block:nth-child(5) { grid-column: 4 / span 2; }

.perche-block {
  text-align: center;
  padding: 36px 18px 28px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.perche-block:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.perche-icon {
  width: 72px; height: 72px;
  background: rgba(237,106,26,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.perche-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 3.2rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}

.perche-unit {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.perche-block p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   CONTATTI
   ============================================================ */
.contatti {
  background: var(--white);
  padding: 110px 0;
}

.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Form */
.form-wrap {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--dark);
}

.required { color: var(--orange); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  color: var(--dark);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(237,106,26,0.1);
}

/* Info column */
.contatti-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--warm-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.info-icon {
  width: 44px; height: 44px;
  background: rgba(237,106,26,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
  font-family: 'Inter', sans-serif;
}
.info-card p  { font-size: 0.9rem; color: #4B5563; line-height: 1.6; }
.info-card a  { color: var(--orange); transition: color var(--transition); }
.info-card a:hover { color: var(--orange-dark); }

.map-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: rgba(255,255,255,0.75); }

.tricolore {
  display: flex;
  height: 6px;
}
.tri-green { flex: 1; background: var(--green); }
.tri-white { flex: 1; background: white; }
.tri-red   { flex: 1; background: var(--red); }

.footer .container { padding-top: 64px; padding-bottom: 36px; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}

.footer-logo {
  filter: brightness(0) invert(1);
  height: 55px;
  width: auto;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 270px;
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li { font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-col a:hover { color: var(--orange); }

.footer-col p { font-size: 0.9rem; color: rgba(255,255,255,0.5); margin-bottom: 8px; line-height: 1.6; }
.footer-col p a { color: var(--orange); font-size: inherit; }
.footer-col p a:hover { color: #f07c30; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ============================================================
   ANIMATIONS — KEYFRAMES
   ============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(9px); }
  60% { transform: translateY(5px); }
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SCROLL REVEAL CLASSES
   ============================================================ */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-bottom,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-up     { transform: translateY(44px); }
.reveal-left   { transform: translateX(-55px); }
.reveal-right  { transform: translateX(55px); }
.reveal-bottom { transform: translateY(54px); }
.reveal-scale  { transform: scale(0.88); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-bottom.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .chi-siamo-grid { grid-template-columns: 1fr; gap: 48px; }
  .chi-siamo-img img { height: 380px; }
  .img-badge { right: 0; }
  .magazzino-cards { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 999;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    width: 100%;
    padding: 14px 10px;
    border-bottom: 1px solid #F3F4F6;
    border-radius: 0;
  }
  .nav-cta {
    margin: 16px 0 0;
    width: 100%;
    justify-content: center;
    border-radius: 6px;
  }

  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; justify-content: center; }

  .servizi-grid { grid-template-columns: 1fr; }
  .servizi-grid .serv-card { grid-column: auto; }
  .perche-grid { grid-template-columns: repeat(2, 1fr); }
  .perche-grid .perche-block { grid-column: auto; }
  .contatti-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .magazzino-cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .perche-grid { grid-template-columns: 1fr; }
  .perche-grid .perche-block { grid-column: auto; }
  .perche-number { font-size: 2.6rem; }
  .form-wrap { padding: 24px; }
  .magazzino-photo img { height: 260px; }
}

/* ============================================================
   NOTIFICATION TOAST (injected by JS)
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  right: 24px;
  padding: 16px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: var(--green);  color: white; }
.toast-error   { background: var(--red);    color: white; }

/* ---- WHATSAPP FLOATING BUTTON ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 10000;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
