/**
 * Hero città — valori allineati a search.html (Tailwind):
 * h-[260px] sm:h-[300px] lg:h-[320px], mb-6 sm:mb-8, stessi padding / tipografia / gap.
 */

.page-city-hero {
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: 260px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  z-index: 10;
}

@media (min-width: 640px) {
  .page-city-hero {
    height: 300px;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .page-city-hero {
    height: 320px;
  }
}

[data-theme="light"] .page-city-hero {
  border-bottom-color: rgba(226, 232, 240, 0.5);
}

.page-city-hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.7s ease;
}

.page-city-hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* bg-gradient-to-t from-brand-dark via-brand-dark/55 to-brand-dark/85 */
.page-city-hero__shade--t {
  background: linear-gradient(
    to top,
    #0b1120 0%,
    rgba(11, 17, 32, 0.55) 50%,
    rgba(11, 17, 32, 0.85) 100%
  );
}

/* Allineato a search.html: from-slate-900/35 via-slate-900/5 to-transparent */
[data-theme="light"] .page-city-hero__shade--t,
html.light .page-city-hero__shade--t {
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.35) 0%,
    rgba(15, 23, 42, 0.05) 50%,
    transparent 100%
  );
}

/* bg-gradient-to-r … to-brand-dark/88 */
.page-city-hero__shade--r {
  background: linear-gradient(
    to right,
    transparent 0%,
    transparent 50%,
    rgba(11, 17, 32, 0.88) 100%
  );
}

/* search.html light: … to-white/10 */
[data-theme="light"] .page-city-hero__shade--r,
html.light .page-city-hero__shade--r {
  background: linear-gradient(
    to right,
    transparent 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
}

/* max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pt-5 sm:pt-6 h-full flex flex-col */
.page-city-hero__inner {
  position: relative;
  z-index: 20;
  box-sizing: border-box;
  max-width: 80rem;
  margin-inline: auto;
  height: 100%;
  padding: 1.25rem 1rem 0;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

@media (min-width: 640px) {
  .page-city-hero__inner {
    padding: 1.5rem 1.5rem 0;
  }
}

@media (min-width: 1024px) {
  .page-city-hero__inner {
    padding: 1.5rem 2rem 0;
  }
}

.page-city-hero__row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: auto;
}

.page-city-hero__spacer-left {
  display: none;
  width: 33.333333%;
}

@media (min-width: 768px) {
  .page-city-hero__spacer-left {
    display: block;
  }
}

/* w-full md:w-1/3 flex justify-start md:justify-center */
.page-city-hero__brand-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .page-city-hero__brand-wrap {
    width: 33.333333%;
    justify-content: center;
  }
}

/* flex items-center gap-2 … px-4 sm:px-5 py-2 rounded-2xl … */
.page-city-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  background: rgba(11, 17, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.15s ease;
}

@media (min-width: 640px) {
  .page-city-hero__brand {
    padding: 0.5rem 1.25rem;
  }
}

[data-theme="light"] .page-city-hero__brand {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.page-city-hero__brand:hover .page-city-hero__brand-icon {
  transform: scale(1.05);
}

.page-city-hero__brand-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  color: #00d2ff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.15s ease;
}

@media (min-width: 640px) {
  .page-city-hero__brand-icon {
    width: 2rem;
    height: 2rem;
  }
}

.page-city-hero__brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #fff;
}

@media (min-width: 640px) {
  .page-city-hero__brand-text {
    font-size: 1.5rem;
  }
}

[data-theme="light"] .page-city-hero__brand-text {
  color: #0f172a;
}

.page-city-hero__brand-accent {
  color: #f97316;
}

/* w-auto md:w-1/3 — allineato a index.html navbar destra */
.page-city-hero__actions {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .page-city-hero__actions {
    width: 33.333333%;
  }
}

/* Stessa fila icone della home: gap-0.5 sm:gap-2, link senza “pill” vetro */
.page-city-hero__home-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

@media (min-width: 640px) {
  .page-city-hero__home-nav {
    gap: 0.5rem;
  }
}

.page-city-hero__home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0.625rem;
  margin: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #94a3b8;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.page-city-hero__home-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

[data-theme='light'] .page-city-hero__home-link:hover {
  color: #0f172a;
  background: rgba(226, 232, 240, 0.8);
}

.page-city-hero__home-fa--lg {
  font-size: 1.125rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.page-city-hero__home-fa--bars {
  font-size: 1.25rem;
  line-height: 1;
}

.page-city-hero__home-link--cart:hover .page-city-hero__home-fa--lg {
  transform: scale(1.1);
}

/* md:hidden — solo mobile */
.page-city-hero__home-link--search-mobile {
  display: inline-flex;
}

@media (min-width: 768px) {
  .page-city-hero__home-link--search-mobile {
    display: none;
  }
}

/* Vista catalogo: stesso stile del link «Chi siamo» (outline teal, pill) */
.page-city-hero__home-catalog {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  color: #00d2ff;
  background: transparent;
  border: 1px solid rgba(0, 210, 255, 0.4);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

@media (min-width: 640px) {
  .page-city-hero__home-catalog {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
  }
}

.page-city-hero__home-catalog:hover {
  background: rgba(0, 210, 255, 0.1);
  color: #5eead4;
  border-color: rgba(0, 210, 255, 0.55);
}

[data-theme='light'] .page-city-hero__home-catalog {
  color: #0284c7;
  background: transparent;
  border-color: rgba(13, 148, 136, 0.45);
}

[data-theme='light'] .page-city-hero__home-catalog:hover {
  background: rgba(13, 148, 136, 0.12);
  color: #0369a1;
  border-color: rgba(3, 105, 161, 0.45);
}

@media (min-width: 768px) {
  .page-city-hero__home-catalog {
    display: inline-flex;
  }
}

.page-city-hero__home-link--theme {
  color: #00d2ff;
}

.page-city-hero__home-link--theme:hover {
  color: #fff;
}

[data-theme='light'] .page-city-hero__home-link--theme:hover {
  color: #0f172a;
}

/* hidden sm:flex — impostazioni da 640px */
.page-city-hero__home-link--settings-desktop {
  display: none;
}

@media (min-width: 640px) {
  .page-city-hero__home-link--settings-desktop {
    display: inline-flex;
  }
}

/* sm:hidden — hamburger solo sotto 640px */
.page-city-hero__home-link--menu-mobile {
  display: inline-flex;
}

@media (min-width: 640px) {
  .page-city-hero__home-link--menu-mobile {
    display: none;
  }
}

.page-city-hero__round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 17, 32, 0.45);
  color: #e2e8f0;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

@media (min-width: 640px) {
  .page-city-hero__round-btn {
    padding: 0.625rem;
  }
}

[data-theme="light"] .page-city-hero__round-btn {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(226, 232, 240, 0.8);
  color: #334155;
}

.page-city-hero__round-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

[data-theme="light"] .page-city-hero__round-btn:hover {
  background: rgba(226, 232, 240, 0.9);
  color: #0f172a;
}

.page-city-hero__round-btn--theme {
  color: #00d2ff;
}

.page-city-hero__round-btn--theme:hover {
  color: #fff;
}

[data-theme="light"] .page-city-hero__round-btn--theme:hover {
  color: #0f172a;
}

.page-city-hero__round-btn--desktop-only {
  display: none;
}

@media (min-width: 640px) {
  .page-city-hero__round-btn--desktop-only {
    display: inline-flex;
  }
}

.page-city-hero__round-btn--mobile-only {
  display: inline-flex;
}

@media (min-width: 640px) {
  .page-city-hero__round-btn--mobile-only {
    display: none;
  }
}

.page-city-hero__fa--cart {
  font-size: 1rem;
  transition: transform 0.15s ease;
}

@media (min-width: 640px) {
  .page-city-hero__fa--cart {
    font-size: 1.125rem;
  }
}

.page-city-hero__round-btn:hover .page-city-hero__fa--cart {
  transform: scale(1.1);
}

.page-city-hero__fa--theme {
  font-size: 1.125rem;
  line-height: 1;
}

.page-city-hero__fa--settings {
  font-size: 1.125rem;
  line-height: 1;
}

.page-city-hero__fa--compare {
  font-size: 1.125rem;
  line-height: 1;
}

.page-city-hero .hidden {
  display: none !important;
}

/* mt-auto pb-5 sm:pb-6 w-full flex justify-end */
.page-city-hero__row-bottom {
  margin-top: auto;
  padding-bottom: 1.25rem;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  pointer-events: auto;
}

@media (min-width: 640px) {
  .page-city-hero__row-bottom {
    padding-bottom: 1.5rem;
  }
}

.page-city-hero__city-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  max-width: min(100%, 20rem);
}

@media (min-width: 640px) {
  .page-city-hero__city-col {
    max-width: none;
  }
}

.page-city-hero__intro {
  margin: 0 0 0.5rem;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.375;
  letter-spacing: 0.025em;
  color: #e2e8f0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

@media (min-width: 640px) {
  .page-city-hero__intro {
    margin-bottom: 0.625rem;
    font-size: 0.875rem;
  }
}

[data-theme="light"] .page-city-hero__intro:not(.page-city-hero__intro--accent),
html.light .page-city-hero__intro:not(.page-city-hero__intro--accent) {
  color: rgba(248, 250, 252, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  filter: none;
}

/* Accento come Impostazioni (#5eead4) — home/search/carrello/impostazioni in app */
.page-city-hero__intro.page-city-hero__intro--accent {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5eead4 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  filter: none;
}

@media (min-width: 640px) {
  .page-city-hero__intro.page-city-hero__intro--accent {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }
}

/* Pill città: tema scuro = nero + bordo bianco; tema chiaro = bianco pieno */
.page-city-hero__pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem 0.5rem 0.75rem;
  border-radius: 9999px;
  background: #000000;
  border: 1px solid #ffffff;
  box-shadow:
    0 10px 40px -14px rgba(0, 0, 0, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

[data-theme="light"] .page-city-hero__pill,
html.light .page-city-hero__pill {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 10px 40px -14px rgba(15, 23, 42, 0.2),
    0 4px 14px rgba(15, 23, 42, 0.1);
}

@media (min-width: 640px) {
  .page-city-hero__pill {
    gap: 0.65rem;
    padding: 0.55rem 1.1rem 0.55rem 1rem;
  }
}

.page-city-hero__fa--pin {
  color: #f97316;
  font-size: 1.5rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .page-city-hero__fa--pin {
    font-size: 1.875rem;
  }
}

.page-city-hero__city-name {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff;
  filter: none;
}

[data-theme="light"] .page-city-hero__city-name,
html.light .page-city-hero__city-name {
  color: #0f172a;
}

@media (min-width: 640px) {
  .page-city-hero__city-name {
    font-size: 2.25rem;
    margin-right: 0.25rem;
  }
}

.page-city-hero__change-btn {
  flex-shrink: 0;
  margin: 0;
  margin-left: auto;
  padding: 0.4rem 0.85rem;
  border: 0;
  border-radius: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: #0b1120;
  background: #00d2ff;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.35);
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.page-city-hero__change-btn:hover {
  background: #00b8e0;
  color: #0b1120;
}

[data-theme="light"] .page-city-hero__change-btn:hover,
html.light .page-city-hero__change-btn:hover {
  background: #00b8e0;
}

.product-detail-view__body {
  width: 100%;
  min-width: 0;
}

.view--product {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/*
 * Stessa larghezza percepita di search.html: lì l’hero è sotto <body> a tutta viewport;
 * qui è dentro #main-content (padding + max-width). Breakout orizzontale sul viewport.
 */
#main-content .view--product > .page-city-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}
