/* =====================================================
   SIGIX — style.css  v3.0 (corretto)
   ===================================================== */

:root {
  --primary:    #2f6df6;
  --primary-d:  #1a52d4;
  --accent:     #7b86ff;
  --bg:         #ffffff;
  --muted:      #f4f6fb;
  --text:       #071027;
  --muted-text: #6b7280;
  --card-w:     300px;
  --card-h:     600px;
  --gap:        20px;
  --container:  1240px;
  --radius:     16px;
  --ease:       cubic-bezier(.4,0,.2,1);
  --ease-spring:cubic-bezier(.16,1,.3,1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
ul { list-style: none; }

/* ─── LINKS ─── */
a { text-decoration: none; color: inherit; transition: color .25s var(--ease); }
a:hover { color: var(--primary); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ─── UTILS ─── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─── HEADER ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: 1200;
  border-bottom: 1px solid rgba(7,16,39,.06);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(7,16,39,.09); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--container); margin: 0 auto;
}
.contact-info h4 { font-size: clamp(1.2rem,2.4vw,1.9rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
h5 { font-size: clamp(1rem,2vw,1.2rem); font-weight: 600; line-height: 1.2; margin-bottom: 1rem; }
.logo { display: flex; align-items: center; margin: 10px 0; }
.logo-link { display: flex; align-items: center; }
.logo-image {
  height: 72px; width: auto;
  transition: transform .3s var(--ease), opacity .3s;
}
.logo-link:hover .logo-image { transform: scale(1.04); opacity: .9; }
@media (max-width: 768px) { .logo-image { height: 50px; } }

/* NAV DESKTOP */
.nav-desktop { display: none; gap: 32px; align-items: center; }
.nav-desktop .menu-link {
  font-weight: 600; font-size: .93rem; color: var(--text);
  position: relative; padding-bottom: 3px;
}
.nav-desktop .menu-link::after {
  content: ''; position: absolute;
  left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--primary); border-radius: 2px;
  transition: width .28s var(--ease-spring);
}
.nav-desktop .menu-link:hover::after { width: 100%; }
.nav-desktop .menu-link:hover { color: var(--primary); }

/* HAMBURGER */
.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 8px;
  transition: background .2s;
}
.hamburger:hover { background: rgba(47,109,246,.08); }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .35s var(--ease-spring), opacity .25s;
}
.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); }

@media (min-width: 1024px) { .nav-desktop { display: flex; } .hamburger { display: none; } }

/* MOBILE NAV */
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(5,8,18,.65); backdrop-filter: blur(6px);
  z-index: 1240; opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.nav-overlay.visible { opacity: 1; visibility: visible; }

.nav-panel {
  position: fixed; top: 0; right: -100%;
  width: min(78%, 380px); height: 100dvh;
  background: linear-gradient(160deg, #050d1f 0%, #0a1a40 100%);
  color: #fff; z-index: 1250;
  padding: 80px 32px 40px;
  overflow-y: auto;
  transition: right .45s var(--ease-spring);
  box-shadow: -8px 0 40px rgba(0,0,0,.4);
}
.nav-panel.open { right: 0; }

.nav-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.25);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s var(--ease-spring);
}
.nav-close::before, .nav-close::after {
  content: ''; position: absolute;
  width: 18px; height: 2px; background: #fff; border-radius: 2px;
}
.nav-close::before { transform: rotate(45deg); }
.nav-close::after  { transform: rotate(-45deg); }
.nav-close:hover { background: var(--primary); border-color: var(--primary); transform: rotate(90deg) scale(1.08); }

.nav-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.nav-list .menu-link {
  font-size: 2rem; font-weight: 800; color: #fff;
  display: block; line-height: 1.2; padding: 6px 0;
  opacity: .85; transition: opacity .2s, transform .2s var(--ease-spring), color .2s;
}
.nav-list .menu-link:hover { opacity: 1; color: var(--accent); transform: translateX(6px); }

/* ─── MAIN ─── */
#main { padding-top: 90px; }

/* ─── HERO ─── */
.hero, section#home.hero, #home {
  position: relative !important; width: 100% !important;
  min-height: 70vh !important; display: grid !important;
  place-items: center !important; overflow: hidden !important;
  margin: 0 !important; padding: 0 !important;
}
.hero-media {
  position: absolute !important; inset: 0;
  z-index: 1 !important; overflow: hidden !important;
}
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-image {
  position: absolute !important; inset: 0;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; object-position: center !important;
  opacity: 0; transition: opacity .8s ease-in-out; transform: scale(1.04);
}
.hero-image.active {
  opacity: 1; transform: scale(1);
  transition: opacity .8s ease-in-out, transform 7s ease-out;
}
.hero-overlay {
  position: absolute !important; inset: 0;
  background: linear-gradient(135deg, rgba(5,10,30,.88) 0%, rgba(10,20,60,.72) 60%, rgba(47,109,246,.2) 100%) !important;
  z-index: 2 !important;
}
.hero-content {
  position: relative !important; z-index: 10 !important;
  width: 100% !important; max-width: 900px !important;
  padding: 0 24px !important; text-align: center !important; color: #fff !important;
}
.hero-claim {
  font-size: clamp(2.2rem,6vw,4.4rem) !important;
  font-weight: 900 !important; line-height: 1.15 !important;
  margin-bottom: 1.5rem !important; letter-spacing: -.02em;
  opacity: 0; transform: translateY(28px);
  animation: heroIn .9s var(--ease-spring) .2s forwards;
}
.hero-claim .highlight {
  color: var(--primary) !important; display: inline-block !important;
  position: relative;
}
.hero-claim .highlight::after {
  content: ''; position: absolute; bottom: 2px; left: 0;
  width: 100%; height: 4px; background: var(--primary); border-radius: 2px; opacity: .35;
}
.hero-description {
  font-size: clamp(.95rem,2vw,1.2rem) !important; line-height: 1.65 !important;
  color: rgba(255,255,255,.88) !important; max-width: 640px !important;
  margin: 0 auto !important; opacity: 0; transform: translateY(20px);
  animation: heroIn .9s var(--ease-spring) .45s forwards;
}
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { .hero, section#home.hero, #home { min-height: 60vh !important; } }
@media (max-width: 480px) {
  .hero, section#home.hero, #home { min-height: 50vh !important; }
  .hero-claim { font-size: 2rem !important; }
}

/* ─── SECTION ─── */
.section { padding: 60px 0; }

.tit-servizi {
  font-size: clamp(2.2rem,5vw,4rem); font-weight: 900;
  color: var(--primary); line-height: 1; letter-spacing: -.02em; margin-bottom: .4em;
}
.sotit-servizi {
  font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 700;
  color: var(--primary); line-height: 1.2; margin-bottom: .5em;
}
.sotit-servizi-normal {
  font-size: clamp(.95rem,2vw,1.2rem); color: var(--primary);
  font-weight: 400; line-height: 1.7; margin-bottom: 1em;
}

/* presentazione */
#presenazione { background: var(--primary) !important; padding: 48px 0 !important; }
#presenazione .sotit-servizi-normal {
  color: rgba(255,255,255,.92) !important;
  font-size: clamp(.95rem,1.8vw,1.2rem) !important;
  line-height: 1.75 !important; margin: 0 !important;
}

/* ─── SERVICES CAROUSEL (semplificato, senza drag) ─── */
.services-frame { position: relative; width: 100%; margin: 40px 0 20px; }
.carousel-viewport {
  overflow: hidden;
  width: 100%;
  position: relative;
  touch-action: pan-y; /* permette lo scroll verticale ma non interferisce con i click */
  user-select: none;
}
.carousel-track {
  display: flex; align-items: flex-start;
  transition: transform .45s var(--ease-spring); will-change: transform;
}

/* CARD 300 × 600 */
.card {
  flex-shrink: 0;
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer; background: #000;
  box-shadow: 0 8px 28px rgba(0,0,0,.2); margin-right: var(--gap);
  transition: transform .4s var(--ease-spring), box-shadow .4s var(--ease);
}
.card-media { position: absolute; inset: 0; overflow: hidden; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.card::before {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 75%;
  background: linear-gradient(to top, rgba(5,10,30,.97) 0%, rgba(5,10,30,.72) 35%, rgba(5,10,30,.18) 70%, transparent 100%);
  z-index: 1; pointer-events: none;
}
.card-body {
  position: absolute; bottom: 0; left: 0;
  width: 100%; padding: 2rem 1.6rem 1.8rem;
  z-index: 2; color: #fff;
}
.card-body h3 { font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin-bottom: .55rem; }
.card-body p {
  font-size: .92rem; line-height: 1.5;
  color: rgba(255,255,255,.85); margin: 0;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.card:hover { transform: translateY(-12px) scale(1.03); box-shadow: 0 28px 60px rgba(47,109,246,.38); z-index: 40; }
.card:hover .card-media img { transform: scale(1.1); }
.card:hover .card-body p { opacity: 1; transform: translateY(0); }

.svc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 100;
  background: #fff; color: var(--primary);
  border: 2px solid rgba(47,109,246,.2);
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  box-shadow: 0 6px 24px rgba(47,109,246,.2);
  transition: all .3s var(--ease-spring);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; line-height: 1;
}
.svc-arrow:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 12px 36px rgba(47,109,246,.45);
}
#servicesPrev { left: 6px; }
#servicesNext { right: 6px; }

/* ─── PORTFOLIO ─── */
.portfolio-section { padding: 72px 0; background: var(--muted); }
.portfolio-intro {
  display: block; font-size: clamp(.95rem,1.8vw,1.15rem);
  color: var(--muted-text); line-height: 1.65; margin: 12px 0 36px; max-width: 720px;
}
.portfolio-grid { display: grid; gap: 20px; grid-template-columns: repeat(2,1fr); }
@media (min-width: 600px)  { .portfolio-grid { grid-template-columns: repeat(3,1fr); gap: 22px; } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(4,1fr); gap: 24px; } }

.portfolio-item {
  display: block; border: none; text-align: left;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 16px rgba(7,16,39,.07); cursor: pointer;
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), box-shadow .35s var(--ease);
}
.portfolio-item.in-view { opacity: 1; transform: translateY(0); }
.portfolio-item:hover { box-shadow: 0 16px 40px rgba(7,16,39,.15); transform: translateY(-6px); }
.portfolio-item:hover .portfolio-media img { transform: scale(1.07); }

.portfolio-media { width: 100%; aspect-ratio: 1; overflow: hidden; background: #eee; }
.portfolio-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.p-title { font-size: clamp(.85rem,1.5vw,.98rem); font-weight: 700; padding: 11px 13px 13px; color: var(--text); line-height: 1.3; }

/* ─── CONTACTS ─── */
.contact-wrap { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 768px) {
  .contact-wrap { flex-direction: row; gap: 48px; align-items: flex-start; }
  .contact-info { flex: 0 0 320px; }
  .contact-form { flex: 1; }
}
.contact-info h2 { font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }

.contact-info p { font-size: 1rem; line-height: 1.7; color: var(--muted-text); }
.contact-form {
  background: #fff; border: 1px solid rgba(7,16,39,.06);
  border-radius: 20px; padding: 28px 24px;
  box-shadow: 0 8px 32px rgba(7,16,39,.07);
}
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field input, .field textarea {
  padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid rgba(7,16,39,.1);
  font-family: inherit; font-size: .95rem;
  background: #fafbfd; color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(47,109,246,.12); background: #fff;
}
.field-error { min-height: 18px; font-size: .8rem; color: #dc2626; margin-top: 5px; }
.privacy-field {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .9rem; color: var(--muted-text); margin-bottom: 24px;
}
.privacy-field input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.form-actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 480px) { .form-actions { flex-direction: row; justify-content: flex-end; gap: 14px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 10px;
  font-family: inherit; font-size: .95rem; font-weight: 600;
  cursor: pointer; border: 2px solid transparent;
  transition: background .25s var(--ease), color .25s, transform .2s var(--ease-spring), box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-d); box-shadow: 0 8px 24px rgba(47,109,246,.38); }
.btn.secondary { background: transparent; color: var(--muted-text); border-color: rgba(7,16,39,.12); }
.btn.secondary:hover { background: rgba(7,16,39,.04); color: var(--text); }
.btn.small { padding: 8px 16px; font-size: .82rem; border-radius: 999px; }
.btn.small.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.small.secondary { background: transparent; color: rgba(229,231,235,.9); border-color: rgba(148,163,184,.7); }

.contact-toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #16a34a; color: #fff;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  z-index: 2000; opacity: 0;
  transition: opacity .35s, transform .35s var(--ease-spring);
}
.contact-toast.in-view { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── FOOTER ─── */
.site-footer { background: var(--primary); color: #fff; padding: 40px 24px; margin-top: 64px; }
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-direction: column; gap: 28px; align-items: flex-start;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-logo { height: 32px; width: auto; margin-bottom: 10px; }
.footer-copy { font-size: .88rem; opacity: .82; margin-bottom: 8px; }
.btn-legal {
  background: none; border: none; padding: 0; color: #fff;
  text-decoration: underline; cursor: pointer; font-size: .85rem; opacity: .75; transition: opacity .2s;
}
.btn-legal:hover { opacity: 1; }
.social-icons { display: flex; gap: 12px; }
.social-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; color: #fff; font-weight: 700;
  transition: background .25s, border-color .25s, transform .25s var(--ease-spring);
}
.social-icon:hover { background: rgba(255,255,255,.2); border-color: #fff; transform: scale(1.12); }
.social-icon.fb::before { content: 'f'; }
.social-icon.ig::before { content: 'IG'; font-size: .58rem; }
.social-icon.in::before { content: 'in'; }

/* ─── MODALI GENERALI ─── */
.modal {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  z-index: 1400; padding: 16px;
}
.modal.active { display: flex; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(5,10,30,.82); backdrop-filter: blur(8px); cursor: pointer;
}

/* ─── MODAL SERVIZI — FULL PAGE ─── */
#servicesModal { padding: 0; }

.modal-dialog-full {
  position: relative; z-index: 2;
  width: 100vw; height: 100vh;
  border-radius: 0; background: #ffffff;
  overflow: hidden; display: flex; flex-direction: column;
}

.modal-content-scroll {
  flex: 1; overflow-y: auto;
  overscroll-behavior: contain; background: #fff;
  padding: 20px; /* Aggiunto per dare spazio */
}

.modal-close-service {
  position: fixed; top: 16px; right: 16px; z-index: 9999;
  background: rgba(5,10,30,.82); color: #f9fafb; border: none;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.35rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 6px 20px rgba(5,10,30,.5);
  transition: background .2s, transform .25s var(--ease-spring);
}
.modal-close-service:hover { background: var(--primary); transform: scale(1.08) rotate(90deg); }

/* ─── MODAL LEGAL ─── */
.modal-dialog, .modal-dialog-legal {
  position: relative; z-index: 2;
  width: min(600px,calc(100vw - 32px)); max-height: 88vh;
  border-radius: 20px; background: #fff;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(5,10,30,.35);
  animation: modalPop .4s var(--ease-spring);
}
.modal-legal-content { padding: 28px 28px 24px; overflow-y: auto; }
.modal-legal-content h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.modal-legal-content p  { font-size: .9rem; color: var(--muted-text); line-height: 1.65; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(148,163,184,.5); background: rgba(5,10,30,.8);
  color: #e5e7eb; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .25s var(--ease-spring);
}
.modal-close:hover { background: #dc2626; transform: scale(1.08) rotate(90deg); }

@keyframes modalPop {
  from { opacity: 0; transform: scale(.94) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── LIGHTBOX PORTFOLIO — finestra centrata ─── */
.lightbox {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  z-index: 1500; padding: 20px;
}
.lightbox.active { display: flex; }

.lightbox-overlay {
  position: absolute; inset: 0;
  background: rgba(5,10,30,.88); backdrop-filter: blur(10px); cursor: pointer;
}

/* finestra centrata, proporzionata */
.lightbox-wrapper {
  position: relative; z-index: 2;
  width:  min(1040px,calc(100vw - 40px));
  height: min(680px, calc(100vh - 40px));
  background: #0b1120; border-radius: 20px;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,.65);
  animation: modalPop .4s var(--ease-spring);
}

.lightbox-main {
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
}

/* Su schermi >= 640: immagine sinistra, info destra */
@media (min-width: 640px) {
  .lightbox-main { flex-direction: row; }
  .lightbox-image-section { flex: 1 1 0%; }
  .lightbox-info-section  { flex: 0 0 280px; border-left: 1px solid rgba(255,255,255,.07); border-top: none !important; }
}

.lightbox-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(148,163,184,.45); background: rgba(5,10,30,.9);
  color: #e5e7eb; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background .2s, transform .25s var(--ease-spring);
}
.lightbox-close:hover { background: var(--primary); transform: scale(1.08) rotate(90deg); }

/* immagine — occupa tutto lo spazio disponibile, non croppa */
.lightbox-image-section {
  position: relative; background: #000;
  flex: 1 1 0%; min-height: 200px;
}
.lightbox-image-wrapper { position: absolute; inset: 0; }
.lightbox-img {
  width: 100%; height: 100%;
  object-fit: contain;       /* mostra l'intera immagine */
  object-position: center;
}

/* pannello info */
.lightbox-info-section {
  flex: 0 0 auto;
  padding: 20px 22px 18px;
  color: #e5e7eb; background: #0b1120;
  display: flex; flex-direction: column; gap: 7px;
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,.07);
}
.lightbox-category-year {
  display: flex; gap: 8px;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #6b7280;
}
.lightbox-title { font-size: 1.2rem; font-weight: 800; color: #f9fafb; line-height: 1.3; }
.lightbox-description { font-size: .9rem; color: #9ca3af; line-height: 1.55; }
.lightbox-counter { font-size: .75rem; color: #4b5563; }
.lightbox-dots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.lightbox-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(148,163,184,.4); cursor: pointer;
  transition: background .2s, transform .2s;
}
.lightbox-dot:hover  { background: rgba(148,163,184,.85); }
.lightbox-dot.active { background: var(--primary); transform: scale(1.35); }

/* frecce laterali — solo sulla sezione immagine */
.lightbox-side-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 20;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(5,10,30,.8); color: #f9fafb;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; cursor: pointer;
  transition: background .2s, transform .25s var(--ease-spring);
}
.lightbox-side-nav:hover { background: var(--primary); transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
@media (max-width: 639px) { .lightbox-side-nav { top: calc(50% - 40px); } }

/* ─── SERVICE PAGE (dentro modal fullpage) ─── */
.service-page {
  opacity: 0; transform: translateY(12px);
  animation: serviceFade .45s var(--ease) forwards;
}
@keyframes serviceFade { to { opacity: 1; transform: translateY(0); } }

.service-hero-header {
  width: 100%; height: 300px; overflow: hidden; position: relative;
}
.service-hero-media {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.03); transition: transform 6s ease-out;
}
.service-hero-header:hover .service-hero-media { transform: scale(1.08); }

.service-layout {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 36px; align-items: flex-start;
  padding: 36px 40px 48px;
  max-width: 960px; margin: 0 auto;
}
@media (max-width: 768px) {
  .service-layout { grid-template-columns: 1fr; padding: 24px 20px 36px; }
}
.service-media-col img {
  width: 100%; max-height: 260px;
  object-fit: cover; border-radius: 14px;
  box-shadow: 0 14px 36px rgba(5,10,30,.18);
  opacity: 0; transform: translateY(10px);
  animation: serviceImgIn .7s var(--ease) .15s forwards;
}
@keyframes serviceImgIn { to { opacity: 1; transform: translateY(0); } }
.service-text-col { display: flex; flex-direction: column; gap: 14px; }
.service-title {
  font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800;
  color: var(--text); line-height: 1.15;
}
.service-subtitle { font-size: clamp(1rem,2vw,1.2rem); color: var(--primary); font-weight: 600; }
.service-body-text { font-size: .98rem; line-height: 1.75; color: var(--muted-text); }

/* ─── ANIMATE ─── */
.animate-fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.animate-fade-up.in-view { opacity: 1; transform: translateY(0); }
.animate-in {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.animate-in.in-view { opacity: 1; transform: none; }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #060d20; color: #e5e7eb; z-index: 1600;
  transform: translateY(100%); opacity: 0;
  transition: transform .4s var(--ease-spring), opacity .4s;
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 16px 24px; display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 600px) {
  .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cookie-inner h2 { font-size: .92rem; margin-bottom: 3px; }
.cookie-inner p  { font-size: .82rem; color: #9ca3af; }
.cookie-actions  { display: flex; gap: 10px; flex-shrink: 0; }