/* ========================================
   RESET E VARIABILI
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff6a00;
  --primary-hover: #ff8534;
  --dark: #000;
  --dark-light: #0d0d0d;
  --dark-lighter: #1a1a1a;
  --text: #fff;
  --text-muted: #aaa;
  --border: #333;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: transparent;
  z-index: 1000;
  border-bottom: none;
  transition: padding 0.4s;
}
.header.scrolled {
  padding: 14px 40px;
  background: rgba(0,0,0,0.2);
}
/* ── nav centrato nel header ── */
.header nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.header-logo {
  height: 50px;
  width: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  transition: all 0.3s;
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

nav {
  display: flex;
  gap: 3px;
  align-items: center;
  background: rgba(8,8,8,0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 7px 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  padding: 9px 15px;
  border-radius: 40px;
  font-family: 'Bebas Neue', sans-serif;
}
nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.11);
}

nav a.login {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s;
}

nav a.login:hover {
  background: var(--primary);
  color: var(--dark);
}

nav a.register {
  background: var(--primary);
  color: var(--dark);
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s;
}

nav a.register:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
nav a.login-register {
  background: var(--primary);
  color: #000;
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: bold;
  transition: all 0.2s;
  font-size: 13px;
}
nav a.login-register:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 14px rgba(255,106,0,0.45);
  transform: none;
}

/* ========================================
   SOCIAL SIDEBAR
   ======================================== */
.social-sidebar {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
}

.social-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 0, 0.1);
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.social-icon:hover {
  background: var(--primary);
  color: var(--dark);
  transform: scale(1.1);
}

.social-icon.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border-color: #bc1888;
}

.social-icon.linkedin:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.social-icon.whatsapp:hover {
  background: #25D366;
  color: white;
  border-color: #25D366;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg-original {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero.jpg') center/cover no-repeat;
  z-index: 1;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-video-container.active {
  opacity: 1;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.12) 0%,
    rgba(0,0,0,0.06) 50%,
    rgba(0,0,0,0.38) 100%
  );
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: 120px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 8px;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.cta {
  display: inline-block;
  padding: 18px 45px;
  background: var(--primary);
  color: var(--dark);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 2px;
  border-radius: 8px;
  transition: all 0.3s;
  font-family: 'Bebas Neue', sans-serif;
  box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.cta:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.5);
}

.cta-secondary {
  background: transparent;
  border: 3px solid var(--primary);
  color: var(--primary);
}

.cta-secondary:hover {
  background: var(--primary);
  color: var(--dark);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 100px 40px;
  text-align: center;
}

.section.dark {
  background: #111214;
}

.section h2 {
  font-size: 56px;
  color: var(--primary);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-family: 'Bebas Neue', sans-serif;
}

.section p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.8;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-content {
  max-width: 1200px;
  margin: 0 auto;
}

.about-images {
  display: flex;
  gap: 25px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.about-images img {
  width: 350px;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid var(--primary);
  transition: transform 0.3s;
}

.about-images img:hover {
  transform: scale(1.05);
}

.about-description {
  text-align: left;
  color: #ccc;
  line-height: 2;
  font-size: 17px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.about-links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: var(--primary);
  color: var(--dark);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.cv-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 106, 0, 0.4);
}

/* ========================================
   EXPERIENCES SECTION (CARD NON CLICCABILI - BIANCHE)
   ======================================== */
.experience-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 50px;
  line-height: 1.6;
}

.experience-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.experience-card-new {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.experience-card-new:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 106, 0, 0.3);
}

.experience-card-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.experience-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.experience-card-new:hover .experience-card-image img {
  transform: scale(1.1);
}

.experience-card-content {
  padding: 25px 20px;
  background: #fff;
}

.experience-card-content h3 {
  color: #000;
  font-size: 18px;
  margin-bottom: 10px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  text-align: center;
}

.experience-card-content p {
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

/* ========================================
   SERVICES SECTION (NUOVO STILE)
   ======================================== */
.services-grid-new {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card-new {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s;
  border: 2px solid transparent;
}

.service-card-new:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(255, 106, 0, 0.3);
}

.service-card-image {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-card-new:hover .service-card-image img {
  transform: scale(1.08);
}

/* VIDEO CROSSFADE per TEST LATTATO */
.service-card-video .service-card-image {
  position: relative;
}

.service-card-video .service-card-image video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}

.service-card-video .service-card-image video:nth-child(1) {
  z-index: 2;
  animation: videoFade 10s infinite;
}

.service-card-video .service-card-image video:nth-child(2) {
  z-index: 1;
}

@keyframes videoFade {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.service-card-body {
  padding: 20px 20px 22px;
}

.service-card-body h3 {
  font-size: 26px;
  color: #000;
  margin-bottom: 15px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 2px;
}

.service-price-new {
  font-size: 36px;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 14px;
  font-family: 'Bebas Neue', sans-serif;
}

.service-price-new span {
  font-size: 20px;
  color: #666;
  font-weight: normal;
}

.service-features {
  list-style: none;
  margin-bottom: 18px;
}
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 7px 0;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.service-features li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-buy-btn {
  display: block;
  width: 100%;
  padding: 11px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  border-radius: 8px;
  transition: all 0.3s;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.service-buy-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 106, 0, 0.4);
}
/* ========================================
   FOOTER (NUOVO STILE)
   ======================================== */
.footer-new {
  background: var(--dark);
  padding: 60px 40px 20px;
  border-top: 2px solid var(--primary);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 20px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.footer-logo {
  height: 120px;
  margin-bottom: 20px;
}

.footer-column p,
.footer-column a {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 0, 0.1);
  border: 2px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--dark);
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
}

.footer-bottom p {
  color: #666;
  font-size: 14px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .experience-grid-new,
  .services-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .social-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 14px 20px;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(14px);
  }
  .header-logo { height: 36px; }
  .menu-toggle { display: flex; }

  nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: rgba(8,8,8,0.97);
    flex-direction: column;
    padding: 80px 20px 30px;
    gap: 0;
    transition: right 0.4s;
    border-left: 1px solid rgba(255,255,255,0.07);
    border-radius: 0;
    backdrop-filter: blur(24px);
    box-shadow: none;
  }
  nav.active { right: 0; }
  nav a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%; border-radius: 0; font-size: 16px;
    background: none !important;
    color: rgba(255,255,255,0.85) !important;
  }
  nav a.login-register {
    border-radius: 8px !important;
    margin-top: 12px;
    text-align: center;
    background: var(--primary) !important;
    color: #000 !important;
  }

  .hero-content h1 { font-size: 65px; letter-spacing: 4px; }
  .hero-buttons { flex-direction: column; width: 100%; padding: 0 20px; }
  .cta, .cta-secondary { width: 100%; max-width: 320px; }

  .services-grid-new { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 70px 20px; }
  .section h2 { font-size: 42px; }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 48px;
  }
  
  .section h2 {
    font-size: 36px;
  }
}
/* ========================================
   ABOUT CARDS - NUOVE (sovrascrive tutto)
   ======================================== */
.about-cards-grid {
  display: flex !important;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 40px;
  width: 100%;
}

.about-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden !important;
  box-shadow: 0 6px 28px rgba(0,0,0,0.22);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex !important;
  flex-direction: column;
  width: 280px;
  flex-shrink: 0;
  max-width: 100%;
}

.about-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 16px 40px rgba(255,106,0,0.2);
}

/* CRITICO: contenitore immagine con overflow hidden */
.about-card .about-card-image {
  width: 100% !important;
  height: 260px !important;
  overflow: hidden !important;
  flex-shrink: 0;
  display: block;
}

/* CRITICO: immagine dentro la card */
.about-card .about-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
  max-width: none !important;
  transition: transform 0.4s;
  border: none !important;
  border-radius: 0 !important;
}

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

.about-card .about-card-body {
  padding: 20px 18px 24px;
  background: #fff;
  flex: 1;
  text-align: center;
}

.about-card .about-card-body h3 {
  color: #000 !important;
  font-size: 16px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.about-card .about-card-body p {
  color: #555 !important;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  font-size: 13px !important;
}

.about-cta-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* ========================================
   EXPERIENCE CARDS - NUOVE MISURE
   ======================================== */
.experience-grid-new {
  display: flex !important;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.experience-card-new {
  background: #fff;
  border-radius: 18px;
  overflow: hidden !important;
  transition: all 0.35s;
  display: flex !important;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
  width: 320px;
  flex-shrink: 0;
}

.experience-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(255,106,0,0.25);
}

.experience-card-new .experience-card-image {
  width: 100% !important;
  height: 200px !important;
  overflow: hidden !important;
  flex-shrink: 0;
}

.experience-card-new .experience-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  max-width: none !important;
  transition: transform 0.4s;
}

.experience-card-new:hover .experience-card-image img {
  transform: scale(1.08);
}

.experience-card-new .experience-card-content {
  padding: 18px 16px 20px;
  background: #fff;
  flex: 1;
  text-align: center;
}

.experience-card-new .experience-card-content h3 {
  color: #000 !important;
  font-size: 15px;
  margin-bottom: 8px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.experience-card-new .experience-card-content p {
  color: #555 !important;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   MOBILE FIX CRITICO
   ======================================== */
@media (max-width: 768px) {
  /* Card about su mobile: larghezza piena ma foto contenuta */
  .about-card {
    width: calc(100% - 32px) !important;
    max-width: 400px !important;
    margin: 0 auto;
  }

  .about-card .about-card-image {
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
  }

  .about-card .about-card-image img {
    width: 100% !important;
    height: 220px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
  }

  /* Card experience su mobile */
  .experience-card-new {
    width: calc(100% - 32px) !important;
    max-width: 400px !important;
    margin: 0 auto;
  }
  .experience-card-new .experience-card-image {
    height: 180px !important;
  }
  .experience-card-new .experience-card-image img {
    height: 180px !important;
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 48px; }
  .section h2 { font-size: 36px; }
}
