/* ═══════════════════════════════════════════════════════════
   MORO FILMS — Design System
   Tema: Chiaro con accenti rosso #E8341A
   Font: Inter (self-hosted in fonts/, licenza OFL)
═══════════════════════════════════════════════════════════ */

/* Inter servito dal sito: nessuna richiesta a Google Fonts */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --red: #E8341A;
  --red-dark: #C42810;
  --red-light: #FDECEA;
  --black: #111111;
  --gray-800: #333333;
  --gray-600: #6B6B6B;
  --gray-400: #AAAAAA;
  --gray-200: #E5E5E5;
  --gray-100: #F4F4F4;
  --white: #FFFFFF;
  --bg: #FAFAFA;

  --font: 'Inter', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 8px 32px rgba(232, 52, 26, 0.25);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

ul {
  list-style: none;
}

[hidden] {
  display: none !important;
}

/* ─── Typography ────────────────────────────────────────── */
.text-display {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.text-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.text-body {
  font-size: 1rem;
  line-height: 1.7;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-red {
  color: var(--red);
}

.text-gray {
  color: var(--gray-600);
}

/* ─── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232, 52, 26, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: var(--red);
}

/* ─── Navbar ────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: var(--transition);
}

#navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

#navbar .nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
}

#navbar .nav-logo img {
  height: 100%;
  width: auto;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--red);
}

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

.nav-links a.active {
  color: var(--red);
}

.nav-cta {
  margin-left: 16px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow-md);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.nav-mobile a:hover {
  color: var(--red);
}

.nav-mobile .btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

/* ─── Hero ──────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding-top: var(--nav-h);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--red-light);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--red);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-stat-value span {
  color: var(--red);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
}

.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-img-wrap:hover img {
  transform: scale(1.04);
}

.hero-badge {
  position: absolute;
  bottom: 28px;
  left: -24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--red-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-badge-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-badge-sub {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.hero-dot-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.08;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}

.scroll-hint svg {
  width: 20px;
  height: 20px;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ─── About ─────────────────────────────────────────────── */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-accent {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--red);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.3;
}

.about-content {}

.about-content .section-label {
  margin-bottom: 12px;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-top: 20px;
}

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

.about-stat {
  text-align: center;
  padding: 20px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.about-stat:hover {
  background: var(--red-light);
  transform: translateY(-3px);
}

.about-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 4px;
}

/* ─── Servizi ───────────────────────────────────────────── */
#servizi {
  background: var(--bg);
}

.servizi-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 60px;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.servizio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.servizio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: var(--transition);
}

.servizio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: transparent;
  cursor: pointer;
}

.servizio-card:hover::before {
  transform: scaleX(1);
}

.servizio-icon {
  width: 56px;
  height: 56px;
  background: var(--red-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.servizio-card:hover .servizio-icon {
  background: var(--red);
}

.servizio-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: left;
}

.servizio-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  text-align: left;
}

.servizio-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  transition: var(--transition);
}

.servizio-card:hover .servizio-cta svg {
  transform: translateX(4px);
}

.servizio-cta svg {
  transition: transform var(--transition);
}

/* ─── Servizio Modal ────────────────────────────────────── */
.servizio-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.servizio-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.servizio-modal-inner {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  opacity: 0;
}

/* Scrollbar personalizzata per evitare che esca dai bordi arrotondati */
.servizio-modal-inner::-webkit-scrollbar {
  width: 8px;
}

.servizio-modal-inner::-webkit-scrollbar-track {
  background: transparent;
  margin: 24px 0;
  /* Allontana la barra dagli angoli arrotondati in alto e in basso */
}

.servizio-modal-inner::-webkit-scrollbar-thumb {
  background-color: var(--gray-300);
  border-radius: 10px;
}

.servizio-modal-inner::-webkit-scrollbar-thumb:hover {
  background-color: var(--gray-400);
}

.servizio-modal.is-open .servizio-modal-inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.servizio-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gray-100);
  font-size: 1.4rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

.servizio-modal-close:hover {
  background: var(--red);
  color: var(--white);
}

.servizio-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.servizio-modal-icon {
  width: 64px;
  height: 64px;
  background: var(--red-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.servizio-modal-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  display: block;
  margin-bottom: 4px;
}

.servizio-modal-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.2;
}

.servizio-modal-desc {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 28px;
}

.servizio-modal-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.servizio-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--gray-100);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-800);
}

.servizio-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}

.servizio-modal-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.servizio-modal-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.servizio-modal-gallery-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-400);
  font-size: 0.9rem;
}

.servizio-modal-btn {
  display: inline-flex;
  margin-top: 4px;
}

/* ─── Portfolio Preview ─────────────────────────────────── */
#portfolio-preview {
  background: var(--white);
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}

/* Masonry grid */
.masonry-grid {
  columns: 3;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform var(--transition);
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  background: var(--red);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ─── Video / Showreel ──────────────────────────────────── */
#video {
  background: var(--bg);
}

.video-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 60px;
}

.video-privacy-note {
  margin-top: 12px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--gray-400);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--gray-200);
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.video-play-btn svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  transition: var(--transition);
}

.video-card:hover .video-play-btn {
  background: rgba(0, 0, 0, 0.3);
}

.video-card:hover .video-play-btn svg {
  transform: scale(1.1);
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.video-info p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal.open {
  display: flex;
}

.video-modal-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
}

.video-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.video-modal-close:hover {
  opacity: 1;
}

.video-modal iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius-md);
}

.video-modal-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.video-modal-external:hover {
  background: rgba(255, 255, 255, 0.22);
  color: white;
}

/* ─── Lightbox ──────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  z-index: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  width: auto;
  height: 36px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--red);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social-btn:hover {
  background: var(--red);
}

.footer-social-btn svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--red);
}

/* ─── Page Header (per portfolio e contatti) ────────────── */
.page-header {
  padding: calc(var(--nav-h) + 60px) 0 60px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

/* ─── Privacy Page ──────────────────────────────────────── */
.legal-content {
  max-width: 760px;
  color: var(--gray-800);
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--black);
  margin: 48px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p + p,
.legal-content ul + p,
.legal-content p + ul {
  margin-top: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 6px;
}

.legal-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  margin-top: 48px;
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ─── Portfolio Page ────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  background: var(--gray-200);
  color: var(--black);
}

.filter-tab.active {
  background: var(--red);
  color: var(--white);
}

/* Full masonry for portfolio page */
.masonry-full {
  columns: 4;
  column-gap: 16px;
}

.masonry-full .masonry-item {
  margin-bottom: 16px;
}

/* ─── Contatti Page ─────────────────────────────────────── */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: var(--red-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contact-item-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
}

.form-input,
.form-select,
.form-textarea {
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(232, 52, 26, 0.08);
}

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

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

.form-privacy-note {
  margin-top: 14px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--gray-600);
  text-align: center;
}

.form-privacy-note a,
.video-privacy-note a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  color: var(--gray-600);
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* ─── Animations ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    gap: 24px;
  }

  .masonry-grid {
    columns: 2;
  }

  .masonry-full {
    columns: 3;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contatti-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .masonry-grid {
    columns: 2;
  }

  .masonry-full {
    columns: 2;
  }

  .servizi-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {

  .masonry-grid,
  .masonry-full {
    columns: 1;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .servizio-modal-inner {
    padding: 28px 20px;
  }

  .servizio-modal-header {
    gap: 14px;
  }

  .servizio-modal-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .servizio-modal-inner {
    padding: 32px 20px;
    border-radius: var(--radius-lg);
  }

  .servizio-modal-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}