/* QualeSpiaggia · home.css · sezioni specifiche della homepage (variante A)
   Dipende da brand.css (già caricato prima). */

/* ═══════ HERO A ═══════ */
.home-hero {
  position: relative;
  padding: 72px 24px 96px;
  background: linear-gradient(180deg, var(--qs-sand) 0%, var(--qs-sand-dark) 100%);
  overflow: hidden;
}
.home-hero-bg {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--qs-gold) 0%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}
.home-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.home-hero-copy .qs-h1 { margin-bottom: 24px; }
.home-hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--qs-text-soft);
  max-width: 500px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.home-hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.home-hero-cta-note {
  font-size: 13px;
  color: var(--qs-text-muted);
}
.home-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.home-hero-pill {
  position: absolute;
  top: 64px;
  right: -12px;
  background: white;
  border-radius: var(--qs-r-pill);
  padding: 8px 16px 8px 14px;
  box-shadow: var(--qs-shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid var(--qs-border);
}
.home-hero-pill-label {
  font-family: var(--qs-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qs-text-muted);
}
.home-hero-pill-score {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--qs-deep);
}
.home-hero-pill-score strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--qs-score-perfect);
}
.home-hero-pill-score .mono {
  font-family: var(--qs-font-mono);
  font-size: 12px;
  color: var(--qs-score-perfect);
  font-weight: 600;
}

/* ═══════ PHONE MOCKUP ═══════ */
.phone-frame {
  width: 280px;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2a2a 0%, #0e0e0e 100%);
  box-shadow:
    0 40px 80px -20px rgba(11, 79, 108, 0.38),
    0 12px 32px -8px rgba(11, 79, 108, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
}
.phone-frame-sm { width: 220px; padding: 8px; border-radius: 34px; }
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 12px;
  z-index: 2;
}
.phone-frame-sm .phone-notch { width: 70px; height: 18px; top: 14px; }
.phone-screen {
  background: var(--qs-sand);
  border-radius: 34px;
  overflow: hidden;
  padding: 52px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 440px;
}
.phone-frame-sm .phone-screen { border-radius: 26px; padding: 40px 12px 12px; min-height: 320px; }
.phone-header { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.phone-greeting {
  font-family: var(--qs-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--qs-deep);
  letter-spacing: -0.01em;
}
.phone-sub {
  font-size: 11px;
  color: var(--qs-text-muted);
  font-weight: 500;
}
.phone-sun { color: var(--qs-orange); }

.phone-hero-card {
  position: relative;
  height: 130px;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.phone-hero-title {
  color: white;
  font-family: var(--qs-font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.phone-hero-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.phone-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.phone-mini-card {
  height: 80px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  position: relative;
}
.phone-mini-name {
  font-family: var(--qs-font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}
.phone-mini-score {
  font-family: var(--qs-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #CDEFE0;
}
.phone-list-label {
  font-family: var(--qs-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--qs-text-muted);
  padding: 0 2px;
  margin-top: 2px;
}
.phone-list { display: flex; flex-direction: column; gap: 6px; }
.phone-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
}
.phone-list-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.phone-list-info { flex: 1; min-width: 0; }
.phone-list-name {
  font-family: var(--qs-font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--qs-deep);
  line-height: 1.2;
}
.phone-list-zone {
  font-size: 10px;
  color: var(--qs-text-muted);
  text-transform: lowercase;
}

/* ═══════ PROOF BAR ═══════ */
.home-proof {
  padding: 32px 24px;
  background: var(--qs-sand);
  border-top: 1px solid var(--qs-border);
  border-bottom: 1px solid var(--qs-border);
}
.home-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.home-proof-stat { text-align: center; }
.home-proof-stat .num {
  font-family: var(--qs-font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--qs-deep);
}
.home-proof-stat .lbl {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qs-text-muted);
  margin-top: 8px;
}

/* ═══════ HOW IT WORKS ═══════ */
.home-how { padding: 110px 24px; background: var(--qs-sand); }
.home-how-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.home-how-header .qs-kicker { justify-content: center; }
.home-how-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.home-how-visual {
  background: white;
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--qs-shadow-md);
}
.home-how-visual-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.home-how-ring { position: relative; width: 220px; height: 220px; flex-shrink: 0; }
.home-how-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.home-how-ring-label .num {
  font-family: var(--qs-font-mono);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--qs-deep);
}
.home-how-ring-label .txt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--qs-score-perfect);
  margin-top: 4px;
}
.home-how-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 220px;
}
.home-how-bars li {
  display: grid;
  grid-template-columns: 28px 1fr 80px auto;
  align-items: center;
  gap: 8px;
}
.home-how-bars .ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-how-bars .lbl { font-size: 13px; font-weight: 600; color: var(--qs-deep); }
.home-how-bars .bar {
  height: 4px;
  background: rgba(11, 79, 108, 0.08);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}
.home-how-bars .fill { display: block; height: 100%; border-radius: 2px; }
.home-how-bars .pct {
  font-family: var(--qs-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--qs-deep);
  text-align: right;
}

.home-how-factors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.home-how-factors li { display: flex; gap: 14px; align-items: flex-start; }
.home-how-factors .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-how-factors h4 {
  font-family: var(--qs-font-body);
  font-size: 16px;
  font-weight: 700;
  margin: 2px 0 4px;
  color: var(--qs-deep);
}
.home-how-factors p {
  font-size: 13.5px;
  color: var(--qs-text-soft);
  margin: 0;
  line-height: 1.5;
}

/* ═══════ ESPLORA (dark) ═══════ */
.home-explore {
  padding: 110px 24px;
  background: var(--qs-deep);
  color: var(--qs-text-invert);
}
.home-explore-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 40px;
}
.home-explore-kicker { color: var(--qs-gold) !important; }
.home-explore-kicker::before { background: var(--qs-gold) !important; }
.home-explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ═══════ BEACH CARD (riusabile) ═══════ */
.beach-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  color: var(--qs-deep);
  transition: transform var(--qs-duration) var(--qs-ease), box-shadow var(--qs-duration) var(--qs-ease);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
a.beach-card { color: inherit; }
a.beach-card:hover { text-decoration: none; color: inherit; }
.beach-card:hover { transform: translateY(-3px); box-shadow: var(--qs-shadow-lg); }
.beach-card-media {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.beach-card-tag {
  align-self: flex-end;
  font-size: 11px;
  padding: 4px 10px;
}
.beach-card-body { padding: 16px 18px 18px; }
.beach-card-title {
  font-family: var(--qs-font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 4px;
}
.beach-card-zone {
  font-family: var(--qs-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qs-text-muted);
}
.beach-card-metrics {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 12.5px;
  font-family: var(--qs-font-mono);
  color: var(--qs-deep);
  font-weight: 600;
}
.beach-card-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ═══════ SCARICA APP ═══════ */
.home-app { padding: 110px 24px; background: var(--qs-sand); }
.home-app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.home-app-features {
  list-style: none;
  margin: 28px 0 32px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.home-app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--qs-deep);
}
.home-app-feat-ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--qs-orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-app-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.home-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--qs-deep);
  color: var(--qs-text-invert);
  border-radius: var(--qs-r-pill);
  text-decoration: none;
  transition: background var(--qs-duration) var(--qs-ease);
}
.home-app-badge:hover { background: var(--qs-deep-dark); text-decoration: none; }
.home-app-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.home-app-badge small {
  font-family: var(--qs-font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.home-app-badge strong { font-size: 14px; font-weight: 600; }

.home-app-phones {
  display: flex;
  justify-content: center;
  gap: 16px;
  position: relative;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 900px) {
  .home-hero { padding: 56px 20px 72px; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-hero-copy .qs-h1 { font-size: clamp(44px, 10vw, 64px); }
  .home-hero-sub { font-size: 17px; }
  .home-hero-pill { top: 24px; right: 8px; }

  .home-proof-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .home-how { padding: 72px 20px; }
  .home-how-grid { grid-template-columns: 1fr; gap: 48px; }
  .home-how-visual { padding: 28px; }
  .home-how-visual-inner { gap: 28px; flex-direction: column; }

  .home-explore { padding: 72px 20px; }
  .home-explore-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .home-explore-grid { grid-template-columns: 1fr 1fr; }

  .home-app { padding: 72px 20px; }
  .home-app-grid { grid-template-columns: 1fr; gap: 40px; }
  .home-app-phones { order: -1; }
  .home-app-features { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .home-hero-copy .qs-h1 { font-size: 44px; }
  .home-hero-pill { display: none; }
  .phone-frame { width: 260px; }
  .home-explore-grid { grid-template-columns: 1fr; }
}
