/* ============================================================
   LANDING.CSS — Portale principale (localhost:8000, cross-tenant)
   Caricato DOPO omnigate.css: NON sovrascrive l'hero del design
   system, aggiunge solo i componenti specifici del portale main
   (ricerca semplice, card profilo, showcase tenant).
   Font/colori: token --og-* definiti in omnigate.css.
   ============================================================ */

/* ============================================
   HERO — solo integrazioni al design system
   ============================================ */

/* audio di benvenuto (se presente) */
.hero__welcome-audio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.hero__welcome-audio-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

/* ============================================
   CARD TERRITORIO (entry points nell'hero)
   Card glass sopra l'hero video, link ai portali
   ============================================ */

.hero__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 760px;
  margin: 26px auto 0;
}

.hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.hero__card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}
.hero__card:hover { border-color: rgba(255, 255, 255, 0.55); }

.hero__card-icon {
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.92);
}
.hero__card-icon svg { width: 100%; height: 100%; }

.hero__card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.hero__card-subtitle {
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

/* ============================================
   SHOWCASE TENANT — "I nostri territori"
   ============================================ */

.mp-tenants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.mp-tenant {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--og-radius);
  overflow: hidden;
  box-shadow: var(--og-shadow-soft);
  text-decoration: none;
  color: #fff;
}
.mp-tenant:hover {
  text-decoration: none;
  color: #fff;
}
.mp-tenant__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.mp-tenant:hover .mp-tenant__img { transform: scale(1.05); }
.mp-tenant__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 30, 46, 0.92) 0%, rgba(20, 30, 46, 0.62) 34%, rgba(20, 30, 46, 0.22) 58%, rgba(20, 30, 46, 0.04) 78%);
}
.mp-tenant__logo {
  position: absolute;
  top: 18px;
  left: 18px;
  max-width: 92px;
  max-height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(20, 30, 46, 0.45));
}
.mp-tenant__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mp-tenant__name {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-wrap: balance;
}
.mp-tenant__tagline {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 34ch;
}
.mp-tenant__go {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.mp-tenant__go svg {
  width: 17px;
  height: 17px;
  transition: transform 0.25s ease;
}
.mp-tenant:hover .mp-tenant__go svg { transform: translateX(5px); }

/* ============================================
   BADGE TENANT su card destinazione/storia
   ============================================ */

.og-dest .og-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
  .hero__cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero__card {
    flex-direction: row;
    justify-content: center;
    padding: 15px 18px;
  }
  .hero__card-subtitle { display: none; }
}

@media (max-width: 1023px) {
  .mp-tenant { aspect-ratio: 3 / 2; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .mp-tenant__img,
  .mp-tenant__go svg,
  .hero__card { transition: none; }
  .mp-tenant:hover .mp-tenant__img { transform: none; }
}
