/* Homepage sections: blurred detail photographs behind ULTIMI ARRIVI and MC EXPERIENCE, hairline dividers between
   the sections, larger type for the latest arrivals and larger PREMIUM / FOR COLLECTORS buttons.
   Both backgrounds are close-ups of the Lamborghini Revuelto in the collection (V12 engine cover; rear light), blurred,
   darkened and lightly grained once (about 15 KB each); the sections are as wide as the page container, so the photo
   runs edge to edge behind them and fades into the anthracite of the page above and below. */
main { overflow-x: clip; }
.arrivals, .experience { position: relative; isolation: isolate; }
.arrivals::before, .experience::before, .experience::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  pointer-events: none;
}
/* ULTIMI ARRIVI: a dark, quiet texture — the cars stay the brightest thing in the section. */
.arrivals::before {
  background:
    linear-gradient(180deg, var(--site-bg) 0%, rgb(var(--site-bg-rgb) / 0%) 20%, rgb(var(--site-bg-rgb) / 0%) 80%, var(--site-bg) 100%),
    linear-gradient(rgb(var(--site-bg-rgb) / 25%), rgb(var(--site-bg-rgb) / 25%)),
    url('assets/bg-arrivals.webp') center / cover no-repeat;
}
.arrival-photo { box-shadow: 0 20px 46px rgb(0 0 0 / 42%); }

/* MC EXPERIENCE: a red light out of focus, like a film still; long fades blend it with the sections around it. */
.experience::before { background: url('assets/bg-experience.webp') 70% center / cover no-repeat; }
.experience::after {
  background:
    linear-gradient(180deg, var(--site-bg) 0%, rgb(var(--site-bg-rgb) / 0%) 24%, rgb(var(--site-bg-rgb) / 0%) 72%, var(--site-bg) 100%),
    linear-gradient(90deg, rgb(var(--site-bg-rgb) / 55%) 0%, rgb(var(--site-bg-rgb) / 15%) 55%, rgb(var(--site-bg-rgb) / 35%) 100%);
}
/* The pages of the magazine let the background show: the photo fades out towards the text. */
.experience .magazine-page { background: none; }
.experience .magazine-photo::after { content: none; }
.experience .magazine-photo img {
  -webkit-mask-image: linear-gradient(90deg, #000 42%, rgb(0 0 0 / 65%) 66%, rgb(0 0 0 / 18%) 88%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 42%, rgb(0 0 0 / 65%) 66%, rgb(0 0 0 / 18%) 88%, transparent 100%);
}
.magazine-copy h3 a { color: inherit; text-decoration: none; }
.experience .experience-heading { margin-bottom: clamp(26px, 3vw, 42px); }
/* Still the largest section title of the homepage, without dominating the screen (section titles are about 4.5rem). */
.experience-title { margin: 0; font-size: clamp(3.6rem, 5.4vw, 5.4rem); font-weight: 500; line-height: .92; letter-spacing: .03em; color: #f6f6f3; }

/* ULTIMI ARRIVI: larger title, model and data. */
.arrivals-head h2 { font-size: clamp(2.9rem, 5vw, 4.4rem); line-height: 1; margin-bottom: 12px; }
.arrivals-lead { font-size: 1.0625rem; color: var(--text-secondary); }
.arrival-copy { padding-top: 20px; gap: 20px; }
.arrival-copy .car-brand { font-size: .8125rem; letter-spacing: .24em; margin-bottom: 6px; }
.arrival-copy h3 { font-size: 2.125rem; letter-spacing: .02em; }
.arrival-meta { margin-top: 8px; font-size: 1rem; color: var(--text-secondary); }
.arrival-price { font-size: 1.125rem; }

/* PREMIUM and FOR COLLECTORS: a little more air between the motto and the button; larger buttons. */
.showcase-copy > p.showcase-subtitle { margin-bottom: 40px; }
.showcase-copy .button { min-height: 62px; padding: 18px 40px; font-size: 1rem; letter-spacing: .03em; }

/* Hairline dividers between the sections: white at the centre fading to nothing at both ends, with a short red
   accent in the middle. */
.showcase + .showcase { margin-top: 0; }
#premium::before, .showcase-collectors::before, .showcase-collectors::after, .showcase-moto::after {
  content: '';
  position: absolute;
  z-index: 3;
  left: 50%;
  width: min(1180px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 18px), #e32630 calc(50% - 18px), #e32630 calc(50% + 18px), transparent calc(50% + 18px)),
    linear-gradient(90deg, transparent 0%, rgb(255 255 255 / 20%) 22%, rgb(255 255 255 / 26%) 50%, rgb(255 255 255 / 20%) 78%, transparent 100%);
}
#premium::before, .showcase-collectors::before { top: 0; }
.showcase-collectors::after, .showcase-moto::after { bottom: 0; }

@media (max-width: 700px) {
  .experience .magazine-photo img {
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, rgb(0 0 0 / 60%) 22%, #000 48%);
    mask-image: linear-gradient(0deg, transparent 0%, rgb(0 0 0 / 60%) 22%, #000 48%);
  }
  .experience::after { background: linear-gradient(180deg, var(--site-bg) 0%, rgb(var(--site-bg-rgb) / 20%) 18%, rgb(var(--site-bg-rgb) / 35%) 75%, var(--site-bg) 100%); }
  .experience-title { font-size: clamp(3.4rem, 15vw, 4.6rem); }
  .arrivals-head h2 { font-size: clamp(2.6rem, 12vw, 3.2rem); }
  .arrivals-lead { font-size: 1rem; }
  .arrival-copy h3 { font-size: 1.875rem; }
  .arrival-meta { font-size: .9375rem; }
  .arrival-price { font-size: 1.0625rem; }
  .showcase-copy > p.showcase-subtitle { margin-bottom: 30px; }
  .showcase-copy .button { min-height: 58px; padding: 16px 30px; font-size: .9688rem; }
  #premium::before, .showcase-collectors::before, .showcase-collectors::after, .showcase-moto::after { width: calc(100% - 40px); }
}

/* ===== Cover: title and caption a little higher; a lighter veil so cars and showroom read clearly, still dark
   enough behind the words. ===== */
.hero-content { padding-top: clamp(140px, 17vh, 196px); }
.hero-shade { background: linear-gradient(90deg, rgb(var(--site-bg-rgb) / 74%) 0%, rgb(var(--site-bg-rgb) / 46%) 30%, rgb(var(--site-bg-rgb) / 6%) 70%), linear-gradient(0deg, var(--site-bg) 0%, transparent 30%, rgb(var(--surface-deep-rgb) / 22%) 100%); }
@media (min-width: 1700px) { .hero-content { padding-top: 190px; } }
@media (max-width: 1000px) { .hero-content { padding-top: 140px; } }
@media (max-width: 700px) {
  .hero-content { padding-top: 132px; }
  .hero-shade { background: linear-gradient(90deg, rgb(var(--site-bg-rgb) / 66%), rgb(var(--site-bg-rgb) / 22%)), linear-gradient(0deg, var(--site-bg), transparent 45%, rgb(var(--surface-deep-rgb) / 25%)); }
}

/* ===== NEWSLETTER: the word itself as the large title. ===== */
.newsletter-title { margin: 0 0 18px; font-size: clamp(4rem, 8vw, 7.5rem); font-weight: 500; line-height: .92; letter-spacing: .03em; color: #f6f6f3; }
.footer-newsletter .footer-lead { max-width: 460px; }
/* Phones: NEWSLETTER is one long word, so it scales with the screen and always fits on one line (320px included). */
@media (max-width: 700px) { .newsletter-title { font-size: clamp(2.2rem, 12.5vw, 4.4rem); margin-bottom: 14px; } }

/* ===== VIENI A TROVARCI: Ottieni indicazioni and Richiedi informazioni side by side, same size. ===== */
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit-actions .button { min-width: 230px; }
@media (max-width: 700px) {
  .visit-info { align-items: stretch; }
  .visit-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .visit-actions .button { width: 100%; min-width: 0; }
}

/* ===== Footer without the logo: motto and colour logos on one line, the legal line below; on phones everything
   centred with even spacing. ===== */
.closing-brand { justify-content: space-between; padding-bottom: 0; border-bottom: 0; }
.footer-closing .container { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 26px 30px; }
.footer-closing .closing-brand { grid-column: 1; }
.footer-closing .social-links { grid-column: 2; padding: 0; gap: 10px; }
.footer-closing .footer-legal { grid-column: 1 / -1; padding-top: 26px; border-top: 1px solid var(--line); }
/* Social links: the same round buttons as the share buttons of the car page (public/car-page.css) — each in its
   platform's colour, filling with it on hover with a slight lift and glow. */
.footer-closing .social-links { gap: 10px; }
.footer-closing .social-links a {
  --brand: #d8d8d4; --on: #111;
  width: 48px; height: 48px; display: grid; place-items: center; 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;
}
.footer-closing .social-links svg { width: 22px; height: 22px; }
.footer-closing .social-links [data-social="instagram"] { --brand: #E4405F; --on: #fff; }
.footer-closing .social-links [data-social="facebook"] { --brand: #1877F2; --on: #fff; }
.footer-closing .social-links [data-social="linkedin"] { --brand: #0A66C2; --on: #fff; }
.footer-closing .social-links [data-social="youtube"] { --brand: #FF0000; --on: #fff; }
.footer-closing .social-links [data-social="tiktok"] { --brand: #e8e8e4; --on: #000; }
.footer-closing .social-links [data-social="telegram"] { --brand: #26A5E4; --on: #fff; }
.footer-closing .social-links [data-social="whatsapp"] { --brand: #25D366; --on: #fff; }
.footer-closing .social-links a:hover, .footer-closing .social-links a: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;
}
@media (prefers-reduced-motion: reduce) { .footer-closing .social-links a { transition: none; } }
@media (max-width: 700px) {
  .footer-closing .container { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
  .footer-closing .closing-brand, .footer-closing .social-links { grid-column: 1; }
  .closing-brand { align-items: center; }
  .closing-brand p { letter-spacing: .24em; }
  .footer-closing .social-links { justify-content: center; flex-wrap: wrap; gap: 6px; }
  .footer-closing .social-links a { width: 44px; height: 44px; }
  .footer-closing .footer-legal { flex-direction: column; align-items: center; gap: 14px; width: 100%; }
  .footer-closing .footer-legal > div { justify-content: center; gap: 10px 22px; }
}

/* ===== Menu without numbers: the submenu lines up with the entries. ===== */
.menu-sub > ul { padding-left: 0; }
@media (max-width: 700px) { .menu-sub > ul { padding-left: 0; } }

/* ===== VENDI LA TUA AUTO: the line under the title and a larger button. ===== */
.footer-sell .sell-lead { max-width: 440px; margin: 22px 0 0; font-size: 1.125rem; line-height: 1.65; letter-spacing: .01em; color: var(--text-secondary); }
.footer-sell .sell-cta { min-height: 74px; min-width: 320px; padding: 22px 52px; font-size: 1.1875rem; font-weight: 500; letter-spacing: .02em; box-shadow: 0 16px 40px rgb(227 38 48 / 22%); transition: background .25s, box-shadow .25s, transform .25s; }
.footer-sell .sell-cta:hover { box-shadow: 0 18px 46px rgb(227 38 48 / 34%); transform: translateY(-2px); }
@media (max-width: 700px) {
  .footer-sell .sell-lead { margin-top: 16px; font-size: 1.0625rem; }
  .footer-sell .request-actions { width: 100%; }
  .footer-sell .sell-cta { width: 100%; min-width: 0; min-height: 66px; padding: 20px 24px; font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) { .footer-sell .sell-cta:hover { transform: none; } }
/* VENDI LA TUA AUTO: on wide screens the button centred in its column and level with the text; above phone width the seat photo
   spans the whole section (same shade as before, fading only at the top and bottom). To revert: delete this block. */
@media (min-width: 1001px) {
  .footer-sell .footer-split { align-items: center; }
  .footer-sell .request-actions { justify-self: center; }
}
@media (min-width: 701px) {
  .footer-sell .photo-request { width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%); }
}

/* VIENI A TROVARCI: the vehicle entrance set exactly like the address above it; the parking note stays small. */
.visit-info .access-note .access-gate { display: block; margin: 0 0 4px; font-size: 1.3rem; line-height: 1.6; font-weight: 400; font-style: normal; letter-spacing: normal; color: var(--text); }
.visit-info .access-note > span:not(.access-gate) { display: block; }

/* ULTIMI ARRIVI while the list loads: three quiet placeholders of the same size as the cards, so the page below
   never jumps when the cars appear. */
.arrival-skeleton { display: flex; flex-direction: column; gap: 10px; }
.arrival-skeleton-photo { display: block; aspect-ratio: 16 / 9; margin-bottom: 10px; }
.arrival-skeleton-line { display: block; height: 14px; width: 38%; }
.arrival-skeleton-line.is-wide { height: 26px; width: 62%; }
.arrival-skeleton-line.is-short { width: 46%; }
/* Same height as a card: photo + brand, model, data and price. */
.arrival-skeleton-line.is-short { margin-bottom: 25px; }
.arrivals.is-loading .arrivals-nav { visibility: hidden; }
@media (max-width: 700px) { .arrival-skeleton-line.is-short { margin-bottom: 19px; } }
.arrival-skeleton-photo, .arrival-skeleton-line { background: linear-gradient(90deg, rgb(255 255 255 / 4%) 0%, rgb(255 255 255 / 8%) 50%, rgb(255 255 255 / 4%) 100%) 0 0 / 200% 100%; animation: arrival-shimmer 1.6s ease-in-out infinite; }
@keyframes arrival-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .arrival-skeleton-photo, .arrival-skeleton-line { animation: none; } }

/* ===== Cover on phones: a shorter, more horizontal box, so the landscape photos of the cars show much more of the
   picture (the old box was taller than the screen and cut two thirds of each photo). ===== */
@media (max-width: 700px) {
  .hero { height: clamp(500px, 74svh, 580px); min-height: 0; }
  .hero-content { padding-top: 112px; padding-bottom: 96px; }
  .hero h1 { margin-bottom: 20px; }
  .hero-description { margin-bottom: 0; }
  .hero-image { object-position: 55% 55%; }
}
@media (max-width: 380px) { .hero h1 { font-size: clamp(3.2rem, 15vw, 3.8rem); } }

/* Collection tabs on phones (four with Moto): one line, scrolled sideways when they do not fit. */
@media (max-width: 700px) {
  .catalog-tabs { gap: 22px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .catalog-tabs::-webkit-scrollbar { display: none; }
  .catalog-tabs button { flex: none; white-space: nowrap; }
  .catalog-tabs button.active::after { bottom: 0; }
}

/* Report responsive (owner's screen, 1903×953): the cover has a fixed height, so on some window heights the title
   "ULTIMI ARRIVI" fell across the bottom edge of the screen, half visible. Only for those heights the cover grows to the
   screen, minus the space above the title: the title then waits just below the edge, whole. Every other height is as
   before (title fully visible on taller screens, hidden on lower ones). Ranges: cover height + space above the title
   (56 px, 50 px on phones) up to + the title's height. */
@media (min-width: 1700px) and (min-height: 907px) and (max-height: 975px) { .hero { height: calc(100svh - 56px); } }
@media (min-width: 701px) and (max-width: 1699px) and (min-height: 937px) and (max-height: 1005px) { .hero { height: calc(100svh - 56px); } }
@media (max-width: 700px) and (min-height: 551px) and (max-height: 600px) { .hero { height: calc(100svh - 50px); } }
