/*
Theme Name: Autotrasporti Bianco
Theme URI: https://autotrasportibianco.it
Author: Custom Theme
Description: Tema per Autotrasporti Bianco snc
Version: 3.0
Text Domain: autotrasporti-bianco
*/

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', sans-serif; background: #0b0d11; color: #c8cfd9; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background .3s, border-color .3s;
}
.site-header.stuck {
  background: rgba(11,13,17,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e2433;
}
.hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 2rem; max-width: 1160px; margin: 0 auto;
}
.hdr-logo { display: flex; align-items: center; gap: 10px; }
.hdr-logo img {
  height: 44px; width: auto;
  mix-blend-mode: lighten;
}
.hdr-logo-text { display: flex; flex-direction: column; line-height: 1; }
.hdr-logo-text strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff;
}
.hdr-logo-text span {
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: #e09a00; margin-top: 2px;
}
.hdr-nav { display: flex; align-items: center; gap: 1.75rem; }
.hdr-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #7a8499; transition: color .2s; position: relative;
}
.hdr-nav a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1.5px; background: #e09a00; transition: width .25s;
}
.hdr-nav a:hover { color: #fff; }
.hdr-nav a:hover::after { width: 100%; }
.hdr-right { display: flex; align-items: center; gap: .75rem; }
.hdr-tel {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem; color: #5a6275; letter-spacing: .04em; transition: color .2s;
}
.hdr-tel:hover { color: #fff; }
.hdr-wa {
  display: flex; align-items: center; gap: 6px;
  background: #25d366; color: #fff;
  padding: 7px 14px; border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border: none; cursor: pointer; transition: background .2s, transform .2s;
}
.hdr-wa svg { width: 13px; height: 13px; fill: currentColor; }
.hdr-wa:hover { background: #1ab856; transform: translateY(-1px); }
.mob-btn {
  display: none; flex-direction: column; gap: 4.5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.mob-btn span { display: block; width: 21px; height: 1.5px; background: #c8cfd9; transition: .25s; }

/* Mobile nav */
.mob-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #0b0d11; z-index: 199;
  flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}
.mob-nav.open { display: flex; }
.mob-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem; font-weight: 800; text-transform: uppercase; color: #fff; transition: color .2s;
}
.mob-nav a:hover { color: #e09a00; }
.mob-close {
  position: absolute; top: 1.25rem; right: 1.75rem;
  background: none; border: none; color: #5a6275; font-size: 1.6rem; cursor: pointer; line-height: 1;
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: 140px 0 80px; overflow: hidden;
}
.hero-photo { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(12%) brightness(.52);
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.05); } }
.hero-photo::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(to right, rgba(11,13,17,.97) 0%, rgba(11,13,17,.72) 42%, rgba(11,13,17,.12) 100%),
    linear-gradient(to top,   rgba(11,13,17,.75) 0%, transparent 50%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1160px; margin: 0 auto; padding: 0 2rem; width: 100%;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: .65rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: #e09a00;
  margin-bottom: 1.1rem;
  animation: fadeUp .7s .1s both;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 1.5px; background: #e09a00; }
.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(4rem, 9vw, 8rem); font-weight: 900; line-height: .92;
  text-transform: uppercase; letter-spacing: -.01em; color: #fff;
  margin-bottom: 1.25rem;
  animation: fadeUp .7s .2s both;
}
.hero h1 em { color: #e09a00; font-style: normal; display: block; }
.hero-p {
  font-size: .95rem; color: #7a8499; line-height: 1.75; max-width: 400px;
  margin-bottom: 1.75rem;
  animation: fadeUp .7s .3s both;
}
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; animation: fadeUp .7s .4s both; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 7px;
  background: #25d366; color: #fff; padding: 12px 22px; border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border: none; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-wa svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.btn-wa:hover { background: #1ab856; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.28); }
.btn-tel {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: #c8cfd9; padding: 12px 22px; border-radius: 3px;
  border: 1.5px solid #1e2433;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: border-color .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.btn-tel:hover { border-color: #e09a00; color: #e09a00; transform: translateY(-2px); }
.hero-stats {
  display: flex; gap: 2.5rem;
  margin-top: 2.75rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,.07);
  animation: fadeUp .7s .5s both;
}
.hs strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem; font-weight: 900; color: #fff; display: block; line-height: 1;
}
.hs strong b { color: #e09a00; }
.hs span { font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #5a6275; margin-top: 2px; display: block; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ── TICKER ── */
.ticker { background: #e09a00; padding: 8px 0; overflow: hidden; }
.ticker-track { display: flex; white-space: nowrap; animation: tick 26s linear infinite; }
.ticker-track span {
  padding: 0 2.25rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #000;
}
.ticker-track span::after { content: '◆'; margin-left: 2.25rem; opacity: .3; }
@keyframes tick { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── SECTION COMMONS ── */
.sec { padding: 90px 0; }
.sec-dark { background: #0b0d11; }
.sec-mid  { background: #111318; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.sec-label {
  display: flex; align-items: center; gap: 9px;
  font-size: .62rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: #e09a00;
  margin-bottom: .6rem;
}
.sec-label::before { content: ''; width: 20px; height: 1.5px; background: #e09a00; }
.sec-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.01em; color: #fff;
}

/* ── SERVICES ── */
.svc-head { margin-bottom: 2.5rem; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #1e2433; }
.svc-card {
  background: #111318; padding: 2.25rem 2rem;
  position: relative; overflow: hidden; cursor: default;
  transition: background .25s;
}
.svc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: #e09a00; transform: scaleX(0); transform-origin: left;
  transition: transform .38s ease;
}
.svc-card:hover { background: #161a24; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-num {
  position: absolute; bottom: -.5rem; right: 1.25rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 5.5rem; font-weight: 900;
  color: rgba(255,255,255,.03); line-height: 1;
  pointer-events: none; user-select: none;
}
.svc-top { display: flex; align-items: center; gap: .75rem; margin-bottom: .85rem; }
.svc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e09a00; flex-shrink: 0;
  box-shadow: 0 0 10px rgba(224,154,0,.5);
}
.svc-top h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: #fff;
}
.svc-body {
  font-size: .83rem; color: #6a7485; line-height: 1.75;
  padding-left: 1.25rem; border-left: 1px solid #1e2433;
}
.svc-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 1rem; margin-left: 1.25rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #e09a00; opacity: 0; transform: translateX(-5px); transition: .25s;
}
.svc-card:hover .svc-link { opacity: 1; transform: none; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5rem; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-inner {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
  background: #111318;
}
.about-img-inner img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(18%) brightness(.88); transition: transform .7s ease; }
.about-img-wrap:hover .about-img-inner img { transform: scale(1.04); }
.about-img-inner::before {
  content: ''; position: absolute;
  top: -8px; left: -8px; right: 8px; bottom: 8px;
  border: 1.5px solid rgba(224,154,0,.22); z-index: 1; pointer-events: none;
}
.about-badge {
  position: absolute; bottom: -1rem; right: -1rem;
  background: #e09a00; padding: 1.25rem 1.5rem; text-align: center; min-width: 105px; z-index: 2;
}
.about-badge strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem; font-weight: 900; color: #000; display: block; line-height: 1;
}
.about-badge span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .55rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(0,0,0,.55);
}
.about-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 800; text-transform: uppercase;
  color: #fff; line-height: 1.05; margin-bottom: 1.1rem; margin-top: .25rem;
}
.about-text p { font-size: .85rem; color: #6a7485; line-height: 1.8; margin-bottom: .85rem; }
.about-checks { display: flex; flex-direction: column; gap: .5rem; margin: 1.25rem 0 1.75rem; }
.about-checks li { display: flex; align-items: center; gap: .65rem; font-size: .83rem; color: #c8cfd9; }
.about-checks li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #e09a00; flex-shrink: 0; box-shadow: 0 0 7px rgba(224,154,0,.55);
}

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-left h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem,3.5vw,2.6rem); font-weight: 800; text-transform: uppercase;
  color: #fff; margin-bottom: .4rem; margin-top: .25rem;
}
.contact-left > p { font-size: .83rem; color: #6a7485; line-height: 1.75; margin-bottom: 1.75rem; }
.ci-list { display: flex; flex-direction: column; gap: 1rem; }
.ci-item { display: flex; align-items: flex-start; gap: .75rem; }
.ci-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1px solid #1e2433;
  display: flex; align-items: center; justify-content: center;
}
.ci-icon svg { width: 15px; height: 15px; stroke: #e09a00; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ci-label { font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #5a6275; margin-bottom: 1px; display: block; }
.ci-value { font-size: .85rem; color: #c8cfd9; }
.ci-value a:hover { color: #e09a00; }
.ci-small { font-size: .78rem; color: #5a6275; }

.contact-panel {
  background: #0f1218; border: 1px solid #1e2433;
  padding: 2.25rem 2rem; position: relative; overflow: hidden;
}
.contact-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 38px 38px;
}
.contact-panel > * { position: relative; z-index: 1; }
.cp-tag {
  display: inline-block;
  font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: #25d366; border: 1px solid rgba(37,211,102,.28);
  padding: 3px 9px; border-radius: 2px; margin-bottom: .85rem;
}
.contact-panel h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem; font-weight: 800; text-transform: uppercase; color: #fff; margin-bottom: .5rem;
}
.contact-panel > p { font-size: .82rem; color: #6a7485; line-height: 1.7; margin-bottom: 1.5rem; }
.cp-btns { display: flex; flex-direction: column; gap: .65rem; }
.cp-btns .btn-wa,
.cp-btns .btn-tel { width: 100%; justify-content: center; padding: 13px 20px; font-size: .88rem; }
.cp-sep {
  display: flex; align-items: center; gap: .65rem;
  font-size: .62rem; color: #3a4255; letter-spacing: .12em; text-transform: uppercase;
}
.cp-sep::before, .cp-sep::after { content: ''; flex: 1; height: 1px; background: #1e2433; }

/* ── FOOTER ── */
.site-footer { background: #07080d; border-top: 1px solid #1a1e2a; }
.footer-inner {
  max-width: 1160px; margin: 0 auto; padding: 1.75rem 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
}
.footer-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.footer-copy { font-size: .72rem; color: #3a4255; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: .72rem; color: #3a4255; transition: color .2s; cursor: pointer; }
.footer-links a:hover { color: #7a8499; }

/* ── REVEAL ── */
.r { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.r.on { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 4rem; }
  .about-badge { right: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
}
@media (max-width: 768px) {
  .hdr-nav, .hdr-tel { display: none; }
  .mob-btn { display: flex; }
  .hero { padding: 110px 0 60px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-wa,
  .hero-cta .btn-tel { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.75rem; flex-wrap: wrap; }
  .sec { padding: 64px 0; }
}
@media (max-width: 480px) {
  .hero-stats { display: none; }
  .hdr-wa span { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
