﻿/* ——— Why us ——— */
.dc-why {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 800px) {
  .dc-why {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .dc-why {
    grid-template-columns: repeat(4, 1fr);
  }
}
.dc-why__item {
  padding: 1.1rem 1.15rem;
  background: linear-gradient(160deg, var(--dc-surface) 0%, var(--dc-bg-elev) 100%);
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius);
  text-align: left;
}
.dc-why__item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dc-gold);
  margin-bottom: 0.45rem;
}
.dc-why__item p {
  color: var(--dc-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.dc-why__item .dc-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
}

/* Homepage #perche-noi: card layout (CMS via section_perche.items + home.js) */
#perche-noi .dc-why--site-cards.dc-why {
  gap: clamp(1rem, 2.2vw, 1.35rem);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(0.75rem, 3vw, 1.25rem);
}
@media (min-width: 800px) {
  #perche-noi .dc-why--site-cards.dc-why {
    gap: 1.15rem 1.25rem;
  }
}
#perche-noi .dc-why--site-cards .dc-why__item {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 16px 44px -32px rgba(0, 0, 0, 0.92);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  #perche-noi .dc-why--site-cards .dc-why__item:hover {
    transform: translateY(-3px);
    border-color: var(--dc-line-strong);
    box-shadow: 0 26px 56px -28px rgba(0, 0, 0, 0.95);
  }
}
@media (prefers-reduced-motion: reduce) {
  #perche-noi .dc-why--site-cards .dc-why__item {
    transition: none;
  }
  @media (hover: hover) and (pointer: fine) {
    #perche-noi .dc-why--site-cards .dc-why__item:hover {
      transform: none;
    }
  }
}
#perche-noi .dc-why--site-cards .dc-why__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  padding: 0.75rem 1rem 0.65rem;
  border-bottom: 1px solid var(--dc-line);
  background:
    radial-gradient(ellipse 120% 90% at 22% 0%, rgba(201, 162, 39, 0.2) 0%, transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(12, 16, 24, 0.72) 100%);
}
#perche-noi .dc-why--site-cards .dc-why__visual--2 {
  background:
    radial-gradient(ellipse 120% 90% at 82% 0%, rgba(120, 170, 220, 0.2) 0%, transparent 50%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(12, 16, 24, 0.72) 100%);
}
#perche-noi .dc-why--site-cards .dc-why__visual--3 {
  background:
    radial-gradient(ellipse 110% 100% at 50% 0%, rgba(201, 162, 39, 0.14) 0%, transparent 52%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(12, 16, 24, 0.72) 100%);
}
#perche-noi .dc-why--site-cards .dc-why__visual--4 {
  background:
    radial-gradient(ellipse 120% 90% at 75% 12%, rgba(190, 140, 200, 0.16) 0%, transparent 52%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(12, 16, 24, 0.72) 100%);
}
#perche-noi .dc-why--site-cards .dc-why__icon--site {
  width: 2.15rem;
  height: 2.15rem;
  color: var(--dc-gold);
  opacity: 0.92;
}
#perche-noi .dc-why--site-cards .dc-why__copy {
  padding: 1rem 1.15rem 1.25rem;
  flex: 1;
  min-width: 0;
}
#perche-noi .dc-why--site-cards .dc-why__copy .dc-num {
  margin-bottom: 0.45rem;
}
#perche-noi .dc-why--site-cards .dc-why__copy h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
#perche-noi .dc-why--site-cards .dc-why__copy p {
  margin: 0;
}

.dc-cta-ghost {
  margin-top: 1.5rem;
  text-align: center;
}
.dc-cta-ghost a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--dc-gold);
  font-weight: 600;
  text-decoration: none;
}
.dc-cta-ghost a:hover {
  text-decoration: underline;
}

.dc-illus {
  text-align: center;
  color: var(--dc-muted);
  font-size: 0.8rem;
  max-width: 50rem;
  margin: 1rem auto 0;
  line-height: 1.55;
}
.dc-illus strong {
  color: var(--dc-text);
  font-weight: 600;
}

.dc-cta-banner {
  width: 100%;
  max-width: none;
  margin: 0 0 2.5rem;
  padding: 0 1.5rem;
  padding-left: var(--dc-gutter);
  padding-right: var(--dc-gutter-r);
}
.dc-cta-banner__inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--dc-radius-lg);
  background: var(--dc-surface);
  border: 1px solid var(--dc-line);
  padding: 1.5rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
  box-shadow: var(--dc-shadow);
  min-width: 0;
}
@media (min-width: 900px) {
  .dc-cta-banner__inner {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 2.25rem 2rem;
  }
}
.dc-cta-banner__glow {
  position: absolute;
  width: 50%;
  max-width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(201, 162, 40, 0.2) 0%, transparent 70%);
  right: 0;
  top: 50%;
  transform: translate(20%, -50%);
  pointer-events: none;
}
.dc-cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin-bottom: 0.4rem;
  overflow-wrap: anywhere;
}
.dc-cta-banner p {
  color: var(--dc-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 34rem;
}
.dc-cta-banner__media {
  border-radius: var(--dc-radius);
  overflow: hidden;
  min-height: 200px;
  position: relative;
  z-index: 1;
}
.dc-cta-banner__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

.dc-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.dc-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ——— Footer ——— */
.dc-footer {
  margin-top: 2rem;
  padding: 2.75rem var(--dc-gutter-r) max(1.75rem, env(safe-area-inset-bottom, 0px)) var(--dc-gutter);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 55%, #e8edf4 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #475569;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.dc-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem 2.25rem;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
}
@media (min-width: 720px) {
  .dc-footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }
}
@media (min-width: 1000px) {
  .dc-footer__inner {
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  }
}
.dc-footer h4 {
  color: #0f172a;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.65rem;
  font-weight: 700;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}
.dc-footer a {
  color: #1e3a5f;
  text-decoration: none;
  font-weight: 600;
}
.dc-footer a:hover {
  color: var(--dc-gold-dim);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.dc-footer__hours p {
  margin: 0.2rem 0;
}
.dc-footer__form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.dc-footer__form input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-size: 0.8125rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dc-footer__form input::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.dc-footer__hint {
  font-size: 0.7rem;
  color: #64748b;
  margin: 0;
}
.dc-footer__bottom {
  max-width: 1200px;
  margin: 2.25rem auto 0;
  padding: 1.1rem 0.25rem 1.15rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 0.6875rem;
  color: #64748b;
  line-height: 1.35;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.22) transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
}
.dc-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.35rem;
  max-width: 100%;
}
@supports selector(::-webkit-scrollbar) {
  .dc-footer__bottom::-webkit-scrollbar {
    height: 5px;
  }
  .dc-footer__bottom::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
  }
}
.dc-footer__bottom-note {
  flex: 0 1 auto;
  min-width: 0;
}
.dc-footer__bottom .dc-footer__legal-line {
  margin: 0;
  white-space: nowrap;
  text-align: center;
}
.dc-footer__bottom .dc-footer__credits {
  margin: 0.15rem 0 0;
  padding-top: 0.55rem;
  width: 100%;
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.dc-footer__bottom .dc-footer__credits a {
  color: #475569;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.dc-footer__bottom .dc-footer__credits a:hover {
  color: var(--dc-gold);
}
.dc-footer__bottom .dc-footer__sep {
  color: #94a3b8;
}
.dc-footer__bottom .dc-legal-links {
  flex: 0 1 auto;
  white-space: nowrap;
}
.dc-footer__bottom .dc-legal-links::before {
  content: " · ";
  color: #94a3b8;
}
@media (min-width: 640px) {
  .dc-footer__bottom-inner {
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
  .dc-footer__bottom-note {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .dc-footer__bottom .dc-footer__legal-line br {
    display: none;
  }
}
@media (max-width: 639px) {
  .dc-footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
  }
  .dc-footer__bottom .dc-footer__legal-line,
  .dc-footer__bottom .dc-footer__credits,
  .dc-footer__bottom .dc-legal-links {
    text-align: center;
    white-space: normal;
  }
  .dc-footer__bottom .dc-legal-links::before {
    display: none;
  }
  .dc-footer__bottom .dc-footer__credits {
    white-space: normal;
  }
}
.dc-footer__bottom .iv {
  color: #334155;
  font-style: normal;
  font-weight: 600;
}
.dc-footer__bottom .dc-footer__tm-disclaimer {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-weight: 400;
}
.dc-footer p.f-legal {
  margin: 0;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.22) transparent;
  text-align: center;
  color: #64748b;
  font-size: 0.6875rem;
  line-height: 1.35;
}
@supports selector(::-webkit-scrollbar) {
  .dc-footer p.f-legal::-webkit-scrollbar {
    height: 5px;
  }
  .dc-footer p.f-legal::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
  }
}
.dc-footer p.f-legal .dc-footer__tm-disclaimer--veh {
  display: inline;
  margin: 0;
  font-weight: 400;
}

/* Scheda veicolo: testo legale lungo, niente striscia orizzontale forzata su mobile */
.dc-footer--veh p.f-legal {
  white-space: normal;
  overflow-x: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  text-align: left;
  scrollbar-width: auto;
}

