/* FABBRICOUNT — Navigation & Mobile Menu Styles (High Performance & SEO Optimized) */
@import url('fonts/fonts.css');

:root {
  --nav-bg: rgba(7, 22, 36, 0.96);
  --nav-border: rgba(255, 255, 255, 0.1);
  --nav-orange: #f5822a;
  --nav-orange-hover: #ff9c3d;
  --nav-text: #bcc8cf;
  --nav-text-hover: #ffffff;
  --nav-drawer-bg: #071624;
}

/* Site Header */
.fabbri-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.3s ease;
}

.fabbri-nav-wrap {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  min-height: 74px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand Logo */
.fabbri-brand {
  display: flex !important;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.fabbri-brand-img {
  width: 154px;
  height: 52px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  display: block;
}

.fabbri-brand-text {
  display: flex;
  flex-direction: column;
}

.fabbri-brand-tagline {
  color: #8c9fae;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Desktop Navigation */
.fabbri-desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.fabbri-desktop-nav a {
  color: var(--nav-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.fabbri-desktop-nav a:hover,
.fabbri-desktop-nav a:focus-visible {
  color: var(--nav-orange);
}

.fabbri-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px !important;
  background: var(--nav-orange) !important;
  color: #071624 !important;
  font-size: 0.74rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.fabbri-nav-cta:hover,
.fabbri-nav-cta:focus-visible {
  background: #f7c942 !important;
  transform: translateY(-1px);
  color: #071624 !important;
}

/* Mobile Hamburger Button */
.fabbri-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 1002;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fabbri-menu-toggle:hover,
.fabbri-menu-toggle:focus-visible {
  border-color: var(--nav-orange);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.fabbri-menu-toggle .bar {
  pointer-events: none;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease;
  transform-origin: center;
}

.fabbri-menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--nav-orange);
}

.fabbri-menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.fabbri-menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--nav-orange);
}

/* Mobile Backdrop Overlay */
.fabbri-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 14, 24, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fabbri-mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Drawer */
.fabbri-mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: var(--nav-drawer-bg);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.6);
  z-index: 1002;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.fabbri-mobile-drawer.is-open {
  display: flex !important;
}

.fabbri-drawer-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fabbri-drawer-header span {
  color: var(--nav-orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fabbri-drawer-close {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.fabbri-drawer-close:hover,
.fabbri-drawer-close:focus-visible {
  border-color: var(--nav-orange);
  color: var(--nav-orange);
  outline: none;
}

.fabbri-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex: 1;
}

.fabbri-drawer-nav a {
  padding: 13px 24px;
  color: #d6e2e9;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.fabbri-drawer-nav a::after {
  content: "›";
  color: #556976;
  font-size: 1.2rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.fabbri-drawer-nav a:hover,
.fabbri-drawer-nav a:focus-visible {
  background: rgba(245, 130, 42, 0.08);
  color: var(--nav-orange);
  padding-left: 28px;
}

.fabbri-drawer-nav a:hover::after,
.fabbri-drawer-nav a:focus-visible::after {
  color: var(--nav-orange);
  transform: translateX(3px);
}

.fabbri-drawer-footer {
  padding: 24px 20px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fabbri-drawer-cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  background: var(--nav-orange);
  color: #071624;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.fabbri-drawer-cta:hover,
.fabbri-drawer-cta:focus-visible {
  background: #f7c942;
}

.fabbri-drawer-whatsapp {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  background: #25d366;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.fabbri-drawer-whatsapp:hover,
.fabbri-drawer-whatsapp:focus-visible {
  background: #20bd5a;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .fabbri-desktop-nav {
    display: none !important;
  }

  .fabbri-menu-toggle {
    display: flex !important;
  }

  .fabbri-brand-tagline {
    display: none;
  }
}

@media (max-width: 600px) {
  .fabbri-nav-wrap {
    min-height: 64px;
    width: calc(100% - 28px);
  }

  .fabbri-brand-img {
    width: 128px;
    height: 44px;
  }

  .fabbri-brand-tagline {
    display: none;
  }
}
