/* ============================================================
   3DG - Responsive Site
   Modern CSS with custom properties, fluid layout, animations
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --color-bg: #111;
  --color-surface: #e9e9e9;
  --color-surface-light: #f3f3f3;
  --color-surface-dark: #222;
  --color-text: #71675e;
  --color-text-dark: #333;
  --color-heading: #382827;
  --color-accent: #d90000;
  --color-gray: #666;
  --color-light-gray: #999;
  --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --header-height: 60px;

  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.7s ease;
  --transition-gallery: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Splash Screen --- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

.splash.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-logo {
  width: 500px;
  max-width: 70vw;
  animation: splashIn 0.8s ease forwards;
}

@keyframes splashIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Crossfade transition wrapper */
.crossfade-in {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  overflow-y: auto;
  background: var(--color-surface);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

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

a:hover {
  color: var(--color-accent);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--color-heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--color-gray);
  letter-spacing: -0.02em;
  margin-bottom: 0.3em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-text-dark);
  font-weight: 400;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}

strong {
  color: var(--color-text-dark);
  font-weight: 600;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(243, 243, 243, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: var(--header-height);
  transition: all var(--transition-medium);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  z-index: 1001;
}

.logo img {
  height: 36px;
  width: auto;
}

/* Desktop Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nav .nav-separator {
  width: 1px;
  height: 16px;
  background: #bbb;
  margin: 0 2px;
}

.nav-secondary {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-secondary a {
  display: block;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-secondary a:hover,
.nav-secondary a.active {
  color: var(--color-accent);
}

.nav-secondary a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 10px;
  right: 10px;
  width: auto;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition-medium);
}

.nav-secondary a:hover::after,
.nav-secondary a.active::after {
  transform: scaleX(1);
}

.nav a {
  display: block;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 10px;
  right: 10px;
  width: auto;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition-medium), height var(--transition-medium);
}

.nav a.active::after {
  height: 4px;
}

.nav a:hover,
.nav a.active {
  color: var(--color-heading);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: all var(--transition-medium);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(243, 243, 243, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--color-text);
  padding: 12px 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-medium);
}

.mobile-nav.open a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-accent);
}

/* Stagger animation for mobile nav items */
.mobile-nav.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.3s; }
.mobile-nav.open a:nth-child(7) { transition-delay: 0.35s; }
.mobile-nav.open a:nth-child(8) { transition-delay: 0.4s; }
.mobile-nav.open a:nth-child(9) { transition-delay: 0.45s; }

/* ============================================================
   HERO / SLIDESHOW
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  margin-top: var(--header-height);
  background: #1a1a1a;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  z-index: 1;
}

.hero-slide.active {
  transform: translateX(0);
  z-index: 2;
}

.hero-slide.exit-left {
  transform: translateX(-100%);
  z-index: 2;
}

.hero-slide.exit-right {
  transform: translateX(100%);
  z-index: 2;
}

/* No transition for instant repositioning */
.hero-slide.no-transition {
  transition: none;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  filter: contrast(1.02) saturate(1.05);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 40px 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  z-index: 2;
}

.hero-overlay h2 {
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.hero-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Hero Navigation Arrows */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 1;
}

.hero-nav:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-medium);
  border: none;
  padding: 0;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* ============================================================
   SECTION HERO (for portfolio pages)
   ============================================================ */

.section-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 350px;
  max-height: 650px;
  overflow: hidden;
  margin-top: var(--header-height);
  background: #1a1a1a;
}

.section-hero [data-slideshow],
.hero [data-slideshow] {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

.content-section {
  background: var(--color-surface);
  position: relative;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.container-narrow {
  max-width: 900px;
}

/* Text columns layout */
.text-columns {
  column-count: 3;
  column-gap: 36px;
  column-fill: balance;
  margin-top: 20px;
  overflow: hidden;
}

.text-columns > div {
  display: inline;
}

.text-columns p {
  text-align: justify;
  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  margin-bottom: 0;
  break-inside: auto;
  orphans: 2;
  widows: 2;
}

/* Section intro */
.section-intro {
  margin-bottom: 40px;
}

.section-intro .brand-prefix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-gray);
  font-weight: 300;
}

.section-intro .brand-prefix span {
  color: var(--color-light-gray);
}

/* Homepage intro */
.home-intro {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.home-intro-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.home-sidebar {
  position: relative;
}

.home-sidebar h3 {
  text-align: right;
  margin-bottom: 15px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

/* ============================================================
   GALLERY / PORTFOLIO GRID
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  background: #2a2a2a;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-gallery), filter var(--transition-gallery);
  will-change: transform;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.4));
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Larger featured items */
.gallery-item.featured {
  grid-column: span 2;
  aspect-ratio: 16 / 8;
}

/* Latest projects thumbnails (homepage) */
.latest-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.latest-project-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.latest-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.latest-project-thumb:hover img {
  transform: scale(1.1);
}

/* ============================================================
   SECTION CATEGORIES (homepage)
   ============================================================ */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.7));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: background var(--transition-medium);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.75));
}

.category-card-overlay h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: translateY(5px);
  transition: transform var(--transition-medium);
}

.category-card:hover .category-card-overlay h3 {
  transform: translateY(0);
}

.category-card-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-medium);
}

.category-card:hover .category-card-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.9);
  transition: transform var(--transition-medium);
  cursor: default;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 2001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 2001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  z-index: 2001;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--color-surface-dark);
  padding: 28px 24px;
  text-align: center;
  color: #aaa;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-line1,
.footer-line2 {
  display: inline;
}

.footer-line2::before {
  content: ' | ';
}

.footer strong {
  color: #dedede;
}

.footer .accent {
  color: var(--color-accent);
}

.footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered gallery items */
.gallery-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease,
              box-shadow var(--transition-medium);
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PROFILO & CONTATTI
   ============================================================ */

.profilo-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  align-items: start;
}

.services-list {
  margin-top: 15px;
}

.services-list li {
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.6;
}

.services-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.profilo-image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.contact-info {
  max-width: 500px;
}

.contact-info p {
  font-size: 1.05rem;
  line-height: 2;
}

.contact-info a {
  color: var(--color-accent);
}

/* ============================================================
   PAGE TITLE BAR
   ============================================================ */

.page-title-bar {
  margin-top: var(--header-height);
  background: var(--color-surface-dark);
  padding: 50px 24px;
  text-align: center;
}

.page-title-bar h1 {
  color: #fff;
  font-weight: 300;
  margin: 0;
}

.page-title-bar h2 {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  font-weight: 400;
  margin-top: 8px;
}

/* ============================================================
   LOADING ANIMATION
   ============================================================ */

.gallery-item img {
  background: linear-gradient(110deg, #e0e0e0 8%, #f0f0f0 18%, #e0e0e0 33%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
}

.gallery-item img[src] {
  animation: none;
  background: none;
}

@keyframes shimmer {
  to { background-position-x: -200%; }
}

/* Lazy load fade-in */
.gallery-item img.loaded {
  animation: fadeInImg 0.4s ease forwards;
}

@keyframes fadeInImg {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .home-intro {
    grid-template-columns: 1fr;
  }

  .home-intro-text {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    order: -1;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profilo-layout {
    grid-template-columns: 1fr;
  }

  .profilo-image {
    max-width: 400px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .gallery-item.featured {
    grid-column: span 1;
    aspect-ratio: 16 / 10;
  }

  .hero {
    height: 60vh;
  }

  .section-hero {
    height: 40vh;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 40px 16px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-card {
    aspect-ratio: 16 / 9;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
  }

  .gallery-item {
    aspect-ratio: 1;
  }

  .hero {
    height: 50vh;
    min-height: 300px;
  }

  .hero-overlay {
    padding: 30px 20px 25px;
  }

  .hero-nav {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .hero-nav.prev { left: 10px; }
  .hero-nav.next { right: 10px; }

  .section-hero {
    height: 35vh;
    min-height: 250px;
  }

  .text-columns {
    column-count: 1;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .latest-projects {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer {
    font-size: 0.78rem;
    padding: 20px 16px;
  }

  .footer-line1,
  .footer-line2 {
    display: block;
  }

  .footer-line2::before {
    content: none;
  }

  .page-title-bar {
    padding: 35px 16px;
  }
}

/* Large screens */
@media (min-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

/* ============================================================
   COOKIE NOTICE (minimal)
   ============================================================ */

.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: rgba(34, 34, 34, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #ccc;
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: transform var(--transition-medium);
}

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

.cookie-notice button {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 8px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--transition-fast);
  white-space: nowrap;
}

.cookie-notice button:hover {
  background: #ff1a1a;
}

/* ============================================================
   PRIVACY
   ============================================================ */

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h3 {
  margin-top: 2em;
}
