/*
 * Landing "City" (template condiviso)
 * CSS: usare con css/style.css su ogni landing prodotto/città.
 * JS: js/landing-city.js (defer). Opzionale: window.LandingCityConfig prima dello script.
 */

.hero-model {
  padding: var(--space-sm) 0 var(--space-2xl);
  border-bottom: 1px solid var(--gray-300);
}

/* Mobile: titolo, galleria, resto. Desktop: titolo+gallery in una riga; sotto, descrizione a tutta larghezza (non a fianco alle foto). */
.hero-model-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: stretch;
}
.hero-eyebrow-title { min-width: 0; }
.hero-col-rest { min-width: 0; }

/* Mobile: testo hero più compatto per non occupare quasi full page */
@media (max-width: 640px) {
  .hero-eyebrow-title h1 {
    font-size: clamp(1.75rem, 7.2vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: var(--space-sm);
  }
  .hero-eyebrow-title h1 span {
    font-size: 0.9em;
  }
  .hero-col-rest .body-large {
    font-size: 1rem;
    line-height: 1.45;
  }
}

/* Tablet: galleria massiccia e centrata nel flusso (sotto al titolo) */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hero-model-gallery-wrap {
    max-width: min(100%, 820px);
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 768px) {
  .hero-gallery-hint {
    justify-content: center;
  }
  .hero-gallery-page--single .hero-gallery-slide {
    max-width: min(90%, 560px);
  }
}
@media (min-width: 1024px) {
  /* Respiro sotto header + meno “attaccata in alto” alla finestra */
  .hero-model {
    padding: clamp(2.25rem, 5.5vh, 3.75rem) 0 var(--space-3xl);
  }
  .hero-model-grid {
    display: grid;
    /* Titolo: larghezza lettura limitata. Galleria: tutto lo spazio rimanente (smax). */
    grid-template-columns: minmax(0, min(44ch, 35rem)) 1fr;
    grid-template-rows: auto auto;
    column-gap: clamp(var(--space-lg), 2.8vw, var(--space-3xl));
    row-gap: var(--space-2xl);
    align-items: center;
  }
  .hero-eyebrow-title {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }
  .hero-model-gallery-wrap {
    grid-column: 2;
    grid-row: 1;
    /* Centrata in altezza rispetto al blocco titolo quando l’H1 impila più righe */
    align-self: center;
    width: 100%;
    min-width: 0;
  }
  .hero-col-rest {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 0;
    align-self: stretch;
    width: 100%;
  }
  .hero-col-rest .body-large {
    max-width: min(40rem, 100%);
  }
  .hero-eyebrow-title h1 {
    margin-bottom: 0;
  }
}
.hero-model-gallery-wrap { min-width: 0; }
.hero-gallery-hint {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-700);
  margin-bottom: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
}
.hero-gallery-meta {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--gray-700);
  font-weight: 600;
}
.hero-gallery-carousel {
  position: relative;
}
.hero-gallery-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 4px;
}
.hero-gallery-viewport:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
}
.hero-gallery-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-gallery-track { transition: none; }
}
.hero-gallery-page {
  flex-shrink: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  align-items: start;
  min-width: 0;
}
.hero-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(26, 28, 30, 0.1);
  background: rgba(255, 255, 255, 0.96);
  color: var(--charcoal);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06), 0 8px 28px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s, transform 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hero-gallery-arrow:hover:not(:disabled) {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 12px 36px rgba(0, 0, 0, 0.1);
}
.hero-gallery-arrow:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
}
.hero-gallery-arrow:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}
.hero-gallery-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.hero-gallery-arrow--prev { left: 0.4rem; }
.hero-gallery-arrow--next { right: 0.4rem; }
@media (min-width: 640px) {
  .hero-gallery-arrow {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.9rem;
  }
  .hero-gallery-arrow--prev { left: 0.55rem; }
  .hero-gallery-arrow--next { right: 0.55rem; }
}
.hero-gallery-page--single .hero-gallery-slide {
  grid-column: 1 / -1;
  max-width: min(50%, 320px);
  justify-self: center;
}
.hero-gallery-slide {
  margin: 0;
  min-width: 0;
}
.hero-gallery-hit {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  cursor: zoom-in;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.hero-gallery-hit:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}
.hero-gallery-hit:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
}
.hero-gallery-hit img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  display: block;
}
.hero-gallery-caption {
  font-size: 0.65rem;
  color: var(--gray-700);
  margin-top: 4px;
  line-height: 1.25;
}
.hero-spec-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.45rem 0.6rem;
  margin: var(--space-xs) auto 0;
  max-width: 100%;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.hero-spec-orb-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.14rem;
  text-decoration: none;
  color: var(--charcoal);
  -webkit-tap-highlight-color: transparent;
}
.hero-spec-orb-link:focus-visible {
  outline: none;
}
.hero-spec-orb-link:focus-visible .hero-spec-orb {
  outline: 2px solid var(--champagne);
  outline-offset: 1px;
}
.hero-spec-orb {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem;
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.3) 0%, transparent 48%),
    linear-gradient(160deg, #2a2d31 0%, #1a1c1e 55%, #111214 100%);
  border: 1px solid rgba(214, 201, 181, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 8px 18px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.hero-spec-orb__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
}
.hero-spec-orb-link:hover .hero-spec-orb {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(214, 201, 181, 1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.24) inset,
    0 12px 24px rgba(0, 0, 0, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .hero-spec-orb-link:hover .hero-spec-orb {
    transition: none;
    transform: none;
  }
}
.hero-spec-orb__n {
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #f4efe7;
}
.hero-spec-orb__u {
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d6c9b5;
  line-height: 1;
  margin-top: 0.04rem;
}
.hero-spec-orb-cap {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-align: center;
  line-height: 1.1;
  max-width: 3.25rem;
  white-space: nowrap;
}
@media (min-width: 480px) {
  .hero-spec-strip {
    gap: 0.4rem 0.55rem;
  }
  .hero-spec-orb {
    width: 2.7rem;
    height: 2.7rem;
    padding: 0.14rem;
  }
  .hero-spec-orb__n {
    font-size: 0.88rem;
    letter-spacing: -0.04em;
  }
  .hero-spec-orb__u {
    font-size: 0.5rem;
  }
  .hero-spec-orb-cap {
    font-size: 0.6rem;
    max-width: 3.4rem;
  }
}
.hero-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(10, 10, 11, 0.93);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.hero-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.hero-lightbox-inner {
  max-width: min(96vw, 1680px);
  max-height: 92vh;
  pointer-events: auto;
}
.hero-lightbox-inner img {
  max-width: min(96vw, 1680px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}
.hero-lightbox-close {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 10002;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.1);
  color: var(--off-white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
  font-family: var(--font-sans);
}
.hero-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}
.hero-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10002;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: var(--off-white);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s, transform 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hero-lightbox-nav:hover:not(:disabled) {
  background: rgba(255,255,255,0.22);
}
.hero-lightbox-nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}
.hero-lightbox-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.hero-lightbox-nav:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
}
.hero-lightbox-nav--prev { left: max(var(--space-md), env(safe-area-inset-left)); }
.hero-lightbox-nav--next { right: max(var(--space-md), env(safe-area-inset-right)); }
@media (max-width: 480px) {
  .hero-lightbox-nav {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1rem;
  }
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
}
.trust-pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.model-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-top: var(--space-2xl);
}

.model-showcase img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--gray-100);
  transition: transform 0.6s ease;
}
.model-showcase figure { overflow: hidden; margin: 0; }
.model-showcase figure:hover img { transform: scale(1.02); }
.model-showcase figcaption {
  font-size: 0.72rem;
  color: var(--gray-700);
  margin-top: var(--space-sm);
  line-height: 1.4;
}

.price-tag {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  margin: var(--space-md) 0;
}
.badge-soft {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--champagne);
  padding: 0.35rem 0.65rem;
  margin-bottom: var(--space-sm);
}

.specs-panel {
  background: white;
  padding: var(--space-2xl);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  border-left: 2px solid var(--champagne);
}
.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--gray-300);
  font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--gray-700); font-weight: 500; }
.spec-value { font-weight: 600; text-align: right; }

.security-strip {
  background: white;
  border: 1px solid var(--gray-300);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}
.security-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.security-item i { color: var(--champagne); font-size: 1.35rem; margin-top: 2px; }
.security-item strong { display: block; font-size: 0.88rem; margin-bottom: 0.25rem; }

.faq-block {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: var(--space-xl);
}
.faq-block details {
  position: relative;
  background: #fff;
  margin: 0;
  margin-top: -1px;
  padding: 0;
  border: 1px solid var(--gray-300);
  transition: background 0.15s ease;
}
.faq-block details:first-of-type {
  margin-top: var(--space-lg);
  border-radius: 10px 10px 0 0;
}
.faq-block details:last-of-type {
  border-radius: 0 0 10px 10px;
}
.faq-block details:only-of-type {
  border-radius: 10px;
}
.faq-block summary {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--charcoal);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  padding: 0.95rem 1.15rem;
  -webkit-tap-highlight-color: transparent;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::marker { content: ''; }
.faq-block summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.12em;
  border-right: 2px solid var(--gray-700);
  border-bottom: 2px solid var(--gray-700);
  transform: rotate(45deg);
  opacity: 0.65;
  transition: transform 0.22s ease, opacity 0.2s ease;
}
.faq-block details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.28em;
  opacity: 0.85;
}
.faq-block summary:hover {
  background: var(--gray-100);
}
.faq-block details[open] summary {
  background: rgba(243, 242, 239, 0.75);
  border-bottom: 1px solid var(--gray-300);
}
.faq-block summary:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: -2px;
  z-index: 1;
}
.faq-block p {
  margin: 0;
  padding: var(--space-md) 1.15rem var(--space-lg);
  color: var(--gray-700);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.55;
  border-top: none;
}
