/* Car page refinements: the arrow of "Scopri di più", the make in place of PREMIUM, larger share buttons in their
   platforms' colours, and the three tags on the specifications photo made easier to read. */

/* Scopri di più: an arrow pointing down, to the next part of the page. */
.detail-hero-more svg { width: 20px; height: 20px; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.detail-hero-more:hover svg { transform: translateY(3px); }

/* The make, set like the category it replaces (red rule, spaced capitals). */
.detail-category.is-make { font-size: 1rem; letter-spacing: .3em; color: #f1f1ee; }

/* Share: larger round buttons, each in its platform's colour; on hover the colour fills the button, softly. */
.car-dialog .detail-share { gap: 10px; }
.car-dialog .detail-share > a, .car-dialog .detail-share > button {
  --brand: #d8d8d4; --on: #111;
  width: 48px; height: 48px; border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent); border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.car-dialog .detail-share svg { width: 22px; height: 22px; }
.car-dialog .detail-share [data-share="whatsapp"] { --brand: #25D366; --on: #fff; }
.car-dialog .detail-share [data-share="telegram"] { --brand: #26A5E4; --on: #fff; }
.car-dialog .detail-share [data-share="facebook"] { --brand: #1877F2; --on: #fff; }
.car-dialog .detail-share [data-share="email"] { --brand: #e8e8e4; --on: #111; }
.car-dialog .detail-share [data-share="copy"] { --brand: #e8e8e4; --on: #111; }
.car-dialog .detail-share > a:hover, .car-dialog .detail-share > button:hover, .car-dialog .detail-share > a:focus-visible, .car-dialog .detail-share > button:focus-visible {
  background: var(--brand); border-color: var(--brand); color: var(--on); transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 38%, transparent); outline: none;
}
/* Name and share buttons side by side only when both fit: a long model name (REVUELTO, SL SPEEDSTER AMG) in the
   600 px column moves the buttons below the price instead of under the make. */
.car-dialog .detail-info-head { flex-wrap: wrap; row-gap: 4px; }
.car-dialog .detail-info-head > div:first-child { flex: 1 1 auto; min-width: min-content; }
.car-dialog .detail-info-head > .detail-share { margin-bottom: 24px; }
@media (max-width: 700px) {
  .car-dialog .detail-share { gap: 12px; margin-left: 0; }
  .car-dialog .detail-share > a, .car-dialog .detail-share > button { width: 50px; height: 50px; }
}

/* The three tags on the specifications photo: bold, larger, on a darker and more contrasted ground. */
.showcase-tag {
  min-height: 46px; padding: 0 20px;
  border: 1px solid rgb(255 255 255 / 55%); border-left: 3px solid #e32630;
  background: rgb(12 12 12 / 82%); color: #fff;
  font-size: .8125rem; font-weight: 700; letter-spacing: .16em;
  box-shadow: 0 10px 28px rgb(0 0 0 / 45%);
}
.showcase-tag:hover { border-color: rgb(255 255 255 / 80%); border-left-color: #ff3b45; }
.showcase-tags .car-feature-mark path { stroke-opacity: .75; stroke-width: 1.4; }
.showcase-tags .car-feature-halo { fill: rgb(12 12 12 / 50%); stroke: rgb(255 255 255 / 85%); stroke-width: 1.4; }
.showcase-tags .car-feature-dot { stroke-width: 1.6; }
@media (max-width: 700px) {
  /* Phones: smaller tags and dots, so every tag stays on screen; a long tag goes on two lines instead of out of it. */
  .showcase-tag { width: max-content; max-width: 42vw; min-height: 24px; padding: 4px 8px; font-size: .5625rem; line-height: 1.25; letter-spacing: .08em; white-space: normal; border-left-width: 2px; }
  .showcase-tags .car-feature-halo { r: 6.5px; }
  .showcase-tags .car-feature-dot { r: 2.4px; }
}
@media (prefers-reduced-motion: reduce) {
  .car-dialog .detail-share > a, .car-dialog .detail-share > button, .detail-hero-more svg { transition: none; }
}

/* End of the car page: a short invitation and the two ways to get in touch. */
.detail-request { flex-direction: column; align-items: center; text-align: center; gap: 0; }
.detail-request-title { margin: 0 0 12px; font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 500; letter-spacing: .04em; line-height: 1.05; text-transform: uppercase; color: #f6f6f3; }
.detail-request-text { max-width: 560px; margin: 0 0 28px; font-size: 1rem; line-height: 1.7; color: var(--text-secondary); }
.detail-request-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.detail-request .detail-request-actions .button { width: auto; min-width: 230px; min-height: 56px; font-size: .9375rem; }
.detail-request .detail-request-actions .button-red { background: #d9232e; border-color: #d9232e; color: #fff; }
.detail-request .detail-request-actions .button-red:hover { background: #ef2f3a; border-color: #ef2f3a; color: #fff; }
@media (max-width: 700px) {
  .detail-request-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .detail-request .detail-request-actions .button { width: 100%; min-width: 0; }
}

/* Richiedi informazioni: the car on top, larger fields, wrong fields marked, a clear thank-you. */
.request-dialog .info-eyebrow { color: var(--text-secondary); }
.request-dialog .form-grid { gap: 24px 30px; }
.request-dialog .form-grid label { font-size: .75rem; letter-spacing: .14em; }
.request-dialog .form-grid input, .request-dialog .form-grid textarea { font-size: 1rem; padding: 11px 0; }
.request-dialog .form-grid label.is-invalid > span { color: #ff7a80; }
.request-dialog .form-grid label.is-invalid input, .request-dialog .form-grid label.is-invalid textarea { border-bottom-color: #ff5a62; }
.request-dialog .consent { font-size: .875rem; }
.request-dialog .consent.is-invalid { color: #ff9a9f; }
.request-dialog .request-submit .button { min-width: 210px; min-height: 54px; font-size: .9375rem; }
.request-dialog .form-status { font-size: .9375rem; }
.request-done { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 34px 10px 18px; text-align: center; }
.request-done[hidden] { display: none; }
.request-done-mark { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid #e32630; border-radius: 50%; color: #fff; }
.request-done-mark svg { width: 26px; height: 26px; }
.request-done p { max-width: 440px; margin: 0; line-height: 1.7; color: var(--text); }
@media (max-width: 700px) {
  .request-dialog .request-submit { flex-direction: column; align-items: stretch; gap: 14px; }
  .request-dialog .request-submit .button { width: 100%; min-width: 0; }
  .request-dialog .request-submit .form-status { min-width: 0; }
}

/* Car published without photos: the photo-shoot note and "Ti interessa questa vettura?" read as two separate parts,
   with more air and a quiet hairline (a short red accent in the middle) between them. */
.detail-photo-shoot { padding-bottom: clamp(56px, 7vw, 96px); }
.detail-request.is-pending { position: relative; margin-top: clamp(16px, 2vw, 28px); padding-top: clamp(64px, 8vw, 110px); }
.detail-request.is-pending::before {
  content: ''; position: absolute; top: 0; left: 50%; width: min(560px, calc(100% - 40px)); height: 1px; transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent calc(50% - 16px), #e32630 calc(50% - 16px), #e32630 calc(50% + 16px), transparent calc(50% + 16px)),
    linear-gradient(90deg, transparent, rgb(255 255 255 / 18%) 25%, rgb(255 255 255 / 18%) 75%, transparent);
}
@media (max-width: 700px) {
  .detail-photo-shoot { padding-bottom: 52px; }
  .detail-request.is-pending { margin-top: 8px; padding-top: 60px; }
}

/* "Pallini sulla foto": the lines from the dots to the labels are easier to see, also on light cars and floors
   (full white, thicker, with a soft dark edge). */
.showcase-tags .car-feature-mark path { stroke: #fff; stroke-opacity: 1; stroke-width: 2; filter: drop-shadow(0 0 1.5px rgb(0 0 0 / 85%)) drop-shadow(0 1px 3px rgb(0 0 0 / 45%)); }
.showcase-tags .car-feature-mark.is-active path { stroke-width: 2.4; }
