/* porteverona.com 2026 — header, mega menu, mobile */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.5;
}

a {
  color: #007bff;
}

img {
  max-width: 100%;
  height: auto;
}

.showroom-slider img,
.showroom-slide img,
.showroom-hero img {
  max-width: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: #462804;
  color: #fff;
}

.skip-link:focus {
  left: 0;
}

.contact-bar {
  background-color: #462804;
  padding: 0.55rem 0.75rem;
  text-align: center;
  font-size: 0.875rem;
}

.contact-bar p {
  margin: 0;
  color: #fff;
}

.contact-bar a {
  color: #fff;
  text-decoration: none;
}

.contact-item {
  display: inline-block;
  margin: 0 0.5rem;
  white-space: nowrap;
}

.contact-item--wa a {
  font-weight: 700;
  background: #25d366;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

.contact-item--wa a:hover {
  background: #1ebe57;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 0.65rem 1rem;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

@media (min-width: 901px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 0.75rem;
  }

  .site-logo:first-of-type {
    justify-self: start;
  }

  .main-nav {
    justify-self: center;
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .nav-root {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.1rem 0.15rem;
  }

  .nav-root a,
  .nav-parent {
    padding: 0.45rem 0.55rem;
    font-size: clamp(0.8125rem, 0.95vw, 0.9375rem);
  }

  .site-logo--partner {
    justify-self: end;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .site-logo--partner {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.site-logo img {
  height: 64px;
  width: auto;
}

.site-logo--partner img {
  height: 56px;
}

.main-nav {
  flex: 1 1 320px;
}

.nav-root {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

.nav-root > li {
  position: relative;
}

.nav-root a,
.nav-parent {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: #222;
  font-size: 0.9375rem;
  font-weight: 600;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-root a:hover,
.nav-parent:hover,
.nav-root a[aria-current="page"] {
  color: #007bff;
}

.submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 300;
}

.submenu a {
  display: block;
  padding: 0.45rem 1rem;
  font-weight: 500;
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu,
.submenu.is-open {
  display: block;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 94vw);
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 1rem;
  z-index: 400;
}

.has-mega:hover > .mega-menu,
.has-mega:focus-within > .mega-menu,
.mega-menu.is-open {
  display: block;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem 1rem;
  max-height: 70vh;
  overflow-y: auto;
}

.mega-brand {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #462804;
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-col a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #444;
  text-decoration: none;
}

.mega-col a:hover {
  color: #007bff;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid #ccc;
  background: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.home-showcase {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0 1rem;
}

.site-footer {
  background: #f8f8f8;
  border-top: 1px solid #e5e5e5;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #333;
}

.site-footer__area {
  max-width: 42rem;
  margin: 0.75rem auto;
  color: #555;
  font-size: 0.8125rem;
}

.site-footer__legal a {
  display: inline-block;
  margin: 0.35rem 0.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid #007bff;
  border-radius: 5px;
  text-decoration: none;
  color: #007bff;
  background: #fff;
}

.site-footer__legal a:hover {
  background: #007bff;
  color: #fff;
}

/* Pagine contatti e dove siamo */
.page-wrap--wide {
  max-width: 1140px;
}

.page-intro {
  margin-bottom: 1.25rem;
  text-align: center;
}

.page-intro .page-title {
  margin-bottom: 0.75rem;
}

.lead--center {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.lead {
  font-size: 1.0625rem;
  color: #444;
  line-height: 1.65;
}

.showroom-hero {
  position: relative;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
}

.showroom-hero--full {
  width: 100%;
}

.showroom-hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.showroom-hero figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: #555;
  background: #fafafa;
  text-align: center;
}

.contact-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 1.5rem 0;
}

.contact-cards--grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 900px) {
  .contact-cards--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.contact-cards--stack {
  grid-template-columns: 1fr;
  margin: 0 0 1rem;
}

.contact-card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  background: #f5f5f5;
  border-radius: 999px;
}

.contact-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  color: #462804;
}

.contact-card p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.contact-card__value {
  margin: 0 0 0.15rem !important;
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-card__value a {
  color: #222;
  text-decoration: none;
}

.contact-card__value a:hover {
  color: #007bff;
}

.contact-card__meta {
  margin: 0 0 0.85rem !important;
  font-size: 0.8125rem;
  color: #777;
}

.contact-card--accent {
  border-color: #b8e6c5;
  background: linear-gradient(180deg, #f6fff9 0%, #fff 100%);
}

.contact-card--accent .contact-card__icon {
  background: #e8f9ee;
}

.btn-block {
  display: block;
  text-align: center;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.btn-outline {
  background: #fff !important;
  color: #462804 !important;
  border: 1px solid #ccc !important;
}

.btn-outline:hover {
  border-color: #007bff !important;
  color: #007bff !important;
}

.btn-whatsapp {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #fff !important;
}

.btn-whatsapp:hover {
  background: #1ebe57 !important;
  border-color: #1ebe57 !important;
  color: #fff !important;
}

.btn-email {
  background: #0072c6 !important;
  border-color: #0072c6 !important;
  color: #fff !important;
}

.area-served {
  font-size: 0.9375rem;
  color: #555;
  padding: 1rem 1.15rem;
  background: #f0f7ff;
  border-radius: 10px;
  border-left: 4px solid #007bff;
  line-height: 1.6;
}

.area-served--center {
  text-align: center;
  border-left: 0;
  border-top: 3px solid #007bff;
}

/* Barra azione contatti */
.contact-action {
  text-align: center;
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.25rem;
  background: linear-gradient(135deg, #f0fff4 0%, #f8fbff 100%);
  border: 1px solid #d8eadc;
  border-radius: 14px;
}

.contact-action__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1rem;
}

.contact-action__hint {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: #666;
}

.btn-whatsapp--large {
  font-size: 1.0625rem !important;
  padding: 0.8rem 1.65rem !important;
  border-radius: 8px !important;
}

.contact-note {
  font-size: 0.8125rem;
  color: #666;
  margin: 0.35rem 0 0;
}

/* Dove siamo — layout mappa + sidebar */
.location-layout {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.location-map {
  min-height: 360px;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.location-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.location-sidebar .contact-cards--stack {
  margin: 0;
}

.page-location .area-served {
  margin: 0;
}

.location-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e8edf2;
  border-radius: 10px;
}

@media (min-width: 900px) {
  .location-layout {
    grid-template-columns: 1.35fr 1fr;
  }

  .location-map {
    min-height: 100%;
  }

  .location-map iframe {
    min-height: 100%;
  }
}

/* Showroom slider */
.showroom-slider {
  width: 100%;
  margin: 0 0 1.75rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.showroom-slider__viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f0f0f0;
}

.showroom-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  overflow: hidden;
}

.showroom-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.showroom-slider img,
.showroom-slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
}

.showroom-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #fff;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.showroom-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: #fafafa;
  border-top: 1px solid #ececec;
}

.showroom-slider__nav {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  color: #462804;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.showroom-slider__nav:hover {
  border-color: #007bff;
  color: #007bff;
}

.showroom-slider__dots {
  display: flex;
  gap: 0.5rem;
}

.showroom-slider__dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8c8c8;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.showroom-slider__dot.is-active {
  background: #462804;
  transform: scale(1.15);
}

/* Zone servite */
.zone-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1.5rem 0 2rem;
}

.zone-col {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  background: #fafafa;
}

.zone-col h2 {
  margin: 0 0 0.65rem;
  font-size: 1.0625rem;
  color: #462804;
}

.zone-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  color: #444;
  line-height: 1.55;
}

.zone-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin: 1.5rem 0;
}

/* WhatsApp floating button (mobile) */
.whatsapp-fab {
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 500;
  background: #25d366;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
}

.whatsapp-fab:hover {
  background: #1ebe57;
}

@media (max-width: 900px) {
  .whatsapp-fab {
    display: inline-block;
  }
}

@media (max-width: 900px) {
  .site-logo--partner {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .nav-root {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-top: 0.35rem;
  }

  .main-nav.is-open .nav-root {
    display: flex;
  }

  .nav-root > li {
    width: 100%;
  }

  .submenu,
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: 0;
    border-left: 3px solid #462804;
    margin: 0.25rem 0 0.5rem 0.75rem;
    padding-left: 0.5rem;
  }

  .mega-menu[hidden] {
    display: none !important;
  }

  .mega-menu.is-open {
    display: block !important;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .contact-bar .contact-item {
    display: block;
    margin: 0.25rem 0;
  }
}

@media (max-width: 480px) {
  .site-logo img {
    height: 52px;
  }
}
