/* Number Brix Milano - Style System */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --color-brick: #991B1B;
  --color-brick-hover: #7F1D1D;
  --color-brick-light: #B91C1C;
  --color-steel: #6B7280;
  --color-steel-dark: #374151;
  --color-steel-light: #9CA3AF;
  --color-anthracite: #0F172A;
  --color-anthracite-card: #1E293B;
  --color-chalk: #F8FAFC;
  --color-chalk-muted: #E2E8F0;
  --border-steel: 1px solid rgba(107, 114, 128, 0.3);
  --border-brick: 1px solid rgba(153, 27, 27, 0.4);
  --shadow-girders: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Roboto Mono', monospace;
  background-color: var(--color-anthracite);
  color: var(--color-chalk);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-chalk);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-brick);
  transition: var(--transition-fast);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-brick-icon {
  width: 32px;
  height: 32px;
  background: var(--color-brick);
  border: 2px solid var(--color-steel);
  box-shadow: 2px 2px 0px #000;
  position: relative;
}

.logo-brick-icon::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px stroke var(--color-steel-light);
  background: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.3) 2px, rgba(0,0,0,0.3) 4px);
}

.logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-chalk);
}

.logo-text span {
  color: var(--color-brick);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-brick);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-chalk);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: var(--border-steel);
  color: var(--color-chalk);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-brick {
  background-color: var(--color-brick);
  color: var(--color-chalk);
  border: 1px solid var(--color-brick-light);
  box-shadow: 4px 4px 0px var(--color-steel-dark);
}

.btn-brick:hover {
  background-color: var(--color-brick-hover);
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px var(--color-steel-dark);
}

.btn-steel {
  background-color: transparent;
  color: var(--color-chalk);
  border: 1px solid var(--color-steel);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.4);
}

.btn-steel:hover {
  background-color: var(--color-steel-dark);
  border-color: var(--color-chalk-muted);
  transform: translateY(-2px);
}

/* Steel Girder Decor Bar */
.steel-girder-bar {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--color-steel-dark),
    var(--color-steel-dark) 15px,
    var(--color-anthracite) 15px,
    var(--color-anthracite) 30px
  );
  border-top: 1px solid var(--color-steel);
  border-bottom: 1px solid var(--color-steel);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.95)),
              radial-gradient(circle at center, rgba(153, 27, 27, 0.2) 0%, transparent 70%);
  border-bottom: 1px solid var(--color-steel-dark);
  padding: 4rem 2rem;
  text-align: center;
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(var(--color-steel) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  z-index: 2;
}

.hero-subtitle {
  color: var(--color-brick);
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-steel-light);
  margin-bottom: 2.5rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Red Brick Pattern Overlay Boxes */
.brick-card {
  background: var(--color-anthracite-card);
  border: 1px solid rgba(107, 114, 128, 0.2);
  border-left: 4px solid var(--color-brick);
  padding: 2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.brick-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-brick);
  box-shadow: var(--shadow-girders);
}

/* Sections General */
.section {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  color: var(--color-brick);
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-brick);
  margin: 1rem auto 0 auto;
}

/* Category Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--color-anthracite-card);
  border: 1px solid var(--color-steel-dark);
  color: var(--color-steel-light);
  padding: 0.6rem 1.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-brick);
  color: var(--color-chalk);
  border-color: var(--color-brick-light);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: var(--color-anthracite-card);
  border: var(--border-steel);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.product-card:hover {
  border-color: var(--color-brick);
  transform: translateY(-6px);
  box-shadow: var(--shadow-girders);
}

.product-img-wrap {
  width: 100%;
  height: 260px;
  background-color: #050b14;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-brick);
  color: var(--color-chalk);
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
}

.product-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.8rem;
  color: var(--color-brick);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
}

.product-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--color-steel-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(107, 114, 128, 0.2);
  padding-top: 1rem;
}

.product-price {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-chalk);
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-anthracite-card);
  border: var(--border-steel);
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(153, 27, 27, 0.2);
}

.testimonial-text {
  font-style: italic;
  color: var(--color-chalk-muted);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-steel-dark);
  border: 2px solid var(--color-brick);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-chalk);
}

.author-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.author-role {
  font-size: 0.8rem;
  color: var(--color-steel-light);
}

/* Contact Form & Floating Labels */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-control {
  width: 100%;
  padding: 1.25rem 1rem 0.5rem 1rem;
  background: var(--color-anthracite-card);
  border: 1px solid var(--color-steel-dark);
  color: var(--color-chalk);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-brick);
  box-shadow: 0 0 0 2px rgba(153, 27, 27, 0.2);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--color-steel-light);
  font-size: 0.9rem;
  pointer-events: none;
  transition: var(--transition-fast);
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  top: 0.35rem;
  left: 1rem;
  font-size: 0.7rem;
  color: var(--color-brick);
  font-weight: 600;
  text-transform: uppercase;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Map Canvas */
.map-canvas {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background: var(--color-anthracite-card);
  border: var(--border-steel);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

.map-placeholder-bg {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: 
    linear-gradient(var(--color-steel) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-steel) 1px, transparent 1px);
  background-size: 30px 30px;
}

.map-overlay {
  position: relative;
  z-index: 2;
}

/* Legal Pages Content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-anthracite-card);
  padding: 3.5rem;
  border: var(--border-steel);
  border-top: 4px solid var(--color-brick);
}

.legal-content h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem 0;
  color: var(--color-brick);
  border-bottom: 1px solid var(--color-steel-dark);
  padding-bottom: 0.5rem;
}

.legal-content p, .legal-content li {
  color: var(--color-chalk-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background-color: #080d17;
  border-top: 2px solid var(--color-steel-dark);
  padding: 4rem 2rem 2rem 2rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-chalk);
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--color-brick);
  margin-top: 0.4rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-steel-light);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-brick);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(107, 114, 128, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-steel);
}

/* GDPR Cookie Consent Modal */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  max-width: 440px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--color-brick);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  padding: 2rem;
  z-index: 1000;
  backdrop-filter: blur(16px);
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-desc {
  font-size: 0.85rem;
  color: var(--color-steel-light);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

.cookie-actions .btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  flex: 1;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .mobile-nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    background: var(--color-anthracite);
    border-bottom: 2px solid var(--color-brick);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    z-index: 99;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}
