/* ================================================================
   MAXSPAR CARBON MASTS — Modern Dark Theme
   Inspired by Polestar & Stripe Design Language
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== CSS VARIABLES ===== */
:root {
  --bg:          #080808;
  --surface:     #111111;
  --surface-2:   #1A1A1A;
  --surface-3:   #222222;
  --border:      rgba(255,255,255,0.07);
  --border-s:    rgba(255,255,255,0.14);

  --text:        #FFFFFF;
  --text-sec:    #888888;
  --text-muted:  #444444;

  --red:         #CC0000;
  --red-h:       #E50000;
  --red-sub:     rgba(204,0,0,0.09);
  --red-glow:    rgba(204,0,0,0.28);

  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-d:      'Space Grotesk', 'Inter', sans-serif;

  --nav-h:       70px;
  --max-w:       1280px;
  --r:           4px;
  --r-lg:        8px;

  --ease:        cubic-bezier(.4,0,.2,1);
  --t:           .3s var(--ease);
  --t-slow:      .65s var(--ease);

  --blur:        blur(22px) saturate(180%);
  --shadow:      0 4px 24px rgba(0,0,0,.5);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.7);
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-d); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
::selection { background: var(--red); color: #fff; }

/* ===== UTILITIES ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.eyebrow::before { content:''; display:block; width:24px; height:2px; background:var(--red); }
.divider { width: 44px; height: 3px; background: var(--red); margin: 18px 0; }
.centered { text-align: center; }
.centered .divider { margin: 18px auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; font-size: .85rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; border: none;
  cursor: pointer; transition: var(--t); position: relative;
  font-family: var(--font);
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-h); transform: translateY(-2px); box-shadow: 0 8px 24px var(--red-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border-s); }
.btn-outline:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-sec); padding: 12px 0; border-bottom: 1px solid var(--border); }
.btn-ghost:hover { color: var(--red); border-color: var(--red); }
.btn svg { width: 14px; height: 14px; transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }

/* ===== PAGE LOADER ===== */
.page-loader {
  position: fixed; inset: 0; background: var(--bg); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s, visibility .6s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo img { width: 100px; filter: brightness(0) invert(1); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.25; transform:scale(.96)} 50%{opacity:1; transform:scale(1)} }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000; transition: var(--t);
}
.navbar.scrolled {
  background: rgba(8,8,8,.88);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; height: 100%;
  max-width: var(--max-w); margin: 0 auto; padding: 0 40px; gap: 32px;
}
.nav-logo img { height: 34px; width: auto; filter: brightness(0) invert(1); transition: var(--t); }
.nav-logo:hover img { filter: brightness(0) saturate(100%) invert(14%) sepia(100%) saturate(7000%) hue-rotate(5deg) brightness(90%) contrast(120%); }

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 4px; padding: 7px 13px;
  font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.65);
  transition: var(--t); border-radius: var(--r); white-space: nowrap;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: #fff; background: rgba(255,255,255,.06); }

/* Dropdown */
.nav-dd { position: relative; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 210px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--t); box-shadow: var(--shadow-lg);
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd-menu a {
  display: block; padding: 9px 13px; font-size: .85rem;
  color: var(--text-sec); border-radius: var(--r); transition: var(--t);
}
.nav-dd-menu a:hover { color: #fff; background: rgba(255,255,255,.06); padding-left: 18px; }
.dd-arrow { font-size: .55rem; transition: transform var(--t); }
.nav-dd:hover .dd-arrow { transform: rotate(180deg); }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang-sw { display: flex; align-items: center; gap: 2px; font-size: .78rem; font-weight: 500; }
.lang-sw a { padding: 4px 8px; border-radius: var(--r); color: var(--text-sec); transition: var(--t); }
.lang-sw a:hover, .lang-sw a.active { color: #fff; background: rgba(255,255,255,.08); }
.lang-sw span { color: var(--text-muted); }
.nav-soc { display: flex; gap: 2px; }
.nav-soc a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: var(--text-sec); transition: var(--t);
}
.nav-soc a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-soc svg { width: 17px; height: 17px; }

/* Hamburger */
.nav-ham { display: none; flex-direction: column; gap: 5px; width: 32px; height: 32px; align-items: center; justify-content: center; background: transparent; border: none; cursor: pointer; margin-left: auto; }
.nav-ham span { display: block; width: 22px; height: 1.5px; background: #fff; transition: var(--t); transform-origin: center; }
.nav-ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-ham.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 999; padding: calc(var(--nav-h) + 24px) 40px 40px; flex-direction: column; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; font-size: 1.4rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--border); transition: var(--t); }
.mobile-menu a:hover { color: var(--red); }
.mobile-sub a { font-size: 1.05rem; font-weight: 400; color: var(--text-sec); padding-left: 20px; }
.mobile-soc { display: flex; gap: 12px; padding-top: 24px; }
.mobile-soc a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-s); font-size: .7rem; font-size: 0; }
.mobile-soc svg { width: 20px; height: 20px; }

@media (max-width: 1024px) { .nav-links, .nav-actions { display: none; } .nav-ham { display: flex; } }
@media (max-width: 600px) { .container { padding: 0 20px; } .nav-inner { padding: 0 20px; } }

/* ===== HERO ===== */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 50%, rgba(150,0,0,.12) 100%); }
.hero-overlay-b { position: absolute; bottom: 0; left: 0; right: 0; height: 220px; background: linear-gradient(to top, var(--bg), transparent); }
.hero-content { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: var(--nav-h) 40px 0; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 800; line-height: 1.0; letter-spacing: -.035em; max-width: 720px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.65); max-width: 480px; margin-bottom: 36px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 36px; right: 40px; display: flex; gap: 8px; z-index: 2; }
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: var(--t); border: none; }
.hero-dot.active { background: var(--red); width: 22px; border-radius: 3px; }
.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.35); animation: scr 2s infinite; z-index: 2; }
.hero-scroll svg { width: 18px; }
@keyframes scr { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(7px)} }

/* ===== STATS ===== */
.stats-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); }
.stat-item { background: var(--surface); padding: 44px 32px; text-align: center; position: relative; overflow: hidden; transition: var(--t); }
.stat-item::after { content:''; position:absolute; bottom:0; left:50%; transform:translateX(-50%); width:0; height:2px; background:var(--red); transition: width .6s var(--ease); }
.stat-item:hover::after { width:100%; }
.stat-num { font-family: var(--font-d); font-size: clamp(2.4rem,5vw,3.4rem); font-weight: 700; color: var(--red); line-height: 1; display: block; margin-bottom: 8px; letter-spacing: -.02em; }
.stat-label { font-size: .78rem; color: var(--text-sec); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
@media (max-width:768px) { .stats-grid { grid-template-columns: repeat(2,1fr); } .stat-item { padding: 32px 20px; } }

/* ===== PRODUCTS GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 3px; }
.product-card { position: relative; overflow: hidden; aspect-ratio: 16/10; cursor: pointer; background: var(--surface-2); }
.product-card.wide { grid-column: span 2; aspect-ratio: 21/9; }
.product-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform var(--t-slow); filter: brightness(.45); }
.product-card:hover .product-bg { transform: scale(1.05); filter: brightness(.3); }
.product-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, transparent 65%); }
.product-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; }
.product-tag { font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.product-content h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.product-content p { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.5; margin-bottom: 20px; transform: translateY(12px); opacity: 0; transition: var(--t); max-width: 340px; }
.product-card:hover .product-content p { opacity: 1; transform: translateY(0); }
.product-link { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); transition: var(--t); }
.product-link svg { width: 14px; transition: transform var(--t); }
.product-card:hover .product-link svg { transform: translateX(5px); }
@media (max-width:768px) { .products-grid { grid-template-columns: 1fr; } .product-card.wide { grid-column: span 1; aspect-ratio: 16/10; } }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feature-item { padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: var(--t); position: relative; overflow: hidden; }
.feature-item::before { content:''; position:absolute; top:0; left:0; width:100%; height:2px; background:var(--red); transform:scaleX(0); transform-origin:left; transition: transform var(--t-slow); }
.feature-item:hover { border-color: var(--border-s); transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-item:hover::before { transform: scaleX(1); }
.feature-icon { width: 46px; height: 46px; background: var(--red-sub); border-radius: var(--r); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-icon svg { width: 22px; height: 22px; color: var(--red); }
.feature-item h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature-item p { font-size: .875rem; color: var(--text-sec); line-height: 1.6; }
@media (max-width:900px) { .features-grid { grid-template-columns: 1fr; } }

/* ===== SPLIT SECTION ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.rev .split-img { order: -1; }
.split-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; }
.split-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.split:hover .split-img img { transform: scale(1.04); }
.split-text h2 { font-size: clamp(1.5rem,3vw,2.2rem); margin-bottom: 16px; }
.split-text p { color: var(--text-sec); line-height: 1.72; margin-bottom: 12px; font-size: .95rem; }
.split-text .btn { margin-top: 20px; }
@media (max-width:900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev .split-img { order: -1; } }

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; }
.gallery-item { position: relative; aspect-ratio: 1; overflow: hidden; cursor: pointer; background: var(--surface-2); }
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.gallery-item:hover img { transform: scale(1.09); }
.gallery-hover { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; transition: var(--t); }
.gallery-item:hover .gallery-hover { background: rgba(0,0,0,.5); }
.gallery-hover svg { width: 28px; height: 28px; color: #fff; opacity: 0; transform: scale(.8); transition: var(--t); }
.gallery-item:hover .gallery-hover svg { opacity: 1; transform: scale(1); }
@media (max-width:900px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; } }

/* ===== LIGHTBOX ===== */
.lightbox { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.95); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-inner { position: relative; max-width: 88vw; }
.lb-inner img { max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: var(--r); }
.lb-close { position: absolute; top: -44px; right: 0; background: transparent; border: none; color: rgba(255,255,255,.6); font-size: 1.6rem; cursor: pointer; transition: var(--t); }
.lb-close:hover { color: #fff; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: none; color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: var(--t); }
.lb-prev { left: -60px; } .lb-next { right: -60px; }
.lb-prev:hover, .lb-next:hover { background: var(--red); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { height: 52vh; min-height: 320px; position: relative; display: flex; align-items: flex-end; padding-bottom: 72px; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.3); }
.page-hero::after { content:''; position:absolute; inset:0; background: linear-gradient(to top, var(--bg) 0%, transparent 55%); }
.page-hero-c { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; padding: 0 40px; width: 100%; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-sec); margin-bottom: 12px; font-weight: 500; }
.breadcrumb a:hover { color: var(--red); }
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); }

/* ===== CONTENT PAGES ===== */
section { padding: 80px 0; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 72px; }
@media (max-width:900px) { .content-grid { grid-template-columns: 1fr; } }
.content-body h2 { font-size: 1.65rem; margin: 52px 0 14px; }
.content-body h2:first-child { margin-top: 0; }
.content-body h3 { font-size: 1.15rem; color: var(--red); margin: 32px 0 10px; }
.content-body p { color: var(--text-sec); line-height: 1.74; margin-bottom: 14px; font-size: .95rem; }
.content-body ul { margin: 14px 0 24px; }
.content-body ul li { display: flex; gap: 14px; padding: 9px 0; color: var(--text-sec); font-size: .93rem; border-bottom: 1px solid var(--border); }
.content-body ul li::before { content:'—'; color: var(--red); flex-shrink: 0; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.sw { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.sw h4 { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sw-nav a { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: .87rem; color: var(--text-sec); border-bottom: 1px solid var(--border); transition: var(--t); }
.sw-nav a:last-child { border-bottom: none; }
.sw-nav a:hover, .sw-nav a.active { color: var(--red); padding-left: 6px; }
.sw-nav a::after { content:'›'; }
.sw-contact p { font-size: .87rem; color: var(--text-sec); margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px; }
.sw-contact p a:hover { color: var(--red); }

/* ===== TABLE ===== */
.profiles-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin: 20px 0; }
.profiles-table thead tr { border-bottom: 2px solid var(--red); }
.profiles-table th { text-align: left; padding: 8px 14px; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-sec); }
.profiles-table td { padding: 8px 14px; color: var(--text-sec); border-bottom: 1px solid var(--border); font-family: 'SF Mono','Consolas',monospace; }
.profiles-table tr:hover td { color: var(--text); background: var(--red-sub); }

/* ===== MASTS LIST ===== */
.masts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.mast-item { padding: 8px 14px; font-size: .8rem; color: var(--text-sec); border-left: 2px solid var(--border); transition: var(--t); }
.mast-item:hover { color: var(--text); border-left-color: var(--red); padding-left: 18px; }
@media (max-width:600px) { .masts-grid { grid-template-columns: repeat(2,1fr); } }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
@media (max-width:900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-sec); }
.form-input { padding: 12px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); color: var(--text); font-family: var(--font); font-size: .93rem; transition: var(--t); outline: none; }
.form-input:focus { border-color: var(--red); background: var(--surface-3); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; min-height: 130px; }
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.ci-item { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon { width: 42px; height: 42px; background: var(--red-sub); border-radius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-icon svg { width: 18px; height: 18px; color: var(--red); }
.ci-text h5 { font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.ci-text p, .ci-text a { font-size: .88rem; color: var(--text-sec); }
.ci-text a:hover { color: var(--red); }
.map-wrap { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); margin-top: 32px; }
.map-wrap iframe { width: 100%; height: 280px; border: none; filter: invert(1) hue-rotate(180deg) saturate(.5) brightness(.85); }

/* ===== ARCHITECTURE ===== */
.arch-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.arch-project { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; }
.arch-project img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.arch-project:hover img { transform: scale(1.05); }
.arch-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, rgba(0,0,0,.9), transparent); }
.arch-label h3 { font-size: 1.1rem; }
.arch-label p { font-size: .8rem; color: var(--text-sec); margin-top: 4px; }
@media (max-width:768px) { .arch-grid { grid-template-columns: 1fr; } }

/* ===== REFERENCE LIST ===== */
.ref-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.ref-col h4 { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--red-sub); }
.ref-col li { font-size: .82rem; color: var(--text-sec); padding: 5px 0; border-bottom: 1px solid var(--border); transition: var(--t); }
.ref-col li:hover { color: var(--text); padding-left: 6px; }
@media (max-width:600px) { .ref-grid { grid-template-columns: repeat(2,1fr); } }

/* ===== TRADEFAIR ===== */
.tradefair { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tf-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 48px 0; }
.tf-inner img { height: 72px; width: auto; opacity: .85; }
.tf-text h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tf-text p { color: var(--text-sec); font-size: .9rem; }
@media (max-width:600px) { .tf-inner { flex-direction: column; text-align: center; } }

/* ===== INSTAGRAM BAND ===== */
.insta-band { background: var(--surface); }
.insta-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.insta-handle { display: flex; align-items: center; gap: 10px; color: var(--text-sec); font-size: .88rem; }
.insta-handle svg { width: 20px; height: 20px; color: var(--red); }
.insta-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; }
.insta-item { aspect-ratio: 1; overflow: hidden; position: relative; background: var(--surface-2); }
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.insta-item:hover img { transform: scale(1.09); }
.insta-overlay { position: absolute; inset: 0; background: rgba(204,0,0,0); display: flex; align-items: center; justify-content: center; transition: var(--t); }
.insta-item:hover .insta-overlay { background: rgba(204,0,0,.72); }
.insta-overlay svg { width: 24px; height: 24px; color: #fff; opacity: 0; transition: var(--t); }
.insta-item:hover .insta-overlay svg { opacity: 1; }
@media (max-width:900px) { .insta-grid { grid-template-columns: repeat(3,1fr); } }

/* Behold widget wrapper */
.behold-wrapper { width: 100%; }
.behold-wrapper > div { width: 100%; }

/* ===== FOOTER ===== */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 64px; margin-bottom: 52px; padding-bottom: 52px; border-bottom: 1px solid var(--border); }
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-logo img { height: 30px; filter: brightness(0) invert(1); opacity: .65; transition: var(--t); }
.footer-logo:hover img { opacity: 1; }
.footer-tagline { font-size: .85rem; color: var(--text-sec); line-height: 1.65; max-width: 230px; }
.footer-soc { display: flex; gap: 8px; }
.footer-soc a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-sec); transition: var(--t); }
.footer-soc a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-soc svg { width: 15px; height: 15px; }
.footer-col h5 { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .85rem; color: var(--text-sec); transition: var(--t); }
.footer-col a:hover { color: var(--red); padding-left: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: .78rem; color: var(--text-muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: .78rem; color: var(--text-muted); transition: var(--t); }
.footer-legal a:hover { color: var(--text-sec); }
@media (max-width:900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width:480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== BACK TO TOP ===== */
.btt { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; background: var(--red); color: #fff; border: none; border-radius: var(--r); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(16px); transition: var(--t); z-index: 900; box-shadow: 0 4px 16px var(--red-glow); }
.btt.visible { opacity: 1; transform: translateY(0); }
.btt:hover { background: var(--red-h); transform: translateY(-3px); }
.btt svg { width: 17px; }

/* ===== COOKIE BANNER ===== */
.cookie { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface-2); border-top: 1px solid var(--border); padding: 14px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; z-index: 1500; transform: translateY(100%); transition: var(--t); }
.cookie.show { transform: translateY(0); }
.cookie p { font-size: .8rem; color: var(--text-sec); }
.cookie p a { color: var(--red); }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .72s ease, transform .72s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.d1{transition-delay:.1s} .d2{transition-delay:.2s} .d3{transition-delay:.3s} .d4{transition-delay:.4s}

/* ===== SECTION HELPERS ===== */
.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.7rem,3.5vw,2.6rem); margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; color: var(--text-sec); max-width: 580px; line-height: 1.7; }
.section-head.centered p { margin-left: auto; margin-right: auto; }


/* ===== MOBILE LANGUAGE SWITCHER ===== */
.mobile-lang {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 0 8px; margin-top: 8px;
  border-top: 1px solid var(--border);
}
.mobile-lang a {
  font-size: 1rem !important; font-weight: 600;
  color: var(--text-sec) !important;
  border: 1px solid var(--border-s) !important;
  border-bottom: 1px solid var(--border-s) !important;
  border-radius: var(--r) !important;
  padding: 10px 28px !important;
  transition: var(--t);
}
.mobile-lang a.active,
.mobile-lang a:hover { color: #fff !important; background: var(--red) !important; border-color: var(--red) !important; }
.mobile-lang span { display: none; }

/* ===== PROFILES IMAGE + TABLE (aluminium masts) ===== */
.profiles-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin: 40px 0;
}
.profiles-img {
  width: 260px;
  flex-shrink: 0;
  border-radius: var(--r-lg);
  height: auto;
  display: block;
  max-width: 100%;
}
@media (max-width: 760px) {
  .profiles-layout { flex-direction: column; }
  .profiles-img { width: 100%; flex-shrink: 1; }
}

/* ===== RESPONSIVE MOBILE EXTRA ===== */
@media (max-width: 640px) {
  /* Menu mobile padding */
  .mobile-menu { padding-left: 20px; padding-right: 20px; }

  /* Hero content */
  .hero-content { padding-left: 20px !important; padding-right: 20px !important; }
  .hero-dots { right: 20px; }

  /* Page hero */
  .page-hero-c { padding-left: 20px !important; padding-right: 20px !important; }

  /* Override inline 2-column form grids */
  .form-stack > div[style] { display: flex !important; flex-direction: column !important; }

  /* Lightbox buttons — rimangono visibili a schermo */
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-inner { max-width: 96vw; }
  .lb-inner img { max-width: 96vw; max-height: 80vh; }

  /* Split layout — riduzione gap */
  .split { gap: 24px; }

  /* Architecture glass frontage 2-col inline */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer { padding: 48px 0 24px; }
  .footer-grid { gap: 28px; }

  /* Bottone back to top */
  .btt { bottom: 16px; right: 16px; }
}
