/* ============================================================
   GTL Auto — Corbetta (MI)
   ============================================================ */

:root{
  --bg: #0e1013;
  --surface: #16191e;
  --surface-2: #1d2129;
  --line: rgba(255,255,255,0.09);
  --text: #f2f3f5;
  --muted: #9aa3af;
  --muted-2: #6b7280;
  --accent: #d3312f;      /* rosso logo GTL Auto */
  --accent-dark: #9e2220;
  --accent-2: #d63a26;    /* rosso-vermiglio per CTA/dettagli, leggermente diverso dal rosso del logo */
  --accent-2-dark: #a52a1c;
  --radius: 14px;
  --maxw: 1180px;
  color-scheme: dark;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,h2,h3,h4{
  font-family: "Oswald", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
  color: #fff;
}

h1{ font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 700; }
h2{ font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 600; }
h3{ font-size: 1.25rem; font-weight: 600; }

p{ margin: 0 0 1em; color: var(--muted); max-width: 62ch; }
a{ color: inherit; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 24px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  font-family:"Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: .9em;
}
.eyebrow::before{
  content:"";
  width: 28px; height: 2px;
  background: var(--accent-2);
  display:inline-block;
}

section{ padding-block: clamp(56px, 9vw, 108px); }
.section-head{ max-width: 640px; margin-bottom: 42px; }
.section-head.center{ margin-inline:auto; text-align:center; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55em;
  padding: 15px 26px;
  border-radius: 999px;
  font-family:"Oswald", sans-serif;
  font-weight: 600;
  font-size: .98rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration:none;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: linear-gradient(180deg, var(--accent-2), var(--accent-2-dark));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(214,58,38,.55);
}
.btn-primary:hover{ box-shadow: 0 14px 30px -10px rgba(214,58,38,.7); }
.btn-outline{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.btn-outline:hover{ border-color:#fff; background: rgba(255,255,255,.08); }
.btn-ghost{
  background: transparent;
  color: var(--text);
  padding: 10px 4px;
}
.btn svg{ width: 18px; height:18px; flex:none; }

/* ---------- Header ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(14,16,19,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap: 20px; padding-block: 12px;
}
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand img{ height: 46px; width:auto; border-radius: 6px; }
.brand-word{ font-family:"Oswald",sans-serif; font-weight:700; font-size:1.28rem; letter-spacing:.02em; color:#fff; line-height:1; }
.brand-word span{ display:block; font-family:"Inter",sans-serif; font-size:.62rem; font-weight:500; letter-spacing:.22em; color: var(--accent-2); text-transform:uppercase; margin-top:3px; }

.main-nav{ display:flex; align-items:center; gap: 30px; }
.main-nav a{
  text-decoration:none; color: var(--muted); font-size:.94rem; font-weight:500;
  transition: color .15s ease;
}
.main-nav a:hover{ color:#fff; }

.header-cta{ display:flex; align-items:center; gap: 14px; }
.phone-pill{
  display:flex; align-items:center; gap:.5em;
  color: var(--accent-2); text-decoration:none;
  font-family:"Oswald",sans-serif; font-weight:600; letter-spacing:.02em;
}
.phone-pill svg{ width:18px; height:18px; }

.nav-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius:8px;
  width:42px; height:42px; color:#fff; cursor:pointer; flex:none;
}
.nav-toggle svg{ width:20px; height:20px; margin:auto; }

/* ---------- Hero ---------- */
.hero{
  position:relative; overflow:hidden;
  padding-block: clamp(90px, 16vw, 160px) clamp(60px, 10vw, 100px);
  border-bottom: 1px solid var(--line);
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(10,11,13,.55) 0%, rgba(10,11,13,.72) 55%, var(--bg) 100%),
    radial-gradient(80% 60% at 15% 0%, rgba(211,49,47,.28), transparent 60%),
    var(--hero-img, url("../img/piazzale-1.jpg")) center 38% / cover no-repeat;
  z-index:0;
}
.hero .container{ position:relative; z-index:1; }
.hero-content{ max-width: 700px; }
.hero-content h1{ margin-bottom:.3em; }
.hero-content h1 em{
  font-style:normal; color: var(--accent-2);
}
.hero-lead{ font-size:1.12rem; color:#dfe2e6; max-width:56ch; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top: 30px; }

.hero-stats{
  margin-top: 56px;
  display:grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
}
.hero-stats div{
  background: rgba(15,17,21,.72);
  padding: 18px 16px;
  text-align:center;
}
.hero-stats strong{
  display:block; font-family:"Oswald",sans-serif; font-size:1.7rem; color:#fff; font-weight:700;
}
.hero-stats span{ font-size:.78rem; color: var(--muted); text-transform:uppercase; letter-spacing:.05em; }

/* ---------- Auto card / listing CTA ---------- */
.listing-band{
  background: linear-gradient(120deg, var(--accent-dark), var(--accent) 60%, var(--accent-2-dark));
  border-radius: var(--radius);
  padding: clamp(26px,4vw,40px);
  display:flex; align-items:center; justify-content:space-between; gap: 24px; flex-wrap:wrap;
  margin-top: -1px;
}
.listing-band h3{ margin:0 0 .3em; color:#fff; }
.listing-band p{ margin:0; color: rgba(255,255,255,.85); max-width:48ch; }
.listing-band .btn-outline{ border-color: rgba(255,255,255,.65); background: rgba(0,0,0,.12); }
.listing-band .btn-outline:hover{ background: rgba(0,0,0,.22); border-color:#fff; }

/* ---------- About ---------- */
.about{ border-bottom: 1px solid var(--line); }
.about-grid{
  display:grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items:center;
}
.about-photos{
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 14px;
}
.about-photos img{
  width:100%; height:100%; object-fit:cover; border-radius: var(--radius);
  border: 1px solid var(--line);
}
.about-photos .tall{ grid-row: span 2; aspect-ratio: 3/4; }
.about-photos .wide{ aspect-ratio: 4/3; }
.about blockquote{
  margin: 26px 0 0; padding-left: 18px; border-left: 3px solid var(--accent-2);
  font-family:"Oswald",sans-serif; font-size:1.12rem; color:#fff; font-weight:500;
  font-style: normal; letter-spacing:.01em;
}
.about blockquote cite{ display:block; margin-top:10px; font-family:"Inter",sans-serif; font-size:.82rem; color: var(--muted); font-style:normal; }

/* ---------- Services ---------- */
.services{ background: var(--surface); border-bottom: 1px solid var(--line); }
.services-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card{
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display:flex; flex-direction:column; gap: 14px;
  transition: border-color .15s ease, transform .15s ease;
}
.service-card:hover{ border-color: rgba(214,58,38,.45); transform: translateY(-3px); }
.service-icon{
  width:48px; height:48px; border-radius:12px;
  background: rgba(214,58,38,.12);
  display:flex; align-items:center; justify-content:center;
  color: var(--accent-2);
}
.service-icon svg{ width:24px; height:24px; }
.service-card h3{ margin-bottom:0; }
.service-card p{ margin:0; font-size:.95rem; }
.service-card.featured{
  background: linear-gradient(160deg, rgba(211,49,47,.16), rgba(211,49,47,.03));
  border-color: rgba(211,49,47,.4);
}
.service-card .tag{
  align-self:flex-start;
  font-size:.7rem; text-transform:uppercase; letter-spacing:.1em;
  color: var(--accent-2); border:1px solid rgba(214,58,38,.4);
  padding: 3px 10px; border-radius:999px; font-weight:600;
}

/* ---------- Gallery ---------- */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 12px;
}
.gallery-grid a{ position:relative; overflow:hidden; border-radius:10px; border:1px solid var(--line); display:block; }
.gallery-grid img{ width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.gallery-grid a:hover img{ transform: scale(1.06); }
.gallery-grid a::after{
  content: attr(data-caption);
  position:absolute; left:0; right:0; bottom:0;
  padding: 10px 12px 8px;
  font-size:.76rem; color:#fff;
  background: linear-gradient(0deg, rgba(0,0,0,.72), transparent);
  opacity:0; transition: opacity .2s ease;
}
.gallery-grid a:hover::after{ opacity:1; }
.gallery-grid .g-wide{ grid-column: span 2; }
.gallery-grid .g-tall{ grid-row: span 2; }

/* ---------- Passion strip ---------- */
.passion{
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.passion-grid{
  display:grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items:center;
}
.passion-imgs{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.passion-imgs img{ border-radius: var(--radius); border:1px solid var(--line); aspect-ratio: 4/5; object-fit:cover; }

/* ---------- Location ---------- */
.location-grid{
  display:grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items:stretch;
}
.info-card{
  background: var(--surface-2); border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display:flex; flex-direction:column; gap:20px; justify-content:center;
}
.info-row{ display:flex; gap:14px; align-items:flex-start; }
.info-row .ic{
  width:40px; height:40px; border-radius:10px; background: rgba(214,58,38,.12); color: var(--accent-2);
  display:flex; align-items:center; justify-content:center; flex:none;
}
.info-row .ic svg{ width:20px; height:20px; }
.info-row h4{ margin:0 0 2px; font-family:"Inter",sans-serif; text-transform:none; letter-spacing:0; font-size:1rem; color:#fff; font-weight:600; }
.info-row p{ margin:0; font-size:.94rem; }
.info-row a.plain{ color: var(--text); text-decoration:none; }
.info-row a.plain:hover{ color: var(--accent-2); }
.map-frame{
  border-radius: var(--radius); overflow:hidden; border:1px solid var(--line); min-height: 320px;
}
.map-frame iframe{ width:100%; height:100%; min-height:320px; border:0; filter: grayscale(.25) contrast(1.05); }

/* ---------- CTA band ---------- */
.cta-band{
  background: radial-gradient(120% 140% at 50% -20%, rgba(211,49,47,.35), rgba(14,16,19,0) 60%), var(--surface);
  text-align:center;
  border-top: 1px solid var(--line);
}
.cta-band .container{ max-width: 760px; }
.cta-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-top:26px; }

/* ---------- Footer ---------- */
footer{ background: #0a0b0d; border-top:1px solid var(--line); padding-block: 48px 26px; }
.footer-grid{
  display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 34px;
}
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom: 14px; text-decoration:none; }
.footer-brand img{ height:40px; border-radius:6px; }
.footer-brand span{ font-family:"Oswald",sans-serif; font-weight:700; color:#fff; font-size:1.1rem; }
footer h5{
  font-family:"Oswald",sans-serif; text-transform:uppercase; letter-spacing:.1em; font-size:.82rem;
  color: var(--muted); margin: 0 0 14px;
}
footer ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
footer a{ color: var(--muted); text-decoration:none; font-size:.92rem; }
footer a:hover{ color:#fff; }
.footer-bottom{
  border-top:1px solid var(--line); padding-top: 22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  font-size:.82rem; color: var(--muted-2);
}
.footer-bottom a{ color: var(--muted-2); }
.footer-bottom a:hover{ color: var(--muted); }

/* ---------- Legal pages ---------- */
.legal{ padding-block: 70px 100px; }
.legal .container{ max-width: 820px; }
.legal h2{ margin-top: 1.6em; }
.legal h2:first-of-type{ margin-top:0; }
.legal p, .legal li{ color: var(--muted); max-width: none; }
.legal ul{ padding-left: 1.2em; }
.legal .updated{ color: var(--muted-2); font-size:.86rem; margin-bottom: 2.4em; }
.back-link{ display:inline-flex; align-items:center; gap:.4em; color: var(--accent-2); text-decoration:none; font-weight:600; margin-bottom: 30px; }
.back-link:hover{ text-decoration:underline; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .main-nav{ display:none; }
  .nav-toggle{ display:block; }
  .header-cta .btn-outline{ display:none; }
  .about-grid, .passion-grid, .location-grid{ grid-template-columns: 1fr; }
  .passion-grid{ order: 1; }
  .passion .passion-imgs{ order:2; }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .hero-stats{ grid-template-columns: repeat(2,1fr); }
  .gallery-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows: 160px; }
  .gallery-grid .g-wide{ grid-column: span 2; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px){
  .services-grid{ grid-template-columns: 1fr; }
  .listing-band{ flex-direction:column; align-items:flex-start; text-align:left; }
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom{ flex-direction:column; }
}

/* Mobile nav drawer */
#mobile-nav{
  position: fixed; inset:0; z-index: 60;
  background: #0a0b0d;
  display:flex; flex-direction:column;
  padding: 22px 24px;
  transform: translateY(-100%);
  transition: transform .25s ease;
}
#mobile-nav.open{ transform: translateY(0); }
#mobile-nav .top{ display:flex; justify-content:space-between; align-items:center; margin-bottom: 30px; }
#mobile-nav a{
  font-family:"Oswald",sans-serif; text-transform:uppercase; letter-spacing:.03em;
  font-size:1.4rem; color:#fff; text-decoration:none; padding: 14px 0; border-bottom:1px solid var(--line);
}
#mobile-nav .actions{ margin-top:auto; display:flex; flex-direction:column; gap:12px; }

/* ---------- Lightbox ---------- */
.lightbox-overlay{
  position: fixed; inset:0; z-index: 200;
  background: rgba(6,7,9,.92);
  display:flex; align-items:center; justify-content:center;
  padding: 60px 24px;
  opacity:0; visibility:hidden;
  transition: opacity .2s ease;
}
.lightbox-overlay.open{ opacity:1; visibility:visible; }
.lightbox-overlay img{
  max-width: 100%; max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.7);
}
.lightbox-close{
  position: absolute; top: 18px; right: 24px;
  width:44px; height:44px; border-radius:999px;
  background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.25);
  color:#fff; font-size:1.4rem; line-height:1;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease;
}
.lightbox-close:hover{ background: var(--accent-2); border-color: var(--accent-2); }
@media (max-width: 620px){
  .lightbox-overlay{ padding: 70px 14px 24px; }
  .lightbox-close{ top: 12px; right: 12px; width:40px; height:40px; }
}
