:root {
  --bg: #0A0A0A;
  --fg: #F0EDE6;
  --accent: #C8B49A;
  --muted: #555555;
  --surface: #141414;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--fg); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 3px; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.1% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; height: 72px; background: transparent; border-bottom: 1px solid transparent; transition: background 0.4s ease, border-color 0.4s ease; }
nav.scrolled { background: rgba(10,10,10,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom-color: var(--muted); }
.nav-brand { font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--fg); text-decoration: none; letter-spacing: 0.05em; display: flex; align-items: center; }
.nav-brand img { max-height: 42px; object-fit: contain; }
.nav-links { display: flex; gap: 40px; list-style: none; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { font-family: 'DM Sans', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--fg); text-decoration: none; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--fg); transition: transform 0.3s ease, opacity 0.3s ease; }
.hero { position: relative; width: 100%; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-slideshow { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; clip-path: polygon(0% 110%, 100% 110%, 100% 110%, 0% 110%); transition: clip-path 1.2s cubic-bezier(0.76,0,0.24,1); }
.hero-slide.active { clip-path: polygon(-5% -5%, 105% -5%, 105% 105%, -5% 105%); }
.hero-slide.outgoing { clip-path: polygon(-5% -110%, 105% -110%, 105% -5%, -5% -5%); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0.45); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 5vw; max-width: 900px; }
.hero-eyebrow { font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px; display: block; }
.hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(72px, 12vw, 160px); line-height: 0.9; color: var(--fg); margin-bottom: 24px; letter-spacing: 0.02em; }
.hero-subline { font-size: 16px; color: #FA7261; margin-bottom: 40px; }
.hero-cta { display: inline-block; border: 1px solid var(--fg); padding: 14px 40px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--fg); text-decoration: none; transition: background 0.3s ease, color 0.3s ease; }
.hero-cta:hover { background: var(--fg); color: var(--bg); }
.hero-dots { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); opacity: 0.4; cursor: pointer; transition: all 0.4s ease; }
.hero-dot.active { opacity: 1; width: 24px; border-radius: 3px; }
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-line { width: 1px; height: 40px; background: var(--fg); animation: scrollLine 2s ease-in-out infinite; }
.scroll-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.intro { background: var(--surface); padding: 120px 5vw; }
.intro-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; max-width: 1400px; margin: 0 auto; align-items: start; }
.stats-col { display: flex; flex-direction: column; gap: 48px; }
.stat-item { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.stat-item.visible { opacity: 1; transform: translateY(0); }
.stat-number { font-family: 'Bebas Neue', sans-serif; font-size: clamp(48px, 6vw, 80px); line-height: 1; color: var(--fg); display: block; }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: #FA7261; margin-top: 8px; }
.text-col h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(36px, 6vw, 80px); line-height: 1; color: var(--fg); margin-bottom: 32px; }
.text-col p { color: var(--muted); margin-bottom: 32px; max-width: 600px; }
.text-col a { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--fg); padding-bottom: 4px; transition: color 0.3s ease, border-color 0.3s ease; }
.text-col a:hover { color: var(--accent); border-color: var(--accent); }
.portfolio { padding: 120px 5vw; }
.portfolio-header { margin-bottom: 48px; }
.portfolio-label { display: flex; align-items: center; gap: 24px; margin-bottom: 16px; }
.portfolio-label span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: #FA7261; }
.portfolio-label .rule { flex: 1; height: 1px; background: var(--muted); }
.portfolio h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(36px, 6vw, 80px); line-height: 1; color: var(--fg); }
.portfolio-grid { display: flex; height: 70vh; min-height: 500px; gap: 2px; }
.project-card { flex: 1; position: relative; overflow: hidden; cursor: pointer; transition: flex 0.6s ease; }
.project-card:hover { flex: 4; }
.portfolio-grid:hover .project-card:not(:hover) { flex: 0.5; }
.project-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.2) 50%, transparent 100%); z-index: 1; transition: background 0.6s ease; }
.project-card:hover .project-overlay { background: linear-gradient(to top, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.1) 50%, transparent 100%); }
.project-info { position: absolute; bottom: 32px; left: 24px; right: 24px; z-index: 2; transform: translateY(20px); opacity: 0.7; transition: transform 0.6s ease, opacity 0.6s ease; }
.project-card:hover .project-info { transform: translateY(0); opacity: 1; }
.project-category { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 8px; display: block; }
.project-name { font-family: 'Bebas Neue', sans-serif; font-size: clamp(24px, 3vw, 48px); line-height: 1; color: var(--fg); }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10,10,10,0.96); display: none; flex-direction: column; }
.lightbox.active { display: flex; }
.lightbox-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 5vw; }
.lightbox-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(24px, 3vw, 48px); color: var(--fg); }
.lightbox-close { font-size: 32px; color: var(--fg); background: none; border: none; cursor: pointer; line-height: 1; transition: color 0.3s ease; }
.lightbox-close:hover { color: var(--accent); }
.lightbox-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 5vw; overflow: hidden; }
.lightbox-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox-strip { display: flex; gap: 8px; padding: 24px 5vw; overflow-x: auto; scrollbar-width: none; }
.lightbox-strip::-webkit-scrollbar { display: none; }
.lightbox-thumb { flex-shrink: 0; width: 120px; height: 80px; object-fit: cover; cursor: pointer; opacity: 0.5; transition: opacity 0.3s ease; border: 2px solid transparent; }
.lightbox-thumb:hover, .lightbox-thumb.active { opacity: 1; border-color: var(--accent); }
#portfolio-video { background: var(--surface); overflow: hidden; padding: 0; }
.video-oblique { transform: skewY(-2.5deg); background: var(--surface); padding: 80px 5vw 100px; margin: 60px 0; }
.video-oblique > * { transform: skewY(2.5deg); }
.video-grid { display: flex; height: 70vh; min-height: 500px; gap: 2px; }
.video-card { flex: 1; position: relative; overflow: hidden; cursor: pointer; transition: flex 0.7s ease; }
.video-grid:hover .video-card:not(:hover) { flex: 0.5; }
.video-card:hover { flex: 4; }
.video-card > img,
.video-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.video-card:hover > img,
.video-card:hover video { transform: scale(1.04); }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.2) 50%, transparent 100%); z-index: 1; transition: background 0.7s ease; }
.video-card:hover .video-overlay { background: linear-gradient(to top, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.1) 50%, transparent 100%); }
.video-info { position: absolute; bottom: 32px; left: 24px; right: 24px; z-index: 2; transform: translateY(20px); opacity: 0.7; transition: transform 0.7s ease, opacity 0.7s ease; }
.video-card:hover .video-info { transform: translateY(0); opacity: 1; }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; opacity: 0.5; transition: opacity 0.4s ease; }
.video-card:hover .video-play { opacity: 1; }
#video-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10,10,10,0.96); display: none; flex-direction: column; }
#video-lightbox.active { display: flex; }
.video-lightbox-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 5vw; overflow: hidden; }
.video-lightbox-main video { max-width: 90vw; max-height: 80vh; }
.servizi { background: var(--fg); color: var(--bg); padding: 120px 5vw; }
.servizi h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(36px, 6vw, 80px); line-height: 1; color: var(--bg); margin-bottom: 64px; }
.servizi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.service-tile { padding: 48px 32px; border-bottom: 1px solid transparent; transition: transform 0.3s ease, border-color 0.3s ease; cursor: default; }
.service-tile:hover { transform: translateY(-4px); border-bottom-color: var(--muted); }
.service-label { font-family: 'Bebas Neue', sans-serif; font-size: 14px; color: var(--muted); margin-bottom: 16px; display: block; }
.service-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(24px, 2.5vw, 36px); line-height: 1; color: var(--bg); margin-bottom: 16px; }
.service-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.marquee-section { background: var(--surface); padding: 80px 0; overflow: hidden; }
.marquee-label { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: #FA7261; margin-bottom: 32px; padding: 0 5vw; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--muted); white-space: nowrap; padding: 0 32px; transition: color 0.3s ease; cursor: default; }
.marquee-item:hover { color: var(--fg); }
.contatti { background: var(--fg); color: var(--bg); padding: 120px 5vw; }
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; max-width: 1400px; margin: 0 auto; align-items: start; }
.inquiry-badge { display: inline-flex; align-items: stretch; border: 1px solid var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--bg); overflow: hidden; }
.badge-arrow { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; border-right: 1px solid var(--muted); font-size: 14px; flex-shrink: 0; }
.badge-main { display: flex; align-items: center; padding: 0 20px; font-weight: 500; flex-shrink: 0; }
.badge-divider { width: 1px; align-self: stretch; background: var(--muted); flex-shrink: 0; }
.badge-sub { display: flex; align-items: center; padding: 0 20px; color: var(--muted); font-weight: 400; }
.contatti-text .intro-text { font-size: 15px; color: var(--muted); line-height: 1.7; margin-top: 48px; max-width: 420px; }
.contatti-text .contact-details { display: flex; flex-direction: column; gap: 28px; margin-top: 56px; }
.contact-row { display: flex; flex-direction: column; gap: 6px; }
.contact-row .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.contact-row .value { font-size: 15px; color: var(--bg); font-weight: 500; }
.privacy-note { font-size: 11px; color: var(--muted); font-style: italic; margin-top: 64px; line-height: 1.6; }
.contatti-form { display: flex; flex-direction: column; }
.contatti-form input, .contatti-form textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--bg); border-radius: 0; padding: 24px 0; font-family: 'DM Sans', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bg); outline: none; transition: border-color 0.3s ease; margin-bottom: 24px; }
.contatti-form input::placeholder, .contatti-form textarea::placeholder { font-family: 'DM Sans', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.contatti-form input:focus, .contatti-form textarea:focus { border-bottom-color: var(--accent); }
.contatti-form textarea { height: 160px; resize: none; line-height: 1.6; margin-bottom: 40px; }
.form-checkboxes { display: flex; flex-direction: column; gap: 20px; }
.checkbox-row { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.checkbox-row input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid var(--bg); background: transparent; padding: 0; margin: 0; flex-shrink: 0; cursor: pointer; position: relative; transition: background 0.2s ease, border-color 0.2s ease; }
.checkbox-row input[type="checkbox"]:checked { background: var(--bg); border-color: var(--bg); }
.checkbox-row input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid var(--fg); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.checkbox-row label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--bg); cursor: pointer; user-select: none; line-height: 1.4; }
.form-submit { width: 100%; background: var(--bg); color: var(--fg); border: none; padding: 24px; font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; margin-top: 40px; transition: background 0.3s ease, color 0.3s ease; }
.form-submit:hover { background: var(--accent); color: var(--bg); }
#form-feedback {
  display: none;
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
}

#form-feedback.is-visible {
  display: block;
}

#form-feedback.is-success {
  color: var(--accent);
}

#form-feedback.is-error {
  color: #FA7261;
}
footer { background: var(--bg); border-top: 1px solid var(--muted); padding: 32px 5vw; display: flex; flex-direction: column; align-items: flex-start; }
footer span { font-size: 12px; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: var(--fg); }
@media (max-width: 768px) {
  .nav-links { display: none; }
.nav-toggle { display: flex; }
  .hero h1 { font-size: clamp(40px, 14vw, 72px); }
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-col { gap: 32px; }
  .portfolio-grid { flex-direction: column; height: auto; gap: 2px; }
  .project-card { height: 300px; flex: none !important; }
  .project-card:hover { flex: none !important; }
  .portfolio-grid:hover .project-card:not(:hover) { flex: none !important; }
  .project-info { transform: translateY(0); opacity: 1; }
  .video-grid { flex-direction: column; height: auto; }
  .video-card { flex: none !important; height: 60vw; width: 100%; }
  .video-grid:hover .video-card:not(:hover) { flex: none !important; }
  .video-card:hover { flex: none !important; }
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
  .contatti-grid { grid-template-columns: 1fr; gap: 80px; }
  .contatti { padding: 80px 5vw; }
  .contatti-text .intro-text { margin-top: 32px; }
  .contatti-text .contact-details { margin-top: 40px; }
  .privacy-note { margin-top: 40px; }
  .contatti-form input, .contatti-form textarea { padding: 20px 0; margin-bottom: 16px; }
  .contatti-form textarea { height: 120px; margin-bottom: 32px; }
  .form-submit { margin-top: 32px; padding: 20px; }
  .lightbox-thumb { width: 80px; height: 60px; }
  footer { flex-direction: column; gap: 8px; text-align: center; align-items: center; }
}
.nav-mobile { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: rgba(10,10,10,0.98); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.nav-mobile.active { display: flex; }
.nav-mobile a { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--fg); text-decoration: none; transition: color 0.3s ease; }
.nav-mobile a:hover { color: var(--accent); }

.service-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #FA7261;
  margin-bottom: 16px;
}
.servizi-intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 64px;
  line-height: 1.7;
}
.services-section-heading {
  grid-column: 1 / -1;
  padding: 32px 0 16px 32px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  border-top: 1px solid rgba(85,85,85,0.3);
}
.services-section-heading--photo { color: #FA7261; }
.services-section-heading--video { color: var(--fg); }
.services-section-heading-icon { color: #555555; margin-right: 8px; }
.services-section-heading-text { color: #FA7261; }
.contact-logo {
  max-width: 250px;
  margin-top: 56px;
  display: block;
}
.footer-logo {
  max-height: 40px;
  margin-bottom: 16px;
}
.video-lightbox-player {
  max-width: 90vw;
  max-height: 80vh;
}
.portfolio-cta {
  text-align: center;
  margin-top: 48px;
}
.portfolio-cta-btn {
  display: inline-block;
  border: 1px solid var(--fg);
  padding: 14px 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}
.portfolio-cta-btn:hover {
  background: var(--fg);
  color: var(--bg);
}
.portfolio-cta--video {
  padding: 0 5vw;
}
.page-header {
  padding: 160px 5vw 72px;
  background: linear-gradient(180deg, rgba(20,20,20,0.96) 0%, rgba(10,10,10,1) 100%);
}
.page-header-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.portfolio-label-text {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #FA7261;
}
.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 10vw, 140px);
  line-height: 0.92;
  margin: 18px 0 16px;
}
.page-subtitle {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 860px;
}
.gallery-page {
  padding: 32px 5vw 120px;
}
.gallery-category {
  max-width: 1400px;
  margin: 0 auto 96px;
}
.gallery-category:last-child {
  margin-bottom: 0;
}
.gallery-category-header {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.gallery-category-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 0.95;
  color: var(--fg);
}
.gallery-grid,
.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.gallery-card,
.video-gallery-card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(240,237,230,0.08);
  overflow: hidden;
}
.gallery-card {
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.gallery-card img,
.video-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-card:hover img,
.video-gallery-card:hover .video-thumb-wrapper img {
  transform: scale(1.05);
}
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.28) 52%, transparent 100%);
  transition: background 0.4s ease;
}
.gallery-card:hover .gallery-card-overlay {
  background: linear-gradient(to top, rgba(10,10,10,0.68) 0%, rgba(10,10,10,0.18) 52%, transparent 100%);
}
.gallery-card-title,
.video-gallery-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.video-gallery-card {
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.video-gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240,237,230,0.2);
}
.video-thumb-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f0f0f;
}
.video-play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.08) 100%);
  transition: background 0.35s ease, transform 0.35s ease;
}
.video-gallery-card:hover .video-play-icon {
  background: linear-gradient(to top, rgba(10,10,10,0.42) 0%, rgba(10,10,10,0.02) 100%);
  transform: scale(1.03);
}
.video-gallery-card-info {
  padding: 20px 22px 24px;
}
@media (max-width: 1024px) {
  .gallery-grid,
  .video-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .page-header {
    padding-top: 128px;
    padding-bottom: 56px;
  }
  .gallery-page {
    padding-bottom: 88px;
  }
  .gallery-category {
    margin-bottom: 72px;
  }
  .gallery-grid,
  .video-gallery-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Dynamic portfolio filters */
.gallery-page-shell {
  display: grid;
  gap: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 0 5vw;
  margin-top: 40px;
  margin-bottom: 64px;
}

.filter-btn {
  background: none;
  border: 1px solid var(--muted);
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 10px 24px;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--fg);
  color: var(--fg);
}

.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.filter-btn[hidden] {
  display: none;
}

.gallery-grid,
.video-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 0 5vw;
  min-height: 280px;
}

.gallery-card,
.video-gallery-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-card {
  aspect-ratio: 4 / 3;
}

.video-gallery-card.hidden,
.gallery-card.hidden {
  display: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 6px;
}

.gallery-card-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(18px, 2vw, 28px);
  color: var(--fg);
  line-height: 1;
}

.portfolio-empty-state {
  grid-column: 1 / -1;
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid rgba(240, 237, 230, 0.08);
  background: var(--surface);
  padding: 40px 24px;
}

.portfolio-empty-state[hidden] {
  display: none;
}

.page-subtitle {
  margin-bottom: 0;
}

.portfolio-empty-state-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 420px;
}

.lightbox-main {
  position: relative;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: 1px solid rgba(240,237,230,0.2);
  background: rgba(10,10,10,0.55);
  color: var(--fg);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.lightbox-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(10,10,10,0.78);
}

.lightbox-nav.is-hidden {
  display: none;
}

.lightbox-nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.lightbox-nav--prev {
  left: 5vw;
}

.lightbox-nav--next {
  right: 5vw;
}

@media (max-width: 768px) {
  .gallery-grid,
  .video-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 480px) {
  .gallery-grid,
  .video-gallery-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    gap: 8px;
  }

  .filter-btn {
    font-size: 10px;
    padding: 8px 16px;
  }
}

.project-card--placeholder,
.video-card--placeholder {
  background: var(--surface);
  border: 1px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.project-card--placeholder .project-overlay,
.video-card--placeholder .video-overlay,
.project-card--placeholder .project-info,
.video-card--placeholder .video-info,
.video-card--placeholder .video-play {
  display: none;
}

.home-placeholder-copy {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.8;
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid rgba(240,237,230,0.16);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-text {
  margin: 0;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.7;
}

.cookie-banner-text a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--fg);
  color: var(--fg);
  padding: 12px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.cookie-banner-btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.legal-page {
  padding: 160px 5vw 120px;
}

.legal-page-inner {
  max-width: 980px;
  margin: 0 auto;
}

.legal-page-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.legal-page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.92;
  margin-bottom: 20px;
}

.legal-page-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 56px;
}

.legal-section {
  padding: 28px 0;
  border-top: 1px solid rgba(240,237,230,0.08);
}

.legal-section:last-child {
  border-bottom: 1px solid rgba(240,237,230,0.08);
}

.legal-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  margin-bottom: 18px;
}

.legal-section p,
.legal-section li {
  color: var(--fg);
  font-size: 15px;
  line-height: 1.85;
}

.legal-section ul {
  padding-left: 20px;
}

.legal-section strong {
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-banner-btn {
    width: 100%;
  }

  .legal-page {
    padding-top: 132px;
    padding-bottom: 88px;
  }
}

/* Patch: portfolio video con overlay come portfolio foto */
.video-gallery-card {
  position: relative;
}

.video-gallery-card .video-thumb-wrapper {
  height: 100%;
}

.video-gallery-card .gallery-card-overlay {
  opacity: 0;
}

.video-gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.video-gallery-card .video-play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0.82;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.video-gallery-card:hover .video-play-icon {
  opacity: 1;
  transform: scale(1.03);
}

/* Patch: rende visibili le card dinamiche nelle pagine portfolio */
.gallery-page .gallery-card.reveal,
.gallery-page .video-gallery-card.reveal {
  opacity: 1;
  transform: none;
}

.gallery-page .gallery-card.reveal.visible,
.gallery-page .video-gallery-card.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Patch mobile: mostra sempre titolo e categoria nelle card portfolio */
@media (max-width: 768px) {
  .gallery-page .gallery-card .gallery-card-overlay,
  .gallery-page .video-gallery-card .gallery-card-overlay {
    opacity: 1;
    background: linear-gradient(
      to top,
      rgba(10, 10, 10, 0.82) 0%,
      rgba(10, 10, 10, 0.28) 48%,
      transparent 100%
    );
  }

  .gallery-page .gallery-card-category,
  .gallery-page .gallery-card-title {
    opacity: 1;
    visibility: visible;
  }

  .gallery-page .video-gallery-card .video-play-icon {
    opacity: 0.85;
  }
}
