/* ============================================================
   PWB Forensic — style.css  (versione corretta)
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");

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

body, html {
  background: #000;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;          /* ← CORRETTO: era padding: 80px — causa principale di tutti i problemi */
  padding-top: 70px;   /* ← solo il top, per non finire sotto la navbar fissa */
}

h1, h2, h3, h4, h5, h6, p, ol, ul { margin: 0 0 1rem 0; padding: 0; }
ol, ul { list-style-type: none; }
img { height: auto; max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

h1 { font-size: 4rem; }
h2 { font-size: 3rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.8rem; }
h6 { font-size: 0.6rem; }


/* ════════════════════════════════
   VIDEO BACKGROUND
   ════════════════════════════════ */
video.video-bg {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.7;
  z-index: 0;
}


/* ════════════════════════════════
   NAVBAR — gestita da navbar.css
   Qui manteniamo solo le variabili base.
   I dettagli sono in /css/navbar.css
   ════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  margin: 0;
}

.logo a {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.menu {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.menu li a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.menu li a:hover { color: #ff6a00; }

.hamburger {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #fff;
  z-index: 1100;
  background: none;
  border: none;
  padding: 4px 8px;
}


/* ════════════════════════════════
   LANGUAGE SWITCHER
   ════════════════════════════════ */
.language-switcher { position: relative; }

.dropdown-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.dropdown-button:hover { border-color: #ff6a00; }

.flag { width: 20px; height: auto; border-radius: 2px; }
.arrow { font-size: 0.75rem; }

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #111;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  min-width: 140px;
  z-index: 2000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.dropdown-content.show { display: block; }

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #ddd;
  transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover { background: #222; color: #ff6a00; }


/* ════════════════════════════════
   HERO — WRAPPER STICKY + TITOLI CROSSFADE
   ════════════════════════════════ */
.hero-wrapper {
  position: relative;
  z-index: 1;
  height: 300vh;
  /* padding-top: 0 — il body ha già padding-top: 70px */
}

.section {
  position: sticky;
  top: 70px;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.title {
  position: absolute;
  text-align: center;
  max-width: 70%;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  opacity: 0;
  transform: scale(0.25);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(.215, .61, .355, 1),
              transform 1.2s cubic-bezier(.215, .61, .355, 1);
  transition-delay: 0.3s;
}

.title.visible {
  opacity: 1;
  transform: scale(1);
}

.title.exit {
  opacity: 0;
  transform: scale(1.6);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: 0s;
}


/* ════════════════════════════════
   FADE-IN GENERICA
   ════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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


/* ════════════════════════════════
   PANEL
   ════════════════════════════════ */
.panel {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0072CE;
  padding: 100px 40px 80px;
}

.panel--white {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.container     { max-width: 700px; text-align: center; }
.container-1   { max-width: 800px; text-align: left; }

.intro {
  color: #ff6a00;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.title-big {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2rem;
}

.subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.orange-text {
  color: #ff6a00;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 1.5rem;
  transition: opacity 0.2s;
}

.orange-text:hover { opacity: 0.75; }

.contact-button {
  display: inline-block;
  padding: 12px 32px;
  background: #ff6a00;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-button:hover {
  background: #e05a00;
  transform: translateY(-2px);
}


/* ════════════════════════════════
   SLIDER 3D SERVIZI
   ════════════════════════════════ */
.banner {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  background: #fff;
  color: #000;
  padding: 120px 0 0;
}

.banner .card-name { color: #111; }

.content {
  margin-top: 0;
  margin-bottom: 50px;
  text-align: center;
  order: -1;
  position: relative;
  z-index: 10;
}

.content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  color: #111;
}

.content h1::before {
  content: attr(data-content);
  position: absolute;
  top: 6px;
  left: 6px;
  display: none;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.12);
  z-index: -1;
}

.container-4 {
  width: 100%;
  display: flex;
  justify-content: center;
  perspective: 1200px;
  perspective-origin: center center;
  padding: 40px 0 180px;
  transform-style: preserve-3d;
}

.slider {
  position: relative;
  width: 220px;
  height: 300px;
  transform-style: preserve-3d;
  animation: rotate3d 22s linear infinite;
  will-change: transform;
}

@keyframes rotate3d {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

.slider > div {
  position: absolute;
  width: 220px;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotateY(calc(var(--n) * 45deg)) translateZ(420px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider > div img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-name {
  font-size: 0.82rem;
  text-align: center;
  padding: 10px 12px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  color: #fff !important;
}

.slider > div button {
  margin-bottom: 14px;
  padding: 7px 18px;
  background: #ff6a00;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: inherit;
  transition: background 0.2s;
}

.slider > div button:hover { background: #e05a00; }
.card-button { color: #fff; }


/* ════════════════════════════════
   PULSANTI PROGETTO
   ════════════════════════════════ */
.banner-section {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #0a0a0a;
  padding: 60px 40px;
}

.buttons-section {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.project-button,
.consult-button {
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s ease;
}

.project-button {
  background: #ff6a00;
  color: #fff;
  border: 2px solid #ff6a00;
}

.project-button:hover { background: transparent; color: #ff6a00; }

.consult-button {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.consult-button:hover { background: #fff; color: #000; }


/* ════════════════════════════════
   BRAND LOGO SLIDER
   ════════════════════════════════ */
.section-2 {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #0a0a0a;
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid #1a1a1a;
}

.page-padding { padding: 0 40px; }

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.heading-xsmall {
  font-size: 0.9rem;
  color: #777;
  margin: 0;
}

.logos_slider {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

.logos_wrapper {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scrollLogos 24s linear infinite;
}

.logos_slider:hover .logos_wrapper {
  animation-play-state: paused;
}

@keyframes scrollLogos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logos_slider .item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logos_slider .item img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.75);
  transition: filter 0.3s;
}

.logos_slider .item img:hover {
  filter: grayscale(0) brightness(1);
}


/* ════════════════════════════════
   SEZIONE CONTATTI
   ════════════════════════════════ */
.contact-body {
  position: relative;
  z-index: 2;
  background-color: #050505;
  background-image: url('/img/Tallinn-Estonia.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  padding: 80px 40px;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
  pointer-events: none;
}

.contact-section {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-box {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 28px 32px;
  min-width: 180px;
  text-align: center;
}

.contact-box h3 {
  font-size: 0.85rem;
  color: #000;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-box p {
  font-size: 0.85rem;
  color: #000;
  line-height: 1.6;
  margin: 0;
}


/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
.footer {
  background: #080808;
  border-top: 1px solid #1a1a1a;
  padding: 60px 40px 0;
  position: relative;
  z-index: 2;
}

.container-3 { max-width: 1100px; margin: 0 auto; }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-col { flex: 1; min-width: 150px; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ff6a00;
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: #555;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: #fff; }

.social-links { display: flex; gap: 12px; flex-wrap: wrap; }

.social-links a {
  width: 36px;
  height: 36px;
  border: 1px solid #2a2a2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 0.82rem;
  transition: border-color 0.2s, color 0.2s;
}

.social-links a:hover { border-color: #ff6a00; color: #ff6a00; }

.bottom-bar {
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid #1a1a1a;
  color: #444;
  font-size: 0.8rem;
}


/* ════════════════════════════════
   COOKIE BANNER
   ════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: -360px;
  right: 20px;
  max-width: 340px;
  width: calc(100% - 40px);
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  border-radius: 10px;
  padding: 20px 24px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
  transition: bottom 0.45s cubic-bezier(.215, .61, .355, 1);
}

.cookie-banner.show { bottom: 24px; }

.cookie-banner__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cookie-banner__header i {
  color: #ff6a00;
  font-size: 22px;
  flex-shrink: 0;
}

.cookie-banner__header h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.cookie-banner__text {
  color: #aaa;
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.cookie-banner__text a { color: #ff6a00; text-decoration: underline; }
.cookie-banner__text a:hover { opacity: 0.8; }

.cookie-banner__buttons { display: flex; gap: 10px; }

.cookie-banner__buttons button {
  flex: 1;
  padding: 9px 0;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 0.83rem;
  font-family: inherit;
  font-weight: 500;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

#acceptBtn  { background: #ff6a00; color: #fff; }
#acceptBtn:hover { opacity: 0.85; }

#declineBtn {
  background: transparent;
  border: 1px solid #444;
  color: #999;
}

#declineBtn:hover { border-color: #ff6a00; color: #ff6a00; }


/* ════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
   ════════════════════════════════ */
@media (max-width: 900px) {

  body, html {
    padding-top: 60px; /* navbar leggermente più bassa su tablet */
  }

  .navbar { padding: 12px 20px; }

  .menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 260px;
    background: rgba(0, 0, 0, 0.97);
    padding: 80px 30px 30px;
    gap: 24px;
    z-index: 999;
    border-left: 1px solid #1e1e1e;
  }

  .menu.active { display: flex; }
  .hamburger   { display: block; }

  .title     { font-size: 2.2rem; max-width: 85%; }
  .title-big { font-size: 3rem; }

  .slider { width: 160px; height: 240px; }
  .slider > div {
    width: 160px;
    height: 240px;
    transform: rotateY(calc(var(--n) * 45deg)) translateZ(280px);
  }
  .slider > div img { height: 130px; }

  .row           { flex-direction: column; gap: 24px; }
  .contact-section { gap: 16px; }
  .contact-box   { min-width: 140px; padding: 20px; }
}


/* ════════════════════════════════
   RESPONSIVE — MOBILE (≤ 600px)
   ════════════════════════════════ */
@media (max-width: 600px) {

  body, html {
    padding-top: 60px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .title     { font-size: 1.8rem; max-width: 90%; }
  .title-big { font-size: 2.4rem; }

  .panel         { padding: 80px 20px 60px; }
  .content h1    { font-size: 2.4rem; }

  .buttons-section { flex-direction: column; align-items: center; }
  .project-button,
  .consult-button  { width: 100%; max-width: 300px; text-align: center; }

  .footer { padding: 40px 20px 0; }

  .cookie-banner {
    right: 0;
    left: 0;
    max-width: 100%;
    width: 100%;
    border-radius: 12px 12px 0 0;
    bottom: -360px;
  }

  .cookie-banner.show { bottom: 0; }
}
