/* AutoDriver Trieste — NCC Luciano Desco */

:root {
  --ink: #0f1720;
  --ink-2: #1b2632;
  --text: #24303c;
  --muted: #5d6b78;
  --line: #e3e7eb;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --accent: #b8925a;
  --accent-dark: #8f6d3d;
  --sea: #1f4e6e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 32, .08);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--sea); }
a:hover { color: var(--accent-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 10px; top: 10px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 23, 32, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}

.brand { display: flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1.15; }
.brand:hover { color: #fff; }
.brand strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .01em; }
.brand strong span { color: var(--accent); }
.brand small { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #aeb8c2; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: #dbe2e8; text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none; border: 0; color: #fff; padding: 10px; margin-right: -10px; cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 20px 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a:hover, .nav a[aria-current="page"] { background: none; color: var(--accent); }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.nav .btn { padding: 9px 18px; font-size: .92rem; }
.nav .btn:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  position: relative; color: #fff; background: var(--ink);
  min-height: min(88vh, 760px);
  display: flex; align-items: flex-end;
}
.hero-media { position: absolute; inset: 0; margin: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,23,32,.35) 0%, rgba(15,23,32,.15) 35%, rgba(15,23,32,.88) 100%),
    linear-gradient(90deg, rgba(15,23,32,.55) 0%, rgba(15,23,32,0) 65%);
}
.hero .wrap { position: relative; padding-top: 120px; padding-bottom: 72px; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .35em; }
.hero p.lead { font-size: 1.2rem; max-width: 40ch; color: #e6ebef; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Su mobile la foto resta nelle sue proporzioni (niente ingrandimento) e il testo va sotto */
@media (max-width: 700px) {
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; aspect-ratio: 16 / 10; }
  .hero-media img { object-position: center; }
  .hero-media::after { background: linear-gradient(180deg, rgba(15,23,32,0) 55%, var(--ink) 100%); }
  .hero .wrap { padding-top: 8px; padding-bottom: 48px; }
}

/* ---------- Highlights strip ---------- */

.highlights { background: var(--ink); color: #dbe2e8; }
.highlights ul {
  list-style: none; margin: 0; padding: 22px 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.highlights li { display: flex; gap: 14px; align-items: flex-start; font-size: .97rem; line-height: 1.45; }
.highlights strong { color: #fff; display: block; }
.highlights svg { width: 28px; height: 28px; color: var(--accent); flex: none; margin-top: 2px; }
@media (max-width: 820px) { .highlights ul { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } .section { padding: 64px 0; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
}
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(184,146,90,.12); color: var(--accent-dark); margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; }

/* Fleet */
.vehicle { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.vehicle img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.vehicle .body { padding: 26px 28px 30px; }
.vehicle .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line);
}

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li {
  position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.destinations { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.destinations span {
  padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; color: var(--ink-2);
}

.panel {
  background: var(--ink); color: #dbe2e8; border-radius: 20px; padding: 40px;
  position: relative; overflow: hidden;
}
.panel h2, .panel h3 { color: #fff; }
.panel .checklist li { border-color: rgba(255,255,255,.1); }

/* Offers */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }
.offer {
  border-radius: var(--radius); padding: 30px; color: #fff;
  background: linear-gradient(135deg, var(--sea), #163a52);
}
.offer.gold { background: linear-gradient(135deg, #a7834f, #7d5f33); }
.offer h3 { color: #fff; margin-bottom: .3em; }
.offer p { margin: 0; color: rgba(255,255,255,.88); }

/* ---------- Contact / booking ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent-dark); flex: none; margin-top: 4px; }
.contact-list .label { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-list a { font-weight: 600; font-size: 1.08rem; text-decoration: none; color: var(--ink); }
.contact-list a:hover { color: var(--accent-dark); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.form label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1px solid #cfd6dd; border-radius: 10px; background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184,146,90,.22);
}
.form .hint { font-size: .85rem; color: var(--muted); margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Page header (inner pages) ---------- */

.page-hero {
  background:
    linear-gradient(90deg, rgba(15,23,32,.95), rgba(15,23,32,.75)),
    url("../img/mercedes-s-1200.webp") center / cover;
  color: #fff; padding: 72px 0 60px;
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #c9d2da; margin: 12px 0 0; max-width: 56ch; font-size: 1.1rem; }

.prose { max-width: 720px; }
.prose p { font-size: 1.08rem; }

/* Tariffe */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.price { font-weight: 700; color: var(--accent-dark); white-space: nowrap; }

/* Su mobile ogni riga diventa una scheda: niente scorrimento orizzontale */
@media (max-width: 600px) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { display: block; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border: 0; text-align: right; }
  td::before {
    content: attr(data-label); flex: none; text-align: left;
    font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-top: 3px;
  }
}

.notes { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.notes li {
  background: var(--bg-soft); border-left: 4px solid var(--accent);
  padding: 14px 18px; border-radius: 0 10px 10px 0;
}

/* Credentials */
.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
@media (max-width: 700px) { .creds { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */

.cta-band { background: var(--accent); color: #fff; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 44px; padding-bottom: 44px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-band p { margin: 6px 0 0; color: rgba(255,255,255,.9); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-ghost:hover { color: var(--accent-dark); }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #9fabb6; font-size: .95rem; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h3 { color: #fff; font-family: var(--font); font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.site-footer a { color: #dbe2e8; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}
.footer-bottom a { color: #9fabb6; text-decoration: underline; }

/* Floating call button (mobile) */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: #fff; display: none; place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.fab svg { width: 26px; height: 26px; }
@media (max-width: 820px) { .fab { display: grid; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
