/* ====== Stili generali ====== */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f5f5f5;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Accessibilità: link per saltare al contenuto */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: #000;
  color: #fff;
  z-index: 999;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* ====== Layout ====== */

header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
}

/* wrapper principale */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* ====== Hero ====== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
}

.hero h1 {
  font-size: 2.1rem;
  margin-top: 0;
}

.hero p.lead {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  background: #ebf5ff;
  color: #1453a3;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* ====== Pulsanti ====== */

.btn {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-primary {
  background: #1b74e4;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1252a1;
}

.btn-outline {
  background: transparent;
  color: #1b74e4;
  border: 1px solid #1b74e4;
}

.btn-outline:hover {
  background: #e9f1ff;
}

/* ====== Sezioni ====== */

.section-heading {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}

/* griglie carte generiche */

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

/* listine */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  font-size: 0.75rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: #f0f2f5;
}

/* ====== FAQ ====== */

.faq-item {
  margin-bottom: 0.75rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

/* ====== Portfolio Van ====== */

.van-card img {
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

.van-meta {
  font-size: 0.85rem;
  color: #555;
}

/* ====== Form ====== */

form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid #cfd3dd;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* ====== Footer ====== */

footer {
  background: #111827;
  color: #d1d5db;
  padding: 1.5rem 1rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ====== Pagina dettaglio van ====== */

.van-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.van-detail-header h1 {
  margin-top: 0;
}

.van-meta-grid {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.van-meta-grid strong {
  display: inline-block;
  min-width: 130px;
}

/* Barra di ricerca interna alla pagina */

.van-search-bar {
  margin: 1.5rem 0 0.75rem;
}

.van-search-bar label {
  display: block;
  margin-bottom: 0.25rem;
}

.van-search-input {
  max-width: 420px;
}

.van-search-input input[type="search"] {
  border-radius: 999px;
}

.van-search-hint {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Griglia specifiche */

.van-specs {
  margin-top: 1rem;
}

.spec-item {
  border-left: 3px solid #e5e7eb;
}

.spec-item h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.spec-item ul {
  padding-left: 1.2rem;
}

/* Slider immagini */

.van-slider {
  margin-bottom: 1rem;
}

.van-slider-main {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  background: #000;
}

.van-slider-main img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slider-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider-nav-prev {
  left: 0.75rem;
}

.slider-nav-next {
  right: 0.75rem;
}

.slider-counter {
  position: absolute;
  right: 0.75rem;
  bottom: 0.5rem;
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.7);
  color: #f9fafb;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

/* Video section */

.van-video {
  margin-top: 1.25rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  background: #000;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-note {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.35rem;
}

/* ====== Pagina viaggi (blog) ====== */

.post-card header {
  margin-bottom: 0.75rem;
}

.post-card h2 {
  margin: 0.15rem 0;
  font-size: 1.25rem;
}

.post-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.post-meta span + span::before {
  content: "•";
  margin: 0 0.35rem;
}

.post-cover {
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.post-tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0.5rem 0 0;
}

.post-tag {
  font-size: 0.75rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
}

/* ====== Responsive ====== */

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav ul {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .van-detail-header {
    grid-template-columns: 1fr;
  }

  .van-meta-grid strong {
    min-width: 110px;
  }
}
